PageSourceSearch

https://visitstarazagora.bg/build/assets/Gallery-BgtQSVED.js

js visitstarazagora.bg collected 2026-10-02 22:17:37 UTC 1,582 bytes, 1 lines download raw bytes

1import{u as g,a as p,r as c,i as u,j as e,L as f}from"./index-Cy2WVdhZ.js";function y(){var t,d;const{t:l}=g(),{language:o,prefix:h}=p(),[n,x]=c.useState(""),[a,j]=c.useState([]),m=s=>{x(s.target.value)};if(c.useEffect(()=>{u().then(s=>{s.success&&j(s.data)})},[]),!a)return e.jsx(f,{});const i=(t=a==null?void 0:a.gallery)==null?void 0:t.map(s=>{const r=!n||s.gallery_category_id===parseInt(n);return{...s,className:r?"img-expand":"img-shrink"}});return e.jsxs(e.Fragment,{children:[e.jsx("section",{id:"galleryBanner",children:e.jsx("div",{className:"wrapper",children:e.jsx("h1",{children:l("Gallery")})})}),e.jsxs("section",{id:"gallery",children:[e.jsx("div",{className:"filter",children:e.jsx("form",{children:e.jsx("div",{className:"wrapper",children:e.jsxs("div",{className:"field",children:[e.jsx("label",{htmlFor:"category",children:l("Place")}),e.jsxs("select",{name:"category_id",id:"category",value:n,onChange:m,children:[e.jsx("option",{value:"",children:l("All")}),(d=a==null?void 0:a.gallery_categories)==null?void 0:d.map(s=>{var r;return e.jsx("option",{value:s.id,children:(r=s.name)==null?void 0:r[o]},s.id)})]})]})})})}),e.jsx("div",{className:"images",children:i&&i.length>0?i.map(s=>e.jsxs("a",{href:`${h}gallery/${s.link}`,className:`image-wrapper ${s.className}`,children:[e.jsx("img",{src:`/storage/${s==null?void 0:s.image}`,alt:"",className:`image ${s.className}`}),e.jsx("div",{class:"name",children:e.jsx("h5",{children:s.title})})]},s.id)):e.jsx("div",{id:"coming-soon",children:e.jsx("h1",{children:l("Coming soon")})})})]})]})}export{y 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.