1import{p as B,Q as H,u as R,A as G,c as x,a as t,g as y,b as a,F as O,d as b,w as i,k as Y,h as J,o as h,i as K,N as Q,j as X,K as Z,n as T,s as d,t as _}from"./DbfHA8MV.js";import{_ as ee}from"./B6x3R7Wg.js";import{_ as te}from"./rdaSZmD_.js";import{_ as ae}from"./B-DgmWu8.js";import{_ as le}from"./BN2F2iYJ.js";import{_ as oe}from"./2cGHM1Sx.js";import{u as se}from"./DzYWTBSO.js";import{o as re,s as V}from"./CAIa7X-A.js";import"./DLIKFUPq.js";import"./JmDm_dP0.js";const ie=B("/videos/iedc-2026.mp4"),ne={class:"flex min-h-screen items-center justify-center bg-neutral-100 px-4 py-10 sm:px-6"},ue={class:"w-full max-w-2xl rounded-3xl border border-neutral-200 bg-white p-6 shadow-lg shadow-neutral-200/50 sm:p-10","aria-labelledby":"survey-title"},de={key:0,class:"py-10 text-center",role:"status"},me={class:"relative mb-8"},ce={class:"mt-3 flex items-center justify-between gap-4"},pe={class:"text-sm"},fe={class:"mt-1 text-neutral-500"},ye=["aria-label","aria-valuenow"],be={class:"size-11 -rotate-90",viewBox:"0 0 48 48","aria-hidden":"true"},he=["stroke-dasharray"],ve={class:"grid gap-6 sm:grid-cols-2"},E=300,w=500,p=1e3,Ce=H({__name:"iedc-2026",setup(ge){R({title:"IEDC 2026 Survey | Revby",meta:[{name:"description",content:"Share what you read in 2026 that had the biggest impact on your work."}]});const M=se(),C=G(),k=y(null),m=y(!0),I=()=>{const o=k.value;o&&(o.paused?o.play().catch(()=>{m.value=!1}):o.pause())},c=(o,e)=>V().trim().min(1,`${o} is required.`).max(e,`${o} must be ${e} characters or fewer.`),U=re({title:c("Title",500),publication:V().trim().max(500,"Publication must be 500 characters or fewer."),whyItMattered:c("Why it mattered to you",p),firstName:c("First name",100),lastName:c("Last name",100),organization:c("Organization",200),jobTitle:c("Job title",200),email:V().trim().min(1,"Email is required.").email("Enter a valid email address.").max(320,"Email must be 320 characters or fewer.")}),l=Z({title:"",publication:"",whyItMattered:"",firstName:"",lastName:"",organization:"",jobTitle:"",email:""}),r=d(()=>l.whyItMattered.length),$=d(()=>Math.min(Math.round(r.value/w*100),100)),v=d(()=>r.value>w),P=d(()=>r.value?v.value?"text-red-500":"text-primary-500":"text-neutral-400"),j=d(()=>r.value>=p?"Maximum character limit reached":v.value?"Longer than suggested, but you can keep going.":r.value>=E?"Greatâthis is a helpful level of detail.":"Aim for 3-4 sentences (about 300â500 characters)."),L=d(()=>v.value?"font-medium text-red-600":r.value>=E?"font-medium text-primary-700":"text-neutral-600"),W=d(()=>r.value>=p?`${p} character maximum reached`:v.value?`${r.value} characters, longer than the suggested 500 characters`:`${r.value} of 500 suggested characters`),f=y(!1),g=y(""),z=y(!1),q=async o=>{if(!f.value){f.value=!0,g.value="";try{const{error:e}=await M.from("survey_iedc_2026").insert({title:o.data.title,publication:o.data.publication||null,why_it_mattered:o.data.whyItMattered,first_name:o.data.firstName,last_name:o.data.lastName,organization:o.data.organization,job_title:o.data.jobTitle,email:o.data.email.toLowerCase()});if(e)throw e;z.value=!0,C.add({title:"Thanks! We received your response.",color:"success"})}catch(e){console.error("Failed to submit IEDC 2026 survey",e),g.value="Please try again in a moment."}finally{f.value=!1}}};return(o,e)=>{const S=K,N=J,u=ee,n=te,D=ae,F=le,A=oe;return h(),x("main",ne,[t("section",ue,[z.value?(h(),x("div",de,[a(S,{name:"i-lucide-check-circle",class:"mx-auto mb-4 size-14 text-success-500"}),e[10]||(e[10]=t("h2",{class:"text-2xl font-bold text-neutral-950 sm:text-3xl"}
1," Thank you! ",-1)),e[11]||(e[11]=t("p",{class:"mt-3 text-base text-neutral-600 sm:text-lg"}," We received your response. ",-1))])):(h(),x(O,{key:1},[t("div",me,[t("video",{ref_key:"surveyVideo",ref:k,class:"aspect-video w-full rounded-2xl border-0 bg-white object-cover",autoplay:"",loop:"",muted:"",playsinline:"",preload:"metadata","aria-label":"Introduction to the IEDC 2026 survey",onPlay:e[0]||(e[0]=s=>m.value=!0),onPause:e[1]||(e[1]=s=>m.value=!1)},[...e[12]||(e[12]=[t("source",{src:ie,type:"video/mp4"},null,-1),b(" Your browser does not support embedded videos. ",-1)])],544),a(N,{type:"button",color:"neutral",variant:"soft",size:"lg",square:"",icon:m.value?"i-lucide-pause":"i-lucide-play","aria-label":m.value?"Pause video":"Play video",title:m.value?"Pause video":"Play video",class:"absolute right-3 bottom-3 rounded-full shadow-lg",onClick:I},null,8,["icon","aria-label","title"])]),e[18]||(e[18]=t("div",{class:"mb-8 text-center"},[t("h1",{id:"survey-title",class:"text-3xl font-bold text-neutral-950 sm:text-4xl"},[b(" What did you read (or watch)"),t("br"),b(" that helped you the most "),t("br"),t("span",{class:"text-gradient"},"professionally"),b(" this year? ")]),t("p",{class:"mx-auto mt-6 max-w-xl text-base leading-7 text-neutral-700"}," Revby is asking economic development and entrepreneurial support professionals to share with us what you read, watched, or listened to in 2026 that had the biggest impact on your work, and why. ")],-1)),a(A,{schema:Y(U),state:l,class:"space-y-6",onSubmit:q},{default:i(()=>[e[15]||(e[15]=t("h2",{class:"text-2xl font-bold text-neutral-950"},"What you read/watched/heard",-1)),a(n,{label:"Title",name:"title",required:""},{default:i(()=>[a(u,{modelValue:l.title,"onUpdate:modelValue":e[2]||(e[2]=s=>l.title=s),class:"w-full",placeholder:"Article/Book title",size:"lg",autocomplete:"off"},null,8,["modelValue"])]),_:1}),a(n,{label:"Publication",name:"publication",hint:"Optional"},{default:i(()=>[a(u,{modelValue:l.publication,"onUpdate:modelValue":e[3]||(e[3]=s=>l.publication=s),class:"w-full",placeholder:"Where was it published?",size:"lg",autocomplete:"organization"},null,8,["modelValue"])]),_:1}),a(n,{label:"Why it mattered to you?",name:"whyItMattered",required:""},{default:i(()=>[a(D,{modelValue:l.whyItMattered,"onUpdate:modelValue":e[4]||(e[4]=s=>l.whyItMattered=s),class:"w-full",placeholder:"Tell us how it influenced your work. Why'd you like it?",rows:5,maxlength:p,size:"lg"},null,8,["modelValue"]),t("div",ce,[t("div",pe,[t("p",{class:T(L.value)},_(j.value),3),t("p",fe,_(r.value.toLocaleString())+" characters · "+_(p.toLocaleString())+" maximum ",1)]),t("div",{class:"size-11 shrink-0",role:"progressbar","aria-label":W.value,"aria-valuemin":"0","aria-valuemax":w,"aria-valuenow":Math.min(r.value,w)},[(h(),x("svg",be,[e[13]||(e[13]=t("circle",{cx:"24",cy:"24",r:"19",fill:"none",stroke:"currentColor","stroke-width":"5",class:"text-neutral-200"},null,-1)),t("circle",{cx:"24",cy:"24",r:"19",pathLength:"100",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-width":"5","stroke-dasharray":`${$.value} 100`,class:T(["transition-all duration-300",P.value])},null,10,he)]))],8,ye)])]),_:1}),e[16]||(e[16]=t("h2",{class:"!mt-10 text-2xl font-bold text-neutral-950"},"About you",-1)),t("div",ve,[a(n,{label:"First name",name:"firstName",required:""},{default:i(()=>[a(u,{modelValue:l.firstName,"onUpdate:modelValue":e[5]||(e[5]=s=>l.firstName=s),class:"w-full",size:"lg",autocomplete:"given-name"},null,8,["modelValue"])]),_:1}),a(n,{label:"Last Name",name:"lastName",required:""},{default:i(()=>[a(u,{modelValue:l.lastName,"onUpdate:modelValue":e[6]||(e[6]=s=>l.lastName=s),class:"w-full",size:"lg",autocomplete:"family-name"},null,8,["modelValue"])]),_:1})]),a(n,{label:"Organization",name:"organization",required:""},{default:i(()=>[a(u,{modelValue:l.organization,"onUpdate:modelValue":e[7]||(e[7]=s=>l.organization=s),class:"w-full",size:"lg",autocomplete:"organization"},null,8,["modelValue"])]),_:1}),a(n,{label:"Job title",name:"jobTitle",required:""},{default:i(()=>[a(u,{modelValue:l.jobTitle,"onUpdate:modelValue":e[8]||(e[8]=s=>l.jobTitle=s),class:"w-full",size:"lg",autocomplete:"organization-title"},null,8,["modelValue"])]),_:1}
1),a(n,{label:"Email",name:"email",help:"Revby will not share your email with anyone.",required:""},{default:i(()=>[a(u,{modelValue:l.email,"onUpdate:modelValue":e[9]||(e[9]=s=>l.email=s),class:"w-full",placeholder:"[email protected]",type:"email",size:"lg",autocomplete:"email"},null,8,["modelValue"])]),_:1}),g.value?(h(),Q(F,{key:0,color:"error",variant:"subtle",title:"We couldn't submit your response",description:g.value},null,8,["description"])):X("",!0),a(N,{type:"submit",class:"!mt-10 w-full justify-center text-lg font-bold",size:"lg",loading:f.value,disabled:f.value},{default:i(()=>[...e[14]||(e[14]=[b(" Submit ",-1)])]),_:1},8,["loading","disabled"]),e[17]||(e[17]=t("p",{class:"!mt-3 text-center text-sm text-neutral-500"}," This information (though not your email) may be shared with other economic development professionals. ",-1))]),_:1},8,["schema","state"])],64))])])}}});export{Ce as default};
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.