1import{_ as W}from"./CvnKdqYC.js";import{_ as H}from"./BMKjhXpd.js";import X from"./B3Sq16P4.js";import{_ as Y}from"./B4QCuwrn.js";import{_ as Z}from"./DD4uOXG_.js";import{_ as ee}from"./T5qBib2w.js";import{_ as te,T as ae}from"./DaGfxdHB.js";import{ak as se,bt as C,bu as oe,b4 as n,bv as re,bJ as M,ab as l,a8 as p,ah as r,aL as P,bi as e,f as ne,aa as c,bK as v,a7 as _,bj as R,o as le,a_ as o,a9 as x,ae as ce,b7 as ie,b as y,V as me}from"#entry";import{u as ue}from"./9wt0tUJL.js";import{M as de,B as U}from"./CqXKabmX.js";import"./DYU-7lbH.js";import"./BRb1dums.js";const pe={class:"relative z-10 bg-white w-full flex"},_e={key:1,class:"flex flex-row-reverse items-center py-1.5 ml-auto"},fe={key:0,class:"absolute left-0 z-10 bg-white shadow-lg top-full -translate-y-1.5"},ge={class:"pt-1 m-1"},he={key:0,class:"pt-2 sticky-content"},be=se({__name:"[...slug]",async setup(ve){let a,i;const f=C().params.slug||[],F=oe(),S=C().query,{folderPageUrl:T,compositeURLWithOutPagination:$,fourOfour:A}=ue(f,S),z=n(re().public.enablePlay),{data:D}=([a,i]=M(async()=>R(`folder-${f}`,async()=>{const t=await T();return t.error||!t.data?(console.error("Error fetching folder:",t.error),A("Resource"),t):{...t,meta:t.meta}})),a=await a,i(),a),s=n(D.value),w=n(s.value?.data||[]),m=_(()=>s.value?.meta?.pagination);function L(t){F.push({path:`/${$.value}/${t}`})}const u=_(()=>{const t=s.value?.meta;return t?.folder?U.getBreadcrumbs({folder:t.folder}):[]}),d=_(()=>{const t=s.value?.meta;return t?.folder?.subfolders?U.getChildrenBreadcrumbs(t.folder,"folder"):[]}),{data:B}=([a,i]=M(()=>R("mostread-stories"+f,()=>le.fetchMostreadStoriesCollaterals(),"$uQDI6DOxqA")),a=await a,i(),a);n(B.value?.data?.slice(0,Math.min(B.value?.data?.length,6))||[]);const g=_(()=>{const t=s.value?.meta;return t?.folder?.name?y.getMultimediaBannerFromTag(t.folder.name)||y.getMultimediaBannerFromTag("folder"):y.getMultimediaBannerFromTag("folder")}),h=n(!1);function N(){h.value=!h.value}return s.value?.status==="ok"&&s.value.meta&&de.setMetaFromPageProps(s.value.meta),(t,k)=>{const V=W,b=H,q=X,I=Y,O=Z,E=ee,j=ae,G=te;return o(),l("div",null,[p("div",pe,[r(V,{sections:e(u),"start-from-home":!0,class:P("py-1.5 pr-6 ")},null,8,["sections"]),e(d).length<=3?(o(),l(ne,{key:0},[r(b,{items:e(d).slice(0,2),delta:-(e(u).length+1)*10,class:"hidden p-2 sm:flex lg:hidden"},null,8,["items","delta"]),r(b,{items:e(d).slice(0,3),delta:-(e(u).length+1)*10,class:"hidden p-2 lg:flex"},null,8,["items","delta"])],64)):(o(),l("div",_e,[p("div",{class:"flex flex-row items-center cursor-pointer py-2 pl-2",onClick:N},[k[0]||(k[0]=p("span",{class:"pr-2"},"mostra altro",-1)),r(q,{class:"my-auto text-2xl cursor-pointer"})]),e(h)?(o(),l("div",fe,[r(b,{items:e(d),delta:-(e(u).length+1)*10,class:"pt-2 pb-2 pr-2"},null,8,["items","delta"])])):c("",!0)]))]),r(G,{breakpoint:"lg",order:["sx","center"],class:"pt-4 gap-6"},{center:v(()=>[p("div",ge,[e(w).length>0?(o(),x(O,{key:0,"max-items-for-row":3,"force-auto-size":!1,breakpoints:["sm","lg"],class:"mt-2"},ce({_:2},[ie(e(w),(J,K)=>({name:K,fn:v(Q=>[r(I,{multimedia:J,"show-image":!0,"show-content":!0,"show-border":!0,"show-shadow":!0,"show-tag":!0,"img-aspect":"aspect-video","enable-play":e(z),class:P(Q.customClass+"mt-2")},null,8,["multimedia","enable-play","class"])])}))]),1024)):c("",!0),e(m)&&e(m)?.pages>1?(o(),x(E,{key:1,current:e(m)?.current,pages:e(m)?.pages||1,onChangepage:L},null,8,["current","pages"])):c("",!0)])]),dx:v(()=>[e(g)?(o(),l("div",he,[e(g)?(o(),x(j,{key:0,items:[e(g)]},null,8,["items"])):c("",!0)])):c("",!0)]),_:1})])}}}),Ae=me(be,[["__scopeId","data-v-55933139"]]);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.