PageSourceSearch

https://visitstarazagora.bg/build/assets/Place-C89k1wiX.js

js visitstarazagora.bg collected 2026-10-02 22:17:45 UTC 8,741 bytes, 1 lines download raw bytes

1import{a as f,j as s,Q as I,Z as T,u as L,d as S,r as p,l as P,e as F,b as q,F as R,L as B,G as C}from"./index-Cy2WVdhZ.js";import{p as j}from"./index-CMxU2-oX.js";import{n as _}from"./navigate-uZmMSXNv.js";import{f as D}from"./free-p-DJjSvMPL.js";function E({location:e}){var r,a;const{language:t}=f();return s.jsx("section",{id:"placeContacts",children:s.jsxs("div",{className:"wrapper",children:[s.jsx(I,{children:s.jsx("ul",{className:"gallery ",children:e.images.map((i,c)=>s.jsxs("li",{children:[s.jsx(T,{src:`/storage/${i.image_path}`,children:s.jsx("img",{src:`/storage/${i.image_path}`,alt:""})}),c===2&&e.images.length>3&&s.jsxs("span",{children:["+",e.images.length-3]})]},c))})}),s.jsxs("div",{className:"right",children:[((r=e.contacts)==null?void 0:r[t])&&s.jsxs("div",{className:"col",children:[s.jsx("h3",{children:"Контакти"}),j(e.contacts[t])]}),((a=e.work_hours)==null?void 0:a[t])&&s.jsxs("div",{className:"col",children:[s.jsx("h3",{children:"Работно време"}),j(e.work_hours[t])]})]})]})})}const M="/build/assets/paid-p-BLgQgDyS.png",U="/build/assets/button-parking-CIMBW4Ez.png";function z({parkings:e,visible:t,setVisible:r}){const{t:a}=L(),i=e!=null&&e.free.lat&&(e!=null&&e.free.lon)?e.free:null,c=e!=null&&e.green_area.lat&&(e!=null&&e.green_area.lon)?e.green_area:null;return s.jsx("div",{className:`overlay parking-overlay ${t?"show":""}`,children:s.jsxs("div",{className:" parking-modal",style:{opacity:t?1:0,marginTop:t?0:"50px"},children:[s.jsx("img",{src:S,className:"close small",alt:"",onClick:()=>r(!1)}),s.jsx("h3",{children:a("Parking spaces")}),s.jsxs("div",{className:"lists",children:[i&&s.jsxs("ul",{children:[s.jsx("li",{className:"heading",children:a("Free")}),s.jsx("li",{children:s.jsxs("a",{href:`https://maps.google.com/?q=${i.lat},${i.lon}`,target:"_blank",className:"navigate",children:[s.jsx("img",{src:_,alt:""}),a("Take me there")]})})]}),c&&s.jsxs("ul",{children:[s.jsx("li",{className:"heading",children:a("Paid")}),s.jsx("li",{children:s.jsxs("a",{href:`https://maps.google.com/?q=${c.lat},${c.lon}`,target:"_blank",className:"navigate",children:[s.jsx("img",{src:_,alt:""}),a("Take me there")]})})]})]})]})})}function O({location:e}){var c,h,l,n,d,o,m;const{language:t}=f(),[r,a]=p.useState(!1),i=(c=e.parkings)!=null&&c.free.lat?(h=e.parkings)==null?void 0:h.free:(l=e.parkings)!=null&&l.green_area.lat?(n=e.parkings)==null?void 0:n.green_area:null;return s.jsxs(s.Fragment,{children:[s.jsx("section",{id:"placeInfo",children:s.jsxs("div",{className:"wrapper",children:[s.jsxs("div",{className:"left",children:[s.jsx("h2",{children:(d=e.name)==null?void 0:d[t]}),s.jsx("p",{children:((o=e.description)==null?void 0:o[t])&&j((m=e.description)==null?void 0:m[t])})]}),s.jsxs("div",{className:"right",children:[s.jsx("iframe",{src:`https://www.google.com/maps/embed?pb=!1m24!1m12!1m3!1d1.0!2d${e.loc_longitude}!3d${e.loc_latitude}!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!4m9!3e0!4m3!3m2!1d${e.loc_latitude}!2d${e.loc_longitude}!4m3!3m2!1d${e.loc_latitude}!2d${e.loc_longitude}!5e0!3m2!1sen!2sau!4v1723618471283000!5m2!1sen!2sau`,style:{border:0},allowFullScreen:"",loading:"lazy"}),s.jsx("div",{className:"parkings",children:s.jsx("img",{src:M,alt:""})}),s.jsxs("div",{className:"buttons",children:[e.loc_latitude&&e.loc_longitude&&s.jsxs("a",{href:`https://maps.google.com/?q=${e.loc_latitude},${e.loc_longitude}`,target:"_blank",className:"navigate",children:[s.jsx("img",{src:_,alt:""}),"Упътване"]}),i&&s.jsxs("a",{href:"#",target:"_blank",className:" btn",onClick:x=>{x.preventDefault(),a(!0)},children:[s.jsx("img",{src:U,alt:""}),"Паркоместа"]})]})]})]})}),s.jsx(z,{parkings:e.parkings,visible:r,setVisible:a})]})}function Q({locations:e,location:t}){var h;const{language:r,prefix:a}=f(),{t:i}=L(),c=t==null?void 0:t.related_locations;return s.jsx("section",{id:"placeRelated",children:s.jsxs("div",{className:"wrapper",children:[c&&c.length>0&&s.jsxs(s.Fragment,{children:[s.jsxs("h2",{children:[i("Locations part of")," ",(h=t.name)==null?void 0:h[r]]}),s.jsx("ul",{className:"part-of",children:c==null?void 0:c.map(l=>{var n,d,o,m,x,g;return s.jsxs("li",{children:[s.jsxs("picture",{children:[s.jsx("img",{src:`/storage/${(n=l.related_location.images[0])==null?void 0:n.image_path}`,alt:"",title:""}),s.jsx("div",{className:"parking"})]}),s.jsxs("div",{className:"right",children:[s.jsx("h3",{children:(d=l.related_location.name)==null?void 0:d[r]}),s.jsx("p",{children:((m=(o=l.related_location)==null?void 0:o.description)==null?void 0:m[r])&&j((g=(x=l.related_location)==null?void 0:x.description)==null?void 0:g[r])}),s.jsxs("a",{href:`${a}place/${l.related_location.slug}`,children:[s.jsx("span",{children:"Разгледай"}),s.jsx("img",{src:P,alt:"",title:""})]})]})]},l.id)})})]}),s.jsx("h2",{children:"Посетете още"}),s.jsx("ul",{children:e.map(l=>{var n,d,o,m,x;return s.jsxs("li",{children:[s.jsxs("picture",{children:[s.jsx("img",{src:`/storage/${(n=l.images[0])==null?void 0:n.image_path}`,alt:"",title:""}),s.jsx("div",{className:"parking",children:s.jsx("img",{src:D,alt:""})})]}),s.jsxs("div",{className:"right",children:[s.jsx("h3",{children:(d=l==null?void 0:l.name)==null?void 0:d[r]}),s.jsx("p",{children:((o=l==null?void 0:l.description)==null?void 0:o[r])&&j((m=l==null?void 0:l.description)==null?void 0:m[r])}),s.jsxs("a",{href:l.slug.startsWith("konferentni")?`${a}conference-halls?category_id=${(x=l.categories)==null?void 0:x[0].id}`:`${a}place/${l.slug}`,children:[s.jsx("span",{children:"Разгледай"}),s.jsx("img",{src:P,alt:"",title:""})]})]})]},l.id)})})]})})}function V({location:e}){var r,a,i,c,h,l;const{language:t}=f();return s.jsx("section",{id:"tickets",children:s.jsxs("div",{className:"wrapper",children:[s.jsx("h2",{children:"Билети"}),s.jsxs("div",{className:"row",children:[s.jsx("div",{className:"col",children:((r=e.tickets_1)==null?void 0:r[t])&&j((a=e.tickets_1)==null?void 0:a[t])}),s.jsx("div",{className:"col",children:((i=e.tickets_2)==null?void 0:i[t])&&j((c=e.tickets_2)==null?void 0:c[t])}),s.jsx("div",{className:"col",children:((h=e.tickets_3)==null?void 0:h[t])&&j((l=e.tickets_3)==null?void 0:l[t])})]})]})})}const W="/build/assets/saved-tour-BotM4F4O.png";function H({handleTourModal:e}){var g,v,b,k,$,w,y;const{slug:t}=F(),{language:r}=f(),[a,i]=p.useState(null),[c,h]=p.useState(!1),[l,n]=p.useState(!1),d=q();if(p.useEffect(()=>{const u=JSON.parse(localStorage.getItem("tourLocations"))||[];h(u.includes(t)),R(t).then(N=>{N.success&&i(N.data)}).catch(N=>{d("/404")})},[t]),!a)return s.jsx(B,{});const m=`${new URL(document.URL).origin}/storage/${(g=a.location.images[0])==null?void 0:g.image_path}`,x=((v=a.location.tickets_1)==null?void 0:v[r])||((b=a.location.tickets_2)==null?void 0:b[r])||((k=a.location.tickets_3)==null?void 0:k[r]);return s.jsxs(s.Fragment,{children:[s.jsx("section",{id:"placeBanner",style:{backgroundImage:`linear-gradient(to top, rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url(${m})`},children:s.jsxs("div",{className:"wrapper",children:[s.jsx("h1",{children:($=a.location.name)==null?void 0:$[r]}),s.jsx("p",{children:((w=a.location.desc_detailspage)==null?void 0:w[r])&&j((y=a.location.desc_detailspage)==null?void 0:y[r])}),s.jsx("div",{className:"buttons",children:c?s.jsxs("div",{className:"buttons",children:[s.jsxs("button",{className:"show-tour-options","data-object-id":3,onClick:()=>n(!0),children:[s.jsx("img",{src:C,alt:""}),"Нов"]}),s.jsxs("button",{className:"to-tour","data-object-id":3,onClick:()=>d("/tour"),children:[s.jsx("img",{src:W,alt:""}),"Към запазения маршрут"]})]}):s.jsxs("button",{className:"show-tour-options","data-object-id":3,onClick:u=>e(u,!0,a.location.id),children:[s.jsx("img",{src:C,alt:""}),"Започни маршрут от тук"]})})]})}),s.jsx(O,{location:a.location}),s.jsx(E,{location:a.location}),x&&s.jsx(V,{location:a.location}),s.jsx(Q,{locations:a.related_locations,location:a.location}),s.jsx("div",{className:`overlay question-overlay ${l?"show":""}`,style:{display:"flex"},children:s.jsxs("div",{className:`overlay question-modal ${l?"show":""}`,style:{opacity:l?1:0,marginTop:l?0:"50px"},children:[s.jsx("img",{src:S,className:"close small",alt:"",onClick:()=>n(!1)}),s.jsx("h3",{children:"Сигурни ли сте, че искате да започнете нов маршрут?"}),s.jsx("p",{children:"Започването на новия маршрут, ще изтрие стария."}),s.jsxs("div",{className:"buttons",children:[s.jsx("button",{className:"btn-cancel",onClick:()=>n(!1),children:"Отказ"}),s.jsx("button",{className:"btn-accept",onClick:u=>{n(!1),e(u,!0,a.location.id)},children:"Да"})]})]})})]})}export{H 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.