PageSourceSearch

https://www.iltalehti.fi/assets/AsuminenNewsletterEmbed.b4a12e1c7.chunk.js

js iltalehti.fi collected 2026-10-01 10:12:02 UTC 15,913 bytes, 2 lines download raw bytes

1(self.webpackChunk=self.webpackChunk||[]).push([[1995],{99317(e,t,n){n.r(t),n.d(t,{default:()=>j});var i,r,a,o,s,l,c,u=n(96540),d=n(3100),f=n.n(d),m=n(18381),p=n(47264),v=n(95747),h=n(79855),b=n(89719),y=n(3354),w=n(72016),g=n(3638),k=n(92630),S=n.n(k);function x(e,t,n,i){c||(c="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var r=e&&e.defaultProps,a=arguments.length-3;if(t||0===a||(t={children:void 0}),1===a)t.children=i;else if(a>1){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+3];t.children=o}if(t&&r)for(var l in r)void 0===t[l]&&(t[l]=r[l]);else t||(t=r||{});return{$$typeof:c,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}const A=e=>u.createElement(u.Fragment,null,i||(i=x("div",{className:"newsletter-heading"},void 0,x("img",{alt:"",src:"https://assets.ilcdn.fi/557a547e18b34216e796c06f9929fdabe047533597a5f5b0b174cba96e9560fe.svg",className:"newsletter-icon"}),"ASUMISEN UUTISKIRJE")),r||(r=x("div",{className:"newsletter-description"},void 0,"Asumisen unelmat, puheenaiheet ja uutiset sähköpostiisi joka lauantai - tilaa uutiskirje!")),u.createElement(v.A,e),a||(a=x("div",{className:"newsletter-privacy"},void 0,x(h.A,{useShorterDisclaimer:!0})))),N=()=>{const e=(0,g.vm)();return u.createElement(u.Fragment,null,o||(o=x("div",{className:"newsletter-heading"},void 0,x("img",{alt:"",src:"https://assets.ilcdn.fi/557a547e18b34216e796c06f9929fdabe047533597a5f5b0b174cba96e9560fe.svg",className:"newsletter-icon"}),"Kiitos tilauksestasi!")),x("div",{className:"newsletter-description"},void 0,e?y.hq:y.Mq))},C=e=>u.createElement(u.Fragment,null,s||(s=x("div",{className:"newsletter-heading"},void 0,x("img",{alt:"",src:"https://assets.ilcdn.fi/557a547e18b34216e796c06f9929fdabe047533597a5f5b0b174cba96e9560fe.svg",className:"newsletter-icon"}),"ASUMISEN UUTISKIRJE")),u.createElement(p.A,e)),j=f()(S())(function(){const[e,t]=(0,u.useState)(!1),n="ArticleBottom",i="asuminen";return(0,u.useEffect)(()=>{try{const e=3;if(window.isLocalStorageAvailable){const n=Number(window.localStorage.getItem("ilAsuminenArticlesShowed"));n%e===0&&t(!0),window.localStorage.setItem("ilAsuminenArticlesShowed",n%e+1)}}catch{}},[]),e?u.createElement(u.Fragment,null,x(b.A,{runFunction:()=>{(0,w.Rx)("Newsletter",{eventAction:"Showed",eventLabel:i,elementPosition:n})}}),x("div",{className:"asuminen-newsletter-embed"},void 0,l||(l=x("div",{className:"image-container"},void 0,x("img",{alt:"",src:"https://assets.ilcdn.fi/c322d7c184b4bb4ac84b3f353cbcdb56b90af496785bbb65c0b4801f12657238.jpg"}))),x("div",{className:"text-container"},void 0,x(m.A,{newsletterType:i,location:n,Ui:A,SuccessUi:N,CaptchaUi:C,url:y.Dh,autoFillUser:!0})))):null})},47264(e,t,n){n.d(t,{A:()=>v});var i,r=n(96540),a=n(3100),o=n.n(a),s=n(82089);function l(e,t,n,r){i||(i="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var a=e&&e.defaultProps,o=arguments.length-3;if(t||0===o||(t={children:void 0}),1===o)t.children=r;else if(o>1){for(var s=Array(o),l=0;l<o;l++)s[l]=arguments[l+3];t.children=s}if(t&&a)for(var c in a)void 0===t[c]&&(t[c]=a[c]);else t||(t=a||{});return{$$typeof:i,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}class c extends r.Component{componentDidMount=()=>{if(!window.grecaptcha){const e=document.createElement("script");e.src="https://www.google.com/recaptcha/api.js?hl=fi&render=explicit",e.async=!0,document.body.appendChild(e)}this.grecaptchaReadyCheck=setInterval(()=>{window.grecaptcha&&window.grecaptcha.render&&this.renderRecaptcha()},300)};componentWillUnmount=()=>{clearInterval(this.grecaptchaReadyCheck)};renderRecaptcha=()=>{clearInterval(this.grecaptchaReadyCheck);const{callback:e,expiredCallback:t}=this.props;window.grecaptcha.render(this.recaptchaInstance,{sitekey:s.NU,callback:e,"expired-callback":t})};render(){const{errorColor:e}=this.props,{showAsterisk:t=!0}=this.props;return l("div",{className:"recaptcha"},void 0,r.createElement("div",{ref:e=>{this.recaptchaInstance=e},className:"g-recaptcha"}),t&&l("span",{className:e},void 0,"*"))}}const u=c;var d,f=n(8902),m=n.n(f);function p(e,t,n,i){d||(d="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var r=e&&e.defaultProps,a=arguments.length-3;if(t||0===a||(t={children:void 0}),1===a)t.children=i;else if(a>1){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+3];t.children=o}if(t&&r)for(var l in r)void 0===t[l]&&(t[l]=r[l]);else t||(t=r||{});return{$$typeof:d,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}const v=o()(m())(function(e){let{recaptchaCallback:t}=e;return p("div",{className:"default-captcha-ui"},void 0,p(u,{callback:t,showAsterisk:!1}))})},18381(e,t,n){n.d(t,{A:()=>U});var i,r,a,o=n(96540),s=n(32485),l=n.n(s),c=n(47264),u=n(3100),d=n.n(u),f=n(61721),m=n(53206),p=n.n(m);function v(e,t,n,i){a||(a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var r=e&&e.defaultProps,o=arguments.length-3;if(t||0===o||(t={children:void 0}),1===o)t.children=i;else if(o>1){for(var s=Array(o),l=0;l<o;l++)s[l]=arguments[l+3];t.children=s}if(t&&r)for(var c in r)void 0===t[c]&&(t[c]=r[c]);else t||(t=r||{});return{$$typeof:a,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}const h=d()(p())(function(e){let{tryAgain:t}=e;return v("div",{className:"newsletter-error"},void 0,i||(i=v("div",{className:"newsletter-heading"},void 0,"Uutiskirjeen tilaus ei onnistunut")),r||(r=v("div",{className:"newsletter-description"},void 0,"Tarkista sähköpostiosoitteesi. Mikäli osoite on oikein, mutta ongelma jatkuu, voit ",v(f.A,{to:"/info/palaute/"},void 0,"ottaa meihin yhteyttä"),".")),v("button",{className:"try-again-button reset-btn",onClick:t},void 0,"Yritä uudelleen"))});var b,y,w=n(3354),g=n(3638),k=n(92812),S=n.n(k);function x(e,t,n,i){y||(y="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var r=e&&e.defaultProps,a=arguments.length-3;if(t||0===a||(t={children:void 0}),1===a)t.children=i;else if(a>1){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+3];t.children=o}if(t&&r)for(var l in r)void 0===t[l]&&(t[l]=r[l]);else t||(t=r||{});return{$$typeof:y,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}const A=d()(S())(function(){const e=(0,g.vm)();return x("div",{className:"newsletter-success"},void 0,b||(b=x("div",{className:"newsletter-heading"},void 0,"Uutiskirjeen tilaus onnistui!")),x("div",{className:"newsletter-description"},void 0,e?w.hq:w.Mq))});var N,C,j=n(72016),_=n(12089);function $(e,t,n,i){C||(C="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var r=e&&e.defaultProps,a=arguments.length-3;if(t||0===a||(t={children:void 0}),1===a)t.children=i;else if(a>1){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+3];t.children=o}if(t&&r)for(var l in r)void 0===t[l]&&(t[l]=r[l]);else t||(t=r||{});return{$$typeof:C,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}const U=function(e){let{Ui:t,ErrorUi:n,SuccessUi:i,CaptchaUi:r,className:a="",newsletterType:s,location:u,autoFillUser:d=!1,url:f,parentFormStateSetter:m}=e;const[p,v]=(0,o.useState)(""),[b,y]=(0,o.useState)(""),[k,S]=(0,o.useState)(""),x=(0,g.E5)(),C=x&&x.email,[U,E]=(0,o.useState)("active");if("hidden"===U||!f)return null;(0,o.useEffect)(()=>{m&&m(U)},[U]);const F=async()=>{const e=new FormData;e.append("email",p),"plus"===s&&(e.append("firstname",b),e.append("lastname",k),e.append("join",w.KD)),"asuminen"===s&&e.a
1ppend("join",w.W6),"mikrobitti"===s&&e.append("join",w.UM);const t=await(async(e,t)=>{try{const n=await fetch(e,{method:"post",body:t});return await n.json()}catch(e){return e}})(f,e);(e=>{if(e.success){if((0,j.Rx)("Newsletter",{eventAction:"Subscribe",eventLabel:s,elementPosition:u}),window.isLocalStorageAvailable&&localStorage.setItem(`has${s}Subscription`,`${u}-${(new Date).getTime()}`),E("success"),!C||C!==p){const e=`${s}-${u}`;(0,_.f0)(p,e)}}else E("error"),(0,j.Rx)("Newsletter",{eventLabel:`Newsletter: ${s}`,eventAction:e.error_key})})(t)},I=e=>{e.preventDefault(),"test"===u?F():E("captcha")},R={active:$(t,{email:p,setEmail:v,firstName:b,setFirstName:y,lastName:k,setLastName:S,handleClick:I,autoFillUser:d}),error:$(n||h,{tryAgain:()=>E("active")}),success:i?$(i,{}):N||(N=$(A,{})),captcha:$(r||c.A,{recaptchaCallback:F})};return $("form",{onSubmit:I,className:l()("newsletter-form",a)},void 0,R[U])}},95747(e,t,n){n.d(t,{A:()=>p});var i,r,a=n(96540),o=n(3100),s=n.n(o),l=n(98451),c=n(95937),u=n(3638),d=n(86672),f=n.n(d);function m(e,t,n,i){r||(r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var a=e&&e.defaultProps,o=arguments.length-3;if(t||0===o||(t={children:void 0}),1===o)t.children=i;else if(o>1){for(var s=Array(o),l=0;l<o;l++)s[l]=arguments[l+3];t.children=s}if(t&&a)for(var c in a)void 0===t[c]&&(t[c]=a[c]);else t||(t=a||{});return{$$typeof:r,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}const p=s()(f())(function(e){let{email:t,setEmail:n,autoFillUser:r}=e;const o=(0,u.E5)();return(0,a.useEffect)(()=>{r&&o&&n(o.email)},[o]),m("div",{className:"newsletter-inputs"},void 0,m(c.A,{placeholder:"Kirjoita sähköpostiosoite",type:"email",value:t,onChange:e=>n(e.target.value),required:!0}),i||(i=m(l.A,{type:"submit"},void 0,"Tilaa")))})},79855(e,t,n){n.d(t,{A:()=>p});var i,r,a,o,s=n(96540),l=n(3100),c=n.n(l),u=n(3638),d=n(28e3),f=n.n(d);function m(e,t,n,i){o||(o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var r=e&&e.defaultProps,a=arguments.length-3;if(t||0===a||(t={children:void 0}),1===a)t.children=i;else if(a>1){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+3];t.children=s}if(t&&r)for(var c in r)void 0===t[c]&&(t[c]=r[c]);else t||(t=r||{});return{$$typeof:o,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}const p=c()(f())(function(e){let{useShorterDisclaimer:t,hideSoftRegistrationText:n}=e;const o=(0,u.vm)();return m("p",{},void 0,!n&&!o&&(i||(i=s.createElement(s.Fragment,null,"Tilaus luo"," ",m("a",{target:"_blank",rel:"noopener",href:"https://www.almamedia.fi/alma-tunnus/"},void 0," ","Alma-tunnuksen"),", jolla saat kaikki kirjautuneen käyttäjän hyödyt käyttöösi."," "))),t?r||(r=m("a",{target:"_blank",rel:"noopener",href:"https://www.almamedia.fi/tietosuoja?_ga=2.145622071.2022706140.1546945007-624056942.1546522787"},void 0," ","Alma Median tietosuojakuvaus")):a||(a=s.createElement(s.Fragment,null,"Tilaamalla uutiskirjeen vahvistan lukeneeni ja hyväksyneeni"," ",m("a",{target:"_blank",rel:"noopener",href:"https://www.almamedia.fi/tietosuoja?_ga=2.145622071.2022706140.1546945007-624056942.1546522787"},void 0,"Alma Median tietosuojakuvauksen"),".")))})},3354(e,t,n){n.d(t,{$5:()=>o,Dh:()=>l,KD:()=>u,Mq:()=>m,Rv:()=>s,UM:()=>f,W6:()=>d,hq:()=>p,re:()=>c});var i,r=n(96540);function a(e,t,n,r){i||(i="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var a=e&&e.defaultProps,o=arguments.length-3;if(t||0===o||(t={children:void 0}),1===o)t.children=r;else if(o>1){for(var s=Array(o),l=0;l<o;l++)s[l]=arguments[l+3];t.children=s}if(t&&a)for(var c in a)void 0===t[c]&&(t[c]=a[c]);else t||(t=a||{});return{$$typeof:i,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}const o="https://uutiskirje.iltalehti.fi/account/?ajax",s="https://uutiskirje-plus.iltalehti.fi/account/?ajax",l="https://uutiskirje-tunnus.almamedia.fi/account/?ajax",c="https://uutiskirje-mikrobitti.iltalehti.fi/account/?ajax",u=1867930,d=2311671,f=1575274,m=r.createElement(r.Fragment,null,a("div",{className:"alma-tunnus-created"},void 0,"Uutiskirjeen tilaajana sinulle on luotu oma Alma-tunnus. Käy vielä vahvistamassa se sähköpostissasi."),a("div",{},void 0,"Tilauksen voi peruuttaa sähköpostissa olevalla linkillä.")),p=a("div",{},void 0,"Saat uutiskirjeen jatkossa sähköpostiisi. Tilauksen voi peruuttaa sähköpostissa olevalla linkillä.")},35276(e,t,n){var i=n(76314)(function(e){return e[1]});
1i.push([e.id,".asuminen-newsletter-embed{display:flex;flex-direction:column;margin:14px}.asuminen-newsletter-embed .image-container{height:136px}.asuminen-newsletter-embed .image-container img{height:100%;object-fit:cover;width:100%}.asuminen-newsletter-embed .text-container{background-color:var(--asuminen-newsletter-bg-color);color:var(--white);padding:14px}.asuminen-newsletter-embed .newsletter-heading{display:flex;font-family:Bernina Sans Condensed,Arial,sans-serif;font-size:25px;font-weight:700;line-height:1;margin-bottom:7px}.asuminen-newsletter-embed .newsletter-icon{display:block;height:23px;margin-right:14px}.asuminen-newsletter-embed .newsletter-description{font-family:Bernina Sans Condensed,Arial,sans-serif;font-size:18px;font-weight:400;margin-bottom:7px}.asuminen-newsletter-embed .newsletter-description a{color:var(--white);text-decoration:underline}.asuminen-newsletter-embed .try-again-button{color:var(--white);font-family:Bernina Sans Condensed,Arial,sans-serif;font-size:18px;font-weight:400;text-decoration:underline}.asuminen-newsletter-embed .newsletter-privacy{color:var(--white);display:block;font-family:Bernina Sans Condensed,Arial,sans-serif;font-size:14px;font-weight:600;margin-top:14px}.asuminen-newsletter-embed .newsletter-privacy p{margin-bottom:0}.asuminen-newsletter-embed .newsletter-privacy a{color:var(--white);text-decoration:underline}.asuminen-newsletter-embed .newsletter-inputs .input-container{border-color:var(--white)}.asuminen-newsletter-embed .newsletter-inputs .button{background-color:var(--asuminen-newsletter-button-bg-color);border-color:var(--asuminen-newsletter-button-bg-color);color:var(--asuminen-newsletter-button-color)}@media screen and (min-width:740px){.asuminen-newsletter-embed{flex-direction:row;min-height:201px}.asuminen-newsletter-embed .image-container{flex:1;height:auto}.asuminen-newsletter-embed .image-container img{height:100%;object-fit:cover;width:100%}.asuminen-newsletter-embed .text-container{flex:2}}",""]),i.locals={},e.exports=i},66128(e,t,n){var i=n(76314)(function(e){return e[1]});i.push([e.id,".default-captcha-ui{min-height:78px}",""]),i.locals={},e.exports=i},72864(e,t,n){var i=n(76314)(function(e){return e[1]});i.push([e.id,".newsletter-error .try-again-button{display:block}",""]),i.locals={},e.exports=i},77574(e,t,n){var i=n(76314)(function(e){return e[1]});i.push([e.id,".alma-tunnus-created{margin-bottom:7px}",""]),i.locals={},e.exports=i},99522(e,t,n){var i=n(76314)(function(e){return e[1]});i.push([e.id,".newsletter-inputs{align-items:flex-end;display:flex}",""]),i.locals={},e.exports=i},84846(e,t,n){var i=n(76314)(function(e){return e[1]});i.push([e.id,"",""]),i.locals={},e.exports=i}
1,92630(e,t,n){var i=n(35276),r=n(61352),a="string"==typeof i?[[e.id,i,""]]:i;(t=e.exports=i.locals||{})._getContent=function(){return a},t._getCss=function(){return""+i},t._insertCss=function(e){return r(a,e)}},8902(e,t,n){var i=n(66128),r=n(61352),a="string"==typeof i?[[e.id,i,""]]:i;(t=e.exports=i.locals||{})._getContent=function(){return a},t._getCss=function(){return""+i},t._insertCss=function(e){return r(a,e)}},53206(e,t,n){var i=n(72864),r=n(61352),a="string"==typeof i?[[e.id,i,""]]:i;(t=e.exports=i.locals||{})._getContent=function(){return a},t._getCss=function(){return""+i},t._insertCss=function(e){return r(a,e)}},92812(e,t,n){var i=n(77574),r=n(61352),a="string"==typeof i?[[e.id,i,""]]:i;(t=e.exports=i.locals||{})._getContent=function(){return a},t._getCss=function(){return""+i},t._insertCss=function(e){return r(a,e)}},86672(e,t,n){var i=n(99522),r=n(61352),a="string"==typeof i?[[e.id,i,""]]:i;(t=e.exports=i.locals||{})._getContent=function(){return a},t._getCss=function(){return""+i},t._insertCss=function(e){return r(a,e)}},28e3(e,t,n){var i=n(84846),r=n(61352),a="string"==typeof i?[[e.id,i,""]]:i;(t=e.exports=i.locals||{})._getContent=function(){return a},t._getCss=function(){return""+i},t._insertCss=function(e){return r(a,e)}}}]);
2//# sourceMappingURL=AsuminenNewsletterEmbed.b4a12e1c7.chunk.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.