1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/PublicBlogRoute-Dy-1ph2A.js","assets/rolldown-runtime-b3L32Ng1.js","assets/vendor-react-B4z8l9H_.js","assets/avatar-HhL1kVi8.js","assets/dist-CGbUkwYB.js","assets/dist-D_hzbOva.js","assets/button-CsktFLsW.js","assets/lucideRegistry-QWKS7J2W.js","assets/tslib.es6-CWLy2mN6.js","assets/apiClient-Bt5C6hvh.js","assets/siteMigration-CmBgL-b3.js","assets/MainLayout-CmODWS99.js","assets/index-B8SbdW8y.js","assets/Footer-JMfOt5Pl.js","assets/Seo-CXtSkeDD.js","assets/blogEditorUtils-j5kFHFNw.js","assets/PreviewSite-DCmkUuyq.js","assets/iconify-UFBS8aZe.js","assets/marketingFunnelAnalytics-DxOZ1lhO.js","assets/siteInfo-_2otX5et.js","assets/Footer-_u2XxZ9c.js","assets/builderNodeOverlay-HDiqox7t.js","assets/SectionRenderer-CTNnEg2a.js","assets/publicBlogService-Dr4QKyLx.js","assets/index-CGYNX3hL.css"])))=>i.map(i=>d[i]); 2import{n as W,r as G}from"./rolldown-runtime-b3L32Ng1.js";import{_ as q,g as J,l as K,m as Q}from"./vendor-react-B4z8l9H_.js";import{t as V}from"./index-B8SbdW8y.js";import{t as Z}from"./siteMigration-CmBgL-b3.js";import{t as X}from"./PreviewSite-DCmkUuyq.js";var s=G(J()),t=Q();function _(n){const e=n.title||"Manutenzione in corso",i=n.message||"Stiamo completando gli ultimi aggiornamenti. Il sito funzionerà al più presto.";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("style",{children:` 3 .maint-root { 4 font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; 5 min-height: 100svh; 6 background-color: #080808; 7 color: #fff; 8 display: flex; 9 align-items: center; 10 justify-content: center; 11 padding: 24px; 12 position: relative; 13 overflow: hidden; 14 } 15 .maint-root::before { 16 content: ''; 17 position: absolute; 18 inset: 0; 19 background-image: 20 linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), 21 linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); 22 background-size: 48px 48px; 23 mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 100%); 24 pointer-events: none; 25 } 26 .maint-glow { 27 position: absolute; 28 top: 30%; 29 left: 50%; 30 transform: translate(-50%, -50%); 31 width: 640px; 32 height: 400px; 33 background: radial-gradient(ellipse, rgba(234,179,8,0.06) 0%, transparent 70%); 34 pointer-events: none; 35 } 36 37 /* Card */ 38 .maint-card { 39 position: relative; 40 z-index: 10; 41 width: 100%; 42 max-width: 460px; 43 background: rgba(255,255,255,0.025); 44 border: 1px solid rgba(255,255,255,0.07); 45 border-radius: 16px; 46 overflow: hidden; 47 box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.02) inset; 48 backdrop-filter: blur(32px); 49 } 50 51 /* Top strip â status bar */ 52 .maint-topstrip { 53 display: flex; 54 align-items: center; 55 justify-content: space-between; 56 padding: 14px 24px; 57 border-bottom: 1px solid rgba(255,255,255,0.05); 58 background: rgba(255,255,255,0.02); 59 } 60 .maint-status { 61 display: flex; 62 align-items: center; 63 gap: 7px; 64 } 65 .maint-status-dot { 66 width: 6px; 67 height: 6px; 68 border-radius: 50%; 69 background: #eab308; 70 box-shadow: 0 0 6px rgba(234,179,8,0.7); 71 animation: maint-pulse 2.4s ease-in-out infinite; 72 } 73 @keyframes maint-pulse { 74 0%, 100% { opacity: 1; } 75 50% { opacity: 0.4; } 76 } 77 .maint-status-label { 78 font-size: 10.5px; 79 font-weight: 500; 80 letter-spacing: 0.1em; 81 text-transform: uppercase; 82 color: rgba(255,255,255,0.3); 83 } 84 .maint-brand { 85 font-size: 11px; 86 font-weight: 500; 87 letter-spacing: 0.06em; 88 color: rgba(255,255,255,0.15); 89 text-transform: uppercase; 90 } 91 92 /* Body */ 93 .maint-body { 94 padding: 36px 32px 32px; 95 } 96 97 .maint-eyebrow { 98 font-size: 11px; 99 font-weight: 500; 100 letter-spacing: 0.08em; 101 text-transform: uppercase; 102 color: rgba(234,179,8,0.6); 103 margin: 0 0 12px; 104 } 105 106 .maint-title { 107 font-size: 26px; 108 font-weight: 600; 109 letter-spacing: -0.6px; 110 line-height: 1.15; 111 color: #fff; 112 margin: 0 0 12px; 113 } 114 115 .maint-message { 116 font-size: 13.5px; 117 font-weight: 300; 118 color: rgba(255,255,255,0.4); 119 line-height: 1.7; 120 margin: 0; 121 max-width: 340px; 122 } 123 124 /* Separator */ 125 .maint-sep { 126 height: 1px; 127 background: rgba(255,255,255,0.05); 128 margin: 28px 0; 129 } 130 131 /* Actions */ 132 .maint-actions { 133 display: flex; 134 flex-direction: column; 135 gap: 8px; 136 } 137 .maint-btn-row { 138 display: grid; 139 grid-template-columns: 1fr 1fr; 140 gap: 8px; 141 } 142 .maint-btn { 143 display: inline-flex; 144 align-items: center; 145 justify-content: center; 146 gap: 6px; 147 padding: 10px 16px; 148 border-radius: 8px; 149 font-size: 13px; 150 font-weight: 500; 151 font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; 152 cursor: pointer; 153 transition: all 0.15s ease; 154 border: none; 155 outline: none; 156 white-space: nowrap; 157 letter-spacing: -0.1px; 158 } 159 .maint-btn-primary { 160 background: #fff; 161 color: #080808; 162 } 163 .maint-btn-primary:hover { 164 background: rgba(255,255,255,0.9); 165 } 166 .maint-btn-secondary { 167 background: rgba(255,255,255,0.04); 168 color: rgba(255,255,255,0.6); 169 border: 1px solid rgba(255,255,255,0.07); 170 } 171 .maint-btn-secondary:hover { 172 background: rgba(255,255,255,0.07); 173 color: rgba(255,255,255,0.9); 174 } 175 .maint-btn-ghost { 176 background: transparent; 177 color: rgba(255,255,255,0.25); 178 width: 100%; 179 border: 1px solid rgba(255,255,255,0.05); 180 text-decoration: none; 181 font-size: 12.5px; 182 } 183 .maint-btn-ghost:hover { 184 color: rgba(255,255,255,0.55); 185 border-color: rgba(255,255,255,0.1); 186 background: rgba(255,255,255,0.03); 187 } 188 189 /* Debug */ 190 .maint-debug { 191 margin-top: 16px; 192 border-radius: 8px; 193 border: 1px solid rgba(234,179,8,0.1); 194 background: rgba(234,179,8,0.03); 195 padding: 12px 14px; 196 overflow-x: auto; 197 } 198 .maint-debug code { 199 font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; 200 font-size: 10.5px; 201 color: rgba(234,179,8,0.5); 202 white-space: pre-wrap; 203 word-break: break-all; 204 } 205 206 /* Footer */ 207 .maint-footer { 208 position: absolute; 209 bottom: 24px; 210 left: 0; 211 right: 0; 212 text-align: center; 213 font-size: 11px; 214 color: rgba(255,255,255,0.15); 215 line-height: 1.5; 216 } 217 .maint-footer span { color: rgba(255,255,255,0.3); } 218 .maint-icon { width: 15px; height: 15px; flex-shrink: 0; } 219 220 @media (max-width: 440px) { 221 .maint-body { padding: 28px 24px 24px; } 222 .maint-btn-row { grid-template-columns: 1fr; } 223 } 224 `}),(0,t.jsxs)("div",{className:"maint-root",children:[(0,t.jsx)("div",{className:"maint-glow"}),(0,t.jsxs)("div",{className:"maint-card",children:[(0,t.jsxs)("div",{className:"maint-topstrip",children:[(0,t.jsxs)("div",{className:"maint-status",children:[(0,t.jsx)("div",{className:"maint-status-dot"}),(0,t.jsx)("span",{className:"maint-status-label",children:"Aggiornamento in corso"})]}),(0,t.jsx)("span",{className:"maint-brand",children:"Digitalio"})]}),(0,t.jsxs)("div",{className:"maint-body",children:[(0,t.jsx)("p",{className:"maint-eyebrow",children:"Manutenzione"}),(0,t.jsx)("h1",{className:"maint-title",children:e}),(0,t.jsx)("p",{className:"maint-message",children:i}),(0,t.jsx)("div",{className:"maint-sep"}),(0,t.jsx)("div",{className:"maint-actions",children:(0,t.jsxs)("div",{className:"maint-btn-row",children:[(0,t.jsxs)("button",{className:"maint-btn maint-btn-secondary",onClick:()=>window.location.reload(),children:[(0,t.jsxs)("svg",{className:"maint-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8"}),(0,t.jsx)("path",{d:"M21 3v5h-5"})]}),"Riprova"]}),(0,t.jsxs)("a",{href:"mailto:[email protected]",className:"maint-btn maint-btn-secondary",children:[(0,t.jsxs)("svg",{className:"maint-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("rect",{width:"20",height:"16",x:"2",y:"4",rx:"2"}),(0,t.jsx)("path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"})]}),"Contattaci"]})]})}),n.details?(0,t.jsx)("div",{className:"maint-debug",children:(0,t.jsx)("code",{children:n.details})}):null]})]}),(0,t.jsxs)("div",{className:"maint-footer",children:["Prova ad aprire il sito senza il prefisso ",(0,t.jsx)("span",{children:"www"})," se riscontri problemi."]})]})]})}var C="",D=0;function B(){return typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`${Date.now()}-${Math.random().toString(16).slice(2)}`}function Y(n){try{const e=window.localStorage.getItem(n);if(e)return e;const i=B();return window.localStorage.setItem(n,i),i}catch{return`${Date.now()}-${Math.random().toString(16).slice(2)}`}}function ee(n){const e=`digitalio_session_${n}`,i=`${e}_expires`,o=Date.now(),l=Number(window.sessionStorage.getItem(i)||0),b=window.sessionStorage.getItem(e);if(b&&l>
224o)return window.sessionStorage.setItem(i,String(o+1800*1e3)),b;const u=B();return window.sessionStorage.setItem(e,u),window.sessionStorage.setItem(i,String(o+1800*1e3)),u}function te(n){if(["localhost","127.0.0.1"].includes(window.location.hostname)||window.self!==window.top)return;const e=`${n.id}:${window.location.pathname}:${window.location.search}`,i=Date.now();if(e===C&&i-D<1200)return;C=e,D=i;const o={siteId:n.id,pageviewId:B(),path:`${window.location.pathname}${window.location.search}`,title:document.title,referrer:document.referrer&&!document.referrer.includes(window.location.host)?document.referrer:"",host:window.location.hostname,visitorId:Y(`digitalio_visitor_${n.id}`),sessionId:ee(n.id)},l=JSON.stringify(o);if(navigator.sendBeacon){navigator.sendBeacon("/api/site-analytics/collect",new Blob([l],{type:"application/json"}));return}fetch("/api/site-analytics/collect",{method:"POST",body:l,headers:{"Content-Type":"application/json"},keepalive:!0}).catch(()=>{})}function ne({site:n}){const e=K();return(0,s.useEffect)(()=>{te(n)},[n.id,e.pathname,e.search]),null}var ye=W({default:()=>ge}),k="02559886-6d85-4233-a0d7-e177375d8d71",ie=(0,s.lazy)(()=>q(()=>import("./PublicBlogRoute-Dy-1ph2A.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]))),j=class extends Error{status;constructor(n,e){super(n),this.name="PublicApiError",this.status=e}};function I(n){return String(n||"").toLowerCase().trim().replace(/^https?:\/\//,"").replace(/\/.*$/,"").replace(/:\d+$/,"").replace(/\.$/,"")}function ae(n){return n.startsWith("www.")?n.slice(4):n}function oe(n){return n==="localhost"||n.startsWith("localhost:")}function M(n){if(!n)return null;let e=n;return e&&typeof e=="object"&&"data"in e&&e.data!==void 0&&(e=e.data),Array.isArray(e)&&(e=e[0]??null),!e||typeof e!="object"?null:e}function N(n){return String(n||"blog").toLowerCase().trim().replace(/^\/+|\/+$/g,"")||"blog"}async function $(n){const e=await fetch(n,{method:"GET",cache:"no-store",headers:{Accept:"application/json"}}),i=e.headers.get("content-type")||"",o=await e.text();let l=o;if(i.includes("application/json")&&o.trim())try{l=JSON.parse(o)}catch{l=o}if(!e.ok)throw new j(`Request failed: ${e.status}`,e.status);return l}async function E(n,e){try{const i=e?`&page_path=${encodeURIComponent(e)}`:"";return M(await $(`/api/public/site-resolve?slug=${encodeURIComponent(n)}${i}`))}catch(i){if(i instanceof j&&i.status===404)return null;throw i}}async function A(n,e){try{const i=e?`&page_path=${encodeURIComponent(e)}`:"";return M(await $(`/api/public/site-resolve?domain=${encodeURIComponent(n)}${i}`))}catch(i){if(i instanceof j&&i.status===404)return null;throw i}}async function P(n){try{return M(await $(`/api/public/site-resolve?site_id=${encodeURIComponent(n)}`))}catch(e){if(e instanceof j&&e.status===404)return null;throw e}}function re(){if(typeof window>"u")return null;const n=window.__DIGITALIO_PUBLIC_SITE_BOOTSTRAP__;if(!n?.site)return null;const e=I(window.location.hostname),i=I(n.hostname||"");return i&&i!==e?null:{...n,blogBaseSlug:N(n.blogBaseSlug)}}async function se(n){try{const e=new URLSearchParams;e.set("site_id",n),e.set("t",String(Date.now()));const i=await fetch(`/api/db/blog-settings?${e.toString()}`,{method:"GET",cache:"no-store",headers:{Accept:"application/json"}});if(!i.ok)return console.error("[SubdomainSitePage] blog-settings non ok:",i.status),null;const o=await i.json();return!o||typeof o!="object"?null:o}catch(e){return console.error("[SubdomainSitePage] errore fetch blog-settings:",e),null}}async function le(){const n=new URLSearchParams(window.location.search),e=n.get("site_id")||n.get("siteId")||"",i=n.get("site_slug")||n.get("siteSlug")||n.get("slug")||"";if(e){const o=await P(e);if(o)return o}return i?E(i):P(k)}function ce(n){const e=String(n||"").trim().split("/").filter(Boolean);if(e.length!==0)return e[0]}function de({gdpr:n}){return(0,s.useEffect)(()=>{if(n){if(n.mode==="iubenda"&&n.iubenda_site_id&&n.iubenda_policy_id){const e=document.createElement("script");e.type="text/javascript",e.innerHTML=`var _iub = _iub || [];
224 _iub.csConfiguration = {"siteId":${n.iubenda_site_id},"cookiePolicyId":${n.iubenda_policy_id},"lang":"it","localConsentDomain":"${window.location.hostname}"};`;const i=document.createElement("script");return i.type="text/javascript",i.src="//cdn.iubenda.com/cs/iubenda_cs.js",i.charset="UTF-8",i.async=!0,document.head.appendChild(e),document.head.appendChild(i),function(){document.head.contains(e)&&document.head.removeChild(e),document.head.contains(i)&&document.head.removeChild(i)}}if(n.mode==="custom_script"&&n.custom_script)try{const e=document.createRange().createContextualFragment(n.custom_script);document.head.appendChild(e)}catch(e){console.error("Errore nell'iniezione del custom script GDPR",e)}}},[n]),null}function x({name:n,className:e}){const i={alert:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{d:"m21.7 18.3-8-14a2 2 0 0 0-3.4 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.7-2.7Z"}),(0,t.jsx)("path",{d:"M12 9v4"}),(0,t.jsx)("path",{d:"M12 17h.01"})]}),"arrow-left":(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{d:"m12 19-7-7 7-7"}),(0,t.jsx)("path",{d:"M19 12H5"})]}),refresh:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{d:"M21 12a9 9 0 1 1-2.64-6.36"}),(0,t.jsx)("path",{d:"M21 3v6h-6"})]}),loader:(0,t.jsx)("path",{d:"M21 12a9 9 0 1 1-6.22-8.56"})}[n];return(0,t.jsx)("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:i})}function T(){return(0,t.jsx)("div",{className:"flex min-h-screen flex-col items-center justify-center py-20 text-muted-foreground",children:(0,t.jsx)(x,{name:"loader",className:"mb-4 h-8 w-8 animate-spin"})})}function ue(){return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"min-h-screen bg-black text-white flex items-center justify-center px-4",children:(0,t.jsx)("div",{className:"w-full max-w-xl rounded-2xl border border-red-500/20 bg-red-500/5 p-6 sm:p-10 shadow-2xl",children:(0,t.jsxs)("div",{className:"flex items-start gap-4",children:[(0,t.jsx)("div",{className:"h-12 w-12 rounded-xl bg-red-500/10 border border-red-500/20 flex items-center justify-center shrink-0",children:(0,t.jsx)(x,{name:"alert",className:"h-6 w-6 text-red-500"})}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("h1",{className:"text-2xl sm:text-3xl font-bold tracking-tight text-white",children:"Sito Sospeso"}),(0,t.jsx)("p",{className:"mt-2 text-sm sm:text-base text-white/70 leading-relaxed",children:"L'accesso pubblico a questo sito web è stato temporaneamente disabilitato dall'amministratore."})]})]})})})})}function me(){return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"min-h-screen bg-black text-white flex items-center justify-center px-4",children:(0,t.jsx)("div",{className:"w-full max-w-xl rounded-2xl border border-white/10 bg-white/5 p-6 sm:p-10 shadow-2xl",children:(0,t.jsxs)("div",{className:"flex items-start gap-4",children:[(0,t.jsx)("div",{className:"h-12 w-12 rounded-xl bg-red-500/10 border border-red-500/20 flex items-center justify-center shrink-0",children:(0,t.jsx)(x,{name:"alert",className:"h-6 w-6 text-red-400"})}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("h1",{className:"text-2xl sm:text-3xl font-bold tracking-tight",children:"Pagina non trovata"}),(0,t.jsx)("p",{className:"mt-2 text-sm sm:text-base text-white/70 leading-relaxed",children:"La pagina richiesta non esiste oppure è stata rimossa."}),(0,t.jsxs)("div",{className:"mt-5 flex flex-col sm:flex-row gap-3",children:[(0,t.jsxs)("button",{type:"button",className:"inline-flex h-10 items-center justify-center gap-2 rounded-md bg-white px-4 py-2 text-sm font-semibold text-black transition hover:bg-white/90",onClick:function(){window.location.href="/"},children:[(0,t.jsx)(x,{name:"arrow-left",className:"h-4 w-4"}),"Torna alla home"]}),(0,t.jsxs)("button",{type:"button",className:"inline-flex h-10 items-center justify-center gap-2 rounded-md border border-white/15 bg-transparent px-4 py-2 text-sm font-semibold text-white transition hover:bg-white/10",onClick:function(){window.location.reload()},children:[(0,t.jsx)(x,{name:"refresh",className:"h-4 w-4"}),"Ricarica"]})]})]})]})})})})}function pe(n){return String(n?.site_info?._publicationStatus||"").trim()==="draft"}function ge(){const n=(0,s.useMemo)(()=>
224re(),[]),[e,i]=(0,s.useState)(()=>n?.site??null),[o,l]=(0,s.useState)(()=>!n?.site),[b,u]=(0,s.useState)(null),[R,w]=(0,s.useState)(null),[S,U]=(0,s.useState)(()=>N(n?.blogBaseSlug)),[F,z]=(0,s.useState)(!1);(0,s.useEffect)(()=>{if(n?.site){l(!1);return}let r=!0;async function m(){try{if(!r)return;l(!0),u(null),w(null);const a=I(window.location.hostname),f=V;let c=null;if(oe(a))c=await le();else if(a===f||a===`www.${f}`){if(c=await P(k),!c){u("Errore nel caricamento del sito principale.");return}}else if(a.endsWith(`.${f}`)){const y=`.${f}`,h=a.slice(0,-y.length).trim();if(!h||h==="www"){u("Stiamo aggiornando la piattaforma. Il sito funzionerà al più presto."),w(`hostname=${a}`);return}c=await E(h,window.location.pathname)}else{const y=a,h=ae(a);c=await A(y,window.location.pathname),!c&&y!==h&&(c=await A(h,window.location.pathname))}if(!r)return;if(!c){u("Stiamo completando gli ultimi aggiornamenti. Il sito funzionerà al più presto."),w(`hostname=${a} (site not found)`),i(null);return}i(c)}catch(a){if(console.error("[SubdomainSitePage] errore:",a),!r)return;i(null),u("Stiamo completando gli ultimi aggiornamenti. Il sito funzionerà al più presto."),w(typeof a?.message=="string"?a.message:JSON.stringify(a))}finally{r&&l(!1)}}return m(),function(){r=!1}},[n]),(0,s.useEffect)(()=>{const r=e?.id;if(!r||n?.blogBaseSlug)return;const m=r;let a=!0;async function f(){z(!0);try{const c=await se(m);if(!a)return;U(N(c?.base_slug))}finally{a&&z(!1)}}return f(),function(){a=!1}},[n?.blogBaseSlug,e?.id]);const d=(0,s.useMemo)(()=>e?.site_info?Z(e.site_info):null,[e]),p=(0,s.useMemo)(()=>{if(!(typeof window>"u"))return ce(window.location.pathname)},[]),g=(0,s.useMemo)(()=>{if(!d)return;const r=Array.isArray(d.pages)?d.pages:[];if(r.length!==0)return p?(r.find(function(a){return a.slug===p})||null)?.id:(r.find(function(a){return a.isHome===!0||a.slug===""})||r[0])?.id},[d,p]);if((0,s.useMemo)(()=>!d||!g?null:(Array.isArray(d.pages)?d.pages:[]).find(r=>r.id===g)||null,[d,g]),o||F&&p&&!g&&p!==S)return(0,t.jsx)(T,{});if(!e||!d)return(0,t.jsx)(_,{title:"Manutenzione in corso",message:b??void 0,details:R});const v=d;if(pe(e))return(0,t.jsx)(_,{title:"Sito in bozza",message:"Questo sito non è ancora pubblicato."});if(e.site_info?.isDisabled)return(0,t.jsx)(ue,{});if(e.site_info?.isMaintenanceMode)return(0,t.jsx)(_,{title:"Lavori in corso",message:"Il sito è attualmente in manutenzione. Stiamo lavorando per tornare online il prima possibile!"});const L=typeof window<"u"?window.location.pathname.split("/").filter(Boolean):[],O=L[0],H=L[1];if(O===S){const r=e.id===k,m={id:e.id,slug:e.slug,custom_domain:e.custom_domain,name:v.name,site_info:e.site_info};return(0,t.jsx)(s.Suspense,{fallback:(0,t.jsx)(T,{}),children:(0,t.jsx)(ie,{site:m,baseSlug:S,postSlug:H,isDigitalioBlog:r})})}return p&&!g?(0,t.jsx)(me,{}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ne,{site:e}),(0,t.jsx)(de,{gdpr:v.gdpr}),(0,t.jsx)(X,{siteInfo:v,selectedPageId:g,siteId:e.id})]})}export{ye as n,ge as t};
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.