1import{_ as e}from"./D-RldQQf.js";import{_ as t}from"./ChkrxD6P.js";import{_ as a}from"./CzpXCgoG.js";import{_ as l}from"./B1nR-qft.js";import{k as n,u as s,z as i,s as o,g as r,e as p,f as g,o as c,l as d,d as u,n as m,q as h,af as x,p as _,t as b,a as f}from"./BWonlb6V.js";const y={key:0,class:h(["bg-white absCenter w-screen h-full z-0"])},v={class:h(["w-full relative block z-1"])},$=["innerHTML"],w={key:1,class:h(["leading-none py-10 px-25 inline-flex items-center text-11 sm:leading-[23px] sm:text-16 font-bold transition duration-300 ease-in-out rounded-[8px] bg-transparent text-white mb-hgap mdd:hidden"]),innerHTML:"Â "},k={class:"text-11 font-semibold md:text-16 pt-hgap pb-0 flex gap-hgap items-center justify-start"},L=["innerHTML"],M=["innerHTML"],T={class:"title-24 mt-hgap leading-1"},H=["innerHTML"],z=["innerHTML"],S=["innerHTML"],j={__name:"TemplatesArchiveEvents",props:{data:Object,payload:String,whiteBg:Boolean},setup(j){const B=j,D=n(),{locale:N}=s(),O=i(),J=f(),C=o(()=>O.isLessThan("sm")),E=B.payload?JSON.parse(B.payload):{},q=(e,t)=>{const a=new Date(e),l=a.getDate(),n=a.getMonth()+1,s=new Date(t),i=s.getDate(),o=s.getMonth()+1;if(l!==i||l===i&&n!==o)return`${a.toLocaleDateString(N.value)} > ${s.toLocaleDateString(N.value)}`;const r=a.getHours(),p=a.getMinutes().toString().padStart(2,"0"),g=s.getHours(),c=s.getMinutes().toString().padStart(2,"0");return`${a.toLocaleDateString(N.value)} | ${r}:${p} - ${g}:${c}`},A=e=>{let t="";return t="ambiente"===e?"ambiente-it-logo-white.png":`${e}-logo-white.png`,`${J.public.siteUrl}/${t}`};return(n,s)=>{const i=e,o=t,f=a,B=l;return g(E)?.slug?(c(),r(B,{key:0,class:h(["relative w-full flex flex-col",{"py-gap":j.whiteBg}])},{default:d(()=>[j.whiteBg?(c(),u("div",y)):p("",!0),m("article",v,[x(n.$slots,"default"),j.data?.type?.multilang_title&&!g(C)&&(g(E)?.logo_select||g(E)?.medias?.event_relator_image?.[0]?.original)?(c(),u("span",{key:0,class:h(["px-25 inline-flex items-center text-11 font-bold py-hhgap leading-[16.5px] uppercase tracking-wide transition duration-300 ease-in-out rounded-[8px] bg-accent text-white mb-hgap"]),innerHTML:JSON.parse(j.data.type.multilang_title)?.[n.$i18n.locale]},null,8,$)):(c(),u("span",w)),_(f,{class:"relative block opacity-100 hover:opacity-70 transition-opacity duration-400",to:g(D)({name:"events-slug",params:{slug:g(E)?.slug?.[n.$i18n.locale]}})},{default:d(()=>{return[_(i,{class:h(["w-full object-cover rounded-2xl z-1"]),size:"original",imgName:"event_image",datas:g(E),noBase:!0},null,8,["datas"]),g(E)?.medias?.event_relator_image?.[0]?.original?(c(),r(i,{key:0,class:"w-[113px] max-w-1/3 h-auto block absolute rounded-full top-hhgap left-hhgap z-[3] border-3 border-white",size:"original",imgName:"event_relator_image",datas:g(E),noLazy:!0,noBase:!0},null,8,["datas"])):p("",!0),g(E)?.logo_select&&"nessuno"!==g(E)?.logo_select?(c(),r(o,{key:1,preload:"",class:"h-[35px] w-auto absolute block bottom-hhgap left-hhgap z-[3]",loading:"lazy",src:A(g(E)?.logo_select),alt:(e=g(E)?.logo_select,`${e} logo`)},null,8,["src","alt"])):p("",!0)];var e}),_:1},8,["to"]),m("p",k,[m("span",{innerHTML:q(g(E)?.start,g(E)?.end)},null,8,L),j.data?.type?.multilang_title&&g(C)&&(g(E)?.logo_select||g(E)?.medias?.event_relator_image?.[0]?.original)?(c(),u("span",{key:0,class:h(["py-4 px-10 inline-flex items-center text-12 leading-[20px] transition duration-300 ease-in-out rounded-[5px] bg-accent text-white"]),innerHTML:JSON.parse(j.data.type.multilang_title)?.[n.$i18n.locale]},null,8,M)):p("",!0)]),m("h2",T,b(g(E)?.title?.[n.$i18n.locale]),1),g(E)?.event_place?.[n.$i18n.locale]?(c(),u("span",{key:2,class:"block text-12 leading-[20px] md:text-14 font-bold md:leading-[23px]",innerHTML:g(E)?.event_place?.[n.$i18n.locale]},null,8,H)):p("",!0),g(E)?.event_short_desc?.[n.$i18n.locale]?(c(),u("span",{key:3,class:"block text-12 leading-[20px] md:text-14 md:leading-[23px] mt-hhgap",innerHTML:g(E)?.event_short_desc?.[n.$i18n.locale]},null,8,z)):p("",!0),_(f,{class:h(["block mt-hhgap"]),to:g(D)({name:"events-slug",params:{slug:g(E)?.slug?.[n.$i18n.locale]}})},{default:d(()=>[m("span",{class:h(["text-blue hover:text-black font-bold uppercase text-11 underline transition-all duration-400 tracking-wide mt-hhgap"]),innerHTML:n.$t("readMoreTxt")},null,8,S)]),_:1},8,["to"])])]),_:3},8,["class"])):p("",!0)}}};export{j as _};
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.