PageSourceSearch

https://www.tivi.fi/static/static/js/async/magazines.54039dcbc7.js

js tivi.fi collected 2026-09-24 15:29:14 UTC 41,343 bytes, 127 lines download raw bytes

1"use strict";(globalThis.rspackChunktalent_news_frontend||=[]).push([[201],{63982(t,i,e){var n=e(74848);e(96540),i.A=t=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:8,...t,children:(0,n.jsx)("path",{d:"M15.354 4.45a.5.5 0 0 0 0-.707L12.172.561a.5.5 0 1 0-.708.708l2.829 2.828-2.828 2.828a.5.5 0 1 0 .707.708zM0 4.598h15v-1H0z"})})},8844(t,i,e){var n,o,s,r=e(74848);e(96540);var a=e(45560),l=e(12254),d=e(60475),c=e(77427),p=e(61977),h=e(28936),u=e(23483),m=e(29459),g=e(39305);let{subscriptionSelfService:x,orderLink:f}=c.A,b=(a.Ay.div.withConfig({componentId:"sc-d6ea45f8-0"}))(["",";font-size:22px;line-height:22px;text-align:center;margin:17px auto 17px auto;"],p.A.foundation.media.type.headline.heavy),y=(a.Ay.div.withConfig({componentId:"sc-d6ea45f8-1"}))(["",";"," border:8px solid ",";position:relative;",";"],p.A.foundation.media.type.body.normal,t=>{let{noTopMargin:i}=t;return!i&&"margin: 30px 0px;"},p.A.colors.default_border,(0,d.C9)("mobile",905)`
2        margin-bottom: 30px;
3    `),v=(a.Ay.div.withConfig({componentId:"sc-d6ea45f8-2"}))(["display:flex;flex-direction:column;padding:15px 15px 30px;background:rgba(255,255,255,0.5);"]),w=(a.Ay.div.withConfig({componentId:"sc-d6ea45f8-3"}))(["display:grid;"]),j=(a.Ay.div.withConfig({componentId:"sc-d6ea45f8-4"}))(["display:flex;flex-direction:row;"]),A=(a.Ay.div.withConfig({componentId:"sc-d6ea45f8-5"}))(["text-align:center;font-size:16px;"]),C=(a.Ay.ul.withConfig({componentId:"sc-d6ea45f8-6"}))(["text-align:left;list-style:none;padding:0;",";margin:0 auto 30px auto;width:400px;",";> li:first-child{margin-bottom:5px;}"],p.A.foundation.media.type.body.normal,(0,d.C9)("mobile",460)`
4        width: auto;
5    `),I=(0,a.Ay)(l.Ay).withConfig({componentId:"sc-d6ea45f8-7"})(["margin-top:15px;text-decoration:underline;color:",";"],p.A.colors.main),k=(a.Ay.div.withConfig({componentId:"sc-d6ea45f8-8"}))(["display:inline-block;"]),q=(a.Ay.a.withConfig({componentId:"sc-d6ea45f8-9"}))(["justify-content:center;align-items:center;display:flex;flex:1;color:white;font-size:16px;cursor:pointer;",";background:",";padding:10px 50px;text-decoration:none;&:hover{background-color:",";text-decoration:underline;}",";"],p.A.foundation.media.type.body.normal,p.A.colors.menu_black,p.A.colors.main,(0,d.C9)("mobile",905)`
6        padding: 10px 15px;
7    `),S=(0,a.Ay)(g.nB).withConfig({componentId:"sc-d6ea45f8-10"})(["flex:1;text-align:center;font-size:16px;cursor:pointer;",";color:rgb(0,0,0);background:transparent;border:1px #000 solid;padding:9px 50px;margin:0;margin-left:5px;text-decoration:none;&:hover{background-color:",";color:",";text-decoration:underline;border:1px "," solid;}",";"],p.A.foundation.media.type.body.normal,p.A.colors.main,p.A.colors.white,p.A.colors.main,(0,d.C9)("mobile",905)`
8        padding: 10px 15px;
9    `),$=(a.Ay.div.withConfig({componentId:"sc-d6ea45f8-11"}))(["margin:15px;",";"],p.A.foundation.media.type.body.normal);i.A=function(t){let{loggedIn:i,hardPaywall:e,noTopMargin:a}=t,l=n||(n=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.A,{large:!0}),(0,r.jsx)(k,{children:"Tilaajille"})]})),d=o||(o=(0,r.jsx)(k,{children:"Tilaajana saat enemmän"}));return(0,r.jsx)(y,{id:"paywall",noTopMargin:a,children:(0,r.jsx)(v,{children:(0,r.jsxs)(A,{children:[(0,r.jsx)(b,{children:e?l:d}),(0,r.jsx)($,{children:e?"Tämä sisältö on vain Tivin tilaajille. Tilaajana saat esimerkiksi:":"Olet lukenut tämän viikon maksuttomat uutisesi. Tilaajana saat esimerkiksi:"}),s||(s=(0,r.jsxs)(C,{children:[(0,r.jsx)("li",{children:"■ Rajoituksettoman lukuoikeuden kaikkiin artikkeleihin, myös vain tilaajille tarkoitettuihin artikkeleihin"}),(0,r.jsx)("li",{children:"■ Tivin näköislehden"}),(0,r.jsx)("li",{children:"■ IT-alan Yrityskaupat-tietokannan"})]})),(0,r.jsxs)(w,{children:[(0,r.jsxs)(j,{children:[(0,r.jsx)(q,{href:(0,u.A)(f,"u">typeof window?window.location.href:""),children:"Tilaa"}),!i&&(0,r.jsx)(S,{onClick:()=>(0,h.A)("paywall"),children:"Digitilaaja, kirjaudu tästä"})]}),(0,r.jsx)(I,{href:(0,u.A)(x,"u">typeof window?window.location.href:""),external:!0,children:"Lehden tilaaja, ota digi käyttöön"})]})]})})})}},51192(t,i,e){e.r(i),e.d(i,{default:()=>ir});var n,o,s,r,a,l,d,c,p,h,u,m,g,x,f,b=e(74848),y=e(96540),v=e(60125),w=e(73249),j=e(77427),A=e(66739);let{apiRoot:C,mediaShortSlugs:I}=j.A;var k=function(t,i){let e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:15;return(n,o,s)=>{let r,a=o();return!(r=a.section[t])||!r.lastUpdated||r.lastUpdated+6e4<Date.now()||i>0?s.get(`${C}pages/v2/listingpage/sections/${I}/${t}/${i}/${e}`).then(e=>
9(0===i?n((0,A.c4)(t,e)):n((0,A.gF)(t,e)),Promise.resolve(e))).catch(t=>Promise.reject(t)):Promise.resolve(a.section[t])}},q=e(29924),S=e(26255),$=e(25402),D=e(8814),T=e(46840),z=e(45560),M=e(13029),O=e(8897),P=e(32370);let{apiRoot:L}=j.A;var N=e(53404),_=(t,i,e,n,o,s)=>(r,a,l)=>{let d,c,p,h,u,m;return r((0,A.CF)()),l.get((d=t,c=i,p=e,h=s||void 0,u=n&&(0,P.default)(n)?(0,O.default)(n,"yyyy-MM-dd"):void 0,m=o&&(0,P.default)(o)?(0,O.default)(o,"yyyy-MM-dd"):void 0,u&&m?h?`${L}acquisitions/ict/search-by-time/${d}/${u}/${m}/${encodeURIComponent(h)}/${p}/${c}`:`${L}acquisitions/ict/by-time/${d}/${u}/${m}/${p}/${c}`:h?`${L}acquisitions/ict/${d}/${encodeURIComponent(h)}/${p}/${c}`:`${L}acquisitions/ict/${d}/${p}/${c}`)).then(e=>(e.acquisitions=null===e.acquisitions?[]:e.acquisitions,0===i?r((0,N.OR)({...e,offset:i,majority:t,searchString:s,startDate:n?n.toISOString():void 0,endDate:o?o.toISOString():void 0})):r((0,N.Co)({...e,offset:i,majority:t,searchString:s,startDate:n?n.toISOString():void 0,endDate:o?o.toISOString():void 0})),r((0,A.kq)()),Promise.resolve(e.acquisitions))).catch(t=>(r((0,A.kq)()),Promise.reject(t)))},F=e(30392),U=e(74722),E=e(60475),V=e(20694),H=t=>(0,b.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:15,height:6,fill:"none",viewBox:"0 0 11 7",...t,children:(0,b.jsx)("path",{d:"M.413 6.07 5.27.274a.3.3 0 0 1 .46 0l4.857 5.796a.3.3 0 0 1-.23.492H.643a.3.3 0 0 1-.23-.492"})}),R=e(13966),B=e(12254),J=e(64986),K=e(39305),Y=e(8844),W=e(54787);let Z=(z.Ay.div.withConfig({componentId:"sc-f760812a-0"}))(["width:100%;margin-bottom:30px;"]),G=(z.Ay.form.withConfig({componentId:"sc-f760812a-1"}))(["margin:0 auto;"]);class Q extends y.Component{handleSearch(t){t.preventDefault();let i=this.textInput.value;this.props.fetchItems(i)}render(){return(0,b.jsx)(Z,{children:(0,b.jsx)(G,{onSubmit:this.handleSearch,children:(0,b.jsx)(W.A,{autoFocus:!0,ref:t=>{this.textInput=t},type:"text",placeholder:`Hae ${this.props.itemName} yhti\xf6n nimell\xe4`})})})}constructor(t){var i,e,n;super(t),e=void 0,(i="symbol"==typeof(n=function(t,i){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,i||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}(i="textInput","string"))?n:n+"")in this?Object.defineProperty(this,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):this[i]=e,this.handleSearch=this.handleSearch.bind(this)}}var X=e(61977),tt=e(70926),ti=e(55831),te=e(71043),tn=e(52796),to=e(84388),ts=e(89465),tr=t=>{let{customStyles:i,...e}=t;return(0,b.jsx)(ts.A,{...e})};let ta=(z.Ay.div.withConfig({componentId:"sc-5162070b-0"}))(["display:flex;width:170px;flex-direction:column;justify-content:flex-end;cursor:pointer;font-family:'National';margin-right:20px;",";"],(0,E.C9)("mobile","tablet")`
10        display: inline-block;
11        margin-right: 0px;
12        width: 100%;
13    `),tl=[{label:"Kaikki",value:"all"},{label:"Enemmistö",value:"E"},{label:"Vähemmistö",value:"V"}];class td extends y.Component{render(){return(0,b.jsx)(ta,{children:(0,b.jsx)(tr,{onChange:this.selectItem,options:tl,value:this.state.selected})})}constructor(t){var i,e,n;super(t),i="selectItem",e=t=>{this.setState({selected:t}),this.props.searchByMajority(t.value)},(i="symbol"==typeof(n=function(t,i){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,i||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}(i,"string"))?n:n+"")in this?Object.defineProperty(this,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):this[i]=e,this.state={selected:tl[0]}}}let tc=(0,z.Ay)(K.Pz).withConfig({componentId:"sc-c1572a5d-0"})(["margin-bottom:25px;padding:0px 0px 0px 10px;"]),tp=(z.Ay.div.withConfig({componentId:"sc-c1572a5d-1"}))(["display:flex;",";"],(0,E.C9)("mobile","tablet")`
14        flex-direction: column;
15    `),th=Array.from({length:new Date().getFullYear()-2e3+1},(t,i)=>2e3+i);var tu=function(t){let{majorityChangedSearch:i,dateChangedSearch:e,acquisitionsStartDate:o,acquisitionsEndDate:s}=t,[r,a]=y.useState(o?new Date(o):null),[l,d]=y.useState(s?new Date(s):null);return y.useEffect(()=>{r&&l&&e(r,l)},[r,l,e]),(0,b.jsxs)(b.Fragment,{children:[n||(n=(0,b.jsx)(tc,{children:"Järjestä yrityskaupat"})),(0,b.jsxs)(tp,{children:[(0,b.jsx)(td,{searchByMajority:i}),(0,b.jsxs)(tm,{direction:"row, @max.x-small=column",gap:`${te.I8.spacing.large}, @max.small=${te.I8.spacing.medium}`,children:[(0,b.jsx)(tn.Ay,{onChange:t=>a(t),selected:r,clearDate:()=>a(null),locale:"fi",popperPlacement:"bottom",placeholderText:"pp.kk.vvvv",dateFormat:"dd.MM.yyyy",label:"Alkupäivä",isClearable:!0,maxDate:l,years:th}),(0,b.jsx)(tn.Ay,{onChange:t=>d(t),selected:l,clearDate:()=>d(null),locale:"fi",popperPlacement:"bottom",placeholderText:"pp.kk.vvvv",dateFormat:"dd.MM.yyyy",label:"Loppupäivä",minDate:r,isClearable:!0,years:th})]})]})]})},tm=(0,z.Ay)(to.A).withConfig({componentId:"sc-c1572a5d-2"})(["@media ","{margin-top:",";}@media ","{> div{width:auto;flex-grow:1;}}"],te.I8.mediaquery.max["x-small"],te.I8.spacing.medium,te.I8.mediaquery.max.small),tg=t=>(0,b.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:9,fill:"none",viewBox:"0 0 14 9",...t,children:(0,b.jsx)("path",{fill:"#333",d:"M6.98 4.918 14 0v3.984L7.587 9H6.412L0 3.984V0z"})}),tx=t=>(0,b.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:10,viewBox:"0 0 576 512",...t,children:(0,b.jsx)("path",{d:"M448 241.823V464c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h339.976c10.691 0 16.045 12.926 8.485 20.485l-24 24a12 12 0 0 1-8.485 3.515H54a6 6 0 0 0-6 6v340a6 6 0 0 0 6 6h340a6 6 0 0 0 6-6V265.823c0-3.183 1.264-6.235 3.515-8.485l24-24c7.559-7.56 20.485-2.206 20.485 8.485M564 0H428.015c-10.658 0-16.039 12.93-8.485 20.485l48.187 48.201-272.202 272.202c-4.686 4.686-4.686 12.284 0 16.971l22.627 22.627c4.687 4.686 12.285 4.686 16.971 0l272.201-272.201 48.201 48.192c7.513 7.513 20.485 2.235 20.485-8.485V12c0-6.627-5.373-12-12-12"})});let tf=(z.Ay.div.withConfig({componentId:"sc-e3e4fdf-0"}))(["display:inline-block;margin-left:5px;cursor:pointer;"]);var tb=function(t){let{onClick:i}=t;return i?(0,b.jsx)(tf,{onClick:i,children:o||(o=(0,b.jsx)(tx,{}))}):s||(s=(0,b.jsx)(tf,{children:(0,b.jsx)(tx,{})}))};function ty(t,i,e){var n;return(i="symbol"==typeof(n=function(t,i){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,i||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}(i,"string"))?n:n+"")in t?Object.defineProperty(t,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[i]=e,t}let tv=(z.Ay.tr.withConfig({componentId:"sc-b9d77cc6-0"}))(["position:relative;cursor:pointer;border-bottom:2px solid ",";padding:5px;background-color:",";",";&:hover{background:",";}",";"],X.A.colors.main,X.A.colors.acquisition_background_light,t=>{let{isOpen:i}=t;return i&&`background-color: ${X.A.colors.acquisition_background}`},X.A.colors.acquisition_background,(0,E.C9)(0,768)`
16        display: flex;
17        flex-direction: column;
18        border-top: 4px solid ${X.A.colors.main};
19        border-bottom: 0;
20
21        ${t=>{let{isOpen:i}=t;return i&&"display: none;"}};
22    `),tw=(z.Ay.td.withConfig({componentId:"sc-b9d77cc6-1"}))(["font-size:12px;padding:8px;text-align:left;padding-left:15px;color:",";&:nth-child(2){font-weight:bold;}&:nth-child(3){text-align:center;",";}&:nth-child(4){text-transform:lowercase;}&:nth-child(5){text-align:center;",";}&:nth-child(6){",";",";}span:nth-child(1){display:none;font-size:11px;letter-spacing:0.05em;text-transform:initial;color:",";}",";"],X.A.colors.title_black,(0,E.C9)("mobile",850)`
23            text-align: left;
24        `,(0,E.C9)("mobile",850)`
25            text-align: left;
26        `,(0,E.C9)(768)`
27            text-align: right;
28            padding-right: 15px;
29        `,t=>{let{$color:i}=t;return i&&`color: ${i}`},X.A.colors.darker_main_gray,(0,E.C9)("mobile",768)`
30        padding: 4px 8px;
31        font-size: 14px;
32        width: 90%;
33
34        span:first-child {
35            display: block;
36        }
37
38        &:nth-child(1) { order: 1; }
39        &:nth-child(2) { order: 3; }
40        &:nth-child(3) { order: 2; }
41        &:nth-child(4) { order: 4; }
42        &:nth-child(5) { order: 5; }
43        &:nth-child(6) { order: 6; }
44    `),tj=(z.Ay.td.withConfig({componentId:"sc-b9d77cc6-2"}))(["padding-right:8px;",";"],(0,E.C9)("mobile",768)`
45        display: none;
46    `),tA=(z.Ay.td.withConfig({componentId:"sc-b9d77cc6-3"}))(["position:relative;padding:15px 120px;",";"],(0,E.C9)("mobile",768)`
47        display: block;
48        padding: 15px;
49    `),tC=(z.Ay.table.withConfig({componentId:"sc-b9d77cc6-4"}))(["border-collapse:collapse;border:0;width:100%;"]),tI=(z.Ay.tr.withConfig({componentId:"sc-b9d77cc6-5"}))(["background:",";padding:4px 8px;&:nth-child(even){background:#f5f5f5;}",";"],X.A.colors.white,t=>{let{color:i}=t;return i&&`color: ${i}`}),tk=(z.Ay.td.withConfig({componentId:"sc-b9d77cc6-6"}))(["",";font-size:12px;vertical-align:top;padding:8px;"],X.A.foundation.media.type.ui.normal),tq=(0,z.Ay)(tk).withConfig({componentId:"sc-b9d77cc6-7"})(["font-weight:bold;"]),tS=(z.Ay.span.withConfig({componentId:"sc-b9d77cc6-8"}))(["cursor:pointer;min-width:100px;flex-grow:2;display:none;right:0;top:30px;text-align:right;z-index:100;",";"],(0,E.C9)("mobile",768)`
50        display: block;
51    `),t$=(z.Ay.td.withConfig({componentId:"sc-b9d77cc6-9"}))(["display:none;position:absolute;padding-right:8px;right:0;top:15px;padding-right:2px;width:40px;height:40px;text-align:center;z-index:100;",";"],(0,E.C9)("mobile",768)`
52        display: block;
53    `),tD=(0,z.Ay)(t=>{let{isOpen:i,...e}=t;return(0,b.jsx)(tg,{...e})}).withConfig({componentId:"sc-b9d77cc6-10"})(["width:12px;align-self:center;transform:",";transition:transform 0.2s;"],t=>t.isOpen?"rotate(180deg)":"rotate(0)"),tT=(z.Ay.tr.withConfig({componentId:"sc-b9d77cc6-11"}))(["box-sizing:border-box;border-bottom:2px solid ",";background-color:",";",";",";"],X.A.colors.main,X.A.colors.acquisition_background,t=>{let{$isOpen:i}=t;return i?"display: table-row;":"display: none;"},(0,E.C9)("mobile",768)`
54        ${t=>{let{$isOpen:i}=t;return i&&`display: block; width: 100%;
54 border-top: 4px solid ${X.A.colors.main}; border-bottom: 0;`}}
55    `),tz=(z.Ay.span.withConfig({componentId:"sc-b9d77cc6-12"}))(["display:flex;"]),tM=(z.Ay.span.withConfig({componentId:"sc-b9d77cc6-13"}))(["font-size:19px;line-height:23px;margin:15px 0;"]),tO=(0,z.Ay)(K.N_).withConfig({componentId:"sc-b9d77cc6-14"})(["&:hover,&:active{color:",";text-decoration:none;}"],X.A.colors.link_hover_light_gray),tP=(z.Ay.span.withConfig({componentId:"sc-b9d77cc6-15"}))(["border-color:#9eb4a7;"]),tL=(z.Ay.span.withConfig({componentId:"sc-b9d77cc6-16"}))(["display:block;width:100%;font-size:12px;line-height:1.2em;margin-top:15px;"]);class tN extends y.PureComponent{render(){let{buyer:t,buyerBusinessId:i,ownedBefore:e,ownedAfter:n,target:o,targetBusinessId:s,targetTurnover:r,targetPersonnel:a,targetCountry:l,seller:d,published:c,notes:p}=this.props.acquisition,h=c&&(0,O.default)(new Date(c),"dd.MM.yyyy"),u=[{title:"Julkaistu",value:h},{title:"Ostaja",value:t},{title:"Osuus nyt, %",value:n},{title:"Ostettu yhtiö",value:o},{title:"Liikevaihto, milj. €",value:r}],m=[{id:"share-ownership-before",title:"Osakeomistus ennen kauppaa, %",value:e},{id:"share-ownership-after",title:"Osakeomistus nyt, %",value:n},{id:"country",title:"Kotimaa",value:l},{id:"turnover",title:"Liikevaihto, milj. €",value:r},{id:"personnel",title:"Henkilöstö",value:a},{id:"buyer",title:"Ostaja",value:t},{id:"sellers",title:"Myyjät",value:d},{id:"published",title:"Julkaistu",value:h},{id:"notes",title:"Huomioita",value:p},{id:"target-yrityshaku",value:this.createLinks(s,"Katso kohteen toimiala ja muut tiedot Kauppalehden Yrityshausta")},{id:"buyer-yrityshaku",value:this.createLinks(i,"Katso ostajan yritystiedot Kauppalehden Yrityshausta")}],g=X.A.colors.orange;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(tv,{onClick:this.toggleRow,isOpen:this.state.isOpen,children:[u.map((t,i)=>(0,b.jsxs)(tw,{$color:g,children:[(0,b.jsx)("span",{children:t.title}),t.value]},t.title)),(0,b.jsx)(tj,{children:(0,b.jsx)(tD,{isOpen:this.state.isOpen})}),(0,b.jsx)(t$,{children:(0,b.jsx)(tD,{isOpen:this.state.isOpen})})]}),(0,b.jsx)(tT,{$isOpen:this.state.isOpen,$color:g,children:(0,b.jsxs)(tA,{colSpan:7,children:[(0,b.jsxs)(tz,{children:[(0,b.jsxs)(tM,{children:[s?this.createLinks(s,o??""):(0,b.jsx)(tP,{children:o}),(0,b.jsxs)(tL,{children:["Kaupan päiväys: ",h]})]}),(0,b.jsx)(tS,{onClick:this.toggleRow,children:(0,b.jsx)(tD,{isOpen:this.state.isOpen})})]}),(0,b.jsx)(tC,{color:g,children:(0,b.jsx)("tbody",{children:m.map(t=>(0,b.jsx)(y.Fragment,{children:t.value?(0,b.jsxs)(tI,{color:"Huomioita"===t.title?g:void 0,children:[(0,b.jsx)(tq,{children:t?t.title:void 0}),(0,b.jsx)(tk,{children:t.value})]}):void 0},t.id))})})]})})]})}constructor(t){super(t),ty(this,"toggleRow",()=>this.setState(t=>({isOpen:!t.isOpen}))),ty(this,"createLinks",(t,i)=>{if(t)return(0,b.jsxs)(tO,{href:`https://www.kauppalehti.fi/yritykset/yritys/${t}`,openInNewTab:!0,children:[i,r||(r=(0,b.jsx)(tb,{}))]})}),this.state={isOpen:!1}}}var t_=e(82069),tF=e(69129);let tU=(0,z.Ay)(tt.Ax).withConfig({componentId:"sc-9d23b45a-0"})(["margin-bottom:20px;"," ",";"],(0,E.C9)("tablet","desktop")`
56        width: 100%;
57
58        margin-right: 30px;
59    `,(0,E.C9)("mobile",768)`
60        margin-top: 30px;
61    `),tE=(z.Ay.div.withConfig({componentId:"sc-9d23b45a-1"}))(["margin-top:30px;display:flex;",";"],(0,E.C9)("mobile","tablet")`
62        flex-direction: column;
63    `),tV=(z.Ay.span.withConfig({componentId:"sc-9d23b45a-2"}))(["color:",";visibility:visible;",";"],X.A.colors.main,(0,E.C9)(640,768)`
64        visibility: hidden;
65    `),tH=(z.Ay.p.withConfig({componentId:"sc-9d23b45a-3"}))(["margin:0px;",";"],(0,E.C9)(640,651)`
66        font-size: 13px;
67    `);var tR=(0,D.Ng)(t=>({user:t.user}))(function(t){let{subject:i,topicTeasers:e,totalTeasersAvailable:n,loadMoreTeasers:o,user:s}=t;return(0,b.jsxs)(tE,{children:[(0,b.jsxs)(tU,{children:[(0,b.jsx)(K.Ut,{children:(0,b.jsxs)(tH,{children:["Artikkeleita aiheesta ",(0,b.jsx)(tV,{children:i})]})}),e.length>0&&(0,b.jsx)(t_.Ay,{teaser:e[0]},e[0].uuid),a||(a=(0,b.jsx)(J.F0,{orderNumber:1,skipPlaceholder:!0})),e.length>1&&(0,U.A)(e.slice(1,5),t=>(0,b.jsx)(t_.Ay,{teaser:t},t.uuid)),l||(l=(0,b.jsx)(J.F0,{orderNumber:2,skipPlaceholder:!0})),e.length>5&&(0,U.A)(e.slice(5,10),t=>(0,b.jsx)(t_.Ay,{teaser:t},t.uuid)),e.length>10&&(0,U.A)(e.slice(10),t=>(0,b.jsx)(t_.Ay,{teaser:t},t.uuid)),n>
67e.length&&(0,b.jsx)(M.A,{loadMore:o,buttonText:"Näytä lisää"})]}),d||(d=(0,b.jsx)(tF.A,{}))]})});let tB=(z.Ay.div.withConfig({componentId:"sc-6f07c27a-0"}))(["color:",";font-size:15px;line-height:23px;margin-top:0px;margin-bottom:30px;padding:15px 0px;border-bottom:solid 1px ",";border-top:solid 1px ",";"],X.A.colors.darker_main_gray,X.A.colors.default_border,X.A.colors.default_border);var tJ=function(){return c||(c=(0,b.jsxs)(tB,{children:["Yrityskauppatyökalulla pystyt hakemaan yrityskauppoja seuraavilta toimialoilta:",(0,b.jsx)("br",{}),(0,b.jsx)("br",{}),"Teollisuus",(0,b.jsx)("ul",{children:(0,b.jsx)("li",{children:"C26: Tietokoneiden sekä elektronisten ja optisten tuotteiden valmistus"})}),"Informaatio ja viestintä:",(0,b.jsxs)("ul",{children:[(0,b.jsx)("li",{children:"J61: Televiestintä"}),(0,b.jsx)("li",{children:"J62: Ohjelmistot, konsultointi ja siihen liittyvä toiminta"}),(0,b.jsx)("li",{children:"J63: Tietopalvelutoiminta"})]})]}))};let tK=(0,z.Ay)(t=>(0,b.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",...t,children:(0,b.jsx)("path",{d:"M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48m16 400c0 8.822-7.178 16-16 16H48c-8.822 0-16-7.178-16-16V80c0-8.822 7.178-16 16-16h352c8.822 0 16 7.178 16 16zm-192-92c-15.464 0-28 12.536-28 28s12.536 28 28 28 28-12.536 28-28-12.536-28-28-28m7.67-24h-16c-6.627 0-12-5.373-12-12v-.381c0-70.343 77.44-63.619 77.44-107.408 0-20.016-17.761-40.211-57.44-40.211-29.144 0-44.265 9.649-59.211 28.692-3.908 4.98-11.054 5.995-16.248 2.376l-13.134-9.15c-5.625-3.919-6.86-11.771-2.645-17.177C153.658 133.514 178.842 116 223.67 116c52.32 0 97.44 29.751 97.44 80.211 0 67.414-77.44 63.849-77.44 107.408V304c0 6.627-5.373 12-12 12"})})).withConfig({componentId:"sc-355078d8-0"})(["height:",";width:",";fill:rgba(0,0,0,0.3);"],t=>{let{height:i}=t;return i?`${i}px`:"35px"},t=>{let{width:i}=t;return i?`${i}px`:"35px"});var tY=function(t){let{size:i}=t;return(0,b.jsx)(tK,{width:i,height:i})};function tW(t,i,e){var n;return(i="symbol"==typeof(n=function(t,i){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,i||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}(i,"string"))?n:n+"")in t?Object.defineProperty(t,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[i]=e,t}let tZ=(z.Ay.div.withConfig({componentId:"sc-e41e49d4-0"}))(["margin-bottom:30px;"]),tG=(z.Ay.div.withConfig({componentId:"sc-e41e49d4-1"}))(["padding:15px;padding-top:0px;width:100%;background-color:",";"],X.A.colors.white),tQ=(z.Ay.div.withConfig({componentId:"sc-e41e49d4-2"}))(["display:flex;cursor:pointer;"]),tX=(z.Ay.div.withConfig({componentId:"sc-e41e49d4-3"}))(["display:inline-block;margin-left:8px;"]),t0=(z.Ay.div.withConfig({componentId:"sc-e41e49d4-4"}))(["margin:30px 0px;> div{margin:30px 0 0 0 !important;color:blue;}"]),t1=(0,z.Ay)(K.DZ).withConfig({componentId:"sc-e41e49d4-5"})(["padding-top:0px;padding-bottom:15px;margin-bottom:15px;"]),t2=(z.Ay.table.withConfig({componentId:"sc-e41e49d4-6"}))(["width:100%;border-collapse:collapse;border:0;",";"],(0,E.C9)("mobile",768)`
68        display: flex;
69        flex-direction: column;
70
71        thead {
72            display: none;
73        }
74    `),t4=(z.Ay.thead.withConfig({componentId:"sc-e41e49d4-7"}))(["border-top:2px solid ",";border-bottom:2px solid ",";th:last-child{width:20px;}"],X.A.colors.black,X.A.colors.black),t5=(z.Ay.th.withConfig({componentId:"sc-e41e49d4-8"}))(["font-size:13px;padding:15px 8px;text-align:left;cursor:pointer;white-space:normal;&:nth-child(6){> div{justify-content:flex-end;}}"]),t8=(z.Ay.tbody.withConfig({componentId:"sc-e41e49d4-9"}))(["",";"],(0,E.C9)("mobile",768)`
75        position: relative;
76        display: block;
77
78        &:last-child {
79            border-bottom: 4px solid ${X.A.colors.main};
80        }
81    `),t6=(z.Ay.div.withConfig({componentId:"sc-e41e49d4-10"}))(["display:flex;"]),t7=(z.Ay.span.withConfig({componentId:"sc-e41e49d4-11"}))(["display:flex;flex-direction:column;flex-wrap:wrap;margin:0 0 0 4px;align-self:center;"]),t3=(z.Ay.div.withConfig({componentId:"sc-e41e49d4-12"}))(["display:flex;flex-direction:column;padding-top:10px;margin-bottom:15px;max-width:170px;",";"],(0,E.C9)(0,"tablet")`
82        flex-direction: row;
83        max-width: 300px;
84    `),t9=(z.Ay.span.withConfig({componentId:"sc-e41e49d4-13"}))(["margin-bottom:5px;",";"],(0,E.C9)(0,"tablet")`
85        margin-right: 15px;
86    `),it=(0,z.Ay)(H).withConfig({componentId:"sc-e41e49d4-14"})(["transform:rotate(180deg);margin-top:2px;"]),ii=(0,z.Ay)(B.Ay).withConfig({componentId:"sc-e41e49d4-15"}
86)(["height:1.1875rem;"]),ie="yrityskaupat";class io extends y.Component{componentDidUpdate(t){t.acquisitions.acquisitions!==this.props.acquisitions.acquisitions&&this.setState({sortedAcquisitions:this.sortList(this.props.acquisitions.acquisitions,this.state.sortValue,!1)})}render(){let t=-1!==(0,w.A)(this.props.user.credentials,j.A.rights.acquisitions);return(0,b.jsxs)(ti.A,{children:[p||(p=(0,b.jsx)(F.A,{title:"IT-alojen yrityskaupat"})),h||(h=(0,b.jsx)(J.rd,{})),(0,b.jsx)(tt.HD,{children:(0,b.jsxs)(tG,{children:[(0,b.jsx)(tQ,{onClick:this.showInformation,children:u||(u=(0,b.jsxs)(t1,{children:[(0,b.jsx)("span",{children:"IT-alojen yrityskaupat"}),(0,b.jsx)(tX,{children:(0,b.jsx)(tY,{size:15})})]}))}),this.state.showInfo&&(m||(m=(0,b.jsx)(tJ,{}))),g||(g=(0,b.jsxs)(t3,{children:[(0,b.jsx)(t9,{children:"Palvelun mahdollistaa:"}),(0,b.jsx)(ii,{href:"https://www.talouselama.fi/",ariaLabel:"Talouselämä etusivu",openInNewTab:!0,children:(0,b.jsx)(R.A,{})})]})),t&&(0,b.jsx)(b.Fragment,{children:(0,b.jsxs)(tZ,{children:[(0,b.jsx)(Q,{itemName:"yrityskauppaa",fetchItems:this.wordChangeSearch,searchString:this.props.acquisitions.searchString},"acquisition-search"),(0,b.jsx)(tu,{acquisitionsStartDate:this.props.acquisitions.startDate,acquisitionsEndDate:this.props.acquisitions.endDate,majorityChangedSearch:this.majorityChangeSearch,dateChangedSearch:this.dateChangeSearch},"acquisition-dropdown")]})}),(0,b.jsxs)(t2,{children:[(0,b.jsx)(t4,{children:(0,b.jsxs)("tr",{children:[this.Sorter("Julkaistu","published"),this.Sorter("Ostaja","buyer"),this.Sorter("Osuus nyt, %","ownedAfter"),this.Sorter("Ostettu yhtiö","target"),this.Sorter("Liikevaihto, milj. €","targetTurnover"),x||(x=(0,b.jsx)("th",{}))]})}),(0,b.jsx)(t8,{children:(0,U.A)(this.state.sortedAcquisitions,t=>(0,b.jsx)(tN,{acquisition:t},t.id))})]}),t?this.props.acquisitions.acquisitions.length<this.props.acquisitions.total?(0,b.jsx)(t0,{children:(0,b.jsx)(M.A,{loadMore:()=>this.props.fetchICTAcquisitions("all",this.props.acquisitions.acquisitions.length,20),buttonText:"Näytä lisää"})}):null:(0,b.jsx)(Y.A,{loggedIn:this.props.user.loggedIn,hardPaywall:!0}),(0,b.jsx)(tR,{subject:`${ie}`,topicTeasers:this.props.acquisitionTeasers,totalTeasersAvailable:this.props.totalAcquisitionTeasers,loadMoreTeasers:()=>this.props.loadMore(this.props.acquisitionTeasers.length)})]})})]})}constructor(t){super(t),tW(this,"wordChangeSearch",t=>{let i=this.props.acquisitions.startDate?new Date(this.props.acquisitions.startDate):void 0,e=this.props.acquisitions.endDate?new Date(this.props.acquisitions.endDate):void 0;this.props.fetchICTAcquisitions(this.props.acquisitions.majority,0,20,i,e,t)}),tW(this,"majorityChangeSearch",t=>{let i=this.props.acquisitions.startDate?new Date(this.props.acquisitions.startDate):void 0,e=this.props.acquisitions.endDate?new Date(this.props.acquisitions.endDate):void 0;this.props.fetchICTAcquisitions(t,0,20,i,e,this.props.acquisitions.searchString)}),tW(this,"dateChangeSearch",(t,i)=>{this.props.fetchICTAcquisitions(this.props.acquisitions.majority,0,20,t,i,this.props.acquisitions.searchString)}),tW(this,"showInformation",()=>{this.setState({showInfo:!this.state.showInfo})}),tW(this,"handleClick",t=>{this.setState({sortedAcquisitions:this.sortList(this.state.sortedAcquisitions,t,this.state.sortValue===t),sortValue:t,sortDirection:this.sortingDirection(this.state.sortValue===t)})}),tW(this,"sortingDirection",t=>t&&"ASC"===this.state.sortDirection?"DESC":"ASC"),tW(this,"sortList",(t,i,e)=>e?(0,V.A)(t):"published"===i?(0,V.A)((0,T.A)(t,t=>t[i])):"targetTurnover"===i?(0,T.A)(t,t=>{let e=t[i];return e?parseInt(e,10):0}):"ownedAfter"===i?(0,T.A)(t,t=>{if(t.ownedAfter){let i=t.ownedAfter.match(/([0-9])+/g);if(i)return 2===i.length?parseInt(i[i.length-1],10):parseInt(i[0],10)}return 0}):(0,T.A)(t,[t=>t[i]])),tW(this,"Sorter",(t,i)=>(0,b.jsx)(t5,{onClick:()=>this.handleClick(i),children:(0,b.jsxs)(t6,{children:[(0,b.jsx)("span",{children:t}),(0,b.jsxs)(t7,{children:[(0,b.jsx)(H,{fill:this.state.sortValue===i&&"ASC"===this.state.sortDirection?"#212121":"#C4C4C4"}),(0,b.jsx)(it,{fill:this.state.sortValue===i&&"DESC"===this.state.sortDirection?"#212121":"#C4C4C4"})]})]})})),this.state={sortedAcquisitions:this.sortList(this.props.acquisitions.acquisitions,"published",!1),sortValue:"published",sortDirection:"ASC",showInfo:!1}}}var is=(0,D.Ng)(t=>({acquisitions:t.acquisitions,searchTerm:t.acquisitions.searchString,user:t.user,acquisitionTeasers:t.topic.yrityskaupat.items,totalAcquisitionTeasers:t.topic.yrityskaupat.totalAvailable}),t=>({fetchICTAcquisitions:(i,e,n,o,s,r)=>
86t(_(i,e,n,o,s,r)),loadMore:i=>t((0,q.A)(ie,i))}))(io);async function ir(t){let{store:i}=t,e=[];return i.getState().user.loggedIn&&-1!==(0,w.A)(i.getState().user.credentials,j.A.rights.acquisitions)?e.push(i.dispatch(_("all",0,20,(0,v.default)(new Date,24),new Date))):e.push(i.dispatch(_("all",0,1,void 0,new Date))),e.push(i.dispatch((0,q.A)("yrityskaupat",0)).catch(S.A),i.dispatch(k("paaomasijoittaminen,startup",0)).catch(S.A),i.dispatch((0,$.A)("ICT yrityskauppasivu","ICT yrityskauppasivu","ICT Yrityskaupat","sectionfrontpage"))),await Promise.all(e),f||(f=(0,b.jsx)(is,{}))}},86685(t,i,e){let n;e.r(i),e.d(i,{default:()=>tI});var o,s,r,a,l,d,c=e(74848),p=e(96540),h=e(25402),u=e(35797),m=e(91392),g=e(9821),x=e(77427),f=e(66739),b=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:x.A.siteShortSlug;return(e,n,o)=>((t,i,e)=>{if((0,g.b0)(i)||(0,g.b0)(e))return!1;let n=t.magazine[i],o=n?(0,m.A)(n.issues,{id:e}):null;return!o||!o.departments||!o.departments.length})(n(),i,t)?(e(f.qB.started({slug:i})),o.get(`${x.A.apiRoot}news/v2/papers/issue/${i}/${t}`).then(t=>e(f.qB.done({params:{slug:i},result:t}))).catch(t=>e(f.qB.failed({params:{slug:i},error:!0})))):Promise.resolve()},y=e(45560),v=e(8814),w=e(73249),j=e(64986),A=e(61625),C=e(98669),I=e(61977),k=e(54490),q=e(12254);class S extends p.PureComponent{componentDidMount(){this.props.load()}render(){return null}}var $=t=>(0,c.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:8,...t,children:(0,c.jsx)("path",{d:"M.646 3.743a.5.5 0 0 0 0 .708l3.182 3.182a.5.5 0 1 0 .708-.708L1.706 4.097l2.829-2.828A.5.5 0 1 0 3.827.56zM16 3.597H1v1h15z"})}),D=e(63982);let T=(0,y.AH)(["cursor:pointer;display:flex;align-items:center;justify-content:center;width:30px;height:4.21875rem;path{fill:#fff;}"]),z=(y.Ay.div.withConfig({componentId:"sc-94fbad8e-0"}))(["",";"],T);var M=t=>{let{side:i,...e}=t;return(0,c.jsx)(z,{...e,children:"left"===i?o||(o=(0,c.jsx)($,{})):s||(s=(0,c.jsx)(D.A,{}))})};let O=(y.Ay.button.withConfig({componentId:"sc-72943dc8-0"}))(["position:absolute;",":0;top:0;bottom:0;width:1.875rem;height:100%;padding:0;margin:0;background:",";"],t=>{let{side:i}=t;return i},t=>{let{color:i}=t;return i}),P=t=>{var i;let e;i=t,(e=document.getElementById("carousel"))&&(n=setInterval(()=>{"left"===i?e.scrollLeft-=20:e.scrollLeft+=20},5))},L=()=>{clearInterval(n)};var N=t=>{let{color:i}=t;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(O,{side:"left",color:i,onMouseDown:()=>P("left"),onMouseUp:L,onTouchStart:()=>P("left"),onTouchEnd:L,children:r||(r=(0,c.jsx)(M,{side:"left"}))}),(0,c.jsx)(O,{side:"right",color:i,onMouseDown:()=>P("right"),onMouseUp:L,onTouchStart:()=>P("right"),onTouchEnd:L,children:a||(a=(0,c.jsx)(M,{side:"right"}))})]})};let _=function(t,i){let e=arguments.length>
862&&void 0!==arguments[2]?arguments[2]:400,n=i.offsetLeft-t.parentElement.clientWidth/2+i.clientWidth/2,o=t.scrollLeft>n;F(t,o?n+30:n-30,e)},F=(t,i,e)=>{let n,o=t.scrollLeft,s=i-o,r=performance.now();e>0?function i(){t.scrollLeft=o+s*U(n=(performance.now()-r)/e),n<1&&window.requestAnimationFrame(i)}():t.scrollLeft=i},U=t=>t<.5?2*t*t:-1+(4-2*t)*t,E=(y.Ay.div.withConfig({componentId:"sc-ab427cdb-0"}))(["opacity:",";transition:all 0.4s ease-out;transform:scale(",");padding:0 ","rem;display:inline-block;"],t=>t.active?1:.75,t=>t.active?1.2:1,t=>1.875*!!t.active),V=(y.Ay.div.withConfig({componentId:"sc-ab427cdb-1"}))(["white-space:nowrap;font-size:0;padding:2.8125rem 1.875rem;"]),H=(y.Ay.div.withConfig({componentId:"sc-ab427cdb-2"}))(["width:100%;overflow:auto;position:relative;"]);class R extends p.Component{static getDerivedStateFromProps(t,i){return t.activeIndex!==i.position?{position:t.activeIndex}:null}componentDidMount(){this.carousel.current&&_(this.carousel.current.parentElement,this.carousel.current.children[this.state.position],0)}componentDidUpdate(t,i){i.position!==this.state.position&&this.carousel.current&&_(this.carousel.current.parentElement,this.carousel.current.children[this.state.position],400)}render(){return(0,c.jsx)(H,{id:"carousel",children:(0,c.jsx)(V,{ref:this.carousel,children:p.Children.map(this.props.children,(t,i)=>(0,c.jsx)(E,{active:i===this.state.position,children:t},i))})})}constructor(t){var i,e,n;super(t),e=void 0,(i="symbol"==typeof(n=function(t,i){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,i||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}(i="carousel","string"))?n:n+"")in this?Object.defineProperty(this,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):this[i]=e,this.carousel=p.createRef(),this.state={position:t.activeIndex||0}}}let B=(y.Ay.img.withConfig({componentId:"sc-f29456de-0"}))(["width:auto;height:auto;max-height:200px;margin-top:5px;"]),J=(y.Ay.div.withConfig({componentId:"sc-f29456de-1"}))(["width:150px;height:170px;border:3px solid ",";margin-right:30px;"],I.A.colors.black),K=(y.Ay.span.withConfig({componentId:"sc-f29456de-2"}))(["position:absolute;padding:8px;color:#d4aa3d;background:#fffbf0;text-transform:uppercase;font-size:11px;right:0;bottom:0;"]),Y=(0,y.Ay)(q.Ay).withConfig({componentId:"sc-f29456de-3"})(["display:block;min-width:120px;padding-top:",";position:",";","{border:3px solid ",";}","{border:3px solid ",";}"],t=>t.annex?"18px":"0px",t=>t.annex?"relative":null,B,t=>t.active?t.color:"transparent",J,t=>t.active?t.color:I.A.colors.black),W=(y.Ay.strong.withConfig({componentId:"sc-f29456de-4"}))(["font-size:14px;display:block;"]),Z=(y.Ay.div.withConfig({componentId:"sc-f29456de-5"}))(["",";"],t=>t.annex?"display: flex":null);var G=function(t){let{magazines:i,currentId:e,color:n,activeIndex:o,loadMoreIssues:s,href:r,annex:a,media:l}=t;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(k.A,{viewportFrom:"tablet",children:(0,c.jsx)(N,{color:n})}),(0,c.jsxs)(R,{activeIndex:o,children:[i.map(t=>(0,c.jsxs)(Z,{annex:a,children:[(0,c.jsxs)(Y,{className:"nakoislehti",silent:!0,disableRestoreScroll:!0,href:`${r}/${t.id}`,active:t.id===e,color:n,children:[(0,c.jsx)(W,{children:t.name}),(0,c.jsx)(B,{src:t.coverImageUUID,height:405,width:275})]},t.id),a?t.annexes&&t.annexes.length>0&&t.annexes.map(i=>(0,c.jsxs)(Y,{href:`${x.A.apiRoot}news/v2/papers/signin/${l}/${i.id}`,external:!0,openInNewTab:!0,annex:!0,children:[(0,c.jsx)(B,{src:i.coverImageUUID,height:405,width:275}),(0,c.jsx)(K,{active:t.id===e,children:"Mainosliite"})]},`annex_${i.id}`)):null]},`wrapper_${t.id}`)),(0,c.jsx)(C.Ay,{offset:[600,0],overflow:!0,children:(0,c.jsx)(S,{load:s})})]})]})};let Q=(y.Ay.nav.withConfig({componentId:"sc-f3694d73-0"}))(["margin-top:0;margin-bottom:1.875rem;position:relative;"," padding:0 1.875rem;background-color:#f8f8f8;text-align:center;&::before,&::after{display:block;content:'';position:absolute;pointer-events:none;top:0;bottom:0;width:50px;background:linear-gradient(to left,rgba(248,248,248,0),#f8f8f8);left:1.875rem;z-index:1;}&::after{background:linear-gradient(to left,#f8f8f8,rgba(248,248,248,0));left:auto;right:1.875rem;}"],t=>{let{margin:i}=t;return i&&"margin: 0 0.9375rem;"});var X=t=>{let{magazines:i,currentId:e,loadMoreIssues:n,color:o,href:s,annex:r,media:a}=t,l=(0,A.A)(i,t=>t.id===e);return(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(Q,{margin:"kl"===x.A.siteShortSlug,children:(0,c.jsx)(G,{magazines:i,currentId:e,loadMoreIssues:n,color:o,activeIndex:l,href:s,annex:r,media:a})})})},tt=e(30392),ti=e(60475),te=e(23483),tn=e(12685);let to=(y.Ay.section.withConfig({componentId:"sc-36b2b38b-0"}))(["width:700px;float:left;"," ",";"],(0,ti.C9)("tablet","desktop")`
87        width: 74%;
88        padding-right: 20px;
89    `,(0,ti.C9)("mobile","tablet")`
90        width: initial;
91        float: none;
92        margin-left: 0;
93    `),ts=(y.Ay.aside.withConfig({componentId:"sc-36b2b38b-1"}))(["width:300px;float:right;"," ",";"],(0,ti.C9)("tablet","desktop")`
94        width: 26%;
95    `,(0,ti.C9)("mobile","tablet")`
96        width: 100%;
97        margin-left: 0px;
98        padding: 0 15px;
99    `),tr=(y.Ay.div.withConfig({componentId:"sc-36b2b38b-2"}))(["margin-top:10px;padding-bottom:30px;margin-left:100px;margin-right:70px;&:after{display:table;clear:both;content:'';}"," ",";"],(0,ti.C9)("tablet","desktop")`
100        margin-left: 55px;
101        margin-right: 55px;
102    `,(0,ti.C9)("mobile","tablet")`
103        margin-left: 0;
104        margin-right: 0;
105    `),ta=(y.Ay.div.withConfig({componentId:"sc-36b2b38b-3"}
105))(["width:200px;min-height:1px;padding-right:30px;float:left;"," ",";"],(0,ti.C9)("tablet","desktop")`
106        width: 28%;
107        padding-right: 20px;
108    `,(0,ti.C9)("mobile",800)`
109        width: 100%;
110        padding: 0;
111        margin-bottom: 15px;
112    `),tl=(y.Ay.div.withConfig({componentId:"sc-36b2b38b-4"}))(["&:first-child{margin-top:35px;}"]),td=(y.Ay.h2.withConfig({componentId:"sc-36b2b38b-5"}))(["font-weight:lighter;text-transform:uppercase;margin:30px 0 15px;",";"],(0,ti.C9)("mobile","tablet")`
113        padding-left: 20px;
114    `),tc=(y.Ay.img.withConfig({componentId:"sc-36b2b38b-6"}))(["max-width:100%;height:auto;display:block;margin:auto;cursor:pointer;"]);var tp=e(8844),th=e(39305),tu=e(82069),tm=e(21437),tg=e(55831);let{orderLink:tx}=x.A,{siteShortSlug:tf}=x.A,tb=(y.Ay.span.withConfig({componentId:"sc-1ac1b727-0"}))(["display:block;height:30px;font-size:21px;color:",";",";position:absolute;top:0;white-space:nowrap;"],I.A.colors.main,I.A.foundation.media.type.ui.normal),ty=(y.Ay.section.withConfig({componentId:"sc-1ac1b727-1"}))(["width:500px;padding-right:30px;float:left;"," ",";"],(0,ti.C9)("tablet","desktop")`
115        width: 71.5%;
116        padding-right: 0;
117    `,(0,ti.C9)("mobile",800)`
118        width: initial;
119        padding: 0 15px;
120    `),tv=(0,y.Ay)(th.U_).withConfig({componentId:"sc-1ac1b727-2"})(["span{font-size:13px;}letter-spacing:-1px;margin-top:5px;padding-left:0;"]),tw=(y.Ay.div.withConfig({componentId:"sc-1ac1b727-3"}))(["position:relative;padding-top:30px;"," ",";"],(0,ti.C9)("mobile","tablet")`
121        padding: 30px 45px 0;
122    `,(0,ti.C9)("tablet",800)`
123        height: 270px;
124        width: 200px;
125        margin-left: 30px;
126    `),tj=(y.Ay.div.withConfig({componentId:"sc-1ac1b727-4"}))(["margin-top:5px;"]),tA={loadMoreIssues:u.A};var tC=(0,v.Ng)((t,i)=>({issues:t.magazine[i.magazineSlug].issues,isDigipaperOpen:t.magazine[i.magazineSlug].isDigipaperOpen,mostRead:t.lists.mostRead.data,user:t.user}),tA)(t=>{var i,e;let{mostRead:n,issues:o,isDigipaperOpen:s,magazineId:r,magazineSlug:a=tf,user:p,loadMoreIssues:h}=t,u=r&&(0,m.A)(o,{id:r})||o[0],{id:g,departments:f}=u,b=s||-1!==(0,w.A)(p.credentials,x.A.rights.magazine),y=()=>window.location.href=(0,te.A)(tx,"u">typeof window?window.location.href:""),v=t=>window.open(`${x.A.apiRoot}news/v2/papers/signin/${a}/${t}`);return(0,c.jsxs)(tg.A,{children:[(0,c.jsx)(tt.A,{title:`Lehti ${u.name||" "}`}),(0,c.jsxs)(tr,{children:[(0,c.jsx)(X,{magazines:o,currentId:g,loadMoreIssues:()=>{h({magazineSlug:a,offset:o.length,limit:10})},href:"/lehti",color:I.A.colors.main,annex:!0,media:tf}),(0,c.jsxs)(to,{children:[(0,c.jsxs)(ta,{children:[(0,c.jsxs)(tw,{children:[(0,c.jsxs)(tb,{children:["Tivi ",u.name]}),(0,c.jsx)(tc,{className:"nakoislehti",src:u.coverImageUUID,onClick:()=>{b?((0,tn.N2)("open_paper",u.name||"",a),v(g)):y()},height:403,width:317}),(null==(i=u.annexes)?void 0:i.length)>0&&(null==(e=u.annexes)?void 0:e.map(t=>(0,c.jsx)(tj,{children:(0,c.jsx)(tc,{src:t.coverImageUUID,onClick:()=>{(0,tn.N2)("open_paper",t.name,"ad_supplement"),v(t.id)},height:403,width:317})},t.id))),b?(0,c.jsx)(tv,{className:"nakoislehti",text:"Siirry näköislehteen",onClick:()=>v(g)}):(0,c.jsx)(tv,{className:"nakoislehti",text:"Siirry näköislehteen",onClick:()=>y()})]}),l||(l=(0,c.jsx)(j.zI,{orderNumber:1}))]}),(0,c.jsx)(ty,{children:b?null==f?void 0:f.map((t,i)=>(0,c.jsxs)(tl,{children:[(0,c.jsx)(td,{children:t.name}),t.list.items.map(t=>(0,c.jsx)(tu.Ay,{teaser:t,lazyLoadImage:i>=1},t.uuid))]},i)):(0,c.jsx)(tp.A,{noTopMargin:!0,loggedIn:p.loggedIn,hardPaywall:!0})})]}),(0,c.jsxs)(ts,{children:[d||(d=(0,c.jsx)("div",{id:"skyscraper-height-div"})),(0,c.jsx)(tm.A,{heading:"Luetuimmat",teasers:n,ordered:!0,href:"/luetuimmat"})]})]})]})});async function tI(t){let{params:i,store:e,path:n}=t,o=await e.dispatch((0,u.A)({limit:20})),s=i.id||o.papers[0].id,r=[e.dispatch(b(s))],a=(await Promise.all(r))[0];return e.dispatch((0,h.A)("lehtisivu","lehtisivu",`Lehti ${a&&a.name||""}`,"sectionfrontpage")),(0,c.jsx)(tC,{magazineId:s,magazineSlug:"tv"})}}}]);
127//# sourceMappingURL=magazines.54039dcbc7.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.