PageSourceSearch

https://www.uusisuomi.fi/static/static/js/async/createaccount.a072243a25.js

js uusisuomi.fi collected 2026-10-01 11:38:47 UTC 2,831 bytes, 2 lines download raw bytes

1"use strict";(globalThis.rspackChunktalent_news_frontend||=[]).push([["rj"],{bG(e,n,t){t.r(n),t.d(n,{default:()=>E});var r,o,a=t("X"),i=t("u"),c=t("k4"),l=t("XE"),s=t("lW"),d=t("j4"),w=t("Z2"),u=t("v"),y=t("k5"),m=t("N4"),p=t("O1"),g=t("UD");let h="f3cd644dec8947bb63b2beb56c6dfa4c";async function f(e){let n={source:"create-account",screen_hint:"signup",mode:"create-account"};if(e)try{n.email=await (0,d.w)(e,h),n.emailEditable=!1}catch(t){console.error("Error decrypting email:",t),window.location.hostname.includes("localdev")&&(console.warn("Using plaintext email for localhost testing"),n.email=e,n.emailEditable=!1)}try{let e=await (null===w.I8||void 0===w.I8?void 0:w.I8.getUserInfo()),n=(0,p.H2)(e);(0,y.TV)(y.z3,JSON.stringify(n??[]),20/1440)}catch(e){console.error("Error setting rights cookie:",e)}u.Ay.openAlmaLogin(n,{openUrl:e=>{window.location.replace(e)}})}var A=()=>{let[e]=(0,m.Ng)({}),[n,t]=(0,i.useState)(void 0),{loggedIn:o,email:c}=(0,l.d4)(e=>e.user),y=(0,i.useMemo)(()=>new URLSearchParams(s.A.location.search),[]);return(0,i.useEffect)(()=>{let r=async e=>{try{let n=await (0,d.w)(e,h);t(n)}catch(n){console.error("Error decrypting email:",n),window.location.hostname.includes("localdev")?(console.warn("Using plaintext email for localhost testing"),t(e)):(console.error("Invalid email parameter, redirecting to home"),window.location.replace(window.location.origin))}},a=y.get("email");a&&!n&&r(a),(o&&n&&c===n||!a)&&window.location.replace(window.location.origin),!o&&(null===w.I8||void 0===w.I8?void 0:w.I8.isInitialized())&&f(a),o&&n&&c!==n&&e({url:`${window.location.origin}/luo-tunnus?${y.toString()}`})},[o,y,n,c,e]),r||(r=(0,a.jsx)(g.A,{children:(0,a.jsx)(u.wn,{children:(0,a.jsx)(u.EY,{children:"Tarkistetaan Alma Tunnusta..."})})}))};async function E(e){let{store:n}=e;return await n.dispatch((0,c.A)("tunnus","luo-tunnus","luo-tunnus","otherpage")),o||(o=(0,a.jsx)(A,{}))}},j4(e,n,t){async function r(e,n){let t=Array.from(new Uint8Array(atob(e).split("").map(e=>e.charCodeAt(0)))),r=await window.crypto.subtle.importKey("raw",new TextEncoder().encode(n),{name:"AES-GCM"},!1,["decrypt"]),o=await window.crypto.subtle.decrypt({name:"AES-GCM",iv:new Uint8Array(t.slice(0,12)),tagLength:128},r,new Uint8Array(t.slice(12)));return new TextDecoder("utf-8").decode(new Uint8Array(o))}async function o(e,n){try{let t=await crypto.subtle.importKey("raw",new TextEncoder().encode(n),{name:"AES-GCM"},!1,["encrypt"]),r=new TextEncoder().encode(e),o=window.crypto.getRandomValues(new Uint8Array(12)),a=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:o},t,r),i=Array.from(o).concat(Array.from(new Uint8Array(a)));return btoa(String.fromCharCode.apply(null,i))}catch(e){return console.error("Encryption failed:",e),""}}t.d(n,{w:()=>r,y:()=>o})}}]);
2//# sourceMappingURL=createaccount.a072243a25.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.