1import{_ as x}from"./C3CJXpD8.js";import{k,b as p,w as z,l,c as A,A as I,o as j,ac as w,ad as S,R as s,u as B,ap as L,N as y,ah as h,az as P,aw as U,ay as V,ax as N,av as O}from"./DmsGKCLR.js";function Z(i){return new URL(window.location.href)}const F={class:"vkd-map-embed"},H=["src"],D="https://map.vezdekakdoma.ru/map/?embed=1",b="https://map.vezdekakdoma.ru",K=k({__name:"SearchApartmentsMap",props:{apartments:{},apartmentsCache:{},isFullSize:{type:Boolean},isLoading:{type:Boolean},isActive:{type:Boolean},hasMapCoordinates:{type:Boolean},hasFavoriteId:{type:Boolean},zoomRange:{},isShrinkSizeButtonVisible:{type:Boolean},place:{},filters:{},externalObjects:{type:Boolean}},emits:["close","shrink","toggle-size","update:map-values","update-apartments-cache"],setup(i,{emit:d}){const n=i,m=d,t=p("");z(()=>{const a=n.place;a&&a!=="ÐблаÑÑÑ ÐºÐ°ÑÑÑ"&&(t.value=String(a))});const c=l(()=>t.value?`&city=${encodeURIComponent(t.value)}`:""),$=/^(date_in|date_out|guests|split_beds|price\[(min|max)\]|rooms_count\[\d+\]|types\[\d+\]|features|cancel_type|instant_books|synced)$/,R=l(()=>{const a=n.filters||{},e=[];for(const o in a){const r=a[o];r==null||r===""||!$.test(o)||e.push(`${encodeURIComponent(o)}=${encodeURIComponent(String(r))}`)}return e.length?`&${e.join("&")}`:""}),M=`&site=${encodeURIComponent(Z().origin)}`,C=n.externalObjects?"&ext=1":"",E=l(()=>`${D}&theme=light${c.value}${R.value}${M}${C}`),u=p(null),v=p(!1),_=l(()=>(n.apartments||[]).map(a=>{const e=a.address,o=a.price;return{id:a.id,lng:e==null?void 0:e.lng,lat:e==null?void 0:e.lat,price:o,priceStr:o!=null?String(o).replace(/\B(?=(\d{3})+(?!\d))/g," ")+" â½":""}}).filter(a=>a.lng!=null&&a.lat!=null&&a.id!=null));function f(){var a,e;!n.externalObjects||!v.value||(e=(a=u.value)==null?void 0:a.contentWindow)==null||e.postMessage({type:"vkd-set-objects",objects:_.value},b)}A(_,()=>f(),{deep:!0});function g(a){if(a.origin!==b)return;const e=a.data;if(e&&e.type==="vkd-map-ready"){v.value=!0,f();return}e&&e.type==="vkd-map-values"&&Array.isArray(e.bounds)&&m("update:map-values",{bounds:e.bounds,center:e.center,zoom:e.zoom,ids:e.ids,count:e.count})}return I(()=>window.addEventListener("message",g)),j(()=>window.removeEventListener("message",g)),(a,e)=>(S(),w("div",F,[s("iframe",{ref_key:"iframeEl",ref:u,src:B(E),class:"vkd-map-frame",title:"ÐаÑÑа обÑекÑов",loading:"lazy",allow:"geolocation; fullscreen",allowfullscreen:""},null,8,H)]))}}),Q=x(K,[["__scopeId","data-v-d651ef63"]]),q={class:"marker-content relative"},G={class:"marker-text-content !p-0"},T={class:"marker-slider mb-6 h-[280px]"},W=k({__name:"LoadingCard",emits:["update-marker","update-selected-marker"],setup(i,{emit:d}){const n=[U,V,N];return(m,t)=>{const c=P;return S(),w("div",q,[t[2]||(t[2]=s("div",{class:"marker-head"},null,-1)),s("div",G,[s("div",T,[y(B(O),{"slides-per-view":1,modules:n,class:"h-full relative","allow-touch-move":!1},{default:h(()=>[y(c,{class:"h-full"},{default:h(()=>t[0]||(t[0]=[s("div",{class:"flex items-center h-full justify-center bg-gray-300 dark:bg-gray-700"},[s("svg",{class:"w-10 h-10 text-gray-200 dark:text-gray-600","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 20"},[s("path",{d:"M14.066 0H7v5a2 2 0 0 1-2 2H0v11a1.97 1.97 0 0 0 1.934 2h12.132A1.97 1.97 0 0 0 16 18V2a1.97 1.97 0 0 0-1.934-2ZM10.5 6a1.5 1.5 0 1 1 0 2.999A1.5 1.5 0 0 1 10.5 6Zm2.221 10.515a1 1 0 0 1-.858.485h-8a1 1 0 0 1-.9-1.43L5.6 10.039a.978.978 0 0 1 .936-.57 1 1 0 0 1 .9.632l1.181 2.981.541-1a.945.945 0 0 1 .883-.522 1 1 0 0 1 .879.529l1.832 3.438a1 1 0 0 1-.031.988Z"}),s("path",{d:"M5 5V.13a2.96 2.96 0 0 0-1.293.749L.879 3.707A2.98 2.98 0 0 0 .13 5H5Z"})])],-1)])),_:1})]),_:1})]),t[1]||(t[1]=L('<span class="gray-text" data-v-0aa4714b></span><span class="grid gap-[20px]" data-v-0aa4714b><span class="gray-text" data-v-0aa4714b></span><span class="gray-text" data-v-0aa4714b></span></span><div class="marker-price font-bold text-sm mt-2" data-v-0aa4714b><span class="gray-text" data-v-0aa4714b></span></div>',3))])])}}}),X=x(W,[["__scopeId","data-v-0aa4714b"]]);export{Q as _,X as a};
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.