1import{s as Be,n as qe,r as Se}from"../chunks/CXWvASmv.js";import{S as Ue,i as ke,d,u as g,s as Te,a as ye,b as t,p as Y,w as Re,k as e,c as r,e as h,m as N,g as p,f as Ae,h as n,j as b,t as Ne}from"../chunks/m7XIqE8e.js";import{e as Ye}from"../chunks/DfBlkqaH.js";function Fe(a){let u,s;return{c(){u=n("p"),s=Ne(a[8]),this.h()},l(l){u=r(l,"P",{class:!0});var i=h(u);s=Ae(i,a[8]),i.forEach(d),this.h()},h(){e(u,"class","mt-4 text-red-600 svelte-bvvwqz")},m(l,i){ye(l,u,i),t(u,s)},p(l,i){i&256&&Te(s,l[8])},d(l){l&&d(u)}}}function Me(a){let u,s="â
Your contribution request was sent successfully!";return{c(){u=n("p"),u.textContent=s,this.h()},l(l){u=r(l,"P",{class:!0,"data-svelte-h":!0}),N(u)!=="svelte-18povfh"&&(u.textContent=s),this.h()},h(){e(u,"class","mt-4 text-green-600 svelte-bvvwqz")},m(l,i){ye(l,u,i)},p:qe,d(l){l&&d(u)}}}function Oe(a){let u,s,l,i,j="Become a Contributor",D,_,w,C,K="Your Name*",F,m,J,V,I,ee="Your Email*",Q,E,W,T,z,te="Project Name*",Z,q,ce,B,M,S,Ie="Institution",fe,P,pe,O,U,ze="Principal Investigator",be,L,me,X,k,Pe="Project URL",he,y,_e,H,R,Le="Additional Comments",Ce,x,ge,A,$=a[9]?"Sending...":"Submit",le,we,Ee,xe;function je(o,c){if(o[7])return Me;if(o[8])return Fe}let G=je(a),v=G&&G(a);return{c(){u=n("div"),s=n("div"),l=n("form"),i=n("h2"),i.textContent=j,D=b(),_=n("div"),w=n("div"),C=n("label"),C.textContent=K,F=b(),m=n("input"),J=b(),V=n("div"),I=n("label"),I.textContent=ee,Q=b(),E=n("input"),W=b(),T=n("div"),z=n("label"),z.textContent=te,Z=b(),q=n("input"),ce=b(),B=n("div"),M=n("div"),S=n("label"),S.textContent=Ie,fe=b(),P=n("input"),pe=b(),O=n("div"),U=n("label"),U.textContent=ze,be=b(),L=n("input"),me=b(),X=n("div"),k=n("label"),k.textContent=Pe,he=b(),y=n("input"),_e=b(),H=n("div"),R=n("label"),R.textContent=Le,Ce=b(),x=n("textarea"),ge=b(),A=n("button"),le=Ne($),we=b(),v&&v.c(),this.h()},l(o){u=r(o,"DIV",{class:!0});var c=h(u);s=r(c,"DIV",{class:!0});var De=h(s);l=r(De,"FORM",{class:!0});var f=h(l);i=r(f,"H2",{class:!0,"data-svelte-h":!0}),N(i)!=="svelte-1obhyvm"&&(i.textContent=j),D=p(f),_=r(f,"DIV",{class:!0});var se=h(_);w=r(se,"DIV",{});var re=h(w);C=r(re,"LABEL",{for:!0,class:!0,"data-svelte-h":!0}),N(C)!=="svelte-qdrf64"&&(C.textContent=K),F=p(re),m=r(re,"INPUT",{id:!0,type:!0,class:!0}),re.forEach(d),J=p(se),V=r(se,"DIV",{});var ne=h(V);I=r(ne,"LABEL",{for:!0,class:!0,"data-svelte-h":!0}),N(I)!=="svelte-1akj7n4"&&(I.textContent=ee),Q=p(ne),E=r(ne,"INPUT",{id:!0,type:!0,class:!0}),ne.forEach(d),se.forEach(d),W=p(f),T=r(f,"DIV",{});var ue=h(T);z=r(ue,"LABEL",{for:!0,class:!0,"data-svelte-h":!0}),N(z)!=="svelte-uo9sz8"&&(z.textContent=te),Z=p(ue),q=r(ue,"INPUT",{id:!0,type:!0,class:!0}),ue.forEach(d),ce=p(f),B=r(f,"DIV",{class:!0});var oe=h(B);M=r(oe,"DIV",{});var ae=h(M);S=r(ae,"LABEL",{for:!0,class:!0,"data-svelte-h":!0}),N(S)!=="svelte-51duxd"&&(S.textContent=Ie),fe=p(ae),P=r(ae,"INPUT",{id:!0,type:!0,class:!0}),ae.forEach(d),pe=p(oe),O=r(oe,"DIV",{});var ie=h(O);U=r(ie,"LABEL",{for:!0,class:!0,"data-svelte-h":!0}),N(U)!=="svelte-1x5wmn5"&&(U.textContent=ze),be=p(ie),L=r(ie,"INPUT",{id:!0,type:!0,class:!0}),ie.forEach(d),oe.forEach(d),me=p(f),X=r(f,"DIV",{});var de=h(X);k=r(de,"LABEL",{for:!0,class:!0,"data-svelte-h":!0}),N(k)!=="svelte-o52nae"&&(k.textContent=Pe),he=p(de),y=r(de,"INPUT",{id:!0,type:!0,placeholder:!0,class:!0}),de.forEach(d),_e=p(f),H=r(f,"DIV",{});var ve=h(H);R=r(ve,"LABEL",{for:!0,class:!0,"data-svelte-h":!0}),N(R)!=="svelte-ol1588"&&(R.textContent=Le),Ce=p(ve),x=r(ve,"TEXTAREA",{id:!0,rows:!0,class:!0}),h(x).forEach(d),ve.forEach(d),ge=p(f),A=r(f,"BUTTON",{type:!0,class:!0});var Ve=h(A);le=Ae(Ve,$),Ve.forEach(d),we=p(f),v&&v.l(f),f.forEach(d),De.forEach(d),c.forEach(d),this.h()},h(){e(i,"class","mb-3 text-xl font-medium"),e(C,"for","name"),e(C,"class","mb-3.5 svelte-bvvwqz"),e(m,"id","name"),e(m,"type","text"),m.required=!0,e(m,"class","mt-1 w-full rounded border-ctgblue p-2 svelte-bvvwqz"),e(I,"for","email"),e(I,"class","mb-3.5 svelte-bvvwqz"),e(E,"id","email"),e(E,"type","email"),E.required=!0,e(E,"class","mt-1 w-full rounded border-ctgblue p-2 svelte-bvvwqz"),e(_,"class","grid grid-cols-1 gap-6 md:grid-cols-2"),e(z,"for","project"),e(z,"class","mb-3.5 svelte-bvvwqz"),e(q,"id","project"),e(q,"type","text"),q.required=!0,e(q,"class","mt-1 w-full rounded border-ctgblue p-2 svelte-bvvwqz"),e(S,"for","institution"),e(S,"class","mb-3.5 svelte-bvvwqz"),e(P,"id","institution"),e(P,"type","text"),e(P,"class","mt-1 w-full rounded border-ctgblue p-2 svelte-bvvwqz"),e(U,"for","pi"),e(U,"class","mb-3.5 svelte-bvvwqz"),e(L,"id","pi"),e(L,"type","text"),e(L,"class","mt-1 w-full rounded border-ctgblue p-2 svelte-bvvwqz"),e(B,"class","grid grid-cols-1 gap-6 md:grid-cols-2"),e(k,"for","url"),e(k,"class","mb-3.5 svelte-bvvwqz"),e(y,"id","url"),e(y,"type","url"),e(y,"placeholder","https://example.com (optional)"),e(y,"class","mt-1 w-full rounded border-ctgblue p-2 svelte-bvvwqz"),e(R,"for","comments"),e(R,"class","mb-3.5 svelte-bvvwqz"),e(x,"id","comments"),e(x,"rows","4"),e(x,"class","mt-1 w-full rounded border-ctgblue p-2 svelte-bvvwqz"),e(A,"type","submit"),e(A,"class","rounded-md border border-ctgblue border-slate-800 bg-ctgorange px-4 py-2 font-mono hover:underline"),A.disabled=a[9],e(l,"class","svelte-bvvwqz"),e(s,"class","mb-4 w-full max-w-6xl rounded-lg bg-ctgtan p-4"),e(u,"class","flex justify-center px-4")},m(o,c){ye(o,u,c),t(u,s),t(s,l),t(l,i),t(l,D),t(l,_),t(_,w),t(w,C),t(w,F),t(w,m),g(m,a[0]),t(_,J),t(_,V),t(V,I),t(V,Q),t(V,E),g(E,a[1]),t(l,W),t(l,T),t(T,z),t(T,Z),t(T,q),g(q,a[2]),t(l,ce),t(l,B),t(B,M),t(M,S),t(M,fe),t(M,P),g(P,a[3]),t(B,pe),t(B,O),t(O,U),t(O,be),t(O,L),g(L,a[4]),t(l,me),t(l,X),t(X,k),t(X,he),t(X,y),g(y,a[5]),t(l,_e),t(l,H),t(H,R),t(H,Ce),t(H,x),g(x,a[6]),t(l,ge),t(l,A),t(A,le),t(l,we),v&&v.m(l,null),Ee||(xe=[Y(m,"input",a[11]),Y(E,"input",a[12]),Y(q,"input",a[13]),Y(P,"input",a[14]),Y(L,"input",a[15]),Y(y,"input",a[16]),Y(x,"input",a[17]),Y(l,"submit",Re(a[10]))],Ee=!0)},p(o,[c]){c&1&&m.value!==o[0]&&g(m,o[0]),c&2&&E.value!==o[1]&&g(E,o[1]),c&4&&q.value!==o[2]&&g(q,o[2]),c&8&&P.value!==o[3]&&g(P,o[3]),c&16&&L.value!==o[4]&&g(L,o[4]),c&32&&y.value!==o[5]&&g(y,o[5]),c&64&&g(x,o[6]),c&512&&$!==($=o[9]?"Sending...":"Submit")&&Te(le,$),c&512&&(A.disabled=o[9]),G===(G=je(o))&&v?v.p(o,c):(v&&v.d(1),v=G&&G(o),v&&(v.c(),v.m(l,null)))},i:qe,o:qe,d(o){o&&d(u),v&&v.d(),Ee=!1,Se(xe)}}}const Xe="contributor";function He(a,u,s){let l="",i="",j="",D="",_="",w="",C="",K=!1,F="",m=!1;const J=async z=>{z.preventDefault(),s(7,K=!1),s(8,F=""),s(9,m=!0);const te=`Contribution Request Received: ${j||"No Project Provided"}`,Z={name:l,email:i,project:j,institution:D,pi:_,url:w,comments:C,subject:te,formType:Xe,isContributor:!0,isConsultation:!1};try{await Ye.send("service_s513c3i","template_nqj4aum",Z,"5SbE9iKVe1cS7XMy2"),s(7,K=!0),s(0,l=s(1,i=s(2,j=s(3,D=s(4,_=s(5,w=s(6,C="")))))))}catch(q){s(8,F="â Failed to send message. Please try again later."),console.error("Error:",q)}finally{s(9,m=!1)}};function V(){l=this.value,s(0,l)}function I(){i=this.value,s(1,i)}
1function ee(){j=this.value,s(2,j)}function Q(){D=this.value,s(3,D)}function E(){_=this.value,s(4,_)}function W(){w=this.value,s(5,w)}function T(){C=this.value,s(6,C)}return[l,i,j,D,_,w,C,K,F,m,J,V,I,ee,Q,E,W,T]}class Qe extends Ue{constructor(u){super(),ke(this,u,He,Oe,Be,{})}}export{Qe as component};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.