1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f6c14361-1a00-4602-bd3a-77337139effe",e._sentryDebugIdIdentifier="sentry-dbid-f6c14361-1a00-4602-bd3a-77337139effe")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2903],{15284:(e,t,a)=>{a.r(t),a.d(t,{default:()=>y});var n,l,r,s=a(95155),o=a(12115),i=a(52200),c=a(61979),d=a(17652),f=a(94939);let u=(e,t,a)=>!!e&&!!t&&(a===f.DH.GB?e.split(" ")[0]===t.split(" ")[0]:e.startsWith(t));var h=a(363);function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(null,arguments)}let m=function(e){return o.createElement("svg",p({xmlns:"http://www.w3.org/2000/svg",width:41,height:66,fill:"none"},e),n||(n=o.createElement("path",{fill:"#000",d:"M20.547 0h-.094C9.175 0 0 9.27 0 20.663 0 28.132 3.366 37.99 10.003 49.96c4.921 8.875 9.911 15.673 9.961 15.74.139.189.358.3.59.3h.02c.24-.007.46-.13.593-.332.049-.076 5.003-7.637 9.891-16.885C37.655 36.3 41 26.839 41 20.663 41 9.27 31.824 0 20.547 0"})),l||(l=o.createElement("path",{fill:"#fff",d:"M24.529 17.158h-.884l2.144-2.745a.207.207 0 0 0-.026-.3.206.206 0 0 0-.298.047l-2.356 3.015h-6.514a.205.205 0 0 0-.206.206.205.205 0 0 0 .206.207h6.214l-2.68 3.451h-1.178a5.7 5.7 0 0 0-4.034 1.396 4.12 4.12 0 0 0-1.26 2.886.2.2 0 0 0 .206.206h2.809l-2.144 2.768a.206.206 0 0 0 .035.289.2.2 0 0 0 .124.041.2.2 0 0 0 .165-.077l2.356-3.021h9.058a.207.207 0 0 0 .2-.247l-1.737-7.963a.206.206 0 0 0-.2-.16M14.05 25.097c.118-1.855 1.65-3.663 4.877-3.663h.883l-2.845 3.663zm11.155-3.663.807 3.663h-8.522l2.839-3.663zm-4.558-.413 2.68-3.451h1.036l.754 3.451z"})),r||(r=o.createElement("path",{fill:"#fff",d:"M20 7a14 14 0 1 0 14 13.994A14.01 14.01 0 0 0 20 7m0 27.582a13.588 13.588 0 1 1 13.588-13.588A13.605 13.605 0 0 1 20 34.582"})))};var g=a(5330),b=a(4772);let w={width:"100%",height:"278px"},y=e=>{let{center:t,zoom:a=18,options:n,postalCode:l,countryCode:r,setMarkerPosition:f,defaultCenter:p,handleMapEditClick:y}=e,v=(0,d.c3)("addressDetailsOverlay.map"),[x,C]=(0,o.useState)(!1),[j,k]=(0,o.useState)(null),[E,_]=(0,o.useState)(t),[N,M]=(0,o.useState)(t),[S,T]=(0,o.useState)(!1),z=(0,o.useCallback)(async(e,t)=>{var a;let n=new google.maps.Geocoder,{results:l}=await n.geocode({location:{lat:e,lng:t}});return(null==(a=l.flatMap(e=>e.address_components).find(e=>e.types.includes("postal_code")))?void 0:a.long_name)||null},[]),D=(0,o.useCallback)(async()=>{if(!j)return;let e=j.getCenter();if(!e)return;let t=e.lat(),a=e.lng();_({lat:t,lng:a}),u(l,await z(t,a),r)?(f({lat:t,lng:a}),M({lat:t,lng:a})):(j.panTo(N),f(N),T(!0))},[j,l,r,z,f,N]);return(0,o.useEffect)(()=>{if(j)return j.addListener("dragend",D),j.addListener("zoom_changed",D),()=>{google.maps.event.clearListeners(j,"dragend"),google.maps.event.clearListeners(j,"zoom_changed")}},[j,D]),(0,o.useEffect)(()=>{if(S){let e=setTimeout(()=>T(!1),3e3);return()=>clearTimeout(e)}},[S]),(0,s.jsx)("div",{className:"relative w-full","data-testid":h.Y.map.AddressDetailsMap,children:(0,s.jsxs)(i.u6,{mapContainerStyle:w,center:E,zoom:a,options:{streetViewControl:!1,fullscreenControl:!1,zoomControl:!1,gestureHandling:x?"greedy":"none",mapTypeControl:!1,cameraControl:!1,keyboardShortcuts:!1,mapId:"2edf739629a18928",...n},onLoad:k,children:[x&&(0,s.jsxs)("div",{className:"absolute top-2 right-4 left-4 flex items-center gap-1 bg-white p-2 text-sm select-none",children:[(0,s.jsx)(c.A,{className:"w-10 sm:w-8"}),(0,s.jsxs)("p",{children:[v("note")," ",(0,s.jsx)("button",{type:"button",className:"inline-block underline",onClick:()=>{f(p),_(p),null==j||j.setCenter(p),null==j||j.setZoom(18)},children:"Reset"})]})]}),(0,s.jsx)("div",{className:"pointer-events-none absolute top-[calc(50%-33px)] left-1/2 -translate-x-1/2 -translate-y-[33px]",children:(0,s.jsx)(m,{})}),!S&&(0,s.jsx)(g.$,{onClick:()=>{x||y(),C(e=>!e)}
1,className:"absolute bottom-5 left-1/2 -translate-x-1/2 rounded-md bg-black/65 p-2 px-4 text-sm text-white shadow-md md:text-base",children:x?"Save location":"Change entrance?"}),(0,s.jsx)(b.e,{show:S,enter:"transition transform duration-300 ease-out",enterFrom:"translate-y-5 opacity-0",enterTo:"translate-y-0 opacity-100",leave:"transition transform duration-300 ease-in",leaveFrom:"translate-y-0 opacity-100",leaveTo:"translate-y-5 opacity-0",children:(0,s.jsx)("div",{className:"bg-fadedRed absolute bottom-0 left-0 w-full p-2 text-white",children:v("postalCodeNotMatch")})})]})})}},61979:(e,t,a)=>{a.d(t,{A:()=>i});var n,l,r,s=a(12115);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(null,arguments)}let i=function(e){return s.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:23,height:23,fill:"none"},e),n||(n=s.createElement("path",{fill:"#fff",stroke:"#000",d:"M11.055 22.45c5.923 0 10.725-4.802 10.725-10.725S16.978 1 11.055 1 .33 5.802.33 11.725 5.132 22.45 11.055 22.45Z"})),l||(l=s.createElement("path",{stroke:"#000",d:"M10.778 10.22v6.76"})),r||(r=s.createElement("circle",{cx:10.779,cy:6.532,r:.615,fill:"#E3292A"})))}}}]);
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.