Anvil/assets/ImportProject-D3L-fWhf.js
André Jaenisch 1122b3d95a
Updates
2024-07-07 15:46:09 +02:00

1 line
9.8 KiB
JavaScript

import{S as Ct,c as kt,a as Bt,d as Fe,e as Xe,m as ze,b as Ge,t as Je,f as Ke,g as Ht}from"./index-Bq12SwZr.js";import{a as l,t as m,b as n,f as s,h as i,j as h,d as o,k as p,p as Ut,l as t,i as Rt,m as e,n as v}from"./lifecycle-DxKVJJp3.js";import{A as St,R as qt,U as Mt,I as Ot}from"./ZoomOut24-DEQR2-6L.js";import{$ as Ft}from"./runtime-5BIk_n0E.js";function Xt(a){let g,f,$,T=a[0](a[1].heading)+"",ee,A,te,ne=a[0](a[1].intro)+"",je,Qe,_,re,y,pe=a[0](a[1].form.fields.name.label)+"",Ee,We,k,gt="*",Ye,I,$e,Ze,D,B,xe,fe=a[0](a[1].form.fields.name.error)+"",ye,et,H,jt='domain.example/projects/<span class="text-surface-500">NameUpdateRealtime</span>',tt,R,ae,S,ce=a[0](a[1].form.fields.description.label)+"",Ie,rt,w,we,at,q,le,ue=a[0](a[1].form.avatar)+"",Le,lt,E,se,M,st,L,O,ot,de=a[0](a[1].form.fields.avatar.label)+"",Te,it,N,nt,b,oe,me=a[0](a[1].form.components)+"",Ae,pt,j,F,ft,X,he=a[0](a[1].form.fields.repository.label)+"",De,ct,z,Ne,ut,P,G,dt,ve=a[0](a[1].form.fields.repository.hint)+"",Pe,mt,J,K,ht,Q,_e=a[0](a[1].form.fields.issues.label)+"",Ve,vt,W,Y,_t,Z,be=a[0](a[1].form.fields.pr.label)+"",Ue,bt,x,ge=a[0](a[1].form.submit)+"",Ce,u;return B=new St({props:{fill:"currentColor"}}),M=new qt({props:{class:"h-6 w-6"}}),O=new Mt({props:{fill:"currentColor"}}),G=new Ot({props:{fill:"currentColor"}}),{c(){g=l("section"),f=l("form"),$=l("h2"),ee=m(T),A=n(),te=l("p"),je=m(ne),Qe=n(),_=l("div"),re=l("h3"),y=l("label"),Ee=m(pe),We=n(),k=l("span"),k.textContent=gt,Ye=n(),I=l("input"),Ze=n(),D=l("div"),Fe(B.$$.fragment),xe=n(),ye=m(fe),et=n(),H=l("div"),H.innerHTML=jt,tt=n(),R=l("div"),ae=l("h3"),S=l("label"),Ie=m(ce),rt=n(),w=l("textarea"),at=n(),q=l("div"),le=l("h3"),Le=m(ue),lt=n(),E=l("div"),se=l("span"),Fe(M.$$.fragment),st=n(),L=l("label"),Fe(O.$$.fragment),ot=n(),Te=m(de),it=n(),N=l("input"),nt=n(),b=l("div"),oe=l("h3"),Ae=m(me),pt=n(),j=l("div"),F=l("input"),ft=n(),X=l("label"),De=m(he),ct=n(),z=l("input"),ut=n(),P=l("div"),Fe(G.$$.fragment),dt=n(),Pe=m(ve),mt=n(),J=l("div"),K=l("input"),ht=n(),Q=l("label"),Ve=m(_e),vt=n(),W=l("div"),Y=l("input"),_t=n(),Z=l("label"),Ue=m(be),bt=n(),x=l("button"),Ce=m(ge),this.h()},l(r){g=s(r,"SECTION",{class:!0});var c=i(g);f=s(c,"FORM",{class:!0,name:!0});var d=i(f);$=s(d,"H2",{class:!0});var Et=i($);ee=h(Et,T),Et.forEach(o),A=p(d),te=s(d,"P",{class:!0});var $t=i(te);je=h($t,ne),$t.forEach(o),Qe=p(d),_=s(d,"DIV",{class:!0});var V=i(_);re=s(V,"H3",{class:!0});var yt=i(re);y=s(yt,"LABEL",{class:!0,for:!0});var ke=i(y);Ee=h(ke,pe),We=p(ke),k=s(ke,"SPAN",{class:!0,"data-svelte-h":!0}),Ut(k)!=="svelte-1ttfsis"&&(k.textContent=gt),ke.forEach(o),yt.forEach(o),Ye=p(V),I=s(V,"INPUT",{id:!0,name:!0,class:!0,type:!0,placeholder:!0}),Ze=p(V),D=s(V,"DIV",{class:!0});var Be=i(D);Xe(B.$$.fragment,Be),xe=p(Be),ye=h(Be,fe),Be.forEach(o),et=p(V),H=s(V,"DIV",{class:!0,"data-svelte-h":!0}),Ut(H)!=="svelte-1yjif5y"&&(H.innerHTML=jt),V.forEach(o),tt=p(d),R=s(d,"DIV",{});var He=i(R);ae=s(He,"H3",{class:!0});var It=i(ae);S=s(It,"LABEL",{class:!0,for:!0});var wt=i(S);Ie=h(wt,ce),wt.forEach(o),It.forEach(o),rt=p(He),w=s(He,"TEXTAREA",{id:!0,name:!0,class:!0,placeholder:!0}),i(w).forEach(o),He.forEach(o),at=p(d),q=s(d,"DIV",{});var Re=i(q);le=s(Re,"H3",{class:!0});var Lt=i(le);Le=h(Lt,ue),Lt.forEach(o),lt=p(Re),E=s(Re,"DIV",{class:!0});var ie=i(E);se=s(ie,"SPAN",{class:!0});var Tt=i(se);Xe(M.$$.fragment,Tt),Tt.forEach(o),st=p(ie),L=s(ie,"LABEL",{for:!0,class:!0});var Se=i(L);Xe(O.$$.fragment,Se),ot=p(Se),Te=h(Se,de),Se.forEach(o),it=p(ie),N=s(ie,"INPUT",{id:!0,name:!0,class:!0,type:!0,accept:!0}),ie.forEach(o),Re.forEach(o),nt=p(d),b=s(d,"DIV",{class:!0});var U=i(b);oe=s(U,"H3",{class:!0});var At=i(oe);Ae=h(At,me),At.forEach(o),pt=p(U),j=s(U,"DIV",{});var C=i(j);F=s(C,"INPUT",{id:!0,name:!0,class:!0,type:!0}),ft=p(C),X=s(C,"LABEL",{for:!0,class:!0});var Dt=i(X);De=h(Dt,he),Dt.forEach(o),ct=p(C),z=s(C,"INPUT",{type:!0,class:!0,placeholder:!0}),ut=p(C),P=s(C,"DIV",{class:!0});var qe=i(P);Xe(G.$$.fragment,qe),dt=p(qe),Pe=h(qe,ve),qe.forEach(o),C.forEach(o),mt=p(U),J=s(U,"DIV",{});var Me=i(J);K=s(Me,"INPUT",{id:!0,name:!0,class:!0,type:!0}),ht=p(Me),Q=s(Me,"LABEL",{for:!0,class:!0});var Nt=i(Q);Ve=h(Nt,_e),Nt.forEach(o),Me.forEach(o),vt=p(U),W=s(U,"DIV",{});var Oe=i(W);Y=s(Oe,"INPUT",{id:!0,name:!0,class:!0,type:!0}),_t=p(Oe),Z=s(Oe,"LABEL",{for:!0,class:!0});var Pt=i(Z);Ue=h(Pt,be),Pt.forEach(o),Oe.forEach(o),U.forEach(o),bt=p(d),x=s(d,"BUTTON",{type:!0,class:!0});var Vt=i(x);Ce=h(Vt,ge),Vt.forEach(o),d.forEach(o),c.forEach(o),this.h()},h(){t($,"class","h2 text-surface-500"),t(te,"class","text-surface-500"),t(k,"class","required"),t(y,"class","label"),t(y,"for","project-name"),t(re,"class","text-surface-500"),t(I,"id","project-name"),t(I,"name","project-name"),t(I,"class","input input-error"),t(I,"type","text"),t(I,"placeholder",$e=a[0](a[1].form.fields.name.placeholder)),t(D,"class","flex gap-2 items-center text-error-500"),t(H,"class","text-surface-400"),t(_,"class","flex flex-col gap-1"),t(S,"class","label"),t(S,"for","project-description"),t(ae,"class","text-surface-500"),t(w,"id","project-description"),t(w,"name","project-description"),t(w,"class","textarea"),t(w,"placeholder",we=a[0](a[1].form.fields.description.placeholder)),t(le,"class","text-surface-500"),t(se,"class","bg-surface-300 flex justify-center items-center h-12 w-12"),t(L,"for","project-avatar"),t(L,"class","h-12 flex flex-1 gap-2 items-center justify-center px-4 bg-surface-025 text-surface-400"),t(N,"id","project-avatar"),t(N,"name","project-avatar"),t(N,"class","opacity-0 w-1"),t(N,"type","file"),t(N,"accept","image/*"),t(E,"class","flex"),t(oe,"class","text-surface-500"),t(F,"id","project-repository"),t(F,"name","project-repository"),t(F,"class","input h-6 w-6"),t(F,"type","checkbox"),t(X,"for","project-repository"),t(X,"class","label inline text-surface-500"),t(z,"type","url"),t(z,"class","input ms-8 w-auto"),t(z,"placeholder",Ne=a[0](a[1].form.fields.repository.placeholder)),t(P,"class","flex gap-1 items-center ms-8 text-warning-700"),t(K,"id","project-issues"),t(K,"name","project-issues"),t(K,"class","input h-6 w-6"),t(K,"type","checkbox"),t(Q,"for","project-issues"),t(Q,"class","label inline text-surface-500"),t(Y,"id","project-pr"),t(Y,"name","project-pr"),t(Y,"class","input h-6 w-6"),t(Y,"type","checkbox"),t(Z,"for","project-pr"),t(Z,"class","label inline text-surface-500"),t(b,"class","flex flex-col gap-2"),t(x,"type","submit"),t(x,"class","button bg-success-600 text-white h-12"),t(f,"class","w-96 flex flex-col gap-6 mx-auto px-8 py-8 bg-surface-100 border border-surface-300"),t(f,"name","import-project"),t(g,"class","w-full")},m(r,c){Rt(r,g,c),e(g,f),e(f,$),e($,ee),e(f,A),e(f,te),e(te,je),e(f,Qe),e(f,_),e(_,re),e(re,y),e(y,Ee),e(y,We),e(y,k),e(_,Ye),e(_,I),e(_,Ze),e(_,D),ze(B,D,null),e(D,xe),e(D,ye),e(_,et),e(_,H),e(f,tt),e(f,R),e(R,ae),e(ae,S),e(S,Ie),e(R,rt),e(R,w),e(f,at),e(f,q),e(q,le),e(le,Le),e(q,lt),e(q,E),e(E,se),ze(M,se,null),e(E,st),e(E,L),ze(O,L,null),e(L,ot),e(L,Te),e(E,it),e(E,N),e(f,nt),e(f,b),e(b,oe),e(oe,Ae),e(b,pt),e(b,j),e(j,F),e(j,ft),e(j,X),e(X,De),e(j,ct),e(j,z),e(j,ut),e(j,P),ze(G,P,null),e(P,dt),e(P,Pe),e(b,mt),e(b,J),e(J,K),e(J,ht),e(J,Q),e(Q,Ve),e(b,vt),e(b,W),e(W,Y),e(W,_t),e(W,Z),e(Z,Ue),e(f,bt),e(f,x),e(x,Ce),u=!0},p(r,[c]){(!u||c&1)&&T!==(T=r[0](r[1].heading)+"")&&v(ee,T),(!u||c&1)&&ne!==(ne=r[0](r[1].intro)+"")&&v(je,ne),(!u||c&1)&&pe!==(pe=r[0](r[1].form.fields.name.label)+"")&&v(Ee,pe),(!u||c&1&&$e!==($e=r[0](r[1].form.fields.name.placeholder)))&&t(I,"placeholder",$e),(!u||c&1)&&fe!==(fe=r[0](r[1].form.fields.name.error)+"")&&v(ye,fe),(!u||c&1)&&ce!==(ce=r[0](r[1].form.fields.description.label)+"")&&v(Ie,ce),(!u||c&1&&we!==(we=r[0](r[1].form.fields.description.placeholder)))&&t(w,"placeholder",we),(!u||c&1)&&ue!==(ue=r[0](r[1].form.avatar)+"")&&v(Le,ue),(!u||c&1)&&de!==(de=r[0](r[1].form.fields.avatar.label)+"")&&v(Te,de),(!u||c&1)&&me!==(me=r[0](r[1].form.components)+"")&&v(Ae,me),(!u||c&1)&&he!==(he=r[0](r[1].form.fields.repository.label)+"")&&v(De,he),(!u||c&1&&Ne!==(Ne=r[0](r[1].form.fields.repository.placeholder)))&&t(z,"placeholder",Ne),(!u||c&1)&&ve!==(ve=r[0](r[1].form.fields.repository.hint)+"")&&v(Pe,ve),(!u||c&1)&&_e!==(_e=r[0](r[1].form.fields.issues.label)+"")&&v(Ve,_e),(!u||c&1)&&be!==(be=r[0](r[1].form.fields.pr.label)+"")&&v(Ue,be),(!u||c&1)&&ge!==(ge=r[0](r[1].form.submit)+"")&&v(Ce,ge)},i(r){u||(Ge(B.$$.fragment,r),Ge(M.$$.fragment,r),Ge(O.$$.fragment,r),Ge(G.$$.fragment,r),u=!0)},o(r){Je(B.$$.fragment,r),Je(M.$$.fragment,r),Je(O.$$.fragment,r),Je(G.$$.fragment,r),u=!1},d(r){r&&o(g),Ke(B),Ke(M),Ke(O),Ke(G)}}}function zt(a,g,f){let $;Ht(a,Ft,A=>f(0,$=A));let{data:T={}}=g;const ee={form:{avatar:"page.import_project.form.avatar",components:"page.import_project.form.components",fields:{avatar:{label:"page.import_project.form.fields.avatar.label"},description:{label:"page.import_project.form.fields.description.label",placeholder:"page.import_project.form.fields.description.placeholder"},issues:{label:"page.import_project.form.fields.issues.label"},name:{error:"page.import_project.form.fields.name.error",label:"page.import_project.form.fields.name.label",placeholder:"page.import_project.form.fields.name.placeholder"},pr:{label:"page.import_project.form.fields.pr.label"},repository:{hint:"page.import_project.form.fields.repository.hint",label:"page.import_project.form.fields.repository.label",placeholder:"page.import_project.form.fields.repository.placeholder"}},submit:"page.import_project.form.submit"},heading:"page.import_project.heading",intro:"page.import_project.intro"};return a.$$set=A=>{"data"in A&&f(2,T=A.data)},[$,ee,T]}class Gt extends Ct{constructor(g){super(),kt(this,g,zt,Xt,Bt,{data:2})}}Gt.__docgen={version:3,name:"ImportProject.svelte",data:[{keywords:[],visibility:"public",description:"Required context for populating the template.",name:"data",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"object",type:"object"}}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};export{Gt as I};