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]="cfead6ec-c355-49cc-86f6-ec261a059677",e._sentryDebugIdIdentifier="sentry-dbid-cfead6ec-c355-49cc-86f6-ec261a059677")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[477],{8758:(e,t,n)=>{n.d(t,{z:()=>o});var r=n(43465),l=n(31151);async function o(e){let{type:t,location:n,search:o,sort:a="distance",lat:s,lng:i,productId:c,providerId:u,page:d=1,pageSize:g=r.u[t]}=e,p=new URLSearchParams;n&&p.set("location",n),o&&p.set("search",o),s&&p.set("lat",s.toString()),i&&p.set("lng",i.toString()),c?p.set("productId",c.toString()):"number"==typeof u&&p.set("providerId",u.toString()),p.set("sort",a),p.set("page",d.toString()),p.set("pageSize",g.toString());let f=await (0,l.E)("/healthcare/providers/".concat(t,"?").concat(p.toString()));return{...f,results:f.results.map(e=>({...e,id:e.id||((e,t)=>{let n=[e,t.name,t.address,t.town,t.latitude,t.longitude].map(e=>e.trim().toLowerCase()).join("|"),r=5381;for(let e=0;e<n.length;e+=1)r=(r<<5)+r+n.charCodeAt(e);return"fallback-".concat(Math.abs(r).toString(36))})(t,e)}))}}},10026:(e,t,n)=>{n.d(t,{Eh:()=>a,M1:()=>i,gs:()=>s});var r=n(26514),l=n(7570),o=n(89460);let a={yes:"alerts.success.1",no:"alerts.error.3",negotiating:"brand.primary.5",partial:"brand.secondary.6",unknown:"alerts.warning.2"},s=()=>(0,r.jsx)(l.son,{flexWrap:"wrap",justifyContent:"space-between",children:["yes","partial","negotiating","no"].map(e=>(0,r.jsx)(i,{status:e,showTooltip:!0,showText:!0},e))}),i=e=>{let{status:t,showTooltip:n=!1,showText:s=!1}=e,{t:i}=(0,o.B)();return(0,r.jsxs)(l.son,{alignItems:"center",justifySelf:s?"start":"center",gap:2,children:[(0,r.jsx)(l.azJ,{w:"10px",h:"10px",borderRadius:"50%",bgColor:a[t],flexShrink:0}),s&&(0,r.jsx)(l.o5u,{fontSize:"14px",overflow:"hidden",whiteSpace:"nowrap",children:i("contractedStatus.".concat(t))}),n&&(0,r.jsx)(l.oSR,{title:i("contractedStatus.".concat(t)),children:(0,r.jsx)(l.o5u,{children:i("contractedStatus.tooltip.".concat(t))})})]})}},14266:(e,t,n)=>{n.d(t,{$4:()=>i,Ki:()=>o,Pf:()=>a,UX:()=>s,WM:()=>c,cf:()=>l,gY:()=>r});let r=5919193,l="VGZ",o="/next-images/logo_verzekeraars/large/vgz.png",a=13,s="1012KE",i=()=>({path:"M11.5 0C5.15 0 0 4.92 0 11C0 11.25 0.00999973 11.5 0.0299997 11.76C0.0699997 12.24 0.13 12.72 0.23 13.22C0.23 13.24 0.24 13.26 0.24 13.28C1.8 21.24 10.47 32 11.46 32C11.48 32 11.49 32 11.5 31.98C11.51 32 11.52 32 11.54 32C12.53 32 21.2 21.24 22.76 13.28C22.76 13.26 22.77 13.24 22.77 13.22C22.87 12.72 22.93 12.24 22.97 11.76C22.99 11.5 23 11.25 23 11C23 4.92 17.85 0 11.5 0Z",anchor:new google.maps.Point(11.5,32),fillColor:"green",fillOpacity:1,strokeWeight:0,scale:1}),c=()=>({path:"M5.95225 2.66797C5.58406 2.66797 5.28558 2.96645 5.28558 3.33464V5.6153H3.33333C2.59695 5.6153 2 6.21225 2 6.94863V13.2013C2 13.5695 2.29848 13.868 2.66667 13.868H6.71429V10.3311H9.28571V13.868H13.3333C13.7015 13.868 14 13.5695 14 13.2013V6.94863C14 6.21225 13.403 5.6153 12.6667 5.6153H10.7144V3.33464C10.7144 2.96645 10.4159 2.66797 10.0478 2.66797H5.95225ZM7.42846 3.4048H8.5713V4.43635H9.57124V5.6153H8.5713V6.64684H7.42846V5.6153H6.42851V4.43635H7.42846V3.4048ZM3.14289 7.38371H5.71431V9.15219H3.14289V7.38371ZM6.71429 7.38371H9.28571V9.15219H6.71429V7.38371ZM10.2857 7.38371H12.8571V9.15219H10.2857V7.38371ZM3.14289 10.331H5.71431V12.0995H3.14289V10.331ZM10.2857 10.331H12.8571V12.0995H10.2857V10.331Z",anchor:new google.maps.Point(8,29),fillColor:"#FFFFFF",fillOpacity:1,strokeWeight:0,scale:1})},41907:(e,t,n)=>{n.d(t,{F:()=>g,H:()=>c});var r=n(51583),l=n(31499),o=n(75834),a=n(44964),s=n(43832),i=n(26508);let c={lat:52.37509,lng:4.89339},u=["places"],d=a.Ik({lat:a.au.number().default(c.lat),lng:a.au.number().default(c.lng)}),g=function(){let{setInitialQueryParams:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{isLoaded:t}=(0,l.RH)({googleMapsApiKey:"AIzaSyBLfgI5BhawGQst2xaCMq61PkzLYyUUZ0Y",libraries:u}),n=(0,o.useRef)(null),{queryParams:a,setQueryParams:g}=(0,s.s)({schema:d,defaultValues:{...c}}),p=(0,o.useMemo)(()=>(0,r.stringify)(a),[a]);return(0,i.A)(()=>{let{lat:e,lng:t}=c;g({lat:e,lng:t})},[e]),{autocompleteRef:n,query:a,gmScriptLoaded:t,queryString:p,handlePlaceSelect:()=>{var e;if(!n.current)return;let t=n.current.getPlace();if(null==(e=t.geometry)?void 0:e.location){let e=t.geometry.location.lng();g({lat:t.geometry.location.lat(),lng:e})}},selectPlaceOnEnter:e=>{var t;e&&(null==e||null==(t=e.geometry)?void 0:t.location)&&g({lng:e.geometry.location.lng(),lat:e.geometry.location.lat()})},setQuery:g}}},43832:(e,t,n)=>{n.d(t,{s:()=>o});var r=n(46225),l=n(75834);function o(e){let t=(0,r.useRouter)(),n=e.schema.safeParse({...e.defaultValues,...t.query}),o=n.success?n.data:e.defaultValues,[a,s]=(0,l.useState)(o);return(0,l.useEffect)(()=>
1{if(!t.isReady)return;if(0===Object.keys(t.query).length)return void s(e.defaultValues);let n={...a,...t.query},r=e.schema.safeParse(n);r.success?s(r.success?r.data:e.defaultValues):console.error("Error parsing query params schema",r.error)},[t.isReady,t.query]),{queryParams:a,setQueryParams:e=>{var n;let r=new Set((null!=(n=t.pathname.match(/\[([^\]]+)\]/g))?n:[]).map(e=>e.slice(1,-1))),l={...a,...Object.fromEntries(Object.entries(t.query).filter(e=>{let[t]=e;return!r.has(t)})),...e};t.replace({query:l},void 0,{shallow:!0})}}}},45838:(e,t,n)=>{n.d(t,{F:()=>d,o:()=>g});var r=n(26514),l=n(75834),o=n(14266),a=n(18878),s=n(92450),i=n(41907),c=n(8758);let u=(0,l.createContext)(null),d=e=>{let{children:t,enableDynamicFetch:n=!0,setInitialQueryParams:d=!0,type:g,list:p,mainId:f,providerId:h,insuranceProvider:m,providerLogo:y}=e,{userDetails:b}=(0,a.P)(),{autocompleteRef:x,gmScriptLoaded:v,handlePlaceSelect:C,query:w,queryString:j,selectPlaceOnEnter:S,setQuery:H}=(0,i.F)({setInitialQueryParams:d}),[k,P]=(0,l.useState)(!1),[V,M]=(0,l.useState)(!1),[E,I]=(0,l.useState)(p),[R,z]=(0,l.useState)(null!=h?h:o.gY),[D,N]=(0,l.useState)(null),[F,L]=(0,l.useState)(null!=m?m:"hospital"!==g||f||h||n?void 0:o.cf),[W,O]=(0,l.useState)(null!=y?y:o.Ki),Z=null!=W?W:y;(0,l.useEffect)(()=>{I(p),N(null)},[p]),(0,l.useEffect)(()=>{var e;"hospital"!==g||n||f||h||0!==p.length||0!==E.length||(0,c.z)({type:"hospital",providerId:o.gY,location:(0,s.d)(null!=(e=b.postalCode)?e:o.UX)}).then(e=>{var t;I(null!=(t=e.results)?t:[]),P(!1)}).catch(e=>{console.error(e),P(!0),I([])})},[n,p.length,f,E.length,h,g,b.postalCode]);let _=(0,l.useCallback)(async e=>{let{lat:t,lng:n,providerId:r,location:l}=e,o=null!=r?r:R,a=null!=t?t:w.lat,s=null!=n?n:w.lng;M(!0);try{let e=await (0,c.z)({type:g,lat:a,lng:s,location:l,productId:f,providerId:o});if(!e.results)throw Error("No results found in response");I(e.results),P(!1)}catch(e){console.error(e),P(!0),I([])}finally{N(null),M(!1)}},[f,w,R,g]),T=()=>{var e;if(!x.current)return;C();let t=x.current.getPlace();if(null==(e=t.geometry)?void 0:e.location)_({lat:t.geometry.location.lat(),lng:t.geometry.location.lng()})},q=e=>{var t;if(S(e),null==e||null==(t=e.geometry)?void 0:t.location)_({lat:e.geometry.location.lat(),lng:e.geometry.location.lng()})},B=(0,l.useMemo)(()=>({autocompleteRef:x,activeLocationId:D,enableDynamicFetch:n,shouldFetchOnDrag:n&&"hospital"!==g,gmScriptLoaded:v,handlePlaceSelect:T,hasError:k,insuranceProvider:F,isLoading:V,markerLocations:E,providerLogo:Z,setInsuranceProvider:L,setProviderLogo:O,query:w,queryString:j,selectPlaceOnEnter:q,setHasError:P,setActiveLocationId:N,setMarkerLocations:I,setQuery:H,fetchMarkerLocations:_,selectedProviderId:R,setSelectedProviderId:z}),[x,D,n,g,_,R,v,C,k,F,V,E,Z,w,j,S,N,L,I,O,H]);return(0,r.jsx)(u.Provider,{value:B,children:t})},g=()=>{let e=(0,l.useContext)(u);if(!e)throw Error("useCareLocationsMapContext must be used within CareLocationsMapProvider");return e}},70675:(e,t,n)=>{n.d(t,{f:()=>p});var r=n(26514),l=n(84292),o=n(26862),a=n(7570),s=n(31499),i=n(14266),c=n(65548),u=n(45838),d=n(21341);let g={componentRestrictions:{country:"NL"},fields:["geometry","formatted_address"]},p=e=>{let{autocompleteOptions:t}=e,{autocompleteRef:n,selectPlaceOnEnter:p,handlePlaceSelect:f,hasError:h}=(0,u.o)(),{userDetails:{postalCode:m}}=(0,c.Pj)(),{t:y}=(0,d.Bd)("results"),b={...g,...t};return(0,r.jsx)(s.jT,{onLoad:e=>n.current=e,onPlaceChanged:f,options:{...g,...t},children:(0,r.jsxs)(a.BJc,{children:[(0,r.jsx)("style",{children:"\n .pac-container {\n z-index: 9999 !important;\n border-radius: 4px;\n margin-top: 4px;\n box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);\n position: absolute !important;\n }\n .pac-item:first-child {\n background: #f5f5f5;\n }\n .pac-item {\n padding: 8px 12px;\n cursor: pointer;\n }\n .pac-item:hover {\n background-color: #f5f5f5;\n }\n .pac-item-selected {\n background-color: #e8f0fe;\n }\n "}),(0,r.jsx)(a.son,{gap:9,direction:{base:"column",md:"row"},w:"100%",h:"fit-content",children:(0,r.jsxs)(l.M,{isolation:"unset",children:[(0,r.jsx)(o.W,{pointerEvents:"none",children:(0,r.jsx)(a.Int,{iconName:"search"})}),(0,r.jsx)(a.aEs,{name:"location",placeholder:y("product:providers.searchBy"),size:"lg",type:"search",pl:"var(--input-height)",onKeyDown:e=>{if("Enter"!==e.key&&"Enter"!==e.code)return;e.preventDefault();let t=e.currentTarget.value.trim();n.current&&t&&((e,t)=>{new google.maps.places.AutocompleteService().getPlacePredictions({input:t,componentRestrictions:b.componentRestrictions,types:b.types},(t,n)=>{let r=n===google.maps.places.PlacesServiceStatus.OK,l=null==t?void 0:t[0];r&&l&&(e.value=l.description,e.blur(),new google.maps.places.PlacesService(document.createElement("div")).getDetails({placeId:l.place_id,fields:b.fields},(e,t)=>{t===google.maps.places.PlacesServiceStatus.OK&&e&&p(e)}))})})(e.currentTarget,t)},sx:{borderColor:"brand.secondary.4 !important",borderWidth:"2px !important"},defaultValue:null!=m?m:i.UX})]})}),h&&(0,r.jsxs)(a.son,{gap:6,border:"default",borderColor:"alerts.error.1",padding:8,borderRadius:"normal",backgroundColor:"interface.error.2",alignItems:"start",children:[(0,r.jsx)(a.Int,{iconName:"error-circle",color:"alerts.error.1",mt:2}
1),(0,r.jsx)(a.o5u,{color:"brand.primary.8",fontSize:"14px",children:y("noResultsFound")})]})]})})}},81715:(e,t,n)=>{n.d(t,{i:()=>y});var r=n(26514),l=n(7570),o=n(31499),a=n(75834),s=n(14266),i=n(45838),c=n(41907),u=n(58245),d=n.n(u),g=n(10026),p=n(56405);let f=e=>{let{location:t,insuranceProvider:n,providerLogo:a,onClose:s}=e,i={lat:Number(t.latitude),lng:Number(t.longitude)};return(0,r.jsx)(o.Fu,{position:i,onCloseClick:s,options:{pixelOffset:new google.maps.Size(0,-42)},children:(0,r.jsxs)(l.son,{flexDirection:{base:"column",md:"row"},gap:3,children:[(0,r.jsxs)(l.BJc,{children:[(0,r.jsx)(l.o5u,{as:"span",fontWeight:"bold",children:t.name}),(0,r.jsx)(l.o5u,{as:"span",children:(0,r.jsx)(p.x6,{i18nKey:(e=>{let{contracted:t}=e;return({yes:"product:googleMap:hasContract",no:"product:googleMap:noContract",negotiating:"product:googleMap:negotiating",partial:"product:googleMap:partial",unknown:"product:googleMap:unknown"})[t]||""})(t),values:{providerName:n},components:[(0,r.jsx)(l.o5u,{as:"span",color:g.Eh[t.contracted],fontWeight:"medium",display:"inline"},"status"),(0,r.jsx)(l.o5u,{as:"span",color:"grey.4",fontWeight:"medium",display:"inline"},"provider"),(0,r.jsx)(l.o5u,{as:"span",color:"grey.4",fontWeight:"medium",display:"inline"},"supplement")]})}),a&&(0,r.jsx)(l.son,{display:{base:"flex",md:"none"},maxW:32,children:(0,r.jsx)(d(),{src:a,alt:t.name,width:128,height:64,style:{width:"100%",height:"auto"}})})]}),a&&(0,r.jsx)(l.son,{display:{base:"none",md:"flex"},maxW:32,children:(0,r.jsx)(d(),{src:a,alt:t.name,width:128,height:64,style:{width:"100%",height:"auto"}})})]})})},h=[{featureType:"poi.business",stylers:[{visibility:"off"}]},{featureType:"poi.attraction",stylers:[{visibility:"off"}]}],m={width:"100%",height:"100%",minHeight:"600px",borderRadius:11},y=e=>{var t,n;let{scrollToMapContainer:u=!1}=e,{query:d,gmScriptLoaded:g,queryString:p,setQuery:y,markerLocations:b,fetchMarkerLocations:x,isLoading:v,activeLocationId:C,shouldFetchOnDrag:w,insuranceProvider:j,providerLogo:S}=(0,i.o)(),[H,k]=(0,a.useState)(null),[P,V]=(0,a.useState)(s.Pf),M=(0,a.useRef)(null),E=(0,a.useRef)(null),I=(0,a.useRef)(!1),[R,z]=(0,a.useState)({lat:null!=(t=d.lat)?t:c.H.lat,lng:null!=(n=d.lng)?n:c.H.lng});(0,a.useEffect)(()=>{var e,t;z({lat:null!=(e=d.lat)?e:c.H.lat,lng:null!=(t=d.lng)?t:c.H.lng})},[d.lat,d.lng]);let D=(0,a.useCallback)(function(){var e,t,n,r;let l=!(arguments.length>0)||void 0===arguments[0]||arguments[0],o=null==(e=M.current)?void 0:e.getCenter();if(!o)return;let a=null==(t=M.current)?void 0:t.getZoom();a!==P&&V(null!=a?a:s.Pf);let i=o.lat(),c=o.lng(),u=E.current;if(!(u&&1e-5>Math.abs(u.lat-i)&&1e-5>Math.abs(u.lng-c))){if(1e-5>Math.abs((null!=(n=d.lat)?n:0)-i)&&1e-5>Math.abs((null!=(r=d.lng)?r:0)-c)){E.current={lat:i,lng:c};return}E.current={lat:i,lng:c},z({lat:i,lng:c}),l&&(y({lat:i,lng:c}),x({lat:i,lng:c}))}},[P,d,y,x]);return((0,a.useEffect)(()=>{if(!C)return void k(null);let e=b.find(e=>{let{id:t}=e;return t===C});e&&(k(e),M.current&&(I.current=!0,M.current.panTo({lat:Number(e.latitude),lng:Number(e.longitude)}),u&&M.current.getDiv().scrollIntoView({behavior:"smooth",block:"start"})))},[C,b]),g)?(0,r.jsx)(l.EAD,{isLoaded:!v,children:(0,r.jsxs)(o.u6,{onLoad:e=>{M.current=e},onIdle:()=>{if(I.current){I.current=!1;return}p&&D(w)},zoom:P,center:R,mapContainerStyle:m,options:{styles:h},onClick:()=>k(null),children:[b.map(e=>(0,r.jsxs)(a.Fragment,{children:[(0,r.jsx)(o.pH,{onClick:()=>k(e),clickable:!0,icon:{...(0,s.$4)(),fillColor:(e=>{let{contracted:t}=e;return({yes:"#38A169",no:"#E70000",negotiating:"#F39026",partial:"#2385BD",unknown:"#DD6B20"})[t]||"#3182CE"})(e)},position:{lat:Number(e.latitude),lng:Number(e.longitude)}}),(0,r.jsx)(o.pH,{clickable:!1,icon:(0,s.WM)(),position:{lat:Number(e.latitude),lng:Number(e.longitude)}})]},e.id)),H&&(0,r.jsx)(f,{location:H,insuranceProvider:j,providerLogo:S,onClose:()=>k(null)})]})}):null}}}]);
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.