1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[505],{6505:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return E}});var r=t(5893),o=t(5243),u=t.n(o),i=t(7294);function l(n,e){return Object.freeze({...n,...e})}let a=(0,i.createContext)(null),c=a.Provider;function s(){let n=(0,i.useContext)(a);if(null==n)throw Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return n}function f(){return(f=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n}).apply(this,arguments)}let p=(0,i.forwardRef)(function({bounds:n,boundsOptions:e,center:t,children:r,className:u,id:l,placeholder:a,style:s,whenReady:p,zoom:d,...g},h){let[m]=(0,i.useState)({className:u,id:l,style:s}),[b,v]=(0,i.useState)(null);(0,i.useImperativeHandle)(h,()=>b?.map??null,[b]);let y=(0,i.useCallback)(r=>{if(null!==r&&null===b){let u=new o.Map(r,g);null!=t&&null!=d?u.setView(t,d):null!=n&&u.fitBounds(n,e),null!=p&&u.whenReady(p),v(Object.freeze({__version:1,map:u}))}},[]);(0,i.useEffect)(()=>()=>{b?.map.remove()},[b]);let I=b?i.createElement(c,{value:b},r):a??null;return i.createElement("div",f({},m,{ref:y}),I)});var d=t(3935);function g(n,e,t){return Object.freeze({instance:n,context:e,container:t})}function h(n,e){return null==e?function(e,t){let r=(0,i.useRef)();return r.current||(r.current=n(e,t)),r}:function(t,r){let o=(0,i.useRef)();o.current||(o.current=n(t,r));let u=(0,i.useRef)(t),{instance:l}=o.current;return(0,i.useEffect)(function(){u.current!==t&&(e(l,t,u.current),u.current=t)},[l,t,r]),o}}function m(n,e){let t=(0,i.useRef)(e);(0,i.useEffect)(function(){e!==t.current&&null!=n.attributionControl&&(null!=t.current&&n.attributionControl.removeAttribution(t.current),null!=e&&n.attributionControl.addAttribution(e)),t.current=e},[n,e])}function b(n,e){let t=(0,i.useRef)();(0,i.useEffect)(function(){return null!=e&&n.instance.on(e),t.current=e,function(){null!=t.current&&n.instance.off(t.current),t.current=null}},[n,e])}function v(n,e){let t=n.pane??e.pane;return t?{...n,pane:t}:n}function y(n){return function(e){var t;let r=s(),o=n(v(e,r),r);return m(r.map,e.attribution),b(o.current,e.eventHandlers),t=o.current,(0,i.useEffect)(function(){let n=r.layerContainer??r.map;return n.addLayer(t.instance),function(){r.layerContainer?.removeLayer(t.instance),r.map.removeLayer(t.instance)}},[r,t]),o}}function I(n,e){let t=h(n,e),r=y(t);return(0,i.forwardRef)(function(n,e){let{instance:t,context:o}=r(n).current;return(0,i.useImperativeHandle)(e,()=>t),null==n.children?null:i.createElement(c,{value:o},n.children)})}let x=function(n,e){let t=h(n,e),r=y(t);return(0,i.forwardRef)(function(n,e){let{instance:t}=r(n).current;return(0,i.useImperativeHandle)(e,()=>t),null})}(function({url:n,...e},t){let r=new o.TileLayer(n,v(e,t));return g(r,t)},function(n,e,t){!function(n,e,t){let{opacity:r,zIndex:o}=e;null!=r&&r!==t.opacity&&n.setOpacity(r),null!=o&&o!==t.zIndex&&n.setZIndex(o)}(n,e,t);let{url:r}=e;null!=r&&r!==t.url&&n.setUrl(r)}),O=I(function({position:n,...e},t){let r=new o.Marker(n,e);return g(r,l(t,{overlayContainer:r}))},function(n,e,t){e.position!==t.position&&n.setLatLng(e.position),null!=e.icon&&e.icon!==t.icon&&n.setIcon(e.icon),null!=e.zIndexOffset&&e.zIndexOffset!==t.zIndexOffset&&n.setZIndexOffset(e.zIndexOffset),null!=e.opacity&&e.opacity!==t.opacity&&n.setOpacity(e.opacity),null!=n.dragging&&e.draggable!==t.draggable&&(!0===e.draggable?n.dragging.enable():n.dragging.disable())}),C=function(n,e){var t;let r=h(n);return t=function(n,t){let o=s(),u=r(v(n,o),o);return m(o.map,n.attribution),b(u.current,n.eventHandlers),e(u.current,o,n,t),u},(0,i.forwardRef)(function(n,e){let[r,o]=(0,i.useState)(!1),{instance:u}=t(n,o).current;(0,i.useImperativeHandle)(e,()=>u),(0,i.useEffect)(function(){r&&u.update()},[u,r,n.children]);let l=u._contentNode;return l?(0,d.createPortal)(n.children,l):null})}(function(n,e){let t=new o.Popup(n,e.overlayContainer);return g(t,e)},function(n,e,{position:t},r){(0,i.useEffect)(function(){let{instance:o}=n;function u(n){n.popup===o&&(o.update(),r(!0))}function i(n){n.popup===o&&r(!1)}return e.map.on({popupopen:u,popupclose:i}),null==e.overlayContainer?(null!=t&&o.setLatLng(t),o.openOn(e.map)):e.overlayContainer.bindPopup(o),function(){e.map.off({popupopen:u,popupclose:i}),e.overlayContainer?.unbindPopup(),e.map.removeLayer(o)}},[n,e,r,t])}),w=I(function({bounds:n,url:e,...t},r){let u=new o.ImageOverlay(e,n,t);return g(u,l(r,{overlayContainer:u}))},function(n,e,t){if(e.bounds instanceof o.LatLngBounds&&e.bounds!==t.bounds&&n.setBounds(e.bounds),null!=e.opacity&&e.opacity!==t.opacity&&n.setOpacity(e.opacity),null!=e.zIndex&&e.zIndex!==t.zIndex&&n.setZIndex(e.zIndex),e.bounds!==t.bounds){let t=e.bounds instanceof o.LatLngBounds?e.bounds:new o.LatLngBounds(e.bounds);n.setBounds(t)}e.url!==t.url&&n.setUrl(e.url)});function z(n,e){var t,r=o.DomUtil.create("div",n,document.body),u=function(n,e){for(var t,r=/url\(['"]?([^"']*?)['"]?\)/gi,o=[],u=r.exec(n);u;)o.push(e?(t=u[1]).substr(t.lastIndexOf("/")+1):u[1]),u=r.exec(n);return o}((t=U(r,"background-image"))&&"none"!==t?t:U(r,"cursor"),e),i=L(r,"width"),l=L(r,"height"),a=L(r,"margin-left"),c=L(r,"margin-top");return r.parentNode.removeChild(r),{Url:u[0],RetinaUrl:u[1],Size:[i,l],Anchor:[-a,-c]}}function _(n){var e=o.DomUtil.create("div",n,document.body),t=L(e,"margin-left"),r=L(e,"margin-top");return e.parentNode.removeChild(e),{Anchor:[t,r]}}function L(n,e){return parseInt(U(n,e),10)}function U(n,e){return o.DomUtil.getStyle(n,e)||o.DomUtil.getStyle(n,e.replace(/-(\w)/g,function(n,e){return e.toUpperCase()}))}function E(n){let{position:e,zoom:t}=n,o=u().latLngBounds([[-12,84],[18,148]]);return(0,r.jsxs)(p,{zoom:5,zoomSnap:.2,center:[2,116],dragging:!1,zoomControl:!1,scrollWheelZoom:!1,attributionControl:!1,style:{height:"100%",maxHeight:"60vh",width:"100%"},children:[(0,r.jsx)(x,{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),(0,r.jsx)(O,{position:[-4,120],children:(0,r.jsx)(C,{children:"Here"})}),(0,r.jsx)(w,{bounds:o,url:"https://tulus.sgp1.digitaloceanspaces.com/tulus/6351115a3ae70d03975326d7/destination/6e390686-809b-4b13-a069-59377b4c09b1.jpeg",opacity:1})]})}t(585),o.Icon.Default.mergeOptions({iconUrl:null,iconRetinaUrl:null,shadowUrl:null,iconSize:null,iconAnchor:null,popupAnchor:null,tooltipAnchor:null,shadowSize:null,classNamePrefix:"leaflet-default-icon-"}),o.Icon.Default.include({_needsInit:!0,_getIconUrl:function(n){var e=this.options.imagePath||o.Icon.Default.imagePath||"";return this._needsInit&&this._initializeOptions(e),e+o.Icon.prototype._getIconUrl.call(this,n)},_initializeOptions:function(n){this._setOptions("icon",z,n),this._setOptions("shadow",z,n),this._setOptions("popup",_),this._setOptions("tooltip",_),this._needsInit=!1},_setOptions:function(n,e,t){var r=this.options,o=e(r.classNamePrefix+n,t);for(var u in o)r[n+u]=r[n+u]||o[u]}}),t(7490)},7490:function(){},585:function(){}}]);
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.