1import{r as n,j as e,L as v}from"./vendor-react-CoH7wDUq.js";import{u as w,U as j,V as N,W as y}from"./index-DarzfxaQ.js";import{P as x}from"./PublicFormLayout-DKoMZn_o.js";import"./vendor-pdf-DNjb9-t8.js";function C(t){return t.split(/\n\n+/).map(l=>l.trim()).filter(Boolean)}function p(){window.history.pushState(null,"","/"),window.dispatchEvent(new CustomEvent("site:navigate",{detail:{target:"home"}}))}const u={pt:{eyebrow:"Convention Bureau",lead:"Informações institucionais da Comissão de Promoção de Locais (CPL Turismo) em Campos do Jordão."},en:{eyebrow:"Convention Bureau",lead:"Institutional information from the CPL Tourism commission in Campos do Jordão."},es:{eyebrow:"Convention Bureau",lead:"Información institucional de la Comisión de Promoción de Locales (CPL Turismo) en Campos do Jordão."}},E=()=>{const{language:t,t:l}=w(),[s,i]=n.useState(null),[o,d]=n.useState(""),h=u[t]||u.pt;n.useEffect(()=>{let a=!1;return(async()=>{d(""),i(null);try{const r=await j();if(a)return;const b=N(t,r),f=await y(t,b,r,["titulo","corpo"]);if(a)return;i(f)}catch(r){if(a)return;d(r instanceof Error?r.message:l("general.error"))}})(),()=>{a=!0}},[t]);const m=s?[s.imagem1,s.imagem2,s.imagem3,s.imagem4].filter(Boolean):[],g=(s==null?void 0:s.titulo)??l("nav.cpl");return e.jsx("div",{className:"w-full min-w-0 max-w-full flex-1 overflow-x-hidden bg-[#F8F6F3]",children:e.jsx("main",{id:"main-content",className:"w-full min-w-0",children:e.jsxs("div",{className:"mx-auto w-full max-w-4xl min-w-0 px-4 py-8 sm:px-6 sm:py-10 md:py-12",children:[e.jsxs("div",{className:"relative mb-8 overflow-hidden rounded-2xl border border-white/10 bg-gradient-to-br from-slate-900 via-slate-800 to-emerald-950 shadow-xl sm:mb-10 sm:rounded-3xl",children:[e.jsx("div",{className:"pointer-events-none absolute -right-16 -top-20 h-56 w-56 rounded-full bg-emerald-500/25 blur-3xl sm:-right-24 sm:h-72 sm:w-72"}),e.jsx("div",{className:"pointer-events-none absolute -bottom-20 -left-10 h-44 w-44 rounded-full bg-sky-500/20 blur-3xl"}),e.jsxs("div",{className:"relative px-5 py-8 sm:px-8 sm:py-10 md:px-10 md:py-12",children:[e.jsxs("nav",{className:"mb-4 text-xs text-slate-400 sm:text-sm","aria-label":"Breadcrumb",children:[e.jsx("button",{type:"button",onClick:p,className:"font-medium text-emerald-300/90 transition-colors hover:text-white",children:l("nav.cidade")}),e.jsx("span",{className:"mx-2 text-slate-500",children:"/"}),e.jsx("span",{className:"text-slate-200",children:l("nav.cpl")})]}),e.jsx("p",{className:"mb-2 text-[11px] font-semibold uppercase tracking-[0.22em] text-emerald-300/95 sm:text-xs",children:h.eyebrow}),e.jsx("h1",{className:"font-serif text-2xl font-bold leading-tight text-white sm:text-3xl md:text-4xl",children:g})]})]}),e.jsxs("div",{className:"mb-6 flex flex-wrap items-center gap-3",children:[e.jsxs("button",{type:"button",onClick:p,className:"inline-flex items-center rounded-xl border border-slate-600/90 bg-slate-800/90 px-4 py-2.5 text-xs font-semibold text-slate-100 shadow-sm transition-colors hover:border-slate-500 hover:bg-slate-700 sm:text-sm",children:["â ",l("general.back")]}),e.jsx(v,{to:"/filiacao",className:"inline-flex items-center rounded-xl border border-emerald-500/40 bg-emerald-500/10 px-4 py-2.5 text-xs font-semibold text-emerald-800 shadow-sm transition-colors hover:bg-emerald-500/20 sm:text-sm",children:t==="en"?"Affiliation":t==="es"?"Filación":"Filiação"})]}),o?e.jsx("div",{className:"mb-6 rounded-2xl border border-red-200/80 bg-red-50 px-4 py-3 text-sm text-red-800 sm:px-5",children:o}):null,!s&&!o?e.jsx(x,{className:"p-8 sm:p-10",children:e.jsxs("div",{className:"flex flex-col gap-4 animate-pulse","aria-busy":"true",children:[e.jsx("div",{className:"h-4 w-3/4 max-w-md rounded-lg bg-slate-200"}),e.jsx("div",{className:"h-4 w-full rounded-lg bg-slate-100"}),e.jsx("div",{className:"h-4 w-5/6 rounded-lg bg-slate-100"}),e.jsx("p",{className:"pt-2 text-sm text-slate-500",children:l("general.loading")})]})}):null,s?e.jsxs(x,{className:"overflow-hidden p-0 shadow-[0_8px_40px_-12px_rgba(15,23,42,0.12)] ring-1 ring-slate-200/80 sm:rou
1nded-3xl",children:[m.length>0?e.jsx("div",{className:"grid grid-cols-1 gap-4 border-b border-slate-200/80 bg-slate-50/50 p-5 sm:grid-cols-2 sm:gap-5 sm:p-6 md:p-8",children:m.map(a=>e.jsx("figure",{className:"group overflow-hidden rounded-2xl border border-slate-200/90 bg-white shadow-[0_4px_24px_-8px_rgba(15,23,42,0.12)] ring-1 ring-slate-200/60",children:e.jsx("img",{src:a,alt:"",className:"h-auto max-h-80 w-full object-cover transition duration-300 group-hover:scale-[1.02]",loading:"lazy"})},a))}):null,e.jsx("div",{className:"p-6 sm:p-8 md:p-10",children:e.jsx("div",{className:"prose prose-slate max-w-none space-y-5 text-slate-700 prose-headings:font-serif prose-p:leading-relaxed prose-a:font-medium prose-a:text-emerald-700 prose-a:no-underline hover:prose-a:underline",children:C(s.corpo).map((a,c)=>e.jsx("p",{children:a},c))})})]}):null]})})})};export{E as CplTurismoPage,E 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.