1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./UX5rftji.js","./Cy7Vx_7O.js","./entry.UXGP8MKA.css","./ZfiQZKdV.js","./D5Tps76v.js","./B3suJbFS.js","./CtUoPsPC.js","./snippet.DoBKT4ZN.css","./CeyptneS.js"])))=>i.map(i=>d[i]); 2import{E as z,s as Z,r as C,ac as R,c as D,d as I,I as g,J as u,U as t,K as l,S as y,O as p,D as U,L as h,q as s,R as A,a1 as B,ad as G,a6 as N,_ as $,a as O,u as j,H,p as E,e as q,G as K,a5 as W,P as T,V as F,W as J,Q as S}from"./Cy7Vx_7O.js";import{_ as P}from"./CMLs_8_m.js";import{_ as Q}from"./DenYGsIR.js";import{_ as X}from"./NwWaE1hw.js";import{C as Y,a as ee,b as te,c as oe,d as se,f as ae,_ as ne}from"./CDraG1Hz.js";import{u as V}from"./CRAA9iZS.js";import"./BKCyxMwL.js";import"./vc3IHNoX.js";import"./DfVsraXu.js";import"./DK3fK8xi.js";import"./DCPDe47W.js";import"./B52fLlJZ.js";const le={class:"container"},ie={class:"work"},re={class:"work__header"},_e={class:"work__heading"},ce={class:"work__back-button"},ue={class:"work__content"},de={class:"work__info"},pe=["innerHTML"],me={key:1,class:"work__links"},ve={style:{"background-color":"#dcdfe0"}},fe={id:"map-container",ref:"map-container"},he={class:"marker"},Le={class:"marker__label"},Ce=z({__name:"location",props:{id:{},title:{},coords:{},description:{},public_url:{},name:{},map_description:{},url_1:{},url_2:{},url_label_1:{},url_label_2:{},is_show_on_map:{type:Boolean}},setup(r){const i=Z(Y),_=Z(null),e=r,c=C(["drag","pinchZoom","dblClick"]),n=C(!1),m=C(!1),v=R("map-container"),d=o=>{["ControlRight","ControlLeft"].includes(o.code)&&(m.value=!0,n.value=!1,c.value.find(a=>a==="scrollZoom")||c.value.push("scrollZoom"))},w=o=>{["ControlRight","ControlLeft"].includes(o.code)&&(m.value=!1,c.value.find(a=>a==="scrollZoom")&&(c.value=c.value.filter(a=>a!=="scrollZoom")))},L=C(null),k=o=>{m.value?n.value=!1:(n.value=!0,L.value&&clearTimeout(L.value),L.value=setTimeout(function(){n.value=!1},2e3))};return D(()=>{var o;document.body.addEventListener("keydown",d),document.body.addEventListener("keyup",w),(o=v.value)==null||o.addEventListener("wheel",k)}),I(()=>{var o;document.body.removeEventListener("keydown",d),document.body.removeEventListener("keyup",w),(o=v.value)==null||o.removeEventListener("wheel",k)}),(o,a)=>{const b=P,f=Q,x=X;return u(),g("div",le,[t("div",ie,[t("div",re,[t("div",_e,[l(b,{text:e.name||e.title,tag:"h1",type:"small"},null,8,["text"])]),t("div",ce,[l(f,{size:"big",to:"/dictionaries/locations/alphabet",text:"ÐеогÑаÑÐ¸Ñ Ð¢Ð¾Ð»ÑÑого",type:"plain"})])]),t("div",ue,[t("div",de,[e.map_description||e.description?(u(),g("div",{key:0,class:"work__text wysiwyg f-16",innerHTML:e.map_description||e.description},null,8,pe)):p("",!0),U(o.$slots,"photos",{},void 0,!0),e.url_1&&e.url_label_1||e.url_2&&e.url_label_2?(u(),g("div",me,[e.url_label_1&&e.url_1?(u(),y(f,{key:0,text:e.url_label_1,to:e.url_1,size:"big"},null,8,["text","to"])):p("",!0),e.url_label_2&&e.url_2?(u(),y(f,{key:1,text:e.url_label_2,to:e.url_2,size:"big"},null,8,["text","to"])):p("",!0)])):p("",!0)]),t("div",ve,[t("div",fe,[l(s(ne),{modelValue:s(_),"onUpdate:modelValue":a[0]||(a[0]=M=>G(_)?_.value=M:null),settings:{showScaleInCopyrights:!0,location:{center:e.coords,zoom:8},behaviors:s(c)}},{default:h(()=>[l(s(ee),{settings:{customization:s(i)}},null,8,["settings"]),l(s(te)),l(s(oe),{settings:{position:"right top"}},{default:h(()=>[l(s(se))]),_:1}),l(s(ae),{settings:{coordinates:e.coords,onClick:()=>{("navigateTo"in o?o.navigateTo:s(A))(`/chronicle/life-on-map?center=${e.coords.join(",")}`)}},position:"left-center top"},{default:h(()=>[t("div",he,[a[1]||(a[1]=t("svg",{width:"48",height:"66",viewBox:"0 0 48 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t("circle",{cx:"24",cy:"62",r:"3",fill:"#819073",stroke:"white","stroke-width":"2"}),t("mask",{id:"path-2-inside-1_12195_2479",fill:"white"},[t("path",{d:"M24 0C37.2548 0 48 10.7452 48 24C48 35.3364 40.1397 44.8349 29.5723 47.3477L24 57L18.4268 47.3477C7.85976 44.8346 0 35.336 0 24C0 10.7452 10.7452 0 24 0Z"})]),t("path",{d:"M24 0C37.2548 0 48 10.7452 48 24C48 35.3364 40.1397 44.8349 29.5723 47.3477L24 57L18.4268 47.3477C7.85976 44.8346 0 35.336 0 24C0 10.7452 10.7452 0 24 0Z",fill:"#819073"}),t("path",{d:"M29.5723 47.3477L29.1096 45.4019L28.2711 45.6013L27.8402 46.3477L29.5723 47.3477ZM24 57L22.268 58.0001L24.0002 61L25.7321 57.9999L24 57ZM18.4268 47.3477L20.1588 46.3476L19.7279 45.6013L18.8895 45.4019L18.4268 47.3477ZM24 0V2C36.1503 2 46 11.8497 46 24H48H50C50 9.6406 38.3594 -2 24 -2V0ZM48 24H46C46 34.3888 38.7967 43.0985 29.1096 45.4019L29.5723 47.3477L30.0349 49.2934C41.4828 46.5714 50 36.2839 50 24H48ZM29.5723 47.3477L27.8402 46.3477L22.2679 56.0001L24 57L25.7321 57.9999L31.3044 48.3476L29.5723 47.3477ZM24 57L25.732 55.9999L20.1588 46.3476L18.4268 47.3477L16.6947 48.3477L22.268 58.0001L24 57ZM18.4268 47.3477L18.8895 45.4019C9.2029 43.0983 2 34.3885 2 24H0H-2C-2 36.2835 6.51663 46.571 17.964 49.2934L18.4268 47.3477ZM0 24H2C2 11.8497 11.8497 2 24 2V0V-2C9.6406 -2 -2 9.6406 -2 24H0Z",fill:"white",mask:"url(#path-2-inside-1_12195_2479)"}),t("path",{d:"M24 35.7279L30.364 29.364C33.8787 25.8492 33.8787 20.1508 30.364 16.636C26.8493 13.1213 21.1508 13.1213 17.636 16.636C14.1213 20.1508 14.1213 25.8492 17.636 29.364L24 35.7279ZM19.0503 27.9497C16.3166 25.2161 16.3166 20.7839 19.0503 18.0503C21.7839 15.3166 26.2161 15.3166 28.9498 18.0503C31.6835 20.7839 31.6835 25.2161 28.9498 27.9497L24 32.8995L19.0503 27.9497ZM24 25C25.1046 25 26 24.1046 26 23C26 21.8954 25.1046 21 24 21C22.8954 21 22 21.8954 22 23C22 24.1046 22.8954 25 24 25Z",fill:"white"}
2)],-1)),t("span",Le,B(e.title),1)])]),_:1},8,["settings"])]),_:1},8,["modelValue","settings"]),t("div",{class:N(["zoom-message",{visible:s(n)}])},a[2]||(a[2]=[t("span",{textContent:"ЧÑÐ¾Ð±Ñ Ð¸Ð·Ð¼ÐµÐ½Ð¸ÑÑ Ð¼Ð°ÑÑÑаб, пÑокÑÑÑивайÑе каÑÑÑ, ÑдеÑÐ¶Ð¸Ð²Ð°Ñ ÐºÐ»Ð°Ð²Ð¸ÑÑ Ctrl"},null,-1)]),2)],512)]),e.is_show_on_map?(u(),y(x,{key:0,links:[{to:`/chronicle/life-on-map?center=${e.coords.join(",")}#map-view`,text:"ÐоÑмоÑÑеÑÑ Ð²ÑÑ ÐºÐ°ÑÑÑ"}],variant:"bold"},null,8,["links"])):p("",!0)])])])}}}),ge=$(Ce,[["__scopeId","data-v-ee054c5e"]]),ye=T(()=>S(()=>import("./UX5rftji.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url).then(r=>r.default||r)),we=T(()=>S(()=>import("./CeyptneS.js"),__vite__mapDeps([8,6,1,2]),import.meta.url).then(r=>r.default||r)),ke={key:0,class:"photos"},be=z({__name:"[slug]",async setup(r){let i,_;const e=O(),c=j("life-on-map-seed",()=>Math.random()),{data:n,error:m}=([i,_]=H(()=>V(()=>`/meta/locations/${e.params.slug}/`)),i=await i,_(),i);if(m.value)throw E({statusCode:404,statusMessage:m.value.message});if(n.value===null)throw E({statusCode:500});const v=q(()=>({loc_id:n.value.id,show_on_map:!0,page_size:20,sort:"random",seed:c.value})),{data:d,execute:w,status:L,error:k}=([i,_]=H(()=>V("/photogallery/photos/",{query:v})),i=await i,_(),i);return K({title:()=>{var o;return`${(o=n.value)==null?void 0:o.title} | ÐеогÑаÑÐ¸Ñ Ð¢Ð¾Ð»ÑÑого`}}),(o,a)=>{const b=P,f=ye,x=we,M=ge;return s(n)?(u(),y(M,F(J({key:0},s(n))),{photos:h(()=>[s(d)&&s(d).results.length>0?(u(),g("div",ke,[l(b,{tag:"h3",type:"prata-16"},{default:h(()=>a[0]||(a[0]=[W(" ФоÑогÑаÑии, ÑделаннÑе в ÑÑом меÑÑе ")])),_:1,__:[0]}),l(f,{class:"photos",type:"locations","max-visible":4,"max-mobile-visible":4,photos:s(d).results,"total-count":s(d).count,"filter-params":s(v),"use-page":!0,"api-endpoint":"/photogallery/photos/"},null,8,["photos","total-count","filter-params"])])):p("",!0),l(x)]),_:1},16)):p("",!0)}}}),De=$(be,[["__scopeId","data-v-e5b20ea7"]]);export{De as default}; 3//# sourceMappingURL=BBn97DCz.js.map
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.