1import{e as j,p as o,g as r,k as s,L as N}from"./index-BgC-7ug5.js";import{L as m,a as C}from"./locations-CG0VzcvW.js";import{s as b}from"./sanitize-html-VOwrGjcu.js";import{S as v}from"./SubNav-BSNZaAGH.js";const S={praha:"prague",bejrut:"beirut",dubaj:"dubai"},y=m.map(e=>({label:e.labelCs,slug:e.slugCs,href:`/services/${e.slugCs}`}));function T(){const{city:e}=j.useParams(),n=S[e]??e,d=m.find(a=>a.slug===n),c=o(r.content.listLocationPhotos,{city:n})??[],t=o(r.content.getServiceContent,{city:n}),l=C[n];if(!d||!t&&!l)return s.jsx("main",{className:"page-container",children:s.jsx("p",{children:"Stránka nenalezena."})});const i=t?.titleCs??l?.title??"",u=t?.subtitleCs??l?.subtitle??"",g=t?.ctaLabelCs??l?.ctaLabel??"Kontakt",h=t?.columns??2,p=t?.paragraphsCs??l?.paragraphs.map(a=>`<p>${a}</p>`).join("")??"",x=b(p);return s.jsxs("main",{className:"page-container",children:[s.jsx(v,{items:y,activeSlug:e}),s.jsxs("div",{className:"location-header",children:[s.jsx("h1",{className:"location-title",children:i}),s.jsx("p",{className:"location-subtitle",children:u})]}),s.jsxs("div",{className:`service-content service-content--cols-${h}`,children:[s.jsx("div",{className:"service-rich-text",dangerouslySetInnerHTML:{__html:x}}),s.jsx("div",{className:"service-cta-row",children:s.jsx(N,{to:"/kontakt",className:"location-cta",children:g})})]}),c.length>0&&s.jsxs("div",{className:"location-gallery",children:[s.jsx("h2",{className:"location-gallery-heading",children:"Galerie"}),s.jsx("div",{className:"location-gallery-grid",children:c.filter(a=>a.url).map(a=>s.jsx("div",{className:"location-gallery-item",children:s.jsx("img",{src:a.url||"",alt:a.altText??i,className:"location-gallery-img",loading:"lazy"})},a._id))})]})]})}export{T as component};
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.