1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7842],{77842:(n,e,t)=>{t.r(e),t.d(e,{default:()=>r});var o=t(95155),i=t(12115),l=t(77717);let a=n=>window.ymaps.templateLayoutFactory.createClass('<div style="\n position: absolute;\n left: -45px;\n top: -32px;\n width: 90px;\n height: 32px;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n cursor: pointer;\n ">\n <div style="\n background: white;\n border: 1.5px solid #ef4444;\n border-radius: 14px;\n padding: 3px 9px;\n font-size: 11px;\n font-weight: 700;\n color: #1f2937;\n white-space: nowrap;\n box-shadow: 0 1px 5px rgba(0,0,0,0.15);\n line-height: 1.4;\n max-width: 90px;\n overflow: hidden;\n text-overflow: ellipsis;\n text-align: center;\n ">'.concat(n,'</div>\n <div style="\n width: 0;\n height: 0;\n border-left: 6px solid transparent;\n border-right: 6px solid transparent;\n border-top: 6px solid #ef4444;\n margin-top: -1px;\n "></div>\n </div>')),s=(n,e,t)=>{let o=n.image||"",i=n.url||"#",l=parseInt(n.minfiyat||"0"),a=n.symbol||"âº",s=l>0?'<div style="font-size: 12px; font-weight: 700; color: #ef4444; display: flex; align-items: baseline; gap: 3px;">\n '.concat(l.toLocaleString("tr-TR")," ").concat(a,'\n <span style="font-weight: 400; color: #6b7280; font-size: 9px;">').concat(t("location.night"),"</span>\n </div>"):"",r=o?'<div style="width: 80px; height: 80px; border-radius: 6px; overflow: hidden; flex-shrink: 0; position: relative;">\n <img src="'.concat(o,'"\n style="width: 100%; height: 100%; object-fit: cover; display: block;"\n onerror="this.parentElement.style.display=\'none\'"\n />\n </div>'):"";return'\n <div style="position: relative; width: 230px; height: 84px; padding-bottom: 4px; box-sizing: border-box; font-family: system-ui, -apple-system, sans-serif;">\n <button\n onclick="(function(e){ e.preventDefault(); e.stopPropagation(); var pm=window.__vpMap&&window.__vpMap[\''.concat(e,'\'];if(pm)pm.balloon.close();})(event);return false;"\n style="\n position: absolute;\n top: 4px;\n right: 4px;\n width: 18px;\n height: 18px;\n border-radius: 50%;\n background: #f3f4f6;\n border: 1px solid #e5e7eb;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n padding: 0;\n z-index: 100;\n color: #4b5563;\n box-shadow: 0 1px 2px rgba(0,0,0,0.05);\n transition: all 0.2s;\n "\n onmouseover="this.style.background=\'#e5e7eb\'; this.style.color=\'#111827\';"\n onmouseout="this.style.background=\'#f3f4f6\'; this.style.color=\'#4b5563\';"\n >\n <svg width="8" height="8" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" style="display: block;">\n <line x1="18" y1="6" x2="6" y2="18"></line>\n <line x1="6" y1="6" x2="18" y2="18"></line>\n </svg>\n </button>\n\n <div style="display: flex; ').concat(r?"gap: 10px;":"",' align-items: stretch; height: 80px;">\n ').concat(r,'\n \n <div style="flex: 1; height: 80px; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; padding-right: 24px;">\n <div style="display: flex; flex-direction: column; gap: 2px;">\n <div style="font-size: 13px; font-weight: 700; color: #111827; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">\n ').concat(n.title||"","\n </div>\n \n ").concat(null!=n.distance?'<div style="font-size: 10px; color: #6b7280; display: flex; align-items: center; gap: 3px;">
1\n <span style="color: #ef4444; font-size: 10px;">\uD83D\uDCCD</span> '.concat(n.distance," km\n </div>"):"","\n \n ").concat(s,'\n </div>\n \n <a href="').concat(i,'" style="\n display: block;\n background: #ef4444;\n color: white;\n text-align: center;\n padding: 5px 0;\n line-height: 1.2;\n border-radius: 6px;\n text-decoration: none;\n font-weight: 600;\n font-size: 11px;\n box-shadow: 0 1px 3px rgba(239, 68, 68, 0.15);\n width: 100%;\n box-sizing: border-box;\n "\n >\n ').concat(t("location.view_villa"),"\n </a>\n </div>\n </div>\n </div>\n ")},r=n=>{let{enlem:e,boylam:t,height:r,locations:p=[]}=n,d=(0,i.useRef)(null),c=(0,i.useRef)(null),{t:x}=(0,l.o)();return(0,i.useEffect)(()=>{let n=()=>{d.current&&window.ymaps&&window.ymaps.ready(()=>{c.current&&(c.current.destroy(),c.current=null),d.current&&(d.current.innerHTML="");let n=new window.ymaps.Map(d.current,{center:[parseFloat(e),parseFloat(t)],zoom:17,controls:["fullscreenControl"]});if(n.controls.add("zoomControl",{size:""}),c.current=n,n.behaviors.disable("scrollZoom"),!document.getElementById("ymaps-cursor-fix")){let n=document.createElement("style");n.id="ymaps-cursor-fix",n.textContent='\n [class*="ymaps-2-"][class*="-balloon__close"] { display: none !important; }\n [class*="ymaps-2-"][class*="-balloon__content"] { margin-right: 0px !important; }\n [class*="ymaps-2-"][class*="-balloon__content"] > ymaps { margin-right: 0px !important; }\n ',document.head.appendChild(n)}window.__vpMap||(window.__vpMap={});let o=p.filter(n=>n.lat&&n.lng),i=[];if(o.forEach((e,t)=>{let o="vp_".concat(Date.now(),"_").concat(t),l=parseInt(e.minfiyat||"0"),r=e.symbol||"âº",p=a(l>0?"".concat(l.toLocaleString("tr-TR")," ").concat(r):e.title||""),d=new window.ymaps.Placemark([e.lat,e.lng],{balloonContent:s(e,o,x)},{iconLayout:p,iconShape:{type:"Rectangle",coordinates:[[-45,-32],[45,5]]},openBalloonOnClick:!1,balloonPanelMaxMapArea:0,balloonAutoPan:!1,hideIconOnBalloonOpen:!1,balloonOffset:[0,-36],zIndex:t});window.__vpMap[o]=d,d.events.add("mouseenter",()=>{d.options.set("zIndex",1e4)}),d.events.add("mouseleave",()=>{d.options.set("zIndex",t)}),d.events.add("click",()=>{let n=d.balloon.isOpen();i.forEach(n=>{n.balloon.isOpen()&&n.balloon.close()}),n||d.balloon.open()}),i.push(d),n.geoObjects.add(d)}),i.length>1){let e=n.geoObjects.getBounds();e&&n.setBounds(e,{checkZoomRange:!0,zoomMargin:50})}})};return(()=>{if(window.ymaps){n();return}let e=document.querySelector('script[src*="api-maps.yandex.ru"]');if(e){e.addEventListener("load",n);return}let t=document.createElement("script");t.id="yandex-maps-script",t.src="https://api-maps.yandex.ru/2.1/?lang=tr_TR",t.async=!0,t.onload=n,document.head.appendChild(t)})(),()=>{c.current&&(c.current.destroy(),c.current=null)}},[e,t,p,x]),(0,o.jsx)("div",{ref:d,className:"".concat(r," w-full rounded-xl overflow-hidden")})}}}]);
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.