1import{E as $,P as D,J as Y,d as C,G as h,w as j,f as o,u,j as _,t as p,F as E,m as R,v as f,R as v,r as b,l as n,q as B,i as F,_ as L}from"./CLmFMXpF.js";import{u as M}from"./D3cnIT2R.js";import{u as g}from"./CcK3g1Mx.js";const N={class:"px-10 pb-10 grid gap-y-5 min-h-[calc(_100vh_-_333px_)]"},q={key:0},A={key:0,class:"grid grid-cols-1 lg:gap-y-8 gap-y-4"},G={key:0,class:"flex gap-x-3 text-16 text-gray-700"},S={class:"text-gray-900 text-18"},H={key:1},T={__name:"ricerca",async setup(J){let e,r;$({title:"Ricerca - Confindustria Veneto Est"});const y=D();M(),Y();const l=C(()=>y.query.keyword),{data:k}=([e,r]=h(()=>v(`https://content.confindustriavenest.it/wp-json/cve/news?search="${l.value}"`,"$ujyG_hO-xD")),e=await e,r(),e),{data:c}=([e,r]=h(()=>v(`https://content.confindustriavenest.it/wp-json/cve/desk-europa?search="${l.value}"`,"$mkRLteA7qQ")),e=await e,r(),e);j(l,async(t,s)=>{t!==s&&(k.value=await $fetch(`https://content.confindustriavenest.it/wp-json/cve/news?search="${t}"`),c.value=await $fetch(`https://content.confindustriavenest.it/wp-json/cve/rassegna?search="${t}"`))});const i=b(0);function m(t){i.value===t?i.value=0:i.value=t}function x(t){let s;if(t.includes(",")){const d=/,.*$/,a=t.replace(d,"");s=g(a,"DD/MM/YYYY")}else s=g(t,"DD/MM/YYYY");return s.value}return(t,s)=>{const d=L;return n(),o("div",N,[u(c).length>0?(n(),o("div",q,[_("button",{onClick:s[0]||(s[0]=a=>m(2)),class:"text-28 text-gray-900 lg:mb-6 text-left"}," Desk Europa (trovati "+p(u(c).length)+" documenti) ",1),u(i)===2?(n(),o("div",A,[(n(!0),o(E,null,R(u(c),(a,w)=>(n(),B(d,{key:w,to:a.linkurl,target:"_blank"},{default:F(()=>[a.ndata?(n(),o("div",G,[_("p",null,p(x(a?.ndata)),1)])):f("",!0),_("p",S,p(a?.post_title),1)]),_:2},1032,["to"]))),128))])):f("",!0)])):(n(),o("h2",H,"Nessun risultato"))])}}};export{T 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.