PageSourceSearch

https://app.gethapn.com/assets/MapView-BtkKPFW4.js

js gethapn.com collected 2026-09-24 13:11:53 UTC 24,277 bytes, 2 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`[email protected]+d0fb5ba`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`e1067d06-aad1-4b05-ab12-b8a60380dec4`,e._sentryDebugIdIdentifier=`sentry-dbid-e1067d06-aad1-4b05-ab12-b8a60380dec4`)}catch{}})();import{a as e}from"./chunk-CME6nArf.js";import{r as t,t as n}from"./jsx-runtime-Dv42eZSw.js";import{m as r}from"./dist-BJwZRrjP.js";import{Wt as i}from"./environment-Br76g2hu.js";import{St as a,b as o,t as s,v as c,x as l,xt as u,y as d}from"./web-D52iEuBR.js";import{r as f}from"./useWindowSize-jX-qLKWU.js";import{t as p}from"./esm-BK0hXUFE.js";import{t as m}from"./icon-BURyjdlO.js";import"./view-BAlTH_Jv.js";import{t as h}from"./usePlatform-DJFlVX5L.js";import{t as g}from"./pressable-Cf9skFy7.js";import{n as _}from"./MapLibraryProvider-6N10CRGv.js";import{a as v,o as y,r as b,t as x}from"./map-bbXAy-LL.js";var S=r(),C=e(t()),w=C.createContext({}),T=()=>(0,C.useContext)(w);s(),l();var E=n(),ee=e=>{let t=(0,S.c)(18),{right:n,bottom:r,onPress:i,icon:a,rotate:s,heading:c,active:l}=e,u=l===void 0?!1:l,d;t[0]!==r||t[1]!==n?(d={position:`absolute`,right:n,bottom:r,zIndex:9},t[0]=r,t[1]=n,t[2]=d):d=t[2];let f;t[3]===u?f=t[4]:(f={selected:u},t[3]=u,t[4]=f);let p=`h-10 w-10 items-center justify-center rounded-full border shadow-sm web:hover:bg-muted ${u?`border-primary bg-primary web:hover:bg-primary/90`:`border-border bg-background`}`,m;t[5]!==u||t[6]!==c||t[7]!==a||t[8]!==s?(m=(0,E.jsx)(te,{icon:a,enabled:s,heading:c,active:u}),t[5]=u,t[6]=c,t[7]=a,t[8]=s,t[9]=m):m=t[9];let h;t[10]!==i||t[11]!==f||t[12]!==p||t[13]!==m?(h=(0,E.jsx)(g,{onPress:i,accessibilityRole:`button`,accessibilityLabel:`Toggle map compass`,accessibilityState:f,className:p,children:m}),t[10]=i,t[11]=f,t[12]=p,t[13]=m,t[14]=h):h=t[14];let _;return t[15]!==d||t[16]!==h?(_=(0,E.jsx)(o,{style:d,children:h}),t[15]=d,t[16]=h,t[17]=_):_=t[17],_},D=(e,t)=>e+(((t-e)%360+540)%360-180),te=e=>{let t=(0,S.c)(23),{icon:n,heading:r,enabled:i,active:a}=e,s=a===void 0?!1:a,[l]=(0,C.useState)(ne),d=(0,C.useRef)(0),f,p;t[0]!==l||t[1]!==r?(f=()=>{if(r==null)return;let e=D(d.current,r);d.current=e,c.timing(l,{toValue:-e,duration:300,useNativeDriver:u.OS!==`web`}).start()},p=[l,r],t[0]=l,t[1]=r,t[2]=f,t[3]=p):(f=t[2],p=t[3]),(0,C.useEffect)(f,p);let h;t[4]!==l||t[5]!==i?(h={alignItems:`center`,transform:i?[{rotate:l.interpolate({inputRange:[0,360],outputRange:[`0deg`,`360deg`]})}]:[]},t[4]=l,t[5]=i,t[6]=h):h=t[6];let g;t[7]===i?g=t[8]:(g=i?(0,E.jsx)(o,{className:`absolute -top-1.5 h-1 w-1 rounded-full bg-destructive`}):null,t[7]=i,t[8]=g);let _=`${i?-45:0}deg`,v;t[9]===_?v=t[10]:(v={transform:[{rotate:_}]},t[9]=_,t[10]=v);let y=s?`text-primary-foreground`:`text-foreground`,b;t[11]!==n||t[12]!==y?(b=(0,E.jsx)(m,{name:n,size:`md`,className:y}),t[11]=n,t[12]=y,t[13]=b):b=t[13];let x;t[14]!==v||t[15]!==b?(x=(0,E.jsx)(o,{style:v,children:b}),t[14]=v,t[15]=b,t[16]=x):x=t[16];let w;t[17]!==x||t[18]!==g?(w=(0,E.jsxs)(o,{className:`items-center`,children:[g,x]}),t[17]=x,t[18]=g,t[19]=w):w=t[19];let T;return t[20]!==w||t[21]!==h?(T=(0,E.jsx)(c.View,{style:h,children:w}),t[20]=w,t[21]=h,t[22]=T):T=t[22],T};function ne(){return new c.Value(0)}var O={button:`gSHwLa_button`,icon:`gSHwLa_icon`},k={alignItems:`center`,border:0,cursor:`pointer`,display:`flex`,height:40,justifyContent:`center`,padding:10,width:40},re=e=>{let t=(0,S.c)(13),{bottomMargin:n,onZoomIn:r,onZoomOut:i}=e,a=n===void 0?24:n,o;t[0]===a?o=t[1]:(o={borderRadius:8,bottom:a,boxShadow:`0px 2px 8px rgba(0, 0, 0, 0.1)`,overflow:`hidden`,position:`absolute`,right:9,zIndex:1},t[0]=a,t[1]=o);let s;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(s={...k,borderBottom:`solid 1px rgb(var(--border))`},t[2]=s):s=t[2];let c;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,E.jsx)(m,{"aria-hidden":!0,name:`plus-solid`,size:`md`,className:O.icon}),t[3]=c):c=t[3];let l;t[4]===r?l=t[5]:(l=(0,E.jsx)(`button`,{"aria-label":`Zoom in`,className:O.button,onClick:r,style:s,type:`button`,children:c}),t[4]=r,t[5]=l);let u;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,E.jsx)(m,{"aria-hidden":!0,name:`minus-solid`,size:`md`,className:O.icon}),t[6]=u):u=t[6];let d;t[7]===i?d=t[8]:(d=(0,E.jsx)(`button`,{"aria-label":`Zoom out`,className:O.button,onClick:i,style:k,type:`button`,children:u}),t[7]=i,t[8]=d);let f;return t[9]!==o||t[10]!==l||t[11]!==d?(f=(0,E.jsxs)(`div`,{"aria-label":`Map zoom controls`,className:`hpn-zoom-control
1s`,role:`group`,style:o,children:[l,d]}),t[9]=o,t[10]=l,t[11]=d,t[12]=f):f=t[12],f},A={Linear:{None:function(e){return e}},Quadratic:{In:function(e){return e*e},Out:function(e){return e*(2-e)},InOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)}},Cubic:{In:function(e){return e*e*e},Out:function(e){return--e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}},Quartic:{In:function(e){return e*e*e*e},Out:function(e){return 1- --e*e*e*e},InOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)}},Quintic:{In:function(e){return e*e*e*e*e},Out:function(e){return--e*e*e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}},Sinusoidal:{In:function(e){return 1-Math.cos(e*Math.PI/2)},Out:function(e){return Math.sin(e*Math.PI/2)},InOut:function(e){return .5*(1-Math.cos(Math.PI*e))}},Exponential:{In:function(e){return e===0?0:1024**(e-1)},Out:function(e){return e===1?1:1-2**(-10*e)},InOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(-(2**(-10*(e-1)))+2)}},Circular:{In:function(e){return 1-Math.sqrt(1-e*e)},Out:function(e){return Math.sqrt(1- --e*e)},InOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)}},Elastic:{In:function(e){return e===0?0:e===1?1:-(2**(10*(e-1)))*Math.sin((e-1.1)*5*Math.PI)},Out:function(e){return e===0?0:e===1?1:2**(-10*e)*Math.sin((e-.1)*5*Math.PI)+1},InOut:function(e){return e===0?0:e===1?1:(e*=2,e<1?-.5*2**(10*(e-1))*Math.sin((e-1.1)*5*Math.PI):.5*2**(-10*(e-1))*Math.sin((e-1.1)*5*Math.PI)+1)}},Back:{In:function(e){var t=1.70158;return e*e*((t+1)*e-t)},Out:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},InOut:function(e){var t=1.70158*1.525;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)}},Bounce:{In:function(e){return 1-A.Bounce.Out(1-e)},Out:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},InOut:function(e){return e<.5?A.Bounce.In(e*2)*.5:A.Bounce.Out(e*2-1)*.5+.5}}},j=typeof self>`u`&&typeof process<`u`&&process.hrtime?function(){var e=process.hrtime();return e[0]*1e3+e[1]/1e6}:typeof self<`u`&&self.performance!==void 0&&self.performance.now!==void 0?self.performance.now.bind(self.performance):Date.now===void 0?function(){return new Date().getTime()}:Date.now,ie=function(){function e(){this._tweens={},this._tweensAddedDuringUpdate={}}return e.prototype.getAll=function(){var e=this;return Object.keys(this._tweens).map(function(t){return e._tweens[t]})},e.prototype.removeAll=function(){this._tweens={}},e.prototype.add=function(e){this._tweens[e.getId()]=e,this._tweensAddedDuringUpdate[e.getId()]=e},e.prototype.remove=function(e){delete this._tweens[e.getId()],delete this._tweensAddedDuringUpdate[e.getId()]},e.prototype.update=function(e,t){e===void 0&&(e=j()),t===void 0&&(t=!1);var n=Object.keys(this._tweens);if(n.length===0)return!1;for(;n.length>0;){this._tweensAddedDuringUpdate={};for(var r=0;r<n.length;r++){var i=this._tweens[n[r]],a=!t;i&&i.update(e,a)===!1&&!t&&delete this._tweens[n[r]]}n=Object.keys(this._tweensAddedDuringUpdate)}return!0},e}(),M={Linear:function(e,t){var n=e.length-1,r=n*t,i=Math.floor(r),a=M.Utils.Linear;return t<0?a(e[0],e[1],r):t>1?a(e[n],e[n-1],n-r):a(e[i],e[i+1>n?n:i+1],r-i)},Bezier:function(e,t){for(var n=0,r=e.length-1,i=Math.pow,a=M.Utils.Bernstein,o=0;o<=r;o++)n+=i(1-t,r-o)*i(t,o)*e[o]*a(r,o);return n},CatmullRom:function(e,t){var n=e.length-1,r=n*t,i=Math.floor(r),a=M.Utils.CatmullRom;return e[0]===e[n]?(t<0&&(i=Math.floor(r=n*(1+t))),a(e[(i-1+n)%n],e[i],e[(i+1)%n],e[(i+2)%n],r-i)):t<0?e[0]-(a(e[0],e[0],e[1],e[1],-r)-e[0]):t>1?e[n]-(a(e[n],e[n],e[n-1],e[n-1],r-n)-e[n]):a(e[i?i-1:0],e[i],e[n<i+1?n:i+1],e[n<i+2?n:i+2],r-i)},Utils:{Linear:function(e,t,n){return(t-e)*n+e},Bernstein:function(e,t){var n=M.Utils.Factorial;return n(e)/n(t)/n(e-t)},Factorial:(function(){var e=[1];return function(t){var n=1;if(e[t])return e[t];for(var r=t;r>1;r--)n*=r;return e[t]=n,n}})(),CatmullRom:function(e,t,n,r,i){var a=(n-e)*.5,o=(r-t)*.5,s=i*i,c=i*s;return(2*t-2*n+a+o)*c+(-3*t+3*n-2*a-o)*s+a*i+t}}},N=function(){function e(){}return e.nextId=function(){return e._nextId++},e._nextId=0,e}(),ae=new ie,oe=function(){function e(e,t){t===void 0&&(t=ae),this._object=e,this._group=t,this._isPaused=!1,this._pauseStart=0,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._initialRepeat=0,this._repeat=0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=0,this._easingFunction=A.Linear.None,this._interpolationFunction=M.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._id=N.nextId(),this._isChainStopped=!1,this._goToEnd=!1}return e.prototype.getId=function(){return this._id},e.prototype.isPlaying=function(){return this._isPlaying},e.prototype.isPaused=function(){return this._isPaused},e.prototype.to=function(e,t){return this._valuesEnd=Object.create(e),t!==void 0&&(this._duration=t),this},e.prototype.duration=function(e){return this._duration=e,this},e.prototype.start=function(e){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed)for(var t in this._reversed=!1,this._valuesStartRepeat)this._swapEndStartRepeatValues(t),this._valuesStart[t]=this._valuesStartRepeat[t];return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=e===void 0?j():typeof e==`string`?j()+parseFloat(e):e,this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this},e.prototype._setupProperties=function(e,t,n,r){for(var i in n){var a=e[i],o=Array.isArray(a),s=o?`array`:typeof a,c=!o&&Array.isArray(n[i]);if(!(s===`undefined`||s===`function`)){if(c){var l=n[i];if(l.length===0)continue;l=l.map(this._handleRelativeValue.bind(this,a)),n[i]=[a].concat(l)}if((s===`object`||o)&&a&&!c){for(var u in t[i]=o?[]:{},a)t[i][u]=a[u];r[i]=o?[]:{},this._setupProperties(a,t[i],n[i],r[i])}else t[i]===void 0&&(t[i]=a),o||(t[i]*=1),c?r[i]=n[i].slice().reverse():r[i]=t[i]||0}}},e.prototype.stop=function(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._group&&this._group.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this},e.prototype.end=function(){return this._goToEnd=!0,this.update(1/0),this},e.prototype.pause=function(e){return e===void 0&&(e=j()),this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStart=e,this._group&&this._group.remove(this),this)},e.prototype.resume=function(e){return e===void 0&&(e=j()),!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=e-this._pauseStart,this._pauseStart=0,this._group&&this._group.add(this),this)},e.prototype.stopChainedTweens=function(){for(var e=0,t=this._chainedTweens.length;e<t;e++)this._chainedTweens[e].stop();return this},e.prototype.group=function(e){return this._group=e,this},e.prototype.delay=function(e){return this._delayTime=e,this},e.prototype.repeat=function(e){return this._initialRepeat=e,this._repeat=e,this},e.prototype.repeatDelay=function(e){return this._repeatDelayTime=e,this},e.prototype.yoyo=function(e){return this._yoyo=e,this},e.prototype.easing=function(e){return this._easingFunction=e,this},e.prototype.interpolation=function(e){return this._interpolationFunction=e,this},e.prototype.chain=function(){var e=[...arguments];return this._chainedTweens=e,this},e.prototype.onStart=function(e){return this._onStartCallback=e,this},e.prototype.onUpdate=function(e){return this._onUpdateCallback=e,this},e.prototype.onRepeat=function(e){return this._onRepeatCallback=e,this},e.prototype.onComplete=function(e){return this._onCompleteCallback=e,this},e.prototype.onStop=function(e){return this._onStopCallback=e,this},e.prototype.update=function(e,t){if(e===void 0&&(e=j()),t===void 0&&(t=!0),this._isPaused)return!0;var n,r,i=this._startTime+this._duration;if(!this._goToEnd&&!this._isPlaying){if(e>i)return!1;t&&this.start(e)}if(this._goToEnd=!1,e<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),r=(e-this._startTime)/this._duration,r=this._duration===0||r>1?1:r;var a=this._easingFunction(r);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,a),this._onUpdateCallback&&this._onUpdateCallback(this._object,r),r===1)if(this._repeat>0){for(n in isFinite(this._repeat)&&this._repeat--,this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[n]==`string`&&(this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(this._valuesEnd[n])),this._yoyo&&this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n];return this._yoyo&&(this._reversed=!this._reversed),this._repeatDelayTime===void 0?this._startTime=e+this._delayTime:this._startTime=e+this._repeatDelayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var o=0,s=this._chainedTweens.length;o<s;o++)this._chainedTweens[o].start(this._startTime+this._duration);return this._isPlaying=!1,!1}return!0},e.prototype._updateProperties=function(e,t,n,r){for(var i in n)if(t[i]!==void 0){var a=t[i]||0,o=n[i];!Array.isArray(e[i])&&Array.isArray(o)?e[i]=this._interpolationFunction(o,r):typeof o==`object`&&o?this._updateProperties(e[i],a,o,r):(o=this._handleRelativeValue(a,o),typeof o==`number`&&(e[i]=a+(o-a)*r))}},e.prototype._handleRelativeValue=function(e,t){return typeof t==`string`?t.charAt(0)===`+`||t.charAt(0)===`-`?e+parseFloat(t):parseFloat(t):t},e.prototype._swapEndStartRepeatValues=function(e){var t=this._valuesStartRepeat[e],n=this._valuesEnd[e];typeof n==`string`?this._valuesStartRepeat[e]=this._valuesStartRepeat[e]+parseFloat(n):this._valuesStartRepeat[e]=this._valuesEnd[e],this._valuesEnd[e]=t},e}();N.nextId;var P=ae;P.getAll.bind(P),P.removeAll.bind(P),P.add.bind(P),P.remove.bind(P),P.update.bind(P);var se=(e,t)=>{let n=e?.getCenter();if(!e||!n)return;let r={lat:n.lat(),lng:n.lng(),tilt:e.getTilt()??0,heading:e.getHeading()??0,zoom:e.getZoom()??0},i={lat:t.center?.lat??r.lat,lng:t.center?.lng??r.lng,tilt:t.tilt??r.tilt,heading:t.heading??r.heading,zoom:t.zoom??r.zoom},a,o=!1,s=new oe(r).to(i,1e3).easing(A.Quadratic.Out).onUpdate(()=>{e.moveCamera({center:new window.google.maps.LatLng(r.lat,r.lng),heading:r.heading,tilt:r.tilt,zoom:r.zoom})}).onComplete(()=>{o=!0,a=void 0}).onStop(()=>{o=!0,a=void 0}).start(performance.now()),c=e=>{o||(a=s.update(e)&&!o?requestAnimationFrame(c):void 0)};return a=requestAnimationFrame(c),{stop:()=>{o||(o=!0,a!==void 0&&cancelAnimationFrame(a),a=void 0,s.stop())}}},F=e=>e.length>=2,ce=(e,t,n)=>{if(!e||!t||!t.length)return;let r=t.filter(F);if(r.length==1){let[e,t]=r[0];if(!Number.isFinite(e)||!Number.isFinite(t))return;r=(p([e,t],.12)?.geometry?.coordinates[0]??[]).filter(F)}let i=new window.google.maps.LatLngBounds;r.forEach(([e,t])=>{i.extend(new window.google.maps.LatLng(t,e))});let{edgePadding:a,onComplete:o}=n||{edgePadding:{top:50,left:50,right:50,bottom:50}};e.fitBounds(i,a),o&&o()},le=(e,t,n,r,a,o,s,c,l)=>{let[u,d]=(0,C.useState)(),[f,p]=(0,C.useState)(!1),m=(0,C.useRef)(!1),h=(0,C.useRef)(!1),g=(0,C.useRef)(s);(0,C.useEffect)(()=>{g.current=s},[s]);let y=!v(x.Places),{libraryLoaded:b}=_();return(0,C.useEffect)(()=>
1{if(!e?.current||!b||!r)return;let s=i(r,{removeLabels:c,hidePlaces:y}),l={center:{lat:t?.[1]??0,lng:t?.[0]??0},zoom:n??5,isFractionalZoomEnabled:!1,mapId:`styled_map`,zoomControl:!1,streetViewControl:!1,mapTypeControl:!1,fullscreenControl:!1,rotateControl:!1,scaleControl:!0,minZoom:2,disableDefaultUI:!0,gestureHandling:`greedy`,tilt:a??0,...o},u=new google.maps.Map(e.current,l),f=new google.maps.StyledMapType(s);u.mapTypes.set(`styled_map`,f),h.current=!0;let _,v=u.addListener(`dragstart`,()=>{m.current=!0}),x=u.addListener(`dragend`,()=>{_&&clearTimeout(_),_=setTimeout(()=>{m.current=!1},250)}),S=u.addListener(`renderingtype_changed`,()=>{g.current?.(u.getRenderingType())});return d(u),p(!0),r===`satellite`?u.setMapTypeId(window.google.maps.MapTypeId.HYBRID):u.setMapTypeId(`styled_map`),()=>{v.remove(),x.remove(),S.remove(),_&&clearTimeout(_),m.current=!1,h.current=!1,d(void 0),p(!1)}},[e,b,r,l]),(0,C.useEffect)(()=>{if(!u||r===`satellite`)return;if(h.current){h.current=!1;return}let e=new google.maps.StyledMapType(i(r,{removeLabels:c,hidePlaces:y}));u.mapTypes.set(`styled_map`,e),u.setMapTypeId(`roadmap`),u.setMapTypeId(`styled_map`)},[u,y,r,c]),{map:u,mapLoaded:f,drag:m}},ue=e=>{let t=(0,S.c)(23),{map:n,mapLoaded:r,mapContainerRef:i,onCenterChanged:a,onMapBoundsChanged:o,onPress:s,onUserGesture:c,onUserInteraction:l,onZoomChanged:u,setBounds:d,setCenter:p,setZoom:m}=e,h;t[0]!==a||t[1]!==o||t[2]!==s||t[3]!==c||t[4]!==l||t[5]!==u?(h={onCenterChanged:a,onMapBoundsChanged:o,onPress:s,onUserGesture:c,onUserInteraction:l,onZoomChanged:u},t[0]=a,t[1]=o,t[2]=s,t[3]=c,t[4]=l,t[5]=u,t[6]=h):h=t[6];let g=(0,C.useRef)(h),_,v;t[7]!==a||t[8]!==o||t[9]!==s||t[10]!==c||t[11]!==l||t[12]!==u?(_=()=>{g.current={onCenterChanged:a,onMapBoundsChanged:o,onPress:s,onUserGesture:c,onUserInteraction:l,onZoomChanged:u}},v=[a,o,s,c,l,u],t[7]=a,t[8]=o,t[9]=s,t[10]=c,t[11]=l,t[12]=u,t[13]=_,t[14]=v):(_=t[13],v=t[14]),(0,C.useEffect)(_,v);let y,b;t[15]!==n||t[16]!==i||t[17]!==r||t[18]!==d||t[19]!==p||t[20]!==m?(y=()=>{if(!r||!n)return;let e=f(()=>{let e=n.getBounds(),t=n.getCenter(),r=n.getZoom()??0,i=t?.lng(),a=t?.lat();if(i!=null&&a!=null&&(p([i,a]),g.current.onCenterChanged?.({latitude:a,longitude:i})),m(r),!e)return;
1let o=e.getSouthWest(),s=e.getNorthEast(),c=o.lng()>s.lng(),l={southWest:{latitude:o.lat(),longitude:c?-180:o.lng()},northEast:{latitude:s.lat(),longitude:c?180:s.lng()}};d(l),g.current.onZoomChanged?.(r),g.current.onMapBoundsChanged?.(l)},300),t=()=>{g.current.onUserInteraction(),g.current.onUserGesture?.({kind:`pan`})},a=()=>{g.current.onUserInteraction(),g.current.onUserGesture?.({kind:`zoom`})},o=()=>{n.get(`disableDoubleClickZoom`)||a()},s=e=>{let t=e.latLng;t&&g.current.onPress?.({latitude:t.lat(),longitude:t.lng()})},c=n.addListener(`bounds_changed`,e),l=n.addListener(`drag`,t),u=n.addListener(`dblclick`,o),h=n.addListener(`click`,s),_=i.current;return _?.addEventListener(`wheel`,a),()=>{e.cancel(),c.remove(),l.remove(),u.remove(),h.remove(),_?.removeEventListener(`wheel`,a)}},b=[n,i,r,d,p,m],t[15]=n,t[16]=i,t[17]=r,t[18]=d,t[19]=p,t[20]=m,t[21]=y,t[22]=b):(y=t[21],b=t[22]),(0,C.useEffect)(y,b)},de=e=>{let t=(0,S.c)(89),{mapSettings:n,camera:r,children:i,userInteraction:a,defaultCoordinates:o,defaultZoom:s,tilt:c,onUserInteractionChanged:l,onMapLoaded:u,onZoomChanged:d,onMapBoundsChanged:f,onRenderingTypeChanged:p,onCenterChanged:m,onUserGesture:g,onPress:_,mapOptions:v,lockMap:x,disableResumeButton:T,useCustomAttribution:D,removeLabels:te,zoomControlsBottomMargin:ne}=e,O;t[0]===o?O=t[1]:(O=o===void 0?[-73.9866,40.7306]:o,t[0]=o,t[1]=O);let k=O,A=s===void 0?8:s,j=ne===void 0?24:ne,ie=y(fe),{isMobile:M}=h(),[N,ae]=(0,C.useState)(A),[oe,P]=(0,C.useState)(),F=(0,C.useRef)(null),de=(0,C.useRef)(u),pe,me;t[2]===u?(pe=t[3],me=t[4]):(pe=()=>{de.current=u},me=[u],t[2]=u,t[3]=pe,t[4]=me),(0,C.useEffect)(pe,me);let he;t[5]===l?he=t[6]:(he=e=>l?.(e),t[5]=l,t[6]=he);let I=he,ge;t[7]!==k[0]||t[8]!==k[1]?(ge=()=>[k[0]??-73.9866,k[1]??40.7306],t[7]=k[0],t[8]=k[1],t[9]=ge):ge=t[9];let[_e,ve]=(0,C.useState)(ge),{map:L,mapLoaded:R,drag:ye}=le(F,_e,N,n?.styleId??n?.id??``,c,v,p,te,`mapView`),[be,xe]=(0,C.useState)(),z=(0,C.useRef)(void 0),B=r?.bounds,V=r?.center,Se=r?.edgePadding,H=r?.heading,U=r?.pitch,W=r?.zoom,Ce;t[10]!==R||t[11]!==D?(Ce=()=>{if(!R||!D)return;let e=window.setTimeout(()=>{let e=(F.current?.querySelector(`[aria-label="Map Data"]`))?.nextElementSibling?.textContent?.trim();e&&xe(e)},1e3);return()=>window.clearTimeout(e)},t[10]=R,t[11]=D,t[12]=Ce):Ce=t[12];let we;t[13]!==L||t[14]!==R||t[15]!==D?(we=[L,R,D],t[13]=L,t[14]=R,t[15]=D,t[16]=we):we=t[16],(0,C.useEffect)(Ce,we);let Te,Ee;t[17]!==L||t[18]!==R?(Te=()=>{R&&L&&de.current?.(L)},Ee=[L,R],t[17]=L,t[18]=R,t[19]=Te,t[20]=Ee):(Te=t[19],Ee=t[20]),(0,C.useEffect)(Te,Ee);let G;t[21]===I?G=t[22]:(G=()=>I(!0),t[21]=I,t[22]=G);let De;t[23]!==L||t[24]!==R||t[25]!==m||t[26]!==f||t[27]!==_||t[28]!==g||t[29]!==d||t[30]!==G?(De={map:L,mapLoaded:R,mapContainerRef:F,onCenterChanged:m,onMapBoundsChanged:f,onPress:_,onUserGesture:g,onUserInteraction:G,onZoomChanged:d,setBounds:P,setCenter:ve,setZoom:ae},t[23]=L,t[24]=R,t[25]=m,t[26]=f,t[27]=_,t[28]=g,t[29]=d,t[30]=G,t[31]=De):De=t[31],ue(De);let Oe,ke;t[32]!==B||t[33]!==V||t[34]!==Se||t[35]!==H||t[36]!==U||t[37]!==W||t[38]!==L||t[39]!==R||t[40]!==a?(Oe=()=>{if(!(a||!R))return z.current?.stop(),z.current=void 0,B?.length?ce(L,B,{edgePadding:Se}):(V!=null||H!=null||U!=null||W!=null)&&(z.current=se(L,{center:V?{lat:V.latitude,lng:V.longitude}:void 0,zoom:W,heading:H,tilt:U})),()=>{z.current?.stop(),z.current=void 0}},ke=[B,V,Se,H,U,W,L,R,a],t[32]=B,t[33]=V,t[34]=Se,t[35]=H,t[36]=U,t[37]=W,t[38]=L,t[39]=R,t[40]=a,t[41]=Oe,t[42]=ke):(Oe=t[41],ke=t[42]),(0,C.useEffect)(Oe,ke);let Ae;t[43]!==L||t[44]!==g||t[45]!==I||t[46]!==a?(Ae=e=>{L&&(a||I(!0),g?.({kind:`zoom`}),L.setZoom((L.getZoom()??0)+e))},t[43]=L,t[44]=g,t[45]=I,t[46]=a,t[47]=Ae):Ae=t[47];let je=Ae,Me;t[48]===Symbol.for(`react.memo_cache_sentinel`)?(Me={height:`100%`,width:`100%`,position:`relative`},t[48]=Me):Me=t[48];let Ne=D?`gm-custom-attr`:``,K;t[49]!==r||t[50]!==L?(K=e=>{let{cameraBounds:t}=e;if(!t)return;let{edgePadding:n}=r||{};ce(L,t,{edgePadding:n})},t[49]=r,t[50]=L,t[51]=K):K=t[51];let q;t[52]!==oe||t[53]!==ye||t[54]!==L||t[55]!==R||t[56]!==I||t[57]!==K||t[58]!==a||t[59]!==ie||t[60]!==N?(q={map:L,mapLoaded:R,zoom:N,bounds:oe,drag:ye,visibleCallout:ie,setCameraBounds:K,setUserInteraction:I,userInteraction:a},t[52]=oe,t[53]=ye,t[54]=L,t[55]=R,t[56]=I,t[57]=K,t[58]=a,t[59]=ie,t[60]=N,t[61]=q):q=t[61];let J;t[62]!==i||t[63]!==q?(J=(0,E.jsx)(w.Provider,{value:q,children:i}),t[62]=i,t[63]=q,t[64]=J):J=t[64];let Y;t[65]===x?Y=t[66]:(Y=x?(0,E.jsx)(`div`,{style:{height:`100%`,width:`100%`,position:`absolute`,backgroundColor:`transparent`,zIndex:9999}}):(0,E.jsx)(E.Fragment,{}),t[65]=x,t[66]=Y);let X;t[67]===Symbol.for(`react.memo_cache_sentinel`)?(X=(0,E.jsx)(`div`,{className:`hpn-map-container`,ref:F,style:{height:`100%`,width:`100%`}}),t[67]=X):X=t[67];let Z;t[68]!==je||t[69]!==M||t[70]!==x||t[71]!==L||t[72]!==v?.zoomControl||t[73]!==j?(Z=L&&!x&&!M&&v?.zoomControl!==!1?(0,E.jsx)(re,{bottomMargin:j,onZoomIn:()=>je(1),onZoomOut:()=>je(-1)}):null,t[68]=je,t[69]=M,t[70]=x,t[71]=L,t[72]=v?.zoomControl,t[73]=j,t[74]=Z):Z=t[74];let Q;t[75]!==T||t[76]!==I||t[77]!==a?(Q=!T&&a?(0,E.jsx)(ee,{icon:a?`location-arrow-light`:`location-arrow`,right:10,bottom:120,rotate:!1,onPress:()=>{I(!1),b.getState().setVisibleCalloutId(void 0)}}):(0,E.jsx)(E.Fragment,{}),t[75]=T,t[76]=I,t[77]=a,t[78]=Q):Q=t[78];let $;t[79]!==be||t[80]!==D?($=D?(0,E.jsx)(`div`,{style:{position:`absolute`,right:0,bottom:0,fontSize:10,backgroundColor:`rgb(var(--background))`,paddingLeft:3,paddingRight:3,opacity:.5},children:be}):(0,E.jsx)(E.Fragment,{}),t[79]=be,t[80]=D,t[81]=$):$=t[81];let Pe;return t[82]!==Ne||t[83]!==J||t[84]!==Y||t[85]!==Z||t[86]!==Q||t[87
1]!==$?(Pe=(0,E.jsxs)(`div`,{style:Me,className:Ne,children:[J,Y,X,Z,Q,$]}),t[82]=Ne,t[83]=J,t[84]=Y,t[85]=Z,t[86]=Q,t[87]=$,t[88]=Pe):Pe=t[88],Pe};function fe(e){return e.visibleCalloutId}export{w as a,ee as i,le as n,T as o,ce as r,de as t};
2//# sourceMappingURL=MapView-BtkKPFW4.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.