1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1469],{27869:function(e,t,a){var l=a(48282),n=a(30123),i=a(79262),o=a(2218),r=a(90227);t.Z=e=>{let{address:t,city:a,country:s,cvr:d,description:c,email:u,isMain:m=!1,officeName:p,phone:f,...x}=e,{common:h}=(0,o.S)(),v=(0,r.useRouter)();return(0,l.jsxs)(n.xu,{color:"montain.base",...x,children:[(0,l.jsx)(i.x,{mb:"xxs",textStyle:{base:"mobile.body.md",md:"desktop.body.xs"},children:m?h("headOffice"):""}),(0,l.jsx)(i.x,{as:"h2",mb:"xs",paddingTop:m?"":"20px",textStyle:(v.asPath,{base:"mobile.h4",md:"desktop.h4"}),children:p||"".concat(a,", ").concat(s)}),(0,l.jsx)(n.xu,{dangerouslySetInnerHTML:{__html:t},mb:"xs",textStyle:{base:"mobile.body.s",md:"desktop.body.s"}}),(0,l.jsxs)(n.xu,{textStyle:{base:"desktop.body.medium.s",md:"desktop.body.s"},children:[f&&(0,l.jsx)(i.x,{mb:"3xs",children:f}),u&&(0,l.jsx)(i.x,{mb:"xs",children:u}),d&&(0,l.jsx)(i.x,{children:d})]}),!!c&&(0,l.jsx)(i.x,{mt:"xs",textStyle:"mobile.body.xs",dangerouslySetInnerHTML:{__html:c}})]})}},51469:function(e,t,a){a.r(t),a.d(t,{default:function(){return q},getStaticCountryProps:function(){return G},getStaticPaths:function(){return W}});var l=a(48282),n=a(25990),i=a(64331),o=a(11713),r=a(49759),s=a(30123),d=a(15852),c=a(79262),u=a(56771),m=a(49416),p=a(29577),f=a(33647),x=a(2218),h=a(40336),v=a(18529),y=a(40144),g=a(54459),b=a(88071),k=a(27869),j=e=>{var t;let{contentPageModel:a,offices:n,lastSegment:i,countriesWithOffices:o}=e,{common:j,multiple:P}=(0,x.S)(),w=null==a?void 0:a.elements.hero.linkedItems[0],S=null==a?void 0:null===(t=a.elements.content.linkedItems[0])||void 0===t?void 0:t.elements.pageContent.linkedItems,C=null==S?void 0:S.map(e=>{var t,l;return{type:e.system.type,category:null==a?void 0:null===(l=a.elements.category)||void 0===l?void 0:null===(t=l.value[0])||void 0===t?void 0:t.codename}}),N=C&&!C.find(e=>"editorial_spots"===e.type&&"office"===e.category);if(!a)return(0,l.jsx)("div",{children:"This page is unavailable"});let U={Danmark:"Denmark",Sverige:"Sweden",Norge:"Norway",Suomi:"Finland","United States":"United States of America","united-states":"United States of America",Schweiz:"Switzerland",japanese:"Japan",italia:"Italy",francais:"France",polska:"Poland"},F=null==o?void 0:o.all.find(e=>e.url.toLowerCase()===i.toLowerCase()),_=F?U[F.title]||F.title:U[i]||i;return("spain-and-portugal"==i||"espana-y-portugal"===i)&&(_="Spain"),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(b.i,{page:a}),(0,l.jsx)(f.p,{backLink:{href:"/".concat(P("contactUsUrl")),label:j("contactUs")},model:w}),N&&(0,l.jsxs)(r.W,{py:{base:"m",md:"l"},children:[(0,l.jsx)(s.xu,{mb:{base:"s",md:"l"},children:(0,l.jsxs)(d.k,{children:[(0,l.jsx)(c.x,{as:"h2",color:"mountain.base",flex:1,textStyle:"desktop.h5",children:j("office
1s")}),(0,l.jsx)(s.xu,{display:{base:"none",sm:"block"},children:(0,l.jsx)(p.r,{href:"/".concat(P("contactUsUrl")),iconName:"chevronRightForLink",type:h.U.SecondaryButton,children:j("viewAll")})})]})}),(0,l.jsx)(d.k,{direction:{base:"column",md:"row"},gap:{base:"m",md:"l"},children:n.map(e=>{let{id:t,...a}=e;return(0,l.jsx)(k.Z,{flex:1,...a},t)})})]}),!!(null==S?void 0:S.length)&&(0,l.jsx)(u.g,{shouldWrapChildren:!0,spacing:0,children:S.filter(e=>!["download"].includes(e.system.type)).map((e,t)=>(0,l.jsx)(m.v,{display:"block",children:(0,l.jsx)(v.Suspense,{fallback:null,children:(0,v.createElement)((0,y.P)(e.system.type),{model:e})})},t))}),(0,l.jsx)("div",{id:"people-section",children:(0,l.jsx)(g.Z,{noOfPeople:9,countryChosen:_})}),!!(null==S?void 0:S.length)&&(0,l.jsx)(u.g,{shouldWrapChildren:!0,spacing:0,children:S.filter(e=>"download"===e.system.type).map((e,t)=>(0,l.jsx)(m.v,{display:"block",children:(0,l.jsx)(v.Suspense,{fallback:null,children:(0,v.createElement)((0,y.P)(e.system.type),{model:e})})},t))})]})},P=a(60032),w=a(4143),S=a(74752),C=a(14942),N=a.n(C),U=a(82702),F=a.n(U),_=a(63928),I=a.n(_),O=a(11161),T=a.n(O),H=a(90227),L=a(88321),E=a.n(L),M=a(57202),R=a(62724);let W=()=>({fallback:"blocking",paths:[]}),A=0,B=[],Z=[];async function z(e){try{var t,a,l,n;let i=await e(0).limitParameter(1e3).skipParameter(A).collection("default").toPromise();if(!i.data.pagination.nextPage&&(null===(a=i.data)||void 0===a?void 0:null===(t=a.pagination)||void 0===t?void 0:t.totalCount)!=null&&(null===(n=i.data)||void 0===n?void 0:null===(l=n.pagination)||void 0===l?void 0:l.totalCount)<A){A=0;return}B=B.concat(...i.data.items),A+=1e3,await z(e)}catch(e){console.warn("error",e)}}async function D(e){try{let t=await o.e.items().type("contact").languageParameter(e).includeTotalCountParameter().elementsParameter(["department","city","market"]).limitParameter(1e3).skipParameter(A).collection("default").toPromise();if(!t.data.pagination.nextPage){A=0;return}Z=Z.concat(...t.data.items),A+=1e3,await D(e)}catch(e){console.log("error",e)}}let G=async e=>{var t;let{urlParam:a,locale:l}=e,r=null!=l?l:"en";T().put("languageCodename",r),await z(R.F),await D(r);let s=await (0,w.F)(l,["location"]),[{data:{items:d}},{data:{items:c}}]=await Promise.all([o.e.items().type("content_page").containsFilter("elements.category",["office"]).equalsFilter("elements.url",a).languageParameter(r).limitParameter(1).depthParameter(3).collection("default").toPromise(),o.e.items().type("office").anyFilter("elements.country",[a]).orderByAscending("elements.isHeadOffice").languageParameter(r).limitParameter(3).collection("default").toPromise()]),[u]=await (0,P.n)(r,"location",a),m=u?(await Promise.all(S.f.map(async e=>{let{multiple:t,location:a}=await (0,w.F)(e,["multiple","location"]),l=E()(a(u),{lower:!0});return l?[e,"/".concat(E()(t("contactUsUrl"),{lower:!0}),"/").concat(l)]:[e,""]}))).reduce((e,t)=>{let[a,l]=t;return e[a]=l,e},{}):{},p=B.map(e=>e.elements.displayName.value),f=F()(d.map(e=>{var t,a,l;let{elements:n,system:i}=e;if((null===(t=n.content.linkedItems[0].elements.isMainVariant.value[0])||void 0===t?void 0:t.codename)==="yes")return{title:n.urlSlugGenerator.value,region:s.location(null===(l=n.summaryOfficePageGroup)||void 0===l?void 0:null===(a=l.value[0])||void 0===a?void 0:a.codename),url:n.url.value,codename:i.codename}}),"title").filter(e=>e);return{countriesWithOffices:{all:f,grouped:F()(I()(N()(f,"region")),"0")},contentPageModel:null!==(t=d[0])&&void 0!==t?t:null,variants:m,names:p,offices:c.map(e=>{var t;let{elements:a,system:l}=e;return{address:(0,i.pH)(n.uN).resolveRichText({element:a.address}).html,city:a.city.value,country:a.country.value[0].name,cvr:a.taxNumber.value,description:(0,i.pH)(n.uN).resolveRichText({element:a.info}).html,email:a.email.value,id:l.id,isMain:!!(null===(t=a.isHeadOffice.value[0])||void 0===t?void 0:t.name),officeName:a.officeName.value||null,phone:a.phoneNumber.value}})}};var q=e=>{let{countriesWithOffices:t,names:a,...n}=e,{setNames:i}=(0,M.l)(),o=(0,H.useRouter)().asPath.split("/").filter(Boolean),r=o[o.length-1];return(0,v.useEffect)(()=>{i(a)},[]),(0,l.jsx)(j,{...n,lastSegment:r,countriesWithOffices:t})}}}]);
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.