1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[2028],{75705(e,t,r){r.r(t),r.d(t,{NafLocationsMapBlock:()=>f});var s=r(11684),i=r(12888),n=r(88375),a=r(90300),l=r(64586),c=r(46553),o=r(91418),d=r(22399),h=r(7124),g=r(5537);let p=[],v=(0,r(96757).A)("div",{target:"ewypf6q0"})("min-height:500px;display:flex;align-items:center;justify-content:center;"),u=(0,n.Ay)({resolved:{},chunkName:()=>"pages-NafLocationsApp-components-GoogleMap",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>Promise.all([r.e(4967),r.e(2310),r.e(2516)]).then(r.bind(r,30915)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return r(this.resolve(e))},resolve:()=>30915}),f=({block:e})=>{let t="practice-tracks"===e?.nafLocationPath?l.a.practiceTracks:l.a.nafCenters,{nafLocationsByCounty:r,fetchState:n,error:f}=(0,c.d)(t,p,1e3),k=(0,i.useMemo)(()=>r.flatMap(({nafLocations:e})=>e.filter(e=>null!==e.coordinates).map(e=>{var r;return{lat:e.coordinates.latitude,lng:e.coordinates.longitude,title:e.title,ingress:e.ingress,link:(r=e.link.data.slug,t===l.a.practiceTracks?`/her-finner-du-naf/naf-ovingsbaner/${r}`:`/bilverksted-og-tester/naf-senter/${r}`)}})),[t,r]),m=t===l.a.practiceTracks;return"initial"===n||"isUpdating"===n&&0===r.length?(0,s.jsx)(v,{children:(0,s.jsx)(o.y,{})}):f?(0,s.jsx)(a.Q,{error:!0,children:f.message}):0===k.length?(0,s.jsx)(a.Q,{children:"Klarte ikke finne steder \xe5 vise i kartet."}):(0,s.jsx)(u,{markers:k,selectedLabel:m?"Valgt \xf8vingsbane":"Valgt senter",inactiveIcon:m?d:h,activeIconOverride:m?d:g})}}}]); 2//# sourceMappingURL=blocks-NafLocationsMapBlock-NafLocationsMapBlock.3e00b4d0c0f79db4.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.