1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3927],{11257:function(e,n,i){i.d(n,{Z:function(){return a}});var t=i(52322),o=i(43311),r=i(70246);function a(e){let{isMobile:n,hasFinderPro:i,bigMobile:a}=e;return(0,t.jsx)(t.Fragment,{children:i?(0,t.jsx)(r.Z,{visualScheme:"paper",title:"ads.title.proLists",body:n&&!a?void 0:"ads.content.proLists",linkText:"ads.link.favourites",link:"/suosikit",image:"https://ucarecdn.com/f02a06b3-d725-4574-880e-2cfe09247c6b/-/preview/600x600/-/enhance/-/brightness/5/-/crop/360x260/60p,45p/-/format/auto/-/quality/smart_retina/",forceNarrow:!n,imageOnLeft:n&&!a,onClick:()=>(0,o.ec)("click_banner",{banner_content:"favorites"})}):(0,t.jsx)(r.Z,{visualScheme:"lightPro",title:"ads.title.teaser",body:n?void 0:"ads.content.teaser",linkText:"ads.link.teaser",link:"/finderpro",image:"https://ucarecdn.com/8c21409d-bab2-419e-b32c-6c48b078308d/-/preview/1000x983/",forceNarrow:!n,imageOnLeft:n&&!a,onClick:()=>(0,o.ec)("click_banner",{banner_content:"finderpro"})})})}},23821:function(e,n,i){i.d(n,{N:function(){return s},g:function(){return a}});var t=i(52322),o=i(78502),r=i(83112);function a(e){let{x:n,y:i,width:a,height:s,value:c}=e,l=(0,o.Z)(),d=(0,r.Z)(),p=Number.isNaN(c)?d.formatMessage({id:"contact.charts.notAvailable"}):d.formatNumber(Number(c),{maximumFractionDigits:1}),m=0>Number(c);return(0,t.jsx)("text",{fontFamily:"Arbeit",fontStyle:"normal",fontSize:12,fontWeight:400,x:n+a/2,y:(m?i+s:i)-5,fill:l.palette.text.primary,textAnchor:"middle",children:p})}function s(e){let{x:n,y:i,width:a,height:s,value:c}=e,l=(0,o.Z)(),d=(0,r.Z)(),p=Number.isNaN(c)?d.formatMessage({id:"contact.charts.notAvailable"}):d.formatNumber(Number(c),{maximumFractionDigits:1}),m=0>Number(c);return(0,t.jsx)("text",{fontFamily:"Arbeit",fontStyle:"normal",fontSize:12,fontWeight:100,x:m?n-15:n+a+15,y:i+s/2,fill:l.palette.text.primary,textAnchor:m?"end":"start",children:p})}},31946:function(e,n,i){i.d(n,{O9:function(){return h},ZP:function(){return u}});var t=i(52322),o=i(92462),r=i(48560),a=i(50798),s=i(30923),c=i(29193),l=i(43302),d=i(57395),p=i(93872),m=i(23821),x=i(77749);let h={strokeBlue:"#222147",strokeRed:"#5A2D30",fillBlue:"#C6D1F5",fillRed:"#F6DDD7",fillBlueDark:"#919FE9",fillRedDark:"#d56044"};function u(e){let{data:n,flip:i}=e,u=(0,x.Z)();return i?(0,t.jsx)(o.h,{height:50*n.length,children:(0,t.jsxs)(r.v,{layout:"vertical",data:n,margin:{right:20,left:u?0:20},children:[(0,t.jsx)(a.q,{horizontal:!1}),(0,t.jsx)(s.K,{type:"number",dataKey:"value",fontFamily:"Arbeit",fontSize:12,axisLine
1:!1,orientation:"top"}),(0,t.jsx)(c.B,{type:"category",dataKey:"key",fontFamily:"Arbeit",fontSize:12,width:u?100:175,tickLine:!1,tickMargin:u?0:8}),(0,t.jsx)(l.$,{dataKey:"value",shape:e=>(0,t.jsx)(p.A,{...e}),label:m.N,children:null==n?void 0:n.map((e,i)=>(0,t.jsx)(d.b,{fill:e.value>0?i>0?h.fillBlue:h.fillBlueDark:i<n.length-1?h.fillRed:h.fillRedDark,stroke:e.value>0?h.strokeBlue:h.strokeRed},"cell-".concat(i)))})]})}):(0,t.jsx)(o.h,{height:200,children:(0,t.jsxs)(r.v,{data:n,margin:{top:20},children:[(0,t.jsx)(a.q,{vertical:!1}),(0,t.jsx)(s.K,{dataKey:"key",fontFamily:"Arbeit",fontSize:12}),(0,t.jsx)(c.B,{dataKey:"value",fontFamily:"Arbeit",fontSize:12,axisLine:!1,tickSize:0,tickCount:4,width:40}),(0,t.jsx)(l.$,{dataKey:"value",shape:e=>(0,t.jsx)(p.j,{...e}),label:m.g,children:null==n?void 0:n.map((e,i)=>(0,t.jsx)(d.b,{fill:e.value>0?i<n.length-1?h.fillBlue:h.fillBlueDark:i<n.length-1?h.fillRed:h.fillRedDark,stroke:e.value>0?h.strokeBlue:h.strokeRed},"cell-".concat(i)))})]})})}},83927:function(e,n,i){i.r(n),i.d(n,{__N_SSP:function(){return oa},default:function(){return os}});var t,o,r,a,s=i(52322),c=i(2838),l=i(5632),d=i(2784),p=i(50129),m=i(98395),x=i(43311),h=i(81059),u=i(97901),f=i(88367),j=i(31946),y=i(28783),Z=i(76385),v=i(59888),b=i(60218),g=i(73569),k=i(49177),C=i(42670),_=i(26275),w=i(28738),S=i(88896),P=i(20477),I=i(76905),T=i(36199),L=i(17191),M=i(44258),F=i(85697),N=i(83112);let O={small:{fontSize:15.75,height:"24px",width:"24px"},large:{fontSize:18,height:"40px",width:"40px"}};function D(e){let{link:n,label:i,onClick:t,size:o="small"}=e,r=(0,N.Z)(),[a,c]=(0,d.useState)(!1),{height:l,width:p,fontSize:m}=O[o];return(0,s.jsx)(v.Z,{sx:{display:"flex",borderRadius:1,...(0,P.$)({borderWidth:1,background:!0,hover:!0,shimmerSpeed:6})},height:l,width:p,children:(0,s.jsx)(L.Z,{arrow:!0,open:a,onClose:()=>c(!1),onOpen:()=>c(!0),disableTouchListener:!0,slotProps:{tooltip:{sx:{backgroundColor:"background.default",color:"text.primary",boxShadow:3}},arrow:{sx:{color:"background.default"}}},title:(0,s.jsxs)(g.Z,{direction:"row",gap:"6px",p:.5,children:[(0,s.jsx)(Z.Z,{variant:"caption",children:i}),(0,s.jsx)(M.Z,{sx:{color:"text.primary",alignSelf:"start",padding:"0px"},"aria-label":r.formatMessage({id:"close"}),onClick:()=>c(!1),children:(0,s.jsx)(F.Z,{sx:{fontSize:"1rem !important"},children:"close_outlined"})})]}),children:(0,s.jsxs)(M.Z,{LinkComponent:_.Z,href:n,onClick:t||void 0,sx:{height:l,width:p,padding:0,margin:0,borderRadius:0,"&:hover":{backgroundColor:"transparent"},"& .lock-closed":{display:"block"},"&:hover .lock-closed":{display:"none"},"& .lock-open":{display:"none"},"&:hover .lock-open":{display:"block"},"& > svg":{fontSize:m,color:"pro.dark"}},children:[(0,s.jsx)(I.Z,{className:"lock-closed"}),(0,s.jsx)(T.Z,{className:"lock-open"})]})})})}var R=i(87084),z=i(36434);function B(e){let{title:n,chipText:i,teaser:t,isGood:o,contact:r}=e,a=(0,N.Z)(),c=(0,z.e)();return(0,s.jsxs)(g.Z,{direction:"row",alignItems:"center",spacing:1,flexWrap:"wrap",children:[(0,s.jsxs)(g.Z,{direction:"row",spacing:1,alignItems:"center",children:[t&&(0,s.jsx)(D,{label:a.formatMessage({id:"finderPro.teaser"}),link:"/finderpro",onClick:()=>c("click_locked_content",{click_text:a.formatMessage({id:"finderPro.teaser"}),click_url:"/finderpro",feature_name:"industry_comparison",item_name:"finder-pro",item_variant:"",page_type:"profile",profile_type:r.contactType},{dataLayer:!0})}),(0,s.jsx)(Z.Z,{variant:"body3",children:n})]}),!t&&(0,s.jsx)(R.Z,{sx:{bgcolor:o?"primary.light":"grey.100",color:o?"primary.main":void 0,fontSize:14,height:"29px",px:.5},label:i})]})}var E=i(77749),A=i(42035),W=i(60842),U=i(29577),Y=i(50578),H=i(51071),K=i(13157),G=i(39097),q=i.n(G);function V(e){let{contact:n}=e,i=(0,z.e)(),t=(0,N.Z)();return(0,s.jsx)(v.Z,{height:285,width:"100%",bgcolor:"primary.light",p:2,pt:4,borderRadius:2,border:"solid 1px",borderColor:"divider10",children:(0,s.jsxs)(g.Z,{direction:"column",alignItems:"center",spacing:.5,children:[(0,s.jsx)(I.Z,{sx:{color:"#C6D1F5",fontSize:80}}),(0,s.jsx)(Z.Z,{variant:"h4",fontWeight:500,sx:{fontSize:"21px !important"},children:(0,s.jsx)(C.Z,{id:"company.lockteaser.heading"})}),(0,s.jsx)(Z.Z,{variant:"h3",fontWeight:500,sx:{fontSize:"28px !important"},children:(0,s.jsx)(C.Z,{id:"company.lockteaser.text"})}),(0,s.jsx)(v.Z,{pt:2.5,children:(0,s.jsx)(K.Z,{variant:"contained",component:q(),href:"/finderpro",onClick:()=>{i("click_locked_content",{click_text:t.formatMessage({id:"company.lockteaser.button"}),click_url:"/finderpro",feature_name:"person_profile",item_name:"finder-pro",item_variant:"pro",page_type:"profile",profile_type:n.contactType},{dataLayer:!0})},sx:{height:"39px",width:180,lineHeight:"39px"},children:(0,s.jsx)(C.Z,{id:"company.lockteaser.button"})})})]})})}var J=i(47661),Q=i(63840);async function $(e,n,i,t){var o,r;if(!e)return{};let a={service:"finder"};return e.businessId&&(a.businessId=e.businessId),(e.businessStatusId===x.ZK.Active||e.businessStatusId===x.ZK.Fresh)&&(a.omaFonectaId=e.contactType===x.uC.Company?e.id:e.companyId||(null===(r=e.company)||void 0===r?void 0:r.id)||e.id),e.locationIds&&(a.locations=e.locationIds.join(",")),e.contactType===x.uC.Office&&(e.companyId||(null===(o=e.company)||void 0===o?void 0:o.id))&&(a.companyId=e.companyId||e.company.id),i&&(a.serverSideI
1p=i.split(",")[0]),await (0,Q.Z)({endpoint:"/company-data/".concat(e.id),queryParams:a,token:n,headers:{"X-Device-Id":t}})||null}function X(e){let{contact:n}=e;return(0,J.a)({queryFn:()=>$(n),queryKey:["companyData",n.id],keepPreviousData:!0,staleTime:36e5})}let ee=e=>!!e||0===e;function en(e){var n;let{contact:i,hasFinancialData:t,hasFinderPro:o,onToggleSources:r}=e,[a,c]=(0,d.useState)(!1),l=(0,z.e)(),p=(0,N.Z)(),{data:m,isLoading:x}=X({contact:i}),h=(0,E.Z)(),{profitRank:u,salesRank:f,growthRank:j}=(null==m?void 0:m.omaFonecta)||{},y=null==m?void 0:null===(n=m.omaFonecta)||void 0===n?void 0:n.hasRankData,b=!o&&y,k=!t||!y&&h;return((0,d.useEffect)(()=>{let e="".concat(i.id,"_opened");!JSON.parse(sessionStorage.getItem(e)||"false")&&t&&(c(!h&&!o),sessionStorage.setItem(e,JSON.stringify(!0)))},[]),!a||(null==i?void 0:i.hasPaidPackage)||o)?h&&!o?(0,s.jsx)(s.Fragment,{}):o?(0,s.jsx)(g.Z,{sx:{borderColor:"border.10",height:"100%"},minHeight:k?"130px":"275px",width:"100%",border:1,p:2,pb:b||k?2:4,borderRadius:2,children:(0,s.jsxs)(g.Z,{display:"flex",flexGrow:1,children:[(0,s.jsx)(g.Z,{children:(0,s.jsxs)(v.Z,{children:[(0,s.jsxs)(g.Z,{direction:"row",justifyContent:"space-between",children:[(0,s.jsx)(Z.Z,{variant:"h4",component:"h2",fontSize:{xs:16,md:18},children:(0,s.jsx)(C.Z,{id:"company.omaFonecta.title"})}),(0,s.jsx)(H.Z,{onClick:r})]}),(0,s.jsx)(_.Z,{color:"text.secondary",variant:"body3",href:(0,Y.g)(null==i?void 0:i.mainLineOfBusinessName),sx:{fontSize:"14px"},pb:2,children:null==i?void 0:i.mainLineOfBusinessName})]})}),k?(0,s.jsx)(v.Z,{mt:2,pb:"5px",px:1,bgcolor:"grey.200",borderRadius:1,width:"fit-content",children:(0,s.jsx)(Z.Z,{variant:"body2",color:"text.primary",fontWeight:500,fontSize:14,children:(0,s.jsx)(C.Z,{id:"company.omaFonecta.noData"})})}):x?(0,s.jsx)(w.Z,{}):(0,s.jsxs)(g.Z,{justifyContent:"space-evenly",flexGrow:1,children:[(0,s.jsx)(B,{contact:i,title:(0,s.jsx)(C.Z,{id:b&&u?"company.omaFonecta.".concat((null==u?void 0:u.isGood)?"bestTeaser":"worstTeaser"):"company.omaFonecta.title.1",values:{title:(0,s.jsx)(C.Z,{id:"company.omaFonecta.title.1"})}}),chipText:(0,s.jsx)(C.Z,{id:ee(u)?"company.omaFonecta.".concat((null==u?void 0:u.isGood)?"best":"worst"):"company.omaFonecta.noData",values:{percentage:null==u?void 0:u.value}}),isGood:null==u?void 0:u.isGood,teaser:b}),(0,s.jsx)(S.Z,{}),(0,s.jsx)(B,{contact:i,title:(0,s.jsx)(C.Z,{id:b&&f?"company.omaFonecta.".concat((null==f?void 0:f.isGood)?"bestTeaser":"worstTeaser"):"company.omaFonecta.title.2",values:{title:(0,s.jsx)(C.Z,{id:"company.omaFonecta.title.2"})}}),chipText:(0,s.jsx)(C.Z,{id:ee(f)?"company.omaFonecta.".concat((null==f?void 0:f.isGood)?"best":"worst"):"company.omaFonecta.noData",values:{percentage:null==f?void 0:f.value}}),isGood:null==f?void 0:f.isGood,teaser:b}),(0,s.jsx)(S.Z,{}),(0,s.jsx)(B,{contact:i,title:(0,s.jsx)(C.Z,{id:b&&j?"company.omaFonecta.".concat((null==j?void 0:j.isGood)?"bestTeaser":"worstTeaser"):"company.omaFonecta.title.3",values:{title:(0,s.jsx)(C.Z,{id:"company.omaFonecta.title.3"})}}),chipText:(0,s.jsx)(C.Z,{id:ee(j)?"company.omaFonecta.".concat((null==j?void 0:j.isGood)?"best":"worst"):"company.omaFonecta.noData",values:{percentage:null==j?void 0:j.value}}),isGood:null==j?void 0:j.isGood,teaser:b}),b&&(0,s.jsx)(v.Z,{mt:2,display:"flex",children:(0,s.jsx)(U.Z,{onClick:()=>l("click_locked_content",{click_text:p.formatMessage({id:"finderPro.teaser"}),click_url:"/finderpro",feature_name:"industry_comparison",item_name:"finder-pro",item_variant:"",page_type:"profile",profile_type:i.contactType},{dataLayer:!0}),textId:"finderPro.teaser"})})]})]})}):(0,s.jsx)(V,{contact:i}):(0,s.jsx)(v.Z,{id:"show-anchor-sticky-boundary-2",alignItems:"center",justifyContent:"center",display:"flex",height:"100%",children:(0,s.jsx)(A.default,{adId:W.f.ProfileDesktopFreeContentBox,minWidth:"md"})})}let ei=[{name:"turnover",type:"currency"},{name:"operatingProfit",type:"currency"}],et=e=>{let{num1:n,num2:i}=e;if(!n||!i)return null;let t=(n-i)/Math.abs(i)*100;return(0,s.jsxs)(Z.Z,{variant:"body2",sx:{color:t<0?"error.dark":"success.main"},children:[(0,s.jsx)(k.BK,{value:t,maximumFractionDigits:t>=10||t<=-10?0:1,signDisplay:"always"})," ","%"]})},eo=e=>{if(!(null==e?void 0:e.length))return{newData:e,translation:"thousands"};let n=Math.abs(e[e.length-1].value),i=n>=1e6?1e6:n>=1e3?1e3:1;return{newData:e.map(e=>({key:e.key,value:e.value/i})),magnitude:i}};function er(e){var n,i;
1let{contact:t,hasFinderPro:o,elementId:r,onToggleSources:a}=e,c=null==t?void 0:t.financials,l=ei.map(e=>[...c].reverse().map(n=>({key:n.fiscalYear,value:parseInt(n[e.name])})).filter(e=>e.key)),d=!!(null==l?void 0:null===(i=l[0])||void 0===i?void 0:null===(n=i[0])||void 0===n?void 0:n.key);return(0,s.jsx)(v.Z,{mb:2,children:(0,s.jsxs)(b.ZP,{container:!0,columnSpacing:2,rowSpacing:1.5,mb:1,id:r||"financials-chart",children:[ei.map((e,n)=>{let{newData:i,magnitude:t}=eo(l[n]),o=!!(null==i?void 0:i.length),r=l[n][l[n].length-1],a=l[n][l[n].length-2];return(0,s.jsx)(b.ZP,{item:!0,xs:12,md:4,minHeight:o?{xs:"225px",md:"275px"}:{xs:"100px",md:"130px"},children:(0,s.jsxs)(g.Z,{sx:{borderColor:"border.10"},border:1,p:2,borderRadius:2,height:"100%",children:[(0,s.jsxs)(g.Z,{direction:"row",mb:1,children:[(0,s.jsxs)(g.Z,{flex:1,children:[(0,s.jsx)(Z.Z,{variant:"h4",component:"h2",fontSize:{xs:16,md:18},children:(0,s.jsx)(C.Z,{id:"contact.charts.".concat(e.name)})}),t&&(0,s.jsx)(Z.Z,{variant:"body3",color:"text.secondary",children:(0,s.jsx)(C.Z,{id:"contact.charts.".concat(e.type,".").concat(t)})})]}),(0,s.jsxs)(g.Z,{alignItems:"flex-end",children:[(0,s.jsx)(et,{num1:(null==r?void 0:r.value)||0,num2:(null==a?void 0:a.value)||0}),!!(null==r?void 0:r.value)&&!!(null==a?void 0:a.value)&&(0,s.jsxs)(Z.Z,{variant:"body3",children:[r.key," ",(0,s.jsx)(C.Z,{id:"contacts.charts.versus"}),a.key]})]})]}),o?(0,s.jsx)(j.ZP,{data:i}):(0,s.jsx)(v.Z,{display:"flex",alignItems:"center",height:"100%",children:(0,s.jsxs)(g.Z,{direction:"row",spacing:1,children:[(0,s.jsx)(y.Z,{}),(0,s.jsx)(Z.Z,{variant:"body2",color:"text.primary",children:(0,s.jsx)(C.Z,{id:"contact.charts.noData"})})]})})]})},e.name)}),(0,s.jsx)(b.ZP,{item:!0,xs:12,md:4,justifyItems:"center",children:(0,s.jsx)(en,{contact:t,hasFinderPro:o,hasFinancialData:d,onToggleSources:a})})]})})}var ea=i(27149),es=i(34758),ec=i(96577),el=i.n(ec),ed=i(4274);function ep(e){let{label:n,text:i,endContent:t,link:o,externalLink:r,onClick:a}=e,c=(0,N.Z)();if(!i)return null;let l=o?o.startsWith("http")||o.startsWith("tel:")||o.startsWith("mailto:")?o:"//".concat(o):void 0;return(0,s.jsxs)(g.Z,{sx:{wordBreak:"break-word"},children:[(0,s.jsx)(Z.Z,{component:"h2",color:"text.secondary",variant:"body3",fontWeight:400,children:(0,s.jsx)(C.Z,{id:n})}),(0,s.jsxs)(g.Z,{direction:"row",alignItems:"center",children:[o?(0,s.jsx)(_.Z,{color:"inherit",href:l,underline:"hover",target:r?"_blank":void 0,rel:r?"noopener":void 0,component:r?_.Z:q(),onClick:a||void 0,children:(0,s.jsxs)(g.Z,{direction:"row",spacing:.5,children:[(0,s.jsx)(Z.Z,{variant:"body2",fontWeight:500,children:i}),r&&(0,s.jsx)(ed.Z,{sx:{my:"auto !important",fontSize:"1rem"},fontSize:"small","aria-label":c.formatMessage({id:"newWindowLink"})})]})}):(0,s.jsx)(Z.Z,{variant:"body2",component:a?"button":"span",fontWeight:500,sx:a&&{backgroundColor:"transparent",border:"none",p:0,"&:hover":{cursor:"pointer",textDecoration:"underline"}},onClick:a,children:i}),t]})]})}var em=i(19537);function ex(e){if(!e||e.length<8)return e;let n=e.replace(/\s/g,"");return 8!==n.length?e:n.slice(0,7)+"-"+n.slice(7)}var eh=i(51690),eu=i(75777),ef=i(24588),ej=i(78502),ey=i(70742),eZ=i(12444),ev=i(72523);function eb(){return(eb=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e}).apply(null,arguments)}var eg=function(e){return d.createElement("svg",eb({xmlns:"http://www.w3.org/2000/svg",width:19,height:19,fill:"none"},e),t||(t=d.createElement("path",{fill:"#242424",d:"M2.326.29a1.4 1.4 0 0 0-1.4 1.4v15.2a1.4 1.4 0 0 0 1.4 1.4h15.2a1.4 1.4 0 0 0 1.4-1.4V1.69a1.4 1.4 0 0 0-1.4-1.4zM15.918 2.88l-4.772 5.427 5.188 7.39h-3.817L9.023 10.72l-4.375 4.977h-1.13l5.004-5.69L3.518 2.88h3.816l3.309 4.712 4.145-4.712zm-9.125.834H5.056l7.994 11.189h1.737z"})))},ek=i(99167);let eC=e=>{let{size:n="small",hideIcon:i=!1,id:t="default",...o}=e,r=(0,ea.Z)((0,ej.Z)().breakpoints.down("md")),[a,c]=(0,d.useState)(!1),l=(0,d.useRef)(null),p=async()=>{let e={url:window.location.href};if((0,x.ec)("click_share"),r&&navigator.share&&navigator.canShare(e))try{await navigator.share(e)}catch(e){if(!e.toString().includes("AbortError"))throw e}else c(!0)},m=()=>{c(!1)}
1,h=e=>{let n=window.location.href;window.location.href=e+n,m()};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(K.Z,{ref:l,id:t+"-share-button",color:"inherit",startIcon:!i&&(0,s.jsx)(F.Z,{children:"share"}),"aria-controls":a?t+"-share-menu":void 0,"aria-haspopup":"true","aria-expanded":a?"true":void 0,size:n,onClick:p,...o,children:(0,s.jsx)(C.Z,{id:"company.share"})}),(0,s.jsxs)(ey.Z,{id:t+"-share-menu",anchorEl:l.current,open:a,onClose:m,MenuListProps:{"aria-labelledby":t+"-share-button",sx:{px:"0.25rem",py:".75rem"}},children:[(0,s.jsxs)(eZ.Z,{onClick:()=>{navigator.clipboard.writeText(window.location.href),m()},children:[(0,s.jsx)(F.Z,{sx:{mr:"0.75rem"},children:"link"}),(0,s.jsx)(C.Z,{id:"share.copy"})]}),(0,s.jsx)(S.Z,{variant:"middle",sx:{my:".25rem"}}),(0,s.jsxs)(eZ.Z,{onClick:()=>h("mailto:?body="),children:[(0,s.jsx)(F.Z,{sx:{mr:"0.75rem"},children:"email"}),(0,s.jsx)(C.Z,{id:"share.email"})]}),(0,s.jsx)(S.Z,{variant:"middle",sx:{my:".25rem"}}),(0,s.jsxs)(eZ.Z,{onClick:()=>h("https://www.linkedin.com/sharing/share-offsite/?url="),children:[(0,s.jsx)(ek.Z,{sx:{mr:"0.75rem"}}),(0,s.jsx)(C.Z,{id:"share.linkedin"})]}),(0,s.jsx)(S.Z,{variant:"middle",sx:{my:".25rem"}}),(0,s.jsxs)(eZ.Z,{onClick:()=>h("https://twitter.com/intent/tweet?url="),children:[(0,s.jsx)(ev.Z,{sx:{mr:"0.75rem"},children:(0,s.jsx)(eg,{})}),(0,s.jsx)(C.Z,{id:"share.twitter"})]})]})]})};function e_(e){return e.startsWith("http")?e:"//".concat(e)}var ew=i(82698),eS=i(17955);function eP(){return(eP=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e}).apply(null,arguments)}var eI=function(e){return d.createElement("svg",eP({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 21.3"},e),o||(o=d.createElement("path",{d:"m10.4 18.9-2.7-5.8-6-2.6 6-2.6 2.7-5.8 2.7 5.8 6 2.6-6 2.6z"})))};function eT(){let e=(0,ej.Z)();return(0,s.jsx)(g.Z,{alignItems:"center",justifyContent:"center",p:.1,borderRadius:1,bgcolor:e.palette.aiData.main,children:(0,s.jsx)(F.Z,{style:{fill:e.palette.pro.dark,fontSize:16,height:"22px",width:"22px",padding:1},children:(0,s.jsx)(eI,{})})})}function eL(e){let{children:n,...i}=e;return(0,s.jsx)(v.Z,{p:2,borderRadius:2,sx:{background:"linear-gradient(357.43deg, rgba(243, 211, 255, 0.7) 2.36%, rgba(243, 211, 255, 0.2) 98.07%)"},...i,children:n})}var eM=i(576);function eF(e){let{content:n,title:i}=e,[t,o]=(0,d.useState)(!1),[r,a]=(0,d.useState)(!1),c=(0,d.useRef)(null);return(0,d.useEffect)(()=>{c.current&&!t&&a(c.current.scrollHeight>c.current.clientHeight)},[t]),(0,s.jsxs)(v.Z,{border:1,borderRadius:2,borderColor:"border.10",p:"11px 14px 14px 14px",children:[(0,s.jsxs)(g.Z,{direction:"row",gap:1,alignItems:"center",children:[(0,s.jsx)(g.Z,{borderRadius:1,height:"22px",width:"22px",bgcolor:"#C6D1F5",alignItems:"center",justifyContent:"center",children:(0,s.jsx)(eM.Z,{fontSize:"small",sx:{padding:"1px"}})}),(0,s.jsx)(Z.Z,{variant:"body3",color:"text.secondary",children:(0,s.jsx)(C.Z,{id:"company.summary.manual.label"})})]}),(0,s.jsxs)(g.Z,{direction:{xs:"column",md:"row"},justifyContent:"space-between",gap:{xs:0,md:2},children:[(0,s.jsxs)(v.Z,{mt:.5,children:[i&&(0,s.jsx)(Z.Z,{variant:"h6",component:"h2",children:i}),(0,s.jsx)(Z.Z,{ref:c,variant:"body3",component:"p",sx:{display:t?"block":"-webkit-box",WebkitLineClamp:t?"none":{xs:5,md:2},WebkitBoxOrient:"vertical",overflow:"hidden",whiteSpace:"pre-wrap"},children:n})]}),r&&(0,s.jsx)(v.Z,{sx:{minWidth:{md:"150px"},alignItems:{xs:"center",md:"start"},display:"flex",justifyContent:{xs:"center",md:"end"}},children:(0,s.jsxs)(K.Z,{variant:"text",size:"xSmall",onClick:()=>o(!t),children:[(0,s.jsx)(C.Z,{id:"company.summary.".concat(t?"less":"more")}),(0,s.jsx)(F.Z,{sx:{mb:"-2px"},children:"keyboard_arrow_".concat(t?"up":"down")})]})})]})]})}let eN=e=>{var n,i;return null==e?void 0:null===(i=e.replace(/\b(se)\b/gi,e=>e[0]===e[0].toUpperCase()?"Yritys":"yritys"))||void 0===i?void 0:null===(n=i.match(/^((?:\b(?:mm|esim)\.|[\s\S])*?\.\W*?){2}/))||void 0===n?void 0:n[0]};function eO(e){var n,i;
1let{contact:t}=e,{data:o}=X({contact:t}),r=eN(null==o?void 0:null===(n=o.aiProfile)||void 0===n?void 0:n.full_summary_fi),a=!!(r&&t.hasCompanyUrl),c=(null===(i=t.businessDescriptionContents)||void 0===i?void 0:i[0])||"",l=!!c;return(0,s.jsxs)(v.Z,{mb:2,children:[l&&(0,s.jsx)(eF,{content:c,title:t.businessDescriptionTitle}),a&&!l&&(0,s.jsx)(eL,{display:"flex",flexDirection:"column",justifyContent:"center",children:(0,s.jsxs)(g.Z,{spacing:.4,children:[(0,s.jsxs)(g.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,s.jsxs)(v.Z,{display:"flex",children:[(0,s.jsx)(eT,{}),(0,s.jsx)(Z.Z,{variant:"body3",color:"text.secondary",ml:1,children:(0,s.jsx)(C.Z,{id:"company.summary.ai.label"})})]}),(0,s.jsx)(eu.Z,{dark:!0,iconPadding:"0",iconHeight:"22px",children:(0,s.jsx)(C.Z,{id:"company.summary.ai.tooltip"})})]}),(0,s.jsx)(g.Z,{direction:{xs:"column",md:"row"},spacing:2,justifyContent:"space-between",children:(0,s.jsx)(Z.Z,{variant:"body3",children:r})})]})}),!a&&!l&&(0,s.jsx)(v.Z,{border:1,borderRadius:2,borderColor:"border.10",bgcolor:"#f5f5f5",children:(0,s.jsx)(g.Z,{m:{xs:"10px 7px 12px 10px",md:"10px 14px 13px 17px"},children:(0,s.jsx)(Z.Z,{color:"text.disabled",variant:"body2",fontWeight:500,fontSize:{xs:16},children:(0,s.jsx)(C.Z,{id:"company.summary.notfound"})})})})]})}var eD=i(17130),eR=i(31524);function ez(){let{textId:e="company.summary.link",url:n="https://fonectaconnect.fi/nain-connect-toimii/erotu-fonectassa?cmp=MONI_T%2BConnect_A%2BConnectTuote_R%2BDISPLAY&utm_source=finder&utm_medium=referral&utm_campaign=ConnectTuote&utm_content=yrityskuvaus"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=(0,N.Z)(),t=(0,z.e)(),o=i.formatMessage({id:e});return(0,s.jsxs)(_.Z,{href:n,underline:"hover",onClick:()=>{(0,x.ec)("click_connect_cta",{click_text:o,click_url:n,page_url:window.location.href,page_type:(0,x.C2)()}),t("clicked_connect_cta",{click_text:o,click_url:n,page_url:window.location.href,page_type:(0,x.C2)(),sourceApp:"finder"},{dataLayer:!0})},sx:{display:"inline-flex",alignItems:"center",fontSize:{xs:12,sm:16},fontWeight:{xs:400,sm:500}},children:[(0,s.jsx)(v.Z,{sx:{display:"flex",flexShrink:0,alignSelf:"center",transform:"scale(0.60)",transformOrigin:"center left",width:"auto",mr:"-0.25rem"},children:(0,s.jsx)(eD.Z,{})}),(0,s.jsxs)(v.Z,{component:"span",children:[(0,s.jsx)(C.Z,{id:e}),(0,s.jsx)(ev.Z,{sx:{fontSize:24,ml:{xs:.5,sm:1},verticalAlign:"middle"},children:(0,s.jsx)(eR.Z,{})})]})]})}function eB(e){let{onClick:n,sx:i}=e;return(0,s.jsx)(_.Z,{component:K.Z,onClick:n,underline:"always",color:"primary.main",sx:{minWidth:0,fontSize:16,p:0,":hover":{bgcolor:"transparent",textDecoration:"underline"},...i},children:(0,s.jsx)(C.Z,{id:"company.tabs.creditScore.feedback"})})}var eE=i(6729),eA=i(15794),eW=i(37691),eU=i(14204),eY=i(41712),eH=i(63955),eK=i(3176),eG=i(14615),eq=i(45844),eV=i(45068),eJ=i(13644),eQ=i(90422);function e$(e){let{open:n,onClose:i,businessId:t}=e,o=(0,N.Z)(),r=(0,E.Z)(),[a,c]=(0,d.useState)(!1),[l,p]=(0,d.useState)(!1),[m,x]=(0,d.useState)(!1),{register:h,handleSubmit:u,reset:f,control:j,formState:{errors:y,isValid:v}}=(0,eH.cI)({mode:"onChange",defaultValues:{vatnumber:null!=t?t:""}});(0,d.useEffect)(()=>{n||(f(),c(!1),p(!1),x(!1))},[n]);let b=async e=>{if(!a)return;p(!0);let n={luottotiedot_feedback:eQ.j.Company,vatnumber:eQ.j.Company},t=await (0,eQ.E)("139781616","384a57ab-f959-4058-8424-8f47ea5c190f",e,window.location.href,document.title,n);x(!t),p(!1),t&&i()};return(0,s.jsx)(eE.Z,{open:n,onClose:i,fullScreen:r,children:(0,s.jsxs)(g.Z,{sx:{display:"flex",overflow:"inherit",px:{xs:3,sm:4},pt:{xs:3,sm:5.75},pb:{xs:3,sm:4},overflowWrap:"break-word",minHeight:"100%",bgcolor:"white"},children:[(0,s.jsx)(eG.Z,{onClick:i}),(0,s.jsx)(Z.Z,{variant:"h3",component:"h2",mb:{xs:2,md:4},fontSize:{xs:28},children:(0,s.jsx)(C.Z,{id:"company.tabs.creditScore.dialog.feedback.title"})}),(0,s.jsx)(Z.Z,{variant:"body1",mb:{xs:2,md:5},children:(0,s.jsx)(C.Z,{id:"company.tabs.creditScore.dialog.feedback.info"})}),(0,s.jsx)(Z.Z,{variant:"body1",fontWeight:500,mb:2,children:(0,s.jsx)(C.Z,{id:"company.tabs.creditScore.dialog.feedback.prompt"})}),(0,s.jsxs)(g.Z,{width:"100%",gap:2,component:"form",onSubmit:u(b),children:[(0,s.jsx)(eH.Qr,{name:"luottotiedot_feedback",control:j,rules:{required:!0},defaultValue:"",render:e=>{let{field:n}=e;return(0,s.jsxs)(eA.Z,{...n,displayEmpty:!0,error:!!y.luottotiedot_feedback,renderValue:e=>e||(0,s.jsx)(C.Z,{id:"company.tabs.creditScore.dialog.feedback.subject.placeholder"}),children:[(0,s.jsx)(eZ.Z,{value:o.formatMessage({id:"company.tabs.creditScore.dialog.feedback.subject.valuatum"}),children:(0,s.jsx)(C.Z,{id:"company.tabs.creditScore.dialog.feedback.subject.valuatum"})},1),(0,s.jsx)(eZ.Z,{value:o.formatMessage({id:"company.tabs.creditScore.dialog.feedback.subject.intrum"}),children:(0,s.jsx)(C.Z,{id:"company.tabs.creditScore.dialog.feedback.subject.intrum"})},2),(0,s.jsx)(eZ.Z,{value:o.formatMessage({id:"company.tabs.creditScore.dialog.feedback.subject.companyData"}),children:(0,s.jsx)(C.Z,{id:"company.tabs.creditScore.dialog.feedback.subject.companyData"})},3),(0,s.jsx)(eZ.Z,{value:o.formatMessage({id:"company.tabs.creditScore.dialog.feedback.subject.financialData"}),children:(0,s.jsx)(C.Z,{id:"company.tabs.creditScore.dialog.feedback.subject.financialData"})},4),(0,s.jsx)(eZ.Z,{value:o.formatMessage({id:"company.tabs.creditScore.dialog.feedback.subject.decisionPersons"}),children:(0,s.jsx)(C.Z,{id:"company.tabs.creditScore.dialog.feedback.subject.decisionPersons"})},5)]})}}),(0,s.jsx)(eq.Z,{required:!0,labelTextId:"company.tabs.creditScore.dialog.feedback.businessId",registration:h("vatnumber",{required:!0,pattern:(0,eV.m)("businessId")}),error:y.vatnumber}),(0,s.jsx)(eq.Z,{required:!0,labelTextId:"company.tabs.creditScore.dialog.feedback.email",registration:h("email",{required:!0,pattern:(0,eV.m)("email")}),error:y.email}),(0,s.jsx)(eq.Z,{required:!0,labelTextId:"company.tabs.creditScore.dialog.feedback.message",registration:h("message",{required:!0,pattern:(0,eV.m)("nonEmptyMultilineText")}),multiline:!0,error:y.message,minRows:r?2:5}),(0,s.jsx)(eW.Z,{...h("gdpr",{required:!0}),required:!0,control:(0,s.jsx)(eU.Z,{sx:{alignSelf:"start",pt:"4px"}}),label:(0,s.jsx)(Z.Z,{variant:"body1",component:"span",children:(0,s.jsx)(C.Z,{id:"company.tabs.creditScore.dialog.feedback.gdpr",values:{link:e=>(0,s.jsx)(_.Z,{href:"https://tuki.fonecta.com/tietosuojaseloste",color:"primary.main",children:(0,s.jsx)(Z.Z,{variant:"body1",component:"span",children:e})})}})})}),(0,s.jsx)(eK.Z,{sitekey:eJ.Z.recaptchaSiteKey,onChange:()=>c(!0),onExpired:()=>c(!1),onErrored:()=>c(!1)}),m&&(0,s.jsx)(Z.Z,{variant:"body2",color:"error.main",children:(0,s.jsx)(C.Z,{id:"company.tabs.creditScore.dialog.feedback.error"})}),(0,s.jsxs)(g.Z,{direction:"row",spacing:2,justifyContent:"flex-end",children:[(0,s.jsx)(K.Z,{disabled:l,onClick:i,children:(0,s.jsx)(C.Z,{id:"company.tabs.creditScore.dialog.feedback.cancel"})}),(0,s.jsx)(eY.Z,{type:"submit",variant:"contained",disabled:!v||!a,loading:l,disableElevation:!0,children:(0,s.jsx)(C.Z,{id:"company.tabs.creditScore.dialog.feedback.submit"})})]})]})]})})}let eX={px:"10px !important",pt:"6px !important",pb:"8px !important",fontSize:"13px",height:"44px",minWidth:"fit-content",width:"100%","& .MuiButton-icon":{marginTop:"2px"}},e0={px:"16px !important",pt:"6px !important",pb:"8px !important",height:"36px","& .MuiButton-icon":{marginTop:"2px"}};function e1(e){var n,i,t,o,r,a,c,l;let{contact:p,hasFinderPro:m}=e,h=(0,N.Z)(),u=(0,E.Z)();(0,ea.Z)("(max-width:460px)");let[f,j]=(0,d.useState)(""),[y,k]=(0,d.useState)(!1),{showNotification:w}=(0,eS.Z)(),P=(0,z.e)();function I(){(0,x.K)("fc_copy_businessid",p),navigator.clipboard.writeText(ex(p.businessId)),w("contact.businessIdCopied","success","",3e3,!0,!0,(0,s.jsx)(ew.Z,{}))}function T(e){u?(0,x.K)("fc_call_contact",p):((0,x.K)("fc_copy_number",p),navigator.clipboard.writeText(e),w("contact.numberCopied","success","",3e3,!0,!0,(0,s.jsx)(ew.Z,{})))}let L=e=>{P("clicked_caller_web_cta",{click_text:(0,em.T)(p.address).toString(),cta_description:h.formatMessage({id:"company.heading.officeAddress"}),click_url:e,page_type:(0,x.C2)()})};if((0,d.useEffect)(()=>
1{if(p.address&&p.coordinates){let e="".concat(p.coordinates.lat,",").concat(p.coordinates.lon),n=encodeURI("".concat(p.address.streetAddress," ").concat(p.address.postalCode," ").concat(p.address.postOffice));j("https://www.fonecta.fi/kartat/".concat(e,"?address=").concat(n,"&edsacid=").concat("ofs-finder-profile-location"))}else j("")},[p]),!p)return null;let O=(null===(n=p.company)||void 0===n?void 0:n.officialName)&&((null===(i=p.office)||void 0===i?void 0:i.name)?(null===(t=p.office)||void 0===t?void 0:t.name)!==(null===(o=p.company)||void 0===o?void 0:o.officialName):(null===(r=p.office)||void 0===r?void 0:r.name)!==(null===(a=p.company)||void 0===a?void 0:a.officialName)),D=p.phone||p.mobile,R=p.contactType===x.uC.Office,B=p.contactType===x.uC.Company,A=p.businessStatusId===x.ZK.OutOfBusiness||p.businessStatusId===x.ZK.Dormant;return(0,s.jsxs)(g.Z,{component:es.Z,sx:{backgroundColor:A?"background.disabled":R?"company.light":"background.paper"},pt:R?1:3,pb:{xs:R?1:2,md:R?1:2},pl:{xs:2,md:4},pr:{xs:2,md:3},mb:2,mt:{xs:0,md:3},spacing:{xs:2,md:3.5},children:[p.logoUrl&&u&&(0,s.jsx)(el(),{width:u?80:92,height:u?80:92,src:p.logoUrl,alt:"logo",style:{borderRadius:8,objectFit:"contain"}}),(0,s.jsxs)(g.Z,{direction:{xs:"column",md:"row"},children:[(0,s.jsxs)(g.Z,{flexGrow:1,py:{xs:0,sm:1.5},justifyContent:"center",children:[O&&!A&&(0,s.jsx)(Z.Z,{variant:"h3",component:"div",children:p.companyOfficialName}),(0,s.jsxs)(g.Z,{mb:2,direction:u?"column":"row",alignItems:u?"flex-start":"center",children:[(0,s.jsx)(Z.Z,{variant:"h1",children:(null===(c=p.office)||void 0===c?void 0:c.name)||p.name}),(0,s.jsx)(v.Z,{sx:{backgroundColor:R?"#C6D1F5":"black",color:R?"black":"white",pb:.25,px:1,borderRadius:2,ml:u?0:2,mt:u?1:0},children:(0,s.jsx)(Z.Z,{variant:"body1",children:(0,s.jsx)(C.Z,{id:R?"search.result.subOffice":"search.result.mainOffice"})})})]}),!A&&(0,s.jsx)(eO,{contact:p}),(0,s.jsx)(S.Z,{sx:{mb:2,display:{xs:"block",md:"none"}}}),(0,s.jsxs)(b.ZP,{container:!0,spacing:2,children:[(0,s.jsx)(b.ZP,{item:!0,md:12,lg:2,children:(0,s.jsx)(ep,{label:"contact.lineOfBusiness",text:p.mainLineOfBusinessName})}),(0,s.jsx)(b.ZP,{item:!0,md:12,lg:2,children:(0,s.jsx)(ep,{label:"contact.businessId",text:ex(p.businessId),onClick:()=>I(),endContent:(0,s.jsx)(F.Z,{style:{fontSize:16,marginLeft:"6px",cursor:"pointer"},"aria-hidden":"true",onClick:()=>I(),children:"content_copy"})})}),p.email&&!A&&(0,s.jsx)(b.ZP,{item:!0,md:12,lg:3,children:(0,s.jsx)(ep,{label:"company.heading.email",link:"mailto:".concat(p.email),text:p.email,onClick:()=>(0,x.K)("fc_click_email",p)})}),!A&&(0,s.jsx)(b.ZP,{item:!0,md:12,lg:2,children:(0,s.jsx)(ep,{label:"company.heading.phone",link:D&&u?"tel:".concat(D.replaceAll(" ","")):void 0,onClick:D?()=>T(D):void 0,text:D||(0,s.jsx)(C.Z,{id:"company.heading.phone.unknown"}),endContent:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(F.Z,{style:{fontSize:16,marginLeft:"6px",marginRight:"6px",cursor:"pointer"},"aria-hidden":"true",onClick:D?()=>T(D):void 0,children:"content_copy"}),!D||p.tariffInfo?(0,s.jsx)(eu.Z,{buttonLabelText:h.formatMessage({id:"showInfo"})+" "+h.formatMessage({id:"contact.phone"}),iconPadding:"0px 0px",children:D?p.tariffInfo:(0,s.jsx)(C.Z,{id:"company.heading.phone.unknown.info",values:{link:(0,s.jsx)(_.Z,{sx:{fontSize:"0.6875rem",textDecoration:"underline",color:"primary.dark"},target:"_blank",href:u?"tel:020202":"https://www.020202.fi",children:"020202"})}})}):void 0]})})}),p.address&&!A&&(0,s.jsx)(b.ZP,{item:!0,md:12,lg:4,children:(0,s.jsx)(ep,{label:"company.heading.officeAddress",text:(0,em.T)(p.address).toString(),onClick:()=>{(0,x.K)("fc_navigate",p),L(f)},endContent:f?(0,s.jsx)(M.Z,{target:"_blank",color:"inherit",href:f,"aria-label":h.formatMessage({id:"share.openMap"}),children:(0,s.jsx)(F.Z,{sx:{my:-1},style:{fontSize:"1rem"},fontSize:"inherit",children:"location_on"})}):void 0,link:f})}),p.postalAddress&&!A&&(0,s.jsx)(b.ZP,{item:!0,md:12,lg:2,children:(0,s.jsx)(ep,{label:"company.heading.postalAddress",text:(0,em.T)(p.postalAddress).toString()})}),A&&p.cityName&&(0,s.jsx)(b.ZP,{item:!0,md:12,lg:2,children:(0,s.jsx)(ep,{label:"company.heading.city",text:p.cityName})}),p.companyUrl&&!A&&(0,s.jsx)(b.ZP,{item:!0,md:12,lg:3,children:(0,s.jsx)(ep,{label:"company.heading.companyUrl",text:p.companyUrl.match(/^(http:\/\/|https:\/\/)?([^/]+)/)[0],link:p.companyUrl,externalLink:!0,onClick:()=>{(0,x.K)("fc_click_website",p),P("click_to_website",{profile_type:p.contactType,customer_type:p.customerType},{dataLayer:!0})}})})]}
1),(B||R)&&!A&&p.businessStatusId!==x.ZK.Dormant&&!(null===(l=p.businessDescriptionContents)||void 0===l?void 0:l[0])&&(0,s.jsx)(v.Z,{mt:2,children:(0,s.jsx)(ez,{textId:"company.summary.update",url:"https://fonectaconnect.fi/nain-connect-toimii/finder?utm_source=finder&utm_medium=referral&utm_campaign=ConnectTuote&utm_content=yritysprofiili"})})]}),(0,s.jsx)(v.Z,{flex:0,border:1,borderColor:"border.5",mx:3,display:{xs:"none",md:"initial"}}),(0,s.jsxs)(g.Z,{alignItems:"center",spacing:3,justifyContent:"center",children:[p.logoUrl&&!u&&(0,s.jsx)(el(),{width:u?80:92,height:u?80:92,src:p.logoUrl,alt:"logo",style:{borderRadius:8,objectFit:"contain"}}),(0,s.jsxs)(g.Z,{pt:{xs:3,md:0},spacing:1,width:"100%",alignItems:"center",children:[(0,s.jsxs)(g.Z,{spacing:1,direction:"column",width:"100%",children:[(0,s.jsx)(ef.A,{contact:p,hasFinderPro:m,sx:u?eX:e0,variant:"outlined"}),!R&&(0,s.jsx)(eh.Z,{contact:p,hasFinderPro:m,variant:"outlined",sx:u?eX:e0}),(0,s.jsx)(eC,{variant:"outlined",sx:u?eX:e0})]}),(0,s.jsx)(eB,{sx:u?eX:e0,onClick:()=>k(!0)})]})]})]}),(0,s.jsx)(e$,{open:y,onClose:()=>k(!1),businessId:ex(p.businessId)})]})}var e2=i(4589),e3=i(37304),e4=i(10988),e5=i(1831),e8=i(92798),e7=i(89129),e9=i(20016),e6=i(22462);function ne(e){let{authenticated:n,amount:i,onClick:t,type:o}=e,{openLoginPopup:r}=(0,e6.m)(),{data:a}=(0,u.p)();return 0===i?null:(0,s.jsx)(K.Z,{sx:{fontSize:14,fontWeight:500,py:.75,pr:1.5,"> .MuiButton-startIcon":{marginLeft:0}},onClick:()=>{var e;(0,x.ec)("click_show_more_decision_makers",{decision_maker_type:o,subscription:(null==a?void 0:null===(e=a.subscription)||void 0===e?void 0:e.type)||x.Qe.Free}),n?null==t||t():r({context:"decisionPersonDetails"})},size:"xSmall",color:"inherit",variant:"outlined",startIcon:n?null:(0,s.jsx)(e9.Z,{width:25,height:24}),children:(0,s.jsx)(C.Z,{id:"company.tabs.decisionMakers.prhPersons."+(n?"more":"login"),values:{amount:i}})})}var nn=i(39347);let ni=e=>{let{person:n,isLocked:i,isPhoneObfuscated:t}=e,o=new Date(n.personRegDate||""),r=n.personRegDate?"(".concat(o.getMonth()+1,"/").concat(o.getFullYear(),")"):"";return(0,s.jsxs)(g.Z,{direction:"row",spacing:2,children:[(0,s.jsx)(v.Z,{sx:{borderRadius:.5},height:"24px",width:"24px",children:(0,s.jsx)(F.Z,{sx:{verticalAlign:"text-top",pt:"1px"},children:(0,s.jsx)(e4.Z,{sx:{fontSize:3}})})}),(0,s.jsxs)(g.Z,{children:[(0,s.jsxs)(e=>{let{children:t}=e;return i?(0,s.jsx)(v.Z,{display:"flex",children:t}):(0,s.jsx)(_.Z,{component:q(),href:i?"":(0,e7.ZP)({contact:n,decisionPerson:!0}),color:"inherit",underline:"hover",display:"flex",sx:{display:"flex",alignItems:"center"},onClick:()=>{(0,x.ec)("select_profile",{profile_id:null==n?void 0:n.decisionPersonId,profile_name:"person",profile_type:"DECISION_PERSON",page_type:(0,x.C2)(),locked_result:i,item_name:"Finder Pro Yhteys"})},children:t})},{children:[(0,s.jsx)(Z.Z,{fontWeight:500,mr:1,fontSize:"16px !important",children:(0,s.jsx)(nn.Z,{locked:!!i,value:"".concat([n.firstName,n.lastName].join(" ")||""),fakeValue:"Joku Teik\xe4l\xe4inen"})}),!i&&(0,s.jsx)(F.Z,{style:{fontSize:20},children:"arrow_forward"})]}),(0,s.jsxs)(Z.Z,{variant:"body2",component:"h4",color:"text.secondary",fontSize:"14px !important",children:[(0,e5.k)(n.positionText)," ",r]}),n.otherRolesCount>0&&(0,s.jsx)(Z.Z,{variant:"body2",component:"h4",color:"text.secondary",fontSize:"14px !important",children:(0,s.jsx)(C.Z,{id:"company.tabs.decisionMakers.count",values:{amount:n.otherRolesCount}})}),n.phone&&!n.hasOtherPhones&&(0,s.jsx)(Z.Z,{variant:"body2",color:"primary.main",fontSize:"14px !important",children:(0,s.jsx)(nn.Z,{locked:!!t,value:(0,s.jsx)(_.Z,{color:"primary",href:"tel:".concat(n.phone.replaceAll(" ","")),underline:"hover",fontSize:"14px !important",children:(0,s.jsx)(Z.Z,{variant:"body2",color:"primary",fontSize:"14px !important",children:n.phone})}),blurFrom:7,fakeValue:n.phone})}),n.hasOtherPhones&&!n.phone&&(0,s.jsx)(Z.Z,{variant:"body2",color:"text.secondary",fontSize:"14px !important",children:(0,s.jsx)(C.Z,{id:"company.tabs.decisionMakers.hasOtherPhones"})})]})]})};function nt(e){let{positions:n,translation:i,type:t,notShown:o,isMobile:r,isLocked:a,isPhoneObfuscated:c,contact:l}=e,[p,m]=(0,d.useState)(!1),x=(0,N.Z)(),{data:h}=(0,u.p)();if(!(null==n?void 0:n.length))return null;let f=n.slice(0,4),j=n.slice(4),y=(null==j?void 0:j.length)>6,k=!y&&(null==j?void 0:j.length)>0;return(0,s.jsxs)(g.Z,{children:[(0,s.jsx)(g.Z,{direction:"row",alignItems:"space-between",justifyContent:"space-between",mb:2,children:(0,s.jsx)(Z.Z,{variant:"h5",component:"h3",fontSize:r?"19px !important":"21px",fontWeight:500,children:(0,s.jsx)(C.Z,{id:i})})}),(0,s.jsxs)(b.ZP,{container:!0,columnSpacing:2,rowSpacing:2,children:[f.map((e,n)=>(0,s.jsx)(b.ZP,{item:!0,xs:12,md:3,children:(0,s.jsx)(ni,{person:e,isLocked:a,isPhoneObfuscated:c})},n)),!a&&!!(((null==j?void 0:j.length)||o)&&!p)&&(0,s.jsx)(b.ZP,{item:!0,xs:12,md:12,children:(0,s.jsx)(ne,{authenticated:!!(h||l.finderI
1pUser),amount:j.length||o||0,onClick:()=>m(!0),type:t})}),k&&j.map((e,n)=>(0,s.jsx)(b.ZP,{item:!0,xs:12,md:3,display:p?void 0:"none",children:(0,s.jsx)(ni,{person:e,isLocked:a,isPhoneObfuscated:c})},n))]}),y&&(0,s.jsx)(e3.Z,{disablePortal:!0,"aria-labelledby":"modal-title",onClose:()=>m(!1),open:p,children:(0,s.jsxs)(g.Z,{position:"absolute",maxHeight:"90%",width:500,maxWidth:"90%",bgcolor:"background.default",py:2,px:4,top:"50%",left:"50%",sx:{transform:"translate(-50%, -50%)"},boxShadow:24,children:[(0,s.jsxs)(g.Z,{direction:"row",alignItems:"flex-start",children:[(0,s.jsx)(Z.Z,{variant:"h3",color:"primary.dark",id:"modal-title",mb:3,flex:1,children:(0,s.jsx)(C.Z,{id:i})}),(0,s.jsx)(M.Z,{onClick:()=>m(!1),"aria-label":x.formatMessage({id:"close"}),children:(0,s.jsx)(F.Z,{children:"close"})})]}),(0,s.jsx)(v.Z,{sx:{...e8.Q},flex:1,children:(0,s.jsx)(g.Z,{spacing:2,children:n.map((e,n)=>(0,s.jsx)(ni,{person:e,isLocked:a,isPhoneObfuscated:c},n))})})]})})]})}var no=i(18238);let nr=["TJ","TJS","VTJ"],na=["PJ","VPJ"],ns=[...na,"J","VJ"],nc=["OI","PR"],nl=[...nr,"ELI",...ns,...nc,"YHM","YHM\xc4"],nd=["T","PTI","VT"],np=[...nl,...no.DN,...nd,...no.QO],nm=[...nr,...na];var nx=i(85012);function nh(e){let{variant:n,children:i,ctaTextId:t,requiredProduct:o,analyticsParams:r,uniformLockedColor:a,reverseMobile:c,bgColor:l}=e,d=(0,z.e)();return(0,s.jsxs)(g.Z,{border:1,borderColor:"divider10",borderRadius:2,direction:{xs:c?"column-reverse":"column",md:"column"},children:[(0,s.jsx)(v.Z,{bgcolor:null!=l?l:"locked"===n?a?"secondary.dark":"company.light":"paper.light",children:i}),"open"!==n&&(0,s.jsxs)(g.Z,{sx:{backgroundColor:"secondary.dark",minHeight:"61px",justifyContent:"space-between",alignItems:"center",px:{xs:2,md:4},pt:{xs:2.75,md:0},pb:{xs:4,md:0}},direction:{xs:"column",md:"row"},children:[(0,s.jsxs)(g.Z,{direction:"row",alignItems:"center",mb:{xs:2,md:0},mt:"-2px",gap:1.5,children:[(0,s.jsx)(I.Z,{sx:{color:"primary.main",fontSize:20}}),(0,s.jsx)(Z.Z,{color:"primary",variant:"body1",fontSize:16,fontWeight:500,children:(0,s.jsx)(C.Z,{id:t})})]}),(0,s.jsx)(K.Z,{variant:"contained",component:q(),href:"/finderpro",onClick:()=>{(0,nx.highlightProduct)(o),d("click_locked_content",r,{dataLayer:!0})},sx:{height:"39px",lineHeight:"39px",minWidth:{xs:"100%",md:"180px"}},children:(0,s.jsx)(C.Z,{id:"contact.locked.ctaButton"})})]})]})}let nu="BMASTER",nf=(e,n)=>n?nl.includes(null==e?void 0:e.positionId):nm.includes(e.positionId);function nj(e){let{decisionPersons:n,hasFinderPro:i,hasFinderConnect:t,signingText:o,onToggleSources:r,contact:a}=e,c=(0,E.Z)(),{data:l}=(0,u.p)(),d=(0,N.Z)(),p=n.filter(e=>nf(e,!0)).length,m=n.filter(e=>e.source!==nu&&!nd.includes(e.positionId)),h=m.find(e=>!!e.phone),f=m.filter(e=>nf(e,!!l)).sort((e,n)=>nl.indexOf(e.positionId)<nl.indexOf(n.positionId)?-1:1);h&&!l&&f.push(h);let j=n.filter(e=>e.source===nu&&!nd.includes(e.positionId)).sort((e,n)=>np.indexOf(e.positionId)<np.indexOf(n.positionId)?-1:1),y=n.filter(e=>nd.includes(e.positionId)).sort((e,n)=>nd.indexOf(e.positionId)<nd.indexOf(n.positionId)?-1:1);return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(b.ZP,{container:!0,mt:{xs:0,md:6},mb:{xs:5,md:4},role:"tabpanel",id:"tabContent-decisionMakers",children:[(0,s.jsx)(b.ZP,{item:!0,xs:12,mb:{xs:3,md:2},children:(0,s.jsxs)(g.Z,{direction:"row",justifyContent:"space-between",children:[(0,s.jsxs)(Z.Z,{variant:"h3",pl:{xs:0,md:"22px"},component:"h2",children:[(0,s.jsx)(C.Z,{id:"company.tabs.decisionMakers"})," ",a.contactType===x.uC.Office?a.companyOfficialName:""]}),(0,s.jsx)(H.Z,{onClick:r,sx:{mr:{xs:0,md:3},alignSelf:"end"}})]})}),(0,s.jsxs)(b.ZP,{item:!0,xs:12,md:12,children:[(0,s.jsx)(g.Z,{mb:3,children:(0,s.jsx)(nh,{variant:t||!h?"open":"locked",bgColor:"background.paperLight",ctaTextId:"company.tabs.decisionMakers.main.cta",requiredProduct:"yhteys",analyticsParams:{click_text:d.formatMessage({id:"contact.locked.ctaButton"}),click_url:"/finderpro",feature_name:"connect",item_name:"finder-connect",item_variant:"connect",page_type:"profile",profile_type:a.contactType},uniformLockedColor:!1,children:(0,s.jsxs)(g.Z,{spacing:3,py:3,px:4,children:[f.length?(0,s.jsx)(nt,{positions:f,translation:"company.tabs.decisionMakers.prhPersons",type:"prh",notShown:l?void 0:p-f.length+y.length,isMobile:c,contact:a,isLocked:!1,isPhoneObfuscated:!t}):p>0?(0,s.jsx)(v.Z,{children:(0,s.jsx)(ne,{authenticated:!!(l||a.finderIpUser),amount:p,type:"prh"})}):(0,s.jsx)(Z.Z,{variant:"body2",children:(0,s.jsx)(C.Z,{id:"company.tabs.decisionMakers.noData"})}),o&&(0,s.jsxs)(g.Z,{direction:"row",alignItems:"center",borderTop:1,borderColor:"border.10",pt:3,spacing:1.5,children:[(0,s.jsx)(F.Z,{children:"edit"}),(0,s.jsxs)(g.Z,{children:[(0,s.jsx)(Z.Z,{variant:"body3",color:"text.secondary",children:(0,s.jsx)(C.Z,{id:"company.tabs.decisionMakers.authority"})}),(0,s.jsx)(Z.Z,{variant:"body2",children:o})]})]})]})})}),!!(j.length||y.length&&l)&&(0,s.jsx)(g.Z,{children:(0,s.jsx)(n
1h,{variant:t?"open":"locked",ctaTextId:"company.tabs.decisionMakers.cta",requiredProduct:"yhteys",analyticsParams:{click_text:d.formatMessage({id:"contact.locked.ctaButton"}),click_url:"/finderpro",feature_name:"connect",item_name:"finder-connect",item_variant:"connect",page_type:"profile",profile_type:a.contactType},bgColor:i?"background.paperLight":"company.light",children:(0,s.jsxs)(g.Z,{spacing:3,py:3,px:4,children:[(0,s.jsx)(nt,{positions:j,translation:"company.tabs.decisionMakers.otherPersons",type:"other",isMobile:c,contact:a,isLocked:!i,isPhoneObfuscated:!t}),l&&(0,s.jsxs)(s.Fragment,{children:[!!((null==y?void 0:y.length)&&j.length)&&(0,s.jsx)(S.Z,{sx:{pt:0}}),(0,s.jsx)(nt,{positions:y,translation:"company.tabs.decisionMakers.auditor",type:"auditors",isMobile:c,contact:a,isLocked:!1,isPhoneObfuscated:!t})]})]})})})]})]})})}let ny={textDecoration:"underline",color:"primary.dark",fontSize:["15px","16px"]},nZ=["TJ/TJ","TJS/TJS"],nv=e=>{for(let n of nZ){let i=nb(e,n);if(null!=i)return i}},nb=(e,n)=>{if(!e.finderDecisionPersons)return null;for(let i of e.finderDecisionPersons)if(i.decisionPersons){for(let t of i.decisionPersons.filter(n=>"A"===n.statusId&&n.officeId===e.office.id))if(t.positionId===n)return i.name}},ng=e=>{let n=[...e];n.sort((e,n)=>{let i=parseInt(e.fiscalYear),t=parseInt(n.fiscalYear);return i>t?-1:i<t?1:0});let i=new Date().getFullYear();return n.filter(e=>i-parseInt(e.fiscalYear)<=5).slice(0,4)},nk=e=>void 0===e||""===e.trim(),nC=e=>{if(void 0!==e&&e.trim().length>0)try{return Number(e)}catch(e){return}},n_=function(e){let n,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=Number(e);return n=Number.isInteger(o)?o.toString():o.toFixed(t).replace(".",","),i&&(n=n.replace("-","")),n},nw=e=>e&&e.contactType===x.uC.Company&&"Kunta"!==e.companyForm&&"Kirkko"!==e.companyForm;function nS(e){let{items:n}=e,[i,t]=(0,d.useState)(!0);if(!(null==n?void 0:n.length))return null;let o=n.slice(0,3),r=n.slice(3);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(g.Z,{children:o.map((e,n)=>(0,s.jsx)(Z.Z,{variant:"body2",children:e},n))}),(0,s.jsx)(g.Z,{sx:{display:r.length&&!i?void 0:"none"},children:r.map((e,n)=>(0,s.jsx)(Z.Z,{variant:"body2",children:e},n))}),n.length>3&&(0,s.jsx)(_.Z,{color:"inherit",underline:"hover",display:"flex",onClick:e=>{e.preventDefault(),t(!i)},sx:{cursor:"pointer"},children:(0,s.jsx)(Z.Z,{variant:"body3",color:"primary.main",children:(0,s.jsx)(C.Z,{id:i?"company.tabs.office
1s.list.showAll":"company.tabs.offices.list.showLess",values:{amount:n.length}})})})]})}let nP=e=>{let{label:n,largeLabel:i,content:t,fullWidth:o}=e;return t?(0,s.jsxs)(g.Z,{children:[(0,s.jsx)(Z.Z,{variant:i?"body1":"body3",color:i?"text.primary":"text.secondary",children:(0,s.jsx)(C.Z,{id:n})}),"string"==typeof t?(0,s.jsx)(Z.Z,{variant:"body2",children:t}):t]}):null};function nI(e){var n,i;let{contact:t}=e,o=(0,N.Z)(),r=(0,E.Z)(),a=(0,z.e)();return t?(0,s.jsxs)(b.ZP,{container:!0,mb:3,sx:{border:1,borderColor:"divider10",p:4,backgroundColor:"background.paperLight"},children:[(0,s.jsx)(b.ZP,{item:!0,xs:12,md:8,children:(0,s.jsxs)(b.ZP,{container:!0,rowSpacing:2,children:[(0,s.jsx)(b.ZP,{item:!0,xs:12,children:(0,s.jsx)(nP,{content:((null===(n=t.company)||void 0===n?void 0:n.officialName)||t.name)&&(0,s.jsx)(Z.Z,{variant:"h4",component:"h3",fontSize:"21px !important",children:(null===(i=t.company)||void 0===i?void 0:i.officialName)||t.name}),label:"company.tabs.offices.officialName",largeLabel:!0,fullWidth:!0})}),t.established&&(0,s.jsx)(b.ZP,{item:!0,xs:6,md:4,children:(0,s.jsx)(nP,{content:(0,s.jsx)(Z.Z,{variant:"body2",children:(0,s.jsx)(k.Ji,{value:t.established})}
1),label:"company.tabs.offices.established"})}),(0,s.jsx)(b.ZP,{item:!0,xs:6,md:4,children:(0,s.jsx)(nP,{content:t.companyForm,label:"company.tabs.offices.companyForm"})}),(0,s.jsx)(b.ZP,{item:!0,xs:6,md:4,children:(0,s.jsx)(nP,{content:(t.homeCity||t.provinceNameAlias)&&(0,s.jsxs)(g.Z,{children:[(0,s.jsx)(Z.Z,{variant:"body2",children:t.homeCity||t.cityName}),(0,s.jsxs)(_.Z,{color:"inherit",underline:"hover",href:"https://fonecta.fi/kartat/".concat(t.homeCity||t.provinceNameAlias),display:"flex",sx:{cursor:"pointer",alignItems:"center"},onClick:()=>{(0,x.ec)("click_show_on_map"),a("clicked_caller_web_cta",{click_text:o.formatMessage({id:"company.tabs.offices.seeOnMap"}),cta_description:t.homeCity||t.cityName,click_url:"https://fonecta.fi/kartat/".concat(t.homeCity||t.provinceNameAlias),page_type:(0,x.C2)()})},children:[(0,s.jsx)(Z.Z,{mr:1,variant:"body3",children:(0,s.jsx)(C.Z,{id:"company.tabs.offices.seeOnMap"})}),(0,s.jsx)(F.Z,{style:{fontSize:18},children:"arrow_forward"})]})]}),label:"company.tabs.offices.homeCity"})}),(0,s.jsx)(b.ZP,{item:!0,xs:12,md:4,children:(0,s.jsx)(nP,{content:t.prhAliases&&(0,s.jsx)(nS,{items:t.prhAliases}
1),label:"company.tabs.offices.prhAliases"})}),(0,s.jsx)(b.ZP,{item:!0,xs:12,md:4,children:(0,s.jsx)(nP,{content:t.brands&&(0,s.jsx)(nS,{items:t.brands}),label:"company.tabs.offices.brands"})})]})}),(0,s.jsx)(b.ZP,{item:!0,xs:12,md:4,mt:{xs:1,md:0},children:(0,s.jsxs)(g.Z,{spacing:2,sx:r?{}:{borderLeft:1,borderColor:"border.10",height:"100%",pl:4},children:[(0,s.jsx)(nP,{content:t.mainLineOfBusinessName&&(0,s.jsx)(Z.Z,{variant:"h4",component:"h3",fontSize:"21px !important",children:t.mainLineOfBusinessName}),label:"company.tabs.offices.mainLineOfBusinessName",largeLabel:!0}),(0,s.jsx)(nP,{content:t.lineofBusinessNames&&(0,s.jsx)(nS,{items:t.lineofBusinessNames}),label:"company.tabs.offices.lineofBusinessNames"}),(0,s.jsx)(nP,{content:(t.tolMainLineofBusinessName||t.tolMainLineofBusinessCode)&&"".concat(t.tolMainLineofBusinessName," (").concat(t.tolMainLineofBusinessCode,")"),label:"company.tabs.offices.tolLineOfBusiness"})]})})]}):null}var nT=i(62301),nL=i(53269),nM=i(59568),nF=i(5420),nN=i(53635);function nO(){let e="text.primary";return(0,s.jsxs)(v.Z,{sx:{"& > .expand":{display:"none"},"& > .collapse":{display:"block"},".Mui-expanded > & > .expand":{display:"block"},".Mui-expanded > & > .collapse":{display:"none"}},children:[(0,s.jsx)(F.Z,{className:"expand",sx:{fill:e},children:(0,s.jsx)(nN.Z,{})}),(0,s.jsx)(F.Z,{className:"collapse",sx:{fill:e},children:(0,s.jsx)(nF.Z,{})})]})}function nD(e){var n;let{data:i}=e,t=(0,E.Z)();return(0,s.jsxs)(nT.Z,{disableGutters:!0,sx:{"&:before":{backgroundColor:"transparent"},"&:after":{backgroundColor:"transparent"}},children:[(0,s.jsx)(nL.Z,{id:"company-registrations-title","aria-controls":"company-registrations-content",expandIcon:(0,s.jsx)(nO,{}),sx:{minHeight:{md:"70px",xs:"65px"}},children:(0,s.jsx)(Z.Z,{variant:"body1",component:"h3",fontSize:t?"19px":"21px",fontWeight:500,children:(0,s.jsx)(C.Z,{id:"company.tabs.registrations"})})}),(0,s.jsxs)(nM.Z,{sx:{border:1,borderColor:"divider10",p:4,backgroundColor:"background.paperLight"},children:[(null==i?void 0:i.miscRegistrationDates)&&Object.entries(i.miscRegistrationDates).map((e,n)=>(0,s.jsxs)(g.Z,{direction:"column",children:[(0,s.jsxs)(Z.Z,{variant:"body3",color:"text.secondary",children:[(0,s.jsx)(C.Z,{id:"company.tabs.registrations.".concat(e[0])}),": \xa0"]}),(0,s.jsx)(Z.Z,{variant:"body1",children:(0,s.jsx)(k.Ji,{value:e[1]})})]},"".concat(n,"-dates"))),!!(null==i?void 0:null===(n=i.vatRegistrationDates)||void 0===n?void 0:n.length)&&(0,s.jsx)(s.Fragment,{children:i.vatRegistrationDates.map((e,n)=>(0,s.jsxs)(g.Z,{direction:"column",spacing:.5,children:[(0,s.jsxs)(Z.Z,{variant:"body3",color:"text.secondary",children:[e.description,":"]}),(0,s.jsx)(Z.Z,{variant:"body1",children:(0,s.jsx)(k.Ji,{value:e.date})})]},n))})]})]})}var nR=i(22211);let nz={NOMINATIVE:"nominative",GENITIVE:"genitive",ADESSIVE:"adessive"},nB=["osakeyhti\xf6","julkinen osakeyhti\xf6","asunto-osakeyhti\xf6","kiinteist\xf6osakeyhti\xf6","yksityinen osakeyhti\xf6","vakuutusosakeyhti\xf6","julkinen vakuutusosakeyhti\xf6","eurooppavakuutusosakeyhti\xf6"],nE=["julkinen keskin\xe4inen vak.yhti\xf6","avoin yhti\xf6","keskin\xe4inen vakuutusyhti\xf6","eurooppayhti\xf6","keskin\xe4inen eurooppavakuutusyh","keskin\xe4inen eurooppavakuutusyhti\xf6"],nA=["aatteellinen yhdistys","taloudellinen yhdistys","mets\xe4nhoitoyhdistys","vakuutusyhdistys","hypoteekkiyhdistys"],nW=["el\xe4kes\xe4\xe4ti\xf6"],nU=["sijoitusrahasto"],nY=["kuntayhtym\xe4","pakollinen yhtym\xe4","seurakuntayhtym\xe4","sotatoimiyhtym\xe4","verotusyhtym\xe4","euroop. taloudell. etuyhtym\xe4","euroop. taloudell. etuyht.stmp"],nH=["s\xe4\xe4st\xf6pankki"],nK=e=>[...nB,...nE].includes(e),nG={osakeyhtiö:{nominative:"Yhti\xf6",genitive:"Yhti\xf6n",elative:"Yhti\xf6st\xe4",adessive:"Yhti\xf6ll\xe4"},kommandiittiyhtiö:{nominative:"Yhti\xf6",genitive:"Yhti\xf6n",elative:"Yhti\xf6st\xe4",adessive:"Yhti\xf6ll\xe4"},"avoin yhti\xf6":{nominative:"Yhti\xf6",genitive:"Yhti\xf6n",elative:"Yhti\xf6st\xe4",adessive:"Yhti\xf6ll\xe4"},yhtiö:{nominative:"Yhti\xf6",genitive:"Yhti\xf6n",elative:"Yhti\xf6st\xe4",adessive:"Yhti\xf6ll\xe4"}
1,"yksityinen elinkeinonharjoitta":{nominative:"Elinkeinonharjoittaja",genitive:"Elinkeinonharjoittajan",elative:"Elinkeinonharjoittajasta",adessive:"Elinkeinonharjoittajalla"},"yksityinen elinkeinonharjoittaja":{nominative:"Elinkeinonharjoittaja",genitive:"Elinkeinonharjoittajan",elative:"Elinkeinonharjoittajasta",adessive:"Elinkeinonharjoittajalla"},elinkeinonharjoittaja:{nominative:"Elinkeinonharjoittaja",genitive:"Elinkeinonharjoittajan",elative:"Elinkeinonharjoittajasta",adessive:"Elinkeinonharjoittajalla"},yhdistys:{nominative:"Yhdistys",genitive:"Yhdistyksen",elative:"Yhdistyksest\xe4",adessive:"Yhdistyksell\xe4"},"aatteellinen yhdistys":{nominative:"Yhdistys",genitive:"Yhdistyksen",elative:"Yhdistyksest\xe4",adessive:"Yhdistyksell\xe4"},säätiö:{nominative:"S\xe4\xe4ti\xf6",genitive:"S\xe4\xe4ti\xf6n",elative:"S\xe4\xe4ti\xf6st\xe4",adessive:"S\xe4\xe4ti\xf6ll\xe4"},osuuskunta:{nominative:"Osuuskunta",genitive:"Osuuskunnan",elative:"Osuuskunnasta",adessive:"Osuuskunnalla"},osuuspankki:{nominative:"Osuuspankki",genitive:"Osuuspankin",elative:"Osuuspankista",adessive:"Osuuspankilla"},pankki:{nominative:"Pankki",genitive:"Pankilla",elative:"Pankista",adessive:"Pankilla"},rahasto:{nominative:"Rahasto",genitive:"Rahaston",elative:"Rahastosta",adessive:"Rahastolla"},yhtymä:{nominative:"Yhtym\xe4",genitive:"Yhtym\xe4n",elative:"Yhtym\xe4st\xe4",adessive:"Yhtym\xe4ll\xe4"},liike:{nominative:"Liike",genitive:"Liikkeen",elative:"Liikkeest\xe4",adessive:"Liikkeell\xe4"},laitos:{nominative:"Laitos",genitive:"Laitoksen",elative:"Laitoksesta",adessive:"Laitoksella"},kirkko:{nominative:"Kirkko",genitive:"Kirkon",elative:"Kirkosta",adessive:"Kirkolla"},yhdyskunta:{nominative:"Yhdyskunta",genitive:"Yhdyskunnan",elative:"Yhdyskunnasta",adessive:"Yhdyskunnalla"},kunta:{nominative:"Kunta",genitive:"Kunnan",elative:"Kunnasta",adessive:"Kunnalla"},oikeushenkilö:{nominative:"Oikeushenkil\xf6",genitive:"Oikeushenkil\xf6n",elative:"Oikeushenkil\xf6st\xe4",adessive:"Oikeushenkil\xf6ll\xe4"}},nq=(e,n)=>nG[e][n],nV=(e,n)=>{var i=void 0!==e?e.toLowerCase().trim():void 0;return void 0!==i?Object.keys(nG).includes(i)||(i=nK(i)?"yhti\xf6":nA.includes(i)?"yhdistys":nW.includes(i)?"s\xe4\xe4ti\xf6":"asunto-osuuskunta"===i?"osuuskunta":nU.includes(i)?"rahasto":"ulkom.elinke
1inonharj.sivuliike"===i?"liike":nY.includes(i)?"yhtym\xe4":nH.includes(i)?"pankki":"muu yhti\xf6"===i?"yhti\xf6":"valtion liikelaitos"===i?"laitos":"muu uskonnollinen yhdyskunta"===i?"yhdyskunta":"valtion virastot ja laitokset"===i?"laitos":"muu julkisoikeudell. oikeushl\xf6"===i||"muu julkisoikeudellinen oikeushenkil\xf6"===i?"oikeushenkil\xf6":"yhti\xf6"):i="yhti\xf6",nq(i,n)},nJ=e=>{var n;let{contact:i,companyForm:t,intl:o,getCompanyForm:r}=e,a=nv(i);return(0,s.jsxs)(Z.Z,{component:"span",variant:"body2",children:[i.established?(0,s.jsx)(C.Z,{id:"companyInfo.basics_founded",values:{name:i.name,year:null===(n=i.established)||void 0===n?void 0:n.slice(0,4),companyForm:(null==t?void 0:t.toLowerCase())||o.formatMessage({id:"companyInfo.defaultCompanyForm"})}}):(0,s.jsx)(C.Z,{id:"companyInfo.basics_companyForm",values:{name:i.name,companyForm:(null==t?void 0:t.toLowerCase())||o.formatMessage({id:"companyInfo.defaultCompanyForm"})}}),i.homeCity&&(0,s.jsx)(C.Z,{id:"companyInfo.basics_homeCity",values:{link:(0,s.jsx)(_.Z,{sx:ny,href:"/kunta/".concat(i.homeCity),children:i.homeCity})}}),i.homeCity&&i.mainLineOfBusinessName&&(0,s.jsx)(C.Z,{id:"companyInfo.basics_business",values:{link:(0,s.jsx)(_.Z,{sx:ny,href:"/search?what=".concat(encodeURIComponent(i.mainLineOfBusinessName)),children:i.mainLineOfBusinessName})}}),".",!i.homeCity&&i.mainLineOfBusinessName&&(0,s.jsx)(C.Z,{id:"companyInfo.basics_business_simple",values:{link:(0,s.jsx)(_.Z,{sx:ny,href:"/search?what=".concat(encodeURIComponent(i.mainLineOfBusinessName)),children:i.mainLineOfBusinessName})}}),a&&(0,s.jsx)(C.Z,{id:"companyInfo.basics_ceo",values:{companyForm:r(t,nz.GENITIVE),ceo:a}})]})},nQ=e=>{let{companyForm:n,financials:i,previousFinancials:t,getCompanyForm:o}=e,r=i?nC(i.numberOfEmployees):void 0,a=t?nC(t.numberOfEmployees):void 0,c=void 0!==r&&void 0!==a&&0!==a?Math.abs((r-a)/a*100):void 0;return(0,s.jsx)(s.Fragment,{children:!!r&&(0,s.jsxs)(Z.Z,{variant:"body2",component:"span",ml:1,children:[(0,s.jsx)(C.Z,{id:"companyInfo.employees",values:{fiscalPeriodEnd:(()=>{if(void 0!==i&&void 0!==i.fiscalYearWithMonth){let e=i.fiscalYearWithMonth.substring(0,4),n=i.fiscalYearWithMonth.substring(4,6);return"".concat(n,"/").concat(e)}if(void 0!==i&&void 0!==i.fiscalYear)return i.fiscalYear})(),companyForm:o(n,nz.ADESSIVE).toLowerCase(),employees:i.numberOfEmployees,multipleEmployees:1!==parseInt(i.numberOfEmployees)}}),void 0!==c&&0!==c&&(0,s.jsx)(C.Z,{id:"companyInfo.employeesChange",values:{isUp:Number(t.numberOfEmployees)<Number(i.numberOfEmployees),percentage:n_(String(c))}}),t&&t.numberOfEmployees===i.numberOfEmployees&&(0,s.jsx)(C.Z,{id:"companyInfo.noEmployeeChange"})]})})},n$=e=>{let{contact:n,companyForm:i,intl:t,authenticated:o,getCompanyForm:r,freshFinancials:a}=e,c=a[0],l=c?nC(c.turnover):void 0,d=c?nC(c.operatingProfit):void 0,p=e=>{if(!(Math.abs(e)/100>=10))return t.formatMessage({id:"companyInfo.thousands"},{number:e});{let n=e/1e3;return t.formatMessage({id:"companyInfo.millions"},{number:(Math.round(100*n)/100).toString().replace(".",",")})}};return(0,s.jsxs)(s.Fragment,{children:[void 0!==c&&!nk(c.turnover)&&!nk(c.operatingProfit)&&(0,s.jsxs)(Z.Z,{variant:"body2",component:"span",ml:1,children:[0!==Number(l)&&(0,s.jsx)(C.Z,{id:"companyInfo.turnover",values:{companyForm:r(i,nz.GENITIVE),name:n.name,turnover:p(l),result:0!==Number(d)?p(d):"0"}}),!nk(c.turnoverPercentageChange)&&0!==Number(c.turnoverPercentageChange)&&(0,s.jsx)(C.Z,{id:"companyInfo.turnoverChange",values:{isUp:!c.turnoverPercentageChange.includes("-"),number:n_(c.turnoverPercentageChange,!0)}}),!nk(c.turnoverPercentageChange)&&0!==Number(c.turnoverPercentageChange)&&(0,s.jsx)(C.Z,{id:"companyInfo.turnoverPercentageChange",values:{margin:n_(c.operatingMargin),solvencyText:!nk(c.solvency)&&o?"".concat(t.formatMessage({id:"companyInfo.solvency"},{solvency:Number(c.solvency.replace(".","")).toString()})):""}}),0!==l&&(0,s.jsx)(C.Z,{id:"companyInfo.fiscalYear",values:{number:c.fiscalYear}})]}),!a.length&&(0,s.jsx)(Z.Z,{variant:"body2",component:"span",ml:1,children:(0,s.jsx)(C.Z,{id:"companyInfo.noData"})}
1),c&&(0,s.jsx)(nQ,{companyForm:i,contact:n,financials:c,previousFinancials:a[1],getCompanyForm:r})]})},nX=e=>{let{contact:n,companyForm:i,getCompanyForm:t}=e,o=n.lineofBusinessNames?n.lineofBusinessNames.filter(e=>e!==n.mainLineOfBusinessName):[],r=(e,n)=>(0,s.jsx)(_.Z,{sx:ny,href:"/search?what=".concat(encodeURIComponent(e),"+").concat(encodeURIComponent(n)),children:e.toLowerCase()});return(0,s.jsx)(s.Fragment,{children:o.length>0&&(0,s.jsxs)(Z.Z,{variant:"body2",component:"span",ml:1,children:[o.length>1&&(0,s.jsx)(C.Z,{id:"companyInfo.otherBusiness",values:{companyForm:t(i,nz.GENITIVE),businessList:o.map((e,i)=>(0,s.jsxs)("span",{children:[r(e,n.homeCity),i<o.length-1&&", ",i===o.length-1&&"."]},"loblist-".concat(i)))}}),1===o.length&&(0,s.jsx)(C.Z,{id:"companyInfo.secondaryBusiness",values:{companyForm:t(i,nz.GENITIVE),business:r(o[0],n.homeCity)}})]})})};var n0=i(98154);function n1(e){let{contact:n}=e,i=(0,N.Z)(),{data:t}=(0,u.p)(),o=n.companyFormFull||n.companyForm,r=ng(n.financials);return(0,s.jsxs)(g.Z,{spacing:2,children:[(0,s.jsxs)(v.Z,{mb:8,maxWidth:"744px",children:[(0,s.jsx)(nJ,{contact:n,companyForm:o,intl:i,getCompanyForm:nV}),(0,s.jsx)(nX,{contact:n,companyForm:o,intl:i,getCompanyForm:nV}),n.company.name!==n.company.officialName&&(0,s.jsx)(Z.Z,{variant:"body2",component:"span",ml:1,children:(0,s.jsx)(C.Z,{id:"companyInfo.officialName",values:{companyForm:nV(o,nz.NOMINATIVE).toLowerCase(),name:n.company.officialName}})}),(0,s.jsx)(n$,{contact:n,companyForm:o,intl:i,authenticated:!!t,getCompanyForm:nV,freshFinancials:r})]}),n.businessStatusId===nR.ZK.OutOfBusiness&&(0,s.jsx)(v.Z,{children:(0,s.jsx)(C.Z,{id:n.endCode===n0.R.Bankruptcy?"companyInfo.bankruptcy":"companyInfo.ended",values:{name:n.name,date:n.endDate?new Date(n.endDate).toLocaleDateString("fi-FI"):void 0}})})]})}var n2=i(15810),n3=i(76854),n4=i.n(n3);function n5(e){let{contact:n}=e,i=(0,E.Z)(),t=(0,N.Z)(),o=(0,z.e)();return n?(0,s.jsxs)(g.Z,{flex:1,mb:3,pt:2,pb:4,px:4,bgcolor:"background.paperLight",border:1,borderColor:"divider10",borderRadius:2,children:[(0,s.jsx)(Z.Z,{variant:"body1",component:"h3",mb:{xs:1,md:2},mt:{xs:3,md:1},fontSize:i?"19px":"21px",fontWeight:500,children:(0,s.jsx)(C.Z,{id:"company.tabs.office
1s.info"})}),(0,s.jsx)(v.Z,{borderRadius:2,mt:1,children:(0,s.jsxs)(g.Z,{direction:i?"column":"row",alignItems:"space-between",spacing:2,justifyContent:"space-between",children:[(0,s.jsx)(n1,{contact:n}),(0,s.jsx)(g.Z,{display:"flex",direction:"column",spacing:2,alignItems:i?"flex-start":"flex-end",justifyContent:"space-between",children:(n.businessStatusId===x.ZK.Active||n.businessStatusId===x.ZK.Fresh)&&(0,s.jsx)(_.Z,{underline:"hover",sx:{color:"text.primary",p:0},height:"fit-content",width:"fit-content",minWidth:"180px",href:"".concat("https://fonecta.fi","/profiili/").concat(n4()(n.name,{lower:!0}),"/").concat(n.id),onClick:()=>o("clicked_caller_web_cta",{click_text:t.formatMessage({id:"companyinfo.callerlink"}),cta_description:t.formatMessage({id:"company.tabs.offices.info"}),click_url:"".concat("https://fonecta.fi","/profiili/").concat(n4()(n.name,{lower:!0}),"/").concat(n.id),page_type:(0,x.C2)()}),children:(0,s.jsxs)(g.Z,{direction:"column",spacing:.75,children:[(0,s.jsx)(Z.Z,{variant:"body2",mr:3,children:(0,s.jsx)(C.Z,{id:"companyinfo.callerlink"})}),(0,s.jsxs)(g.Z,{direction:"row",alignItems:"center",children:[(0,s.jsx)(n2.j,{}),(0,s.jsx)(eR.Z,{})]})]})})})]})})]}):null}var n8=i(83394);function n7(e){let{sx:n}=e;return(0,s.jsx)(v.Z,{sx:{borderLeft:1,borderColor:"border.20",marginLeft:"50%",height:"100%",...n}})}function n9(e){let{size:n}=e;return(0,s.jsxs)(v.Z,{position:"relative",width:"100%",children:[(0,s.jsx)(v.Z,{sx:{position:"absolute",borderBottom:1,borderBottomColor:"border.20",height:"17px",width:"small"===n?"35%":"100%",left:"50%"}}),(0,s.jsx)(n7,{})]})}function n6(e){let{size:n}=e;return(0,s.jsx)(n7,{sx:{borderBottom:1,borderBottomColor:"border.20",borderBottomLeftRadius:"4px",height:"small"===n?"18px":"55%",width:"small"===n?"35%":"100%",marginBottom:"40%"}})}let ie="24px";function ii(e){let{concern:n,current:i,firstLine:t,lastLine:o,depth:r}=e,[a,c]=(0,d.useState)(!1),l=null==n?void 0:n.children.sort((e,n)=>e.name.localeCompare(n.name)),p=!!l.length,{data:m}=(0,h.N)({id:n.mbsId});return(0,s.jsx)(v.Z,{children:(0,s.jsxs)(g.Z,{direction:"row",children:[(0,s.jsxs)(v.Z,{display:"flex",width:ie,children:[t&&0===r&&(0,s.jsx)(v.Z,{sx:{position:"absolute",width:ie,marginTop:"-8px",height:"8px"},children:(0,s.jsx)(n7,{sx:{height:"8px"}})}),!o&&(0,s.jsx)(n9,{size:"small"}),o&&(0,s.jsx)(n6,{size:"small"})]}),(0,s.jsx)(v.Z,{flex:1,minHeight:"32px",alignContent:"center",children:(0,s.jsx)(v.Z,{children:(0,s.jsxs)(nT.Z,{disableGutters:!0,expanded:a,children:[(0,s.jsx)(nL.Z,{id:"concern-title-".concat(n.mbsId),"aria-controls":"concern-content-".concat(n.mbsId),expandIcon:p&&(0,s.jsx)(v.Z,{sx:{border:1,borderRadius:1,borderColor:"border.20",display:"flex",justifyContent:"center",ml:1},children:(0,s.jsx)(F.Z,{sx:{display:"flex",justifyContent:"center",pointerEvents:"auto"},className:"arrow-icon",onClick:()=>{c(e=>!e)},children:"keyboard_arrow_right"})}),sx:{minHeight:"32px",height:"100%",flexDirection:"row-reverse",pointerEvents:"none",".MuiAccordionSummary-content":{my:0},"& .MuiAccordionSummary-expandIconWrapper":{transition:"none"},"& .MuiAccordionSummary-expandIconWrapper.Mui-expanded":{transform:"none"},"& .MuiAccordionSummary-expandIconWrapper .arrow-icon":{transition:"transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"},"& .MuiAccordionSummary-expandIconWrapper.Mui-expanded .arrow-icon":{transform:"rotate(90deg)"}},children:(0,s.jsx)(_.Z,{component:q(),color:"inherit",underline:"hover",sx:{pointerEvents:"auto",ml:1},href:(0,e7.ZP)({contact:n,concern:!0}),onClick:()=>{var e;(0,x.ec)("select_profile",{profile_id:null==m?void 0:m.id,profile_name:(null==m?void 0:null===(e=m.contactType)||void 0===e?void 0:e.includes("PERSON"))?"person":null==m?void 0:m.name,profile_index:0,profile_type:null==m?void 0:m.contactType,page_type:(0,x.C2)(),top_position:null==m?void 0:m.hasPaidPackage,customer_type:(null==m?void 0:m.customerType)==="PLUS"?"PLUS":"NONE",company_type:"subsidiary",company_office_type:"head_office",locked_result:!1})},children:(0,s.jsx)(Z.Z,{variant:"body2",sx:{fontWeight:n.mbsId===i?600:400},children:n.name||n.officialName})})}),(0,s.jsx)(nM.Z,{children:(0,s.jsx)(v.Z,{ml:1,children:l.map((e,n)=>(0,s.jsx)(ii,{concern:e,current:i,firstLine:0===n,lastLine:n===l.length-1,depth:r+1},"".concat(e.mbsId,"-").concat(n,"-").concat(r)))})})]})})})]})})}function it(e){var n,i;
1let{concern:t,currentCompany:o,hasFinderPro:r,eventParams:a,concernTeaserAmount:c,contactType:l}=e,p=null==t?void 0:t.children.sort((e,n)=>e.name.localeCompare(n.name));(0,N.Z)();let{data:m}=(0,h.N)({id:null==t?void 0:t.mbsId}),[u,f]=(0,d.useState)(!!t&&(null==t?void 0:null===(n=t.children)||void 0===n?void 0:n.length)<=5&&!!r),j=(0,z.e)();return(0,s.jsxs)(v.Z,{p:2,children:[(0,s.jsx)(v.Z,{display:"flex",justifyContent:"space-between",children:(0,s.jsx)(Z.Z,{variant:"h5",component:"h4",color:"text.secondary",children:(0,s.jsx)(C.Z,{id:"company.tabs.concern.title"})})}),(0,s.jsxs)(g.Z,{direction:"row",spacing:2,mt:2,children:[(0,s.jsxs)(v.Z,{display:"flex",flexDirection:"column",width:ie,children:[(0,s.jsx)(v.Z,{pt:.5,children:(0,s.jsx)(ev.Z,{children:(0,s.jsx)(n8.Z,{})})}),(0,s.jsx)(n7,{})]}),(0,s.jsxs)(v.Z,{flex:1,children:[(0,s.jsxs)(v.Z,{display:"inline-block",children:[r?(0,s.jsxs)(_.Z,{href:(0,e7.ZP)({contact:t,concern:!0}),component:q(),color:"inherit",underline:"hover",display:"flex",flexGrow:0,onClick:()=>{var e;(0,x.ec)("select_profile",{profile_id:null==m?void 0:m.id,profile_name:(null==m?void 0:null===(e=m.contactType)||void 0===e?void 0:e.includes("PERSON"))?"person":null==m?void 0:m.name,profile_index:0,profile_type:null==m?void 0:m.contactType,page_type:(0,x.C2)(),top_position:null==m?void 0:m.hasPaidPackage,customer_type:(null==m?void 0:m.customerType)==="PLUS"?"PLUS":"NONE",company_type:"parent",company_office_type:"head_office",locked_result:!1})},children:[(0,s.jsx)(Z.Z,{variant:"h4",component:"div",mb:.5,mr:1,children:(null==t?void 0:t.name)||(null==t?void 0:t.officialName)}),(0,s.jsx)(ev.Z,{children:"arrow_forward"})]}):(0,s.jsx)(Z.Z,{component:"div",mb:.5,mr:1,fontSize:8,letterSpacing:"3px",children:(0,s.jsx)(nn.Z,{locked:!r,value:(null==t?void 0:t.name)||(null==t?void 0:t.officialName),fakeValue:"Osta FinderPro"})}),(0,s.jsx)(Z.Z,{children:(0,s.jsx)(C.Z,{id:"company.tabs.concern.toplevel"})})]}),(0,s.jsx)(S.Z,{sx:{mt:2}})]})]}),(0,s.jsxs)(g.Z,{direction:"row",flexGrow:1,children:[(0,s.jsx)(v.Z,{display:"flex",width:ie,maxHeight:"64px",flexShrink:0,children:(0,s.jsx)(n6,{size:"large"})}),(0,s.jsx)(v.Z,{width:"100%",children:(0,s.jsxs)(nT.Z,{disableGutters:!0,expanded:u,onClick:()=>{u?(0,x.ec)("click_show_less_subsidiaries",{profile_type:null==a?void 0:a.profileType,customer_type:null==a?void 0:a.customerType,page_type:null==a?void 0:a.pageType}):((0,x.ec)("click_show_more_subsidiaries",{profile_type:null==a?void 0:a.profileType,customer_type:null==a?void 0:a.customerType,page_type:null==a?void 0:a.pageType}),j("clicked_show_subsidiaries",{company:null==m?void 0:m.name})),f(!u)},children:[(0,s.jsx)(nL.Z,{id:"concern-title","aria-controls":"concern-children",expandIcon:(0,s.jsx)(nO,{}),sx:{minHeight:"64px",".MuiAccordionSummary-content":{my:0,width:"100%"}},children:(0,s.jsxs)(g.Z,{direction:"row",justifyContent:"space-between",flexGrow:1,children:[(0,s.jsx)(v.Z,{display:"flex",children:(0,s.jsx)(v.Z,{flex:1,ml:2,sx:{display:"flex",gap:1},children:(0,s.jsxs)(v.Z,{display:"flex",alignItems:"center",children:[(0,s.jsx)(Z.Z,{children:(0,s.jsx)(C.Z,{id:"company.tabs.concern.children"})}),(0,s.jsx)(eu.Z,{dark:!0,children:(0,s.jsx)(C.Z,{id:"company.tabs.concern.children.info"})})]})})}),(0,s.jsx)(v.Z,{display:"flex",children:(0,s.jsx)(R.Z,{label:(0,s.jsx)(Z.Z,{p:.5,pt:1,variant:"body3",children:(null==t?void 0:null===(i=t.children)||void 0===i?void 0:i.length)||c}),sx:{height:"auto"}})})]})}),(0,s.jsx)(nM.Z,{children:(0,s.jsx)(Z.Z,{component:"div",mb:.5,mr:1,fontSize:8,letterSpacing:"3px",children:(0,s.jsx)(nn.Z,{locked:!r,value:(0,s.jsx)(s.Fragment,{children:null==p?void 0:p.map((e,n)=>(0,s.jsx)(ii,{concern:e,current:o,firstLine:0===n,lastLine:n===(null==p?void 0:p.length)-1,depth:0},"".concat(e.mbsId,"-").concat(n)))}),fakeValue:"Ostas ny"})})})]})})]})]})}function io(){return(io=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e}).apply(null,arguments)}var ir=function(e){return d.createElement("svg",io({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),r||(r=d.createElement("path",{d:"M4 5.5V4h16.05v1.5zM4.125 20v-6.45H2.9v-1.5L4 7h16.025l1.1 5.05v1.5H19.9V20h-1.5v-6.45h-4.725V20zm1.5-1.5h6.55v-4.95h-6.55zm-1.25-6.45H19.65l-.775-3.55H5.15z"})))};function ia(e){var n;let{onToggleSources:i,offices:t,contact:o}=e,[r,a]=(0,d.useState)(!1),c=null==t?void 0:t.find(e=>e.contactType===x.uC.Company),l=null==t?void 0:t.filter(e=>e.contactType!==x.uC.Company),p=(null==o?void 0:o.parentMbsId)?"subsidiary":"parent";return(0,s.jsxs)(g.Z,{flex:1,p:2,children:[c&&(0,s.jsxs)(g.Z,{children:[(0,s.jsxs)(g.Z,{direction:"row",flex:1,justifyContent:"space-between",alignItems:"flex-start",mb:2,children:[(0,s.jsx)(Z.Z,{variant:"h5",component:"h4",color:"text.secondary",children:(0,s.jsx)(C.Z,{id:"company.tabs.office
1s.mainOffice"})}),(0,s.jsx)(H.Z,{sx:{mt:-1},onClick:i})]}),(0,s.jsx)(Z.Z,{variant:"caption",color:"text.secondary",mb:1,fontSize:14,children:c.cityName}),(0,s.jsxs)(g.Z,{direction:"row",spacing:2,children:[(0,s.jsx)(v.Z,{pt:.5,children:(0,s.jsx)(F.Z,{children:(0,s.jsx)(n8.Z,{})})}),(0,s.jsxs)(g.Z,{children:[(0,s.jsxs)(x.Sf,{href:(0,e7.ZP)({contact:c,mainOffice:!0}),component:q(),color:"inherit",underline:"hover",display:"flex",contact:c,extraData:p,onClick:()=>{var e;(0,x.ec)("select_profile",{profile_id:null==o?void 0:o.id,profile_name:(null==o?void 0:null===(e=o.contactType)||void 0===e?void 0:e.includes("PERSON"))?"person":null==o?void 0:o.name,profile_index:0,profile_type:null==o?void 0:o.contactType,page_type:(0,x.C2)(),top_position:null==o?void 0:o.hasPaidPackage,customer_type:(null==o?void 0:o.customerType)==="PLUS"?"PLUS":"NONE",company_type:p,company_office_type:(null==o?void 0:o.contactType)==="COMPANY"?"head_office":(null==o?void 0:o.contactType)==="OFFICE"?"branch_office":"NONE",locked_result:!1})},sx:{alignItems:"center"},children:[(0,s.jsx)(Z.Z,{variant:"h4",component:"div",mb:.5,mr:1,children:c.name}),(0,s.jsx)(F.Z,{sx:{fontSize:"20px"},children:"arrow_forward"})]}),(0,s.jsx)(Z.Z,{children:null===(n=c.address)||void 0===n?void 0:n.streetAddress})]})]})]}),!!(null==l?void 0:l.length)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Z.Z,{variant:"h5",component:"h4",pt:2,my:2,color:"text.secondary",children:(0,s.jsx)(C.Z,{id:"company.tabs.office
1s.subOffices"})}),(0,s.jsx)(b.ZP,{container:!0,rowSpacing:2,columnSpacing:1,children:l.slice(0,r?l.length:6).map((e,n)=>{var i;return(0,s.jsx)(b.ZP,{item:!0,xs:12,md:3,children:(0,s.jsxs)(g.Z,{children:[(0,s.jsx)(Z.Z,{variant:"caption",mb:.5,color:"text.secondary",fontSize:14,children:e.cityName}),(0,s.jsxs)(g.Z,{direction:"row",spacing:2,children:[(0,s.jsx)(F.Z,{children:(0,s.jsx)(ir,{})}),(0,s.jsxs)(g.Z,{spacing:.5,children:[(0,s.jsxs)(x.Sf,{href:(0,e7.ZP)({contact:e}),component:q(),color:"inherit",underline:"hover",display:"flex",contact:e,extraData:p,onClick:()=>{var e;(0,x.ec)("select_profile",{profile_id:null==o?void 0:o.id,profile_name:(null==o?void 0:null===(e=o.contactType)||void 0===e?void 0:e.includes("PERSON"))?"person":null==o?void 0:o.name,profile_index:0,profile_type:null==o?void 0:o.contactType,page_type:(0,x.C2)(),top_position:null==o?void 0:o.hasPaidPackage,customer_type:(null==o?void 0:o.customerType)==="PLUS"?"PLUS":"NONE",company_type:p,company_office_type:(null==o?void 0:o.contactType)==="COMPANY"?"head_office":(null==o?void 0:o.contactType)==="OFFICE"?"branch_office":"NONE",locked_result:!1})},sx:{alignItems:"center"},children:[(0,s.jsx)(Z.Z,{fontWeight:500,mr:1,component:"div",children:e.name}),(0,s.jsx)(F.Z,{children:"arrow_forward"})]}),(0,s.jsx)(Z.Z,{variant:"body2",children:null===(i=e.address)||void 0===i?void 0:i.streetAddress})]})]})]})},n)})}),!r&&l.length>6&&(0,s.jsx)(_.Z,{underline:"hover",sx:{fontSize:16,cursor:"pointer",fontWeight:500},component:"div",mt:3,onClick:()=>
1a(!r),children:(0,s.jsx)(C.Z,{id:"company.tabs.offices.list.showAll",values:{amount:l.length}})})]})]})}function is(e){var n,i,t,o;let{onToggleSources:r,contact:a,hasFinderPro:c}=e,[l,p]=(0,d.useState)(!1),m=(0,N.Z)(),x=(0,E.Z)();(0,d.useEffect)(()=>{p(!x)},[x]);let{offices:h,concern:u}=a,f={profileType:null==a?void 0:a.contactType,customerType:null==a?void 0:a.customerType,pageType:"profile"};return(null==h?void 0:h.length)||(null==u?void 0:null===(n=u.children)||void 0===n?void 0:n.length)||(null==a?void 0:a.concernTeaserAmount)?(0,s.jsxs)(nT.Z,{disableGutters:!0,expanded:l,sx:{"&:before":{backgroundColor:"transparent"},"&:after":{backgroundColor:"transparent"}},children:[(0,s.jsx)(nL.Z,{id:"company-structure-title","aria-controls":"company-structure-content",onClick:()=>{p(e=>!e)},expandIcon:(0,s.jsx)(nO,{}),sx:{minHeight:{md:"70px",xs:"65px"}},children:(0,s.jsx)(v.Z,{display:"flex",width:"100%",justifyContent:"space-between",children:(0,s.jsx)(Z.Z,{variant:"body1",component:"h3",fontSize:x?"19px":"21px",fontWeight:500,children:(0,s.jsx)(C.Z,{id:"company.tabs.office
1s.structure"})})})}),(0,s.jsxs)(nM.Z,{sx:{px:0,pt:.5,pb:2},children:[!!(null===(i=a.offices)||void 0===i?void 0:i.length)&&(0,s.jsx)(v.Z,{bgcolor:"background.paperLight",p:{xs:1,sm:2},mb:3,border:1,borderColor:"divider10",borderRadius:2,children:(0,s.jsx)(ia,{offices:h,onToggleSources:r,contact:a})}),!!((null==a?void 0:null===(o=a.concern)||void 0===o?void 0:null===(t=o.children)||void 0===t?void 0:t.length)||(null==a?void 0:a.concernTeaserAmount))&&(0,s.jsx)(nh,{variant:c?"open":"locked",ctaTextId:"company.tabs.concern.teaser",requiredProduct:"pro",analyticsParams:{click_text:m.formatMessage({id:"contact.locked.ctaButton"}),click_url:"/finderpro",feature_name:"concern_hierarchy",item_name:"finder-pro",item_variant:"",page_type:"profile",profile_type:null==a?void 0:a.contactType},uniformLockedColor:!1,children:(0,s.jsx)(it,{concern:null==a?void 0:a.concern,currentCompany:null==a?void 0:a.id,hasFinderPro:c,eventParams:f,concernTeaserAmount:null==a?void 0:a.concernTeaserAmount,contactType:null==a?void 0:a.contactType})})]})]}):null}var ic=i(96081);function il(e){var n,i,t;let{contact:o,companyAdditionalData:r,hasFinderPro:a,onToggleSources:c}=e;if(!o)return null;let l=nw(o),d=!!((null==r?void 0:null===(n=r.offices)||void 0===n?void 0:n.length)||(null==r?void 0:null===(t=r.concern)||void 0===t?void 0:null===(i=t.children)||void 0===i?void 0:i.length));return(0,s.jsxs)(g.Z,{children:[(0,s.jsxs)(g.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,s.jsxs)(Z.Z,{variant:"h3",component:"h2",pl:{xs:0,md:"22px"}
1,children:[(0,s.jsx)(C.Z,{id:"company.tabs.offices"})," ",o.contactType===x.uC.Office?o.companyOfficialName:""]}),(0,s.jsx)(H.Z,{onClick:()=>c(ic.GJ),sx:{mr:{xs:0,md:3}}})]}),(0,s.jsxs)(g.Z,{pt:{xs:0,md:3},mt:2,border:{xs:"none",md:"1px solid rgba(43, 43, 43, 0.1)"},borderRadius:2,px:{xs:0,md:3},children:[(0,s.jsx)(nI,{contact:o}),o.prhData&&(0,s.jsx)(nD,{data:o.prhData}),d&&(0,s.jsx)(is,{contact:{...r,contactType:o.contactType,customerType:o.customerType},hasFinderPro:a,onToggleSources:()=>c(ic.Rs)}),l&&(0,s.jsx)(n5,{contact:o})]})]})}var id=i(958),ip=i(33835),im=i(11088),ix=i(48155),ih=i(12632),iu=i(17693);let ij=[[{name:"business",heading:!0},{name:"turnover",isAsThousands:!0},{name:"turnoverPercentageChange",percentage:!0,color:!0},{name:"netIncomes",isAsThousands:!0},{name:"operatingProfit",isAsThousands:!0},{name:"ebitda",percentage:!0},{name:"operatingMargin",percentage:!0}],[{name:"payments",heading:!0},{name:"solvency",percentage:!0,convertToPercentage:!0},{name:"equity"},{name:"balance"},{name:"returnOnInvestment",percentage:!0},{name:"quickRatio"},{name:"currentRatio"}],[{name:"personnel",heading:!0},{name:"numberOfEmployees"},{name:"turnoverPerEmployee",isAsThousands:!0}]],iy=[{name:"turnover",isAsThousands:!0},{name:"turnoverPercentageChange",percentage:!0,color:!0},{name:"netIncomes",isAsThousands:!0},{name:"operatingProfit",isAsThousands:!0},{name:"ebitda",percentage:!0},{name:"operatingMargin",percentage:!0}],iZ=[{name:"solvency",percentage:!0,convertToPercentage:!0},{name:"equity"},{name:"balance"},{name:"returnOnInvestment",percentage:!0},{name:"quickRatio"},{name:"currentRatio"}],iv=[{name:"numberOfEmployees"},{name:"turnoverPerEmployee",isAsThousands:!0}],ib=(e,n)=>e[n],ig=(e,n,i)=>{let t={firstColumn:i.formatMessage({id:"financials.table.row.".concat(e.name)})};return n.forEach(n=>{t[n.fiscalYear]=ib(n,e.name)}),t},ik=(e,n,i)=>{let t=[{key:"firstColumn",displayLabel:i.formatMessage({id:"company.tabs.financials"})},...n.map(e=>({key:e.fiscalYear,displayLabel:e.fiscalYear}))],o=[...iy.map(e=>ig(e,n,i)),...iZ.map(e=>ig(e,n,i)),...iv.map(e=>ig(e,n,i))];(0,iu.$)(e,o,t)};var iC=i(65511);let i_=e=>(null==e?void 0:e.slice(-2))||"",iw=(e,n)=>{let i=new Date;return i.setMonth(i.getMonth()-3),i<new Date(parseInt(e),parseInt(n),0)};function iS(e){let{financials:n,theme:i,rows:t,isMobile:o,contact:r,blur:a}=e,c=(0,N.Z)(),[l,p]=(0,d.useState)(n),[m,x]=(0,d.useState)(n.length-1);return(0,d.useEffect)(()=>{p(o?n.slice(-2):n),x(n.length-1)},[o,n]),(0,s.jsx)(v.Z,{sx:{mb:4},children:(0,s.jsx)(nh,{ctaTextId:"company.tabs.financials.teaser",requiredProduct:"pro",variant:a?"locked":"open",analyticsParams:{click_text:c.formatMessage({id:"financials.paymentsTeaser"}),click_url:"/finderpro",feature_name:"liquidity",item_name:"finder-pro",item_variant:"",page_type:"profile",profile_type:(null==r?void 0:r.contactType)||""},children:(0,s.jsxs)(v.Z,{sx:{px:2,pb:o?0:3,mb:2,borderColor:"divider10"},children:[o&&(0,s.jsx)(iT,{intl:c,financials:n,visibleFinancials:l,setVisibleFinancials:p,lastVisibleIndex:m,setLastVisibleIndex:x}),(0,s.jsx)(iP,{financials:l,theme:i,rows:t,isMobile:o,blur:a})]})})})}function iP(e){let{financials:n,theme:i,rows:t,isMobile:o,blur:r}=e,a=(0,N.Z)(),c=(e,n,i)=>{let t=parseFloat(e),o=Math.round(10*t)/10;return n?100*t:i?1e3*o:o},l=(e,n)=>n?e>0?i.palette.success.main:i.palette.error.dark:"inherit",d=(e,n)=>{let i=ib(n,e.name);if(!i)return"-";let t=c(i,e.convertToPercentage,e.isAsThousands);return t>=1e8||t<=-1e8?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(k.BK,{value:Math.round(t/1e6)})," M"]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(k.BK,{value:t})," ",e.percentage?" %":""]})},p=(e,n)=>e===n.length-1;return(0,s.jsx)(id.Z,{children:(0,s.jsx)(ip.Z,{size:"small",children:(0,s.jsx)(im.Z,{sx:{color:i.palette.text.secondary},children:t.map((e,m)=>e.heading?(0,s.jsx)(ix.Z,{children:(0,s.jsx)(iI,{name:e.name,financials:n,first:0===m,isMobile:o})},e.name):(0,s.jsxs)(ix.Z,{hover:!0,children:[(0,s.jsx)(ih.Z,{component:"th",sx:{px:o?0:void 0,width:"fit-content",whiteSpace:"normal",borderBottom:o&&p(m,t)?"none":"1px solid".concat(i.palette.divider)},colSpan:void 0,children:(0,s.jsx)(g.Z,{direction:"row",spacing:1.35,alignItems:"center",children:(0,s.jsxs)(Z.Z,{component:"h4",variant:"body2",whiteSpace:"normal",children:[(0,s.jsx)(C.Z,{id:"financials.table.row.".concat(e.name)}
1),(0,s.jsx)(eu.Z,{dark:!0,buttonLabelText:"".concat(a.formatMessage({id:"showInfo"})," ")+a.formatMessage({id:"financials.table.row.".concat(e.name)}),children:(0,s.jsx)(C.Z,{id:"financials.info.".concat(e.name)})})]})})}),n.map(n=>(0,s.jsx)(ih.Z,{component:"td",sx:{color:l(c(ib(n,e.name)),e.color),px:o?0:void 0,pl:o&&0!==m?1:void 0,borderBottom:o&&p(m,t)?"none":"1px solid".concat(i.palette.divider)},align:"right",children:(0,s.jsx)(nn.Z,{locked:r||!1,value:d(e,n),fakeValue:e.convertToPercentage||e.percentage?"VA %":m+"FAKE"+(m%2==0?" fake":"")})},n.fiscalYearWithMonth))]},e.name))})})})}let iI=e=>{let{first:n,name:i,isMobile:t,financials:o}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ih.Z,{sx:{border:"none",px:{xs:0,md:"inherit"},pb:{xs:1,md:2},pt:{xs:3,md:5}},component:"th",scope:"colgroup",children:(0,s.jsx)(Z.Z,{component:"h3",variant:"h5",whiteSpace:"normal",children:(0,s.jsx)(C.Z,{id:"financials.table.heading.".concat(i)})})}),o.map(e=>(0,s.jsxs)(ih.Z,{sx:{color:n||t?"text.secondary":"rgba(0, 0, 0, 0.0)",border:"none",px:t?0:void 0,pt:{xs:3,md:5},pb:1,position:"relative"},align:"right",component:"th",children:[iw(e.fiscalYear,i_(e.fiscalYearWithMonth))&&n&&(0,s.jsx)(R.Z,{sx:{marginRight:"1rem",verticalAlign:"text-top",fontWeight:400},label:(0,s.jsx)(C.Z,{id:"financials.table.newChip"}),color:"primary"}),(0,s.jsx)(Z.Z,{component:"span",variant:"h5",children:e.fiscalYear}),n&&(0,s.jsxs)("span",{style:{fontSize:"0.875rem"},children:["/",i_(e.fiscalYearWithMonth)]})]},e.fiscalYear))]})},iT=e=>{let{financials:n,visibleFinancials:i,setVisibleFinancials:t,lastVisibleIndex:o,setLastVisibleIndex:r}=e,a=e=>{let i=o+e;t(n.slice(i-1,i+1)),r(i)};return(0,s.jsx)(iC.F,{prevValue:parseInt(i[0].fiscalYear)-1,prevDisabled:o<=1,prevClick:()=>a(-1),nextValue:parseInt(i[i.length-1].fiscalYear)+1,nextDisabled:o===n.length-1,nextClick:()=>a(1)})},iL=e=>e&&e.financials?[...e.financials].filter(e=>e.fiscalYear).sort((e,n)=>parseInt(e.fiscalYear)-parseInt(n.fiscalYear)).slice(-5):[];function iM(e){let{contact:n,hasFinderPro:i,onToggleSources:t}=e,o=(0,ea.Z)((0,ej.Z)().breakpoints.down("md")),r=(0,z.e)(),a=(0,ej.Z)(),c=(0,N.Z)(),[l,p]=(0,d.useState)(iL(n));(0,d.useEffect)(()=>{p(iL(n))},[n,c]);let m=()=>(0,s.jsx)(K.Z,{size:o?"xSmall":"small",sx:{color:a.palette.text.primary,borderColor:a.palette.text.primary,fontSize:o?"0.875rem":"1rem",maxHeight:"44px"},variant:o?void 0:"outlined",startIcon:(0,s.jsx)(F.Z,{children:"file_download"}),onClick:()=>{var e;(0,x.ec)("click_download_excel",{page_type:"profile"}),ik("".concat(null===(e=n.name)||void 0===e?void 0:e.replace(".","_").replace(" ","_"),"_financials"),l,c)},children:(0,s.jsx)(C.Z,{id:"financials.table.dlButton"})});return l&&0!==l.length?(0,s.jsxs)(g.Z,{children:[(0,s.jsx)(g.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:4,mb:2,children:!o&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(Z.Z,{flex:1,variant:"h3",pl:{xs:0,md:"22px"},component:"h2",children:[(0,s.jsx)(C.Z,{id:"company.tabs.financials"})," ",n.contactType===x.uC.Office?n.companyOfficialName:""]}),i&&(0,s.jsx)(m,{}),!i&&(0,s.jsx)(v.Z,{alignSelf:"flex-end",children:(0,s.jsx)(K.Z,{variant:"outlined",size:"xSmall",startIcon:(0,s.jsx)(I.Z,{className:"lock-closed"}),component:q(),href:"/finderpro",onClick:()=>{(0,nx.highlightProduct)("pro"),r("click_locked_content",{click_text:c.formatMessage({id:"financials.table.dlButtonTeaser"}),click_url:"/finderpro",feature_name:"excel_export",item_name:"finder-pro",item_variant:"",page_type:"profile",profile_type:n.contactType},{dataLayer:!0})},children:(0,s.jsx)(v.Z,{sx:{pb:.4},children:(0,s.jsx)(C.Z,{id:"financials.table.dlButtonTeaser"})})})}),(0,s.jsx)(H.Z,{onClick:t,sx:{pr:{xs:0,md:3}}})]})}),(0,s.jsxs)(g.Z,{mb:{xs:5,md:4},role:"tabpanel",id:"tabContent-financials",borderRadius:2,pb:{xs:2,md:0},children:[o&&(0,s.jsxs)(v.Z,{mt:2,mb:3,justifyContent:"space-between",display:"flex",children:[(0,s.jsx)(Z.Z,{flex:1,variant:"h3",component:"h2",display:"inline",children:(0,s.jsx)(C.Z,{id:"company.tabs.financials"})}),(0,s.jsx)(H.Z,{onClick:t,sx:{pr:{xs:0,md:3}}})]}),(0,s.jsx)(iS,{financials:l,theme:a,rows:ij[0],isMobile:o,contact:n}),(0,s.jsx)(iS,{financials:l,theme:a,rows:ij[1],blur:!i,isMobile:o,contact:n}),(0,s.jsx)(iS,{financials:l,theme:a,rows:ij[2],isMobile:o,contact:n})]}),o&&i&&(0,s.jsx)(v.Z,{alignSelf:"center",pt:1,mt:-10,mb:3,children:(0,s.jsx)(m,{})}),o&&!i&&(0,s.jsx)(v.Z,{mb:3,alignSelf:"center",mt:-9,children:(0,s.jsx)(K.Z,{variant:"outlined",size:"xSmall",startIcon:(0,s.jsx)(I.Z,{className:"lock-closed"}),component:q(),href:"/finderpro",onClick:()=>{(0,nx.highlightProduct)("pro"),r("click_locked_content",{click_text:c.formatMessage({id:"financials.table.dlButtonTeaser"}),click_url:"/finderpro",feature_name:"excel_export",item_name:"finder-pro",item_variant:"",page_type:"profile",profile_type:n.contactType},{dataLayer:!0})},children:(0,s.jsx)(C.Z,{id:"financials.table.dlButtonTeaser"})})})]}):(0,s.jsxs)(g.Z,{role:"tabpanel",id:"tabContent-financials",mb:{xs:5,md:4},children:[(0,s.jsx)(Z.Z,{variant:"h3",component:"h2",pl:{xs:0,md:"22px"},children:(0,s.jsx)(C.Z,{id:"company.tabs.financials"})}),(0,s.jsx)(es.Z,{sx:{py:3.5,px:{xs:2,md:3.5},mt:2,border:"1px solid #2B2B2B1A"},children:(0,s.jsxs)(g.Z,{direction:"row",spacing:1,children:[(0,s.jsx)(y.Z,{}),(0,s.jsx)(Z.Z,{variant:"body2",color:"text.primary",children:(0,s.jsx)(C.Z,{id:"contact.charts.noData"})})]})})]})}var iF=i(4495);function iN(e){let{additionalContacts:n,name:i,isOffice:t}=e;return(null==n?void 0:n.length)?(0,s.jsx)(iO,{isOffice:t,additionalContacts:n,name:i}):null}function iO(e){let{additionalContacts:n,name:i,isOffice:t}=e,o=(0,E.Z)(),[r,a]=(0,d.useState)([]),c="finder"===eJ.Z.service,l=o?4:c?8:6;return(0,s.jsxs)(es.Z,{sx:{px:{xs:2,md:c?4:7},pt:{xs:3,md:c?"16px !important":5},pb:{xs:3,md:c?4:5},mt:0,mb:c?{xs:5,md:4}:0,ml:{xs:-2,md:0},width:{xs:"calc(100% + 32px)",md:"100%"},bgcolor:t&&c?"company.light":"paper.light"},role:"tabpanel",id:"tabContent-contacts",children:[o||c?c&&o&&(0,s.jsx)(Z.Z,{variant:"h4",mb:4,component:"h2",color:"text.primary",children:(0,s.jsx)(C.Z,{id:"contact.additionalContacts",values:{name:i}})}):(0,s.jsx)(Z.Z,{variant:"h4",mb:4,component:"h2",children:(0,s.jsx)(C.Z,{id:"contact.additionalContacts",values:{name:i}})}),n.map((e,n)=>(0,s.jsxs)(v.Z,{children:[n>0&&(0,s.jsx)(S.Z,{sx:{my:3}}),e.name&&(0,s.jsx)(Z.Z,{variant:c?"h5":"h4",component:"h3",color:"text.primary",sx:{overflowWrap:"break-word",mb:{xs:2,md:1}},children:e.name}),(0,s.jsx)(b.ZP,{container:!0,spacing:{xs:2,md:1},mt:0,children:e.contacts.slice(0,r.includes(n)?e.contacts.length:l).map((n,i)=>{var t;return(0,s.jsx)(b.ZP,{item:!0,lg:c?3:4,md:c?4:6,xs:12,children:(0,s.jsxs)(g.Z,{direction:"row",spacing:2,children:[n.contactType===x.uC.Person?!c&&(0,s.jsx)(e4.Z,{width:"26px",height:"26px",viewBox:"0 0 26 26"}):!c&&(0,s.jsx)(n8.Z,{width:"26px",height:"26px",viewBox:"0 0 26 26"}),(0,s.jsxs)(g.Z,{width:"100%",children:[(0,s.jsx)(_.Z,{component:q(),color:"inherit",underline:"hover",href:c?(0,e7.ZP)({contact:n}):"/profiili/".concat(n4()(n.name,{lower:!0}),"/").concat(n.id),mb:{xs:.5,md:0},children:(0,s.jsxs)(g.Z,{direction:"row",alignItems:"center",spacing:.5,children:[(0,s.jsx)(Z.Z,{variant:c?"body2":"h4",component:"div",children:n.name}),(0,s.jsx)(F.Z,{sx:{fontSize:"18px !important"},children:"arrow_forward"})]})}
1),(0,s.jsx)(Z.Z,{variant:"body1",component:e.name?"h4":"h3",sx:{fontSize:"14px !important"},children:n.title||(null==n?void 0:null===(t=n.openingHours)||void 0===t?void 0:t.join(", "))}),n.tariffInfo&&(0,s.jsx)(v.Z,{mt:1,children:(0,s.jsx)(Z.Z,{variant:"caption",display:"inline-block",bgcolor:c?"personSecondary.dark":"secondary.dark",px:1,py:.5,fontWeight:500,borderRadius:1,children:n.tariffInfo})}),!c&&(n.phone||n.mobile)&&(0,s.jsx)(v.Z,{pt:2,pb:2,children:(0,s.jsxs)(K.Z,{component:q(),variant:"outlined",href:"/profiili/".concat(n4()(n.name,{lower:!0}),"/").concat(n.id),sx:{color:"text.primary",borderColor:"text.primary",py:"10px",px:2,lineHeight:1.4,height:"40px"},children:[(0,s.jsx)(iF.Z,{style:{marginRight:".5rem"},height:"22px",width:"22px",viewBox:"0 0 24 24"}),(0,s.jsx)(C.Z,{id:"contact.showPhoneNumber"})]})})]})]})},i)})}),!r.includes(n)&&e.contacts.length>l&&(0,s.jsx)(v.Z,{mt:{xs:2,md:3},textAlign:"center",children:(0,s.jsx)(K.Z,{variant:"contained",color:"secondary",sx:{width:"100%",maxWidth:"266px",height:"44px",...c?{bgcolor:"personSecondary.dark"}:{}},onClick:()=>a([...r,n]),children:(0,s.jsx)(C.Z,{id:"city.showMore"})})})]},n))]})}function iD(e){var n;let{contact:i}=e,t=(0,E.Z)();if(!(null==i?void 0:null===(n=i.additionalContacts)||void 0===n?void 0:n.length))return null;let o=i.contactType===x.uC.Office;return(0,s.jsxs)(s.Fragment,{children:[!t&&(0,s.jsx)(Z.Z,{variant:"h3",mb:2,pl:{xs:0,md:"22px"},component:"h2",children:(0,s.jsx)(C.Z,{id:o?"contact.contacts":"contact.additionalContacts",values:{name:i.name}})}),(0,s.jsx)(iN,{isOffice:o,additionalContacts:i.additionalContacts,name:i.name})]})}var iR=i(15060),iz=i(17399);function iB(){return(0,s.jsx)(Z.Z,{variant:"caption",alignItems:"center",justifyContent:"center",borderRadius:1,color:"text.primary",bgcolor:"aiData.main",fontSize:{xs:14},lineHeight:"100%",height:"21px",letterSpacing:"0.17px",pt:"3px",px:2.5,mt:"3px",children:(0,s.jsx)(C.Z,{id:"company.new"})})}var iE=i(75476),iA=i(28741);function iW(e){let{open:n,onClose:i}=e,t=(0,E.Z)();return(0,s.jsx)(eE.Z,{open:n,onClose:i,fullScreen:t,sx:{"& .MuiDialog-paper":{maxWidth:"750px"}},children:(0,s.jsxs)(v.Z,{sx:{display:"flex",px:{xs:2,sm:4.5},pt:5,pb:{xs:2,sm:5},overflow:"inherit",overflowWrap:"break-word",minHeight:"100%",bgcolor:"white"},children:[(0,s.jsx)(eG.Z,{onClick:i}),(0,s.jsxs)(g.Z,{height:"100%",width:"100%",gap:4,children:[(0,s.jsx)(Z.Z,{variant:"h3",component:"h2",children:(0,s.jsx)(C.Z,{id:"company.tabs.creditScore.dialog.sources.title"})}),(0,s.jsx)(iU,{name:"intrum",background:"linear-gradient(90deg, rgba(213, 198, 242, 0.22) 0%, rgba(168, 135, 230, 0.22) 56.25%, rgba(136, 80, 229, 0.22) 100%)",url:"https://www.intrum.fi/fi/yrityksille/"}),(0,s.jsx)(iU,{name:"valuatum",background:"linear-gradient(90deg, rgba(205, 255, 205, 0.35) 0%, rgba(35, 253, 35, 0.245) 56.25%, rgba(35, 253, 35, 0.35) 100%)",url:"https://www.valuatum.com/"})]})]})})}function iU(e){let{name:n,background:i,url:t}=e;return(0,s.jsxs)(g.Z,{sx:{background:i,borderBottom:"1px solid white",borderRadius:2,boxShadow:"0px 3px 2px 0px #00000024",px:2,py:2.5},gap:1,children:[(0,s.jsx)(Z.Z,{fontSize:{xs:20},fontWeight:500,children:(0,s.jsx)(C.Z,{id:"company.tabs.creditScore.dialog.sources.".concat(n,".title")})}),(0,s.jsxs)(Z.Z,{variant:"body2",display:"flex",alignItems:"center",children:[(0,s.jsx)(iE.Z,{sx:{mr:1}}),(0,s.jsx)(C.Z,{id:"company.tabs.creditScore.dialog.sources.".concat(n,".body")})]}),(0,s.jsxs)(_.Z,{href:t,target:"_blank",underline:"hover",fontSize:{xs:16},fontWeight:500,display:"flex",alignItems:"center",children:[(0,s.jsx)(C.Z,{id:"company.tabs.creditScore.dialog.sources.".concat(n,".link")}),(0,s.jsx)(iA.Z,{sx:{ml:1}})]})]})}function iY(e){let{contact:n}=e,[i,t]=(0,d.useState)(!1),o=(0,N.Z)(),{hasFinderCredit:r}=(0,iR.K)(),a="/ajankohtaista/yrityksen-luottotiedot-auttavat-ymmartamaan-millainen-yrityksen-maksukyky-on";return(0,s.jsxs)(v.Z,{mt:{xs:3,md:6},mb:{xs:5,md:0},children:[(0,s.jsxs)(g.Z,{spacing:1,direction:"row",justifyContent:"space-between",mb:2,px:{xs:0,md:"22px"},children:[(0,s.jsxs)(g.Z,{gap:2,direction:"row",alignItems:"center",children:[(0,s.jsx)(Z.Z,{variant:"h3",component:"h2",children:(0,s.jsx)(C.Z,{id:"company.tabs.creditScore"})}),(0,s.jsx)(iB,{})]}),(0,s.jsx)(v.Z,{display:"flex",justifyContent:{xs:"space-between",md:"right"},children:(0,s.jsx)(H.Z,{onClick:()=>t(!0)})})]}
1),n.hasCreditData&&(0,s.jsx)(nh,{variant:r?"open":"locked",ctaTextId:"company.tabs.creditScore.cta",bgColor:r?"background.paperLight":"primary.light",requiredProduct:"luotto",analyticsParams:{click_text:o.formatMessage({id:"company.tabs.creditScore.cta"}),click_url:"/finderpro",feature_name:"credit",item_name:"finder-credit",item_variant:"credit",page_type:"profile",profile_type:n.contactType},uniformLockedColor:!0,reverseMobile:!0,children:(0,s.jsxs)(v.Z,{mx:{xs:2,md:8},role:"tabpanel",id:"tabContent-creditScore",children:[(0,s.jsxs)(g.Z,{direction:"row",justifyContent:"center",flexWrap:"wrap",gap:{xs:6,md:2.75},mt:2.25,mb:4,children:[(0,s.jsx)(iz.O,{hasFinderCredit:r,contact:n}),(0,s.jsx)(iz.W,{hasFinderCredit:r,contact:n})]}),r&&(0,s.jsx)(v.Z,{justifyContent:"center",display:"flex",mb:2.25,children:(0,s.jsx)(_.Z,{component:q(),href:a,underline:"hover",onClick:()=>{(0,x.ec)("select_content",{content_type:"post",content_id:a})},children:(0,s.jsx)(Z.Z,{variant:"body2",textAlign:"center",children:(0,s.jsx)(C.Z,{id:"company.tabs.creditScore.subtitle"})})})})]})}),!n.hasCreditData&&(0,s.jsx)(v.Z,{border:1,borderRadius:2,borderColor:"border.10",bgcolor:"#f5f5f5",children:(0,s.jsx)(g.Z,{direction:{xs:"column",md:"row"},m:{xs:"12px 7px 14px 10px",md:"12px 14px 15px 17px"},height:{md:"24px"},children:(0,s.jsx)(Z.Z,{color:"text.disabled",variant:"body2",fontWeight:500,fontSize:{xs:16},children:(0,s.jsx)(C.Z,{id:"company.tabs.creditScore.notfound"})})})}),(0,s.jsx)(iW,{open:i,onClose:()=>t(!1)})]})}var iH=i(17625),iK=i(57441);function iG(e){let{onClickYes:n,onClickNo:i,...t}=e,{mutate:o}=(0,iK.n)(),[r,a]=(0,d.useState)(!1);return(0,s.jsxs)(g.Z,{spacing:1,pl:{xs:0,md:3},mb:4,...t,children:[(0,s.jsx)(Z.Z,{variant:"h4",component:"h2",children:(0,s.jsx)(C.Z,{id:"feedback.thumbs.title"})}),(0,s.jsxs)(g.Z,{direction:"row",spacing:2,pt:1,children:[(0,s.jsx)(K.Z,{disabled:r,startIcon:(0,s.jsx)(F.Z,{children:"thumb_up"}),variant:"contained",color:"secondary",onClick:()=>{a(!0),null==n||n()},sx:{height:"52px"},children:(0,s.jsx)(C.Z,{id:"feedback.thumbs.yes"})}),(0,s.jsx)(K.Z,{disabled:r,startIcon:(0,s.jsx)(F.Z,{children:"thumb_down"}),variant:"contained",color:"secondary",onClick:()=>{o({isOpen:!0}),null==i||i()},sx:{height:"52px"},children:(0,s.jsx)(C.Z,{id:"feedback.thumbs.no"})})]}),(0,s.jsx)(iH.Z,{in:r,children:(0,s.jsxs)(g.Z,{direction:"row",spacing:.5,color:"success.main",children:[(0,s.jsx)(F.Z,{children:"check_circle"}),(0,s.jsx)(Z.Z,{variant:"subtitle2",children:(0,s.jsx)(C.Z,{id:"feedback.thanks"})})]})})]})}var iq=i(70246),iV=i(34774);function iJ(e){let{item:n,index:i,eventParams:t,contact:o}=e,r=(0,z.e)();return(0,s.jsxs)(b.ZP,{container:!0,py:3,direction:{xs:"column",md:"row"},children:[(0,s.jsx)(b.ZP,{item:!0,md:2,lg:1,children:(0,s.jsx)(Z.Z,{variant:"body2",children:(0,s.jsx)(k.Ji,{value:new Date(n.published_at)})})}),(0,s.jsxs)(b.ZP,{item:!0,md:10,lg:11,children:[(0,s.jsx)(Z.Z,{component:"h3",variant:"body1",fontWeight:500,mb:1,children:n.article_title_fi}),(0,s.jsxs)(Z.Z,{mb:1,variant:"body2",children:[n.company_summary_fi.split(".")[0],"."]}),(0,s.jsx)(_.Z,{href:n.article_url,target:"_blank",color:"text.primary",onClick:()=>{(0,x.ec)("click_to_news_article",{profile_type:null==t?void 0:t.profileType,customer_type:null==t?void 0:t.customerType,page_type:null==t?void 0:t.pageType}),r("clicked_news_article",{company:o.name})},children:(0,s.jsx)(Z.Z,{variant:"body2",children:(0,s.jsx)(C.Z,{id:"company.tabs.news.link",values:{site:n.article_url.includes("is.fi")?"Taloussanomat":"Kauppalehti"}})})})]})]})}function iQ(e){let{news:n,eventParams:i,contact:t}=e,[o,r]=(0,d.useState)(!1),a=(0,E.Z)(),c=n.sort((e,n)=>e.published_at<n.published_at?1:-1),l=c.slice(0,3),p=c.slice(3),m=(0,z.e)();return(0,s.jsxs)(g.Z,{mb:{xs:5,md:4},children:[(0,s.jsxs)(g.Z,{spacing:1,direction:a?"column":"row",justifyContent:"space-between",mb:2,children:[(0,s.jsx)(Z.Z,{variant:"h3",component:"h2",pl:{xs:0,md:"22px"},children:(0,s.jsx)(C.Z,{id:"company.tabs.news.title"})}),(0,s.jsxs)(g.Z,{direction:"row",gap:1,alignItems:"center",children:[(0,s.jsx)(eT,{}),(0,s.jsx)(Z.Z,{variant:"body3",color:"text.secondary",children:(0,s.jsx)(C.Z,{id:"company.tabs.news.ai"})})]})]}),(0,s.jsxs)(g.Z,{px:0===n.length?0:a?1:3,border:a?0:1,borderColor:"border.10",borderRadius:2,sx:{background:"linear-gradient(357deg, rgba(243, 211, 255, 0.70) 2.36%, rgba(243, 211, 255, 0.20) 98.07%)"},children:[0===n.length&&(0,s.jsxs)(g.Z,{direction:"row",spacing:1,p:3.5,children:[(0,s.jsx)(y.Z,{color:"primary"}),(0,s.jsx)(Z.Z,{variant:"body2",children:(0,s.jsx)(C.Z,{id:"company.tabs.news.empty"})})]}),l.map((e,n)=>
1(0,s.jsx)(iJ,{item:e,index:n,eventParams:i,contact:t},n)),!!((null==p?void 0:p.length)&&!o&&t)&&(0,s.jsx)(K.Z,{variant:"contained",color:"paper",sx:{width:266,alignSelf:"center",mb:4,height:"44px"},onClick:()=>{r(!0),(0,x.ec)("click_show_more_news",{profile_type:null==i?void 0:i.profileType,customer_type:null==i?void 0:i.customerType,page_type:null==i?void 0:i.pageType}),m("clicked_more_news",{company:null==t?void 0:t.name})},children:(0,s.jsx)(C.Z,{id:"showMore"})}),(0,s.jsx)(v.Z,{display:o?void 0:"none",children:null==p?void 0:p.map((e,n)=>(0,s.jsx)(iJ,{item:e,index:n,eventParams:i,contact:t},n))})]})]})}i(45539);var i$=i(76817);let iX=(e,n,i,t)=>{var o,r,a;let s=[],c=e.contactType===x.uC.Office;return s.push({id:"creditScore"}),c&&(null==e?void 0:null===(o=e.additionalContacts)||void 0===o?void 0:o.length)&&!t&&s.push({id:"contacts"}),s.push({id:"decisionMakers"}),i&&s.push({id:"financials"}),s.push({id:"offices"}),(null==n?void 0:null===(r=n.aiProfile)||void 0===r?void 0:r.news)&&s.push({id:"news"}),!c&&(null==e?void 0:null===(a=e.additionalContacts)||void 0===a?void 0:a.length)&&!t&&s.push({id:"additionalContacts"}),s};function i0(e){var n,i,t,o;let{contact:r,hasFinderPro:a,hasFinderConnect:c,user:l,isMobile:p,onToggleSources:m}=e,{data:h,isLoading:u}=X({contact:r}),[f,j]=(0,d.useState)(void 0),y=!!(null==r?void 0:null===(n=r.financials)||void 0===n?void 0:n.length)&&r.financials.some(e=>e),Z=iX(r,h,y,!!p),g={rootMargin:"-20% 0px -60% 0px"},[k,C]=(0,i$.YD)(g),[_,S]=(0,i$.YD)(g),[P,I]=(0,i$.YD)(g),[T,L]=(0,i$.YD)(g),[M,F]=(0,i$.YD)(g),[N,O]=(0,i$.YD)(g),[D,R]=(0,i$.YD)(g),B=(0,z.e)(),E=null===(i=[["creditScore",C],["contacts",S],["decisionMakers",I],["financials",F],["offices",L],["news",R],["additionalContacts",O]].findLast(e=>{let[,n]=e;return n}))||void 0===i?void 0:i[0];(0,d.useEffect)(()=>{j(E)},[E]);let A={creditScore:(0,d.useRef)(null),contacts:(0,d.useRef)(null),decisionMakers:(0,d.useRef)(null),offices:(0,d.useRef)(null),financials:(0,d.useRef)(null),additionalContacts:(0,d.useRef)(null),news:(0,d.useRef)(null),topLists:(0,d.useRef)(null)};if(!r)return null;let W=r.contactType===x.uC.Office,U={profileType:null==r?void 0:r.contactType,customerType:null==r?void 0:r.customerType,pageType:"profile"};return(0,s.jsxs)(e2.Z,{tabs:Z,newActiveTab:f,refDict:A,intlPrefix:"company.tabs",ariaLabel:"company.tabs.ariaLabel",fullWidthBorder:!0,eventParams:U,defaultToFirstTab:!p,children:[(0,s.jsxs)("div",{ref:k,children:[(0,s.jsx)("span",{id:"creditScore",ref:A.creditScore}),(0,s.jsx)(iY,{contact:r})]}),W&&(0,s.jsxs)("div",{ref:_,style:{marginTop:p?"0px":"48px",marginBottom:p?"0px":"-48px"},children:[(0,s.jsx)("span",{id:"contacts",ref:A.contacts}),(0,s.jsx)(iD,{contact:r})]}),(0,s.jsxs)("div",{ref:P,children:[(0,s.jsx)("span",{id:"decisionMakers",ref:A.decisionMakers}),u?(0,s.jsx)(b.ZP,{item:!0,xs:12,md:12,children:(0,s.jsx)(w.Z,{})}):(0,s.jsx)(nj,{signingText:null===(t=r.prhData)||void 0===t?void 0:t.signingText,hasFinderPro:a,hasFinderConnect:c,finderIpUser:r.finderIpUser,onToggleSources:()=>m(ic.IU),contact:r,decisionPersons:(null==h?void 0:h.decisionPersons)||[]})]}),(0,s.jsx)(iV.ZP,{location:x.$k.ContentPages,additionalProps:{sx:{mt:.5,mb:4}}}),y&&(0,s.jsxs)("div",{ref:M,children:[(0,s.jsx)("span",{id:"financials",ref:A.financials}),(0,s.jsx)(iM,{contact:r,hasFinderPro:a,user:l,onToggleSources:()=>m(ic.T9)})]}),(0,s.jsxs)("div",{ref:T,children:[(0,s.jsx)("span",{id:"offices",ref:A.offices}),(0,s.jsx)(il,{contact:r,companyAdditionalData:h,hasFinderPro:a,onToggleSources:m})]}),(0,s.jsx)(v.Z,{sx:{mb:{xs:5,md:4}}}),(null==h?void 0:null===(o=h.aiProfile)||void 0===o?void 0:o.news)&&(0,s.jsxs)("div",{ref:D,children:[(0,s.jsx)("span",{id:"news",ref:A.news}),(0,s.jsx)(iQ,{news:h.aiProfile.news,eventParams:U,contact:r})]}),!W&&(0,s.jsxs)("div",{ref:N,children:[(0,s.jsx)("span",{id:"contacts",ref:A.additionalContacts}),(0,s.jsx)(iD,{contact:r})]}),(0,s.jsx)(iG,{onClickYes:()=>(0,x.ec)("click_feedback_thumb",{feedback:"positive",profile_id:r.id,profile_name:r.name,profile_type:r.contactType,customer_type:r.customerType,page_type:"profile"}),onClickNo:()=>(0,x.ec)("click_feedback_thumb",{feedback:"negative",profile_id:r.id,profile_name:r.contactType===x.uC.Company?r.name:"person",profile_type:r.contactType,customer_type:r.customerType,page_type:"profile"})}),a?(0,s.jsx)(iq.Z,{visualScheme:"blue",title:"ads.title.search",body:"ads.content.search",link:"/search",linkText:"ads.link.search",image:"https://ucarecdn.com/77342b66-b4d1-4f11-848d-e45fcd285021/-/preview/944x530/",onClick:()=>{(0,x.ec)("click_banner",{banner_content:"search"}),B("clicked_news_tab",{company:r.name})}}):(0,s.jsx)(iq.Z,{visualScheme:"darkPro",title:"ads.title.free",body:"ads.content.free",link:"/finderpro",linkText:"ads.link",image:"https://ucarecdn.com/764f5087-f4b9-423f-b7d6-31fba151bd84/-/preview/1000x1000/-/quality/smart_retina/-/crop/650x550/60p,80p/-/format/auto/",onClick:()=>{(0,x.ec)("click_banner",{banner_content:"finderpro"}),B("clicked_news_tab",{company:r.name})}})]})}var i1=i(25237),i2=i.n(i1),i3=i(63673),i4=i(11955),i5=i(50205);
1function i8(e){let{contact:n}=e;return(n.endCode||n.businessStatusId===x.ZK.Fresh)&&(n.businessStatusId===x.ZK.Dormant||n.businessStatusId===x.ZK.OutOfBusiness||n.businessStatusId===x.ZK.Fresh)?(0,s.jsxs)(i4.Z,{severity:n.businessStatusId===x.ZK.OutOfBusiness?"error":"info",role:"none",sx:{my:2,width:"100%"},children:[(0,s.jsx)(i5.Z,{children:(0,s.jsx)(C.Z,{id:"contact.".concat((0,n0.V)(n.businessStatusId,n.endCode),".title")})}),(0,s.jsx)(C.Z,{id:"contact.".concat((0,n0.V)(n.businessStatusId,n.endCode),".content"),values:{date:n.businessStatusId===x.ZK.Fresh?new Date(n.established).toLocaleDateString("fi-FI")||"":n.endDate?new Date(n.endDate).toLocaleDateString("fi-FI"):""}})]}):null}var i7=i(88140);let i9=i2()(()=>Promise.resolve().then(i.bind(i,42035)),{loadableGenerated:{webpack:()=>[42035]},ssr:!1});function i6(e){let{contact:n}=e,{data:i}=(0,u.p)(),{isFree:t,hasFinderPro:o,hasFinderConnect:r}=(0,iR.K)(n.finderIpUser),a=!n.hasPaidPackage&&t,l=(0,E.Z)(),[p,m]=(0,d.useState)(!1),[h,f]=(0,d.useState)(!1),[j,y]=(0,d.useState)(null),[b,k]=(0,d.useState)(void 0),[w,S]=(0,d.useState)(!1),P=e=>{if(!e){S(!1);return}k(e),S(!w)},I=()=>{var e,n;let i=null===(e=document.getElementById("financials-block"))||void 0===e?void 0:e.getBoundingClientRect(),t=null===(n=document.getElementById("anchor-ad"))||void 0===n?void 0:n.getBoundingClientRect(),o=document.getElementById("show-anchor-sticky-boundary-2");i&&i.top<0&&i.bottom<0&&m(!0),f(!!i&&!!o&&i.bottom>0),y(i&&o&&t&&i.bottom>0?e=>null!==e?e:window.scrollY+window.innerHeight-t.height:null)};if((0,d.useEffect)(()=>(window.addEventListener("scroll",I,{passive:!0}),()=>{window.removeEventListener("scroll",I)}),[]),!n)return null;let T=n.contactType===x.uC.Office;return(0,s.jsxs)(g.Z,{children:[(0,s.jsxs)(c.Z,{sx:{mt:2,px:{xs:0,md:3}},children:[a&&(0,s.jsxs)(g.Z,{direction:"column",children:[l&&(0,s.jsxs)(g.Z,{direction:"row",justifyContent:"space-between",px:1,py:1.9,bgcolor:"background.paperLight",children:[(0,s.jsx)(Z.Z,{sx:{fontSize:"12px !important",color:"text.secondary"},children:(0,s.jsx)(C.Z,{id:"ads.help",values:{company:n.name}})}),(0,s.jsxs)(_.Z,{href:"/finderpro",component:q(),sx:{fontSize:"12px",underline:"hover",textDecoration:"none"},children:[(0,s.jsx)(C.Z,{id:"ads.help.link"})," ",(0,s.jsx)(i7.Z,{sx:{fontSize:"12px",mb:-.2}})]})]}),(0,s.jsxs)("span",{id:"show-anchor-sticky-boundary",children:[(0,s.jsx)(i9,{adId:W.f.ProfileDesktopFree,minWidth:"md",sx:{mt:5,mb:2}}),(0,s.jsx)(i9,{adId:W.f.ProfileMobileFree,maxWidth:"md",minWidth:"xs",sx:{mt:2,mb:2}})]})]}),(0,s.jsx)(e1,{contact:n,hasFinderPro:o}),(0,s.jsx)(i8,{contact:n}),T&&(0,s.jsxs)(Z.Z,{variant:"h3",component:"h2",sx:{mb:2},children:[(0,s.jsx)(C.Z,{id:"contact.companyInformation"}),(0,s.jsx)(v.Z,{ml:1,display:"inline",children:n.companyOfficialName})]}),(0,s.jsx)(er,{contact:n,hasFinderPro:o,elementId:"financials-block",onToggleSources:()=>P(ic.T9)})]}),(0,s.jsx)(i0,{contact:n,user:i,isMobile:l,onToggleSources:P,hasFinderPro:o,hasFinderConnect:r}),a&&p&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(v.Z,{mt:4}),(0,s.jsx)(x.po,{mobileAd:W.f.ProfileMobileFreeSticky,desktopAd:W.f.ProfileDesktopFreeSticky,mobileBottomLift:"65px",stoppedScrolling:h,stopPosition:j})]}),(0,s.jsx)(i3.Z,{visible:w,sources:b,onToggle:()=>P()})]})}var te=i(8746);let tn=e=>{let{copy:n}=e,i={url:window.location.href},t=e=>{let n=window.location.href;window.location.href=e+n},o=async()=>{(0,x.ec)("click_share");try{await navigator.share(i)}catch(e){if(!e.toString().includes("AbortError"))throw e}};return navigator.share&&navigator.canShare(i)?(0,s.jsx)(eZ.Z,{onClick:async()=>o(),children:(0,s.jsx)(Z.Z,{pl:1,py:0,sx:{fontSize:"16px !important",fontWeight:500},children:(0,s.jsx)(C.Z,{id:"company.share"})})}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(S.Z,{variant:"middle",sx:{my:".25rem"}}),(0,s.jsx)(te.Z,{sx:{fontSize:"16px",color:"text.secondary",background:"inherit"},children:(0,s.jsx)(C.Z,{id:"company.share"})}),(0,s.jsx)(eZ.Z,{onClick:()=>n(window.location.href),children:(0,s.jsx)(Z.Z,{sx:{fontSize:"16px !important"},children:(0,s.jsx)(C.Z,{id:"share.copy"})})}),(0,s.jsx)(eZ.Z,{onClick:()=>t("mailto:?body="),sx:{fontSize:"16px !important"},children:(0,s.jsx)(C.Z,{id:"share.email"})}),(0,s.jsx)(eZ.Z,{onClick:()=>t("https://www.linkedin.com/sharing/share-offsite/?url="),sx:{fontSize:"16px !important"},children:(0,s.jsx)(C.Z,{id:"share.linkedin"})}),(0,s.jsx)(eZ.Z,{onClick:()=>t("https://twitter.com/intent/tweet?url="),sx:{fontSize:"16px !important"},children:(0,s.jsx)(C.Z,{id:"share.twitter"})})]})};var ti=i(40910);let tt=e=>{var n;let{phoneNumber:i,contact:t,hasFinderPro:o,phoneDisabled:r}=e,{showNotification:a}=(0,eS.Z)(),c=(0,d.useRef)(null),l=e=>{navigator.clipboard.writeText(e),a("contact.textCopied","success","",3e3,!0,!0,(0,s.jsx)(ew.Z,{}))};return(0,s.jsx)(g.Z,{spacing:2,children:(0,s.jsxs)(g.Z,{direction:"row",spacing:1,children:[(0,s.jsx)(tr,{phoneNumber:i,fullWidth:!0,customerType:t.customerType,profileType:t.contactType,disabled:r}),(0,s.jsxs)(x.ZZ,{children:[!(0,ti.Hf)(t)&&(0,s.jsx)(eZ.Z,{onClick:null===(n=c.current)||void 0===n?void 0:n.favourite,children:(0,s.jsx)(ef.A,{ref:c,hasFinderPro:o,contact:t,variant:"contained",sx:{py:0,pl:1,backgroundColor:"transparent"}})}),(0,s.jsx)(eZ.Z,{onClick:()=>l(i),children:(0,s.jsx)(Z.Z,{pl:1,py:0,sx:{fontSize:"16px !important",fontWeight:500},children:(0,s.jsx)(C.Z,{id:"contact.copyPhoneNumber"})})}),(0,s.jsx)(tn,{copy:l})]})]})})};var to=i(47201);let tr=e=>{let{phoneNumber:n,customerType:i,profileType:t,...o}=e,r=(0,z.e)();return(0,s.jsx)(K.Z,{href:"tel:".concat(n.replaceAll(" ","")),size:"small",variant:"contained",color:"primary",sx:{whiteSpace:"nowrap"},startIcon:(0,s.jsx)(F.Z,{children:"phone"}),...o,onClick:()=>{r("click_to_call",{profile_type:t,customer_type:i},{dataLayer:!0})},children:(0,s.jsx)(C.Z,{id:"contact.callPhoneNumber",values:{phoneNumber:n}})})},ta=e=>{let{phoneNumber:n,customerType:i,profileType:t,onClick:o,disabled:r,...a}=e;return(0,s.jsx)(to.Z,{copyContent:n,customerType:i,profileType:t,disabled:r,children:(0,s.jsx)(K.Z,{size:"xSmall",variant:"text",color:"inherit",startIcon:(0,s.jsx)(F.Z,{children:"content_copy"}),style:{whiteSpace:"nowrap"},onClick:o,disabled:r,...a,children:(0,s.jsx)(C.Z,{id:"contact.copyPhoneNumber"})})})};
1function ts(e){let{contact:n,hasFinderPro:i,phoneDisabled:t}=e,o=(0,ej.Z)(),r=(0,ea.Z)(o.breakpoints.down("md"));return n?n.phone||n.mobile?r?(0,s.jsx)(tt,{phoneNumber:n.phone||n.mobile,contact:n,hasFinderPro:i,phoneDisabled:t}):(0,s.jsxs)(g.Z,{spacing:3.5,children:[(0,s.jsxs)(g.Z,{direction:"row",spacing:2,children:[(0,s.jsx)(tr,{phoneNumber:n.phone||n.mobile,customerType:n.customerType,profileType:n.contactType,disabled:t}),(0,s.jsx)(ef.A,{contact:n,hasFinderPro:i,color:"secondary",variant:"contained"})]}),(0,s.jsxs)(g.Z,{direction:r?"column":"row",spacing:2,children:[(0,s.jsx)(ta,{phoneNumber:n.phone||n.mobile,customerType:n.customerType,profileType:n.contactType,onClick:()=>{(0,x.K)("click_copy_number",n)},disabled:t}),(0,s.jsx)(eC,{id:"phone-buttons-share-desktop",size:"xSmall"})]})]}):(0,s.jsxs)(g.Z,{direction:"row",spacing:1,children:[(0,s.jsx)(ef.A,{contact:n,hasFinderPro:i,color:"secondary",variant:"contained"}),(0,s.jsx)(eC,{id:"phone-buttons-share-desktop"})]}):null}var tc=i(10675),tl=i(62028);function td(e){let{contact:n,hideText:i=!1}=e,t=(0,N.Z)();if(!n)return null;let o=[{link:n.linkedinUrl,Icon:ek.Z,text:"LinkedIn"},{link:n.twitter,Icon:tl.Z,text:"Twitter"},{link:n.facebookUrl,Icon:tc.Z,text:"Facebook"}];return(0,s.jsx)(g.Z,{direction:"row",spacing:3,children:o.map((e,n)=>e.link?(0,s.jsxs)(M.Z,{color:"inherit",LinkComponent:_.Z,href:e.link,target:"_blank","aria-label":"".concat(e.text,": ")+t.formatMessage({id:"newWindowLink"}),sx:{padding:0},children:[(0,s.jsx)(e.Icon,{}),!i&&(0,s.jsx)(Z.Z,{fontSize:2,ml:1,fontWeight:500,children:e.text})]},n):null)})}function tp(e){let{contact:n,company:i}=e;if(!n)return null;let t=n.phone||n.mobile;return(0,s.jsx)(v.Z,{width:"fit-content",height:"fit-content",sx:{px:4,py:3,borderWidth:1,borderStyle:"solid",borderColor:"border.10",borderRadius:3},children:(0,s.jsxs)(g.Z,{spacing:3,width:"300px",pb:3,children:[(n.photoUrl||n.logoUrl)&&(0,s.jsx)("img",{src:n.photoUrl||n.logoUrl,alt:n.name,style:{objectFit:"contain",borderRadius:8}}),(0,s.jsx)(Z.Z,{variant:"h5",component:"h2",children:(0,s.jsx)(C.Z,{id:"contact.info"})}),(0,s.jsxs)(g.Z,{spacing:1,children:[(0,s.jsxs)(Z.Z,{fontSize:"1rem",children:[n.title,(null==i?void 0:i.name)&&n.title&&" \xb7 ",i&&(0,s.jsx)(_.Z,{sx:{fontSize:"1rem"},color:"text.primary",href:(0,e7.ZP)({contact:i}),children:i.name})]}),t&&(0,s.jsxs)(Z.Z,{fontSize:"1rem",component:"div",children:[(0,s.jsx)(C.Z,{id:"contact.phone"}),": ",(0,s.jsx)(to.u,{children:t})]}),n.email&&(0,s.jsx)(Z.Z,{fontSize:"1rem",component:"div",children:(0,s.jsx)(C.Z,{id:"contact.email",values:{email:(0,s.jsx)(to.u,{children:n.email})}})}),(0,s.jsx)(td,{contact:n,hideText:!0})]})]})})}function tm(e){let{description:n}=e,i=(0,ea.Z)((0,ej.Z)().breakpoints.down("lg")),[t,o]=(0,d.useState)(!1),r=(0,d.useRef)(null);return(0,s.jsxs)(g.Z,{children:[(0,s.jsx)(g.Z,{spacing:2,tabIndex:-1,ref:r,maxHeight:i&&!t?"105px":"fit-content",overflow:"hidden",children:n.map((e,n)=>(0,s.jsx)(Z.Z,{whiteSpace:"pre-line",variant:i?"body2":"body1",children:function(e,n){var i;let t=/@@(.*)@@/g,o=null===(i=e.match(t))||void 0===i?void 0:i.map(e=>{let n=e.replace(/@@/g,"").split("@");return{text:null==n?void 0:n[0],link:"".concat(null==n?void 0:n[1],"://").concat(null==n?void 0:n[2])}});return e.replace(t,"|||").split("|||").map((e,n)=>{var i,t;return(0,s.jsxs)("span",{children:[e," ",(0,s.jsx)(_.Z,{href:null==o?void 0:null===(i=o[n])||void 0===i?void 0:i.link,target:"_blank",children:null==o?void 0:null===(t=o[n])||void 0===t?void 0:t.text})]},n)})}(e)},n))}),!t&&i&&(0,s.jsx)(K.Z,{onClick:()=>{var e;null===(e=r.current)||void 0===e||e.focus(),o(!0)},variant:"text",sx:{p:0,textDecoration:"underline",color:"text.primary",width:"fit-content",marginTop:1.5},children:(0,s.jsx)(C.Z,{id:"showMore"})})]})}let tx="https://fonecta.fi";function th(e){let{contact:n,forCompany:i}=e,t=(0,N.Z)(),o=(0,z.e)(),r=()=>{var e;return i?"".concat(tx,"/profiili/").concat(n4()((null===(e=n.office)||void 0===e?void 0:e.name)||n.name,{lower:!0}),"/").concat((null==n?void 0:n.company.id)||n.id):"".concat(tx,"/profiili/").concat(n4()(n.name,{lower:!0}),"/").concat(n.id)};return(0,s.jsxs)(g.Z,{pt:2.25,spacing:.75,children:[(0,s.jsx)(Z.Z,{color:"text.secondary",variant:"body2",children:(0,s.jsx)(C.Z,{id:i?"contact.seeLocationOnMap":"contact.seeOnMap"})}),(0,s.jsx)(_.Z,{color:"inherit",href:r(),"aria-label":"Fonecta Caller",onClick:()=>{(0,x.ec)("click_show_on_map"),o("clicked_caller_web_cta",{click_text:"Fonecta Caller logo",cta_description:t.formatMessage({id:i?"contact.seeLocationOnMap":"contact.seeOnMap"}),click_url:r(),page_type:(0,x.C2)()})},children:(0,s.jsxs)(g.Z,{direction:"row",spacing:1,children:[(0,s.jsx)("span",{style:{marginTop:"auto"},children:(0,s.jsx)(n2.j,{})}),(0,s.jsx)(F.Z,{children:"arrow_forward"})]})})]})}
1function tu(e){let{contact:n,company:i,theme:t}=e,o=(0,z.e)(),r=(0,N.Z)(),a=(()=>{if(n.address&&n.coordinates){let e="".concat(n.coordinates.lat,",").concat(n.coordinates.lon),i=encodeURI("".concat(n.address.streetAddress," ").concat(n.address.postalCode," ").concat(n.address.postOffice));return"https://www.fonecta.fi/kartat/".concat(e,"?address=").concat(i)}return null})();return i?(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(g.Z,{direction:"row",spacing:5,children:[(0,s.jsxs)(g.Z,{spacing:2,children:[(0,s.jsx)(Z.Z,{variant:"h4",component:"h2",sx:{marginBottom:"1.5rem !important"},children:(0,s.jsx)(C.Z,{id:"contact.companyDetails"})}),(0,s.jsxs)(Z.Z,{children:[(0,s.jsx)(C.Z,{id:"contact.mainLineOfBusiness"}),(0,s.jsxs)(_.Z,{color:"inherit",href:(0,Y.g)(i.mainLineOfBusinessName),children:[" "," ",i.mainLineOfBusinessName]})]}),(0,s.jsxs)(Z.Z,{component:"div",children:[" ",(0,s.jsx)(_.Z,{color:"text.primary",href:(0,e7.ZP)({contact:i}),children:i.name})]}),(0,s.jsxs)(Z.Z,{component:"div",children:[(0,s.jsx)(C.Z,{id:"contact.businessId"}),": ",(0,s.jsx)(to.u,{children:i.businessId})]}),i.email&&(0,s.jsx)(Z.Z,{children:(0,s.jsx)(C.Z,{id:"contact.email",values:{email:(0,s.jsx)(to.u,{children:n.email})}})}),i.companyUrl&&(0,s.jsxs)(Z.Z,{children:[(0,s.jsx)(C.Z,{id:"contact.companyUrl"}),": ",(0,s.jsx)(_.Z,{color:"inherit",href:e_(i.companyUrl),children:i.companyUrl})]}),i.companyUrl&&(0,s.jsxs)(Z.Z,{children:[(0,s.jsx)(C.Z,{id:"contact.companyUrl"}),": ",(0,s.jsx)(_.Z,{color:"inherit",href:e_(i.companyUrl),children:i.companyUrl})]}),(0,s.jsxs)(Z.Z,{children:[(0,s.jsx)(C.Z,{id:"company.heading.officeAddress"}),": ",a?(0,s.jsxs)(_.Z,{color:"inherit",href:a,onClick:()=>o("clicked_caller_web_cta",{click_text:(0,em.T)(i.address),cta_description:r.formatMessage({id:"company.heading.officeAddress"}),click_url:a,page_type:(0,x.C2)()}),children:[(0,em.T)(i.address),(0,s.jsx)(F.Z,{sx:{ml:.5,my:-.8,fontSize:"20px"},children:"location_on"})]}):(0,em.T)(i.address)]}),n.office&&(0,s.jsx)(_.Z,{color:"inherit",href:(0,e7.ZP)({contact:n,office:!0}),children:(0,s.jsx)(C.Z,{id:"contact.seeFullCompany"})}),(0,s.jsx)(th,{contact:n,forCompany:!0})]}),i.logoUrl&&(0,s.jsx)(el(),{src:i.logoUrl,width:100,height:100,alt:"Logo",style:{borderRadius:"4px",objectFit:"contain"}})]})}):null}var tf=i(26320);let tj=eJ.Z.development?"https://caller-web-dev.eucarya.cc":"https://fonecta.fi";eJ.Z.development;let ty="".concat(tj,"/kayntikortti/");function tZ(e){var n,i;let{contact:t}=e,o=(0,ej.Z)(),r=(0,E.V)(),a=(0,E.Z)(),{hasFinderPro:c}=(0,iR.K)(null==t?void 0:t.finderIpUser),{data:l}=(0,h.N)({id:(null==t?void 0:t.office)?t.office.id:null==t?void 0:null===(n=t.company)||void 0===n?void 0:n.id});return t?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(g.Z,{mt:5.5,justifyContent:"space-between",direction:"row",display:r?"block":"flex",children:[(0,s.jsxs)(b.ZP,{item:!0,xs:12,lg:8,maxWidth:"700px",children:[(0,s.jsxs)(g.Z,{direction:"row",justifyContent:"space-between",mb:5,children:[(0,s.jsxs)(g.Z,{children:[(0,s.jsx)(Z.Z,{variant:"h1",mb:1,children:t.name}),(0,s.jsx)(Z.Z,{component:"h2",variant:"body1",children:r?(0,s.jsx)("span",{children:t.title}):(0,s.jsxs)(g.Z,{direction:"row",spacing:1.25,children:[(0,s.jsx)("span",{children:t.title}),t.company&&t.office&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{children:t.company.name&&t.title&&!a&&" \xb7 "}),(0,s.jsx)(_.Z,{color:o.palette.text.primary,sx:{textDecorationColor:o.palette.text.primary},href:(0,e7.ZP)({contact:t,office:!0}),children:(0,s.jsx)("span",{children:(null===(i=t.office)||void 0===i?void 0:i.name)?t.office.name:t.company.name})})]})]})}),r&&t.email&&(0,s.jsx)(_.Z,{color:o.palette.text.primary,sx:{textDecorationColor:o.palette.text.primary},href:"mailto:".concat(t.email),onClick:()=>(0,x.ec)("click_to_email"),children:(0,s.jsx)("span",{children:t.email})})]}),r&&t.photoUrl&&(0,s.jsx)("img",{src:t.photoUrl,alt:t.name,height:"90px",style:{objectFit:"contain",borderRadius:8}})]}),(0,s.jsx)(ts,{contact:t,hasFinderPro:c,phoneDisabled:!1}),l&&l.office&&r&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(S.Z,{sx:{mt:3}}),(0,s.jsx)(_.Z,{variant:"body1",color:o.palette.text.primary,sx:{textDecorationColor:o.palette.text.primary},underline:"hover",href:(0,e7.ZP)({contact:t,office:!0}),children:(0,s.jsxs)(g.Z,{direction:"row",display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,s.jsxs)(g.Z,{direction:"row",gap:1,children:[(0,s.jsx)(C.Z,{id:"contact.companyDetails"}),(0,s.jsx)(eR.Z,{})]}),l.logoUrl&&(0,s.jsx)("img",{src:l.logoUrl,height:64,alt:l.name,style:{borderRadius:"4px",objectFit:"contain"}}),!l.logoUrl&&(0,s.jsx)("span",{style:{height:"64px",lineHeight:"64px"},children:l.name})]})})]}),t.businessDescriptionContents&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(S.Z,{sx:{mt:r?l?0:3:5,mb:r?3:5}}),(0,s.jsx)(tm,{description:t.businessDescriptionContents})]}),t.company&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(S.Z,{sx:{my:r?3:5},style:{borderColor:t.businessDescriptionContents&&r?"transparent":void 0}}
1),r?(0,s.jsxs)(g.Z,{spacing:1,children:[(0,s.jsx)(Z.Z,{variant:"h4",component:"h2",children:(0,s.jsx)(C.Z,{id:"contact.address"})}),(0,s.jsx)(Z.Z,{children:(0,em.T)(t.address)}),(0,s.jsx)(th,{contact:t})]}):(0,s.jsx)(tu,{theme:o,company:l,contact:t}),r&&(t.twitter||t.facebookUrl||t.linkedinUrl)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(S.Z,{sx:{my:r?3:5}}),(0,s.jsx)(td,{contact:t})]})]}),(0,s.jsx)(S.Z,{sx:{my:r?3:5}})]}),!r&&(0,s.jsx)(tp,{contact:t,company:l})]}),r?(0,s.jsx)(iq.Z,{visualScheme:"paper",title:"home.business.banner",linkText:"home.business.banner.button",link:ty,image:"/kuvat/kontakti-banner.jpg",imageOnLeft:!0,onClick:()=>(0,x.ec)("click_banner",{banner_content:"local_marketing"})}):(0,s.jsx)(tf.Z,{isMobile:r})]}):null}var tv=i(97729),tb=i.n(tv);let tg=e=>e.replace(/ma/gi,"Mo").replace(/ti/gi,"Tu").replace(/ke/gi,"We").replace(/to/gi,"Th").replace(/pe/gi,"Fr").replace(/la/gi,"Sa").replace(/su/gi,"Su");function tk(e){var n,i,t,o;let{contact:r}=e,a="PLUS"===r.contactType||(null===(n=r.contactType)||void 0===n?void 0:n.indexOf("PERSON"))>-1?{"@context":"https://schema.org","@type":"Person",name:r.name,image:r.photoUrl||r.logoUrl,address:(0,em.T)(r.address),telephone:r.mobile||r.phone,email:r.email}:{"@context":"https://schema.org","@type":"LocalBusiness",name:r.name,address:(0,em.T)(r.address),openingHours:null===(i=r.openingHours)||void 0===i?void 0:i.map(tg),image:r.photoUrl||r.logoUrl,description:(null===(t=r.businessDescriptionContents)||void 0===t?void 0:t[0])||(null===(o=r.descriptionContents)||void 0===o?void 0:o[0]),telephone:r.mobile||r.phone,email:r.companyEmail||r.email,sameAs:r.companyUrl};return(0,s.jsx)(tb(),{children:(0,s.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(a)}})})}var tC=i(76468);let t_=e=>{let n=new Map(["ceo","board","auditor","procurist","other"].map((e,n)=>[e,n]));return e.sort((e,i)=>{var t,o;return(null!==(t=n.get(e))&&void 0!==t?t:Number.MAX_SAFE_INTEGER)-(null!==(o=n.get(i))&&void 0!==o?o:Number.MAX_SAFE_INTEGER)})},tw=e=>{if(!(null==e?void 0:e.length))return"";let n=e.split("-");return", ".concat(null==n?void 0:n[1],"/").concat(null==n?void 0:n[0])};function tS(e){let{teaser:n,person:i,contact:t}=e,o=(0,N.Z)(),r=(0,z.e)();return(0,s.jsx)(b.ZP,{item:!0,xs:12,md:6,lg:4,children:(0,s.jsxs)(g.Z,{direction:"row",spacing:2,children:[n?(0,s.jsx)(D,{label:o.formatMessage({id:"finderPro.teaser"}),link:"/finderpro",onClick:()=>r("click_locked_content",{click_text:o.formatMessage({id:"finderPro.teaser"}),click_url:"/finderpro",feature_name:"decision_maker_companies",item_name:"finder-pro",item_variant:"",page_type:"profile",profile_type:t.contactType},{dataLayer:!0})}):(0,s.jsx)(F.Z,{children:(0,s.jsx)(e4.Z,{})}),(0,s.jsxs)(g.Z,{children:[(0,s.jsxs)(Z.Z,{component:"h3",variant:"body3",fontWeight:"normal",color:"text.secondary",children:[(0,e5.k)(i.positionText),tw(i.personRegDate)]}),n?(0,s.jsx)(F.Z,{children:(0,s.jsx)(tC.Z,{})}):i.companyName?(0,s.jsxs)(g.Z,{direction:"row",spacing:1,alignItems:"center",children:[(0,s.jsx)(_.Z,{component:q(),href:(0,e7.ZP)({contact:i,decisionPersonOffice:!0}),rel:"nofollow",underline:"hover",color:"inherit",children:(0,s.jsx)(Z.Z,{variant:"body2",component:"span",children:i.companyName})}),(0,s.jsx)(ev.Z,{children:(0,s.jsx)(eR.Z,{})})]}):null,n||i.businessStatus!=x.ZK.OutOfBusiness&&i.businessStatus!==x.ZK.Dormant?null:(0,s.jsx)(R.Z,{sx:{py:1.5,mt:.5,color:"primary.contrastText",bgcolor:"action.disabled",width:"fit-content"},label:o.formatMessage({id:"contact.inactive"})})]})]})})}function tP(e){var n;let i,t,{decisionPersons:o,teaser:r,contact:a,title:c,keyId:l}=e,[p,m]=(0,d.useState)(!1);return c&&o.length>6&&(i=o.slice(0,6),t=o.slice(6)),(0,s.jsxs)(v.Z,{mx:-5,children:[!!c&&(0,s.jsx)(Z.Z,{variant:"h4",component:"h3",pb:2,children:c}),(0,s.jsx)(b.ZP,{container:!0,columnSpacing:4,rowSpacing:2,children:null===(n=i||o)||void 0===n?void 0:n.map((e,n)=>(0,s.jsx)(d.Fragment,{children:(0,s.jsx)(tS,{teaser:r,person:e,contact:a})},l+"-"+n))}),t&&t.length&&(p?(0,s.jsx)(b.ZP,{container:!0,columnSpacing:4,rowSpacing:2,mt:1,children:t.map((e,n)=>(0,s.jsx)(d.Fragment,{children:(0,s.jsx)(tS,{teaser:r,person:e,contact:a})},"hiddenposition-"+l+"-"+n))}):(0,s.jsx)(K.Z,{sx:{pt:2},onClick:()=>m(!0),children:(0,s.jsx)(Z.Z,{variant:"body2",children:(0,s.jsx)(C.Z,{id:"contact.decisionPerson.group.showAll",values:{count:t.length}})})}))]})}function tI(e){let{decisionPersons:n,groupedPositions:i,uniqueCompanies:t,teaser:o,contact:r,onSourcesClick:a}=e,c=(0,z.e)(),l=(0,N.Z)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(g.Z,{direction:"row",justifyContent:"space-between",pt:1,children:[(0,s.jsx)(Z.Z,{variant:"h4",component:"h2",children:(0,s.jsx)(C.Z,{id:"contact.decisionPerson.companyList",values:{amount:t}})}),(0,s.jsx)(H.Z,{onClick:a})]}),i?t_(Object.keys(i)).map((e,n)=>(0,s.jsx)(d.Fragment,{children:(0,s.jsx)(tP,{keyId:"grouped-"+n,title:(0,s.jsx)(C.Z,{id:"contact.decisionPerson.group.".concat(e)}),decisionPersons:i[e],teaser:o,contact:r})},n)):(0,s.jsx)(tP,{decisionPersons:n,teaser:o,contact:r}),o&&(0,s.jsx)(U.Z,{onClick:()=>c("click_locked_content",{click_text:l.formatMessage({id:"finderPro.teaser"}),click_url:"/finderpro",feature_name:"decision_maker_companies",item_name:"finder-pro",item_variant:"",page_type:"profile",profile_type:r.contactType},{dataLayer:!0}),textId:"finderPro.teaser"})]})}function tT(){return(tT=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];
1for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e}).apply(null,arguments)}var tL=function(e){return d.createElement("svg",tT({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),a||(a=d.createElement("path",{d:"m8.74 18.889-2.731-5.806L0 10.444l6.009-2.638L8.74 2l2.731 5.806 6.009 2.638-6.009 2.64zM18.63 22l-1.351-2.917-3.019-1.305 3.019-1.334 1.351-2.888 1.38 2.888L23 17.778l-2.99 1.305z"})))},tM=i(11532);function tF(e){var n;let{uniqueCompanies:i,teaser:t,contact:o}=e,r=(0,N.Z)(),a=(0,E.Z)(),c=(0,z.e)();if(!(null==i?void 0:i.length))return null;let l=i.length,d=[...i].sort((e,n)=>(e.companyTurnover||0)>(n.companyTurnover||0)?-1:1),p=i.reduce((e,n)=>e+(n.companyTurnover||0),0),m=r.formatNumber(1e3*p,{style:"currency",currency:"EUR",notation:"compact"});return(0,s.jsxs)(g.Z,{spacing:3,pt:1,children:[(0,s.jsx)(Z.Z,{variant:"h4",component:"h2",children:(0,s.jsx)(C.Z,{id:"contact.decisionPerson.companySummary",values:{amount:null==i?void 0:i.length}})}),(0,s.jsxs)(g.Z,{direction:a?"column":"row",justifyContent:"space-between",spacing:4,children:[(0,s.jsxs)(g.Z,{direction:"row",spacing:2,children:[t?(0,s.jsx)(D,{label:r.formatMessage({id:"finderPro.teaser"}),link:"/finderpro",onClick:()=>c("click_locked_content",{click_text:r.formatMessage({id:"finderPro.teaser"}
1),click_url:"/finderpro",feature_name:"decision_maker_company_summary",item_name:"finder-pro",item_variant:"",page_type:"profile",profile_type:o.contactType},{dataLayer:!0})}):(0,s.jsx)(F.Z,{children:(0,s.jsx)(n8.Z,{})}),(0,s.jsxs)(g.Z,{children:[(0,s.jsx)(Z.Z,{component:"h3",variant:"body2",color:t?"text.primary":"text.secondary",children:(0,s.jsx)(C.Z,{id:"contact.decisionPerson.companiesSummary.total"})}),t?(0,s.jsx)(F.Z,{sx:{mt:1},children:(0,s.jsx)(tC.Z,{})}):(0,s.jsx)(Z.Z,{mt:.5,fontWeight:500,children:(0,s.jsx)(C.Z,{id:"contact.decisionPerson.companiesSummary.total.count",values:{total:l}})})]})]}),(0,s.jsxs)(g.Z,{direction:"row",spacing:2,children:[t?(0,s.jsx)(D,{label:r.formatMessage({id:"finderPro.teaser"}),link:"/finderpro",onClick:()=>c("click_locked_content",{click_text:r.formatMessage({id:"finderPro.teaser"}),click_url:"/finderpro",feature_name:"decision_maker_company_summary",item_name:"finder-pro",item_variant:"",page_type:"profile",profile_type:o.contactType},{dataLayer:!0})}):(0,s.jsx)(F.Z,{children:(0,s.jsx)(tL,{})}),(0,s.jsxs)(g.Z,{children:[(0,s.jsx)(Z.Z,{component:"h3",variant:"body2",color:t?"text.primary":"text.secondary",children:(0,s.jsx)(C.Z,{id:"contact.decisionPerson.companiesSummary.mostProfit"})}),t?(0,s.jsx)(F.Z,{sx:{mt:1},children:(0,s.jsx)(tC.Z,{})}):(0,s.jsx)(Z.Z,{mt:.5,fontWeight:500,children:null==d?void 0:null===(n=d[0])||void 0===n?void 0:n.companyName})]})]}),(0,s.jsxs)(g.Z,{direction:"row",spacing:2,children:[t?(0,s.jsx)(D,{label:r.formatMessage({id:"finderPro.teaser"}),link:"/finderpro",onClick:()=>c("click_locked_content",{click_text:r.formatMessage({id:"finderPro.teaser"}
1),click_url:"/finderpro",feature_name:"decision_maker_company_summary",item_name:"finder-pro",item_variant:"",page_type:"profile",profile_type:o.contactType},{dataLayer:!0})}):(0,s.jsx)(F.Z,{children:(0,s.jsx)(tM.Z,{})}),(0,s.jsxs)(g.Z,{children:[(0,s.jsx)(Z.Z,{component:"h3",variant:"body2",color:t?"text.primary":"text.secondary",children:(0,s.jsx)(C.Z,{id:"contact.decisionPerson.companiesSummary.totalTurnover"})}),t?(0,s.jsx)(F.Z,{sx:{mt:1},children:(0,s.jsx)(tC.Z,{})}):(0,s.jsx)(Z.Z,{mt:.5,fontWeight:500,children:m})]})]})]})]})}function tN(e){let{companyCount:n,contact:i}=e,t=[...Array(n)],o=(0,N.Z)(),r=(0,z.e)();return(0,s.jsxs)(g.Z,{spacing:6,children:[(0,s.jsxs)(g.Z,{direction:"row",children:[(0,s.jsx)(g.Z,{spacing:3,ml:6,mt:6,mb:3,mr:3,children:t.map((e,n)=>(0,s.jsx)(Z.Z,{variant:"body3",children:(0,s.jsx)(C.Z,{id:"finderPro.teaserChart.company",values:{index:n+1}})},n))}),(0,s.jsxs)(g.Z,{flex:1,direction:"row",justifyContent:"space-between",position:"relative",children:[(0,s.jsxs)(g.Z,{spacing:1,children:[(0,s.jsx)(Z.Z,{variant:"caption",children:"0"}),(0,s.jsx)(v.Z,{flex:1,borderLeft:1})]}),(0,s.jsxs)(g.Z,{spacing:1,alignItems:"center",children:[(0,s.jsx)(Z.Z,{variant:"caption",children:"25"}),(0,s.jsx)(v.Z,{flex:1,borderLeft:1,borderColor:"border.10"})]}),(0,s.jsxs)(g.Z,{spacing:1,alignItems:"center",children:[(0,s.jsx)(Z.Z,{variant:"caption",children:"50"}),(0,s.jsx)(v.Z,{flex:1,borderLeft:1,borderColor:"border.10"})]}),(0,s.jsxs)(g.Z,{spacing:1,alignItems:"center",children:[(0,s.jsx)(Z.Z,{variant:"caption",children:"75"}),(0,s.jsx)(v.Z,{flex:1,borderLeft:1,borderColor:"border.10"})]}),(0,s.jsxs)(g.Z,{spacing:1,alignItems:"flex-end",children:[(0,s.jsx)(Z.Z,{variant:"caption",children:"100"}),(0,s.jsx)(v.Z,{flex:1,borderLeft:1,borderColor:"border.10"})]}),(0,s.jsx)(v.Z,{position:"absolute",left:0,right:0,top:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",children:(0,s.jsx)(D,{size:"large",label:o.formatMessage({id:"finderPro.teaser"}),link:"/finderpro",onClick:()=>r("click_locked_content",{click_text:o.formatMessage({id:"finderPro.teaser"}),click_url:"/finderpro",feature_name:"decision_maker_company_comparison",item_name:"finder-pro",item_variant:"",page_type:"profile",profile_type:i.contactType},{dataLayer:!0})})})]})]}),(0,s.jsx)(U.Z,{onClick:()=>r("click_locked_content",{click_text:o.formatMessage({id:"finderPro.teaser"}),click_url:"/finderpro",feature_name:"decision_maker_company_comparison",item_name:"finder-pro",item_variant:"",page_type:"profile",profile_type:i.contactType},{dataLayer:!0}),textId:"finderPro.teaser"})]})}function tO(e){let{uniqueCompanies:n,teaser:i,contact:t}=e,[o,r]=(0,d.useState)(!1);if(!(null==n?void 0:n.length))return null;let a=[...n].filter(e=>e.companyTurnover).sort((e,n)=>(e.companyTurnover||0)>(n.companyTurnover||0)?-1:1),c=o?a.length:5,l=a.slice(0,c).map(e=>{let n=e.companyName;return n.length>30&&(n=n.slice(0,30)+"..."),{key:n,value:(e.companyTurnover||0)/1e3}});return(0,s.jsxs)(g.Z,{spacing:2,pt:4,children:[(0,s.jsxs)(g.Z,{children:[(0,s.jsx)(Z.Z,{variant:"h4",component:"h2",children:(0,s.jsx)(C.Z,{id:"contact.decisionPerson.turnovers"})}),(0,s.jsx)(Z.Z,{variant:"body3",color:"text.secondary",children:(0,s.jsx)(C.Z,{id:"contact.decisionPerson.turnovers.2"})})]}),i?(0,s.jsx)(tN,{companyCount:null==l?void 0:l.length,contact:t}):(0,s.jsxs)(g.Z,{children:[(0,s.jsx)(j.ZP,{data:l,flip:!0}),a.length-5>0&&(0,s.jsx)(v.Z,{children:(0,s.jsx)(K.Z,{onClick:()=>r(!o),size:"small",startIcon:o?(0,s.jsx)(F.Z,{color:"primary",children:"keyboard_arrow_up"}):(0,s.jsx)(F.Z,{color:"primary",children:"keyboard_arrow_down"}),sx:{display:"flex",mt:1.5},children:(0,s.jsxs)(Z.Z,{variant:"body3",color:"primary.main",children:[(0,s.jsx)(C.Z,{id:o?"showLess":"contact.decisionPerson.chart.more"})," ","(",a.length-5,")"]})})})]})]})}var tD=i(36977);function tR(e){let{isMobile:n,hasPro:i}=e;return i?(0,s.jsx)(iq.Z,{visualScheme:"paper",title:"ads.title.decisionPerson",body:n?void 0:"ads.content.decisionPerson",linkText:"ads.link.decisionPerson",link:"/finderpro",image:"https://ucarecdn.com/c5900224-40fa-4259-87cd-cded22a56edc/-/preview/",forceNarrow:!n,imageOnLeft:n,onClick:()=>(0,x.ec)("click_banner",{banner_content:"finderpro"})}):(0,s.jsx)(iq.Z,{visualScheme:"lightPro",title:"ads.title.teaser",body:n?void 0:"ads.content.teaser",linkText:"ads.link.teaser",link:"/finderpro",image:"https://ucarecdn.com/8c21409d-bab2-419e-b32c-6c48b078308d/-/preview/1000x983/",forceNarrow:!n,imageOnLeft:n,onClick:()=>(0,x.ec)("click_banner",{banner_content:"finderpro"})})}var tz=i(20390);function tB(e){let{positions:n,onSourcesClick:i}=e;return(0,s.jsxs)(es.Z,{sx:{backgroundColor:"secondary.main",p:3,pb:4},children:[(0,s.jsxs)(v.Z,{display:"flex",justifyContent:"space-between",alignItems:{xs:"start",md:"center"},mb:2.5,children:[(0,s.jsx)(Z.Z,{variant:"h4",component:"h2",children:(0,s.jsx)(C.Z,{id:"contact.decisionPerson.phoneList"})}),(0,s.jsx)(H.Z,{onClick:i})]}),(0,s.jsx)(b.ZP,{container:!0,rowSpacing:2,columnSpacing:3,children:n.map((e,n)=>(0,s.jsx)(b.ZP,{item:!0,xs:12,md:4,children:(0,s.jsxs)(g.Z,{direction:"row",spacing:2,children:[(0,s.jsx)(ev.Z,{color:"primary",children:(0,s.jsx)(iF.Z,{})}),(0,s.jsxs)(g.Z,{p:0,children:[(0,s.jsx)(_.Z,{color:"primary",href:"tel:".concat(e.phone.replaceAll(" ","")),underline:"hover",children:(0,s.jsx)(Z.Z,{variant:"body2",color:"primary",children:e.phone})}),(0,s.jsx)(v.Z,{display:"flex",mt:.5,children:(0,s.jsx)(Z.Z,{variant:"body3",children:e.positionText})}),(0,s.jsxs)(g.Z,{direction:"row",spacing:1,alignItems:"center",children:[(0,s.jsx)(_.Z,{sx:{display:"flex",flexDirection:"row"},href:(0,e7.ZP)({contact:e,decisionPersonOffice:!0}),component:q(),underline:"hover",color:"text.primary",fontWeight:500,children:(0,s.jsx)(Z.Z,{variant:"body2",children:e.companyName})}),(0,s.jsx)(ev.Z,{children:(0,s.jsx)(eR.Z,{})})]})]})]})}
1,n))})]})}var tE=i(78930),tA=i(31636);function tW(e){let{hasPro:n,hasFinderConnect:i}=e;return n&&i?null:(0,s.jsxs)(g.Z,{direction:{xs:"column",sm:"row"},p:2,borderRadius:2,sx:tA.Tl,justifyContent:"space-between",alignItems:{xs:"start",sm:"center"},children:[(0,s.jsx)(Z.Z,{variant:"h5",component:"span",fontSize:"19px !important",fontWeight:500,display:"inline-flex",alignItems:"last baseline",flexDirection:{xs:"column",lg:"row"},children:(0,s.jsx)(C.Z,{id:"ads.title.decisionPerson.".concat(n&&!i?"onlyPro":"connect"),values:{finderConnectLogo:(0,s.jsxs)(g.Z,{spacing:1,px:{xs:0,lg:1.25},py:{xs:1.25,lg:0},direction:"row",alignItems:"flex-end",display:"inline-flex",children:[(0,s.jsx)(el(),{src:"/finder-black.svg",width:78,height:23,alt:"Black Finder logo"}),(0,s.jsx)(tE.Z,{}),(0,s.jsx)(Z.Z,{variant:"h4",component:"span",color:"primary.main",lineHeight:"100%",children:(0,s.jsx)(C.Z,{id:"ads.yhteysUpgrade.productName"})})]})}})}),(0,s.jsx)(K.Z,{href:"/finderpro",color:"primary",variant:"contained",size:"large",sx:{ml:{xs:0,sm:2},mt:{xs:2,sm:0},maxHeight:"42px"},children:(0,s.jsx)(C.Z,{id:"ads.title.decisionPerson.button"})})]})}let tU=i2()(()=>Promise.resolve().then(i.bind(i,42035)),{loadableGenerated:{webpack:()=>[42035]},ssr:!1});function tY(e){let{contact:n}=e,{data:i}=(0,u.p)(),t=(0,E.Z)(),{hasFinderPro:o,hasFinderConnect:r,isFree:a}=(0,iR.K)(null==n?void 0:n.finderIpUser),[c,l]=(0,d.useState)(!1);if(!n)return null;let p=()=>l(!0),m=[...(null==n?void 0:n.decisionPersons)||[],...(null==n?void 0:n.finderAdditionalPositions)||[]],h=Object.values(m.reduce((e,n)=>({...e,[n.positionId]:(0,e5.k)(n.positionText)}),{})),f=Object.values(null==m?void 0:m.reduce((e,n)=>({...e,[n.companyName]:{companyTurnover:Number(n.companyTurnover),companyName:n.companyName}}),{})),j=n.name.split(" ")[0]+" "+(n.lastName||n.personLastName),y=m.length>0?m.reduce((e,n)=>{let i="other";switch(!0){case nr.includes(n.positionId):i="ceo";break;case ns.includes(n.positionId):i="board";break;case nd.includes(n.positionId):i="auditor";break;case nc.includes(n.positionId):i="procurist"}return{...e,[i]:[...e[i]||[],n]}},{}):void 0,b=!!n.phone||n.teasePositionsWithPhone;return void 0===i?null:(0,s.jsxs)(g.Z,{children:[a&&(0,s.jsx)("span",{id:"scroll-top",children:(0,s.jsx)(tU,{adId:W.f.ProfileDesktopDecisionPerson,minWidth:"md",sx:{my:5}})}),(0,s.jsxs)(g.Z,{display:"flex",justifyContent:"space-between",direction:"row",children:[(0,s.jsxs)(g.Z,{spacing:4,mt:3,width:"100%",maxWidth:"759px",children:[(0,s.jsxs)(g.Z,{spacing:3,children:[(0,s.jsx)(Z.Z,{variant:"h1",children:n.name}),(0,s.jsx)(Z.Z,{component:"h2",variant:"body1",style:{marginTop:"8px"},children:(0,s.jsxs)(g.Z,{direction:t?"column":"row",spacing:1,children:[h.slice(0,2).map((e,i)=>(0,s.jsxs)(d.Fragment,{children:[0!==i&&!t&&(0,s.jsx)("span",{children:"\xb7"}),(0,s.jsx)("span",{children:e})]},"title-".concat(n.id,"-").concat(i))),h.length>2&&(0,s.jsxs)(g.Z,{spacing:1,ml:t?0:1,mt:t?0:1,direction:t?"column":"row",children:[!t&&(0,s.jsx)("span",{children:"\xb7"}),(0,s.jsx)("span",{children:(0,s.jsx)(C.Z,{id:"plusOthers",values:{number:h.length-2}})})]})]})})]}),(0,s.jsx)(ts,{contact:n,hasFinderPro:o,phoneDisabled:!r}),b&&(0,s.jsx)(tW,{hasFinderConnect:r,hasPro:o}),r&&n.positionsWithPhone&&(0,s.jsx)(tB,{positions:n.positionsWithPhone,onSourcesClick:p}),(0,s.jsx)(tI,{decisionPersons:m,uniqueCompanies:f.length,teaser:!o,contact:n,groupedPositions:y,onSourcesClick:p}),t&&!r&&(0,s.jsx)(tR,{isMobile:t,hasPro:!o}),(null==m?void 0:m.length)>1&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(tF,{uniqueCompanies:f,teaser:!o,contact:n}),(0,s.jsx)(tO,{uniqueCompanies:f,teaser:!o,contact:n})]})]}),!t&&(0,s.jsx)(v.Z,{ml:8,width:300,minWidth:300,mt:0,children:(0,s.jsxs)(tD.Z,{enabled:!0,top:"#scroll-top",bottomBoundary:"#scroll-boundary",children:[a&&(0,s.jsx)(tU,{adId:W.f.ProfileDesktopDecisionPersonSticky,minWidth:"md",mb:6.5,width:300,sx:{minWidth:300}}),!r&&(0,s.jsx)(tR,{isMobile:t,hasPro:!o})]})})]}),(0,s.jsx)("div",{id:"scroll-boundary"}),(0,s.jsx)(S.Z,{sx:{mb:6,mt:7}}),r&&o&&(0,s.jsx)(iq.Z,{visualScheme:"blue",title:"liftbox.decisionMaker.title",body:"liftbox.decisionMaker.content",linkText:"liftbox.decisionMaker.link",link:"/search/?what=".concat((0,tz.U)(j)),image:"https://ucarecdn.com/eb8576cc-27d5-4e35-a70c-b3dc2d5cc9de/-/preview/1000x747/-/crop/800x500/50p,85p/",onClick:()=>(0,x.ec)("click_banner",{banner_content:"search"})}),(0,s.jsx)(S.Z,{sx:{mt:7}}),(0,s.jsx)(iG,{mt:5,mb:6,onClickYes:()=>(0,x.ec)("click_feedback_thumb",{feedback:"positive",profile_id:n.id,profile_name:"person",profile_type:n.contactType,customer_type:n.customerType,page_type:"profile"}),onClickNo:()=>(0,x.ec)("click_feedback_thumb",{feedback:"negative",profile_id:n.id,profile_name:"person",profile_type:n.contactType,customer_type:n.customerType,page_type:"profile"})}),(0,s.jsx)(i3.Z,{visible:c,sources:ic.IU,onToggle:()=>l(!c)})]})}
1function tH(e){let{contact:n,hasPro:i}=e,t=(0,ej.Z)(),o=(0,N.Z)(),{ownerName:r,operatorName:a,hasOwnerName:c,hasOperatorName:l}=n,d=c&&!i,p=l&&!i;return a||r||d||p?(0,s.jsxs)(g.Z,{direction:"row",my:{xs:3,md:5},spacing:4.5,divider:(0,s.jsx)(S.Z,{orientation:"vertical",flexItem:!0}),children:[(r||d)&&(0,s.jsxs)(g.Z,{direction:"row",children:[d&&(0,s.jsx)(v.Z,{mt:.5,mr:2,children:(0,s.jsx)(D,{label:o.formatMessage({id:"finderPro.teaser"}),link:"/finderpro"})}),(0,s.jsxs)(g.Z,{children:[(0,s.jsx)(Z.Z,{color:t.palette.text.secondary,variant:"body2",mb:0,children:(0,s.jsx)(C.Z,{id:"contact.owner"})}),(0,s.jsx)(Z.Z,{fontWeight:500,variant:"body1",children:d?(0,s.jsx)(F.Z,{children:(0,s.jsx)(tC.Z,{})}):r})]})]}),(a||p)&&(0,s.jsxs)(g.Z,{direction:"row",children:[p&&(0,s.jsx)(v.Z,{mt:.5,mr:2,children:(0,s.jsx)(D,{label:o.formatMessage({id:"finderPro.teaser"}),link:"/finderpro"})}),(0,s.jsxs)(g.Z,{children:[(0,s.jsx)(Z.Z,{color:t.palette.text.secondary,variant:"body2",mb:0,children:(0,s.jsx)(C.Z,{id:"contact.operator"})}),(0,s.jsx)(Z.Z,{fontWeight:500,variant:"body1",children:p?(0,s.jsx)(F.Z,{children:(0,s.jsx)(tC.Z,{})}):a})]})]})]}):null}async function tK(e){let{what:n,token:i,facets:t}=e,o=await (0,Q.Z)({endpoint:"/fofisearch-count",queryParams:{searchTerm:encodeURIComponent(n),facets:t},token:i});return!o||o.error?(console.log("Search count fetch failed"),null):o}var tG=i(89211);function tq(e){let{contact:n,compact:i=!1,showTopDivider:t=!0,showBottomDivider:o=!1,displayFirstName:r=!1,renderCallback:a=()=>{},image:c="https://ucarecdn.com/48d714a4-2b81-4811-8b15-33425e8f34eb/-/scale_crop/170x170/27p,10p/-/quality/smart_retina/-/format/auto/",vertical:p}=e,[m,h]=(0,d.useState)(!1),u=(0,ea.Z)((0,ej.Z)().breakpoints.down("lg")),f=p&&!u,j=(0,tG.P)(n),{data:y}=function(e){let{what:n,facets:i}=e,t=["searchCount",n];return(0,J.a)({queryFn:()=>tK({what:n,facets:i}),queryKey:t,keepPreviousData:!0,staleTime:36e5})}({what:j?(null==n?void 0:n.name)||"":"".concat(null==n?void 0:n.mainLineOfBusinessName," ").concat((null==n?void 0:n.operationalAreaMatch)?null==n?void 0:n.operationalAreaMatch:(null==n?void 0:n.cityName)||""),facets:j?[x.uC.Person]:[x.uC.Company]}),b=(0,l.useRouter)(),k=(null==y?void 0:y.count)?(null==y?void 0:y.count)-1:0,_=r&&(null==n?void 0:n.firstName)||(null==n?void 0:n.name),w=(null==n?void 0:n.source)===x.gj.CrowdsourcedCallerId;(0,d.useEffect)(()=>{let e=!!(_&&k&&!w);h(e),a(e)},[_,k,w]);let P="finder"===eJ.Z.service,I=P?"/search?what=":"/haku/";if(!m)return null;let T=(0,s.jsxs)(x.sn,{component:q(),onClick:function(){(0,x.ec)("click_back_to_search_results",{profile_type:x.uC.Person}),"true"===b.query.internalNav?((0,x.U3)(n.name),b.back()):b.push("".concat(I).concat(n.name))},variant:"contained",color:j||P?"primary":"company",sx:{alignSelf:u||i||f?"stretch":"flex-start",marginTop:2,maxHeight:"52px"},href:j?"".concat(I).concat(n.name):"".concat(I).concat(n.mainLineOfBusinessName," ").concat(n.operationalAreaMatch?n.operationalAreaMatch:n.cityName||""),event:"search",children:[(0,s.jsx)(F.Z,{sx:{marginRight:1},children:"chevron_left"}),(0,s.jsx)(C.Z,{id:"contact.incorrectResultPrompt.button"})]});return i?(0,s.jsx)(tV,{contact:n,otherSimilarResultsCount:k,button:T,isPerson:j,isMobile:u,displayName:_}):(0,s.jsxs)(v.Z,{width:"100%",children:[t&&(0,s.jsx)(S.Z,{sx:{my:4}}),(0,s.jsxs)(g.Z,{py:f?1:{xs:2,md:1},pl:f?1:{xs:2,md:3},pr:{xs:2,md:1},sx:{backgroundColor:"background.paper"},borderRadius:1,children:[(0,s.jsxs)(g.Z,{direction:f?"column-reverse":"row",justifyContent:"space-between",children:[(0,s.jsxs)(g.Z,{direction:"column",gap:"12px",py:f?2:{xs:0,md:2},children:[(0,s.jsx)(Z.Z,{variant:"h4",component:"h1",color:j||P?"primary":"company.main",children:(0,s.jsx)(C.Z,{id:j?"contact.incorrectResultPrompt.person.title":"contact.incorrectResultPrompt.company.title",values:{name:_}})}),(0,s.jsx)(Z.Z,{variant:"body2",children:(0,s.jsx)(C.Z,{id:j?"contact.incorrectResultPrompt.person.text":n.operationalAreaMatch||n.cityName?"contact.incorrectResultPrompt.company.text":"contact.incorrectResultPrompt.company.text.noArea",values:j?{count:k}:{count:k,lineOfBusiness:n.mainLineOfBusinessName,area:n.operationalAreaMatch?n.operationalAreaMatch:n.cityName}})}),!u&&T]}),(0,s.jsx)(v.Z,{position:"relative",height:f?175:void 0,children:(0,s.jsx)(el(),{...f?{objectFit:"contain",fill:!0}:{height:u?85:163,width:u?85:163},alt:"similarSearchesImage",style:{borderRadius:8},src:c})})]}),u&&T]}),o&&(0,s.jsx)(S.Z,{sx:{my:4}})]})}
1function tV(e){let{contact:n,otherSimilarResultsCount:i,button:t,isPerson:o,isMobile:r,displayName:a}=e;return r?(0,s.jsxs)(g.Z,{direction:"column",gap:3,padding:"12px",borderRadius:1,bgcolor:"background.paper",children:[(0,s.jsxs)(g.Z,{direction:"row",gap:"12px",alignSelf:"stretch",justifySelf:"stretch",children:[(0,s.jsx)(tQ,{contact:n,isPerson:o,otherSimilarResultsCount:i,displayName:a}),(0,s.jsx)(tJ,{})]}),t]}):(0,s.jsxs)(g.Z,{direction:"column",alignSelf:"stretch",gap:3,borderRadius:1,padding:"8px 8px 24px 8px",bgcolor:"background.paper",children:[(0,s.jsx)(tJ,{}),(0,s.jsx)(tQ,{contact:n,isPerson:o,otherSimilarResultsCount:i,displayName:a,button:t})]})}function tJ(){return(0,s.jsx)(v.Z,{flexBasis:0,flexGrow:1,sx:{backgroundImage:"url('https://ucarecdn.com/48d714a4-2b81-4811-8b15-33425e8f34eb/-/quality/smart_retina/-/format/auto/')",backgroundSize:"cover",backgroundPosition:"center",borderRadius:"8px"}})}function tQ(e){let{contact:n,isPerson:i,otherSimilarResultsCount:t,displayName:o,button:r}=e;return(0,s.jsx)(g.Z,{direction:"column",padding:"0px 8px",gap:3,flexGrow:{xs:2,md:0},flexBasis:{xs:0,md:void 0},children:(0,s.jsxs)(g.Z,{direction:"column",gap:"12px",children:[(0,s.jsx)(Z.Z,{variant:"h4",component:"h1",color:"primary",children:(0,s.jsx)(C.Z,{id:i?"contact.incorrectResultPrompt.person.title":"contact.incorrectResultPrompt.company.title",values:{name:o}})}),(0,s.jsx)(Z.Z,{variant:"body2",children:(0,s.jsx)(C.Z,{id:i?"contact.incorrectResultPrompt.person.text":n.operationalAreaMatch||n.cityName?"contact.incorrectResultPrompt.company.text":"contact.incorrectResultPrompt.company.text.noArea",values:i?{count:t}:{count:t,lineOfBusiness:n.mainLineOfBusinessName,area:n.operationalAreaMatch?n.operationalAreaMatch:n.cityName}})}),r]})})}var t$=i(11257),tX=i(57018),t0=i(76163);function t1(e){var n;let{contact:i}=e;return(0,ti.Hf)(i)?(0,s.jsxs)(v.Z,{mt:2,children:[(0,s.jsx)(Z.Z,{color:"text.secondary",variant:"body1",mb:1,children:(0,s.jsx)(C.Z,{id:"contact.crowdsourcedCallerId"})}),(null===(n=i.classification)||void 0===n?void 0:n.reportedByUser)?(0,s.jsxs)(g.Z,{direction:"row",alignItems:"center",spacing:.5,children:[(0,s.jsx)(t0.Z,{sx:{color:"primary.main",fontSize:20}}),(0,s.jsx)(Z.Z,{color:"text.secondary",variant:"body1",children:(0,s.jsx)(C.Z,{id:"contact.reportedByUser"})})]}):(0,s.jsx)(Z.Z,{color:"text.secondary",variant:"body1",children:(0,s.jsx)(C.Z,{id:"contact.notReportedByUser"})})]}):null}let t2="https://fonecta.fi";function t3(e){let{contact:n}=e,i=(0,N.Z)(),t=(0,z.e)(),[o,r]=(0,d.useState)(!1),a=(0,ea.Z)((0,ej.Z)().breakpoints.down("lg")),c=(0,ea.Z)((0,ej.Z)().breakpoints.down("md")),{ownerName:l,operatorName:p,hasOwnerName:m,hasOperatorName:h,hasAddress:u,finderIpUser:f}=n,{hasFinderPro:j,hasFinderConnect:y}=(0,iR.K)(f),k=(0,ti.N1)(n),w=(0,ti.nM)(n),P=(0,ti.Hf)(n),I=w?i.formatMessage({id:w}):n.name;if(!n)return null;let T=()=>"".concat(t2,"/profiili/").concat(n4()(n.name,{lower:!0}),"/").concat(n.id),L=u&&!j,M=m&&!j,O=h&&!j,R=p||l||M||O;return(0,s.jsx)(g.Z,{direction:"column",children:(0,s.jsxs)(g.Z,{direction:"row",children:[(0,s.jsx)(g.Z,{mt:5.5,justifyContent:"space-between",direction:"column",display:a?"block":"flex",flexGrow:1,children:(0,s.jsxs)(b.ZP,{item:!0,xs:12,lg:8,maxWidth:P?void 0:"700px",children:[(0,s.jsxs)(g.Z,{direction:"row",justifyContent:"space-between",alignItems:"flex-start",spacing:2,mb:a?4:P?0:5,children:[(0,s.jsx)(Z.Z,{variant:"h1",children:I}),k&&(0,s.jsx)(tX.Z,{Image:k,size:a?72:96})]}),(0,s.jsx)(ts,{contact:n,hasFinderPro:j,phoneDisabled:!y}),(0,s.jsx)(t1,{contact:n}),(0,s.jsx)(S.Z,{sx:{display:{xs:"flex",md:"none"},mb:{xs:0,md:4},mt:3}}),(0,s.jsxs)(g.Z,{direction:{xs:"column",md:"row"},children:[!P&&(0,s.jsx)(tH,{contact:n,hasPro:j}),(0,s.jsxs)(v.Z,{ml:{xs:0,md:R?4.5:0},mt:{xs:0,md:5},mb:{xs:2,md:5},display:"flex",children:[R&&(0,s.jsx)(S.Z,{sx:{display:{xs:"none",md:"flex"}},orientation:"vertical"}),(0,s.jsxs)(g.Z,{direction:{xs:"row",md:"column"},ml:{xs:0,md:R?4.5:0},children:[(0,s.jsxs)(Z.Z,{color:"text.secondary",variant:"body2",mb:.75,children:[(0,s.jsx)(C.Z,{id:"sources.source"}),":"]}),(0,s.jsx)(_.Z,{color:"inherit",href:T(),"aria-label":"Fonecta Caller",alignContent:"center",onClick:()=>t("clicked_caller_web_cta",{click_text:"Fonecta Caller logo",cta_description:i.formatMessage({id:"sources.source"}),click_url:T(),page_type:(0,x.C2)()}),children:(0,s.jsxs)(g.Z,{direction:"row",ml:{xs:1,md:0},children:[(0,s.jsx)(n2.j,{}),(0,s.jsx)(ev.Z,{sx:{marginTop:"-4px",marginLeft:.5},children:(0,s.jsx)(eR.Z,{})})]})})]})]})]}),(n.address||L)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(S.Z,{sx:{mb:{xs:3,md:5}}}),(0,s.jsx)(Z.Z,{variant:"h4",component:"h2",children:(0,s.jsx)(C.Z,{id:"contact.address"})}),(0,s.jsx)(g.Z,{direction:"row",mt:L?2:0,children:L?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(v.Z,{mr:2,children:(0,s.jsx)(D,{label:i.formatMessage({id:"finderPro.teaser"}),link:"/finderpro"})}),(0,s.jsx)(Z.Z,{mt:.5,mb:2,variant:"body2",children:(0,s.jsx)(F.Z,{children:(0,s.jsx)(tC.Z,{})})})]}):(0,s.jsx)(_.Z,{mt:.5,mb:2,color:"inherit",underline:"hover",href:(()=>
1{if(n.address){let e=encodeURI([n.address.streetAddress,n.address.postalCode,n.address.postOffice].join(" "));return"".concat(t2,"/kartat/").concat(e)}})(),onClick:()=>(0,x.ec)("click_show_on_map"),children:(0,s.jsxs)(Z.Z,{variant:"body2",children:[(0,em.T)(n.address),(0,s.jsx)(F.Z,{sx:{ml:.5,my:-.8,fontSize:"20px"},children:"location_on"})]})})}),(0,s.jsx)(S.Z,{sx:{mt:{xs:1,md:4}}})]}),c&&o&&(0,s.jsx)(v.Z,{mt:3,children:(0,s.jsx)(t$.Z,{isMobile:c,hasFinderPro:j})}),(0,s.jsx)(v.Z,{mt:{xs:3,md:5},children:(0,s.jsx)(tq,{contact:n,showTopDivider:!1,renderCallback:e=>{r(!e)},image:"https://ucarecdn.com/8c21409d-bab2-419e-b32c-6c48b078308d/-/preview/1000x983/",displayFirstName:!0})})]})}),!c&&(0,s.jsx)(v.Z,{ml:8,width:300,minWidth:300,mt:3,children:(0,s.jsx)(t$.Z,{isMobile:c,hasFinderPro:j})})]})})}function t4(e){let{contact:n}=e,[i,t]=(0,d.useState)(!1),o=(0,ea.Z)((0,ej.Z)().breakpoints.down("lg")),r=(0,ea.Z)((0,ej.Z)().breakpoints.down("md")),{hasFinderPro:a,hasFinderConnect:c}=(0,iR.K)(null==n?void 0:n.finderIpUser);return n?(0,s.jsx)(g.Z,{direction:"column",children:(0,s.jsxs)(g.Z,{direction:"row",children:[(0,s.jsx)(g.Z,{mt:5.5,justifyContent:"space-between",direction:"column",display:o?"block":"flex",flexGrow:1,children:(0,s.jsxs)(b.ZP,{item:!0,xs:12,lg:8,maxWidth:"700px",children:[(0,s.jsx)(g.Z,{direction:"row",justifyContent:"space-between",mb:o?4:5,children:(0,s.jsx)(Z.Z,{variant:"h1",children:n.name})}),(0,s.jsx)(ts,{contact:n,hasFinderPro:a,phoneDisabled:!c}),!n.teaser&&(0,s.jsx)(v.Z,{my:{xs:4,md:5},children:(0,s.jsx)(Z.Z,{variant:"body1",color:"text.secondary",children:(0,s.jsx)(C.Z,{id:"contact.spam.body"})})}),r&&i&&(0,s.jsx)(v.Z,{mt:3,children:(0,s.jsx)(t$.Z,{isMobile:r,hasFinderPro:a})}),(0,s.jsx)(v.Z,{mt:{xs:3,md:5},children:(0,s.jsx)(tq,{contact:n,showTopDivider:!1,renderCallback:e=>{t(!e)},image:"https://ucarecdn.com/8c21409d-bab2-419e-b32c-6c48b078308d/-/preview/1000x983/",displayFirstName:!0})})]})}),!r&&(0,s.jsx)(v.Z,{ml:8,width:300,minWidth:300,mt:3,children:(0,s.jsx)(t$.Z,{isMobile:r,hasFinderPro:a})})]})}):null}function t5(e){let{contact:n}=e,i=(0,z.e)();(0,d.useEffect)(()=>{n&&((0,x.YY)(n),i("view_profile",{clean_url:(0,x.k0)(),profile_type:n.contactType},{dataLayer:!0}),((null==n?void 0:n.contactType)!==x.uC.Person||(null==n?void 0:n.customerType)===x.I2.PLUS)&&(0,x.K)("fc_view_contact",n))},[]);let t=[x.uC.Service,x.uC.NumberSearch].includes(null==n?void 0:n.contactType);return n?n.contactType===x.uC.DecisionPerson?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(tk,{contact:n}),(0,s.jsx)(tY,{contact:n})]}):n.contactType===x.uC.Spam?(0,s.jsx)(t4,{contact:n}):(0,tG.P)(n)||t?n.customerType!==x.I2.PLUS?(0,s.jsx)(t3,{contact:n}):(0,s.jsx)(tZ,{contact:n}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(tk,{contact:n}),(0,s.jsx)(i6,{contact:n})]}):null}var t8=i(41414),t7=i(85540),t9=i(95967),t6=i(24764);let oe=["oyj","oy","ry","r.y.","ky","ay","ab","abp","tmi","t:mi","lkv","ltd","plc","inc","inc.","gmbh"],on=e=>e.split(" ").filter(e=>!oe.includes(e.toLowerCase())).join(" ");var oi=i(73575),ot=i(66628);let oo=e=>e?(0,e7.ZP)({contact:e}):void 0,or=(e,n,i,t)=>x.uC.Company||n===x.uC.CompanyAll||n===x.uC.Office?function(e,n,i){let t=on((null==i?void 0:i.name)||""),o="short";return t.length>=20?o="long":t.length>11&&(o="mid"),n.formatMessage({id:"contact.".concat(e,".company.").concat(o)},{name:t})}(e,i,t):function(e,n,i){let t=(null==i?void 0:i.name)||"",o=t.length,r="short";return"title"===e?o>=29?r="extraLong":o>=23?r="long":o>=13&&(r="mid"):o>=25?r="long":o>=18&&(r="mid"),n.formatMessage({id:"contact.".concat(e,".person.").concat(r)},{name:t})}(e,i,t);var oa=!0;function os(e){let{userData:n}=e,i=(0,l.useRouter)(),t=(0,E.Z)(),o=(0,N.Z)(),{id:r}=i.query,{data:a}=(0,u.p)(),{data:j}=(0,h.N)({id:r}),{canLoadInterstitials:y,loadInterstitialAds:Z}=(0,oi.Ny)();(0,d.useEffect)(()=>{!n||(null==a?void 0:a.isSuper)||f.Z.setQueryData(["user"],{...a,...n})},[n,a]),(0,d.useEffect)(()=>{t&&y&&(0,x.bZ)(j)&&Z()},[y,j,t]);let v=null==j?void 0:j.name;return(0,s.jsxs)(t7.Z,{children:[(0,s.jsx)(t6.Z,{title:or("seoTitle",null==j?void 0:j.contactType,o,j),description:or("seoMeta",null==j?void 0:j.contactType,o,j),contact:j,canonical:oo(j)}),(0,s.jsx)(m.Z,{query:"",showUserMenu:!0,disableHeadroom:(null==j?void 0:j.contactType)!==x.uC.Person}),(0,s.jsxs)(c.Z,{fixed:!0,children:[(0,s.jsxs)(ot.a,{children:[(0,s.jsx)(ot._,{text:o.formatMessage({id:"search.results"}),link:"/search?what=".concat(encodeURIComponent(v||""))}),((null==j?void 0:j.contactType)===x.uC.Company||(null==j?void 0:j.contactType)===x.uC.Office)&&!t&&(0,s.jsxs)(s.Fragment,{children:[j.cityName&&(0,s.jsx)(ot._,{text:j.cityName,link:"/search?what=".concat(encodeURIComponent(j.cityName))}),j.mainLineOfBusinessName&&(0,s.jsx)(ot._,{text:j.mainLineOfBusinessName,link:"/search?what=".concat(encodeURIComponent((j.cityName?j.cityName+" ":"")+j.mainLineOfBusinessName))})]}),v&&(0,s.jsx)(ot._,{text:v,isMobile:t})]}),(0,s.jsx)(t9.Z,{}),j&&(0,s.jsx)(t5,{contact:j}),(0,s.jsx)(t8.Z,{}),(0,s.jsx)(p.Z,{})]})]})}},15810:function(e,n,i){i.d(n,{j:function(){return o}});var t=i(52322);let o=e=>{let{color:n="#242424"}=e;return(0,t.jsx)("svg",{width:"117",height:"15",viewBox:"0 0 117 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M0.2 14L2.64 0.199999H11.04L10.5 3.2H5.5L5.04 5.8H9.44L8.92 8.8H4.52L3.6 14H0.2ZM13.5788 14.2C10.7788 14.2 9.63875 13 9.63875 10.6C9.63875 10.26 9.67875 9.76 9.73875 9.36L9.81875 8.84C10.3388 5.42 12.4788 4 14.5188 4C16.9388 4 18.3188 5.16 18.3188 7.56C18.3188 7.92 18.2788 8.48 18.2388 8.74L18.1388 9.36C17.5788 12.78 15.5388 14.2 13.5788 14.2ZM13.6788 11.2C13.8988 11.2 14.2188 11.16 14.3587 11.1C14.4788 10.94 14.7588 10.38 14.9188 9.5L15.0588 8.7C15.1188 8.4 15.1388 8.12 15.1388 7.94C15.1388 7.28 14.8988 7 14.2988 7C13.9788 7 13.7588 7.04 13.5788 7.12C13.3988 7.38 13.1988 7.92 13.0588 8.7L12.9388 9.4C12.8988 9.6 12.8788 9.9 12.8788 10.04C12.8788 10.92 13.1588 11.2 13.6788 11.2ZM18.7133 14L20.3933 4.48L23.6533 4.08L23.4933 5.06C24.4933 4.58 25.7933 4 26.2133 4C27.7733 4 28.3133 4.84 28.3133 6.1C28.3133 6.36 28.2533 6.86 28.2133 7.14L27.0133 14H23.8133L24.8533 8.08C24.9333 7.48 24.8533 7.1 24.1333 7.1C23.7733 7.1 23.6733 7.14 23.0933 7.28L21.9133 14H18.7133ZM33.3309 14.2C30.5509 14.2 29.2109 12.88 29.2109 10.62C29.2109 10.3 29.2509 9.84 29.2909 9.58L29.4109 8.9C29.9309
16 31.9909 4 34.2109 4C36.5509 4 37.6309 5.46 37.6309 7.62C37.6309 7.96 37.5909 8.44 37.5309 8.74L37.2509 10.34H32.3709C32.3709 10.38 32.3709 10.42 32.3709 10.46C32.4109 10.82 32.5909 11.2 33.6909 11.2C34.7109 11.2 35.8109 10.98 35.8109 10.98L36.3509 13.58C35.5509 13.98 34.2509 14.2 33.3309 14.2ZM32.6909 8.54L34.4509 8.38C34.4909 8.18 34.5109 7.98 34.5109 7.82C34.5109 7.3 34.3309 7 33.8509 7C33.6109 7 33.2709 7.06 33.1709 7.12C33.0309 7.32 32.8509 7.72 32.6909 8.54ZM42.5702 14.2C40.1702 14.2 38.4302 13.06 38.4302 10.5C38.4302 10.34 38.4702 9.76 38.5102 9.5L38.6302 8.74C39.0702 5.92 41.3302 4 43.6702 4C45.2302 4 46.0302 4.48 46.2302 4.6L45.2902 7.16C45.2902 7.16 44.3702 7 43.8102 7C43.2702 7 42.6902 7.04 42.4102 7.16C42.2702 7.38 41.9902 7.86 41.8302 8.74L41.7102 9.44C41.6902 9.56 41.6502 9.82 41.6502 9.94C41.6502 10.66 42.0102 11.18 43.0702 11.18C43.8502 11.18 44.6502 10.94 44.6502 10.94L45.2702 13.54C44.6302 13.92 43.3902 14.2 42.5702 14.2ZM50.238 14.2C48.118 14.2 47.078 13.24 47.078 11.72C47.078 11.52 47.118 11.16 47.158 10.96L47.858 7H46.558L47.038 4.2H48.338L48.638 2.6L51.898 2.22L51.538 4.2H53.638L53.158 7H51.058L50.458 10.36C50.378 10.8 50.698 11.1 51.198 11.1C51.638 11.1 52.278 11 52.278 11L52.638 13.72C52.058 14 51.098 14.2 50.238 14.2ZM55.885 14.2C54.565 14.2 53.345 13.46 53.345 11.04C53.345 8.12 55.645 4 60.465 4C61.965 4 63.045 4.2 63.045 4.2L61.725 11.76L62.065 13.86L59.085 14.2L58.885 13.32C57.965 13.74 56.725 14.2 55.885 14.2ZM57.745 11.2C58.125 11.2 58.485 11.12 58.645 11.08L59.365 7H58.845C58.145 7 57.765 7.16 57.765 7.16C57.765 7.16 56.825 8.46 56.825 10.18C56.825 11 57.205 11.2 57.745 11.2ZM74.0803 14.2C70.9203 14.2 69.0803 12.52 69.0803 9.54C69.0803 9.08 69.1203 8.38 69.2003 7.88L69.4003 6.74C70.1603 2.36 72.9403 -9.53674e-07 75.9803 -9.53674e-07C77.4403 -9.53674e-07 78.6603 0.299999 79.2603 0.7L77.9403 3.46C77.6403 3.34 76.7003 3.22 75.8603 3.22C75.4203 3.22 74.2603 3.34 73.9603 3.48C73.5403 4.14 73.1803 5.12 72.9203 6.56L72.7403 7.54C72.6803 7.9 72.6203 8.34 72.6203 8.64C72.6203 10.16 73.4203 10.88 74.6203 10.88C75.5603 10.88 76.4203 10.72 76.8203 10.56L77.7203 13.28C76.9003 13.82 75.5603 14.2 74.0803 14.2ZM80.9827 14.2C79.6627 14.2 78.4427 13.46 78.4427 11.04C78.4427 8.12 80.7427 4 85.5627 4C87.0627 4 88.1427 4.2 88.1427 4.2L86.8227 11.76L87.1627 13.86L84.1827 14.2L83.9827 13.32C83.0627 13.74 81.8227 14.2 80.9827 14.2ZM82.8427 11.2C83.2227 11.2 83.5827 11.12 83.7427 11.08L84.4627 7H83.9427C83.2427 7 82.8627 7.16 82.8627 7.16C82.8627 7.16 81.9227 8.46 81.9227 10.18C81.9227 11 82.3027 11.2 82.8427 11.2ZM91.0473 14.2C88.9273 14.2 88.4273 12.9 88.7073 11.32L90.6673 0.199999H93.8673L92.0273 10.6C91.9473 11.04 92.1273 11.3 92.6873 11.3H93.0273L92.5473 14C92.2273 14.12 91.6873 14.2 91.0473 14.2ZM96.7505 14.2C94.6305 14.2 94.1305 12.9 94.4105 11.32L96.3705 0.199999H99.5705L97.7305 10.6C97.6505 11.04 97.8305 11.3 98.3905 11.3H98.7305L98.2505 14C97.9305 14.12 97.3905 14.2 96.7505 14.2ZM104.054 14.2C101.274 14.2 99.9336 12.88 99.9336 10.62C99.9336 10.3 99.9736 9.84 100.014 9.58L100.134 8.9C100.654 6 102.714 4 104.934 4C107.274 4 108.354 5.46 108.354 7.62C108.354 7.96 108.314 8.44 108.254 8.74L107.974 10.34H103.094C103.094 10.38 103.094 10.42 103.094 10.46C103.134 10.82 103.314 11.2 104.414 11.2C105.434 11.2 106.534 10.98 106.534 10.98L107.074 13.58C106.274 13.98 104.974 14.2 104.054 14.2ZM103.414 8.54L105.174 8.38C105.214 8.18 105.234 7.98 105.234 7.82C105.234 7.3 105.054 7 104.574 7C104.334 7 103.994 7.06 103.894 7.12C103.754 7.32 103.574 7.72 103.414 8.54ZM108.733 14L110.413 4.48L113.673 4.08L113.493 5.16H113.693C114.013 4.48 114.633 4 115.273 4C115.753 4 116.313 4.12 116.513 4.2L115.953 7.4H115.213C114.353 7.4 113.653 7.66 112.973 8.1L111.933 14H108.733Z",fill:n})})}}}]);
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.