1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3459],{97946:function(e,i,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return n(55082)}])},55082:function(e,i,n){"use strict";n.r(i);var t=n(52322),r=n(86447),o=n(27511),a=n(5632),l=n(2784),s=n(73697),c=n(6903),d=n(7455),u=n(29152),f=n(30429);i.default=()=>{let{query:e}=(0,a.useRouter)(),{user:i}=(0,r.aF)();(0,d.y)(o.AnalyticsConversionPage.Login),(0,l.useEffect)(()=>{if((null==i?void 0:i.isSignedIn)&&(null==i?void 0:i.authUserId)){if(null==e?void 0:e.callbackUrl){(0,f.Kn)(f.rC,e.callbackUrl);return}switch(e.origin){case o.LoginRedirect.PAYMENT:return;case o.LoginRedirect.REMOTE_CONTROLLER:(0,f.gl)({params:e.params});return;case o.LoginRedirect.VOUCHER:(0,f.YV)(e.voucher,e.redirectTo);return;case o.LoginRedirect.VOUCHER_PURCHASE:(0,f.HR)();return;default:(0,f.Kn)(f.rC)}}},[e.origin,e.callbackUrl,e.params,e.redirectTo,e.voucher,null==i?void 0:i.isSignedIn,null==i?void 0:i.authUserId]);let n=(()=>{switch(e.origin){case o.LoginRedirect.PAYMENT:case o.LoginRedirect.VOUCHER_PURCHASE:return u.Z.t("In order to make a purchase, we need you to log in or create a new account");case o.LoginRedirect.VOUCHER:return u.Z.t("In order to activate a voucher, we need you to log in or create a new account");default:return}})();return(0,t.jsx)(s.c,{title:u.Z.t("Login"),...n&&{subtitle:n},children:(0,t.jsx)(c.U,{email:null==e?void 0:e.email,callbackUrl:null==e?void 0:e.callbackUrl})})}},7948:function(e,i,n){"use strict";n.d(i,{z:function(){return s}});var t=n(52322),r=n(74087);n(2784);var o=n(35505),a=n(24126);let l=(0,o.ZP)(r.Z).withConfig({componentId:"sc-d15329f0-0"})(["box-shadow:none;font-weight:bold;padding:.75rem 1rem;",";:hover{box-shadow:none;}"],e=>{var i,n,t;return(0,a.Q)("border-radius",null===(t=e.theme)||void 0===t?void 0:null===(n=t.customizations)||void 0===n?void 0:null===(i=n.Button)||void 0===i?void 0:i.borderRadius)}),s=e=>(0,t.jsx)(l,{...e,children:e.children})},73697:function(e,i,n){"use strict";n.d(i,{c:function(){return E}});var t=n(52322),r=n(46730),o=n(78935),a=n(86447),l=n(96577),s=n.n(l),c=n(39097),d=n.n(c);n(2784);var u=n(35505),f=n(29152),h=n(7948),g=n(17439);let p="16px",m=u.ZP.div.withConfig({componentId:"sc-f465efc8-0"})(["display:flex;flex-direction:column;align-items:center;max-width:320px;margin:auto;",""],e=>e.$isCenteredMenu&&"\n padding-top: ".concat(e.$logoMarginTop||"10rem",";\n ")),x=(0,u.ZP)(r.Z).attrs({component:"h1"}).withConfig({componentId:"sc-f465efc8-1"})(["font-size:36px;line-height:1.39;font-weight:600;text-align:center;margin-bottom:20px;","{font-size:24px;margin-bottom:10px;}"],a.HH),v=(0,u.ZP)(r.Z).attrs({component:"h2"}).withConfig({componentId:"sc-f465efc8-2"})(["font-size:",";line-height:1.6;text-align:center;opacity:0.8;margin:0 -"," 52px;","{font-size:",";margin-bottom:30px;}"],e=>{let{$fontSize:i}=e;return null!=i?i:"20px"},p,a.HH,e=>{let{$fontSize:i}=e;return null!=i?i:"16px"}),w=u.ZP.div.withConfig({componentId:"sc-f465efc8-3"})(["width:100%;max-width:392px;padding-left:",";padding-right:",";margin:4rem 0;","{margin:3rem 0;}"],p,p,a.HH),C=(0,u.ZP)(h.z).withConfig({componentId:"sc-f465efc8-4"})(["align-self:start;margin:24px 32px;","{margin:8px 12px;}"],a.HH),R=u.ZP.div.withConfig({componentId:"sc-f465efc8-5"})(["position:relative;max-height:250px;"]),E=e=>{var i;let{children:n,title:r,subtitle:a,subtitleFontSize:l}=e,{webConfig:c}=(0,g.J)();return(0,t.jsxs)(m,{$isCenteredMenu:c.centeredMenu,$logoMarginTop:null===(i=c.registration)||void 0===i?void 0:i.logoMarginTop,children:[c.centeredMenu?(0,t.jsx)(d(),{href:"/",children:(0,t.jsx)(R,{children:(0,t.jsx)(s(),{src:c.logo,alt:"".concat(c.customer," logo"),width:300,height:55,layout:"responsive"})})}):(0,t.jsx)(d(),{href:"/",children:(0,t.jsx)(C,{startIcon:(0,t.jsx)(o.Z,{}),children:f.Z.t("Back")})}),(0,t.jsxs)(w,{children:[!c.centeredMenu&&r?(0,t.jsx)(x,{children:r}):null,a&&(0,t.jsx)(v,{$fontSize:l,children:a}),n]})]})}},6903:function(e,i,n){"use strict";n.d(i,{U:function(){return I}});var t=n(52322),r=n(86447),o=n(27511),a=n(32799),l=n(39097),s=n.n(l),c=n(5632),d=n(2784),u=n(18671),f=n(81468),h=n(35
1505),g=n(24511),p=n(29152),m=n(62119),x=n(30429),v=n(53609),w=n(68183),C=n(17439),R=n(49917),E=n(11445),P=n(59749),_=n(67668);let Z=h.ZP.div.withConfig({componentId:"sc-dfa919d0-0"})(["display:flex;flex-direction:column;gap:22px;"]),j=h.ZP.div.withConfig({componentId:"sc-dfa919d0-1"})(["margin-top:32px;"]),b=g.Ry().shape({email:g.Z_().required(p.Z.t("Email required")).email(p.Z.t("Enter valid email")),password:g.Z_().required(p.Z.t("Password required"))}),I=e=>{var i;let{email:n,callbackUrl:l}=e,{showError:h}=(0,d.useContext)(w.w),{webConfig:g}=(0,C.J)(),[I,T]=(0,d.useState)(!1),{query:L}=(0,c.useRouter)(),{openQerkoOverlay:y}=(0,R.X)(),{user:H}=(0,r.aF)(),[k]=(0,f.$G)(),U=r.DY.organization,O=L.urlHandle,{values:M,errors:N,handleChange:S,handleSubmit:A}=(0,a.TA)({initialValues:{email:null!=n?n:"",password:""},onSubmit:async e=>{(0,m.i)({formDestination:window.location.href,formLength:2,firstFieldName:"email",firstFieldType:"email"}),T(!0);try{if(await r.I8.signInWithEmailAndPassword(e.email,e.password),O&&-1===O.indexOf("/"))(0,x.Kn)(()=>(0,x.Ig)((0,x.wv)(O)),l);else{let e=L.voucher,i=L.redirectTo;switch(L.origin){case o.LoginRedirect.REMOTE_CONTROLLER:(0,x.gl)({params:L.params});break;case o.LoginRedirect.PAYMENT:(0,x.R9)();break;case o.LoginRedirect.VOUCHER:(0,x.YV)(e,i);break;case o.LoginRedirect.VOUCHER_PURCHASE:(0,x.HR)();break;default:(0,x.Kn)(x.rC,l)}}}catch(e){e instanceof Error&&h(p.Z.t("The password is invalid or the user does not have a password.")),console.error(e)}finally{T(!1)}},validateOnBlur:!1,validateOnChange:!1,validationSchema:b});(0,d.useEffect)(()=>{if((null==H?void 0:H.isPurchasesInitialized)&&L.origin===o.LoginRedirect.PAYMENT){if(H.purchasedSubscriptions.length>0){(0,x.Kn)(x.rC);return}y(),(0,x.R9)()}},[y,L.origin,L.urlHandle,null==H?void 0:H.isPurchasesInitialized,null==H?void 0:H.purchasedSubscriptions]);let z=(0,d.useMemo)(()=>{let e=new URL("registration",window.location.href);if(L.origin&&e.searchParams.set("origin",L.origin),L.voucher&&e.searchParams.set("voucher",L.voucher),L.redirectTo&&e.searchParams.set("redirectTo",L.redirectTo),l){let i=(0,v.l)(l);i&&e.searchParams.set("callbackUrl",i)}return e.toString()},[l,L.origin,L.redirectTo,L.voucher]);return(0,t.jsxs)("div",{children:[(0,t.jsx)(u.q,{children:(0,t.jsx)("title",{children:p.Z.t("Login")})}),(0,t.jsxs)("form",{onSubmit:A,children:[(0,t.jsxs)(Z,{children:[(0,t.jsxs)(E.S,{children:[(0,t.jsx)(r.wx.TextInput,{fullWidth:!0,name:"email",value:M.email,type:"email",onChange:S,required:!0,error:p.Z.t(N.email),label:p.Z.t("Email"),placeholder:p.Z.t("Email")}),(0,t.jsx)(r.wx.TextInput,{fullWidth:!0,name:"password",value:M.password,onChange:S,required:!0,type:"password",error:p.Z.t(N.password),label:p.Z.t("Password"),placeholder:p.Z.t("Password")})]}),(0,t.jsx)(P.T,{onClick:()=>{A(),r.fv.reportElementClick(o.AnalyticsElementId.BTN_LOGIN)},disabled:I,type:"login",label:k("Login"),id:o.AnalyticsElementId.BTN_LOGIN}),(0,t.jsx)(s(),{href:"/reset-password",children:(0,t.jsx)(r.wx.Button,{variant:"transparent",label:p.Z.t("Forgotten password")})})]}),(0,t.jsx)(j,{children:(0,t.jsxs)(E.S,{children:[(null==U?void 0:U.isTivioPro)||(null==U?void 0:U.isLockedApplication)?(0,t.jsx)(s(),{href:z,children:(0,t.jsx)(r.wx.Button,{label:p.Z.t("Register with email"),isFullWidth:!0})}):null,g.allowRegistrationFromLoginForm&&(0,t.jsx)(s(),{href:z,children:(0,t.jsx)(r.wx.Button,{label:p.Z.t("Registration"),isFullWidth:!0})}),(0,t.jsx)(r.wx.SignInProviders,{}),(null===(i=g.registration)||void 0===i?void 0:i.socialRegistrationConsent)&&(0,t.jsx)(_.o,{html:g.registration.socialRegistrationConsent,linkColor:g.registration.consentLinkColor})]})})]})]})}},67668:function(e,i,n){"use strict";n.d(i,{o:function(){return l}});var t=n(52322);n(2784);var r=n(35505);let o=(e,i)=>null!=e?e:i,a=r.ZP.div.withConfig({componentId:"sc-3019f5e1-0"})(["font-size:12px;text-align:center;opacity:0.7;& a{text-decoration:underline;color:",";opacity:0.75;font-weight:800;}"],e=>{let{theme:i,$linkColor:n}=e;return o(n,i.palette.primary.main)}),l=e=>{let{html:i,linkColor:n}=e;return(0,t.jsx)(a,{$linkColor:n,dangerouslySetInnerHTML:{__html:i}})}},11445:function(e,i,n){"use strict";n.d(i,{S:function(){return t}});let t=n(35505).ZP.div.withConfig({componentId:"sc-6676a9a8-0"})(["display:flex;flex-direction:column;gap:16px;"])},7455:function(e,i,n){"use strict";n.d(i,{y:function(){return a}});var t=n(86447),r=n(27511),o=n(2784);function a(e,i){(0,o.useEffect)(()=>{(![r.AnalyticsConversionPage.Videos,r.AnalyticsConversionPage.Player].includes(e)||i)&&t.fv.reportLocationChange(e,i)},[t.fv,e,i])}},62119:function(e,i,n){"use strict";n.d(i,{i:function(){return t}});let t=e=>{var i;let{formDestination:n,formLength:t,firstFieldName:r,firstFieldType:o}=e;null===(i=window.dataLayer)||void 0===i||i.push({event:"form_submit",eventModel:{form_id:"",form_name:null,form_destination:n,form_length:t,first_field_id:"",first_field_name:r,first_field_type:o,first_field_position:1,send_to:"G-EJWXVTNPDH"}})}}},function(e){e.O(0,[8671,2888,9774,179],function(){return e(e.s=97946)}),_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.