"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7598],{63463:function(e,n,r){r.d(n,{U:function(){return s}});var t=r(97648),a=r(71694),o=r(96367),i=r(85893),s=function(e){var n=e.phone,r=(0,a.d)(),s=(0,o.z)();return r?(0,i.jsx)(t.Z,{onClick:function(e){window.location.href="tel:".concat(n),e.preventDefault()},children:s.format(n)}):(0,i.jsx)(i.Fragment,{children:s.format(n)})}},24010:function(e,n,r){r.d(n,{U:function(){return l}});var t=r(68779),a=r(67814),o=r(99226),i=r(37786),s=r(67421),c=r(85893),l=function(){var e=(0,s.$G)().t;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(a.G,{icon:t.eHv,fixedWidth:!0,color:"#D94D4D"}),(0,c.jsx)(o.Z,{ml:.5,component:"span",children:(0,c.jsx)(i.Z,{href:"https://datacvr.virk.dk/artikel/reklamebeskyttelse",target:"_blank",underline:"always",rel:"external nofollow noopener",style:{fontWeight:500,fontSize:"14px",color:"#1D1C1D",textDecorationColor:"rgba(29, 28, 29, 0.4)"},children:e("marketingProtection")})})]})}},24050:function(e,n,r){r.d(n,{K:function(){return u}});var t=r(59499),a=r(99226),o=r(90948),i=r(67421),s=r(92140),c=r(3402),l=r(85893),d={root:"".concat("MonetaryValuesDescription","-root")},p=(0,o.ZP)(a.Z)(function(e){var n=e.theme;return(0,t.Z)({},"&.".concat(d.root),{fontSize:"12px",lineHeight:"18px",color:n.palette.grey[700]})}),u=function(){var e=(0,c.qr)().country,n=(0,i.$G)().t;return(0,l.jsx)(p,{className:d.root,children:n("monetaryValuesDescription",{currency:e===s.c.Finland?"€":""})})}},34708:function(e,n,r){r.d(n,{c:function(){return u}});var t=r(69633),a=r(63289),o=r(98396),i=r(96682),s=r(3402),c=r(92140),l=r(46188),d=r(46279),p=r(85893),u=function(e){var n=e.order,r=void 0===n?1:n,u=(0,i.Z)(),m=(0,s.qr)().country===c.c.Denmark?(0,o.Z)(u.breakpoints.down(1001)):(0,o.Z)(u.breakpoints.down("md"));if((0,d.Z)(l.L.NO_DISPLAY_ADS))return null;var x=1===r?m?a.W.NetBannerOneMobile:a.W.NetBannerOne:m?a.W.NetBannerTwoMobile:a.W.NetBannerTwo;return(0,p.jsx)("div",{children:(0,p.jsx)(t.Z,{id:x,deviceType:a.C.ALL})},"netbanner-".concat(r,"-").concat(x))}},7598:function(e,n,r){r.r(n),r.d(n,{default:function(){return nM}});var t=r(16835),a=r(77115),o=r(34708),i=r(67421),s=r(99226),c=r(48263),l=r(59499),d=r(51233),p=r(2734),u=r(50456),m=r(90948),x=r(3402),h=r(99070),f=r(85893),y=function(){var e=(0,i.$G)().t;return(0,f.jsx)("sup",{style:{color:"#7E4181",lineHeight:"12px",fontSize:"10px",verticalAlign:"top",margin:"0 3px",fontWeight:500},title:e("mainOfficeIndicator.accountingIndicatorTitle"),children:e("mainOfficeIndicator.indicator")})},g=r(18377),j=r(21023),v=function(e){var n=e.companyType,r=(0,i.$G)().t;return null===n?(0,f.jsx)(f.Fragment,{children:"-"}):n.code===n.name?(0,f.jsx)(f.Fragment,{children:r("companyTypes.".concat(n.code),n.name)}):(0,f.jsx)(j.Z,{arrow:!0,placement:"top-start",title:r("companyTypes.".concat(n.code),n.name),children:(0,f.jsx)(g.Z,{component:"span",sx:{cursor:"help"},children:n.code})})},b="StatsWidget",Z={header:"".concat(b,"-header"),value:"".concat(b,"-value"),cell:"".concat(b,"-cell")},w=(0,m.ZP)(d.Z)(function(e){var n,r=e.theme;return n={},(0,l.Z)(n,"& .".concat(Z.header),{fontFamily:"Roboto",fontStyle:"normal",fontWeight:500,fontSize:"12px",lineHeight:"18px",display:"block",textTransform:"uppercase",color:r.palette.grey[700],marginBottom:"4px"}),(0,l.Z)(n,"& .".concat(Z.value),(0,l.Z)({fontFamily:"Roboto",fontStyle:"normal",fontWeight:500,fontSize:"1rem",lineHeight:"20px",color:r.palette.grey[800]},r.breakpoints.down("md"),{fontSize:".875rem",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",maxWidth:"110px"})),(0,l.Z)(n,"& .".concat(Z.cell),(0,l.Z)({padding:"0 0.75rem",verticalAlign:"top",textAlign:"center"},r.breakpoints.down("md"),{padding:r.spacing(.5),flex:1,alignItems:"center"})),n}),C=function(e){var n=e.accountingFigureSection,r=e.companyType,t=e.established,a=e.establishedLabel,o=e.employees,s=e.accountingFiguresFromMainOffice,c=(0,i.$G)().t,l=(0,x.qr)().country,m=(0,h.Z)(),g=(0,p.Z)(),j=g.palette,b=g.spacing,C=(null==n?void 0:n.getLatestAccountingPeriod())||null;return(0,f.jsxs)(w,{direction:"row",justifyContent:"space-around",borderRadius:b(.75),bgcolor:j.grey[300],p:1,children:[C&&n.getAccountingFigureConfigs().map(function(e){return(0,f.jsx)(u.Z,{implementation:"css",smDown:!0,children:(0,f.jsxs)(d.Z,{className:Z.cell,children:[(0,f.jsxs)("span",{className:Z.header,children:[c("AccountingFigures.figures.".concat(l,".").concat(e.code))," ",C.getYear(),s&&(0,f.jsx)(y,{})]}),(0,f.jsxs)("span",{className:Z.value,children:[C.getFormattedFigure(e.code,m)," ",n.showCurrency()&&(0,f.jsx)(f.Fragment,{children:"SEK"===C.currency?"Tkr":C.currency})]})]})},e.code)}),(0,f.jsxs)(d.Z,{className:Z.cell,children:[(0,f.jsx)("span",{className:Z.header,children:c("AccountingKeyFiguresCard.statsBar.orgFormLabel")}),(0,f.jsx)("span",{className:Z.value,children:(0,f.jsx)(v,{companyType:r})})]}),(0,f.jsxs)(d.Z,{className:Z.cell,children:[(0,f.jsx)("span",{className:Z.header,children:a}),(0,f.jsx)("span",{className:Z.value,children:t})]}),(0,f.jsxs)(d.Z,{className:Z.cell,children:[(0,f.jsx)("span",{className:Z.header,children:c("AccountingKeyFiguresCard.statsBar.employeesLabel")}),(0,f.jsx)("span",{className:Z.value,children:o})]})]})},P=r(23972),A=r(11381),I=r(92140),N=r(27845),O=r(53815),k=r(44788),L=r(67814),S=r(68779),T=r(3495),F=r(44897),R=function(e){var n,r,t=e.company,o=e.previousYearsRatedAccountingFigures,c=e.ratedAccountingFigures,l=e.accountingFiguresFromMainOffice,p=(0,i.$G)().t,u=(0,f.jsx)(a.d,{for:[I.c.Norway,I.c.Denmark,I.c.Sweden],children:(0,f.jsx)(P.Z,{display:"flex",justifyContent:"flex-end",component:"div",variant:"body2",sx:{fontWeight:"500"},mt:-4.5,mb:{xs:4.5,md:3},p:2,pt:0,children:(0,f.jsxs)(N.Z,{tab:O.H.KEY_FIGURES,shallow:!0,companyId:t.companyId,name:t.name,industry:null===(n=t.currentIndustry)||void 0===n?void 0:n.name,location:null===(r=(0,T.pf)(t))||void 0===r?void 0:r.postPlace,children:[p("AccountingKeyFiguresCard.keyFigures.seeAllLink"),(0,f.jsx)(L.G,{icon:S.eFW,fixedWidth:!0})]})})});return(0,f.jsx)(F.Z,{title:(0,f.jsxs)(P.Z,{component:"h3",variant:"h4",children:[p("AccountingKeyFiguresCard.keyFigures.title"),l&&(0,f.jsx)(y,{})]}),actions:(0,f.jsx)(k.n,{ratedAccountingFigures:c,previousAccountingFigures:o,company:t}),footer:u,sx:{mt:0,height:"100%"},solidBorder:!0,children:(0,f.jsx)(d.Z,{direction:"row",justifyContent:"space-between",children:c.map(function(e,n){return(0,f.jsx)(s.Z,{mb:.5,display:{xs:"inline-block",sm:"block"},children:(0,f.jsx)(A.o,{figure:e,previous:o[n],shortStyle:!0})},n)})})})},D=r(27812),V=r(67294),W=r(46853),G=r(60593),E=r(5152),U=r.n(E),M=U()(function(){return Promise.resolve().then(r.bind(r,14193)).then(function(e){return e.AccountingFiguresChart})},{ssr:!1,loadableGenerated:{webpack:function(){return[14193]}}}),H="AccountFiguresWidget",B={root:"".concat(H,"-root"),body:"".concat(H,"-body"),footer:"".concat(H,"-footer"),menuwrapper:"".concat(H,"-menuwrapper"),mainwrapper:"".concat(H,"-mainwrapper"),mainheader:"".concat(H,"-mainheader"),accountingtable:"".concat(H,"-accountingtable"),activeRow:"".concat(H,"-activeRow"),inactiveRow:"".concat(H,"-inactiveRow"),seeAllLink:"".concat(H,"-seeAllLink"),message:"".concat(H,"-message")},_=(0,m.ZP)("div")(function(e){var n,r,t,a=e.theme;return t={},(0,l.Z)(t,"&.".concat(B.root),{borderRadius:"6px",display:"flex",flexDirection:"column",height:"100%",border:"1px solid ".concat(a.palette.grey[400])}),(0,l.Z)(t,"& .".concat(B.body),{padding:"1rem 0.5rem 0 0.5rem",display:"flex"}),(0,l.Z)(t,"& .".concat(B.footer),{display:"flex",justifyContent:"flex-end",padding:"0 ".concat(a.spacing(2)," ").concat(a.spacing(2)," ").concat(a.spacing(2)),fontWeight:500,height:"100%",alignItems:"flex-end",fontSize:"14px"}),(0,l.Z)(t,"& .".concat(B.menuwrapper),(n={display:"flex",flexDirection:"column",justifyContent:"space-between"},(0,l.Z)(n,a.breakpoints.up("sm"),{padding:"0 0.5rem 0 0.8rem"}),(0,l.Z)(n,a.breakpoints.down("sm"),{padding:"0 .5rem"}),n)),(0,l.Z)(t,"& .".concat(B.mainwrapper),(0,l.Z)({padding:"0 1rem 0 0",minHeight:"210px",flex:"1"},a.breakpoints.down("sm"),{padding:"0.4rem 0 0 0"})),(0,l.Z)(t,"& .".concat(B.mainheader),{fontFamily:"Roboto",fontStyle:"normal",fontWeight:500,fontSize:"13px",color:a.palette.grey[800],marginTop:a.spacing(.25),marginBottom:a.spacing(.5)}),(0,l.Z)(t,"& .".concat(B.accountingtable),{width:"100%",fontSize:"13px",borderCollapse:"separate",borderSpacing:"0 0.2em","& th":{padding:"4px 0 4px 8px",color:a.palette.grey[700],fontWeight:400},"& td":{padding:"4px",marginBottom:"10px"},"& thead th:first-of-type":{position:"relative",left:"8px"},"& thead th":{color:a.palette.grey[800],fontWeight:500,textAlign:"right",paddingTop:a.spacing(.25),paddingRight:a.spacing(.5)},"& tbody tr:nth-of-type(odd)":{background:a.palette.grey[300]},"& tbody tr:hover td, & tbody tr:hover th":{background:a.palette.grey[400]},"& tbody tr td":{textAlign:"right"},"& tbody tr":{cursor:"pointer"},"& tfoot td":{textAlign:"right",color:a.palette.grey[700]}}),(0,l.Z)(t,"& .".concat(B.message),{fontSize:"13px",lineHeight:"1rem"}),(0,l.Z)(t,"& .".concat(B.activeRow),(r={},(0,l.Z)(r,a.breakpoints.up("md"),{"& th:first-of-type":{position:"relative",border:"1px solid",borderRadius:"2px 0 0 2px",borderColor:a.palette.primary.main,borderRight:"none","&:after, &:before":{top:"50%",border:"1px solid",content:"''",height:0,width:0,position:"absolute",pointerEvents:"none"},"&:after":{borderColor:"rgba(136, 183, 213, 0)",borderRightColor:a.palette.grey[200],borderWidth:"16px",marginTop:"-16px",right:"99.7%"},"&:hover:after":{borderRightColor:a.palette.grey[400]},"&:before":{borderColor:"rgba(194, 225, 245, 0)",borderRightColor:a.palette.primary.main,borderWidth:"17px",marginTop:"-17px",right:"100%"}}}),(0,l.Z)(r,a.breakpoints.down("md"),{"& th:first-of-type":{borderLeft:"1px solid ".concat(a.palette.primary.main),borderTopLeftRadius:"6px",borderBottomLeftRadius:"6px",background:a.palette.grey[200]}}),(0,l.Z)(r,"& td, & th",{borderTop:"1px solid ".concat(a.palette.primary.main),borderBottom:"1px solid ".concat(a.palette.primary.main),borderColor:a.palette.primary.main,color:a.palette.grey[800],background:a.palette.grey[200]}),(0,l.Z)(r,"& td:last-child",{borderRight:"1px solid ".concat(a.palette.primary.main),borderTopRightRadius:"6px",borderBottomRightRadius:"6px",background:a.palette.grey[200]}),r)),(0,l.Z)(t,"& .".concat(B.inactiveRow),{"& th:first-of-type":{borderLeft:"1px solid transparent",borderRadius:"6px 0 0 6px"},"& td, & th":{borderTop:"1px solid transparent",borderBottom:"1px solid transparent",color:a.palette.grey[800]},"& td:last-child":{borderRight:"1px solid transparent",borderTopRightRadius:"6px",borderBottomRightRadius:"6px"}}),(0,l.Z)(t,"& .".concat(B.seeAllLink),{"& svg":{marginLeft:a.spacing(.5)}}),t}),z=function(e){var n,r,t,o,l=e.company,d=e.showCorporateAccounts,p=(0,i.$G)().t,u=(0,x.qr)().country,m=(0,V.useState)(!0),g=m[0],j=m[1],v=(0,V.useState)(0),b=v[0],Z=v[1],w=(0,V.useState)([0,1]),C=w[0],A=w[1],k=(0,h.Z)(),F=(0,W.m)(),R=(0,T.T8)(l),E=F.getAccountingSection(R,d,"AccountingFiguresSummary"),U=(null==E?void 0:E.getAccountingFigureConfigs().length)||0,H=F.getAccountingSections(R,d),z=F.getAccountingPeriodsWithCurrencyDeviatingFromDefault(H),K=(null==z?void 0:z.length)>0,$=E.getLatestAccountingPeriod(),Y=K?[0]:[0,1];(0,V.useEffect)(function(){if(g&&b<5){var e=setInterval(function(){var e=(C[C.length-1]+1)%U;Y.includes(e)?(Z(function(e){return e+1}),A(Y)):A([e])},5e3);return function(){return clearInterval(e)}}}),(0,V.useEffect)(function(){A(Y),Z(0),j(!0)},[l,d]);var q=function(e){!K&&((j(!1),C.includes(e))?1!==C.length&&A(function(n){return n.filter(function(n){return n!==e})}):A(function(n){return[].concat((0,D.Z)(n),[e])}))},X=function(){if(K)return{xAxis:[],yAxis:[],valid:!1,names:[]};var e=(null==E?void 0:E.getAccountingFigureConfigs().filter(function(e,n){return C.includes(n)}).map(function(e){var n=E.getGraphModel(e,5);return{name:p("AccountingFigures.figures.".concat(u,".").concat(e.code)),data:n,valid:!!n}})).filter(function(e){return e.valid});return{xAxis:e.map(function(e){var n;return null===(n=e.data)||void 0===n?void 0:n.xAxis}).sort(function(e,n){return e.length-n.length})[0],yAxis:e.map(function(e){var n;return null===(n=e.data)||void 0===n?void 0:n.yAxis}),valid:!0,names:e.map(function(e){return e.name})}}(),J=X.xAxis,Q=X.yAxis,ee=X.valid,en=X.names;return E?(0,f.jsxs)(_,{className:B.root,children:[(0,f.jsx)("div",{className:B.body,children:(0,f.jsxs)(c.ZP,{container:!0,children:[ee&&(0,f.jsx)(c.ZP,{item:!0,md:8.2,xs:12,children:(0,f.jsx)("div",{className:B.mainwrapper,children:(0,f.jsx)(M,{name:en,xAxis:J,yAxis:Q,showChartLegend:!0,showChartToggle:!0,height:"240px"})})}),(0,f.jsx)(c.ZP,{item:!0,md:ee?3.8:12,xs:12,children:(0,f.jsx)("div",{className:B.menuwrapper,children:(0,f.jsxs)("table",{className:B.accountingtable,cellSpacing:0,cellPadding:0,children:[(0,f.jsx)("thead",{children:(0,f.jsxs)("tr",{children:[(0,f.jsxs)("th",{style:{textAlign:"left",paddingLeft:0},children:[p("AccountingKeyFiguresCard.AccountingFigures.title"),R.accountsFromMainOffice&&(0,f.jsx)(y,{})]}),(0,f.jsx)("th",{children:$.getPeriod()})]})}),(0,f.jsx)("tbody",{children:E.getAccountingFigureConfigs().map(function(e,n){return(0,f.jsxs)("tr",{onClick:function(){q(n)},className:"".concat(C.includes(n)?B.activeRow:B.inactiveRow),children:[(0,f.jsx)("th",{style:{textAlign:"left"},children:p("AccountingFigures.figures.".concat(u,".").concat(e.code))}),(0,f.jsx)("td",{children:$.getFormattedFigure(e.code,k)})]},n)})}),E.showCurrency()&&(0,f.jsx)("tfoot",{children:(0,f.jsxs)("tr",{children:[(0,f.jsx)("th",{style:{textAlign:"left"},children:p("AccountingFigures.currency")}),(0,f.jsx)("td",{children:K?(0,f.jsxs)("span",{children:[(0,f.jsx)("strong",{children:$.currency}),(0,f.jsx)(L.G,{icon:S.vac,fixedWidth:!0,size:"sm"})]}):(0,f.jsx)("span",{children:$.currency})})]})})]})})})]})}),K&&(0,f.jsx)(a.d,{forSites:[G.T.NO,G.T.SE,G.T.ALLABOLAG],children:(0,f.jsxs)(P.Z,{className:B.message,variant:"body2",component:"div",mb:1,children:[(0,f.jsx)(s.Z,{component:"span",fontSize:"16px",mr:.5,marginLeft:2,children:(0,f.jsx)(L.G,{icon:S.vac,fixedWidth:!0,size:"sm"})}),p("AccountingKeyFiguresCard.AccountingFigures.remark"),(0,f.jsx)(N.Z,{className:B.seeAllLink,tab:O.H.ACCOUNTING_FIGURES,shallow:!0,companyId:l.companyId,name:l.name,industry:null===(n=l.currentIndustry)||void 0===n?void 0:n.name,location:null===(r=(0,T.pf)(l))||void 0===r?void 0:r.postPlace,children:p("AccountingKeyFiguresCard.AccountingFigures.FinancialStatements").toLowerCase()})]})}),(0,f.jsx)(a.d,{for:[I.c.Norway,I.c.Sweden,I.c.Denmark],children:(0,f.jsx)("div",{className:B.footer,children:(0,f.jsxs)(N.Z,{className:B.seeAllLink,tab:O.H.ACCOUNTING_FIGURES,shallow:!0,companyId:l.companyId,name:l.name,industry:null===(t=l.currentIndustry)||void 0===t?void 0:t.name,location:null===(o=(0,T.pf)(l))||void 0===o?void 0:o.postPlace,children:[p("AccountingKeyFiguresCard.AccountingFigures.seeAllLink"),(0,f.jsx)(L.G,{icon:S.eFW,fixedWidth:!0})]})})})]}):(0,f.jsx)(f.Fragment,{})},K=r(75336),$=r(59518),Y=r(24050),q=r(92089),X=r(50029),J=r(87794),Q=r.n(J),ee=r(28645),en=r(46279),er=r(46188),et=r(24419),ea=r(59734),eo=function(e,n){var r=null==e?void 0:e.find(function(e){return e.consolidatedReport===n&&null!==e.companyValueRange});return(null==r?void 0:r.companyValueRange)||null},ei=function(e){var n,r,t=e.company,a=e.showCorporateValuation,o=(0,x.qr)().site,s=(0,i.$G)().t,l=(0,en.Z)(er.L.COMPANY_VALUATION),d=o===G.T.ALLABOLAG,p=(0,ea.ZP)(["/api/uc/valuereport/status",t.orgnr,l],(0,X.Z)(Q().mark(function e(){return Q().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",l?et.N.getValueReportStatus(t.orgnr):[]);case 1:case"end":return e.stop()}},e)}))),u=p.data,m=p.isLoading,h=eo(u,a),y=null!=h,g=(0,f.jsx)(ee.Z,{href:s("companyValuation.calculationLink",{context:o}),color:"secondary",variant:"body2",fontWeight:500,ml:.5,children:s("companyValuation.calculationText")});return(0,f.jsx)(F.Z,{title:(0,f.jsx)(P.Z,{component:"h3",variant:"h4",children:s("companyValuation.title")}),badge:s("plusProduct.plus"),sx:{mt:0,height:"100%"},solidBorder:!0,children:(0,f.jsxs)(c.ZP,{container:!0,spacing:2,children:[(0,f.jsx)(c.ZP,{item:!0,xs:12,children:(0,f.jsx)(P.Z,{component:"div",variant:"h4",py:2,mb:.5,color:m?"transparent":"",sx:{background:"#EAE2EC",borderRadius:"6px",textAlign:"center",textShadow:m&&"0 0 5px rgba(0,0,0,0.5)"},children:m?s("companyValuation.teaserValue"):l&&y?h:s(l&&!y?"companyValuation.valuationUnavailable":"companyValuation.teaserValue")})}),(0,f.jsxs)(c.ZP,{item:!0,xs:12,children:[l?(0,f.jsxs)(P.Z,{variant:"body2",mb:1,children:[s("companyValuation.valuationText",{context:"".concat(y)}),y&&g]}):(0,f.jsx)(f.Fragment,{children:d&&(0,f.jsxs)(P.Z,{variant:"body2",mb:1,children:[s("companyValuation.textPlus"),(0,f.jsx)("br",{}),s("companyValuation.linkTextPlusPrefix"),(0,f.jsx)(ee.Z,{fontWeight:500,href:s("companyValuation.linkPlus"),target:"_parent",color:"secondary",variant:"body2",children:s("companyValuation.linkTextPlus")})]})}),(0,f.jsxs)(P.Z,{variant:"body2",children:[l&&!y&&(0,f.jsxs)(f.Fragment,{children:[s("companyValuation.valuationUnavailableDesc"),g]}),d&&(!l||y)&&(0,f.jsxs)(f.Fragment,{children:[s("companyValuation.textPremium"),(0,f.jsx)("br",{}),s("companyValuation.linkTextPremiumPrefix")," ",(0,f.jsx)(N.Z,{fontWeight:500,tab:O.H.REPORTS,companyId:t.companyId,name:t.name,location:null===(n=t.visitorAddress)||void 0===n?void 0:n.postPlace,industry:null===(r=t.currentIndustry)||void 0===r?void 0:r.name,children:s("companyValuation.linkTextPremium")})]})]})]})]})})},es=r(39749),ec=r(90796),el=function(e){var n=e.product,r=e.orgnr,t=void 0===r?null:r,a=e.buttonStyle,o=(0,i.$G)(),s=o.t,c=o.i18n;return(0,f.jsx)(es.Z,{header:(0,f.jsx)(P.Z,{variant:"h4",component:"h3",mb:-1,children:s(n.name)}),text:s(n.ctaDescription),buttonType:"primary",link:(0,ec.Xy)(n,s,t),exampleLink:c.exists(n.exampleReportUrl)&&s(n.exampleReportUrl),buttonText:s("".concat(n.buyLinkText),{defaultValue:"products.common.purchase"}),grow:!1,buttonStyle:void 0===a?"proff":a,hasBottomMargin:!1})},ed={id:ec.xC.ProffApi,name:"productCatalog.products.proffApi.name",buyLink:"productCatalog.products.proffApi.buyLink",buyLinkText:"productCatalog.products.proffApi.buyLinkText",shortDescription:"productCatalog.products.proffApi.shortDescription",ctaDescription:"productCatalog.products.proffApi.ctaDescription",landingPageSlug:"",isCompanyReport:!1,availability:{checkAvailability:!1},popularFeaturesHeading:"productCatalog.products.proffApi.name",popularFeatures:[],price:{value:null,currency:"products.common.currency"}},ep=r(25797),eu={id:ec.xC.ValueReportPremium,name:"productCatalog.products.valueReportPremium.name",buyLink:"productCatalog.products.valueReportPremium.buyLink",buyLinkText:"productCatalog.products.valueReportPremium.buyLinkText",shortDescription:"productCatalog.products.valueReportPremium.shortDescription",ctaDescription:"productCatalog.products.valueReportPremium.ctaDescription",exampleReportUrl:"productCatalog.products.valueReportPremium.exampleReport",exampleReportText:"products.common.downloadExampleReport",landingPageSlug:"",isCompanyReport:!1,availability:{checkAvailability:!1},popularFeaturesHeading:"productCatalog.products.valueReportPremium.name",popularFeatures:[],price:{value:null,currency:"products.common.currency"}},em=function(e){var n=e.company,r=e.showCorporateAccounts,t=(0,i.$G)().t,a=(0,x.qr)().country,o=(0,W.m)(),l=(0,$.a)(),d=a===I.c.Finland?n.foundationDate:n.foundationYear,p=t("AccountingKeyFiguresCard.statsBar.establishedLabel"),u=(0,T.T8)(n),m=o.getRatedAccountingFigures(u,r),h=o.getAccountingSection(u,r,"CompanyOverviewStatusBarFigures"),y=o.getRatedAccountingFigures(u,r,1),g=(0,V.useMemo)(function(){switch(a){case I.c.Sweden:return(0,f.jsx)(ei,{company:n,showCorporateValuation:r});case I.c.Norway:return(0,f.jsx)(el,{product:eu});case I.c.Finland:return(0,f.jsx)(el,{product:ep.B,orgnr:n.orgnr,buttonStyle:"NDS"});case I.c.Denmark:return(0,f.jsx)(el,{product:ed});default:return null}},[a,n,r]);return(0,f.jsxs)(F.Z,{title:t("AccountingKeyFiguresCard.title"),children:[(0,f.jsx)(s.Z,{mb:2,mt:-2,children:(0,f.jsx)(Y.K,{})}),(0,f.jsx)("div",{style:{paddingBottom:"0.5rem"},children:(0,f.jsx)(C,{accountingFigureSection:h,companyType:n.companyType,established:l.format(d),establishedLabel:p,employees:n.employees,accountingFiguresFromMainOffice:u.accountsFromMainOffice})}),u.accountsFromMainOffice&&(0,f.jsx)(q.B,{tab:O.H.OVERVIEW,mainOffice:n.mainOffice,showIndicator:!0}),(0,f.jsxs)(c.ZP,{container:!0,spacing:2,pt:1,children:[(0,f.jsx)(c.ZP,{item:!0,xs:12,children:(0,f.jsx)(z,{company:n,showCorporateAccounts:r})}),(0,f.jsx)(c.ZP,{item:!0,md:8,xs:12,children:(0,f.jsx)(R,{company:n,previousYearsRatedAccountingFigures:y,ratedAccountingFigures:m,accountingFiguresFromMainOffice:u.accountsFromMainOffice})}),(0,f.jsx)(c.ZP,{item:!0,md:4,xs:12,children:g})]}),(0,f.jsx)(s.Z,{display:"flex",mt:2,children:(0,f.jsx)(s.Z,{flexGrow:1,children:(0,f.jsx)(K.k,{source:t("sources.overview.accountingAndKeyFigures")})})})]})},ex=r(37786),eh=r(13614),ef=r(37858),ey=r(75921),eg=r(58439),ej=r(87876),ev=r(25675),eb=r.n(ev),eZ="CentralApprovalCard",ew={text:"".concat(eZ,"-text"),textBold:"".concat(eZ,"-textBold"),tableText:"".concat(eZ,"-tableText"),tableTextBold:"".concat(eZ,"-tableTextBold"),toggleMore:"".concat(eZ,"-toggleMore")},eC=(0,m.ZP)("div")(function(e){var n,r=e.theme;return n={},(0,l.Z)(n,"& .".concat(ew.text),{fontSize:"14px",fontWeight:400,color:r.palette.grey[800]}),(0,l.Z)(n,"& .".concat(ew.textBold),{fontSize:"14px",fontWeight:500,color:r.palette.grey[800]}),(0,l.Z)(n,"& .".concat(ew.tableText),{fontSize:"14px",fontWeight:400,lineHeight:"20px",color:r.palette.grey[700],padding:"8px 16px"}),(0,l.Z)(n,"& .".concat(ew.tableTextBold),{fontSize:"14px",fontWeight:500,lineHeight:"22px",color:r.palette.grey[700],padding:"8px 16px"}),(0,l.Z)(n,"& .".concat(ew.toggleMore),{cursor:"pointer",fontWeight:500,color:r.palette.secondary.main,textAlign:"right","&:hover":{textDecoration:"underline"}}),n}),eP=(0,m.ZP)(ej.Yk)(function(){return{verticalAlign:"top"}}),eA=(0,m.ZP)(ex.Z)(function(e){return{textDecoration:"none",color:e.theme.palette.secondary.main,cursor:"pointer","&:hover":{textDecoration:"underline"}}}),eI=function(e){var n=e.name,r=e.centralApproval,t=(0,i.$G)().t,a=(0,V.useState)(!1),o=a[0],s=a[1],l=(0,$.a)();return(0,f.jsx)(eC,{children:(0,f.jsxs)(F.Z,{title:t("CentralApprovalCard.title"),children:[(0,f.jsxs)(c.ZP,{container:!0,className:ew.text,pb:2,children:[(0,f.jsx)(eb(),{src:"/images/approval-logo-2016.png",width:48,height:48,alt:t("CentralApprovalCard.title")}),(0,f.jsx)(c.ZP,{item:!0,xs:10,children:(0,f.jsxs)(c.ZP,{container:!0,px:1,direction:"column",alignItems:"flex-start",children:[(0,f.jsx)(P.Z,{variant:"body2",children:t("CentralApprovalCard.validTo",{date:l.format(r.status.approvalPeriodTo)})}),(0,f.jsx)(eA,{rel:"sponsored",target:"_blank",href:"".concat(r.status.approvalCertificate),children:t("CentralApprovalCard.downloadApproval")})]})})]}),o&&(0,f.jsxs)(c.ZP,{children:[(0,f.jsxs)(c.ZP,{pb:2,children:[(0,f.jsxs)(P.Z,{display:"inline",variant:"body2",fontWeight:500,children:[n," "]}),(0,f.jsx)(P.Z,{display:"inline",variant:"body2",children:t("CentralApprovalCard.ValidApprovalAreas",{count:r.validApprovalAreas.length})})]}),(0,f.jsx)(ej.no,{children:(0,f.jsxs)(eh.Z,{children:[(0,f.jsx)(ef.Z,{children:(0,f.jsxs)(ey.Z,{children:[(0,f.jsx)(eP,{children:t("CentralApprovalCard.function")}),(0,f.jsx)(eP,{children:t("CentralApprovalCard.subjectArea")}),(0,f.jsx)(eP,{align:"right",children:t("CentralApprovalCard.grade")})]})}),(0,f.jsx)(eg.Z,{children:r.validApprovalAreas.map(function(e,n){return(0,f.jsxs)(ej.AF,{children:[(0,f.jsx)(eP,{children:e.function}),(0,f.jsx)(eP,{children:e.subjectArea}),(0,f.jsx)(eP,{align:"right",children:e.grade})]},n)})})]})})]}),(0,f.jsxs)(P.Z,{variant:"body2",onClick:function(){return s(!o)},className:ew.toggleMore,children:[t("CentralApprovalCard.toggleMore",{context:"".concat(o?"false":"true")}),o&&(0,f.jsx)(L.G,{icon:S.FPD,fixedWidth:!0}),!o&&(0,f.jsx)(L.G,{icon:S.r5q,fixedWidth:!0})]})]})})},eN=r(17693),eO=r(64684),ek=r(96682),eL=function(e){var n=e.certificate,r=e.company,t=e.image,a=e.desc,o=e.title,i=e.moreInfo,s=e.moreInfoLink,l=e.imageHeight,d=e.imageWidth,p=(0,$.a)(),u=(0,ek.Z)();return(0,f.jsxs)(c.ZP,{container:!0,justifyContent:"flex-start",alignItems:"stretch",children:[(0,f.jsxs)(c.ZP,{item:!0,container:!0,xs:12,md:5,children:[(0,f.jsx)(eb(),{src:t,alt:o,width:void 0===d?56:d,height:l,quality:100}),(0,f.jsxs)(g.Z,{ml:2,children:[(0,f.jsx)(P.Z,{variant:"h5",sx:{textTransform:"uppercase"},children:o}),(0,f.jsxs)(P.Z,{variant:"body2",color:u.palette.grey[700],children:[(0,f.jsx)(g.Z,{component:"span",sx:{overflowWrap:"break-word"},children:r.name}),(0,f.jsx)("br",{}),(0,f.jsx)(eO.l,{organisationNumber:r.orgnr}),!!n.startDate&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("br",{}),p.format(n.startDate)]})]})]})]}),(0,f.jsxs)(c.ZP,{item:!0,xs:12,md:7,children:[(0,f.jsx)(P.Z,{variant:"body2",sx:{display:{xs:"none",md:"block"}},children:a}),(0,f.jsx)(P.Z,{component:ex.Z,fontWeight:500,variant:"body2",display:"inline-block",mt:1,color:"secondary",underline:"hover",target:"_blank",rel:"noopener noreferrer",href:s,children:i})]})]})},eS=function(e){var n=e.company,r=(0,i.$G)().t;return(0,f.jsx)(eN.b,{children:(0,f.jsx)(c.ZP,{container:!0,spacing:4,children:n.certificates.map(function(e){return(0,f.jsxs)(c.ZP,{item:!0,xs:12,children:["UC_SIGILL"===e.type&&(0,f.jsx)(eL,{company:n,certificate:e,image:"/images/uc-sigill-".concat(e.subType,".png"),imageHeight:52,title:r("Certificates.".concat(e.type,".").concat(e.subType,".title")),desc:r("Certificates.".concat(e.type,".").concat(e.subType,".desc")),moreInfo:r("Certificates.".concat(e.type,".moreInfo")),moreInfoLink:r("Certificates.".concat(e.type,".moreInfoLink"))}),"UC_GROWTH_CERTIFICATE"===e.type&&(0,f.jsx)(eL,{company:n,certificate:e,image:"/images/uc-growth-cert.png",imageHeight:62,title:r("Certificates.".concat(e.type,".title")),desc:r("Certificates.".concat(e.type,".desc")),moreInfo:r("Certificates.".concat(e.type,".moreInfo")),moreInfoLink:r("Certificates.".concat(e.type,".moreInfoLink"))}),"FINLANDS_STRONGEST"===e.type&&(0,f.jsx)(eL,{company:n,certificate:e,image:"/images/finlands-strongest-".concat(e.subType.toLocaleLowerCase(),"-notext.svg"),imageHeight:62,imageWidth:66,title:r("Certificates.".concat(e.type,".").concat(e.subType,".title")),desc:r("Certificates.".concat(e.type,".desc")),moreInfo:r("Certificates.".concat(e.type,".moreInfo")),moreInfoLink:r("Certificates.".concat(e.type,".moreInfoLink"))}),"NORDIC_GROWTH_CERTIFICATE"===e.type&&(0,f.jsx)(eL,{company:n,certificate:e,image:"/images/nordic-growth-certificate.svg",imageHeight:62,imageWidth:66,title:r("Certificates.".concat(e.type,".title")),desc:r("Certificates.".concat(e.type,".desc")),moreInfo:r("Certificates.".concat(e.type,".moreInfo")),moreInfoLink:r("Certificates.".concat(e.type,".moreInfoLink"))})]},e.type)})})})},eT=r(66489),eF=r(67720),eR=r(96367),eD=r(24010),eV=r(35790),eW=r(97648),eG=function(e){var n=e.email,r=e.label,t=e.decode,a=e.className;return(0,f.jsx)(eW.Z,{onClick:function(e){window.location.href="mailto:".concat(t?t(n):n),e.preventDefault()},className:a,children:r})},eE=r(63463),eU=(0,m.ZP)("span")(function(e){var n=e.theme;return{marginLeft:n.spacing(1),marginRight:n.spacing(1),verticalAlign:"middle",fontSize:"4px"}}),eM=function(e){var n=e.contactPersons,r=(0,i.$G)().t;return(0,f.jsx)(c.ZP,{container:!0,spacing:1,justifyContent:"flex-start",children:n.map(function(e,n){return(0,f.jsxs)(c.ZP,{item:!0,xs:12,sm:6,md:4,children:[e.name&&(0,f.jsx)(P.Z,{fontWeight:500,variant:"body2",sx:{lineHeight:1,marginTop:"8px"},children:e.name}),e.role&&(0,f.jsx)(P.Z,{fontWeight:500,fontSize:"10px",color:"text.secondary",sx:{textTransform:"uppercase"},children:e.role}),(null!=e.telephoneNumber||null!=e.email)&&(0,f.jsxs)(P.Z,{fontWeight:400,variant:"body2",sx:{marginBottom:"8px"},children:[e.telephoneNumber&&(0,f.jsx)(eE.U,{phone:e.telephoneNumber}),e.email&&(0,f.jsxs)(f.Fragment,{children:[e.telephoneNumber&&(0,f.jsx)(eU,{children:"⬤"}),(0,f.jsx)(eG,{label:r("email"),email:e.email})]})]})]},n)})})},eH=r(60907),eB=r(40909),e_=r(4730),ez=r(93024),eK=["title","icon"];function e$(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,t)}return r}function eY(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?e$(Object(r),!0).forEach(function(n){(0,l.Z)(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):e$(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var eq=function(e){var n=e.title,r=e.icon,t=(0,e_.Z)(e,eK);return(0,f.jsx)(c.ZP,{item:!0,children:(0,f.jsxs)(ex.Z,eY(eY({},t),{},{rel:"sponsored",target:"_blank",underline:"hover",display:"inline-flex",mr:4,mt:2,color:"text.primary",children:[(0,f.jsx)(P.Z,{fontSize:"20px",component:"span",children:r}),(0,f.jsx)(P.Z,{fontSize:"14px",component:"span",color:"text.primary",ml:.5,children:n})]}))})},eX=function(e){var n=e.socialMediaLinks,r=(0,i.$G)().t;return(0,f.jsxs)(c.ZP,{container:!0,justifyContent:"flex-start",children:[(0,f.jsx)(c.ZP,{item:!0,xs:12,children:(0,f.jsx)(P.Z,{component:"h5",variant:"h5",children:r("SocialMediaLinks.title")})}),(0,f.jsxs)(c.ZP,{container:!0,children:[n.facebookUrl&&(0,f.jsx)(eq,{href:n.facebookUrl,title:"Facebook",icon:(0,f.jsx)(L.G,{icon:ez.pZl,fixedWidth:!0,color:"#3b5a96"})}),n.linkedInUrl&&(0,f.jsx)(eq,{href:n.linkedInUrl,title:"LinkedIn",icon:(0,f.jsx)(L.G,{icon:ez.D9H,fixedWidth:!0,color:"#2386bb"})}),n.twitterUrl&&(0,f.jsx)(eq,{href:n.twitterUrl,title:"Twitter",icon:(0,f.jsx)(L.G,{icon:ez.mdU,fixedWidth:!0,color:"#039bd4"})}),n.googlePlusUrl&&(0,f.jsx)(eq,{href:n.googlePlusUrl,title:"Google Plus",icon:(0,f.jsx)(L.G,{icon:ez.cui,fixedWidth:!0,color:"#ba3726"})}),n.instagramUrl&&(0,f.jsx)(eq,{href:n.instagramUrl,title:"Instagram",icon:(0,f.jsx)(L.G,{icon:ez.Zzi,fixedWidth:!0})}),n.youtubeUrl&&(0,f.jsx)(eq,{href:n.youtubeUrl,title:"Youtube",icon:(0,f.jsx)(L.G,{icon:ez.opf,fixedWidth:!0,color:"#FF0000"})}),n.trustpilotUrl&&(0,f.jsx)(eq,{href:n.trustpilotUrl,title:"Trustpilot",icon:(0,f.jsx)(eb(),{src:"/images/icons/Trustpilot.svg",width:24,height:23,alt:"Trustpilot"})})]})]})},eJ=r(87990),eQ=r(63265),e0=r(61933),e1=function(e){var n=encodeURIComponent(e.addressQuery),r=(0,x.qr)().googleMapsApiKey;return(0,f.jsx)("iframe",{width:"100%",height:"150",style:{border:0},loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",allowFullScreen:!0,src:"https://www.google.com/maps/embed/v1/place?key=".concat(r,"&q=").concat(n)})},e2=function(e){var n=e.company,r=e.addressSelector,t=(0,e.addressFormatter)(r(n));return null===t?null:(0,f.jsx)(e1,{addressQuery:t})},e5=function(e){return e&&(0,eH.HH)(e.addressLine)&&(0,eH.HH)(e.zipCode)&&(0,eH.HH)(e.postPlace)?"".concat(e.addressLine.trim(),", ").concat(e.zipCode.trim()," ").concat(e.postPlace.trim(),", Finland").replaceAll(/ +/g," "):null},e8="ContactInformationCard",e4={smallPropertyList:"".concat(e8,"-smallPropertyList"),smallProperty:"".concat(e8,"-smallProperty"),smallPropertyValue:"".concat(e8,"-smallPropertyValue")},e9=(0,m.ZP)(c.ZP)(function(e){var n,r=e.theme;return n={},(0,l.Z)(n,"& .".concat(e4.smallPropertyList),{fontSize:"14px",display:"flex",alignItems:"flex-start",lineHeight:r.spacing(2),color:r.palette.grey[700],marginBottom:r.spacing(1)}),(0,l.Z)(n,"& .".concat(e4.smallProperty),{flex:"1 1 0",alignItems:"center",maxWidth:"120px",width:"100%"}),(0,l.Z)(n,"& .".concat(e4.smallPropertyValue),(0,l.Z)({flex:"2 1 0",fontFamily:"Roboto",fontStyle:"normal",fontWeight:500,fontSize:"14px",color:r.palette.grey[800]},r.breakpoints.down("md"),{flex:"1 1 0"})),n}),e6=function(e){return e.filter(function(e){return Object.values(e).some(function(e){return null!==e&&""!==e})}).length>0},e3=V.memo(function(e){var n,t,o=e.company,l=(0,i.$G)().t,d=(0,eR.z)(),p=(0,x.qr)().site;if(!(null!=o.phone||null!=o.visitorAddress||null!=o.postalAddress||null!=o.phone2||null!=o.mobile||null!=o.mobile2||null!=o.email||null!=o.faxNumber||null!=o.homePage||null!=o.webshopUrl||null!=o.contactFormUrl||e6(o.contactPersons)||Object.values(o.socialMediaLinks||{}).length>0))return null;var u=null,m=function(e){u=e.clientX},h=(n=(0,X.Z)(Q().mark(function e(n){var r,t;return Q().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!((r=n.clientX)<u+2&&r>u-2)){e.next=6;break}return n.preventDefault(),t=o.companyId&&{queryParams:{id:o.companyId}},e.next=6,eJ.Z.push("mapSearch",t,p);case 6:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)}),y=function(){return(0,f.jsx)(c.ZP,{container:!0,justifyContent:"center",children:(0,f.jsx)(eT.Z,{color:"primary"})})},g=function(){return(0,f.jsx)(c.ZP,{container:!0,ml:4,children:(0,f.jsx)("p",{children:l("mapsearch.error")})})};return(0,f.jsxs)(F.Z,{title:l("ContactInformationCard.title"),children:[(0,f.jsx)(a.d,{for:[I.c.Denmark],when:function(){return o.marketingProtection},children:(0,f.jsx)(s.Z,{pt:0,pb:1,children:(0,f.jsx)(eD.U,{})})})," ",(0,f.jsx)(a.d,{for:[I.c.Norway,I.c.Denmark,I.c.Sweden],when:function(){var e,n,r,t;return(null===(e=o.location)||void 0===e?void 0:null===(n=e.coordinates)||void 0===n?void 0:n.length)>0&&(null===(r=o.location)||void 0===r?void 0:r.coordinates[0].ycoordinate)!==0&&(null===(t=o.location)||void 0===t?void 0:t.coordinates[0].xcoordinate)!==0},children:(0,f.jsx)(s.Z,{mx:-2,mb:2,sx:{minHeight:eQ.H1},onMouseDown:function(e){return m(e)},onMouseUp:function(e){return h(e)},children:(0,f.jsx)(function(){var e=(0,ea.ZP)(eQ.X),n=e.data,t=e.error;if(!n)return(0,f.jsx)(y,{});if(t)return(0,f.jsx)(g,{});var a=U()(function(){return Promise.all([r.e(9269),r.e(8138)]).then(r.bind(r,28138))},{ssr:!1,loadableGenerated:{webpack:function(){return[28138]}}});return(0,f.jsx)(a,{versions:n,company:o})},{})})}),(0,f.jsx)(a.d,{for:[I.c.Finland],when:function(){return(0,T.se)(o)},children:(0,f.jsx)(s.Z,{mx:-2,mb:2,sx:{minHeight:eQ.H1},children:(0,f.jsx)(e2,{company:o,addressSelector:T.pf,addressFormatter:e5})})}),(0,f.jsxs)(e9,{container:!0,children:[(o.phone||o.phone2||o.mobile||o.mobile2||o.faxNumber)&&(0,f.jsxs)(c.ZP,{item:!0,xs:12,md:6,children:[o.phone&&(0,f.jsxs)("span",{className:e4.smallPropertyList,children:[(0,f.jsx)("span",{className:e4.smallProperty,children:l("CompanyOfficialInfoCard.phoneLabel")}),(0,f.jsx)("span",{className:e4.smallPropertyValue,children:(0,f.jsx)(eE.U,{phone:o.phone})})]}),o.phone2&&(0,f.jsxs)("span",{className:e4.smallPropertyList,children:[(0,f.jsx)("span",{className:e4.smallProperty,children:l("CompanyOfficialInfoCard.phone2Label")}),(0,f.jsx)("span",{className:e4.smallPropertyValue,children:d.format(o.phone2)})]}),o.mobile&&(0,f.jsxs)("span",{className:e4.smallPropertyList,children:[(0,f.jsx)("span",{className:e4.smallProperty,children:l("CompanyOfficialInfoCard.mobileLabel")}),(0,f.jsx)("span",{className:e4.smallPropertyValue,children:d.format(o.mobile)})]}),o.mobile2&&(0,f.jsxs)("span",{className:e4.smallPropertyList,children:[(0,f.jsx)("span",{className:e4.smallProperty,children:l("CompanyOfficialInfoCard.mobile2Label")}),(0,f.jsx)("span",{className:e4.smallPropertyValue,children:d.format(o.mobile2)})]}),o.faxNumber&&(0,f.jsxs)("span",{className:e4.smallPropertyList,children:[(0,f.jsx)("span",{className:e4.smallProperty,children:l("CompanyOfficialInfoCard.faxLabel")}),(0,f.jsx)("span",{className:e4.smallPropertyValue,children:d.format(o.faxNumber)})]})]}),(0,f.jsxs)(c.ZP,{item:!0,xs:12,md:6,children:[o.homePage&&(0,f.jsxs)("span",{className:e4.smallPropertyList,children:[(0,f.jsx)("span",{className:e4.smallProperty,children:l("CompanyOfficialInfoCard.homePageLabel")}),(0,f.jsx)("span",{className:e4.smallPropertyValue,children:(0,f.jsx)(ex.Z,{href:o.homePage,className:e0.vL.COMPANY_DETAILS_HOMEPAGE,rel:"sponsored",target:"_blank",color:"secondary.main",underline:"hover",children:(0,eH.G1)(o.homePage)})})]}),o.webshopUrl&&(0,f.jsxs)("span",{className:e4.smallPropertyList,children:[(0,f.jsx)("span",{className:e4.smallProperty,children:l("CompanyOfficialInfoCard.webshopLabel")}),(0,f.jsx)("span",{className:e4.smallPropertyValue,children:(0,f.jsx)(ex.Z,{href:o.webshopUrl,className:e0.vL.COMPANY_DETAILS_WEBSHOP,rel:"sponsored",target:"_blank",color:"secondary.main",underline:"hover",children:(0,eH.G1)(o.webshopUrl)})})]}),o.email&&(0,f.jsxs)("span",{className:e4.smallPropertyList,children:[(0,f.jsx)("span",{className:e4.smallProperty,children:l("email")}),(0,f.jsx)("span",{className:e4.smallPropertyValue,children:(0,f.jsx)(eG,{email:o.email,label:o.email,className:e0.vL.COMPANY_DETAILS_EMAIL})})]}),o.visitorAddress&&(0,f.jsxs)("span",{className:e4.smallPropertyList,children:[(0,f.jsx)("span",{className:e4.smallProperty,children:l("CompanyOfficialInfoCard.addressLabel")}),(0,f.jsx)("span",{className:e4.smallPropertyValue,children:(0,f.jsx)(eV.k,{address:o.visitorAddress})})]}),o.postalAddress&&(0,f.jsxs)("span",{className:e4.smallPropertyList,children:[(0,f.jsx)("span",{className:e4.smallProperty,children:l("CompanyOfficialInfoCard.postalAddressLabel")}),(0,f.jsx)("span",{className:e4.smallPropertyValue,children:(0,f.jsx)(eV.k,{address:o.postalAddress})})]})]})]}),o.contactFormUrl&&(0,f.jsx)(s.Z,{pt:2,children:(0,f.jsx)(P.Z,{variant:"body2",children:(0,f.jsx)(eB.b,{className:e0.vL.COMPANY_DETAILS_CONTACT_FORM,dangerouslySetInnerHTML:{__html:l("CompanyOfficialInfoCard.contactForm",{url:o.contactFormUrl})}})})}),e6(o.contactPersons)&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.Z,{component:eF.Z,mt:2,mb:2}),(0,f.jsx)(eM,{contactPersons:o.contactPersons})]}),null!=(t=o.socialMediaLinks)&&Object.values(t).length>0&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.Z,{component:eF.Z,mt:2,mb:2}),(0,f.jsx)(eX,{socialMediaLinks:o.socialMediaLinks})]}),(0,f.jsx)(a.d,{for:[I.c.Finland],children:(0,f.jsx)(K.k,{source:l("sources.overview.contactInfo")})})]})}),e7=function(e){var n=e.itemList,r=e.itemUrl,t=e.title,a=e.eventClass,o=e.columns,s=(0,i.$G)().t,l=Math.floor(12/(void 0===o?1:o));return(0,f.jsx)(F.Z,{title:s("".concat(t,".title")),sx:{height:"calc(100% - 16px)"},children:(0,f.jsxs)(P.Z,{variant:"body2",component:"div",children:[(0,f.jsx)(c.ZP,{container:!0,children:n.map(function(e,n){return(0,f.jsx)(c.ZP,{item:!0,xs:l,children:e.orgNumber?(0,f.jsx)(N.Z,{tab:O.H.OVERVIEW,companyId:e.orgNumber.replace(/[- ]/g,""),name:e.name}):e.name},n)})}),r&&(0,f.jsx)(c.ZP,{item:!0,xs:12,pt:0!==n.length?2:0,children:(0,f.jsx)(eB.b,{className:a,dangerouslySetInnerHTML:{__html:s("".concat(t,".link"),{url:r})}})})]})})},ne=r(66985),nn=function(e){var n=e.name,r=e.accounts,t=(0,i.$G)().t,a=(0,ne.U)(),o=(0,V.useMemo)(function(){var e,n,t,o,i=+(null===(e=r.companyAccounts[0])||void 0===e?void 0:null===(n=e.accounts.find(function(e){return"SDI"===e.code}))||void 0===n?void 0:n.amount),s=+(null===(t=r.companyAccounts[3])||void 0===t?void 0:null===(o=t.accounts.find(function(e){return"SDI"===e.code}))||void 0===o?void 0:o.amount);return i&&s?a.format(100*(i-s)/s,{maximumFractionDigits:2}):null},[]);return(0,f.jsxs)(d.Z,{direction:"row",spacing:2,boxShadow:1,borderRadius:1.5,p:2,mt:2,bgcolor:"white",children:[(0,f.jsx)(eb(),{height:80,width:60,src:"/images/dn-gaselle.svg",alt:"Gaselle"}),(0,f.jsxs)(d.Z,{flex:1,children:[(0,f.jsx)(P.Z,{variant:"h3",mb:1,children:t("GaselleCard.title",{name:n})}),(0,f.jsxs)(c.ZP,{container:!0,direction:{xs:"column",md:"row-reverse"},justifyContent:"space-between",spacing:1,children:[o&&(0,f.jsxs)(c.ZP,{item:!0,children:[(0,f.jsxs)(P.Z,{variant:"h1",component:"p",lineHeight:"2rem",children:[o,"%"]}),(0,f.jsx)(P.Z,{variant:"body2",textAlign:{xs:"left",md:"right"},children:t("GaselleCard.growth")})]}),(0,f.jsxs)(c.ZP,{item:!0,flex:1,alignSelf:{xs:"flex-start",md:"center"},children:[(0,f.jsx)(P.Z,{variant:"body2",children:t("GaselleCard.description")}),(0,f.jsx)(ex.Z,{rel:"nofollow",variant:"body2",target:"_blank",underline:"hover",color:"secondary",href:"https://dn.no/gaselle",children:t("GaselleCard.link")})]})]})]})]})},nr=r(38069),nt=r(36816),na=function(e){var n=e.maxKeywords,r=void 0===n?10:n,t=e.industries,a=e.keywords,o=(0,x.qr)().site,l=(0,i.$G)().t,d=(0,V.useState)(!1),p=d[0],u=d[1],m=a.slice(0,p?a.length:r);(0,V.useEffect)(function(){u(!1)},[t,a]);var h=(0,f.jsx)(f.Fragment,{children:a.length>r&&(0,f.jsx)(c.ZP,{container:!0,justifyContent:"right",pt:0,children:(0,f.jsx)(P.Z,{variant:"body2",pb:2,pr:2,pt:0,children:(0,f.jsxs)(nt.ZP,{type:"button",onClick:function(){u(function(e){return!e})},children:[l(p?"IndustriesAndKeywordsCard.showLessKeywords":"IndustriesAndKeywordsCard.showAllKeywords"),p&&(0,f.jsx)(L.G,{icon:S.FPD,fixedWidth:!0}),!p&&(0,f.jsx)(L.G,{icon:S.r5q,fixedWidth:!0})]})})})});return(0,f.jsxs)(F.Z,{title:l("IndustriesAndKeywordsCard.title"),footer:h,children:[(0,f.jsxs)(c.ZP,{container:!0,children:[t.length>0&&(0,f.jsxs)(c.ZP,{item:!0,container:!0,alignItems:"flex-start",justifyContent:"flex-start",children:[(0,f.jsx)(c.ZP,{item:!0,xs:12,md:2,children:(0,f.jsx)(P.Z,{variant:"body2",sx:function(e){return{color:e.palette.grey[700]}},children:l("IndustriesAndKeywordsCard.industries")})}),(0,f.jsx)(c.ZP,{item:!0,xs:12,md:10,children:(0,f.jsx)(P.Z,{variant:"body2",children:t.map(function(e,n){return(0,f.jsxs)(V.Fragment,{children:[(0,f.jsx)(nr.Z,{sx:null!=e.salesRank?{fontWeight:"bold"}:{},name:e.name}),n<t.length-1?", ":""]},n)})})})]}),a.length>0&&(0,f.jsxs)(c.ZP,{item:!0,container:!0,pt:1,alignItems:"flex-start",children:[(0,f.jsx)(c.ZP,{item:!0,xs:12,md:2,children:(0,f.jsx)(P.Z,{variant:"body2",sx:function(e){return{color:e.palette.grey[700]}},children:l("IndustriesAndKeywordsCard.keywords")})}),(0,f.jsx)(c.ZP,{item:!0,xs:12,md:10,children:(0,f.jsx)(P.Z,{variant:"body2",children:m.map(function(e,n){return(0,f.jsxs)(V.Fragment,{children:[(0,f.jsx)(nr.Z,{name:e}),n<m.length-1?", ":""]},n)})})})]})]}),(0,f.jsx)(s.Z,{mt:2,children:(0,f.jsx)(K.k,{source:l("sources.overview.keywords",{context:o})})})]})},no=r(17032),ni=r(38400),ns=r(53534),nc=(0,m.ZP)(P.Z)(function(e){return{color:e.theme.palette.grey[700]}}),nl=(0,m.ZP)(N.Z)(function(){return{fontWeight:500}}),nd=function(e){var n=e.rolePerson;return(0,f.jsx)(f.Fragment,{children:n.id&&n.businessPerson?(0,f.jsx)(ni.Z,{route:"rolePersonOverview",sx:{fontWeight:"500"},roleId:n.id,name:(0,eH.EV)(n.name),location:"-",color:"secondary",variant:"body2",children:n.name}):(0,f.jsx)(f.Fragment,{children:n.name})})},np=function(e){var n,r,t=e.company,a=e.roles,o=e.rolesFromMainOffice,c=(0,i.$G)().t,l=a.manager,p=a.chairman;if(null==l&&null==p)return(0,f.jsx)(f.Fragment,{});var u=o&&(0,f.jsx)(ns.N,{mainOffice:t.mainOffice,showIndicator:!1,tab:O.H.OVERVIEW}),m=(0,f.jsxs)(s.Z,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,f.jsx)(s.Z,{display:"flex",pl:2,pb:2,children:(0,f.jsx)(K.k,{source:c("sources.overview.management")})}),(0,f.jsx)(s.Z,{display:"flex",alignItems:"center",children:(0,f.jsx)(P.Z,{variant:"body2",pb:2,pr:2,children:(0,f.jsxs)(nl,{tab:O.H.ROLES,shallow:!0,scroll:!0,companyId:t.companyId,name:t.name,industry:null===(n=t.currentIndustry)||void 0===n?void 0:n.name,location:null===(r=(0,T.pf)(t))||void 0===r?void 0:r.postPlace,children:["".concat(c("ManagementAndBoardCard.seeAllLink")," "),(0,f.jsx)(L.G,{icon:S.eFW})]})})})]}),x=[l,p].filter(function(e){return null!=e});return(0,f.jsx)(F.Z,{title:c("ManagementAndBoardCard.title"),tagline:u,footer:m,children:x.map(function(e,n){return(0,f.jsxs)(d.Z,{direction:"row",justifyContent:"flex-start",alignItems:"flex-start",spacing:1,children:[(0,f.jsx)(s.Z,{sx:{maxWidth:"180px",minWidth:"180px"},children:(0,f.jsx)(nc,{variant:"body2",sx:{pb:{xs:2,md:1}},children:c("roles.".concat(e.role),e.role)})}),(0,f.jsx)(s.Z,{children:(0,f.jsx)(P.Z,{variant:"body2",sx:{pb:{xs:2,md:1}},children:(0,f.jsx)(nd,{rolePerson:e})})})]},n)})})},nu=r(98396),nm=r(88909),nx=r(29839),nh="OfficialCompanyInformationCard",nf={propertyList:"".concat(nh,"-propertyList"),property:"".concat(nh,"-property"),propertyValue:"".concat(nh,"-propertyValue"),propertyValueCompanyType:"".concat(nh,"-propertyValueCompanyType"),propertyIcon:"".concat(nh,"-propertyIcon"),tagline:"".concat(nh,"-tagline")},ny=(0,m.ZP)(c.ZP)(function(e){var n,r,t=e.theme;return r={},(0,l.Z)(r,"& .".concat(nf.propertyList),{fontSize:"14px",display:"flex",alignItems:"flex-start",lineHeight:"20px",color:t.palette.grey[700],marginBottom:t.spacing(1),"&:last-child":{marginBottom:0}}),(0,l.Z)(r,"& .".concat(nf.property),{marginRight:t.spacing(1),flex:"1 1 0",alignItems:"center"}),(0,l.Z)(r,"& .".concat(nf.propertyValue),(n={fontFamily:"Roboto",fontStyle:"normal",fontWeight:500,fontSize:"14px",lineHeight:"20px",flex:"2 1 0",color:t.palette.grey[800]},(0,l.Z)(n,t.breakpoints.down("md"),{flex:"1 1 0"}),(0,l.Z)(n,"&.list",{display:"flex",flexDirection:"column",gap:"8px"}),(0,l.Z)(n,"> div:last-child",{marginBottom:"0px"}),n)),(0,l.Z)(r,"& .".concat(nf.propertyValueCompanyType),(0,l.Z)({},t.breakpoints.down("md"),{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",maxWidth:"150px"})),(0,l.Z)(r,"& .".concat(nf.propertyIcon),{marginRight:t.spacing(.5),fontSize:"1rem",marginTop:t.spacing(.25),"&.active":{color:t.palette.success.main},"&.inactive":{color:t.palette.error.main},"&.warning":{color:t.palette.error.main}}),(0,l.Z)(r,"& .".concat(nf.tagline),{paddingBottom:"0px !important"}),r}),ng=function(e){var n,r,o,l=e.company,u=(0,i.$G)().t,m=(0,p.Z)(),x=(0,nu.Z)(m.breakpoints.down("sm")),h=(0,$.a)(),y=(0,eR.z)(),g=(0,ne.U)(),v=l.companyType?u("companyTypes.".concat(l.companyType.code),l.companyType.name):"-",b=(0,T.mu)(l),Z=(0,t.Z)(b,1)[0],w=l.companyAccounts.length>0&&(n=l.turnoverYear,!!l.companyAccounts.find(function(e){return e.year===(null==n?void 0:n.toString())}));return(0,f.jsxs)(F.Z,{title:u("CompanyOfficialInfoCard.title"),children:[(0,f.jsxs)(ny,{container:!0,spacing:{xs:0,md:2},children:[(0,f.jsx)(a.d,{for:[I.c.Denmark],when:function(){return l.marketingProtection},children:(0,f.jsx)(c.ZP,{item:!0,xs:12,className:nf.tagline,children:(0,f.jsx)(eD.U,{})})}),l.purpose&&(0,f.jsxs)(c.ZP,{container:!0,item:!0,spacing:.5,mb:{xs:1,md:0},children:[(0,f.jsx)(P.Z,{component:c.ZP,item:!0,xs:12,variant:"body2",color:"textSecondary",children:u("CompanyOfficialInfoCard.purpose")}),(0,f.jsx)(P.Z,{component:c.ZP,item:!0,xs:12,variant:"body2",children:l.purpose})]}),(0,f.jsx)(c.ZP,{item:!0,xs:12,md:6,children:(0,f.jsxs)(s.Z,{pb:{xs:2},children:[l.legalName&&(0,f.jsxs)("span",{className:nf.propertyList,children:[(0,f.jsx)("span",{className:nf.property,children:u("CompanyOfficialInfoCard.legalNameLabel")}),(0,f.jsx)("span",{className:nf.propertyValue,children:l.legalName})]}),(0,f.jsxs)("span",{className:nf.propertyList,children:[(0,f.jsx)("span",{className:nf.property,children:u("CompanyOfficialInfoCard.businessIdLabel")}),(0,f.jsx)("span",{className:nf.propertyValue,children:(0,f.jsx)(eO.l,{organisationNumber:l.orgnr})})]}),l.businessUnitId&&(0,f.jsxs)("span",{className:nf.propertyList,children:[(0,f.jsx)("span",{className:nf.property,children:u("businessUnitId")}),(0,f.jsx)("span",{className:nf.propertyValue,children:(0,f.jsx)(eO.l,{organisationNumber:l.businessUnitId})})]}),l.registrationDate&&(0,f.jsxs)("span",{className:nf.propertyList,children:[(0,f.jsx)("span",{className:nf.property,children:u("CompanyOfficialInfoCard.dateOfRegistrationLabel")}),(0,f.jsx)("span",{className:nf.propertyValue,children:h.format(l.registrationDate)})]}),(0,f.jsx)(a.d,{for:[I.c.Norway],children:l.foundationDate&&(0,f.jsxs)("span",{className:nf.propertyList,children:[(0,f.jsx)("span",{className:nf.property,children:u("CompanyOfficialInfoCard.dateOfEstablishmentLabel")}),(0,f.jsx)("span",{className:nf.propertyValue,children:h.format(l.foundationDate)})]})}),l.companyType&&(0,f.jsxs)("span",{className:nf.propertyList,children:[(0,f.jsx)("span",{className:nf.property,children:u("CompanyOfficialInfoCard.organisationFormLabel")}),(0,f.jsx)("span",{className:nf.propertyValue,title:v,children:x?(0,eH.$A)(v,29):v})]}),l.employees&&(0,f.jsxs)("span",{className:nf.propertyList,children:[(0,f.jsx)("span",{className:nf.property,children:u("CompanyOfficialInfoCard.employeesLabel")}),(0,f.jsx)("span",{className:nf.propertyValue,children:l.employees})]}),l.naceIndustries&&l.naceIndustries.length>0&&(0,f.jsxs)("span",{className:nf.propertyList,children:[(0,f.jsx)("span",{className:nf.property,children:u("CompanyOfficialInfoCard.naceIndustryLabel")}),(0,f.jsx)("span",{className:nf.propertyValue,children:l.naceIndustries.map(function(e,n){return(0,f.jsx)(s.Z,{mb:1,children:e},n)})})]}),l.contactPerson&&l.contactPerson.role&&(0,f.jsxs)("span",{className:nf.propertyList,children:[(0,f.jsx)("span",{className:nf.property,children:u("roles.".concat(l.contactPerson.role),l.contactPerson.role)}),(0,f.jsx)("span",{className:nf.propertyValue,children:l.contactPerson.name})]}),l.mainOffice&&(0,f.jsxs)("span",{className:nf.propertyList,children:[(0,f.jsx)("span",{className:nf.property,children:u("mainOffice")}),(0,f.jsx)("span",{className:nf.propertyValue,children:(0,f.jsx)(N.Z,{tab:O.H.OVERVIEW,companyId:l.mainOffice.companyId,name:l.mainOffice.name,children:l.mainOffice.name})})]})]})}),(0,f.jsx)(c.ZP,{item:!0,xs:12,md:6,children:(0,f.jsxs)(s.Z,{pb:{xs:2},children:[l.legalPhone&&(0,f.jsxs)("span",{className:nf.propertyList,children:[(0,f.jsx)("span",{className:nf.property,children:u("CompanyOfficialInfoCard.phoneLabel")}),(0,f.jsx)("span",{className:nf.propertyValue,children:y.format(l.legalPhone)})]}),l.faxNumber&&(0,f.jsxs)("span",{className:nf.propertyList,children:[(0,f.jsx)("span",{className:nf.property,children:u("CompanyOfficialInfoCard.faxLabel")}),(0,f.jsx)("span",{className:nf.propertyValue,children:y.format(l.faxNumber)})]}),l.legalVisitorAddress&&(0,f.jsxs)("span",{className:nf.propertyList,children:[(0,f.jsx)("span",{className:nf.property,children:u("CompanyOfficialInfoCard.addressLabel")}),(0,f.jsx)("span",{className:nf.propertyValue,children:(0,f.jsx)(eV.k,{address:l.legalVisitorAddress})})]}),l.legalPostalAddress&&(0,f.jsxs)("span",{className:nf.propertyList,children:[(0,f.jsx)("span",{className:nf.property,children:u("CompanyOfficialInfoCard.postalAddressLabel")}),(0,f.jsx)("span",{className:nf.propertyValue,children:(0,f.jsx)(eV.k,{address:l.legalPostalAddress})})]}),Z.length>0&&(0,f.jsxs)("span",{className:nf.propertyList,children:[(0,f.jsx)("span",{className:nf.property,children:"\xa0"}),(0,f.jsx)("span",{className:"".concat(nf.propertyValue),children:(0,f.jsx)(N.Z,{tab:O.H.ORGANISATION,companyId:l.companyId,name:l.name,industry:null===(r=l.currentIndustry)||void 0===r?void 0:r.name,location:null===(o=(0,T.pf)(l))||void 0===o?void 0:o.postPlace,hash:"businessUnits",children:u("showBusinessUnits")})})]}),(0,f.jsx)(a.d,{for:[I.c.Norway,I.c.Sweden,I.c.Finland],children:(0,f.jsxs)("span",{className:nf.propertyList,children:[(0,f.jsx)("span",{className:nf.property,children:u("CompanyOfficialInfoCard.registeredIn")}),(0,f.jsx)("span",{className:"".concat(nf.propertyValue," list"),children:l.registryStatusEntries.map(function(e){return(0,f.jsxs)(d.Z,{direction:{xs:"column",sm:"row"},justifyContent:{xs:"flex-start",sm:"space-between"},alignItems:{xs:"flex-start",sm:"center"},children:[(0,f.jsxs)(s.Z,{children:[(0,f.jsx)(L.G,{icon:e.value?S.f8k:S.WA2,fixedWidth:!0,className:"".concat(nf.propertyIcon," ").concat(e.value?"active":"inactive")}),u("CompanyOfficialInfoCard.".concat(e.label))]}),(0,f.jsx)(s.Z,{alignSelf:{xs:"flex-start",sm:"flex-end"},children:e.value&&e.date&&" ".concat(h.format(e.date))})]},e.label)})})]})}),l.shareCapital>0&&(0,f.jsxs)("span",{className:nf.propertyList,children:[(0,f.jsx)("span",{className:nf.property,children:u("CompanyOfficialInfoCard.shareCapital")}),(0,f.jsx)("span",{className:nf.propertyValue,children:g.format(l.shareCapital)})]}),!w&&l.estimatedTurnover&&(0,f.jsxs)("span",{className:nf.propertyList,children:[(0,f.jsx)("span",{className:nf.property,children:u("CompanyOfficialInfoCard.estimatedTurnover")}),(0,f.jsxs)("span",{className:nf.propertyValue,children:[l.estimatedTurnover," ","  ",l.turnoverYear&&(0,f.jsx)(j.Z,{arrow:!0,title:u("CompanyOfficialInfoCard.estimatedTurnoverTooltip",{year:l.turnoverYear}),placement:"top",componentsProps:{tooltip:{sx:{maxWidth:"280px",maxHeight:"100px",blockSize:"fit-content",textAlign:"center"}}},children:(0,f.jsx)(L.G,{icon:S.sqG,className:"".concat(nf.propertyIcon)})})]})]}),((0,nm.eD)(l.status)||(0,T._h)(l))&&(0,f.jsxs)("span",{className:nf.propertyList,children:[(0,f.jsx)("span",{className:nf.property,children:u("CompanyOfficialInfoCard.statusLabel")}),(0,f.jsx)("span",{className:nf.propertyValue,children:(0,f.jsx)(nx.hL,{status:l.status,remarks:l.statusRemarks,fontWeight:500,color:"black",variant:nx.$e.Short})})]})]})})]}),(0,f.jsx)(K.k,{source:u("sources.overview.companyOfficialInfo")})]})},nj=r(84992),nv=r(32960),nb=(0,m.ZP)(N.Z)(function(){return{fontWeight:500}}),nZ=function(e){var n,r,t,o,s=e.company,c=e.shareholders,l=e.shareholdersFromMainOffice,p=(0,i.$G)().t,u=(0,ek.Z)();if(c.length<1)return null;var m=c.length>1&&c[0].numberOfShares===c[1].numberOfShares,x=c[0],h=l&&(0,f.jsx)(ns.N,{mainOffice:s.mainOffice,showIndicator:!1,tab:O.H.OVERVIEW}),y=l?null==s?void 0:null===(n=s.mainOffice)||void 0===n?void 0:n.orgnr:null==s?void 0:s.orgnr,j=l?null==s?void 0:null===(r=s.mainOffice)||void 0===r?void 0:r.name:null==s?void 0:s.name,v=(0,f.jsx)(g.Z,{display:"flex",justifyContent:"flex-end",alignItems:"flex-end",height:"100%",children:(0,f.jsxs)(P.Z,{variant:"body2",pb:2,pr:2,fontWeight:500,children:[(0,f.jsx)(a.d,{for:[I.c.Norway,I.c.Denmark,I.c.Finland],children:(0,f.jsxs)(nv.Z,{route:"shareholderDetails",shareholderId:y,entityType:"Company",name:j,children:["".concat(p("TopShareholders.showAll")," "),(0,f.jsx)(L.G,{icon:S.eFW})]})}),(0,f.jsx)(a.d,{for:[I.c.Sweden],children:(0,f.jsxs)(nb,{tab:O.H.ROLES,shallow:!0,scroll:!0,companyId:s.companyId,name:s.name,industry:null===(t=s.currentIndustry)||void 0===t?void 0:t.name,location:null===(o=(0,T.pf)(s))||void 0===o?void 0:o.postPlace,children:["".concat(p("TopShareholders.showAll")," "),(0,f.jsx)(L.G,{icon:S.eFW})]})})]})}),b={display:"flex",flexDirection:"column",height:"calc(100% - ".concat(u.spacing(2),")")};return(0,f.jsx)(F.Z,{title:p("TopShareholder.title"),tagline:h,footer:v,sx:b,children:(0,f.jsx)(P.Z,{variant:"body2",component:"div",children:(0,f.jsxs)(d.Z,{direction:"row",justifyContent:"flex-start",alignItems:"flex-start",spacing:1,children:[(0,f.jsx)(g.Z,{sx:{maxWidth:"180px",minWidth:"180px"},children:(0,f.jsx)(P.Z,{variant:"body2",color:"textSecondary",children:p("TopShareholder.topShareholder")})}),(0,f.jsx)(g.Z,{children:m?p("TopShareholder.splitTopShareholder"):x.companyId?(0,f.jsx)(N.Z,{tab:O.H.OVERVIEW,companyId:x.companyId,name:x.name,fontWeight:500}):x.name})]})})})},nw=r(17066),nC=r(30085),nP=function(){var e=(0,i.$G)().t;return(0,f.jsx)(F.Z,{title:e("ApiPromoCard.title"),children:(0,f.jsxs)(c.ZP,{container:!0,direction:"row",spacing:2,children:[(0,f.jsx)(c.ZP,{item:!0,xs:12,md:8,children:(0,f.jsx)(P.Z,{variant:"body2",children:e("ApiPromoCard.description")})}),(0,f.jsx)(c.ZP,{item:!0,xs:12,md:4,children:(0,f.jsx)(nt.KM,{fullWidth:!0,href:e("ApiPromoCard.link"),children:e("ApiPromoCard.button")})})]})})},nA=r(37006),nI=r(39039),nN=r(84830),nO=r(40045),nk=function(e){var n=e.openVacancies,r=e.maxOpenVacancies,t=(0,i.$G)().t,a=(0,V.useState)(!1),o=a[0],l=a[1],d=(0,V.useState)(0),p=d[0],u=d[1];if((0,V.useEffect)(function(){var e=function(){u(window.scrollY)};return window.addEventListener("scroll",e),function(){window.removeEventListener("scroll",e)}},[]),(0,V.useEffect)(function(){l(!1)},[n]),!n||!n.vacancies||0===n.vacancies.length)return null;var m=r&&r<n.vacancies.length?r:n.vacancies.length,x=(0,f.jsxs)(c.ZP,{container:!0,justifyContent:"space-between",pb:2,children:[(0,f.jsx)(s.Z,{display:"flex",alignItems:"flex-end",pl:2,children:(0,f.jsx)(K.k,{source:t("sources.overview.openVacancies")})}),(0,f.jsx)(s.Z,{display:"flex",alignItems:"center",children:(0,f.jsx)(P.Z,{variant:"body2",pr:2,sx:{fontWeight:500},children:(0,f.jsx)(nt.ZP,{onClick:function(){o&&p>100&&window.scrollTo(0,p),l(function(e){return!e})},"aria-expanded":o,hidden:m<6,"aria-label":t(o?"OpenVacanciesCard.showLess":"OpenVacanciesCard.showMore"),children:o?(0,f.jsxs)(f.Fragment,{children:[t("OpenVacanciesCard.showLess")," ",(0,f.jsx)(L.G,{icon:S.FPD})]}):(0,f.jsxs)(f.Fragment,{children:[t("OpenVacanciesCard.showMore")," ",(0,f.jsx)(L.G,{icon:S.r5q})]})})})})]});return(0,f.jsx)(F.Z,{title:t("OpenVacanciesCard.title",{count:n.vacancies.length}),footer:x,children:(0,f.jsx)(c.ZP,{container:!0,spacing:1,children:n.vacancies.slice(0,o?Number.POSITIVE_INFINITY:m).map(function(e){return(0,f.jsx)(c.ZP,{item:!0,xs:12,md:6,sx:{fontSize:".875rem",lineHeight:"1.25rem"},children:(0,f.jsx)(ex.Z,{href:e.jobUrl,color:"secondary.main",rel:"noopener",target:"_blank",variant:"inherit",underline:"hover",children:e.title})},e.jobUrl)})})})},nL=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"youtube";return e.find(function(e){return e.provider===n})||null||(e.length>0?e[0]:null)};function nS(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,t)}return r}function nT(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?nS(Object(r),!0).forEach(function(n){(0,l.Z)(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var nF=function(e){var n=nL(e.videos);return null==n?null:(0,f.jsx)(g.Z,{pt:2,children:nR(n)})},nR=function(e){var n=(0,p.Z)(),r=(0,nu.Z)(n.breakpoints.down("md")),t={border:"0px",width:"100%"};if("youtube"===e.provider){var a=nT(nT({},t),{},{borderRadius:"6px",boxShadow:"0px 1px 1px rgba(0, 0, 0, 0.07),0px 2px 1px rgba(0, 0, 0, 0.06),0px 1px 3px rgba(0, 0, 0, 0.1)"});return(0,f.jsx)("iframe",{width:"100%",height:r?"415":"554px",src:"https://www.youtube.com/embed/".concat(e.videoId),title:"YouTube video player",style:a,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0})}return"vimeo"===e.provider?(0,f.jsx)("iframe",{src:"https://player.vimeo.com/video/".concat(e.videoId),width:"100%",title:"Vimeo video player",height:r?"315px":"420px",style:t,allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:!0}):null},nD=r(50998),nV=function(e){var n,r,t=e.company,a=e.showMoreLinkText;return(0,f.jsx)(c.ZP,{container:!0,justifyContent:"right",children:(0,f.jsx)(P.Z,{variant:"body2",pb:2,pr:2,sx:{fontWeight:500},children:(0,f.jsxs)(N.Z,{tab:O.H.REPORTS,companyId:t.companyId,name:t.name,location:null===(n=t.visitorAddress)||void 0===n?void 0:n.postPlace,industry:null===(r=t.currentIndustry)||void 0===r?void 0:r.name,children:[a," ",(0,f.jsx)(L.G,{icon:S.eFW})]})})})},nW=function(e){var n=e.products,r=e.company,t=(0,i.$G)().t;return(0,f.jsx)(F.Z,{title:t("OverviewProductsCard.title"),footer:(0,f.jsx)(nV,{company:r,showMoreLinkText:t("OverviewProductsCard.showAllProducts")}),children:(0,f.jsx)(c.ZP,{container:!0,spacing:2,children:n.map(function(e){return(0,f.jsx)(c.ZP,{item:!0,xs:12,md:4,display:"flex",flexDirection:"row",children:(0,f.jsx)(nD.Z,{product:e,staticCompany:r,layout:"grid",highlightText:e.showHighlight?e.highlightText:void 0})},e.id)})})})},nG=r(15402),nE=U()(function(){return r.e(3978).then(r.bind(r,83978))},{loadableGenerated:{webpack:function(){return[83978]}}}),nU=function(e){var n,r,t=e.company;return(0,f.jsx)(c.ZP,{container:!0,justifyContent:"right",children:(0,f.jsx)(P.Z,{variant:"body2",pb:2,pr:2,sx:{fontWeight:500},children:(0,f.jsxs)(N.Z,{tab:O.H.REPORTS,companyId:t.companyId,name:t.name,location:null===(n=t.visitorAddress)||void 0===n?void 0:n.postPlace,industry:null===(r=t.currentIndustry)||void 0===r?void 0:r.name,children:["Visa alla rapporter ",(0,f.jsx)(L.G,{icon:S.eFW})]})})})};function nM(e){var n=e.company,r=e.trademarks,i=(0,T.T8)(n),l=(0,nw.GX)(),d=l.showCorporateAccounts,p=l.setShowCorporateAccounts,u=(0,T.F3)(n),m=(0,t.Z)(u,2),h=m[0],y=m[1],g=(0,T.vK)(n),j=(0,t.Z)(g,2),v=j[0],b=j[1],Z=(0,T.S$)(n),w=(0,t.Z)(Z,2),C=w[0],P=w[1],A=(0,x.qr)(),N=A.country,O=A.site,k=(0,nG.z)(O),L=function(){return i.accountingFiguresPresent},S=function(){return!n.isCustomer},F=null==h.manager&&null==h.chairman;return(0,f.jsxs)("div",{children:[(0,f.jsxs)(a.d,{when:L,children:[(0,f.jsx)(nw.qT,{showCorporateAccounts:d,onToggleShowCorporateAccounts:p,accounts:i}),(0,f.jsx)(em,{company:n,showCorporateAccounts:d})]}),(0,f.jsx)(a.d,{when:function(){return n.videos.length>0},children:(0,f.jsx)(nF,{videos:n.videos})}),(0,f.jsx)(a.d,{when:function(){var e;return(null===(e=n.certificates)||void 0===e?void 0:e.length)>0},children:(0,f.jsx)(eS,{company:n})}),(0,f.jsx)(a.d,{for:[I.c.Finland],when:L,children:(0,f.jsx)(no.k,{company:n,showCorporateAccounts:!1})}),(0,f.jsx)(a.d,{for:[I.c.Finland],when:function(){return n.roles.numberOfRoles>0},children:(0,f.jsx)(nj.J,{roles:n.roles,rolesFromMainOffice:!1,company:n})}),(0,f.jsx)(a.d,{for:[I.c.Norway],when:function(){return n.gaselle},children:(0,f.jsx)(nn,{name:n.name,accounts:i})}),(0,f.jsx)(e3,{company:n}),(0,f.jsx)(a.d,{when:function(){return S()&&L()},children:(0,f.jsx)(s.Z,{mt:2,children:(0,f.jsx)(o.c,{order:1})})}),(0,f.jsx)(a.d,{for:[I.c.Norway],when:function(){var e,r;return null===(e=n.centralApproval)||void 0===e?void 0:null===(r=e.status)||void 0===r?void 0:r.approved},children:(0,f.jsx)(eI,{name:n.name,centralApproval:n.centralApproval})}),n.distributors&&n.references?(0,f.jsxs)(c.ZP,{container:!0,spacing:2,mb:2,children:[(0,f.jsx)(c.ZP,{item:!0,xs:12,sm:6,children:(0,f.jsx)(e7,{itemList:n.distributors.distributorsList,itemUrl:n.distributors.informationUrl,columns:1,title:"Distributors",eventClass:e0.vL.COMPANY_DETAILS_DISTRIBUTORS})}),(0,f.jsx)(c.ZP,{item:!0,xs:12,sm:6,children:(0,f.jsx)(e7,{itemList:n.references.referencesList,itemUrl:n.references.informationUrl,columns:1,title:"References",eventClass:e0.vL.COMPANY_DETAILS_REFERENCES})})]}):(0,f.jsxs)(f.Fragment,{children:[n.distributors&&(0,f.jsx)(e7,{itemUrl:n.distributors.informationUrl,itemList:n.distributors.distributorsList,columns:2,title:"Distributors",eventClass:e0.vL.COMPANY_DETAILS_DISTRIBUTORS}),n.references&&(0,f.jsx)(e7,{itemList:n.references.referencesList,itemUrl:n.references.informationUrl,columns:2,title:"References",eventClass:e0.vL.COMPANY_DETAILS_REFERENCES})]}),(0,f.jsx)(ng,{company:n}),(0,f.jsx)(a.d,{for:[I.c.Finland],children:(0,f.jsx)(nk,{openVacancies:n.openVacancies,maxOpenVacancies:6})}),(0,f.jsx)(a.d,{for:[I.c.Norway],when:function(){return!n.hidePropertyInfo&&null!=n.postalAddress&&null!=n.visitorAddress},children:(0,f.jsx)(nE,{orgnr:n.businessUnitId||n.orgnr})}),(0,f.jsx)(a.d,{for:[I.c.Norway,I.c.Denmark,I.c.Sweden],when:function(){return null!=C},children:(0,f.jsx)(nC.i8,{company:n,corporateStructure:C,corporateStructureFromMainOffice:P})}),(0,f.jsx)(a.d,{for:[I.c.Finland],children:(0,f.jsx)(nW,{products:k.getCompanyOverviewProducts(),company:n})}),(0,f.jsx)(a.d,{for:[I.c.Norway,I.c.Denmark,I.c.Sweden],children:(0,f.jsxs)(c.ZP,{container:!0,spacing:2,alignItems:"stretch",children:[(0,f.jsx)(c.ZP,{item:!0,xs:12,md:v.length>0&&N===I.c.Norway?6:12,children:(0,f.jsx)(np,{company:n,roles:h,rolesFromMainOffice:y})}),v.length>0&&N===I.c.Norway&&(0,f.jsx)(c.ZP,{item:!0,xs:12,md:F?12:6,children:(0,f.jsx)(nZ,{company:n,shareholders:v,shareholdersFromMainOffice:b})})]})}),(0,f.jsx)(a.d,{for:[I.c.Sweden],when:function(){return(null==r?void 0:r.hits)>0},children:(0,f.jsx)(nO.default,{companyName:n.name,organisationNumber:n.orgnr,trademarks:r,overview:!0,pageSize:4})}),(n.keywords.length>0||n.industries.length>0)&&(0,f.jsx)(na,{keywords:n.keywords,industries:n.industries}),(0,f.jsx)(a.d,{forSites:[G.T.NO,G.T.SE,G.T.DK],when:S,children:(0,f.jsx)(nP,{})}),(0,f.jsx)(a.d,{forSites:[G.T.ALLABOLAG],children:(0,f.jsx)(nA.f,{})}),(0,f.jsx)(a.d,{forSites:[G.T.ALLABOLAG],when:function(){return(0,nI.SE)(n)},children:(0,f.jsx)(nI.bI,{company:n,footer:(0,f.jsx)(nU,{company:n})})}),(0,f.jsx)(a.d,{forSites:[G.T.ALLABOLAG],when:function(){return(0,nN.yr)(n)&&!(0,nI.SE)(n)},children:(0,f.jsx)(nN.AS,{company:n,showDesc:!1,footer:(0,f.jsx)(nU,{company:n})})})]})}},84992:function(e,n,r){r.d(n,{J:function(){return P}});var t=r(50029),a=r(87794),o=r.n(a),i=r(44897),s=r(2734),c=r(99226),l=r(23972),d=r(33964),p=r(67421),u=r(77115),m=r(92140),x=r(61337),h=r(53534),f=r(75336),y=r(64233),g=r(29397),j=r(67294),v=r(99578),b=r(53815),Z=r(85893),w=function(e){var n,r=e.name,a=e.roles,i=(0,p.$G)().t,u=(0,s.Z)(),m=(0,j.useRef)(null),x=(0,g.Z)({initialRows:a.slice(0,25),total:a.length,pageSize:25,dataLoader:(n=(0,t.Z)(o().mark(function e(n,r){return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve(a.slice(n,n+r)));case 1:case"end":return e.stop()}},e)})),function(e,r){return n.apply(this,arguments)}),onDecrease:function(){setTimeout(function(){m&&null!=m.current&&m.current.scrollIntoView({behavior:"smooth",block:"end"})},0)}},[a]),h=x.rows,f=x.numRows,b=x.increase,w=x.canIncrease,C=x.decrease,P=x.canDecrease,A=x.loading;return(0,Z.jsxs)(c.Z,{children:[(0,Z.jsx)(l.Z,{component:"h3",variant:"h5",textTransform:"uppercase",display:"inline-block",py:1,children:i("RoleGroups.group",{context:r})}),(0,Z.jsx)(l.Z,{variant:"body2",component:"span",color:u.palette.grey[700],children:i("RolePersonRolesCard.subtitle",{shownRoles:f,totalRoles:a.length})}),(0,Z.jsx)(y.E,{headers:[{text:i("RolePersonRolesCard.rolesTable.roleLabel")},{text:i("RolePersonRolesCard.rolesTable.nameLabel")}],rows:h.slice(0,f).map(function(e){return{id:e.id,values:[e.role,(0,Z.jsx)(d.Z,{role:e},e.id)]}}),widths:["20%","80%"]}),a.length>=f&&(0,Z.jsx)(c.Z,{mb:-2,ref:m,children:(0,Z.jsx)(v.y,{numRows:f,increase:b,canIncrease:w,decrease:C,canDecrease:P,loading:A})})]})},C=function(e){var n=0;return e.forEach(function(e){return n+=e.roles.length}),n},P=function(e){var n=e.roles,r=e.rolesFromMainOffice,t=e.company,a=e.noRoleGrouping,o=(0,p.$G)().t,s=C(n.roleGroups),c=r&&null!=t.mainOffice&&(0,Z.jsx)(h.N,{mainOffice:t.mainOffice,showIndicator:!1,tab:b.H.ROLES}),l=void 0!==a&&a?[{name:"All",roles:n.roleGroups.flatMap(function(e){return e.roles})}]:n.roleGroups;return(0,Z.jsxs)(i.Z,{title:o("CompanyRolesCard.title"),tagline:c,children:[l.map(function(e){return(0,Z.jsx)(w,{name:e.name,roles:e.roles},e.name)}),(0,Z.jsx)(u.d,{for:[m.c.Finland],children:(0,Z.jsx)(x.u,{numberOfShownRoles:s,numberOfTotalRoles:n.numberOfRoles,associate:t.name})}),(0,Z.jsx)(f.k,{source:o("sources.executivesAndOwners.roles")})]})}},40045:function(e,n,r){r.r(n);var t=r(59499),a=r(50029),o=r(87794),i=r.n(o),s=r(67421),c=r(44897),l=r(48263),d=r(23972),p=r(51233),u=r(99226),m=r(22054),x=r(67814),h=r(73582),f=r(11163),y=r(75336),g=r(59518),j=r(67294),v=r(59734),b=r(39088),Z=r(43581),w=r(25675),C=r.n(w),P=r(29397),A=r(99578),I=r(27845),N=r(53815),O=r(85893);function k(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,t)}return r}function L(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?k(Object(r),!0).forEach(function(n){(0,t.Z)(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var S=function(e){var n,r=e.companyName,t=e.organisationNumber,o=e.trademarksResponse,m=e.overview,v=e.pageSize,Z=(0,s.$G)().t,w=(0,f.useRouter)().query,C=(0,g.a)(),k=(0,j.useState)(o.currentPage),S=k[0],F=k[1],R=(0,j.useRef)(null),D=(0,P.Z)({total:null==o?void 0:o.hits,pageSize:v,initialRows:null==o?void 0:o.trademarks,dataLoader:(n=(0,a.Z)(i().mark(function e(){var n;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,b.l.getCompanyTrademarks(t,v,S+1);case 2:return n=e.sent,e.abrupt("return",null==n?void 0:n.trademarks);case 4:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)}),onIncrease:function(){F(function(e){return e+1})},onDecrease:function(){setTimeout(function(){R&&null!=R.current&&R.current.scrollIntoView({behavior:"smooth",block:"end"})},0)}}),V=D.rows,W=D.canIncrease,G=D.increase,E=D.canDecrease,U=D.decrease,M=D.numRows,H=D.loading,B=function(e){var n=e.trademark,r=e.index,t=r<M-(M%2==0?2:1);return(0,O.jsxs)(l.ZP,{item:!0,xs:12,md:5.8,pb:2,minHeight:"80px",component:"li",position:"relative",color:function(e){return e.palette.divider},borderBottom:{xs:r<M-1?1:0,md:t?1:0},children:[(0,O.jsx)(d.Z,{fontWeight:500,variant:"body2",maxWidth:n.imageId?"360px":"auto",children:n.title}),(0,O.jsx)(_,{label:Z("CompanyTrademarksCard.registrationNumber"),value:n.registration.id}),!m&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(_,{label:Z("CompanyTrademarksCard.applicationDate"),value:C.format(n.application.date)}),(0,O.jsx)(_,{label:Z("CompanyTrademarksCard.registrationDate"),value:C.format(n.registration.date)}),(0,O.jsx)(_,{label:Z("CompanyTrademarksCard.registrationExpiryDate"),value:C.format(n.registration.expiry)})]}),(0,O.jsx)(_,{label:Z("CompanyTrademarksCard.type"),value:Z("CompanyTrademarksCard.types.".concat(n.type))}),!!n.imageId&&(0,O.jsx)(T,{src:"/images/trademark/".concat(n.imageId),alt:"trademark-image-".concat(n.imageId)})]})},_=function(e){var n=e.label,r=e.value;return(0,O.jsxs)(p.Z,{direction:"row",pt:1,children:[(0,O.jsx)(d.Z,{flex:1,variant:"body2",color:function(e){return e.palette.grey[700]},children:n}),(0,O.jsx)(d.Z,{flex:m?2:1,variant:"body2",fontWeight:500,children:r})]})};return(0,O.jsxs)(c.Z,{title:Z("CompanyTrademarksCard.title"),subtitle:Z("rolesPage.shownOfTotal",{shown:M,total:o.hits}),footer:(0,O.jsxs)(p.Z,{direction:"row",p:2,pt:0,mt:-2,justifyContent:"space-between",children:[(0,O.jsx)(y.k,{source:Z("sources.overview.trademarks")}),m&&(0,O.jsxs)(I.Z,L(L({name:r,companyId:t,tab:N.H.TRADEMARKS,shallow:!0,scroll:!0},w),{},{variant:"body2",fontWeight:500,color:function(e){return e.palette.secondary.main},children:[Z("CompanyTrademarksCard.showAll"),(0,O.jsx)(x.G,{icon:h.eFW,fixedWidth:!0})]})),!m&&o.hits>=M&&(0,O.jsx)(u.Z,{ref:R,children:(0,O.jsx)(A.y,{numRows:M,canIncrease:W,increase:G,canDecrease:E,decrease:U,loading:H})})]}),children:[!m&&(0,O.jsx)(d.Z,{variant:"body2",fontWeight:500,mb:2,children:Z("CompanyTrademarksCard.description")}),(0,O.jsx)(l.ZP,{container:!0,p:0,component:"ul",gap:2,sx:{listStyle:"none"},justifyContent:"space-between",children:V.slice(0,M).map(function(e,n){return(0,O.jsx)(B,{trademark:e,index:n},e.id)})})]})},T=function(e){var n,r,t=e.src,a=e.alt,o=(0,j.useState)(!1),i=o[0],s=o[1],c=(0,j.useState)(!1),l=c[0],d=c[1],p=null==t?void 0:null===(n=t.split("."))||void 0===n?void 0:null===(r=n.pop())||void 0===r?void 0:r.toLowerCase(),u=function(){s(!0)},x=function(){s(!0),d(!0)};return l?null:(0,O.jsx)("div",{style:{position:"absolute",top:0,right:20,height:"80px"},children:(0,O.jsxs)("div",{style:{height:"80px",width:"80px",position:"relative"},children:[!i&&(0,O.jsx)(m.Z,{variant:"rounded",width:80,height:80}),"mp4"===p?(0,O.jsxs)("video",{autoPlay:!0,playsInline:!0,muted:!0,loop:!0,style:{height:"100%",width:"100%",objectFit:"contain"},onLoadedData:u,onError:x,children:[(0,O.jsx)("source",{src:t,type:"video/mp4"}),a]}):"mp3"===p?(0,O.jsxs)("audio",{controls:!0,style:{height:"100%",width:"100%",objectFit:"contain",paddingBottom:"16px"},onLoadStart:u,onError:x,children:[(0,O.jsx)("source",{src:t,type:"audio/mp3"}),a]}):(0,O.jsx)(C(),{src:t,unoptimized:!0,alt:a,fill:!0,style:{objectFit:"contain"},onLoadingComplete:u,onError:x})]})})};n.default=function(e){var n=e.companyName,r=e.organisationNumber,t=e.trademarks,o=e.overview,s=void 0!==o&&o,c=e.pageSize,l=void 0===c?24:c,d=(0,j.useState)(s?t:null),p=d[0],u=d[1],m=(0,v.ZP)(s?null:["trademarks",r],(0,a.Z)(i().mark(function e(){return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(s){e.next=4;break}return e.next=3,b.l.getCompanyTrademarks(r,l,1);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e)})),{onSuccess:function(e){return u(e)}}),x=m.data,h=m.error,f=m.isLoading;return(x&&!p&&u(x),f)?(0,O.jsx)(Z.g,{}):h?null:(0,O.jsx)(S,{overview:s,companyName:n,organisationNumber:r,trademarksResponse:p,pageSize:l})}},63265:function(e,n,r){r.d(n,{H1:function(){return t},NR:function(){return i},X:function(){return o},ZB:function(){return a},Zb:function(){return s}});var t="150px",a="//{s}.eniro.no/geowebcache/service/tms1.0.0/{layer}/{z}/{x}/{y}.{type}?v={tileVersion}",o="https://tileversion.eniro.com/tileversion?format=json",i="\xa9 Eniro/Krak/Geodatastyrelsen. Karttakeskus. Dane Mapowe Techweb. Lantm\xe4teriet/OptiWay AB",s="/images/icons/map_pin.png"}}]);