Anvil/assets/ImportProject-d2068be3.js
André Jaenisch 8c2df13ab6
Updates
2024-03-15 11:40:39 +01:00

1 line
9.5 KiB
JavaScript

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