1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="df60ca01-9d70-4600-8590-7529e905444a",e._sentryDebugIdIdentifier="sentry-dbid-df60ca01-9d70-4600-8590-7529e905444a")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3873],{79211:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/my/partner/coverage",function(){return o(97274)}])},97274:function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return b}});var r=o(97458),a=o(71775),i=o(80215),n=o(7073);o(44169);var l=o(95072),c=o(16151),s=o(95199),u=o(69905),d=o(52983),p=o(81641),f=o(2790),h=o(45306);function g({viewer:e,listingCoordinates:t}){let o=(0,d.useRef)(),[a,i]=(0,d.useState)(!1),n=(0,s.e)("lg"),g=e?.cleaningPartnersAsPartner.nodes,y=g?.map(e=>{let t=e.coverage;return u.twK(t,{id:e.id})}),m=[];for(let{longitude:e,latitude:o}of t||[])e&&o&&m.push([e,o]);let b=e=>{if(o.current=e,!y)return;let t=(0,u.VWR)((0,u.uf4)(y.map(e=>e)));o.current.fitBounds([[t[0],t[1]],[t[2],t[3]]],{padding:60})};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h.C,{}),(0,r.jsxs)("section",{className:"mb-6",children:[(0,r.jsx)("header",{className:"mb-4 flex items-end justify-between",children:(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{className:"text-f3 font-bold leading-8",children:(0,r.jsx)(p.Z,{defaultMessage:"Coverage",id:"yypTmyLyZI",description:"Service Partner coverage view: Title"})}),(0,r.jsx)("p",{children:(0,r.jsx)(p.Z,{defaultMessage:"Here you can see all the areas you cover at Landfolk.",id:"MHOymDYjBM",description:"Service Partner coverage view: Description"})}),(0,r.jsx)("p",{className:"text-f7 text-february-muted",children:(0,r.jsx)(p.Z,{defaultMessage:"Please contact us if you want to change your coverage.",id:"qCnD79vLD+",description:"Service Partner coverage view: Note"})})]})}),(0,r.jsxs)(l.X,{style:{width:"100%",minHeight:n?"80vh":"50vh"},id:"map",onLoad:e=>{b(e.target)},children:[y?.map(e=>r.jsx(f.Hw,{id:e.properties?.id,type:"geojson",data:e,children:r.jsx(f.mh,{id:e.properties?.id,type:"fill",paint:{"fill-color":"#fbda86","fill-opacity":.6}})},e.properties?.id)),!a&&(0,r.jsx)("button",{onClick:()=>i(!0),onTouchMove:e=>{let t=e.nativeEvent.scale;"number"==typeof t&&1!==t&&i(!0)},className:["absolute z-10 flex h-full w-full cursor-pointer items-center justify-center bg-february bg-opacity-60 font-bold text-white opacity-0 transition-opacity [touch-action:pan-x_pan-y_pan-down_pan-up] nl:text-f6 nl:opacity-100 hocus:opacity-100"].filter(Boolean).join(" "),children:(0,r.jsx)(p.Z,{defaultMessage:"Click to enable",id:"hVcM4G/dPe",description:"Click to enable zoom on the map"})}),(0,r.jsx)(f.Hw,{type:"geojson",data:(0,u.YmM)(m),children:(0,r.jsx)(f.mh,{...c.uo})})]})]})]})}var y=o(16063),m=o(85424);function b(){let e=(0,n.AZ)(),{viewer:t}=(0,m.R)(),o=(0,i.useRouter)();return t?.isPartner||o.replace(y._j.userDashboard()),(0,r.jsx)(a.G,{query:e,children:e=>(0,r.jsx)(g,{...e})})}},69081:function(e,t,o){"use strict";o.d(t,{Ix:function(){return l},gb:function(){return s},lm:function(){return c}});var r=o(97458),a=o(52983),i=o(95199),n=o(79527);let l={house:{default:"map-house",hover:"map-house-hover",active:"map-house-active"},houseLg:{default:"map-house-lg",hover:"map-house-lg-hover",active:"map-house-lg-active"},label:{default:"map-label",hover:"map-label-hover",active:"map-label-active"}};function c({onLabelLoad:e}={}){let t=(0,i.e)("can-hover"),[o,c]=(0,a.useState)(()=>new Set),s=(0,a.useMemo)(()=>[l.label.default,l.label.active,...t?[l.label.hover]:[]],[t]),u=(0,a.useCallback)(e=>{c(t=>t.has(e)?t:new Set(t).add(e))},[]);return(0,a.useEffect)(()=>{s.every(e=>o.has(e))&&e?.()},[o,e,s]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.q,{id:l.house.default,src:`${location.origin}/map-house.png`,options:{pixelRatio:2,sdf:!1}}),t&&(0,r.jsx)(n.q,{id:l.house.hover,src:`${location.origin}/map-house-hover.png`,options:{pixelRatio:2,sdf:!1}}),(0,r.jsx)(n.q,{id:l.house.active,src:`${location.origin}
1/map-house-active.png`,options:{pixelRatio:2,sdf:!1}}),(0,r.jsx)(n.q,{id:l.label.default,src:`${location.origin}/map-label.png`,onLoad:()=>u(l.label.default),options:{pixelRatio:2,sdf:!1,stretchX:[[59,161]],stretchY:[[73,75]]}}),t&&(0,r.jsx)(n.q,{id:l.label.hover,src:`${location.origin}/map-label-hover.png`,onLoad:()=>u(l.label.hover),options:{pixelRatio:2,sdf:!1,stretchX:[[59,161]],stretchY:[[73,75]]}}),(0,r.jsx)(n.q,{id:l.label.active,src:`${location.origin}/map-label-active.png`,onLoad:()=>u(l.label.active),options:{pixelRatio:2,sdf:!1,stretchX:[[59,161]],stretchY:[[73,75]]}})]})}function s({size:e="lg"}){return(0,r.jsx)(n.q,{id:"lg"===e?l.houseLg.default:l.house.default,src:"lg"===e?`${location.origin}/map-house-lg.png`:`${location.origin}/map-house.png`,options:{pixelRatio:2,sdf:!1}})}},79527:function(e,t,o){"use strict";o.d(t,{q:function(){return s}});var r=o(48165),a=o(52983),i=o(2790),n=o(19330),l=o(78625);let c=new WeakMap;function s({id:e,src:t,options:o,onLoad:s}){let u=(0,a.useContext)(l.T),d=(0,i.Sx)(),p=(0,a.useRef)(o),f=(0,a.useRef)(s);return p.current=o,f.current=s,(0,a.useEffect)(()=>{let o,a,i,n;let l=!1,s=!1,h=!1,g=!1,y=()=>{o?.hasImage(e)&&(l=!1,s||(s=!0,f.current?.()))},m=()=>{if(o&&!g){if(o.hasImage(e)){y();return}s=!1,!h&&(i??=function(e,t){let o=c.get(e),r=o?.get(t);if(r)return r;let a=o??new Map,i=e.loadImage(t).catch(e=>{throw a.delete(t),e});return a.set(t,i),c.set(e,a),i}(o,t),n||(n=i.then(({data:a})=>{if(o&&!g&&o.isStyleLoaded()){if(!o.hasImage(e))try{o.addImage(e,a,p.current)}catch(a){if(!o.hasImage(e)){l||(l=!0,r.Tb(a,{tags:{component:"MapImageAsset",operation:"addImage"},extra:{imageId:e,imageSrc:t,options:p.current}}));return}}y()}},o=>{h=!0,g||r.Tb(o,{tags:{component:"MapImageAsset",operation:"loadImage"},extra:{imageId:e,imageSrc:t}})}).finally(()=>{n=void 0})))}},b=()=>{if(!(o=u??d.current?.getMap())){a=window.requestAnimationFrame(b);return}o.on("style.load",m),o.on("styledata",m),o.on("idle",m),m()};return b(),()=>{g=!0,a&&window.cancelAnimationFrame(a),o?.off("style.load",m),o?.off("styledata",m),o?.off("idle",m)}},[u,d,e,t]),n.km}},78625:function(e,t,o){"use strict";o.d(t,{T:function(){return r}});let r=(0,o(52983).createContext)(void 0)},16151:function(e,t,o){"use strict";o.d(t,{AT:function(){return f},H3:function(){return p},iA:function(){return l},k6:function(){return i},su:function(){return b},uF:function(){return c},uo:function(){return n},x9:function(){return g},y8:function(){return d},yY:function(){return u},yb:function(){return y}});var r=o(70468),a=o(69081);let i=13,n={id:"points",type:"circle",paint:{"circle-radius":["interpolate",["linear"],["zoom"],12,4,16,16],"circle-color":r.Y.colors.white,"circle-opacity":.8,"circle-stroke-width":1.5,"circle-stroke-color":r.Y.colors.february,"circle-stroke-opacity":.4}};r.Y.colors.error,r.Y.colors.white;let l={id:"point-layer",type:"symbol",source:"points",layout:{"symbol-avoid-edges":!0,"symbol-sort-key":["get","rank"],"icon-padding":-8,"text-allow-overlap":!0,"icon-allow-overlap":!0,"icon-image":a.Ix.house.default,"icon-size":1}},c={...l,id:"large-point-layer",layout:{...l.layout,"icon-padding":-16,"icon-image":a.Ix.houseLg.default,"icon-size":1}},s=[">",["length",["to-string",["coalesce",["get","label"],""]]],0],u=({renderLabels:e=!0}={})=>["all",["!",["has","point_count"]],...e?[["!",s]]:[],["!",["boolean",["get","disabled"],!1]]],d={...l,id:"unclustered-points",filter:u()},p={id:"label-layer",type:"symbol",source:"points",layout:{"symbol-avoid-edges":!0,"symbol-sort-key":["get","rank"],"icon-padding":-8,"text-padding":0,"text-allow-overlap":!0,"icon-allow-overlap":!0,"icon-image":a.Ix.label.default,"icon-size":1,"icon-text-fit":"width","icon-text-fit-padding":[13,21,13,21],"text-line-height":1,"text-variable-anchor":["center"],"text-font":["Open Sans Semibold"],"text-field":["get","label"],"text-justify":"center","text-size":10,"text-anchor":"center"},paint:{"text-color":r.Y.colors.february},id:"unclustered-labels",filter:["all",["!",["has","point_count"]],s]},f={id:"area-layer",type:"circle",paint:{"circle-color":r.Y.colors["february-muted"],"circle-opacity":.2,"circle-radius":["interpolate",["exponential",2],["zoom"],0,0,20,3e3],"circle-stroke-width":1,"cir
1cle-stroke-color":r.Y.colors.february,"circle-stroke-opacity":.2}},h=(e=0,t=1)=>["interpolate",["linear"],["get","point_count"],2,(16+e)*t,4,(16+e)*t,10,(20+e)*t,100,(28+e)*t],g={id:"clusters",type:"circle",paint:{"circle-color":["case",["boolean",["feature-state","hover"],!1],r.Y.colors.white,r.Y.colors["neutral-100"]],"circle-opacity":["case",["boolean",["feature-state","hover"],!1],1,1],"circle-radius":["interpolate",["exponential",1.6],["zoom"],12,["+",["case",["boolean",["feature-state","hover"],!1],1,0],h(0,1)],16,["+",["case",["boolean",["feature-state","hover"],!1],1,0],h(0,5)]],"circle-stroke-width":1,"circle-stroke-color":r.Y.colors.february,"circle-stroke-opacity":["case",["boolean",["feature-state","hover"],!1],.1,.05]},filter:["has","point_count"]},y={...g,id:"clusters-shadow",paint:{"circle-color":r.Y.colors.february,"circle-radius":["interpolate",["exponential",1.6],["zoom"],12,h(5,1),16,h(5,5)],"circle-blur":.8,"circle-opacity":.5,"circle-translate":[0,2]}},m=(e=1)=>["interpolate",["linear"],["get","point_count"],50,12*e,200,16*e],b={id:"cluster-count",type:"symbol",filter:["has","point_count_abbreviated"],layout:{"text-field":"{point_count_abbreviated}","text-font":["Open Sans Regular"],"text-size":["interpolate",["exponential",1.6],["zoom"],12,m(1),16,m(2)],"text-allow-overlap":!0,"icon-ignore-placement":!0},paint:{"text-color":["case",["boolean",["feature-state","hover"],!1],r.Y.colors["forest-700"],r.Y.colors.february]}}},44169:function(){}},function(e){e.O(0,[4138,2790,9905,48,5072,8246,2888,9774,179],function(){return e(e.s=79211)}),_N_E=e.O()}]); 2//# sourceMappingURL=coverage-f078cdaf68b38dc6.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.