1import{S as f,_ as Y}from"./DZNNAn9B.js";import{_ as ee}from"./a5wCz1P3.js";import{_ as te}from"./T5qBib2w.js";import{ak as z,a_ as r,ab as l,f as N,b7 as q,a8 as s,aN as c,aa as d,bt as A,bu as ae,D as oe,bJ as P,b4 as w,b as re,ah as _,bK as k,bj as U,o as se,bi as e,a9 as C,bf as ne,a7 as p}from"#entry";import{_ as le,T as ie}from"./DaGfxdHB.js";import{M as ce}from"./CqXKabmX.js";import{u as ue}from"./9wt0tUJL.js";import"./ga1BAEBP.js";import"./x7EJ4buS.js";import"./B3Sq16P4.js";import"./CvnKdqYC.js";import"./DD4uOXG_.js";import"./BRb1dums.js";import"./DYU-7lbH.js";const de={class:"w-full"},me=z({__name:"Rectangle",props:{isLoading:{type:Boolean},height:{default:"165px"},widthMaxText:{default:"352px"},bgColor:{default:"#b0b1b3"},textColor:{default:"#929293"},orderImage:{default:1},numberElements:{default:8},gap:{default:"3rem"}},setup(t){return(i,u)=>t.isLoading?(r(),l("div",{key:0,class:"flex flex-col",style:c(["gap: "+t.gap])},[(r(!0),l(N,null,q(t.numberElements,y=>(r(),l("div",{key:y,role:"status",class:"space-y-8 md:space-y-0 md:flex md:items-center w-full justify-between gap-3"},[s("div",{class:"flex items-center justify-center w-full bg-gray-300 rounded-sm sm:w-96",style:c(["background-color: "+t.bgColor,"height: "+t.height,"order: "+t.orderImage])},[(r(),l("svg",{class:"w-10 h-10",style:c(["background-color: "+t.bgColor,"color: "+t.textColor]),"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 18"},[...u[0]||(u[0]=[s("path",{d:"M18 0H2a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2Zm-5.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Zm4.376 10.481A1 1 0 0 1 16 15H4a1 1 0 0 1-.895-1.447l3.5-7A1 1 0 0 1 7.468 6a.965.965 0 0 1 .9.5l2.775 4.757 1.546-1.887a1 1 0 0 1 1.618.1l2.541 4a1 1 0 0 1 .028 1.011Z"},null,-1)])],4))],4),s("div",de,[s("div",{class:"h-2.5 rounded-full mb-4",style:c(["background-color: "+t.bgColor,"width: calc("+t.widthMaxText+" - 60px)"])},null,4),s("div",{class:"h-2 rounded-full mb-2.5",style:c(["background-color: "+t.bgColor,"width: calc("+t.widthMaxText+" - 20px)"])},null,4),s("div",{class:"h-2 rounded-full mb-2.5",style:c(["background-color: "+t.bgColor,,"width: calc("+t.widthMaxText+" - 30px)"])},null,4),s("div",{class:"h-2 rounded-full mb-2.5",style:c(["background-color: "+t.bgColor,"width: calc("+t.widthMaxText+" - 10px)"])},null,4),s("div",{class:"h-2 rounded-full w-full mb-2.5",style:c(["background-color: "+t.bgColor])},null,4)])]))),128))],4)):d("",!0)}}),ge=Object.assign(me,{__name:"WidgetShapesRectangle"}),fe={class:"pr-2 sticky-content z-10 pb-6"},he={key:0},pe={key:0},ye={key:0},xe={key:0,class:"flex flex-col"},be={class:"pt-2 sticky-content"},D="L'Azione",ve="/img/lazione.png",Ne=z({__name:"[...slug]",async setup(t){let i,u;const y=["ricerca","news","notizie","notizia"];ce.setMetaAndMarkupSchemaFromCustomMeta({title:"Ricerca - "+D,description:"Pagina della ricerca per "+D,keywords:y,cover:ve});const m=w(!1),h=A().params.slug||[],E=ae(),x=A().query,b=oe.DATE,{data:S}=([i,u]=P(()=>U("mostread-stories"+h,()=>se.fetchSectionList(),"$4x2MpI1LK0")),i=await i,u(),i),M=w(j()),o=w($()),{fourOfour:T}=ue([],x),{data:v}=([i,u]=P(async()=>U(`search-stories-${h}`,async()=>{try{const a=await f.doSearch(o.value,f.getPageFromUrl(x,h),"/api/naxos/search",m,b);return!a||a.status==="ko"?(console.error("Failed to fetch articles stories:",a?.message),T("Resource"),null):a}catch(a){return console.error("Error fetching section stories:",a),T("Resource"),null}})),i=await i,u(),i),F=new Date;F.setDate(F.getDate()-70);const R=p(()=>v.value?.data||[]),n=p(()=>v.value?.meta?.pagination);function V(a){L(o.value,a)}async function L(a,g=1){await f.performSearch(a,g,"/ricerca",m,o,E,"/api/naxos/search",b,v)}function $(){const a=M.value.filter(g=>!("isTree"in g));return f.getParamsFromUrl(x,h,a)}function j(){const a=[];return S.value?.data&&a.push(f.getSectionListFilter(S.value.data,"SelectMultyValue",!1)),a}const I=p(()=>m.value?!1:o.value.query||o.value.date||o.value.dateTo||o.value.dateFrom||o.value.filters),H=p(()=>n.value?n.value.totals==0?"Nessun risultato trovato":n.value.totals==1?"1 risultato trovato":n.value.totals>1?`${n.value.totals} risultati trovati `:"":""),B=re.getMultimediaBannerFromTag("ricerca");return(a,g)=>{const W=Y,Z=ee,K=te,O=ge,J=ie,G=le;return r(),l("div",null,[g[0]||(g[0]=s("div",{class:"px-2 py-4 text-4xl border-b-2 merriweather"},"Cerca notizie",-1)),_(G,{breakpoint:"lg",order:["sx","center","dx"],class:"pt-4 gap-6"},{sx:k(()=>[s("div",fe,[_(W,{"has-date-from":!0,"has-date-to":!0,"has-date":!1,"has-range-choice":!1,"date-type":e(b),"starting-text":e(o).query,"starting-date-from":e(o).dateFrom,"starting-date-to":e(o).dateTo,"starting-date":e(o).date,"starting-filter":e(o).filters,filters:e(M),"common-input-params":{textColor:"#666",labelColorFocus:"#ef4444"},onSearch:L},null,8,["date-type","starting-text","starting-date-from","starting-date-to","starting-date","starting-filter","filters"]),!e(m)&&e(I)?(r(),l("div",he,[e(n)?(r(),l("span",pe,ne(e(H)),1)):d("",!0)])):d("",!0)])]),center:k(()=>[e(m)?d("",!0):(r(),l("div",ye,[e(R).length>0?(r(),l("div",xe,[(r(!0),l(N,null,q(e(R),(Q,X)=>(r(),C(Z,{key:X,story:Q,"show-image":!0,"show-location-badge":!0,"badge-color-class":"bg-gray-200","show-content":!0,"only-leaf":!0},null,8,["story"]))),128))])):d("",!0),e(n)&&e(n)?.pages>1?(r(),C(K,{key:1,current:e(n)?.current,pages:e(n)?.pages||1,onChangepage:V},null,8,["current","pages"])):d("",!0)])),_(O,{"is-loading":e(m)},null,8,["is-loading"])]),dx:k(()=>[s("div",be,[e(B)?(r(),C(J,{key:0,items:[e(B)]},null,8,["items"])):d("",!0)])]),_:1})])}}});
1export{Ne 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.