1import{_ as h}from"./C9cJZuIU.js";import{h as g,c as r,o as d,a as e,b as u,f as i,t as _,F as v,l as x,m as b,j as y,r as $,k}from"./C2Ppb7Bp.js";import{_ as A}from"./DlAUqK2U.js";import{A as S}from"./ZuwKHSkC.js";const w={class:"hero","data-aos":"fade"},D={class:"hero-bg"},I={class:"bg-content container"},L={class:"p-top-150 p-bottom-150 text-body text-center"},M={class:"display-4 hero-title"},N={class:"fs-5 d-md-inline-flex align-items-center hero-desc"},B={class:"d-inline-flex align-items-center me-lg-4 mt-lg-3"},H={class:"d-inline-block me-lg-4"},j={class:"d-inline-block me-4"},E={class:"pt-5 pb-5 bg-gray-gradient"},F={class:"container"},R={class:"row g-0"},T={class:"col-12"},U={class:"pe-xxl-4 me-xxl-2"},V={class:"card border-0 p-xxl-2 shadow-sm mb-4","data-aos":"fade"},q={class:"card-body"},z={class:"post-content mb-4"},C=["innerHTML"],O={__name:"ArticleInfo",props:{article:{type:Object,required:!1}},setup(s){const a=g().public.api_url;function m(t){let n=t.split(/\r\n|\r|\n/gi);t="";for(var o=0;o<n.length;o++)t+="<p>"+n[o]+"</p>";return t}function l(t){return new Date(t).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}return(t,n)=>{const o=h;return d(),r(v,null,[e("section",w,[e("div",D,[u(o,{src:`${i(a)}/images${s.article.image}?&fit=crop`,srcset:`${i(a)}/images${s.article.image}?&fit=crop 2x`,alt:s.article.title,loading:"lazy"},null,8,["src","srcset","alt"])]),e("div",I,[e("div",L,[e("h1",M,_(s.article.title),1),e("div",N,[e("div",B,[e("div",H,[n[0]||(n[0]=e("i",{class:"hicon hicon-menu-calendar me-1"},null,-1)),e("span",null,_(l(s.article.created)),1)]),e("div",j,[n[1]||(n[1]=e("i",{class:"hicon hicon-flights-pin me-1"},null,-1)),e("span",null,_(s.article.destination.name),1)])])])])])]),e("section",E,[e("div",F,[e("div",R,[e("div",T,[e("div",U,[e("div",V,[e("div",q,[e("div",z,[e("p",{innerHTML:m(s.article.body)},null,8,C)])])])])])])])])],64)}}},P={},G={id:"preloader"};function J(s,c){return d(),r("div",G,[...c[0]||(c[0]=[e("div",{class:"spinner-border text-primary",role:"status"},[e("span",{class:"visually-hidden"},"Loading...")],-1)])])}const K=A(P,[["render",J]]),Q={key:0},W={key:1},se={__name:"[slug]",setup(s){const c=x().$langMap?.[b().locale.value],a=new S(c),l=y().params.slug;console.log("Slug:",l);let t=$(null);return g().public.api_url,k(async()=>{try{t.value=await a.getArticle(l),console.log("article:",t.value.article)}catch(o){console.error("Errore nel caricamento di article:",o)}}),(o,X)=>{const p=O,f=K;return i(t)&&i(t).article?(d(),r("div",Q,[u(p,{article:i(t).article},null,8,["article"])])):(d(),r("div",W,[u(f)]))}}};export{se 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.