PageSourceSearch

https://revby.co/_nuxt/CQzybKP0.js

js revby.co collected 2026-09-25 18:19:27 UTC 3,264 bytes, 1 lines download raw bytes

1import{Q as N,cl as S,c as n,a as o,b as i,N as U,j as _,w as h,k as s,t as x,_ as D,o as r,i as E,s as y,a5 as M,z,g as B,h as j}from"./Cny-jMUR.js";import{_ as Y}from"./B-5qM8bm.js";import{_ as F}from"./sd3vO9h1.js";import{_ as V}from"./CSHkLFmR.js";import{u as A}from"./D1mNL5xR.js";import{u as J}from"./CaCvtXaR.js";import"./DgD9rLi7.js";const P={class:"bg-gray-50"},T={class:"mx-auto min-h-screen max-w-7xl p-4 pb-20 pt-16"},W={class:"mb-8 flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between"},G={key:0,class:"text-sm text-neutral-500"},H={key:0,class:"flex min-h-64 items-center justify-center"},L={key:1,class:"overflow-x-auto"},O={key:2,class:"py-12 text-center text-neutral-600"},ae=N({__name:"iedc-2026",async setup(Q){let l,p;const v=j,u=B([{id:"created_at",desc:!0}]),{data:w,error:c,pending:f}=([l,p]=S(()=>A("/api/admin/iedc-2026-survey-results","$3GbbIaJg_M")),l=await l,p(),l),d=y(()=>{var e;return((e=w.value)==null?void 0:e.results)||[]}),m=y(()=>{var e;return c.value?((e=c.value.data)==null?void 0:e.statusMessage)||c.value.statusMessage||c.value.message||"Please try again.":""}),a=e=>({column:t})=>M(v,{label:e,color:"neutral",variant:"ghost",class:"px-0 font-medium",trailingIcon:t.getIsSorted()==="asc"?"i-lucide-arrow-up":t.getIsSorted()==="desc"?"i-lucide-arrow-down":"i-lucide-arrow-up-down",onClick:()=>t.toggleSorting(t.getIsSorted()==="asc")}),b=[{accessorKey:"created_at",header:a("Submitted"),cell:({row:e})=>J(e.original.created_at,"D MMM YYYY h:mm a").value},{id:"name",accessorFn:e=>`${e.first_name} ${e.last_name}`.trim(),header:a("Name")},{accessorKey:"organization",header:a("Organization")},{accessorKey:"job_title",header:a("Job title")},{accessorKey:"email",header:a("Email")},{accessorKey:"title",header:a("Title"),meta:{class:{td:"max-w-64 whitespace-normal"}}},{accessorKey:"publication",header:a("Publication"),cell:({row:e})=>e.original.publication||"—"},{accessorKey:"why_it_mattered",header:"Why it mattered",meta:{class:{th:"min-w-96",td:"min-w-96 whitespace-normal"}}}];return(e,t)=>{const g=E,k=D,C=Y,I=F,$=V;return r(),n("div",P,[o("div",T,[i(k,{to:"/admin/surveys",class:"mb-8 inline-flex items-center gap-2 text-brand"},{default:h(()=>[i(g,{name:"i-lucide-arrow-left",class:"size-5"}),t[1]||(t[1]=o("span",null,"Surveys",-1))]),_:1}),o("div",W,[t[2]||(t[2]=o("div",null,[o("h1",{class:"text-4xl font-bold text-neutral-950 md:text-5xl"}," IEDC 2026 survey results "),o("p",{class:"mt-3 text-neutral-600"}," What economic development professionals read in 2026 and why it mattered. ")],-1)),!s(f)&&!s(m)?(r(),n("p",G,x(s(d).length)+" "+x(s(d).length===1?"response":"responses"),1)):_("",!0)]),s(m)?(r(),U(C,{key:0,icon:"i-lucide-triangle-alert",color:"error",variant:"soft",title:"Unable to load IEDC survey results",description:s(m),class:"mb-6"},null,8,["description"])):_("",!0),i($,null,{default:h(()=>[s(f)?(r(),n("div",H,[i(g,{name:"i-lucide-loader-circle",class:"size-10 animate-spin text-neutral-500"})])):s(d).length?(r(),n("div",L,[i(I,{sorting:s(u),"onUpdate:sorting":t[0]||(t[0]=K=>z(u)?u.value=K:null),data:s(d),columns:b,class:"min-w-[1200px]"},null,8,["sorting","data"])])):s(m)?_("",!0):(r(),n("div",O," No IEDC 2026 survey responses yet. "))]),_:1})])])}}});export{ae 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.