PageSourceSearch

https://www.tivi.fi/static/static/js/async/createaccount.bd4898e95b.js

js tivi.fi collected 2026-09-24 15:29:24 UTC 6,275 bytes, 24 lines download raw bytes

1"use strict";(globalThis.rspackChunktalent_news_frontend||=[]).push([[338],{23684(e,t,n){n.d(t,{A:()=>g});var o=n(74430),i=n(96540),r=n(45560),a=n(71043),l=n(36104);let c=(r.Ay.div.withConfig({componentId:"tmcl-__sc-1rk0gek-0"}))(["display:block;"," "," "," ",";"],({$orientation:e,$size:t})=>(0,r.AH)`
2        ${"horizontal"===e&&`
3            width: 100% !important;
4            height: ${(0,l.b)(t)};
5        `}
6        ${"vertical"===e&&`
7            height: 100% !important;
8            width: ${(0,l.b)(t)};
9        `}
10    `,({$displayBreakpoint:e})=>(0,r.AH)`
11        ${e&&`
12            display: none;
13            @media ${(0,l.J)(a.Ay,e)} {
14                display: block;
15            }
16        `}
17    `,({$hideBreakpoint:e})=>(0,r.AH)`
18        ${e&&`
19            @media ${(0,l.J)(a.Ay,e)} {
20                display: none;
21            }
22        `}
23    `,({$fillUpSpace:e})=>e&&"flex: 1"),s=(0,r.Ay)(c).attrs(e=>({...e.tagAs?{as:e.tagAs}:{}})).withConfig({componentId:"tmcl-__sc-1rk0gek-1"})([""]),d=i.forwardRef(({orientation:e="horizontal",displayBreakpoint:t,hideBreakpoint:n,size:r="core.spacing.medium",isVisible:a=!0,fillUpSpace:l=!1,...c},d)=>{let u={...c,ref:d};return a?i.createElement(s,(0,o._)({$orientation:e,$displayBreakpoint:t,$hideBreakpoint:n,$size:r,$fillUpSpace:l},u)):null});d.displayName="Spacer";var u=n(23564);let m=(r.Ay.div.withConfig({componentId:"tmcl-__sc-1yrmuzz-0"}))(["display:flex;flex-direction:column;align-items:center;"]),p=(0,r.Ay)(m).attrs(e=>({...e.tagAs?{as:e.tagAs}:{}})).withConfig({componentId:"tmcl-__sc-1yrmuzz-2"})([""]),w=(r.Ay.span.withConfig({componentId:"tmcl-__sc-1yrmuzz-1"}))(["color:",";font-size:",";line-height:",";",";"],a.I8.color.primary.foreground,a.I8.font.scale["0"],a.I8["line-height"].medium,({theme:e})=>e.foundation.media.type.ui.normal),y=(0,r.Ay)(w).attrs(e=>({...e.tagAs?{as:e.tagAs}:{}})).withConfig({componentId:"tmcl-__sc-1yrmuzz-3"})([""]),g=i.forwardRef(({size:e,text:t="Lataus käynnissä..",useMediaColors:n,...r},a)=>i.createElement(p,(0,o._)({ref:a},r),i.createElement(u.A,{size:e,useMediaColors:n}),i.createElement(d,{size:"core.spacing.medium"}),i.createElement(y,null,t)))},15599(e,t,n){n.d(t,{A:()=>y});var o,i,r=n(74848);n(96540);var a=n(45560),l=n(8814),c=n(71043),s=n(23684),d=n(21903);let u=(a.Ay.div.withConfig({componentId:"sc-4133bf83-0"}))(["background:",";position:sticky;top:0;width:100%;height:100%;z-index:",";&:before{content:'';position:fixed;width:100%;height:100%;left:0;top:0;background:",";}"],e=>{let{theme:t}=e;return(0,d.b)(`theme1.${t.foundation.theme.context}.color.overlay`)},c.I8["z-index"].overlay,e=>{let{theme:t}=e;return(0,d.b)(`theme1.${t.foundation.theme.context}.color.overlay`)}),m=(0,a.Ay)(s.A).withConfig({componentId:"sc-4133bf83-1"})(["position:absolute;left:calc(50% - ("," / 2));padding-top:15%;@media ","{padding-top:50%;}"],c.I8.size.target["xx-large"],c.I8.mediaquery.max["x-small"]);var p=e=>{let{...t}=e;return(0,r.jsx)(u,{...t,children:o||(o=(0,r.jsx)(m,{text:"",useMediaColors:!0,size:"core.size.target.xx-large"}))})};let w=(a.Ay.div.withConfig({componentId:"sc-521174db-0"}))(["",""],e=>{let{$isLoading:t}=e;return t&&"transform: translate(0, 0);"});var y=e=>{let{isLoading:t,children:n,...o}=e,a=(0,l.d4)(e=>e.ui.loading),c=(0,l.d4)(e=>{var t,n;return null==(n=e.history.previousLocation)||null==(t=n[0])?void 0:t.pathname}),s=(t||a)&&!(null==c?void 0:c.includes("/authcallback"));return(0,r.jsxs)(w,{$isLoading:s,...o,children:[s&&(i||(i=(0,r.jsx)(p,{}))),n]})}},2171(e,t,n){n.r(t),n.d(t,{default:()=>v});var o,i,r=n(74848),a=n(96540),l=n(25402),c=n(8814),s=n(31237),d=n(73581),u=n(66207),m=n(95328),p=n(61594),w=n(53421),y=n(68574),g=n(15599);let h="f3cd644dec8947bb63b2beb56c6dfa4c";async function f(e){let t={source:"create-account",screen_hint:"signup",mode:"create-account"};if(e)try{t.email=await (0,d.w)(e,h),t.emailEditable=!1}catch(n){console.error("Error decrypting email:",n),window.location.hostname.includes("localdev")&&(console.warn("Using plaintext email for localhost testing"),t.email=e,t.emailEditable=!1)}try{let e=await (null===u.I8||void 0===u.I8?void 0:u.I8.getUserInfo()),t=(0,y.H2)(e);
23(0,p.TV)(p.z3,JSON.stringify(t??[]),20/1440)}catch(e){console.error("Error setting rights cookie:",e)}m.Ay.openAlmaLogin(t,{openUrl:e=>{window.location.replace(e)}})}var A=()=>{let[e]=(0,w.Ng)({}),[t,n]=(0,a.useState)(void 0),{loggedIn:i,email:l}=(0,c.d4)(e=>e.user),p=(0,a.useMemo)(()=>new URLSearchParams(s.A.location.search),[]);return(0,a.useEffect)(()=>{let o=async e=>{try{let t=await (0,d.w)(e,h);n(t)}catch(t){console.error("Error decrypting email:",t),window.location.hostname.includes("localdev")?(console.warn("Using plaintext email for localhost testing"),n(e)):(console.error("Invalid email parameter, redirecting to home"),window.location.replace(window.location.origin))}},r=p.get("email");r&&!t&&o(r),(i&&t&&l===t||!r)&&window.location.replace(window.location.origin),!i&&(null===u.I8||void 0===u.I8?void 0:u.I8.isInitialized())&&f(r),i&&t&&l!==t&&e({url:`${window.location.origin}/luo-tunnus?${p.toString()}`})},[i,p,t,l,e]),o||(o=(0,r.jsx)(g.A,{children:(0,r.jsx)(m.wn,{children:(0,r.jsx)(m.EY,{children:"Tarkistetaan Alma Tunnusta..."})})}))};async function v(e){let{store:t}=e;return await t.dispatch((0,l.A)("tunnus","luo-tunnus","luo-tunnus","otherpage")),i||(i=(0,r.jsx)(A,{}))}},73581(e,t,n){async function o(e,t){let n=Array.from(new Uint8Array(atob(e).split("").map(e=>e.charCodeAt(0)))),o=await window.crypto.subtle.importKey("raw",new TextEncoder().encode(t),{name:"AES-GCM"},!1,["decrypt"]),i=await window.crypto.subtle.decrypt({name:"AES-GCM",iv:new Uint8Array(n.slice(0,12)),tagLength:128},o,new Uint8Array(n.slice(12)));return new TextDecoder("utf-8").decode(new Uint8Array(i))}async function i(e,t){try{let n=await crypto.subtle.importKey("raw",new TextEncoder().encode(t),{name:"AES-GCM"},!1,["encrypt"]),o=new TextEncoder().encode(e),i=window.crypto.getRandomValues(new Uint8Array(12)),r=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:i},n,o),a=Array.from(i).concat(Array.from(new Uint8Array(r)));return btoa(String.fromCharCode.apply(null,a))}catch(e){return console.error("Encryption failed:",e),""}}n.d(t,{w:()=>o,y:()=>i})}}]);
24//# sourceMappingURL=createaccount.bd4898e95b.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.