1import{a as d,j as e,Q as p,Z as x,A as j,l as g,r as o,u as f,e as u,h as S,L as w}from"./index-Cy2WVdhZ.js";import{S as N,a as $}from"./autoplay-BpDIsy8n.js";import{p as h}from"./parseHtml-Cu4ZDwam.js";import"./index-CMxU2-oX.js";function y({souvenir:s}){var t,a,i,l;const{language:r}=d();return e.jsx("section",{id:"souvenirInfo",children:e.jsxs("div",{className:"wrapper",children:[e.jsxs("div",{className:"left",children:[e.jsx("h2",{children:(t=s==null?void 0:s.name)==null?void 0:t[r]}),((a=s==null?void 0:s.description)==null?void 0:a[r])&&h((i=s==null?void 0:s.description)==null?void 0:i[r])]}),e.jsx("div",{className:"right",children:e.jsxs(p,{children:[e.jsx("div",{className:"main-image",children:e.jsx(x,{src:`/storage/${s.main_image}`,children:e.jsx("img",{src:`/storage/${s.main_image}`,alt:""})})}),e.jsx(N,{spaceBetween:10,slidesPerView:3,className:"gallery-slider",loop:!0,modules:[j],autoplay:{delay:3e3,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!0},navigation:{prevEl:".swiper-button-prev",nextEl:".swiper-button-next"},children:(l=s.images)==null?void 0:l.map((n,c)=>e.jsx($,{children:e.jsx(x,{src:`/storage/${n.image}`,children:e.jsx("img",{src:`/storage/${n.image}`,alt:""})})},c))})]})})]})})}function E({souvenirs:s}){const{language:r,prefix:t}=d();return e.jsx("section",{id:"souvenirRelated",children:e.jsxs("div",{className:"wrapper",children:[e.jsx("h2",{children:"Ðодобни ÑÑвениÑи"}),e.jsx("ul",{children:s==null?void 0:s.map(a=>{var i,l,n,c,m;return e.jsxs("li",{style:{},"data-categories":"",children:[e.jsx("picture",{children:e.jsx("img",{src:`/storage/${a.main_image}`,alt:(i=a.name)==null?void 0:i[r],title:(l=a.name)==null?void 0:l[r]})}),e.jsxs("div",{className:"right",children:[e.jsx("h3",{children:(n=a.name)==null?void 0:n[r]}),e.jsx("p",{children:((c=a.description)==null?void 0:c[r])&&h((m=a.description)==null?void 0:m[r])}),e.jsxs("a",{href:`${t}souvenir/${a.slug}`,children:[e.jsx("span",{children:"Разгледай"}),e.jsx("img",{src:g,alt:"Разгледай",title:"Разгледай"})]})]})]},a.id)})})]})})}function D(){const[s,r]=o.useState(null);d();const{t}=f(),{slug:a}=u();return o.useEffect(()=>{S(a).then(i=>{i.success&&r(i.data)}).catch(i=>console.log(i))},[]),s?e.jsxs(e.Fragment,{children:[e.jsx("section",{id:"souvenirBanner",children:e.jsx("div",{className:"wrapper",children:e.jsx("h1",{children:t("Souvenirs")})})}),e.jsx(y,{souvenir:s.souvenir}),e.jsx(E,{souvenirs:s.related_souvenirs})]}):e.jsx(w,{})}export{D 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.