1import{a as Sn,b as Ci}from"./chunk-SZIKFV3B.js";import{a as Qe,b as _i}from"./chunk-JNU4E2B3.js";import"./chunk-EIES46T5.js";import{a as wn,b as On,d as fi}from"./chunk-6P2NMSJW.js";import{a as kn,c as Ln,d as Tn,e as Fn,f as En,g as In,h as Dn,i as Nn,j as zn,l as An}from"./chunk-VIZ23Q2Z.js";import{a as k,c as ln,d as te,e as Ze}from"./chunk-BLWXYJKE.js";import{a as ke,b as Ht,c as Vt,e as Bt,f as Le,g as Ut,i as Ge}from"./chunk-IS5VSWBW.js";import{a as an,b as li}from"./chunk-LEGBSIJ2.js";import"./chunk-4IJPQPAF.js";import{a as Ye,b as ui}from"./chunk-OPKYCR3Z.js";import{a as yn,d as hi}from"./chunk-MDM2BX4O.js";import{d as pn,f as di}from"./chunk-2QPH2WZP.js";import"./chunk-ANY7JSTE.js";import{a as sn,b as si}from"./chunk-F5SPN2VH.js";import{a as un,b as hn,c as fn,d as _n,e as Cn}from"./chunk-E74LZWZA.js";import"./chunk-3DFVXONH.js";import{a as on,b as ri}from"./chunk-46OL7WOI.js";import"./chunk-LSI3ALCX.js";import"./chunk-WA6CMZZT.js";import"./chunk-THMLHAD6.js";import{a as bn,c as vn,e as Pn}from"./chunk-WUQY46XX.js";import"./chunk-WG5UC7GQ.js";import"./chunk-DKGLJWI4.js";import{a as Mn,b as pi}from"./chunk-GKIPC2B5.js";import"./chunk-TXGSQK5D.js";import"./chunk-TBT3ZXV3.js";import{d as Ne}from"./chunk-VOK6JB5E.js";import"./chunk-4HGQ6I6X.js";import{a as mn,b as mi}from"./chunk-U5HMTXMF.js";import{g as ye,j as H,q as we}from"./chunk-ETYUKCND.js";import"./chunk-56T4BLNX.js";import{c as jt,i as ni}from"./chunk-OKKXXE6U.js";import"./chunk-7RNOXEAC.js";import{H as ee,I as We}from"./chunk-JZKSQYUK.js";import"./chunk-V62W2OAZ.js";import"./chunk-5RPK2RIA.js";import"./chunk-PAWQFYYV.js";import{d as Gt,e as ii}from"./chunk-W4GMHQFP.js";import{e as ie,g as $e}from"./chunk-53JIH2RP.js";import"./chunk-YJSQHK5X.js";import{f as qe}from"./chunk-UCDH2FPD.js";import{a as De,b as xn,i as ne}from"./chunk-7GAYV3L3.js";import"./chunk-FWDKKLTJ.js";import{d as nn,f as oi}from"./chunk-SYSO6FKY.js";import"./chunk-SMHBTYZ5.js";import{A as Kt,B as en,F as tn,G as Ee,H as K,b as J,d as V,g as X,h as Te,i as Rt,j as Wt,k as ge,n as Zt,o as Fe,p as qt,r as $t,u as Yt,v as Qt,y as Jt,z as Xt}from"./chunk-OKMJK5O3.js";import{a as rn,b as ai}from"./chunk-BTEYRHEN.js";import"./chunk-DBTIYNVI.js";import"./chunk-SEHASOTY.js";import"./chunk-PZVXREA4.js";import"./chunk-LFZS5KZ5.js";import{g as Q,i as Re}from"./chunk-UIBJVLO3.js";import"./chunk-VD4QE6ER.js";import"./chunk-7K34GDKE.js";import"./chunk-VNISGS55.js";import{a as dn,b as gi}from"./chunk-XASD523E.js";import"./chunk-YXWIGH3W.js";import"./chunk-O3AO23VE.js";import{a as Ie,c as gn}from"./chunk-NGDDSYSH.js";import{b as Y,c as Ue}from"./chunk-73CYGA5R.js";import"./chunk-KHDQMKAP.js";import{H as At,a as Oe,e as kt,g as Lt,n as Tt,t as Se}from"./chunk-TS32VRUD.js";import{Da as Dt,E as Et,Ea as Nt,ab as zt,k as Ft,m as je}from"./chunk-7L27BDPL.js";import{c as It,g as ti}from"./chunk-BFTIQ2FP.js";import"./chunk-YXPM6B6U.js";import{e as cn,f as ci}from"./chunk-IXAMAGTW.js";import"./chunk-5G6RYABW.js";import"./chunk-FUM4WPNX.js";import{a as ve,b as St,e as ei,n as A,w as Pe}from"./chunk-NOMO3ERR.js";import"./chunk-X5ABTCX7.js";import"./chunk-2EX2QP7W.js";import"./chunk-R3HFPUDU.js";import"./chunk-FZGIOLLW.js";import"./chunk-MBNWJ725.js";import"./chunk-5PKUNPXF.js";import"./chunk-I7DFKFDU.js";import{b as Ot,d as Kn}from"./chunk-ES3I7JXJ.js";import{Ja as Pt,Ka as me,U as Ct,aa as xt,b as $,da as Mt,ma as bt,qa as vt}from"./chunk-5XA6NXWV.js";import{f as yt,g as wt,i as Xn}from"./chunk-MEDUJNMX.js";import"./chunk-HHBTWF3C.js";import{Aa as ot,Cd as j,Ce as T,D as B,Dd as G,Ea as He,Ec as U,Ed as R,F as et,Ic as p,Ja as rt,Ka as at,Kc as u,Mc as Z,Md as Ve,Nc as w,O as tt,Oa as d,Ob as ct,Oc as O,Pb as P,Pc as g,Pd as ht,Qc as o,R as re,Rb as Ce,Rc as a,Sc as h,U as ae,Vb as r,Vd as z,Wd as q,Xa as _,Ya as C,Yc as gt,Yd as ft,Za as ue,Zc as b,_ as L,_a as he,_d as Be,ab as lt,bb as fe,de as x,ed as v,gd as c,ha as pe,hb as y,hd as dt,id as pt,jb as le,kc as F,lb as _e,lc as mt,me as ce,n as oe,nb as st,ne as be,od as xe,pd as Me,qc as W,qd as D,rd as ut,sd as S,te as _t,ud as se,vd as l,wa as nt,wd as f,x as Ke,xa as I,xd as N,za as it}from"./chunk-J4S5G7ZA.js";import{e as E,i as Ae}from"./chunk-RJZPLZKV.js";function Mi(t,s){t&1&&(o(0,"mat-error",17),l(1," Please provide a value "),a())}function bi(t,s){t&1&&(o(0,"mat-error",17),l(1," Please provide a name that is at least 1 characters "),a())}function vi(t,s){t&1&&(o(0,"mat-error",17),l(1," Please provide a name that is up to 70 characters "),a())}function Pi(t,s){if(t&1){let e=b();o(0,"span",13)(1,"mat-form-field",15)(2,"mat-label"),l(3),a(),o(4,"input",16),R("ngModelChange",function(i){_(e);let m=c().$implicit,M=c(2);return G(M.loginModel.crm_form_data[m.name],i)||(M.loginModel.crm_form_data[m.name]=i),C(i)}),a(),p(5,Mi,2,0,"mat-error",17),p(6,bi,2,0,"mat-error",17),p(7,vi,2,0,"mat-error",17),a()()}if(t&2){let e=c().$implicit,n=c(2),i=D(9);r(3),f(e.label),r(),g("id",e.name)("name",e.name)("email",e.name==="email"),j("ngModel",n.loginModel.crm_form_data[e.name]),g("required",e.required)("minlength",Ve(12,Hn).includes(e.name)?1:null)("maxlength",Ve(13,Hn).includes(e.name)?70:null)("disabled",n.lockedEmail()&&e.name==="email"),r(),u(!(i==null||i.controls[e.name]==null||i.controls[e.name].errors==null)&&i.controls[e.name].errors.required?5:-1),r(),u(!(i==null||i.controls[e.name]==null||i.controls[e.name].errors==null)&&i.controls[e.name].errors.minlength?6:-1),r(),u(!(i==null||i.controls[e.name]==null||i.controls[e.name].errors==null)&&i.controls[e.name].errors.maxlength?7:-1)}}function yi(t,s){if(t&1){let e=b();o(0,"span",13)(1,"mat-form-field",15)(2,"mat-label"),l(3),a(),o(4,"input",18),R("ngModelChange",function(i){_(e);let m=c().$implicit,M=c(2);return G(M.loginModel.crm_form_data[m.name],i)||(M.loginModel.crm_form_data[m.name]=i),C(i)}),a()()()}if(t&2){let e=c().$implicit,n=c(2);r(3),f(e.label),r(),g("id",e.name)("name",e.name)("email",e.name==="email"),j("ngModel",n.loginModel.crm_form_data[e.name]),g("required",e.required)}}function wi(t,s){if(t&1&&(o(0,"mat-option",21),l(1),a()),t&2){let e=s.$implicit;g("value",e.value),r(),f(e.label)}}function Oi(t,s){if(t&1){let e=b();o(0,"span",14)(1,"mat-form-field",19)(2,"mat-label"),l(3),a(),o(4,"mat-select",20),R("ngModelChange",function(i){_(e);let m=c().$implicit,M=c(2);return G(M.loginModel.crm_form_data[m.name],i)||(M.loginModel.crm_form_data[m.name]=i),C(i)}),w(5,wi,2,2,"mat-option",21,Z),a()()()}if(t&2){let e=c().$implicit,n=c(2);r(3),f(e.label),r(),j("ngModel",n.loginModel.crm_form_data[e.name]),g("name",e.name)("id",e.name)("required",e.required),r(),O(e.options)}}function Si(t,s){if(t&1&&(o(0,"mat-option",21),l(1),a()),t&2){let e=s.$implicit;g("value",e.value),r(),f(e.label)}}function ki(t,s){if(t&1){let e=b();o(0,"span",14)(1,"mat-form-field",19)(2,"mat-label"),l(3),a(),o(4,"mat-select",22),R("ngModelChange",function(i){_(e);let m=c().$implicit,M=c(2);return G(M.loginModel.crm_form_data[m.name],i)||(M.loginModel.crm_form_data[m.name]=i),C(i)}),w(5,Si,2,2,"mat-option",21,Z),a()()()}if(t&2){let e=c().$implicit,n=c(2);r(3),f(e.label),r(),j("ngModel",n.loginModel.crm_form_data[e.name]),g("name",e.name)("id",e.name)("required",e.required),r(),O(e.options)}}function Li(t,s){if(t&1&&(o(0,"mat-radio-button",24),l(1),a()),t&2){let e=s.$implicit;g("value",e.value),r(),f(e.label)}}function Ti(t,s){if(t&1){let e=b();o(0,"span",14)(1,"mat-label"),l(2),a(),o(3,"mat-radio-group",23),R("ngModelChange",function(i){_(e);let m=c().$implicit,M=c(2);return G(M.loginModel.crm_form_data[m.name],i)||(M.loginModel.crm_form_data[m.name]=i),C(i)}),w(4,Li,2,2,"mat-radio-button",24,Z),a()()}if(t&2){let e=c().$implicit,n=c(2);r(2),f(e.label),r(),j("ngModel",n.loginModel.crm_form_data[e.name]),g("name",e.name)("id",e.name),r(),O(e.options)}}function Fi(t,s){if(t&1){let e=b();o(0,"span",14)(1,"mat-checkbox",23),R("ngModelChange",function(i){_(e);let m=c().$implicit,M=c(2);return G(M.loginModel.crm_form_data[m.name],i)||(M.loginModel.crm_form_data[m.name]=i),C(i)}),h(2,"div",25),z(3,"purify"),a()()}if(t&2){let e=c().$implicit,n=c(2);r(),j("ngModel",n.loginModel.crm_form_data[e.name]),g("name",e.name)("id",e.name),r(),g("innerHTML",q(3,4,e.label),ct)}}function Ei(t,s){if(t&1&&p(0,Pi,8,14,"span",13)(1,yi,5,6,"span",13)(2,Oi,7,5,"span",14)(3,ki,7,5,"span",14)(4,Ti,6,4,"span",14)(5,Fi,4,6,"span",14),t&2){let e,n=s.$implicit;u((e=n.fieldType)==="text"?0:e==="number"?1:e==="select"?2:e==="checkbox"?3:e==="radio"?4:e==="booleancheckbox"?5:-1)}}function Ii(t,s){if(t&1&&w(0,Ei,6,1,null,null,Z),t&2){let e=s.$implicit;O(e.fields)}}function Di(t,s){t&1&&h(0,"mat-spinner",9)}function Ni(t,s){if(t&1&&(o(0,"div",10),l(1),a()),t&2){let e=c();r(),f(e.error())}}var xi,Hn,Bn,Un=E(()=>{T();Pn();oi();qe();$e();gn();fi();hi();we();ii();Pe();He();_e();K();Ze();Ue();si();Vt();Ge();Re();Et();zt();pi();An();T();K();xi=["loginForm"],Hn=()=>["firstname","lastname"];Bn=(()=>{class t{constructor(){this.router=d(H),this.loginService=d(te),this.store=d(A),this.errorSvc=d(sn),this.destroy=d(fe),this.config=d(Y),this.terms=this.store.selectSignal(Ut),this.theme=this.store.selectSignal(Nt),this.originalTheme=y(this.theme()),this.loginModel={crm_form_data:{}},this.crmForm=this.store.selectSignal(In),this.userInfo=this.store.selectSignal(kn),this.showSpinner=y(!1),this.environment=this.config.configuration,this.signupToken=x(()=>this.userInfo().signup_token),this.formId=x(()=>this.crmForm().guid),this.portalId=x(()=>JSON.stringify(this.crmForm().portalId)),this.groups=x(()=>this.crmForm()?.formFieldGroups),this.error=this.store.selectSignal(Le),this.lockedEmail=x(()=>!!this.userInfo().email),this.loginForm=be("loginForm"),this.store.dispatch(je({theme:"light"})),this.store.dispatch(ke()),this.destroy.onDestroy(()=>{this.store.dispatch(je({theme:this.originalTheme()}))}),Mn([this.userInfo],([e])=>{this.loginModel.crm_form_data.firstname=e.given_name||"",this.loginModel.crm_form_data.lastname=e.family_name||"",this.loginModel.crm_form_data.email=e.email||"",e||this.loginLink()}),le(()=>{this.loginForm()&&(this.loginForm().controls.firstname?.markAsTouched(),this.loginForm().controls.lastname?.markAllAsTouched(),this.loginForm().controls.email?.markAllAsTouched())})}login(){this.showSpinner.set(!0);let e=this.convertToCrmFormat(this.loginModel.crm_form_data);this.loginService.signup({signup_token:this.signupToken(),email:this.loginModel.crm_form_data.email,name:`${this.loginModel.crm_form_data.firstname||""} ${this.loginModel.crm_form_data.lastname||""}`.trim(),crm_form_data:{form_data:JSON.stringify(e),form_id:this.formId(),portal_id:this.portalId()}}).pipe(L(1),ae(n=>(this.showSpinner.set(!1),this.error=this.errorSvc.getErrorMsg(n?.error),oe))).subscribe()}loginLink(){this.router.navigate(["/login"],{queryParamsHandling:"preserve"})}convertToCrmFormat(e){return Object.entries(e).reduce((n,[i,m])=>(n[i]=Array.isArray(m)?m.join(";"):m,n),{})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=F({type:t,selectors:[["sm-signup-form"]],viewQuery:function(n,i){n&1&&xe(i.loginForm,xi,5),n&2&&Me()},decls:22,vars:4,consts:[["loginForm","ngForm"],[1,"marketing"],["src",Ce`https://web-assets.clear.ml/webapp/login/signup-content.html`],[1,"signup-section"],["src","/assets/logo.svg","alt","logo",1,"logo"],[1,"login-title"],[1,"sub-title"],[1,"d-flex","flex-column","gap-3","text-left"],["mat-flat-button","","id","app_submit_signup",1,"sign-button",3,"click","disabled"],["diameter","16",1,"spinner"],[1,"errors"],[1,"terms-of-use"],["target","_blank",1,"link",3,"href"],[1,"field-wrapper","username-input"],[1,"field-wrapper"],["appearance","outline","floatLabel","always",1,"thin"],["type","text","matInput","",3,"ngModelChange","id","name","email","ngModel","required","minlength","maxlength","disabled"],[1,""],["type","number",3,"ngModelChange","id","name","email","ngModel","required"],["appearance","outline","floatLabel","always",1,"thin","short"],["placeholder","Please select","panelClass","light-theme",3,"ngModelChange","ngModel","name","id","required"],[1,"",3,"value"],["panelClass","light-theme","placeholder","Please select","multiple","",1,"light-theme",3,"ngModelChange","ngModel","name","id","required"],[3,"ngModelChange","ngModel","name","id"],[3,"value"],[3,"innerHTML"]],template:function(n,i){if
1(n&1&&(o(0,"div",1),h(1,"iframe",2),a(),o(2,"div",3),h(3,"img",4),o(4,"div",5),l(5,"Sign up"),a(),o(6,"div",6),l(7,"Complete registration information"),a(),o(8,"form",7,0),w(10,Ii,2,0,null,null,Z),o(12,"button",8),v("click",function(){return i.login()}),p(13,Di,1,0,"mat-spinner",9),l(14," SIGN UP "),a(),p(15,Ni,2,1,"div",10),o(16,"div",11)(17,"span"),l(18,"By proceeding with registration, you acknowledge that you have read and agree to ClearML's "),o(19,"a",12),l(20,"Privacy Policy and Terms of Use"),a(),l(21,"."),a()()()()),n&2){let m,M=D(9);r(10),O(i.groups()),r(2),g("disabled",!M.valid||!i.signupToken()||i.showSpinner()),r(),u(i.showSpinner()?13:-1),r(2),u(i.error()?15:-1),r(4),g("href",(m=i.environment())==null||m.legal==null?null:m.legal.TOULink,P)}},dependencies:[tn,Fe,J,qt,X,Te,Jt,Kt,en,Xt,Zt,Wt,ne,Ne,yn,De,xn,wn,On,nn,Ie,ie,Q,Gt],styles:['[_nghost-%COMP%]{height:100%;display:grid!important;grid-template-columns:1fr 1fr}@media(max-width:960px){[_nghost-%COMP%]{grid-template-columns:unset}[_nghost-%COMP%] .marketing[_ngcontent-%COMP%]{display:none!important}}[_nghost-%COMP%] > [_ngcontent-%COMP%]:first-child{background-image:url("./media/infinity_anim--on_light-X6LH7R6W.svg"),linear-gradient(100deg,#22408a 6%,#09173c 82%);background-size:contain;background-position:center;background-repeat:no-repeat}[_nghost-%COMP%] .marketing[_ngcontent-%COMP%]{padding:24px;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;color:#a4adcd;color-scheme:auto}[_nghost-%COMP%] iframe[_ngcontent-%COMP%]{border:none;height:100%;width:100%}[_nghost-%COMP%] .signup-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;height:100%;background:#fff;padding:24px;overflow:auto}[_nghost-%COMP%] .logo[_ngcontent-%COMP%]{width:150px;margin:32px auto}[_nghost-%COMP%] .login-title[_ngcontent-%COMP%]{font-weight:300;font-size:24px;color:#000000de;margin-bottom:8px}[_nghost-%COMP%] .sub-title[_ngcontent-%COMP%]{font-weight:500;font-size:16px;color:#14aa8c;margin-bottom:12px}[_nghost-%COMP%] .username-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:0}[_nghost-%COMP%] .username-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:-webkit-autofill, [_nghost-%COMP%] .username-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:-internal-autofill-previewed, [_nghost-%COMP%] .username-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:-internal-autofill-selected{border-radius:0!important}[_nghost-%COMP%] label[_ngcontent-%COMP%]{font-size:11px;margin-bottom:0;margin-top:2px}[_nghost-%COMP%] .sign-button[_ngcontent-%COMP%]{width:100%;margin:18px 0 12px}[_nghost-%COMP%] .sign-button[_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%]{position:absolute;left:75px}[_nghost-%COMP%] .sign-button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:20px;position:relative;top:-1px}[_nghost-%COMP%] .sign-button[_ngcontent-%COMP%] .btn-text[_ngcontent-%COMP%]{display:inline-flex;width:130px;white-space:nowrap}
1[_nghost-%COMP%] .separator[_ngcontent-%COMP%]{display:flex;color:#a4adcd;font-size:11px}[_nghost-%COMP%] .separator[_ngcontent-%COMP%] .line[_ngcontent-%COMP%]{border-bottom:1px solid #A4ADCD;width:104px;margin-bottom:10px}[_nghost-%COMP%] form[_ngcontent-%COMP%]{text-align:start;font-size:14px;width:320px;margin:0 auto;padding-bottom:24px}.terms-of-use[_ngcontent-%COMP%]{display:inline-block;width:100%;font-size:12px;color:#000000de;text-align:center}.errors[_ngcontent-%COMP%]{width:250px;max-height:100px;overflow:auto;margin-top:16px;color:#ff6f81;text-align:left}.field-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column}mat-radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0;align-items:flex-start}mat-radio-button[_ngcontent-%COMP%]{margin:5px}mat-option[_ngcontent-%COMP%]{height:auto!important;padding:8px 16px!important;line-height:1.6em!important;white-space:normal!important}@media(max-height:980px){.signup-section[_ngcontent-%COMP%]{display:grid!important}}']})}}return t})()});function zi(t,s){if(t&1&&h(0,"ntkme-counter",4),t&2){let e=c();g("count",e.counter)("large",e.size==="large")("counterLabel",e.counterLabel)("counterHref",e.counterHref)}}function Ai(t){return Ae(this,null,function*(){let s=`https://api.github.com/users/${t}`;return fetch(s,{method:"GET"}).then(e=>e.json())})}function Hi(t,s){return Ae(this,null,function*(){let e=`https://api.github.com/repos/${t}/${s}`;return fetch(e,{method:"GET"}).then(n=>n.json())})}var Vi,Bi,de,jn,Je=E(()=>{me();me();T();Vi=(()=>{class t{large=!1;count;counterLabel;counterHref;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=F({type:t,selectors:[["ntkme-counter"]],inputs:{large:"large",count:"count",counterLabel:"counterLabel",counterHref:"counterHref"},standalone:!1,decls:4,vars:7,consts:[[1,"social-count",3,"href"]],template:function(n,i){n&1&&(o(0,"a",0)(1,"span"),l(2),z(3,"number"),a()()),n&2&&(S("gh-large",i.large),g("href",i.counterHref,P),U("aria-label",i.count+i.counterLabel+" on GitHub"),r(2),f(q(3,5,i.count)))},dependencies:[bt],styles:["a[_ngcontent-%COMP%]{color:#24292e;text-decoration:none;outline:0}.social-count[_ngcontent-%COMP%]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;-webkit-user-select:none;user-select:none;display:inline-block;font-weight:600;vertical-align:middle;cursor:pointer;border:1px solid #d1d2d3;border-top-right-radius:.25em;border-bottom-right-radius:.25em;border-left:0;position:relative;background-color:#fff;font-size:10px;height:20px;padding:0 5px;line-height:18px}.social-count[_ngcontent-%COMP%]:hover{color:#0366d6}.social-count[_ngcontent-%COMP%]:focus{border-color:#c8e1ff}.gh-large.social-count[_ngcontent-%COMP%]{padding:0 10px;font-size:11px;height:28px;line-height:26px}.gh-large.social-count[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{vertical-align:0}"]})}return t})(),Bi={follow:{path:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z",height:"16",width:"16"},watch:{path:"M1.67884 7.93165C2.09143 7.31094 2.9206 6.18152 4.0447 5.21477C5.17567 4.2421 6.52738 3.5 8.00001 3.5C9.47264 3.5 10.8244 4.2421 11.9553 5.21477C13.0794 6.18152 13.9086 7.31094 14.3212 7.93165C14.35 7.975 14.35 8.025 14.3212 8.06835C13.9086 8.68906 13.0794 9.81848 11.9553 10.7852C10.8244 11.7579 9.47264 12.5 8.00001 12.5C6.52738 12.5 5.17567 11.7579 4.0447 10.7852C2.9206 9.81848 2.09143 8.68906 1.67884 8.06835C1.65002 8.025 1.65002 7.975 1.67884 7.93165ZM8.00001 2C6.01865 2 4.32919 2.99167 3.06662 4.07751C1.79718 5.16926 0.880454 6.42307 0.429635 7.10129C0.0664231 7.64771 0.0664245 8.35229 0.429635 8.89871C0.880455 9.57693 1.79718 10.8307 3.06662 11.9225C4.32919 13.0083 6.01865 14 8.00001 14C9.98137 14 11.6708 13.0083 12.9334 11.9225C14.2028 10.8307 15.1196 9.57693 15.5704 8.89871C15.9336 8.35229 15.9336 7.64771 15.5704 7.10129C15.1196 6.42307 14.2028 5.16926 12.9334 4.07751C11.6708 2.99167 9.98137 2 8.00001 2ZM8 10C9.10457 10 10 9.10457 10 8C10 6.89543 9.10457 6 8 6C6.89543 6 6 6.89543 6 8C6 9.10457 6.89543 10 8 10Z",height:"16",width:"16"}
1,star:{path:"M8 .25a.75.75 0 01.673.418l1.882 3.815 4.21.612a.75.75 0 01.416 1.279l-3.046 2.97.719 4.192a.75.75 0 01-1.088.791L8 12.347l-3.766 1.98a.75.75 0 01-1.088-.79l.72-4.194L.818 6.374a.75.75 0 01.416-1.28l4.21-.611L7.327.668A.75.75 0 018 .25zm0 2.445L6.615 5.5a.75.75 0 01-.564.41l-3.097.45 2.24 2.184a.75.75 0 01.216.664l-.528 3.084 2.769-1.456a.75.75 0 01.698 0l2.77 1.456-.53-3.084a.75.75 0 01.216-.664l2.24-2.183-3.096-.45a.75.75 0 01-.564-.41L8 2.694v.001z",height:"16",width:"16"},fork:{path:"M5 3.25001C5 3.44892 4.92099 3.63969 4.78033 3.78034C4.63968 3.92099 4.44892 4.00001 4.25 4.00001C4.05109 4.00001 3.86033 3.92099 3.71967 3.78034C3.57902 3.63969 3.5 3.44892 3.5 3.25001C3.5 3.05109 3.57902 2.86033 3.71967 2.71968C3.86033 2.57902 4.05109 2.50001 4.25 2.50001C4.44892 2.50001 4.63968 2.57902 4.78033 2.71968C4.92099 2.86033 5 3.05109 5 3.25001ZM5 5.37201C5.50042 5.19509 5.92217 4.84696 6.19073 4.38915C6.45929 3.93134 6.55735 3.39333 6.4676 2.87021C6.37785 2.34709 6.10605 1.87253 5.70025 1.53043C5.29445 1.18832 4.78077 1.00069 4.25 1.00069C3.71924 1.00069 3.20556 1.18832 2.79976 1.53043C2.39396 1.87253 2.12216 2.34709 2.03241 2.87021C1.94265 3.39333 2.04072 3.93134 2.30928 4.38915C2.57784 4.84696 2.99959 5.19509 3.5 5.37201V6.25001C3.5 6.84674 3.73706 7.41904 4.15901 7.841C4.58097 8.26295 5.15327 8.50001 5.75 8.50001H7.25V10.628C6.74932 10.8049 6.3273 11.1532 6.05855 11.6112C5.78981 12.0692 5.69164 12.6075 5.78139 13.1309C5.87115 13.6543 6.14306 14.1291 6.54905 14.4714C6.95504 14.8136 7.46897 15.0014 8 15.0014C8.53104 15.0014 9.04497 14.8136 9.45096 14.4714C9.85695 14.1291 10.1289 13.6543 10.2186 13.1309C10.3084 12.6075 10.2102 12.0692 9.94146 11.6112C9.67271 11.1532 9.25069 10.8049 8.75 10.628V8.50001H10.25C10.8467 8.50001 11.419 8.26295 11.841 7.841C12.263 7.41904 12.5 6.84674 12.5 6.25001V5.37201C13.0004 5.19509 13.4222 4.84696 13.6907 4.38915C13.9593 3.93134 14.0574 3.39333 13.9676 2.87021C13.8778 2.34709 13.6061 1.87253 13.2002 1.53043C12.7944 1.18832 12.2808 1.00069 11.75 1.00069C11.2192 1.00069 10.7056 1.18832 10.2998 1.53043C9.89396 1.87253 9.62216 2.34709 9.53241 2.87021C9.44265 3.39333 9.54072 3.93134 9.80928 4.38915C10.0778 4.84696 10.4996 5.19509 11 5.37201V6.25001C11 6.44892 10.921 6.63969 10.7803 6.78034C10.6397 6.92099 10.4489 7.00001 10.25 7.00001H5.75C5.55109 7.00001 5.36033 6.92099 5.21967 6.78034C5.07902 6.63969 5 6.44892 5 6.25001V5.37201ZM8.75 12.75C8.75 12.9489 8.67099 13.1397 8.53033 13.2803C8.38968 13.421 8.19892 13.5 8 13.5C7.80109 13.5 7.61033 13.421 7.46967 13.2803C7.32902 13.1397 7.25 12.9489 7.25 12.75C7.25 12.5511 7.32902 12.3603 7.46967 12.2197C7.61033 12.079 7.80109 12 8 12C8.19892 12 8.38968 12.079 8.53033 12.2197C8.67099 12.3603 8.75 12.5511 8.75 12.75ZM11.75 4.00001C11.9489 4.00001 12.1397 3.92099 12.2803 3.78034C12.421 3.63969 12.5 3.44892 12.5 3.25001C12.5 3.05109 12.421 2.86033 12.2803 2.71968C12.1397 2.57902 11.9489 2.50001 11.75 2.50001C11.5511 2.50001 11.3603 2.57902 11.2197 2.71968C11.079 2.86033 11 3.05109 11 3.25001C11 3.44892 11.079 3.63969 11.2197 3.78034C11.3603 3.92099 11.5511 4.00001 11.75 4.00001Z",height:"16",width:"16"},issue:{path:"M8 1.5C6.27609 1.5 4.62279 2.18482 3.40381 3.40381C2.18482 4.62279 1.5 6.27609 1.5 8C1.5 9.72391 2.18482 11.3772 3.40381 12.5962C4.62279 13.8152 6.27609 14.5 8 14.5C9.72391 14.5 11.3772 13.8152 12.5962 12.5962C13.8152 11.3772 14.5 9.72391 14.5 8C14.5 6.27609 13.8152 4.62279 12.5962 3.40381C11.3772 2.18482 9.72391 1.5 8 1.5ZM0 8C0 5.87827 0.842855 3.84344 2.34315 2.34315C3.84344 0.842855 5.87827 0 8 0C10.1217 0 12.1566 0.842855 13.6569 2.34315C15.1571 3.84344 16 5.87827 16 8C16 10.1217 15.1571 12.1566 13.6569 13.6569C12.1566 15.1571 10.1217 16 8 16C5.87827 16 3.84344 15.1571 2.34315 13.6569C0.842855 12.1566 0 10.1217 0 8ZM9 11C9 11.2652 8.89464 11.5196 8.70711 11.7071C8.51957 11.8946 8.26522 12 8 12C7.73478 12 7.48043 11.8946 7.29289 11.7071C7.10536 11.5196 7 11.2652 7 11C7 10.7348 7.10536 10.4804 7.29289 10.2929C7.48043 10.1054 7.73478 10 8 10C8.26522 10 8.51957 10.1054 8.70711 10.2929C8.89464 10.4804 9 10.7348 9 11ZM8.75 4.75C8.75 4.55109 8.67098 4.36032 8.53033 4.21967C8.38968 4.07902 8.19891 4 8 4C7.80109 4 7.61032 4.07902 7.46967 4.21967C7.32902 4.36032 7.25 4.55109 7.25 4.75V8.25C7.25 8.44891 7.32902 8.63968 7.46967 8.78033C7.61032 8.92098 7.80109 9 8 9C8.19891 9 8.38968 8.92098 8.53033 8.78033C8.67098 8.63968 8.75 8.44891 8.75 8.25V4.75Z",height:"16",width:"16"},download:{path:"M9 12h2l-3 3-3-3h2V7h2v5zm3-8c0-.44-.91-3-4.5-3C5.08 1 3 2.92 3 5 1.02 5 0 6.52 0 8c0 1.53 1 3 3 3h3V9.7H3C1.38 9.7 1.3 8.28 1.3 8c0-.17.05-1.7 1.7-1.7h1.3V5c0-1.39 1.56-2.7 3.2-2.7 2.55 0 3.13 1.55 3.2 1.8v1.2H12c.81 0 2.7.22 2.7 2.2 0 2.09-2.25 2.2-2.7 2.2h-2V11h2c2.08 0 4-1.16 4-3.5C16 5.06 14.08 4 12 4z",height:"16",width:"16"}},de=(()=>{class t{user;repo;type="star";count=!1;size="none";standardIcon=!1;target="_self";text="";svg={};buttonHref="";counterHref="";counter;counterLabel="";countAttr="";ngOnChanges(){let e=this.standardIcon?"follow":this.type;switch(this.svg=Bi[e],this.type){case"watch":this.text="Watch",this.countAttr="subscribers_count",this.counterLabel=" watchers",this.buttonHref="https://github.com/"+this.user+"/"+this.repo+"/subscription",this.counterHref="https://github.com/"+this.user+"/"+this.repo+"/watchers";break;case"star":this.text="Star",this.countAttr="stargazers_count",this.counterLabel=" stargazers",this.buttonHref="https://github.com/"+this.user+"/"+this.repo,this.counterHref="https://github.com/"+this.user+"/"+this.repo+"/stargazers";break;case"fork":this.text="Fork",this.countAttr="network_count",this.counterLabel=" forks",this.buttonHref="https://github.com/"+this.user+"/"+this.repo+"/fork",this.counterHref="https://github.com/"+this.user+"/"+this.repo+"/network";break;case"follow":this.text="Follow @"+this.user,this.countAttr="followers",this.counterLabel=" followers",this.buttonHref="https://github.com/"+this.user,this.counterHref="https://github.com/"+this.user+"/followers";break;case"issue":this.text="Issue",this.countAttr="open_issues",this.counterLabel=" followers",this.buttonHref="https://github.com/"+this.user+"/"+this.repo+"/issues",this.counterHref=this.buttonHref;break;case"download":this.text="Download",this.counterLabel=" followers",this.countAttr="subscribers_count",this.buttonHref="https://github.com/"+this.user+"/"+this.repo+"/archive/master.zip";break}this.count&&this.user&&this.type!=="download"&&this.fetch()}fetch(){let e;
1if(this.type==="follow")e=Ai(this.user);else{if(!this.repo)return;e=Hi(this.user,this.repo)}e.then(n=>this.callback(n))}callback(e){this.counter=e[this.countAttr??""]}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=F({type:t,selectors:[["ntkme-github-button"]],inputs:{user:"user",repo:"repo",type:"type",count:"count",size:"size",standardIcon:"standardIcon",target:"target"},standalone:!1,features:[st],decls:7,vars:11,consts:[[1,"gh-btn",3,"href","target"],["version","1.1","aria-hidden","true",1,"gh-octicon"],["fill-rule","evenodd"],[3,"ngIf"],[3,"count","large","counterLabel","counterHref"]],template:function(n,i){n&1&&(o(0,"div")(1,"a",0),ue(),o(2,"svg",1),h(3,"path",2),a(),he(),o(4,"span"),l(5),a()(),W(6,zi,1,4,"ng-template",3),a()),n&2&&(S("gh-large",i.size==="large"),r(),g("href",i.buttonHref,P)("target",i.target),U("aria-label",i.text+" on GitHub"),r(),U("width",i.svg.width)("height",i.svg.height)("viewBox","0 0 "+i.svg.width+" "+i.svg.height),r(),U("d",i.svg.path),r(2),N(" ",i.text),r(),g("ngIf",i.count&&i.counter!==void 0))},dependencies:[Ct,Vi],styles:["a[_ngcontent-%COMP%]{color:#24292e;text-decoration:none;outline:0}.gh-btn[_ngcontent-%COMP%]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;-webkit-user-select:none;user-select:none;display:inline-block;font-weight:600;vertical-align:middle;cursor:pointer;border:1px solid #d1d2d3;border-radius:.25em;background-color:#eff3f6;background-image:linear-gradient(180deg,#f0f3f6,#e6ebf1 90%);background-repeat:repeat-x;background-size:110% 110%;height:20px;padding:0 5px;line-height:18px;font-size:11px;white-space:nowrap}.gh-btn[_ngcontent-%COMP%]:not(:last-child){border-radius:.25em 0 0 .25em}.gh-btn[_ngcontent-%COMP%]:focus{border-color:#1b1f2333}.gh-btn[_ngcontent-%COMP%]:active{background-color:#e9ecef;background-image:none;border-color:#afb1b2;box-shadow:inset 0 .15em .3em #1b1f2326}.gh-btn[_ngcontent-%COMP%]:hover{background-color:#e6ebf1;background-image:linear-gradient(to bottom,#f0f3f6,#dce3ec);background-position:-.5em;border-color:#9fa4a9;border-color:#1b1f2359}.gh-octicon[_ngcontent-%COMP%]{position:relative;display:inline-block;fill:currentColor;height:14px;top:2px;vertical-align:initial}.gh-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{vertical-align:1px}.gh-large[_ngcontent-%COMP%] .gh-btn[_ngcontent-%COMP%]{height:28px;line-height:26px;padding:0 10px;font-size:12px}.gh-large[_ngcontent-%COMP%] .gh-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{vertical-align:0}.gh-large[_ngcontent-%COMP%] .gh-octicon[_ngcontent-%COMP%]{height:16px;top:4px}"]})}return t})(),jn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=mt({type:t});static \u0275inj=at({imports:[vt]})}return t})()});function Wi(t,s){if(t&1&&(o(0,"div",7),l(1),a()),t&2){let e=c(2);r(),f(e.loginTitle())}}function Zi(t,s){if(t&1&&(o(0,"div",8),l(1),a()),t&2){let e=c(2);r(),f(e.notice())}}function qi(t,s){t&1&&h(0,"div",9)}function $i(t,s){if(t&1&&(o(0,"div",11)(1,"mat-form-field",17)(2,"mat-label"),l(3),a(),h(4,"input",18),a()()),t&2){c();let e=D(11),n=c();r(3),f(n.loginMode()===n.loginModeEnum.password?"Username":"Full Name"),r(),g("matAutocomplete",e)}}function Yi(t,s){t&1&&(o(0,"div",12)(1,"mat-form-field",17)(2,"mat-label"),l(3,"Password"),a(),h(4,"input",19),a()())}function Qi(t,s){t&1&&(o(0,"div",13),l(1," Invalid User/Password combination "),a())}function Ji(t,s){t&1&&h(0,"mat-spinner",21)}function Xi(t,s){if(t&1){let e=b();o(0,"button",20),v("click",function(){_(e);let i=c(2);return C(i.login())}),p(1,Ji,1,0,"mat-spinner",21),l(2),a()}if(t&2){let e=c(2);g("disabled",!e.loginForm.valid||e.showSpinner()),r(),u(e.showSpinner()?1:-1),r(),N(" ",e.buttonCaption," ")}}function Ki(t,s){if(t&1&&(o(0,"mat-option",15),l(1),a()),t&2){let e=s.$implicit;g("value",e.name),r(),N(" ",e.name," ")}}function eo(t,s){if(t&1&&(o(0,"div",16)(1,"div",22),l(2,"ClearML server is freely provided according to its "),o(3,"a",23),l(4,"License"),a(),l(5,"."),a(),o(6,"div",22),l(7,"The security, configuration, and maintenance of this instance are the responsibility of the deploying organization."),a(),o(8,"div"),l(9,"For commercial support and enterprise features "),o(10,"a",24),l(11,"Contact ClearML"),a(),l(12,"."),a()()),t&2){let e=c(2);r(3),g("href",e.touLink(),P)}}function to(t,s){if(t&1&&(o(0,"section"),h(1,"img",6),p(2,Wi,2,1,"div",7),p(3,Zi,2,1,"div",8),p(4,qi,1,0,"div",9),o(5,"form",10),p(6,$i,5,2,"div",11),p(7,Yi,5,0,"div",12),p(8,Qi,2,0,"div",13),p(9,Xi,3,3,"button",14),o(10,"mat-autocomplete",null,0),w(12,Ki,2,2,"mat-option",15,Ri),z(14,"ngrxPush"),a(),pt(15),p(16,eo,13,1,"div",16),a()()),t&2){let e=c();
1S("login-section-inner",!e.showBackground()),r(),g("ngSrc",e.showBackground()?e.environment().branding.logo:e.environment().branding.logo.replace("-white",""))("priority",!0),r(),u(e.isInvite||e.showSimpleLogin()?2:-1),r(),u(e.notice()?3:-1),r(),u(e.loginMode()?-1:4),r(),S("d-none",!e.loginMode()),g("formGroup",e.loginForm),r(),u(e.showLogin()?6:-1),r(),u(e.loginMode()===e.loginModeEnum.password?7:-1),r(),u(e.loginFailed()?8:-1),r(),u(e.showLogin()?9:-1),r(3),O(q(14,15,e.filteredOptions$)),r(4),u(e.touLink()&&!e.hideTou()?16:-1)}}function no(t,s){t&1&>(0)}function io(t,s){if(t&1&&(o(0,"section"),h(1,"img",6),W(2,no,1,0,"ng-container",25),a()),t&2){let e=c();S("login-section-inner",!e.showBackground()),r(),g("ngSrc",e.showBackground()?e.environment().branding.logo:e.environment().branding.logo.replace("-white",""))("priority",!0),r(),g("ngTemplateOutlet",e.errorTemplate())}}function oo(t,s){if(t&1&&(o(0,"section",4),h(1,"img",26),ue(),o(2,"svg",27),h(3,"path",28),a(),he(),o(4,"div"),l(5,"Oops, it seems there's an issue with server login at the moment - please contact your administrator or support"),a()()),t&2){let e=c();r(),g("ngSrc",e.showBackground()?e.environment().branding.logo:e.environment().branding.logo.replace("-white",""))("priority",!0)}}function ro(t,s){if(t&1&&(o(0,"div",5),h(1,"ntkme-github-button",29),o(2,"div",30),l(3,"If you \u2764\uFE0F ClearML, \u2B50 us on "),o(4,"a",31),l(5,"GitHub"),a()(),o(6,"div",32)(7,"a",23),h(8,"i",33),o(9,"span",34),l(10,"Join our Community on Slack"),a()(),o(11,"a",23),h(12,"i",35),o(13,"span",34),l(14,"Contact Us"),a()()()()),t&2){let e=c();r(),g("count",!0),r(6),g("href",e.environment().slackLink,P),r(4),g("href","mailto:"+e.environment().supportEmail,P)}}var ji,Gi,Ri,Gn,Rn=E(()=>{T();K();Pn();gn();we();Je();gi();Pe();He();_e();Tt();ln();Ge();Ue();ri();ni();Ze();li();ti();di();At();Et();zt();ei();me();We();qe();$e();Re();ui();Kn();T();Je();K();ji=["*"],Gi=(t,s,e)=>[t,s,e],Ri=(t,s)=>s.name;Gn=(()=>{class t{get buttonCaption(){return this.loginMode()===k.simple?"START":"LOGIN"}constructor(){this.router=d(H),this.loginService=d(te),this.dialog=d(jt),this.store=d(A),this.route=d(ye),this.userPreferences=d(an),this.config=d(Y),this.cdr=d(_t),this.destroy=d(fe),this.document=d(lt),this.titleService=d(Ot),this.locationStrategy=d($),this.showSimpleLogin=ce(),this.hideTou=ce(),this.showBackground=ce(!0),this.errorTemplate=ce(),this.githubButton=be(de),this.environment=this.config.configuration,this.loginMode=this.loginService.loginMode,this.showLogin=x(()=>this.showSimpleLogin()||[k.password,k.simple].includes(this.loginMode())),this.isInvite=this.router.url.includes("invite"),this.loginForm=new Rt({name:new ge("",[V.required,Ye(1),V.maxLength(70),V.pattern(/.*\S.*/)]),password:new ge("")}),this.options=[],this.filteredOptions$=this.loginForm.controls.name.valueChanges.pipe(nt(""),B(e=>this._filter(e))),this.loginModeEnum=k,this.loginFailed=y(!1),this.showSpinner=y(null),this.loginTitle=y(this.isInvite?"":"Login"),this.title=x(()=>this.config.configuration().branding?.faviconUrl?"":"ClearML"),this.titlePrefix=x(()=>this.title()?this.title()+" - ":""),this.touLink=x(()=>this.environment().legal.TOULink),this.notice=x(()=>this.environment().loginNotice),this.showGitHub=x(()=>!this.environment().enterpriseServer&&!this.environment().communityServer),this.theme=this.store.selectSignal(Dt),this.originalTheme=y(this.theme()),this.config.configuration().forceTheme||this.setTheme(this.environment().communityServer?"light":"dark"),this.titleService.setTitle(`${this.titlePrefix()}Login`),le(()=>{if(this.config.configuration()){let e=document.getElementById("favicon");e.href=this.config.configuration().branding?.faviconUrl??"assets/favicon.ico"}}),this.store.dispatch(It({breadcrumbs:[[{name:"Login",type:pn.Feature}]]})),le(()=>{this.loginMode()===k.password&&this.loginForm.controls.password.setValidators([V.required,Ye(1)])}),St(this.githubButton).pipe(ve(),I(()=>tt(100)),re(()=>!!this.githubButton()?.counter),ot(()=>this.cdr.markForCheck()),it(()=>!this.githubButton()?.counter)).subscribe(),this.store.select(Se).pipe(ve(),re(e=>!!e)).subscribe(()=>{this.router.navigateByUrl(this.getNavigateUrl())}),this.store.select(Bt).pipe(re(e=>!!e),L(1),et(e=>this.loginService.getInviteInfo(e))).subscribe(e=>{let n=e.user_given_name||e.user_name?.split(" ")[0];this.loginTitle.set(n?`Accept ${n?n+"'s":""} invitation and 2 join their team`:"")}),this.route.queryParams.pipe(re(e=>!!e),L(1)).subscribe(e=>{this.redirectUrl=e.redirect||"",this.redirectUrl=this.redirectUrl.replace("/login","")}),this.loginService.getLoginMode().pipe(ve(),I(e=>(e===k.password&&this.loginForm.controls.password.addValidators(V.required),this.loginMode()===k.simple?this.loginService.getUsers():Ke(null)))).subscribe(e=>{this.options=e??[]}),this.destroy.onDestroy(()=>{this.setTheme(this.originalTheme())})}login(){if(this.showSpinner.set(!0),this.loginMode()===k.password){let e=this.loginForm.controls.name.value.trim(),n=this.loginForm.controls.password.value.trim();this.loginService.passwordLogin(e,n).pipe(ae(()=>(this.loginFailed.set(!0),oe)),L(1),I(()=>this.afterLogin()),pe(()=>this.showSpinner.set(!1))).subscribe()}else this.simpleLogin().pipe(L(1),ae(()=>
2oe),pe(()=>this.showSpinner.set(!1))).subscribe()}simpleLogin(){let e=this.loginForm.controls.name.value.trim(),n=this.options.find(i=>i.name===e);if(n)return this.loginService.login(n.id).pipe(I(()=>this.afterLogin()));{let i=this.loginForm.value.name.trim();return this.loginService.autoLogin(i).pipe(I(()=>this.afterLogin()))}}afterLogin(){return this.userPreferences.loadPreferences().pipe(L(1),B(e=>this.store.dispatch(Lt({payload:e}))),pe(()=>(this.store.dispatch(Oe()),this.openLoginNotice(),this.loginService.clearLoginCache(),this.router.navigateByUrl(this.getNavigateUrl()))))}_filter(e){let n=e.toLowerCase();return this.options.filter(i=>i.name.toLowerCase().includes(n.toLowerCase()))}getNavigateUrl(){return this.redirectUrl?ee(this.redirectUrl,this.locationStrategy.getBaseHref()):""}openLoginNotice(){this.environment().loginPopup&&this.dialog.open(on,{disableClose:!0,data:{body:this.environment().loginPopup,yes:"OK",iconClass:"al-ico-alert",iconColor:"var(--color-warning)"}})}setTheme(e){this.store.dispatch(Ft({theme:e})),this.document.body.parentElement.classList.add(`${e}-mode`)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=F({type:t,selectors:[["sm-login"]],viewQuery:function(n,i){n&1&&xe(i.githubButton,de,5),n&2&&Me()},inputs:{showSimpleLogin:[1,"showSimpleLogin"],hideTou:[1,"hideTou"],showBackground:[1,"showBackground"],errorTemplate:[1,"errorTemplate"]},ngContentSelectors:ji,decls:6,vars:8,consts:[["auto","matAutocomplete"],[1,"login-form"],[1,"login-section"],[3,"login-section-inner"],[1,"login-error"],[1,"marketing-content-bottom"],["width","130","height","42","alt","Logo",1,"logo",3,"ngSrc","priority"],[1,"login-title"],[1,"login-notice"],[1,"circle"],[3,"formGroup"],[1,"username-input","pt-4"],[1,"username-input"],[1,"errors"],["mat-flat-button","",3,"disabled"],[3,"value"],[1,"terms-of-use"],["appearance","outline"],["matInput","","formControlName","name",3,"matAutocomplete"],["matInput","","type","password","formControlName","password"],["mat-flat-button","",3,"click","disabled"],["diameter","16","color","accent",1,"spinner"],[1,"mb-1"],["target","_blank",1,"link",3,"href"],["href","https://clear.ml/contact-us","target","_blank",1,"link"],[4,"ngTemplateOutlet"],["width","130","height","42","alt","Logo",1,"logo","mb-4",3,"ngSrc","priority"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 100 100","width","48px"],["d","m100,35.37s0-.03,0-.04c0-1.16-.96-1.97-2.15-2l-95.69-.04h0c-1.19,0-2.15.93-2.15,2.08,0,.01,0,.03,0,.04v25.76s0,.03,0,.04c0,1.15.96,2.08,2.15,2.08h52.55l8-13.86c2.08-3.69,5.87-5.88,10.15-5.88h0c4.28,0,8.08,2.21,10.16,5.91l7.99,13.83h6.84c1.19,0,2.15-.93,2.15-2.08,0-.01,0-.03,0-.04v-25.8Zm-78.78,12.86c0,2.54-2.04,4.61-4.57,4.66h0s0,0,0,0c-.02,0-.05,0-.08,0-2.57,0-4.66-2.09-4.66-4.66s2.09-4.66,4.66-4.66,4.66,2.09,4.66,4.66h0Zm17.64,0c0,2.57-2.09,4.66-4.66,4.66-.03,0-.05,0-.08,0h.08c-2.57,0-4.66-2.09-4.66-4.66s2.09-4.66,4.66-4.66,4.66,2.09,4.66,4.66h0Zm61.13,20.31s0,.03,0,.04v10.3l-7.05-12.22h4.9c1.19.03,2.15.72,2.15,1.88ZM0,27.92s0,.03,0,.04C0,29.11.96,30.05,2.15,30.05h95.69c1.19,0,2.15-.93,2.15-2.08,0-.01,0-.03,0-.04V2.16s0-.03,0-.04c0-1.16-.96-2.1-2.15-2.12h0S2.15,0,2.15,0h0C.96,0,0,.93,0,2.08c0,.01,0,.03,0,.04v25.8ZM64.42,11.53c.02-.58.5-1.04,1.08-1.04h20.81c.58,0,1.06.46,1.08,1.04h0s0,6.99,0,6.99c0,.6-.48,1.08-1.08,1.08h-20.81c-.6,0-1.08-.48-1.08-1.08v-6.99Zm-30.3-1.16c2.57,0,4.66,2.09,4.66,4.66-.02,2.56-2.1,4.64-4.66,4.66h.08s-.05,0-.08,0c-2.57,0-4.66-2.09-4.66-4.66s2.09-4.66,4.66-4.66Zm-17.56,0c2.57,0,4.66,2.09,4.66,4.66h0c0,2.55-2.04,4.61-4.57,4.66h0s0,0,0,0c-.02,0-.05,0-.08,0-2.57,0-4.66-2.09-4.66-4.66s2.09-4.66,4.66-4.66ZM2.15,66.58h0c-1.19,0-2.15.93-2.15,2.08,0,.01,0,.03,0,.04v25.76s0,.03,0,.04c0,1.15.96,2.08,2.15,2.08h33.32l17.3-29.96-50.62-.04Zm19.07,14.86c0,2.54-2.04,4.61-4.57,4.66h0s0,0,0,0c-.02,0-.05,0-.08,0-2.57,0-4.66-2.09-4.66-4.66s2.09-4.66,4.66-4.66,4.66,2.09,4.66,4.66h0Zm12.98,4.66s-.05,0-.08,0h.08c-2.57,0-4.66-2.09-4.66-4.66s2.09-4.66,4.66-4.66,4.66,2.09,4.66,4.66h0c0,2.57-2.09,4.66-4.66,4.66Zm43.31-32.34c-2.08-3.74-7.45-3.74-9.52,0l-21.79,38.15c-2.02,3.63.61,8.09,4.76,8.09h43.58c4.15,0,6.78-4.46,4.76-8.09l-21.79-38.15Zm-4.76,38.55c-1.5,0-2.72-1.22-2.72-2.72s1.22-2.72,2.72-2.72,2.72,1.22,2.72,2.72-1.22,2.72-2.72,2.72Zm1.36-12.51c0,1.5-2.72,1.5-2.72,0l-1.37-12.49c0-1.5,1.23-2.72,2.72-2.72s2.72,1.23,2.72,2.72l-1.36,12.49Z","fill","var(--color-primary)"],["user","clearml","repo","clearml","size","large",3,"count"],[1,"github-text","mb-3"],["href","https://github.com/clearml/clearml",1,"link"],[1,"community-links"],[1,"al-icon","sm","al-ico-slack"],[1,"text"],[1,"al-icon","sm","al-ico-email"]],template:function(n,i){n&1&&(dt(),o(0,"div",1)(1,"div",2),p(2,to,17,17,"section",3)(3,io,3,5,"section",3)(4,oo,6,2,"section",4),a(),p(
25,ro,15,3,"div",5),a()),n&2&&(se(i.showBackground()?"dark-theme":"light-theme"),r(2),u(ht(4,Gi,i.loginModeEnum.password,i.loginModeEnum.simple,i.loginModeEnum.ssoOnly).includes(i.loginMode())?2:i.errorTemplate()?3:4),r(3),u(i.showGitHub()?5:-1))},dependencies:[vn,Ie,bn,Ne,jn,de,Pt,Ee,Fe,J,X,Te,Qt,Yt,ne,De,ie,Q,xt,dn],styles:['[_nghost-%COMP%] .marketing-content-bottom[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center}[_nghost-%COMP%] .marketing-content-bottom[_ngcontent-%COMP%] .link[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;text-decoration:none;font-size:12px}[_nghost-%COMP%] .marketing-content-bottom[_ngcontent-%COMP%] .community-links[_ngcontent-%COMP%] .link[_ngcontent-%COMP%]{margin:0 12px;cursor:pointer}[_nghost-%COMP%] .marketing-content-bottom[_ngcontent-%COMP%] .community-links[_ngcontent-%COMP%] .link[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#8492c2!important}[_nghost-%COMP%] .marketing-content-bottom[_ngcontent-%COMP%] ntkme-github-button[_ngcontent-%COMP%] a.gh-btn, [_nghost-%COMP%] .marketing-content-bottom[_ngcontent-%COMP%] ntkme-github-button[_ngcontent-%COMP%] a.social-count{text-decoration:none}[_nghost-%COMP%] .marketing-content-bottom[_ngcontent-%COMP%] ntkme-github-button[_ngcontent-%COMP%] a.gh-btn:hover, [_nghost-%COMP%] .marketing-content-bottom[_ngcontent-%COMP%] ntkme-github-button[_ngcontent-%COMP%] a.social-count:hover{font-weight:700}[_nghost-%COMP%] .login-form[_ngcontent-%COMP%]{color:#000000de;flex-direction:column;overflow:auto;background:var(--login-bg, white);flex:1;padding:24px;display:flex;align-items:center;justify-content:center;height:100%}@media(max-width:420px){[_nghost-%COMP%] .login-form[_ngcontent-%COMP%]{max-width:unset;height:100vh;width:100vw;padding-top:30px}}[_nghost-%COMP%] .login-form[_ngcontent-%COMP%] .login-section[_ngcontent-%COMP%]{display:flex;flex:1;padding:24px 0;text-align:center}@media(max-width:655px){[_nghost-%COMP%] .login-form[_ngcontent-%COMP%] .login-section[_ngcontent-%COMP%]{overflow:unset}}[_nghost-%COMP%] .login-form[_ngcontent-%COMP%] .login-section[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{width:150px}[_nghost-%COMP%] .login-form[_ngcontent-%COMP%] .login-section[_ngcontent-%COMP%] .login-title[_ngcontent-%COMP%]{font-weight:500;font-size:20px;color:#fff;max-width:320px;min-height:30px;white-space:pre-line;margin-top:24px}[_nghost-%COMP%] .login-form[_ngcontent-%COMP%] .login-section[_ngcontent-%COMP%] .login-notice[_ngcontent-%COMP%]{color:#fff;margin-bottom:5px}[_nghost-%COMP%] .login-form[_ngcontent-%COMP%] .login-section[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{width:320px;margin:auto}[_nghost-%COMP%] .login-form[_ngcontent-%COMP%] .login-section[_ngcontent-%COMP%] .login-section-inner[_ngcontent-%COMP%]{background:#fff;padding:32px;border-radius:24px}[_nghost-%COMP%] .login-form[_ngcontent-%COMP%] .login-section[_ngcontent-%COMP%] .login-error[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:24px}[_nghost-%COMP%] .login-form[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .login-form[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%;margin:16px 0 32px}[_nghost-%COMP%] .login-form[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%]{position:absolute;left:75px}[_nghost-%COMP%] .login-form[_ngcontent-%COMP%] .separator[_ng
2content-%COMP%]{display:flex;justify-content:center;color:var(--color-secondary-fixed-dim);font-size:11px}[_nghost-%COMP%] .login-form[_ngcontent-%COMP%] .separator[_ngcontent-%COMP%] .line[_ngcontent-%COMP%]{width:104px;margin-bottom:10px}[_nghost-%COMP%] .login-form[_ngcontent-%COMP%] .terms-of-use[_ngcontent-%COMP%]{display:inline-block;color:#000000de;font-size:11px;margin-left:-2px}[_nghost-%COMP%] .login-form.dark-theme[_ngcontent-%COMP%]{color:#ffffffde;background-image:url("./media/infinity_anim--on_light-X6LH7R6W.svg"),linear-gradient(100deg,#22408a 6%,#09173c 82%);background-size:contain;background-position:center;background-repeat:no-repeat}[_nghost-%COMP%] .login-form.dark-theme[_ngcontent-%COMP%] .terms-of-use[_ngcontent-%COMP%]{color:#ffffffde}[_nghost-%COMP%] .login-form.dark-theme[_ngcontent-%COMP%] .terms-of-use[_ngcontent-%COMP%] a[href][_ngcontent-%COMP%]{color:#a1c9ff}.circle[_ngcontent-%COMP%]{margin:0 auto 40px;width:80px;height:80px;border-radius:100%;border:10px solid rgba(255,255,255,.5);border-top-color:#fff;animation:_ngcontent-%COMP%_spin 1s infinite linear}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}.errors[_ngcontent-%COMP%]{width:250px;max-height:100px;overflow:auto;color:var(--color-error);text-align:left}.other-email[_ngcontent-%COMP%]{margin-top:16px;text-align:left}.mobile[_nghost-%COMP%] .login-form[_ngcontent-%COMP%], .mobile [_nghost-%COMP%] .login-form[_ngcontent-%COMP%]{padding-top:64px}input[_ngcontent-%COMP%]:-webkit-autofill{background-color:transparent!important;-webkit-box-shadow:0 0 0 50px var(--color-surface-container) inset;-webkit-text-fill-color:var(--color-on-surface)}'],changeDetection:0})}}return t})()});function so(t,s){t&1&&(o(0,"div",3),h(1,"iframe",5),a())}function co(t,s){t&1&&(o(0,"div",6),h(1,"div",9),o(2,"div",10),l(3,"OR"),a(),h(4,"div",9),a())}function mo(t,s){if(t&1&&(l(0),z(1,"durationFormater")),t&2){let e=c(3);N(" (",ft(1,1,e.resendTimeOut(),"s","hhmmss"),") ")}}function go(t,s){if(t&1){let e=b();o(0,"div",8)(1,"div",11),h(2,"i",12),o(3,"div",13)(4,"h3",14),l(5,"Verify your email address"),a(),o(6,"p"),l(7,"A verification E-mail was sent to "),o(8,"span",15),l(9),a(),l(10,", please open it to continue the signup process"),a(),o(11,"p"),l(12,"Can't find the email?"),a(),o(13,"button",16),v("click",function(){let i;_(e);let m=c(2);return C(m.reSendVerificationEmail((i=m.validateEmail())==null?null:i.resendUrl))}),l(14,"RESEND EMAIL"),p(15,mo,2,5),a(),o(16,"div",17)(17,"a",18),v("click",function(i){_(e);let m=c(2);return i.preventDefault(),C(m.resetPasswordSignup())}),l(18,"Use a different email?"),a(),o(19,"p",19),l(20,"For additional information or assistance, please contact us at "),o(21,"a",20),l(22),a()()()()()()}if(t&2){let e,n=c(2);r(9),f((e=n.validateEmail())==null?null:e.email),r(4),g("disabled",n.resendTimeOut()>0),r(2),u(n.resendTimeOut()>0?15:-1),r(6),g("href","mailto:"+n.supportEmail(),P),r(),f(n.supportEmail())}}function po(t,s){if(t&1){let e=b();o(0,"div",8)(1,"div",11),h(2,"i",21),o(3,"h3"),l(4,"This account has been frozen due to overdue charges"),a(),o(5,"p"),l(6,"Rest assured your data is still available. Please resolve the pending payment and your access will be restored."),a(),o(7,"button",22),v("click",function(){_(e);let i=c(2);return C(i.updatePayment(i.billingOverdueUrl()))}),l(8,"UPDATE PAYMENT DETAILS"),a(),o(9,"p",19),l(10,"For additional information or assistance, please contact us at "),o(11,"a",23),l(12,"[email protected]"),a()(),o(13,"div",24),l(14," use a different email? "),o(15,"a",25),v("click",function(i){_(e);let m=c(2);return i.preventDefault(),C(m.resetPasswordSignup())}),l(16,"click here"),a()()()()}}function uo(t,s){if(t&1&&(o(0,"div")(1,"h2"),l(2),a()()),t&2){let e=c(3);r(2),f(e.state().signupMode()?"Sign up":"Log in")}}function ho(t,s){if(t&1&&(o(0,"h3"),l(1),a(),o(2,"small"),l(3),a()),t&2){let e=c(3);r(),f(e.state().signupMode()?"Create a free account":"Welcome back!"),r(2),f(e.state().signupMode()?"[ No credit card required ]":"")}}function fo(t,s){if(t&1&&(o(0,"h3",27),l(1),a()),t&2){let e=c(3);r(),f(e.firstLogin?"Welcome":"Welcome back!")}}function _o(t,s){if(t&1){let e=b();o(0,"button",30),v("click",function(){let i=_(e).$implicit,m=c(3);return C(m.ssoLogin(i.name))}),h(1,"i",31),o(2,"span",32),l(3),a()()}if(t&2){let e=s.$implicit,n=c(3);g("disabled",n.showSpinner)("id","app_oauth_"+e.name),U("signup",n.state().signupMode()),r(),se(n.getProviderIcon(e)),S("i-access-key",e.name!=="auth0"),r(),g("smTooltip",n.getProviderName(e)),r(),N("Continue with ",n.getProviderName(e))}}function Co(t,s){t&1&&(o(0,"div",29),l(1),a()),t&2&&(r(),f(s))}function xo(t,s){if(t&1){let e=b();o(0,"div",24),l(1," use a different email? "),o(2,"a",25),v("click",function(i){_(e);let m=c(3);return i.preventDefault(),C(m.resetPasswordSignup(m.logoutProvider(),m.logoutTenant()))}),l(3,"click here"),a()()}}function Mo(t,s){if(t&1){let e=b();o(0,"div"),l(1,"Already have an account? "),o(2,"a",35),v("click",function(){_(e);let i=c(4);return C(i.toggleSignup())})("keyup",function(){_(e);let i=c(4);return C(i.toggleSignup())}),l(3,"Log in"),a()()}}function bo(t,s){if(t&1){let e=b();o(0,"div"),l(1,"Don't have an account? "),o(2,"a",35),v("click",function(){_(e);let i=c(4);return C(i.toggleSignup())})("keyup",function(){_(e);let i=c(4);return C(i.toggleSignup())}),l(3,"Sign up"),a()()}}function vo(t,s){if(t&1&&(o(0,"div",34)(1,"span"),l(2,"By proceeding with registration, you acknowledge that you have read and agree to ClearML's "),o(3,"a",20),l(4,"Privacy Policy and Terms of Use"),a(),l(5,"."),a()()),t&2){let e=c(4);r(3),g("href",e.touLink(),P)}}function Po(t,s){if(t&1&&(o(0,"div",33),p(1,Mo,4,0,"div")(2,bo,4,0,"div"),a(),p(3,vo,6,1,"div",34)),t&2){let e=c(3);
2r(),u(e.state().signupMode()?1:2),r(2),u(e.touLink()&&!e.validateEmail()&&!e.billingOverdueUrl()?3:-1)}}function yo(t,s){if(t&1&&(o(0,"div",8),p(1,uo,3,1,"div"),o(2,"div",26),p(3,ho,4,2)(4,fo,2,1,"h3",27),w(5,_o,4,9,"button",28,ao),p(7,Co,2,1,"div",29),p(8,xo,4,0,"div",24),p(9,Po,4,2),a()()),t&2){let e,n=c(2);r(),u(n.isCommunity()?1:-1),r(2),u(n.isCommunity()?3:n.loginService.loginMode()===n.loginModeEnum.ssoOnly?4:-1),r(2),O(n.loginService.sso()),r(2),u((e=n.error())?7:-1,e),r(),u(n.logoutProvider()?8:-1),r(),u(n.isCommunity()?9:-1)}}function wo(t,s){if(t&1&&(p(0,co,5,0,"div",6),o(1,"div",7),p(2,go,23,5,"div",8)(3,po,17,0,"div",8)(4,yo,10,5,"div",8),a()),t&2){let e,n=c();u(n.loginService.loginMode()!==n.loginModeEnum.ssoOnly?0:-1),r(2),u((e=n.validateEmail())!=null&&e.resendUrl?2:n.billingOverdueUrl()?3:!n.billingOverdueUrl()&&!((e=n.validateEmail())!=null&&e.resendUrl)?4:-1)}}function Oo(t,s){if(t&1){let e=b();o(0,"button",37),v("click",function(){let i=_(e).$implicit,m=c(2);return C(m.selectCompany(i))}),h(1,"i",38),o(2,"span",32),l(3),a()()}if(t&2){let e=s.$implicit;g("id","company_"+e.name),r(),ut("background-image","url("+e.logo+")"),r(),g("smTooltip",e.name),r(),f(e.name)}}function So(t,s){if(t&1&&(o(0,"div",7)(1,"div",8)(2,"div",26)(3,"h3",27),l(4),a(),w(5,Oo,4,5,"button",36,lo),a()()()),t&2){let e=c();r(4),f(e.tenantTitles().tenant),r(),O(e.companies())}}function ko(t,s){t&1&&(o(0,"div",43),l(1),a()),t&2&&(r(),f(s))}function Lo(t,s){if(t&1){let e=b();o(0,"div",7)(1,"div",8)(2,"div",39)(3,"h3",40),l(4),a(),o(5,"mat-form-field",41),h(6,"input",42),a(),o(7,"button",16),v("click",function(){_(e);let i=c();return C(i.selectProvider())}),l(8,"Continue"),a(),p(9,ko,2,1,"div",43),a()()()}if(t&2){let e,n=c();r(4),f(n.tenantTitles().provider),r(2),g("formControl",n.provider),r(),g("disabled",n.provider.invalid),r(2),u((e=n.error())?9:-1,e)}}var ao,lo,Xe,Wn=E(()=>{T();K();qe();$e();we();Rn();mi();ci();Pe();Tt();ln();Ge();Ue();me();We();_i();_e();Ze();An();Re();Ci();T();K();ao=(t,s)=>s.name,lo=(t,s)=>s.id;Xe=(()=>{class t{constructor(){this.store=d(A),this.router=d(H),this.route=d(ye),this.loginService=d(te),this.configuration=d(Y),this.locationStrategy=d($),this.error=this.store.selectSignal(Le),this.validateEmail=this.store.selectSignal(Ln),this.billingOverdueUrl=this.store.selectSignal(Tn),this.logoutProvider=this.store.selectSignal(Fn),this.logoutTenant=this.store.selectSignal(En),this.companies=this.store.selectSignal(Dn),this.companySession=this.store.selectSignal(Nn),this.companyRedirect=this.store.selectSignal(zn),this.touLink=x(()=>this.configuration.configuration().legal?.TOULink),this.supportEmail=x(()=>this.configuration.configuration().supportEmail),this.currentTime=y(Math.floor(new Date().getTime())),this.resendTimeOut=x(()=>Math.floor((this.validateEmail().timeOut-this.currentTime())/1e3)),this.tenantTitles=x(()=>this.configuration.configuration().tenantTitles),this.ssoEnabled=x(()=>this.loginService.sso()?.length>0),this.isCommunity=x(()=>this.configuration.configuration().communityServer),this.forceLight=x(()=>this.configuration.configuration().forceTheme==="light"),this.state=x(()=>({sso:this.loginService.sso(),signupMode:y(this.loginService.signupMode())})),this.tenant=Qe("tenant"),this.company=Qe("company"),this.loginModeEnum=k,this.provider=new ge(null,[V.required]),this.window=window}ngOnInit(){if(this.removeSignupFromUrl(),this.validateEmail()){let e=window.setInterval(()=>{this.currentTime.set(new Date().getTime()),this.resendTimeOut()<=0&&window.clearInterval(e)},100)}}ngOnDestroy(){this.removeSignupFromUrl()}ssoLogin(e){this.loginService.ssoLoginURL(e,this.tenant(),this.company()).subscribe()}toggleSignup(){this.state().signupMode.update(e=>!e),this.loginService.signupMode.set(this.state().signupMode()),this.removeSignupFromUrl()}removeSignupFromUrl(){this.router.url?.includes("redirect")&&this.route.snapshot.queryParams.redirect?.includes("signup")&&this.router.navigate([],{relativeTo:this.route,queryParams:{redirect:this.route.snapshot.queryParams.redirect?.replace(/[&]?signup/,"")},queryParamsHandling:"merge"})}getProviderName(e){return e.displayName?e.displayName:new Mt().transform(e.name?.replace("_"," ").replace("auth0","Email"))}getProviderIcon(e){return e.name==="auth0"?"al-ico-email":`i-${e.name.replace("_"," ")}`}resetPasswordSignup(e="auth0",n=null){this.store.dispatch(kt({provider:e,tenant:n,redirectUrl:window.location.href}))}reSendVerificationEmail(e){window.location.href=e}updatePayment(e){let n=document.createElement("a");n.href=e,n.click()}selectCompany(e){let n=this.companyRedirect()||"";this.loginService.selectCompany(e.id,this.companySession(),n).pipe(L(1)).subscribe(()=>{this.store.dispatch(Oe()),this.router.navigate([ee(n,this.locationStrategy.getBaseHref())])})}selectProvider(){let e=new URL(window.location.href);e.pathname=`${e.pathname}/${this.provider.value}`,window.location.href=e.toString()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=F({type:t,selectors:[["sm-full-login"]],decls:8,vars:12,consts:[["companiesTemplate",""],["tenantInput",""],[1,"login"],[1,"marketing"],[3,"showSimpleLogin","hideTou","showBackgroun
2d","errorTemplate"],["loading","lazy","src",Ce`https://web-assets.clear.ml/webapp/login/login-content.html`],[1,"separator","mb-4"],[1,"d-flex","flex-column","login-extension"],[1,"sso-wrapper"],[1,"line"],[1,"px-3"],[1,"sso-body","error"],[1,"al-icon","al-ico-email-check","lg"],[1,"position-relative"],[1,"mt-2"],[1,"email"],["mat-flat-button","",3,"click","disabled"],[1,"mt-4"],["href","",1,"mb-2",3,"click"],[1,"support"],["target","_blank",1,"link",3,"href"],[1,"al-icon","al-ico-alert","lg"],["mat-flat-button","",3,"click"],["target","_blank","href","mailto:[email protected]",1,"link"],[1,"other-email"],["href","",3,"click"],[1,"sso-body"],[1,"mb-5"],[1,"btn","sso-btn",3,"disabled","id"],[1,"errors"],[1,"btn","sso-btn",3,"click","disabled","id"],[1,"sm-md","al-icon"],["smShowTooltipIfEllipsis","",1,"btn-text","ellipsis",3,"smTooltip"],[1,"log-sign-toggle"],[1,"terms-of-use"],["tabindex","0",1,"link",3,"click","keyup"],[1,"btn","sso-btn",3,"id"],[1,"btn","sso-btn",3,"click","id"],[1,"company-logo","sm-md","al-icon"],[1,"sso-body","d-flex","flex-column","gap-3"],[1,"mb-4"],["appearance","outline"],["matInput","","name","name",3,"formControl"],[1,"errors","mt-5"]],template:function(n,i){if(n&1&&(o(0,"div",2),p(1,so,2,0,"div",3),o(2,"sm-login",4),p(3,wo,5,2),a(),W(4,So,7,1,"ng-template",null,0,Be)(6,Lo,10,4,"ng-template",null,1,Be),a()),n&2){let m=D(5),M=D(7);S("full-width",!i.isCommunity())("light-theme",i.isCommunity()),r(),u(i.isCommunity()?1:-1),r(),S("dark-theme",!i.isCommunity()&&!i.forceLight()),g("showSimpleLogin",i.loginService.loginMode()!==i.loginModeEnum.ssoOnly||!i.ssoEnabled())("hideTou",!0)("showBackground",!i.isCommunity()&&!i.forceLight())("errorTemplate",i.companies()?m:i.loginService.loginMode()===i.loginModeEnum.tenantInput?M:null),r(),u(i.ssoEnabled()?3:-1)}},dependencies:[cn,mn,Gn,Q,ne,ie,Ee,J,X,$t,Sn],styles:['[_nghost-%COMP%]{height:100%}[_nghost-%COMP%] .login[_ngcontent-%COMP%]{height:100%;display:grid;grid-template-columns:1fr 1fr}[_nghost-%COMP%] .login.full-width[_ngcontent-%COMP%]{grid-template-columns:1fr}@media screen and (max-width:960px){[_nghost-%COMP%] .login[_ngcontent-%COMP%]{grid-template-columns:unset}[_nghost-%COMP%] .login[_ngcontent-%COMP%] .marketing[_ngcontent-%COMP%]{display:none}}.marketing[_ngcontent-%COMP%]{padding:24px;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;background-image:url("./media/infinity_anim--on_light-X6LH7R6W.svg"),linear-gradient(100deg,#22408a 6%,#09173c 82%);background-size:contain;background-position:center;background-repeat:no-repeat;color-scheme:auto}iframe[_ngcontent-%COMP%]{border:none;height:100%;width:100%}
2.separator[_ngcontent-%COMP%]{display:flex;justify-content:center;color:#a4adcd;font-size:11px}.separator[_ngcontent-%COMP%] .line[_ngcontent-%COMP%]{border-bottom:1px solid #A4ADCD;width:140px;margin-bottom:8px}.login-extension[_ngcontent-%COMP%] .sso-btn[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;width:100%;margin-top:16px;font-weight:500;font-family:Heebo,sans-serif;color:#fff;border:0;border-radius:4px;opacity:unset;font-size:14px;text-align:left;justify-content:left;background-color:#fff;height:40px;box-shadow:0 2px 4px #0003;transition:box-shadow .15s,top .15s;cursor:pointer}.login-extension[_ngcontent-%COMP%] .sso-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#4d66ff}.login-extension[_ngcontent-%COMP%] .sso-btn[_ngcontent-%COMP%] .company-logo[_ngcontent-%COMP%]{background-repeat:no-repeat;background-position-x:center;background-position-y:center;background-size:contain;display:inline-block}.login-extension[_ngcontent-%COMP%] .sso-btn[_ngcontent-%COMP%] .al-ico-email[_ngcontent-%COMP%]{color:#4d66ff}.login-extension[_ngcontent-%COMP%] .sso-btn[_ngcontent-%COMP%]:hover{top:1px;box-shadow:0 0 2px #0003}.login-extension[_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%]{position:absolute;left:75px}.login-extension[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin:0 30px 0 6px}.login-extension[_ngcontent-%COMP%] .btn-text[_ngcontent-%COMP%]{width:190px;white-space:nowrap;color:#384161;transform:translateY(1px)}.login-extension[_ngcontent-%COMP%] .sso-wrapper[_ngcontent-%COMP%]{color:#fff;overflow:hidden;text-align:center}.login-extension[_ngcontent-%COMP%] .sso-wrapper[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:#c3cdf0;margin:12px 0 0;font-size:24px;font-weight:300}.login-extension[_ngcontent-%COMP%] .sso-wrapper[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-weight:500;font-size:16px;color:#50beff;margin-bottom:12px}.login-extension[_ngcontent-%COMP%] .sso-wrapper[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{color:#dce0ee}.login-extension[_ngcontent-%COMP%] .sso-wrapper[_ngcontent-%COMP%] .sso-body[_ngcontent-%COMP%]{padding:0 4px 24px;text-align:center}.login-extension[_ngcontent-%COMP%] .sso-wrapper[_ngcontent-%COMP%] .sso-body.error[_ngcontent-%COMP%]{display:flex;flex-direction:column}.login-extension[_ngcontent-%COMP%] .sso-wrapper[_ngcontent-%COMP%] .sso-body.error[_ngcontent-%COMP%] .al-icon[_ngcontent-%COMP%]{color:#a1c9ff;margin:0 auto}.login-extension[_ngcontent-%COMP%] .sso-wrapper[_ngcontent-%COMP%] .sso-body.error[_ngcontent-%COMP%] .al-ico-alert[_ngcontent-%COMP%]{color:var(--color-warning)}.login-extension[_ngcontent-%COMP%] .sso-wrapper[_ngcontent-%COMP%] .sso-body.error[_ngcontent-%COMP%] .email[_ngcontent-%COMP%]{font-weight:500;color:#50beff;word-break:break-word}.support[_ngcontent-%COMP%]{color:#dce0ee;font-size:12px;margin-top:24px}.circle[_ngcontent-%COMP%]{margin:auto auto 40px;width:80px;height:80px;border-radius:100%;border:10px solid rgba(255,255,255,.5);border-top-color:#fff;animation:_ngcontent-%COMP%_spin 1s infinite linear}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}.errors[_ngcontent-%COMP%]{width:250px;max-height:100px;overflow:auto;margin-top:16px;color:#ff6f81;text-align:left}.other-email[_ngcontent-%COMP%]{margin-top:16px;text-align:center;color:var(--color-on-surface-variant)}.log-sign-toggle[_ngcontent-%COMP%]{color:#8492c2;margin-top:24px}.log-sign-toggle[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-weight:500}.terms-of-use[_ngcontent-%COMP%]{display:inline-block;margin-top:24px;width:210px;font-size:12px;color:var(--color-on-surface-variant)}.login.light-theme[_ngcontent-%COMP%] .sso-wrapper[_ngcontent-%COMP%]{color:#384161}.login.light-theme[_ngcontent-%COMP%] .sso-wrapper[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:#2c3246}.login.light-theme[_ngcontent-%COMP%] .sso-wrapper[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:#4d66ff}.login.light-theme[_ngcontent-%COMP%] .sso-wrapper[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{color:#384161}.login.light-theme[_ngcontent-%COMP%] .sso-wrapper[_ngcontent-%COMP%] .sso-body.error[_ngcontent-%COMP%] .al-icon[_ngcontent-%COMP%], .login.light-theme[_ngcontent-%COMP%] .sso-wrapper[_ngcontent-%COMP%] .sso-body.error[_ngcontent-%COMP%] .email[_ngcontent-%COMP%]{color:#4d66ff}.login.light-theme[_ngcontent-%COMP%] .sso-wrapper[_ngcontent-%COMP%] .sso-body.error[_ngcontent-%COMP%] .al-ico-alert[_ngcontent-%COMP%]{color:var(--color-warning)}.login.light-theme[_ngcontent-%COMP%] .sso-wrapper[_ngcontent-%COMP%] .sso-body[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{color:#384161}.login.light-theme[_ngcontent-%COMP%] .log-sign-toggle[_ngcontent-%COMP%]{color:#1
2a1e2c}.login.light-theme[_ngcontent-%COMP%] .log-sign-toggle[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#4d66ff}.login.light-theme[_ngcontent-%COMP%] .support[_ngcontent-%COMP%]{color:#5a658e}.login.light-theme[_ngcontent-%COMP%] .login-extension[_ngcontent-%COMP%] .sso-btn[_ngcontent-%COMP%]{background-color:#fff;color:#5a658e}.login.light-theme[_ngcontent-%COMP%] .login-extension[_ngcontent-%COMP%] .btn-text[_ngcontent-%COMP%]{color:#384161}.login.light-theme[_ngcontent-%COMP%] a[href][_ngcontent-%COMP%]{color:#4d66ff}'],changeDetection:0})}}return t})()});var Zn,qn=E(()=>{T();we();He();Pe();At();me();We();Zn=t=>{let s=d(A),e=d(H),n=d($),i=ee((t.queryParams.redirect||"/").replace("/login","/"),n.getBaseHref());return s.select(Se).pipe(B(m=>m?e.parseUrl(i):!0))}});var $n,Yn=E(()=>{T();Cn();_e();ai();Vt();T();$n=(()=>{class t{constructor(){this.actions$=d(hn),this.userService=d(rn),this.getTOU=un(()=>this.actions$.pipe(fn(ke),I(()=>this.userService.usersGetTermsOfUse({})),B(e=>Ht({terms:e.terms_of_use.text}))))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=rt({token:t,factory:t.\u0275fac})}}return t})()});var Qn,Jn=E(()=>{Cn();Yn();Xn();Qn=[_n([$n]),yt(wt())]});var Ia,To=E(()=>{Un();Wn();qn();Jn();Ia=[{path:"",canActivate:[Zn],providers:Qn,children:[{path:"",component:Xe},{path:"signup",component:Bn},{path:":tenant",component:Xe}]}]});To();export{Ia as routes};
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.