1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2969],{56717:function(e,l,n){n.r(l),n.d(l,{default:function(){return x}});var t=n(85893),s=n(67294),i=n(11163),o=n(45243),r=n.n(o),a=n(5715),c=n(52013),d=n(20577),u=n(32604),h=n(51512);n(95732);let v=(0,h.Au)((e,l)=>{let{children:n,...t}=e,s={},i={};Object.entries(t).forEach(e=>{let[l,n]=e;return l.startsWith("on")?i[l]=n:s[l]=n});let o=new(r()).markerClusterGroup(s);return Object.entries(i).forEach(e=>{let[l,n]=e,t="cluster".concat(l.substring(2).toLowerCase());o.on(t,n)}),{instance:o,context:{...l,layerContainer:o}}});n(28570);var p=n(89664),m=n.n(p),x=(0,s.memo)(e=>{let{modified_store_list:l,location_data:n,user_location:o,latest_map_position_data:h}=e,p=(0,s.useRef)(null),x=(0,s.useRef)([]),{locale:f}=(0,i.useRouter)();return(0,s.useEffect)(()=>{if(n&&n.length){var e;let t=null===(e=p.current)||void 0===e?void 0:e.target;t&&t.flyTo(n,16,{animate:!1});let s=null==l?void 0:l.findIndex(e=>(null==e?void 0:e.store_lat)===n[0]&&(null==e?void 0:e.store_lng)===n[1]),i=x.current[s];i&&i.openPopup()}else x.current.length&&x.current[0]&&x.current[0].closePopup()},[n]),(0,s.useEffect)(()=>{if(null==h?void 0:h.location){var e;let l=null===(e=p.current)||void 0===e?void 0:e.target;l&&(l.setView(h.location,l.getZoom()),"user"===h.type&&l.flyTo(h.location,16,{animate:!1}))}},[h]),(0,t.jsxs)(a.h,{className:m().map,center:[23.805503,90.369356],zoom:11,scrollWheelZoom:!0,maxZoom:18,whenReady:e=>{p.current=e},children:[(0,t.jsx)(c.I,{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",attribution:'\xa9 <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'}),(0,t.jsx)(v,{className:"marker-cluster div",children:l&&(null==l?void 0:l.map((e,l)=>{var n,s,i,o;return(0,t.jsx)(d.J,{position:[(null==e?void 0:e.store_lat)||0,(null==e?void 0:e.store_lng)||0],icon:r().divIcon({html:'\n <svg width="28" height="41" viewBox="0 0 28 41" fill="none" xmlns="http://www.w3.org/2000/svg">\n <ellipse cx="14" cy="38.5" rx="6" ry="2.5" fill="black" fill-opacity="0.16"></ellipse>\n <path d="M13.6063 35.3082L14 35.8111L14.3937 35.3082L24.768 22.0579L24.7848 22.0412L24.8062 22.0127C26.5646 19.675 27.5 16.8867 27.5 13.9492C27.5 6.53256 21.441 0.5 14 0.5C6.55904 0.5 0.5 6.53256 0.5 13.9492C0.5 16.8871 1.43559 19.6755 3.20737 22.0263L3.2073 22.0264L3.21298 22.0336L13.6063 35.3082Z" fill='.concat((null==e?void 0:null===(n=e.stores)||void 0===n?void 0:n.color)||"#0078CF",' stroke="white"></path>\n <path d="M14 20C17.3137 20 20 17.3137 20 14C20 10.6863 17.3137 8 14 8C10.6863 8 8 10.6863 8 14C8 17.3137 10.6863 20 14 20Z" fill="white"></path>\n </svg>'),className:"",iconSize:[24,35]}),ref:e=>x.current[l]=e,children:(0,t.jsxs)(u.G,{children:[(0,t.jsx)("h6",{className:"title",children:"en"==f?null==e?void 0:e.store_name:null==e?void 0:e.bn_store_name}),(0,t.jsxs)("div",{class:"store-meta",children:[(0,t.jsx)("h4",{children:"en"==f?null==e?void 0:null===(s=e.stores)||void 0===s?void 0:s.display_text:null==e?void 0:null===(i=e.stores)||void 0===i?void 0:i.display_text_bn}),(null==e?void 0:e.distance)&&(0,t.jsxs)("span",{class:"distance",children:[(0,t.jsx)("svg",{width:"4",height:"4",viewBox:"0 0 4 4",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("circle",{cx:"1.99988",cy:"2",r:"2",fill:"#D6D6D6"})}),"".concat(null==e?void 0:null===(o=e.distance)||void 0===o?void 0:o.toFixed(2),"km away")]})]}),(0,t.jsxs)("p",{className:"address",children:[(0,t.jsx)("b",{children:"en"==f?"Address:":"ঠিà¦à¦¾à¦¨à¦¾:"})," ","en"==f?null==e?void 0:e.store_address:null==e?void 0:e.bn_store_address]}),(0,t.jsxs)("p",{className:"time",children:[(0,t.jsx)("b",{children:"en"==f?"Open:":"à¦à§à¦²à¦¾ :"})," ","en"==f?null==e?void 0:e.store_business_hour:null==e?void 0:e.store_business_hour_bn]}),(null==e?void 0:e.store_weekends)?(0,t.jsxs)("p",{className:"time",children:[(0,t.jsx)("b",{children:"en"==f?"Weekly Holiday:":"à¦à§à¦à¦¿à¦° দিন:"})," ","en"==f?null==e?void 0:e.store_weekends:null==e?void 0:e.store_weekends_bn]}):(0,t.jsx)(t.Fragment,{}),(null==e?void 0:e.store_halfday)?(0,t.jsxs)("p",{className:"time",children:[(0,t.jsx)("b",{children:"en"==f?"Weekly Half-holiday:":"à¦à¦§à¦¾à¦¬à§à¦²à¦¾ সাপà§à¦¤à¦¾à¦¹à¦¿à¦ à¦à§à¦à¦¿:"})," ","en"==f?null==e?void 0:e.store_halfday:null==e?void 0:e.store_halfday_bn]}):(0,t.jsx)(t.Fragment,{})]})})}))}),o&&(0,t.jsx)(d.J,{position:o,icon:r().divIcon({html:'\n <svg width="35" height="35" viewB
1ox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">\n <circle opacity="0.2" cx="17.5" cy="17.5" r="17.5" fill="#0078CF">\n <animate attributeName="opacity" begin="-1s" dur="3s" values="0;.3;.3;0" repeatCount="indefinite"></animate>\n </circle>\n <circle cx="17.5" cy="17.5" r="8.5" fill="#0078CF" stroke="white" stroke-width="2"></circle>\n </svg>',className:"",iconSize:[24,35]})})]})})}}]);
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.