PageSourceSearch

https://stella.iventa.eu/_next/static/chunks/pages/login-d72c86abe8756fa8.js

js iventa.eu collected 2026-10-02 02:19:52 UTC 11,519 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8295],{7984:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return r(84715)}])},14950:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(37876);r(14232);var s=r(52197),o=r(25986);let i=({errors:e=null,name:t})=>e&&Object.keys(e).length&&e?.[t]?(0,n.jsx)(o.f,{role:"alert",children:(0,n.jsx)(s.K,{errors:e,name:t})}):null},25986:(e,t,r)=>{"use strict";r.d(t,{f:()=>n});let n=r(15878).styled.span.withConfig({componentId:"sc-b080cba0-0"})(["color:",";font-size:0.9em;margin-top:2px;display:block;"],({theme:e})=>e.colors.error)},50477:()=>{},52516:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(37876);r(14232);var s=r(89099),o=r(15878),i=r(72309),a=r(93473);let l=o.styled.a.withConfig({componentId:"sc-7568ab29-0"})(["cursor:pointer;font-weight:bold;svg{margin-right:0.5em;fill:",";}"],e=>e.theme.colors.darkGreen),c=({to:e="back"})=>{let t=(0,s.useRouter)(),{t:r}=(0,i.Bd)("common");return(0,n.jsxs)(l,{onClick:()=>"back"!==e?t.push(e):t.back(),children:[(0,n.jsx)(a.A,{iconName:"ArrowBack"}),(0,n.jsx)("span",{children:r("back-button.text")})]})}},57842:(e,t,r)=>{"use strict";r.d(t,{l:()=>n});let n=r(15878).styled.label.withConfig({componentId:"sc-12b11a52-0"})(["text-transform:uppercase;font-weight:bold;font-size:10px;display:flex;flex-direction:column;margin-bottom:1em;letter-spacing:0.1em;"])},59434:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(37876),s=r(14232),o=r(68048);let i=s.forwardRef(function(e,t){let{onChange:r,onBlur:s,errors:i,name:a,id:l,type:c="text"}=e;return(0,n.jsx)(o.V8,{type:c,name:a,id:l,ref:t,onChange:r,onBlur:s,className:i?.[a]?"invali
1d":""})})},59595:(e,t,r)=>{"use strict";r.d(t,{AY:()=>n,P_:()=>s}),r(99742);let n=e=>{let t;try{return t=new URL(e),"http:"===t.protocol||"https:"===t.protocol}catch{return!1}},s=(e,t,r)=>{let n=new URL(e),s=n.pathname.split("/").filter(Boolean);if(0===s.length)return n.pathname=`/${t}`,n;if(!r.includes(s[0]))return n.pathname=`/${t}/${s.join("/")}`,n;let o=s.slice(1);return n.pathname=o.length>0?`/${t}/${o.join("/")}`:`/${t}`,n}},59627:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(30896);class s{constructor(e,t){this.encoding=n.enc.Base64,this.iv=n.enc.Utf8.parse(t);let r=n.enc.Utf8.parse(e);r=(r=r.toString(n.enc.Hex)).padEnd(64,"0"),this.key=n.enc.Hex.parse(r)}encrypt(e){return n.AES.encrypt(e,this.key,{iv:this.iv}).ciphertext.toString(n.enc.Base64)}}let o=s},62027:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(37876),s=r(15878),o=r(93473),i=r(12010),a=r(52516),l=r(95142);let c=s.styled.section.withConfig({componentId:"sc-dfa8ced-0"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2rem;gap:1rem;"]),d=s.styled.div.withConfig({componentId:"sc-dfa8ced-1"})(["display:flex;justify-content:center;align-items:center;gap:1rem;padding:1rem;color:",";"],({theme:e,$state:t})=>"error"===t?e.colors.error:e.colors.primary),u=({title:e,subtitle:t,state:r="empty",children:s,disableBackButton:u=!1})=>(0,n.jsxs)(c,{children:[(0,n.jsxs)(d,{$state:r,children:["loading"===r&&(0,n.jsx)(i.A,{size:"8rem"}),"error"===r&&(0,n.jsx)(o.A,{size:"8rem",iconName:"ErrorOutline"}),"empty"===r&&(0,n.jsx)(o.A,{size:"8rem",iconName:"Info"})]}),(0,n.jsx)(l.A,{as:"h1",$variant:"h1",$weight:700,children:Array.isArray(e)?(0,n.jsx)("ul",{children:e.map(e=>(0,n.jsx)("li",{children:e},e))}):e}),t&&(0,n.jsx)(l.A,{as:"h2",$variant:"copy",children:t}),s,!u&&("empty"===r||"error"===r)&&(0,n.jsx)(c,{children:(0,n.jsx)(a.A,{})})]})},68048:(e,t,r)=>{"use strict";r.d(t,{V8:()=>i,mw:()=>l,s3:()=>a,vf:()=>c});var n=r(15878),s=r(93473),o=r(84184);let i=n.styled.input.withConfig({componentId:"sc-561994b5-0"})(["font-size:16px;height:2.5em;border:1px solid ",";border-radius:4px;width:100%;padding-left:1em;
1&.invalid{border-color:",";}"],({theme:e})=>e.colors.darkGrey,({theme:e})=>e.colors.error),a=n.styled.div.withConfig({componentId:"sc-561994b5-1"})(["display:flex;position:relative;button{position:absolute;top:0;right:0;}"]),l=(0,n.styled)(s.A).withConfig({componentId:"sc-561994b5-2"})(["color:",";"],({theme:e})=>e.colors.darkGreen),c=(0,n.styled)(o.pH).withConfig({componentId:"sc-561994b5-3"})(["height:100%;margin-right:1em;svg{height:1em;}"])},84619:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(37876),s=r(14232),o=r(59434),i=r(68048);let a=s.forwardRef(function(e,t){let[r,a]=(0,s.useState)(!1),{onBlur:l,onChange:c,errors:d,name:u,id:h}=e;return(0,n.jsxs)(i.s3,{children:[(0,n.jsx)(o.A,{name:u,id:h,ref:t,className:d[u]?"invalid":"",type:r?"text":"password",onChange:c,onBlur:l,errors:d}),(0,n.jsx)(i.vf,{type:"button",onClick:()=>{a(!r)},"aria-controls":"password","aria-expanded":r,children:(0,n.jsx)(i.mw,{iconName:r?"VisibilityOff":"Visibility"})})]})})},84715:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>K,default:()=>P});var n=r(37876),s=r(14232),o=r(72309),i=r(89099),a=r(88992),l=r(86297),c=r.n(l),d=r(10553),u=r(15878),h=r(59627),p=r(14368),m=r(32203);let g=["auth.password-changed"],f=["auth.login-failed","30002","30001"];var y=r(76984),x=r(73317),w=r(21962),k=r(6166),j=r(49833);let v=async({email:e,encryptedPassword:t,timeStamp:r,locale:n})=>{let s=await (0,j.A)({endpoint:k.v.cockpitApi.login,locale:n,requestBody:{source:"",login:e,password_encrypted:t,ts:r}});if(!s)throw Error("Could not login user!");return s},b=async({authToken:e})=>{let t=await (0,j.A)({endpoint:k.v.cockpitApi.sessionInfo,authToken:e,requestBody:{}});if(!t)throw Error("Could not login user!");return t};var A=r(19383);let I="iventa-kundencockpit-credentials",_={providers:[(0,w.A)({id:I,name:"Iventa KundenCockpit",credentials:{email:{type:"text"},passwordEncrypted:{type:"password"},locale:{type:"text"},timeStamp:{type:"text"}},async authorize(e){try{let t=await v({email:e.email,encryptedPassword:e.passwordEncrypted,timeStamp:e.timeStamp,locale:e.locale}),r=(0,y.s)(t.iventa_session_token);return{id:String(r["iv_u-id"]),authToken:t.iventa_session_token,sessionInfo:t.session_info}}catch(e){throw console.error(e),Error(e instanceof A.I?e.code.toString():"auth.login-failed")}}}),(0,w.A)({id:"iventa-kundencockpit-authtoken",name:"Iventa KundenCockpit with authToken",credentials:{authToken:{type:"text"}},async authorize(e){try{let t=await b({authToken:e.authToken}),r=(0,y.s)(e.authToken);return{id:String(r["iv_u-id"]),authToken:e.authToken,sessionInfo:t}}catch(e){throw console.error(e),Error(e instanceof A.I?e.code.toString():"auth.login-failed")}}})],callbacks:{async jwt({token:e,user:t,trigger:r,session:n}){if(t)return{...e,authToken:t.authToken,sessionInfo:t.sessionInfo};if(e.error)return e;"update"===r&&(n?.user?.lang&&(e.sessionInfo.user.lang=n.user.lang),n?.user?.currency&&(e.sessionInfo.user.currency=n.user.currency));try{let t=(0,y.s)(e.authToken).exp;if(Date.now()<=1e3*t)return e;let r=await b({authToken:e.authToken});return{...e,sessionInfo:r}}catch(r){console.error(r);let t=r instanceof A.I;return{...e,error:{code:t?r.code:401,message:t?r.description:"auth.login-failed"}}}},session:async({session:e,token:t})=>({...e,user:t.sessionInfo.user,featureMap:t.sessionInfo.featureMap,agentur:t.sessionInfo.agentur,authToken:t.authToken,error:t?.error||null})},cookies:{sessionToken:{name:"__Secure-next-auth.session-token",options:{path:"/",httpOnly:!0,sameSite:"none",secure:!0}},callbackUrl:{name:"__Secure-next-auth.callback-url",options:{path:"/",httpOnly:!0,sameSite:"none",secure:!0}},csrfToken:{name:"__Host-next-auth.csrf-token",options:{path:"/",httpOnly:!0,sameSite:"none",secure:!0}}},pages:{signIn:"/login",signOut:"/login",error:"/login"},debug:!1};(0,x.Ay)(_);var S=r(59595),C=r(15753),T=r(41634),z=r(44799),E=r(59434),N=r(84619),q=r(14950),B=r(62027),O=r(52194),$=r(57842),L=r(25986);let R=u.styled.p.withConfig({componentId:"sc-4077dc9f-0"})(["padding:0.5em 1em;background-color:",";border:1px solid ",";border-radius:",";"],e=>e.theme.colors.lightGreen,e=>e.theme.colors.midGreen,e=>e.theme.borderRadius),U=(0,u.styled)(O.dz).withConfig({componentId:"sc-4077dc9f-1"})(["justify-content:center;"]),H=()=>{let e=(0,d.useSession)(),{t}
1=(0,o.Bd)(["common","errors"]),[r,l]=(0,s.useState)(!1),u=(0,i.useRouter)(),y=(0,p.A)(m.Z1,e=>e.language),{register:x,handleSubmit:w,formState:{errors:k}}=(0,a.mN)({mode:"onChange"}),j=async e=>{var t,r;let{email:n,password:s}=e;if(!n||!s)return;l(!0);let o=new Date().toISOString(),i=new h.A("to20!20wa",o).encrypt(s),a=await (0,d.signIn)(I,{email:n,passwordEncrypted:i,locale:u.locale,timeStamp:o,callbackUrl:u.query?.callbackUrl??"/",redirect:!1});if(!a.ok){l(!1),u.push({query:{...u.query,error:a.error}});return}let c=await (0,d.getSession)();c?window.location.assign((0,S.P_)(a.url,(t=c?.user,r=u.locale,t?.lang_country==="CH"?"de-CH":t?.lang?t.lang:r),u.locales)):l(!1)};return((0,s.useEffect)(()=>{let{query:e,locale:t,pathname:r,asPath:n}=u;y&&y!==t&&u.replace({pathname:r,query:e},n,{locale:y})},[y,u]),"loading"===e.status)?(0,n.jsx)(U,{children:(0,n.jsx)(B.A,{state:"loading",title:t("loading")})}):(0,n.jsxs)(O.dz,{children:[(0,n.jsxs)(O._3,{children:[(0,n.jsx)(O.w3,{src:"/logo-iventa-stella-dark.png",alt:"Iventa Stella Logo"}),(0,n.jsx)(O.x9,{children:(0,n.jsxs)(o.x6,{t:t,i18nKey:"auth.title",children:["Willkommen bei ",(0,n.jsx)("span",{children:"Iventa STELLA"}),"."]})}),(0,n.jsx)(O.Es,{children:(0,n.jsxs)(o.x6,{t:t,i18nKey:"auth.copy",children:["Stellenanzeigen online schalten mit nur wenigen Klicks. Mit ",(0,n.jsx)("span",{children:"Iventa STELLA"}),"."]})}),(0,n.jsx)($.l,{children:t("auth.language")}),(0,n.jsx)(T.A,{}),!!g.includes(u.query?.authMsg)&&(0,n.jsx)(R,{children:t(u.query.authMsg)}),(0,n.jsxs)("form",{onSubmit:w(j),"aria-label":"Sign In",children:[(0,n.jsx)($.l,{htmlFor:"email",children:t("auth.email")}),(0,n.jsx)(q.A,{errors:k,name:"email"}),(0,n.jsx)(E.A,{...x("email",{required:{value:!0,message:t("auth.no-email")},validate:e=>c()(e)||t("auth.email-not-valid")}),id:"email",errors:k}),(0,n.jsx)($.l,{htmlFor:"password",children:t("auth.password")}),(0,n.jsx)(q.A,{errors:k,name:"password"}),(0,n.jsx)(N.A,{errors:k,id:"password",...x("password",{required:{value:!0,message:t("auth.no-password")}})}),f.includes(u.query?.error)&&(0,n.jsx)(L.f,{role:"alert",children:t(u.query.error,{ns:"auth.login-failed"==u.query.error?"common":"errors"})}),(0,n.jsx)(C.A,{state:r?"loading":void 0,size:"large",children:t("auth.submit")})]})]}),(0,n.jsx)(z.A,{})]})};var K=!0;let P=()=>(0,n.jsx)(H,{})},95142:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(15878);let s=(0,n.css)(["font-size:2rem;font-style:normal;line-height:2.5rem;"]),o=(0,n.css)(["font-size:1.5rem;font-style:normal;line-height:2rem;"]),i=(0,n.css)(["font-size:1rem;font-style:normal;line-height:1.5rem;"]),a=(0,n.css)(["font-size:0.875rem;font-style:normal;line-height:1.25rem;"]),l=(0,n.css)(["font-size:0.875rem;font-style:normal;line-height:1rem;"]),c={h1:s,h2:o,copy:i,cardcopy:a,data:l,sidebar:(0,n.css)(["font-size:0.75rem;font-style:normal;line-height:1rem;"]),label:(0,n.css)(["font-size:0.75rem;font-style:normal;line-height:1rem;letter-spacing:0.0625rem;text-transform:uppercase;"])},d=n.styled.span.withConfig({componentId:"sc-65ce4fe-0"})(["margin:0;padding:0;line-height:1;color:",";",";font-weight:",";text-transform:",";text-align:",";overflow-wrap:",";white-space:",";"],({$color:e="black",theme:t})=>t.colors[e],({$variant:e="copy"})=>c[e],({$weight:e=400})=>e,({$textTransform:e})=>e,({$textAlign:e})=>e,({$overflowWrap:e})=>e,({$whiteSpace:e})=>e)}},e=>{e.O(0,[8513,8992,645,3628,1132,636,6593,8792],()=>e(e.s=7984)),_N_E=e.O()}]);

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.