PageSourceSearch

https://app.expandi.io/chunk-TK4DNJYQ.js

js expandi.io collected 2026-09-25 14:15:29 UTC 171,815 bytes, 9 lines download raw bytes

1import{a as Bo,b as es,c as Go,d as ts}from"./chunk-2SJSXOCF.js";import{a as mt,b as Uo,c as an}from"./chunk-MWR4CSZT.js";import{e as Ao,f as No,g as Do,h as ko,i as Lo,j as Ro,k as Fo}from"./chunk-F7WJD7CP.js";import{a as Po,b as Yr,c as Eo,d as Jr,e as wo,l as Zr}from"./chunk-VCFZC73O.js";import{a as vo,b as Io,c as Xr}from"./chunk-YMGB5VGI.js";import{e as Xt,f as To,g as tn,h as yo}from"./chunk-J2AZAVZY.js";import"./chunk-P6UIYGQX.js";import"./chunk-DFUEXSA2.js";import{v as Co,w as $r,x as Oo,y as Qr}from"./chunk-FUMJHN3T.js";import{a as dt,b as In}from"./chunk-F47FEI3M.js";import{c as nn,d as Mo,e as on,f as bo}from"./chunk-VH3MO375.js";import"./chunk-VLZVCW75.js";import{a as Zt,b as xo,c as en,d as So}from"./chunk-N2XMY72M.js";import{Z as $,_ as ye,a as go,b as uo,c as fo,e as _o,f as Hr,r as ct,s as wn}from"./chunk-N4SUKYMB.js";import{a as W,b as he}from"./chunk-7OYLLAQC.js";import{a as Yt,b as so,c as lo,d as co,e as po}from"./chunk-43MXA453.js";import{g as $t,h as Xi}from"./chunk-BEDILTHJ.js";import{a as jt,b as Zi}from"./chunk-MAVTUJIU.js";import"./chunk-7MG3VIK4.js";import{a as E,e as ce}from"./chunk-HYJFT6FN.js";import{c as V,d as ge}from"./chunk-ECRWSRDA.js";import{a as Jt,b as mo,c as ho,d as jr,k as pt,l as vn}from"./chunk-DWYAB7LH.js";import"./chunk-2A4ROWH5.js";import"./chunk-Y23AFAZJ.js";import{C as ue,H as fe,J as lt,Q as io,aa as oo,ea as Kr,v as Se,w as eo,wa as Qt,y as to,ya as ao,z as no}from"./chunk-TEBRTGZ6.js";import{a as Fe,c as ro,e as Pt}from"./chunk-UDJ3FP7F.js";import{s as bt}from"./chunk-HUKGANG4.js";import{$a as r,$b as St,$j as rt,A as oi,Aa as P,Ab as y,Ac as le,Ag as it,Bc as de,Bd as Vt,C as ai,Cb as Ci,Ce as nt,Cg as zi,Db as X,Ea as mi,Eb as ee,Fa as k,Fb as u,Fg as bn,Fj as at,Fk as Ji,Gb as s,Gc as d,Gg as Br,Gj as Kt,H as ri,Hb as l,Hc as g,Hj as Ht,Ia as O,Ib as T,Ic as yt,Jb as Je,Jc as Pi,Jd as Ni,Je as ke,Jg as qi,Ka as Ye,Kb as Ze,Kg as Gr,L as si,Lb as xi,Lc as me,Lg as Le,Lj as Mt,Mg as Wt,Mk as Wr,Na as gi,Nd as Lr,Nk as st,Ob as ne,Od as Di,Ok as En,Pb as N,Pc as Ee,Pd as ki,Pe as Gi,Pk as j,Qb as Ti,Qd as Li,Qk as Te,Rb as C,Rc as Gt,Rd as Ri,Sb as Si,Sd as Rr,Sf as Fr,Sh as Ki,Tb as f,Tg as ot,U as $e,Ug as D,Uj as U,V as li,Vc as te,Vj as Re,Wc as q,Wd as Fi,Wf as Vi,Wg as Z,X as Ut,Xa as Pe,Xb as yi,Xc as Ot,Yb as Oi,Yd as zt,Z as ci,Za as ui,Zb as Mi,Zh as zr,ab as fi,ac as Bt,ad as Ei,ae as Ui,ak as Pn,bc as G,dc as pe,fb as _i,fc as bi,fd as w,g as Ft,ga as Qe,gb as Mn,gc as p,ge as Ae,gj as Hi,hc as x,hj as ji,ic as M,ie as ae,ij as $i,jb as A,le as xe,ma as Tt,md as wi,me as Ne,nd as vi,nj as Qi,oe as Xe,pb as J,pe as Bi,qa as pi,rd as Ii,re as ie,se as qt,ta as di,tb as hi,td as Ai,te as De,ua as h,ub as H,we as et,xh as Wi,yb as S,yh as Vr,yk as Yi,za as b,ze as tt,zg as Ur,zk as qr}from"./chunk-E75EFTGM.js";import{a as re,b as se,e as z,f as F,g as kr,h as On}from"./chunk-VINNKM5T.js";function os(t,i){if(t&1&&(s(0,"mat-option",15)(1,"span",16),T(2,"img",17),s(3,"span"),p(4),l()()()),t&2){let e=i.$implicit;u("value",e),r(2),u("src","assets/icons/flags/"+e.flag+".png",Pe)("alt",e.title),r(2),x(e.title)}}function as(t,i){if(t&1){let e=N();s(0,"div",0)(1,"header",1)(2,"h5",2)(3,"span"),p(4),d(5,"translate"),l(),s(6,"div",3)(7,"button",4),C("click",function(){b(e);let o=f();return P(o.updateProfile())}),T(8,"exp-icon",5),s(9,"span",6),p(10),d(11,"translate"),l()()()()(),s(12,"form",7),C("enterClicked",function(){b(e);let o=f();return P(o.updateProfile())}),s(13,"mat-form-field",8)(14,"mat-label"),p(15),d(16,"translate"),l(),T(17,"input",9),l(),s(18,"mat-form-field",8)(19,"mat-label"),p(20),d(21,"translate"),l(),T(22,"input",10),l(),s(23,"mat-form-field",11),T(24,"img",12),s(25,"mat-select",13)(26,"div",14),X(27,os,5,4,"mat-option",15,is),l()()()()()}if(t&2){let e,n=f();r(4),x(g(5,8,"ACCOUNT_SETTINGS.PROFILE_SETTINGS")),r(3),u("disabled",n.profileSettingsForm.invalid),r(3),x(g(11,10,"GENERAL.APPLY")),r(2),u("formGroup",n.profileSettingsForm),r(3),x(g(16,12,"GENERAL.FIRST_NAME")),r(5),x(g(21,14,"ACCOUNT_SETTINGS.LAST_NAME")),r(4),u("src","assets/icons/flags/"+((e=n.selectedLanguage())==null?null:e.flag)+".png",Pe),r(),u("placeholder","Language"),r(2),ee(n.languages)}}var is,Vo,zo=z(()=>{w();ke();ce();ge();Zr();Te();he();ye();vn();w();ke();Re();lt();
1Kr();mo();Z();is=(t,i)=>i.flag;Vo=(()=>{class t{constructor(){this.notificationService=h(V),this.global=h(j),this.destroyRef=h(k),this.account=q.required(),this.profileEmit=te(),this.selectedLanguage=O(void 0),this.languages=wo}ngOnInit(){this.initLanguage(),this.initProfileSettingsForm()}updateProfile(){this.global.setUpLanguage(this.selectedLanguage().flag),this.profileSettingsForm.valid?this.profileEmit.emit(se(re({},this.account()),{first_name:this.profileSettingsForm.get("first_name").value,last_name:this.profileSettingsForm.get("last_name").value})):this.notificationService.translatedWarning("NOTIFICATIONS.INPUT_ALL_REQUIRED_FIELDS")}initLanguage(){this.global.currentLanguage$.pipe(E(this.destroyRef)).subscribe(e=>{this.selectedLanguage.set(this.languages.find(n=>n.flag===e))})}initProfileSettingsForm(){this.profileSettingsForm=new Xe({first_name:new ie("",ae.required),last_name:new ie("",ae.required),lang:new ie(this.selectedLanguage())}),this.profileSettingsForm.patchValue(this.account()),this.profileSettingsForm.valueChanges.pipe(E(this.destroyRef)).subscribe(e=>{this.selectedLanguage.set(e.lang)})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=A({type:t,selectors:[["exp-profile-settings"]],inputs:{account:[1,"account"]},outputs:{profileEmit:"profileEmit"},decls:1,vars:1,consts:[["id","profile-settings",1,"tab-container"],[1,"page-header"],[1,"title"],[1,"tab-actions"],[1,"btn-primary",3,"click","disabled"],["name","save"],[1,"btn-text"],["expSubmitForm","",3,"enterClicked","formGroup"],["appearance","outline",1,"form-field"],["matInput","","formControlName","first_name","required","","min","2"],["matInput","","formControlName","last_name","required","","min","2"],["appearance","outline",1,"form-field","is-suffix"],["matPrefix","",1,"flag",2,"height","10px",3,"src"],["formControlName","lang",3,"placeholder"],["id","mat-select-wrapper"],[3,"value"],[2,"display","flex","align-items","center","justify-content","flex-start"],[1,"flag","mr-16",2,"height","10px",3,"src","alt"]],template:function(n,o){n&1&&S(0,as,29,16,"div",0),n&2&&y(o.account()?0:-1)},dependencies:[W,De,Ae,xe,Ne,nt,et,tt,U,$,fe,ue,Se,to,oo,io,pt,Jt,D],styles:["@media all and (width <= 991px){#profile-settings[_ngcontent-%COMP%]{display:flex;flex-direction:column-reverse}#profile-settings[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], #profile-settings[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{min-width:100%;display:flex;justify-content:flex-end}}@media all and (width <= 991px) and (width <= 480px){#profile-settings[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]   .tab-actions[_ngcontent-%COMP%], #profile-settings[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]   button[_ngcontent-%COMP%], #profile-settings[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]   .tab-actions[_ngcontent-%COMP%], #profile-settings[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{min-width:100%}#profile-settings[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]   button[_ngcontent-%COMP%], #profile-settings[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{justify-content:center}}#profile-settings[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-top:12px}@media all and (width <= 991px){#profile-settings[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]{margin-top:0;margin-bottom:12px}}#profile-settings[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{max-width:420px;width:100%}@media all and (width <= 991px){#profile-settings[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{max-width:inherit;min-width:100%}}",".tab-container[_ngcontent-%COMP%]{max-width:656px;margin:0 auto;padding:16px}@media all and (width <= 991px){.tab-container[_ngcontent-%COMP%]{padding:0}}.page-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.title[_ngcontent-%COMP%]{margin:0;font-family:geist,sans-serif;font-weight:600;font-size:24px;line-height:28px;color:#191d23;display:flex;align-items:center;justify-content:space-between;min-height:32px}@media all and (width <= 991px){.title[_ngcontent-%COMP%]{min-height:inherit}.title[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:none}}.subtitle[_ngcontent-%COMP%]{margin:0;font-family:geist,sans-serif;font-size:14px;font-weight:400;line-height:16px;
1color:#77808c}.docs-link[_ngcontent-%COMP%]{color:#105670;text-decoration:none}.docs-link[_ngcontent-%COMP%]:hover{text-decoration:underline}.tab-description[_ngcontent-%COMP%]{margin-top:12px;margin-bottom:0;min-width:100%}.btn-primary[_ngcontent-%COMP%]{padding:0 18px;height:36px;display:flex;align-items:center;font-weight:500;font-size:14px;line-height:20px;border-radius:12px}h2[_ngcontent-%COMP%]{margin:0;color:var(--primaryText-color);font-weight:500!important;font-size:18px!important;line-height:28px!important;display:flex;align-items:center;justify-content:space-between;min-height:32px}@media all and (width <= 991px){h2[_ngcontent-%COMP%]{min-height:inherit;line-height:0!important}h2[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:none}}h4[_ngcontent-%COMP%]{font-weight:400!important;font-size:16px!important;line-height:24px!important;margin:0;color:var(--primaryText-color)}"],changeDetection:0})}}return t})()});function rs(t,i){t&1&&(s(0,"mat-error"),p(1),d(2,"translate"),l()),t&2&&(r(),x(g(2,1,"NOTIFICATIONS.FILL_IN_PASSWORD")))}function ss(t,i){t&1&&(s(0,"mat-error"),p(1),d(2,"translate"),l()),t&2&&(r(),x(g(2,1,"NOTIFICATIONS.OLD_PASSWORD_SAME_WITH_NEW")))}function ls(t,i){t&1&&(s(0,"mat-error"),p(1),d(2,"translate"),l()),t&2&&(r(),x(g(2,1,"NOTIFICATIONS.FILL_IN_PASSWORD")))}function cs(t,i){t&1&&(s(0,"mat-error"),p(1),d(2,"translate"),l()),t&2&&(r(),x(g(2,1,"NOTIFICATIONS.PASSWORD_SHOULD_CONTAIN_MORE_CHARACTERS")))}function ps(t,i){t&1&&(s(0,"mat-error"),p(1),d(2,"translate"),l()),t&2&&(r(),x(g(2,1,"NOTIFICATIONS.PASSWORD_SHOULD_NOT_CONTAIN_MORE_CHARACTERS")))}function ds(t,i){t&1&&(s(0,"mat-error"),p(1),d(2,"translate"),l()),t&2&&(r(),x(g(2,1,"NOTIFICATIONS.OLD_PASSWORD_SAME_WITH_NEW")))}function ms(t,i){t&1&&(s(0,"mat-error"),p(1),d(2,"translate"),l()),t&2&&(r(),x(g(2,1,"NOTIFICATIONS.PASSWORDS_NOT_MATCHING")))}function gs(t,i){t&1&&(s(0,"mat-error"),p(1),d(2,"translate"),l()),t&2&&(r(),x(g(2,1,"NOTIFICATIONS.FILL_IN_PASSWORD")))}var qo,Wo=z(()=>{w();Ur();ke();ce();ge();so();he();ye();vn();w();ke();Re();lt();mo();Z();qo=(()=>{class t{constructor(){this.notificationService=h(V),this.passwordService=h(Yt),this.destroyRef=h(k),this.hidePassword1=O(!0),this.hidePassword2=O(!0),this.hidePassword3=O(!0)}ngOnInit(){this.initProfilePassword()}changePassword(){this.profilePasswordForm.valid?this.passwordService.changePassword(new Vi(this.profilePasswordForm.value)).pipe(E(this.destroyRef)).subscribe(()=>{this.notificationService.translatedSuccess("NOTIFICATIONS.PASSWORD_CHANGED")},e=>{e.error.password&&(e.error.password[0]&&this.notificationService.translatedError(e.error.password[0]),e.error.password[1]&&this.notificationService.translatedError(e.error.password[1])),e.error.old_password&&this.notificationService.translatedError("NOTIFICATIONS.OLD_PASSWORD_IS_NOT_CORRECT")}):this.notificationService.translatedWarning("NOTIFICATIONS.INPUT_ALL_REQUIRED_FIELDS")}initProfilePassword(){this.profilePasswordForm=new Xe({old_password:new ie("",[ae.required]),password:new ie("",[ae.required]),password_confirm:new ie("",[ae.required])},{validators:[this.checkEqualPasswords]})}checkEqualPasswords(e){e.get("password").value!==e.get("password_confirm").value?(e.get("password").setErrors({notSame:!0}),e.get("password_confirm").setErrors({notSame:!0})):e.get("old_password").value===e.get("password").value?(e.get("old_password").setErrors({sameWithOld:!0}),e.get("password").setErrors({sameWithOld:!0})):e.get("password").value.length<8?e.get("password").setErrors({minlength:!0}):e.get("password").value.length>40?e.get("password").setErrors({maxlength:!0}):(e.get("old_password").setErrors(null),e.get("password").setErrors(null),e.get("password_confirm").setErrors(null))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=A({type:t,selectors:[["exp-profile-password"]],decls:39,vars:31,consts:[["id","profile-password",1,"tab-container"],[1,"page-header"],[1,"title"],[1,"tab-actions"],[1,"btn-primary",3,"click","disabled"],["name","save"],["expSubmitForm","",3,"enterClicked","formGroup"],["appearance","outline",1,"form-field"],["matInput","","formControlName","old_password","required","",3,"type"],["matSuffix","",3,"click","name"],["matInput","","formControlName","password","required","",3,"type"],["matInput","","formControlName","password_confirm","required","",3,"type"]],template:function(n,o){if(n&1&&(s(0,"div",0)(1,"header",1)(2,"h5",2)(3,"span"),p(4),d(5,"translate"),l(),s(6,"div",3)(7,"button",4),C("click",function(){return o.changePassword()}),T(8,"exp-icon",5),s(9,"span"),p(10),d(11,"translate"),l()()()()(),s(12,"form",6),C("enterClicked",function(){return o.changePassword()}),s(13,"mat-form-field",7)(14,"mat-label"),p(15),d(16,"translate"),l(),T(17,"input",8),s(18,"exp-icon",9),C("click",function(){return o.hidePassword1.set(!o.hidePassword1())}),l(),S(19,rs,3,3,"mat-error"),S(20,ss,3,3,"mat-error"),l(),s(21,"mat-form-field",7)(22,"mat-label"),p(23),d(24,"translate"),l(),T(25,"input",10),s(26,"exp-icon",9),C("click",function(){return o.hidePassword2.set(!o.hidePassword2())}),l(),S(27,ls,3,3,"mat-error"),S(28,cs,3,3,"mat-error"),S(29,ps,3,3,"mat-error"),S(30,ds,3,3,"mat-error"),l(),s(31,"mat-form-field",7)(32,"mat-label"),p(33),d(34,"translate"),l(),T(35,"input",11),s(36,"exp-icon",9),C("click",function(){return o.hidePassword3.set(!o.hidePassword3())}),l(),S(37,ms,3,3,"mat-error"),S(38,gs,3,3,"mat-error"),l()()()),n&2){let a,c,m,_,v,I,K,R;r(4),x(g(5,21,"GENERAL.PASSWORD")),r(3),u("disabled",o.profilePasswordForm.invali
1d),r(3),x(g(11,23,"GENERAL.APPLY")),r(2),u("formGroup",o.profilePasswordForm),r(3),x(g(16,25,"ACCOUNT_SETTINGS.OLD_PASSWORD")),r(2),u("type",o.hidePassword1()?"password":"text"),r(),u("name",o.hidePassword1()?"visibility_off":"visibility"),r(),y((a=o.profilePasswordForm.get("old_password").errors)!=null&&a.required?19:-1),r(),y((c=o.profilePasswordForm.get("old_password").errors)!=null&&c.sameWithOld?20:-1),r(3),x(g(24,27,"ACCOUNT_SETTINGS.NEW_PASSWORD")),r(2),u("type",o.hidePassword2()?"password":"text"),r(),u("name",o.hidePassword2()?"visibility_off":"visibility"),r(),y((m=o.profilePasswordForm.get("password").errors)!=null&&m.required?27:-1),r(),y((_=o.profilePasswordForm.get("password").errors)!=null&&_.minlength?28:-1),r(),y((v=o.profilePasswordForm.get("password").errors)!=null&&v.maxlength?29:-1),r(),y((I=o.profilePasswordForm.get("password").errors)!=null&&I.sameWithOld?30:-1),r(3),x(g(34,29,"ACCOUNT_SETTINGS.CONFIRM_NEW_PASSWORD")),r(2),u("type",o.hidePassword3()?"password":"text"),r(),u("name",o.hidePassword3()?"visibility_off":"visibility"),r(),y((K=o.profilePasswordForm.get("password_confirm").errors)!=null&&K.notSame?37:-1),r(),y((R=o.profilePasswordForm.get("password_confirm").errors)!=null&&R.required?38:-1)}},dependencies:[W,De,Ae,xe,Ne,nt,et,tt,U,$,fe,ue,Se,eo,no,pt,Jt,D],styles:["@media all and (width <= 991px){#profile-password[_ngcontent-%COMP%]{display:flex;flex-direction:column-reverse}#profile-password[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], #profile-password[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{min-width:100%;display:flex;justify-content:flex-end}}@media all and (width <= 991px) and (width <= 480px){#profile-password[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]   .tab-actions[_ngcontent-%COMP%], #profile-password[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]   button[_ngcontent-%COMP%], #profile-password[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]   .tab-actions[_ngcontent-%COMP%], #profile-password[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{min-width:100%}#profile-password[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]   button[_ngcontent-%COMP%], #profile-password[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{justify-content:center}}#profile-password[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-top:12px}@media all and (width <= 991px){#profile-password[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]{margin-top:0;margin-bottom:12px}}#profile-password[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{max-width:420px;width:100%}@media all and (width <= 991px){#profile-password[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{max-width:inherit;min-width:100%}}",".tab-container[_ngcontent-%COMP%]{max-width:656px;margin:0 auto;padding:16px}@media all and (width <= 991px){.tab-container[_ngcontent-%COMP%]{padding:0}}.page-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.title[_ngcontent-%COMP%]{margin:0;font-family:geist,sans-serif;font-weight:600;font-size:24px;line-height:28px;color:#191d23;display:flex;align-items:center;justify-content:space-between;min-height:32px}@media all and (width <= 991px){.title[_ngcontent-%COMP%]{min-height:inherit}.title[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:none}}.subtitle[_ngcontent-%COMP%]{margin:0;font-family:geist,sans-serif;font-size:14px;font-weight:400;line-height:16px;color:#77808c}.docs-link[_ngcontent-%COMP%]{color:#105670;text-decoration:none}.docs-link[_ngcontent-%COMP%]:hover{text-decoration:underline}.tab-description[_ngcontent-%COMP%]{margin-top:12px;margin-bottom:0;min-width:100%}.btn-primary[_ngcontent-%COMP%]{padding:0 18px;height:36px;display:flex;align-items:center;font-weight:500;font-size:14px;line-height:20px;border-radius:12px}h2[_ngcontent-%COMP%]{margin:0;color:var(--primaryText-color);font-weight:500!important;font-size:18px!important;line-height:28px!important;display:flex;align-items:center;justify-content:space-between;min-height:32px}@media all and (width <= 991px){h2[_ngcontent-%COMP%]{min-height:inherit;line-height:0!important}h2[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:none}}h4[_ngcontent-%COMP%]{font-weight:400!important;font-size:16px!important;line-height:24px!important;margin:0;color:var(--primaryText-color)}"],changeDetection:0})}}return t})()});function us(t,i){if(t&1&&(Je(0,"span"),p(1),Ze()),t&2){let e=f();r(),x(e.timer())}}function fs(t,i){t&1&&(Je(0,"span"),p(1),d(2,"translate"),Ze()),t&2&&(r(),x(g(2,1,"AUTHENTICATION.SET_PASSWORD")))}var Ko,Ho=z(()=>{w();ce();Te();ge();so();he();Tt();w();Z();Ko=(()=>{class t{constructor(){this.passwordService=h(Yt),this.global=h(j),this.notificationService=h(V),this.destroyRef=h(k),this.isDisabled=O(!1),this.timer=O("")}sendResetLink(){this.startTimer(),this.passwordService.sendResetLink(this.global.current_loggedin_user.email).pipe(E(this.destroyRef)).subscribe({next:()=>{this.notificationService.translatedSuccess("NOTIFICATIONS.CHECK_YOUR_EMAIL_FOR_PASSWORD_RESET_LINK")},error:()=>{this.notificationService.translatedError("NOTIFICATIONS.SOMETHING_WENT_WRONG_PASSWORD_RESET_LINK_NOT_SENT"),this.isDisabled.set(!1)}})}startTimer(){this.timer.set("00:59"),this.isDisabled.set(!0),si(1e3).pipe(li(59),E(this.destroyRef)).subscribe(n=>{let o=59-n;this.timer.set(`00:${o<10?"0":""}${o}`),n===58&&this.isDisabled.set(!1)})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=A({type:t,selectors:[["exp-social-password-reset"]],decls:12,vars:8,consts:[[1,"tab-container"],[1,"page-header"],[1,"title"],[1,"subtitle"],[1,"btn-primary","mt-12",3,"click","disabled"]],template:function(n,o){n&1&&(Je(0,"div",0)(1,"header",1)(2,"h5",2)(3,"span"),p(4),d(5,"translate"),Ze()(),Je(6,"p",3),p(7),d(8,"translate"),Ze()(),Je(9,"button",4),Si("click",function(){return o.sendResetLink()}),S(10,us,2,1,"span")(11,fs,3,3,"span"),Ze()()),n&2&&(r(4),x(g(5,4,"AUTHENTICATION.PASSWORD_RESET.TITLE")),r(3),M(" ",g(8,6,"AUTHENTICATION.PASSWORD_RESET.DESCRIPTION")," "),r(2),Ti("disabled",o.isDisabled()),r(),y(o.isDisabled()?10:11))},dependencies:[W,D],styles:[".tab-container[_ngcontent-%COMP%]{max-width:656px;margin:0 auto;padding:16px}@media all and (width <= 991px){.tab-container[_ngcontent-%COMP%]{padding:0}}.page-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.title[_ngcontent-%COMP%]{margin:0;font-family:geist,sans-serif;font-weight:600;font-size:24px;line-height:28px;color:#191d23;display:flex;align-items:center;justify-content:space-between;min-height:32px}@media all and (width <= 991px){.title[_ngcontent-%COMP%]{min-height:inherit}.title[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:none}}.subtitle[_ngcontent-%COMP%]{margin:0;font-family:geist,sans-serif;font-size:14px;font-weight:400;line-height:16px;
1color:#77808c}.docs-link[_ngcontent-%COMP%]{color:#105670;text-decoration:none}.docs-link[_ngcontent-%COMP%]:hover{text-decoration:underline}.tab-description[_ngcontent-%COMP%]{margin-top:12px;margin-bottom:0;min-width:100%}.btn-primary[_ngcontent-%COMP%]{padding:0 18px;height:36px;display:flex;align-items:center;font-weight:500;font-size:14px;line-height:20px;border-radius:12px}h2[_ngcontent-%COMP%]{margin:0;color:var(--primaryText-color);font-weight:500!important;font-size:18px!important;line-height:28px!important;display:flex;align-items:center;justify-content:space-between;min-height:32px}@media all and (width <= 991px){h2[_ngcontent-%COMP%]{min-height:inherit;line-height:0!important}h2[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:none}}h4[_ngcontent-%COMP%]{font-weight:400!important;font-size:16px!important;line-height:24px!important;margin:0;color:var(--primaryText-color)}"],changeDetection:0})}}return t})()});function Cs(t,i){t&1&&(s(0,"p",4),p(1),d(2,"translate"),l()),t&2&&(r(),M(" ",g(2,1,"ACCOUNT_SETTINGS.TAX")," "))}function xs(t,i){if(t&1){let e=N();s(0,"mat-form-field",5)(1,"mat-label"),p(2),d(3,"translate"),l(),s(4,"input",7),C("input",function(o){b(e);let a=f(2);return P(a.setVat(o.target))}),l()()}t&2&&(r(2),x(g(3,1,"ACCOUNT_SETTINGS.VAT_NUMBER")))}function Ts(t,i){t&1&&(s(0,"div",6),p(1),d(2,"translate"),l()),t&2&&(r(),M(" ",g(2,1,"ACCOUNT_SETTINGS.OPTIONAL")," "))}function Ss(t,i){t&1&&(s(0,"mat-form-field",5)(1,"mat-label"),p(2),d(3,"translate"),l(),T(4,"input",17),l()),t&2&&(r(2),x(g(3,1,"ACCOUNT_SETTINGS.COMPANY_NAME")))}function ys(t,i){if(t&1&&T(0,"exp-select-autocompleate",8,1),t&2){let e=f(3);u("labelKey","ACCOUNT_SETTINGS.STATE")("propValue","name")("data",e.states())}}function Os(t,i){t&1&&(s(0,"div",9),p(1),d(2,"translate"),l()),t&2&&(r(),M(" ",g(2,1,"ACCOUNT_SETTINGS.OPTIONAL")," "))}function Ms(t,i){if(t&1&&(S(0,Ss,5,3,"mat-form-field",5),S(1,ys,2,3,"exp-select-autocompleate",8),S(2,Os,3,3,"div",9),s(3,"mat-form-field",5)(4,"mat-label"),p(5),d(6,"translate"),l(),T(7,"input",10),l(),s(8,"mat-form-field",5)(9,"mat-label"),p(10),d(11,"translate"),l(),T(12,"input",11),l(),s(13,"mat-form-field",5)(14,"mat-label"),p(15),d(16,"translate"),l(),T(17,"input",12),l(),s(18,"mat-form-field",5)(19,"mat-label"),p(20),d(21,"translate"),l(),T(22,"input",13),l(),s(23,"button",14),T(24,"exp-icon",15),s(25,"span",16),p(26),d(27,"translate"),l()()),t&2){let e=f(2);y(e.userInfoForm.get("private_person").value?-1:0),r(),y(!e.userInfoForm.get("private_person").value&&e.selectedCountry().id==="US"?1:-1),r(),y(e.selectedCountry().vat?-1:2),r(3),x(g(6,9,"ACCOUNT_SETTINGS.CITY")),r(5),x(g(11,11,"ACCOUNT_SETTINGS.STREET")),r(5),x(g(16,13,"ACCOUNT_SETTINGS.HOUSE_NR")),r(5),x(g(21,15,"ACCOUNT_SETTINGS.ZIP_CODE")),r(3),u("disabled",!e.userInfoForm.valid),r(3),x(g(27,17,"GENERAL.SUBMIT"))}}function bs(t,i){if(t&1&&(S(0,Cs,3,3,"p",4),S(1,xs,5,3,"mat-form-field",5),S(2,Ts,3,3,"div",6),S(3,Ms,28,19)),t&2){let e=f();y(e.selectedCountry().vat&&(e.userInfoForm.get("private_person").value&&e.isEU()||e.isResellerNL()&&e.isNL()||e.isResellerLT()&&e.isLT())?0:-1),r(),y(e.isEU()&&!e.userInfoForm.get("private_person").value?1:-1),r(),y(e.selectedCountry().vat&&e.userInfoForm.get("private_person").value?2:-1),r(),y(!e.selectedCountry().vat||e.selectedCountry().vat&&e.userInfoForm.get("private_person").value||e.vatIsValid()&&e.userInfoForm.get("vat").value?3:-1)}}var _s,hs,jo,$o=z(()=>{w();ke();ce();Zi();ge();Vr();Te();Ye();Xi();he();ye();Jr();w();ke();Re();lt();Yr();Z();_s=["countrySelector"],hs=["stateSelector"];jo=(()=>{class t{constructor(){this.global=h(j),this.userService=h(jt),this.notificationService=h(V),this.staticsService=h(Wi),this.subscriptionService=h($t),this.changeDetector=h(Ei),this.destroyRef=h(k),this.autocompleteCountry=Ot.required("countrySelector"),this.autocompleteState=Ot("stateSelector"),this.updateAccountSettings=te(),this.selectedCountry=O({vat:!1,name:"",id:""}),this.countries=O([]),this.states=O([]),this.vatIsValid=O(!1),this.isResellerNL=O(!1),this.isResellerLT=O(!1),this.isEU=O(!1),this.isNL=O(!1),this.isLT=O(!1)}ngOnInit(){this.userID=this.global.current_loggedin_user.id,this.reseller=this.global.reseller,this.initUserInfoForm()}setCountry(e){this.userInfoForm.reset(),this.selectedCountry.set(e),this.userInfoForm.get("private_person").setValue(!1),this.userInfoForm.get("country").setValue(e.id),this.setFormValidation(),this.initStates(this.userInfoForm.get("private_person").value)}setVat(e){this.staticsService.checkValidVAT(e.value.toString(),this.userInfoForm.get("country").value).pipe($e(1e3),E(this.destroyRef)).subscribe({next:n=>{this.vatIsValid.set(!0),this.userInfoForm.get("company_name").setValue(n.company_name),this.setFormValidation()},error:()=>{this.userInfoForm.get("vat").setErrors({incorrect:!0}),this.vatIsValid.set(!1)}})}onSubmit(){this.userInfoForm.valid?this.buildUserInfoStripe(this.userInfoForm.value):this.notificationService.translatedError("error","NOTIFICATIONS.SOMETHING_WENT_WRONG")}ngAfterViewInit(){this.initCountries()}initUserInfoForm(){this.userInfoForm=new Xe({private_person:new ie(!1,ae.required),company_name:new ie(null,ae.required),city:new ie,street:new ie,house_nr:new ie,zip:new ie,vat:new ie})}initCountries(){this.staticsService.getCountries().pipe(E(this.destroyRef)).subscribe(e=>{this.countries.set(Object.keys(e).map(n=>({vat:e[n][1],name:e[n][0],id:n})))}),this.userInfoForm.addControl("country",this.autocompleteCountry().control),this.userInfoForm.get("country").setValidators([ae.required])}initStates(e){this.selectedCountry().id==="US"&&!e?(this.changeDetector.detectChanges(),this.staticsService.getStates().pipe(E(this.destroyRef)).subscribe(n=>{this.states.set(Object.keys(n).map(o=>({name:n[o],id:o})))}),this.userInfoForm.addControl("state",this.autocompleteState().control),this.userInfoForm.get("state").setValidators([ae.required])):(this.selectedCountry().id!=="US"||e)&&this.userInfoForm.removeControl("state")}setFormValidation(){this.isResellerNL.set(this.reseller.country==="NL"),this.isResellerLT.set(this.reseller.country==="LT"),this.isEU.set(this.selectedCountry().vat===!0),this.isNL.set(this.selectedCountry().id==="NL"),this.isLT.set(this.selectedCountry().id==="LT"),this.selectedCountry().vat&&!this.userInfoForm.get("private_person").value?Object.keys(this.userInfoForm.controls).forEac
1h(e=>{this.userInfoForm.controls[e].setValidators([ae.required])}):(Object.keys(this.userInfoForm.controls).forEach(e=>{this.userInfoForm.controls[e].clearValidators()}),this.userInfoForm.get("private_person").value||(this.userInfoForm.get("company_name")&&this.userInfoForm.get("company_name").setValidators([ae.required]),this.userInfoForm.get("state")&&this.selectedCountry().id==="US"&&this.userInfoForm.get("state").setValidators([ae.required])))}buildUserInfoStripe(e){let n={private_person:e.private_person,address:{country:e.country,city:e.city?e.city:"-",state:e.state?e.state:null,postal_code:e.zip?e.zip:"-",line1:(e.city?e.city:"-")+", "+(e.street?e.street:"-")+" "+(e.house_nr?e.house_nr:"-")}},o={city:e.city?e.city:"-",state:e.state?e.state:null,company_name:e.company_name?e.company_name:"-",street:e.street?e.street:"-",house_nr:e.house_nr?e.street:"-",zip_code:e.zip?e.zip:"-"};e.private_person||(e.vat!==null&&(o.tax_type="eu_vat",o.tax_id=e.vat),n.company=o),this.userService.patchUserInformation(n,this.userID).pipe(E(this.destroyRef)).subscribe({next:a=>{this.notificationService.translatedSuccess("NOTIFICATIONS.SUCCESSFULLY_ADDED"),this.updateAccountSettings.emit(!0),this.subscriptionService.stripeInfoUpdated.next(a)},error:a=>{a.error[0]?this.notificationService.translatedError(a.error[0]):this.notificationService.translatedError("NOTIFICATIONS.SOMETHING_WENT_WRONG")}})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=A({type:t,selectors:[["exp-user-info-address"]],viewQuery:function(n,o){n&1&&(St(o.autocompleteCountry,_s,5),St(o.autocompleteState,hs,5)),n&2&&Bt(2)},outputs:{updateAccountSettings:"updateAccountSettings"},decls:4,vars:5,consts:[["countrySelector",""],["stateSelector",""],[3,"submit","formGroup"],[3,"valueSelected","labelKey","propValue","data"],[1,"message-box","error"],["appearance","outline",1,"form-field"],[1,"message-box","warning"],["matInput","","formControlName","vat","autocomplete","off","required","",3,"input"],[1,"w-100-p",3,"labelKey","propValue","data"],[1,"field-warning"],["formControlName","city","autocomplete","off","matInput","","required",""],["formControlName","street","autocomplete","off","matInput","","required",""],["formControlName","house_nr","autocomplete","off","matInput","","required",""],["formControlName","zip","autocomplete","off","matInput","","required",""],["type","submit",1,"btn-primary",3,"disabled"],["name","send"],[1,"btn-text"],["formControlName","company_name","autocomplete","off","matInput","","required",""]],template:function(n,o){if(n&1){let a=N();s(0,"form",2),C("submit",function(){return b(a),P(o.onSubmit())}),s(1,"exp-select-autocompleate",3,0),C("valueSelected",function(m){return b(a),P(o.setCountry(m))}),l(),S(3,bs,4,4),l()}n&2&&(u("formGroup",o.userInfoForm),r(),u("labelKey","ACCOUNT_SETTINGS.COUNTRY")("propValue","name")("data",o.countries()),r(2),y(o.selectedCountry().id.length?3:-1))},dependencies:[W,De,Ae,xe,Ne,nt,et,tt,U,$,fe,ue,Se,Eo,Po,D],styles:["form[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-top:12px;align-items:flex-start}form[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%], form[_ngcontent-%COMP%]   exp-select-autocompleate[_ngcontent-%COMP%]{display:block;max-width:420px;width:100%}@media all and (width <= 991px){form[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%], form[_ngcontent-%COMP%]   exp-select-autocompleate[_ngcontent-%COMP%]{max-width:inherit;min-width:100%}}.btn-primary[_ngcontent-%COMP%]{margin-right:auto;margin-top:12px}@media all and (width <= 991px){.btn-primary[_ngcontent-%COMP%]{margin-right:inherit;margin-left:auto}}@media all and (width <= 480px){.btn-primary[_ngcontent-%COMP%]{min-width:100%;justify-content:center}}.field-warning[_ngcontent-%COMP%]{margin:12px 0;max-width:420px;width:100%}@media all and (width <= 991px){.field-warning[_ngcontent-%COMP%]{max-width:inherit;min-width:100%}}"],changeDetection:0})}}return t})()});function Ps(t,i){t&1&&(s(0,"span"),p(1),d(2,"translate"),l()),t&2&&(r(),x(g(2,1,"ACCOUNT_SETTINGS.USER_INFORMATION")))}function Es(t,i){t&1&&(s(0,"span"),p(1),d(2,"translate"),l()),t&2&&(r(),x(g(2,1,"ACCOUNT_SETTINGS.ADDRESS")))}function ws(t,i){if(t&1){let e=N();s(0,"div",7)(1,"mat-slide-toggle",8),C("ngModelChange",function(o){b(e);let a=f();return P(a.isCompany.set(o))}),s(2,"span",9),p(3),d(4,"translate"),l()()()}if(t&2){let e=f();r(),u("ngModel",e.isCompany()),r(),pe("secondary-text",!e.userStripe().private_person),r(),x(g(4,4,"ACCOUNT_SETTINGS.COMPANY"))}}function vs(t,i){if(t&1){let e=N();s(0,"p",10),p(1),d(2,"translate"),l(),s(3,"form")(4,"mat-form-field",11)(5,"mat-label"),p(6),d(7,"translate"),l(),s(8,"input",12,0),C("input",function(o){b(e);let a=f();return P(a.updateCity(o.target.value))}),l()(),s(10,"mat-form-field",11)(11,"mat-label"),p(12),d(13,"translate"),l(),s(14,"input",12,1),C("input",function(o){b(e);let a=f();return P(a.updateStreet(o.target.value))}),l()(),s(16,"mat-form-field",11)(17,"mat-label"),p(18),d(19,"translate"),l(),s(20,"input",12,2),C("input",function(o){b(e);let a=f();return P(a.updateHouseNumber(o.target.value))}),l()(),s(22,"mat-form-field",11)(23,"mat-label"),p(24),d(25,"translate"),l(),s(26,"input",12,3),C("input",function(o){b(e);let a=f();return P(a.updateZipCode(o.target.value))}),l()(),s(28,"button",13),C("click",function(){b(e);let o=f();return P(o.changeAddress())}),T(29,"exp-icon",14),s(30,"span",15),p(31),d(32,"translate"),l()()()}if(t&2){let e=G(9),n=G(15),o=G(21),a=G(27),c=f();r(),M(" ",g(2,11,"ACCOUNT_SETTINGS.EMPTY_ERROR")," "),r(5),x(g(7,13,"ACCOUNT_SETTINGS.CITY")),r(2),u("value",c.userStripe().company?c.userStripe().company.city:c.userStripe().address.city),r(4),x(g(13,15,"ACCOUNT_SETTINGS.STREET")),r(2),u("value",c.street()),r(4),x(g(19,17,"ACCOUNT_SETTINGS.HOUSE_NR")),r(2),u("value",c.house_number()),r(4),x(g(25,19,"ACCOUNT_SETTINGS.ZIP_CODE")),r(2),u("value",c.userStripe().company?c.userStripe().company.zip_code:c.userStripe().address.postal_code),r(2),u("disabled",!a.value.length||!o.value.length||!n.value.length||!e.value.length),r(3),x(g(32,21,"GENERAL.APPLY"))}}function Is(t,i){if(t&1){let e=N();s(0,"exp-user-info-address",16),C("updateAccountSettings",function(){b(e);let o=f();return P(o.profileEmit.emit(o.account()))}),l()}}var Yo,Jo=z(()=>{w();ce();Wt();ge();he();ye();$o();w();ke();Re();lt();wn();Z();Yo=(()=>{class t{constructor(){this.accountService=h(Le),this.notificationService=h(V),this.destroyRef=h(k),this.account=q.required(),this.userStripe=q.required(),this.profileEmit=te(),this.street=O(""),this.house_number=O(""),this.isCompany=O(!1)}ngOnInit(){this.initProfileAddress()}changeAddress(){let e=this.userStripe(),n=e.company?.city?e.company?.city:e.address.city;e.address.line1=n+", "+this.street()+" "+this.house_number(),this.isCompany()&&(e.private_person=this.isCompany()),this.accountService.updateUserStripeInformation(this.account().id,e).pipe(E(this.destroyRef)).subscribe(o=>
1{this.account().stripe=o.stripe,this.notificationService.translatedSuccess("ACCOUNT_SETTINGS.ADDRESS_CHANGED_SUCCESSFULLY")},o=>{this.notificationService.translatedError("NOTIFICATIONS.SOMETHING_WENT_WRONG"),this.notificationService.translatedError(o.error.stripe.non_field_errors[0])})}updateCity(e){e.trim().length||(e="-");let n=this.userStripe();n.company&&(n.company.city=e),n.address&&(n.address.city=e)}updateStreet(e){e.trim().length||(e="-");let n=this.userStripe();n.company&&(n.company.street=e),this.street.set(e)}updateHouseNumber(e){e.trim().length||(e="-");let n=this.userStripe();n.company&&(n.company.house_nr=e),this.house_number.set(e)}updateZipCode(e){e.trim().length||(e="-");let n=this.userStripe();n.company&&(n.company.zip_code=e),n.address&&(n.address.postal_code=e)}initProfileAddress(){let e=this.userStripe();if(e.company)this.street.set(e.company.street),this.house_number.set(e.company.house_nr),this.setCompanyValue();else{this.house_number.set(e.address.line1.substring(e.address.line1.lastIndexOf(" ")+1));let n=e.address.line1.substring(e.address.line1.lastIndexOf(",")+1);this.street.set(n.substring(0,n.lastIndexOf(" ")))}}setCompanyValue(){let e=this.userStripe();e.company.city=e.address.city,e.company.company_name=e.company.company_name?e.company.company_name:"-",e.company.state=e.company.state?e.company.state:null,e.company.zip_code=e.address.postal_code,e.company.house_nr=this.house_number(),e.company.street=this.street()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=A({type:t,selectors:[["exp-profile-address"]],inputs:{account:[1,"account"],userStripe:[1,"userStripe"]},outputs:{profileEmit:"profileEmit"},decls:8,vars:5,consts:[["cityField",""],["streetField",""],["houseNumberField",""],["zipCodeField",""],["id","profile-address",1,"tab-container"],[1,"page-header"],[1,"title"],[1,"tab-actions"],[3,"ngModelChange","ngModel"],[1,"s15","toggle-label"],[1,"tab-description","secondary-text"],["appearance","outline",1,"form-field"],["matInput","","required","",3,"input","value"],[1,"btn-primary","mt-12",3,"click","disabled"],["name","save"],[1,"btn-text"],[3,"updateAccountSettings"]],template:function(n,o){n&1&&(s(0,"div",4)(1,"header",5)(2,"h5",6),S(3,Ps,3,3,"span")(4,Es,3,3,"span"),S(5,ws,5,6,"div",7),l()(),S(6,vs,33,23)(7,Is,1,0,"exp-user-info-address"),l()),n&2&&(pe("isNotPrivatePerson",!o.userStripe().private_person),r(3),y(o.isCompany()?3:4),r(2),y(o.userStripe().private_person?5:-1),r(),y(o.isCompany()?7:6))},dependencies:[W,De,xe,Ne,qt,Bi,U,$,fe,ue,Se,ct,jo,D],styles:["#profile-address[_ngcontent-%COMP%]   .toggle-label[_ngcontent-%COMP%]{position:relative;top:-3px}#profile-address[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-top:12px;align-items:flex-start}@media all and (width <= 991px){#profile-address[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]{margin-bottom:12px}}#profile-address[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{max-width:420px;width:100%}@media all and (width <= 991px){#profile-address[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{max-width:inherit;min-width:100%}}@media all and (width <= 480px){#profile-address[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{justify-content:center;max-width:inherit;min-width:100%}}@media all and (width <= 991px){#profile-address.isNotPrivatePerson[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]{margin-top:0}}@media all and (width <= 991px){#profile-address.isNotPrivatePerson[_ngcontent-%COMP%]   .tab-description[_ngcontent-%COMP%]{margin-top:0}}",".tab-container[_ngcontent-%COMP%]{max-width:656px;margin:0 auto;padding:16px}@media all and (width <= 991px){.tab-container[_ngcontent-%COMP%]{padding:0}}.page-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.title[_ngcontent-%COMP%]{margin:0;font-family:geist,sans-serif;font-weight:600;font-size:24px;line-height:28px;color:#191d23;display:flex;align-items:center;justify-content:space-between;min-height:32px}@media all and (width <= 991px){.title[_ngcontent-%COMP%]{min-height:inherit}.title[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:none}}.subtitle[_ngcontent-%COMP%]{margin:0;font-family:geist,sans-serif;font-size:14px;font-weight:400;line-height:16px;
1color:#77808c}.docs-link[_ngcontent-%COMP%]{color:#105670;text-decoration:none}.docs-link[_ngcontent-%COMP%]:hover{text-decoration:underline}.tab-description[_ngcontent-%COMP%]{margin-top:12px;margin-bottom:0;min-width:100%}.btn-primary[_ngcontent-%COMP%]{padding:0 18px;height:36px;display:flex;align-items:center;font-weight:500;font-size:14px;line-height:20px;border-radius:12px}h2[_ngcontent-%COMP%]{margin:0;color:var(--primaryText-color);font-weight:500!important;font-size:18px!important;line-height:28px!important;display:flex;align-items:center;justify-content:space-between;min-height:32px}@media all and (width <= 991px){h2[_ngcontent-%COMP%]{min-height:inherit;line-height:0!important}h2[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:none}}h4[_ngcontent-%COMP%]{font-weight:400!important;font-size:16px!important;line-height:24px!important;margin:0;color:var(--primaryText-color)}"],changeDetection:0})}}return t})()});function ks(t,i){if(t&1){let e=N();s(0,"div",17)(1,"mat-slide-toggle",5),C("ngModelChange",function(o){let a=b(e).$implicit,c=f(3);return P(c.setDay(a.key,o))}),l(),s(2,"span",18),p(3),d(4,"translate"),l()()}if(t&2){let e=i.$implicit,n=f(3);r(),u("ngModel",n.settings().disconnected_notification_days[e.key]),r(2),x(g(4,2,n.dayDictionary[e.key.toString()]))}}function Ls(t,i){if(t&1){let e=N();s(0,"div",12)(1,"exp-timezone-picker",13),C("timezoneChange",function(o){b(e);let a=f(2);return P(a.setField("timezone",o))}),l(),s(2,"mat-form-field",14)(3,"mat-label"),p(4),d(5,"translate"),l(),s(6,"input",15),C("ngModelChange",function(o){b(e);let a=f(2);return P(a.setField("disconnected_notifications_send_time",o))}),l()()(),s(7,"div",16)(8,"h4"),p(9),d(10,"translate"),l(),X(11,ks,5,4,"div",17,Ds),d(13,"keyvalue"),l()}if(t&2){let e=f(2);r(),u("timezone",e.settings().timezone),r(3),x(g(5,4,"CHAT_COMPONENT.SCHEDULE_TIME.TIME")),r(2),u("ngModel",e.settings().disconnected_notifications_send_time),r(3),x(g(10,6,"ACCOUNT_SETTINGS.NOTIFICATIONS.DAYS")),r(2),ee(g(13,8,e.settings().disconnected_notification_days))}}function Rs(t,i){if(t&1){let e=N();s(0,"div",1)(1,"h5",3)(2,"span"),p(3),d(4,"translate"),l(),s(5,"div",4)(6,"mat-slide-toggle",9),C("ngModelChange",function(o){b(e);let a=f();return P(a.setField("disconnected_notifications",o))})("change",function(){b(e);let o=f();return P(o.apply())}),l(),s(7,"button",10),C("click",function(){b(e);let o=f();return P(o.apply())}),T(8,"exp-icon",7),s(9,"span",8),p(10),d(11,"translate"),l()()()(),S(12,Ls,14,10),T(13,"mat-divider",11),l()}if(t&2){let e=f();r(3),x(g(4,5,"ACCOUNT_SETTINGS.NOTIFICATIONS.DISCONNECTED_ACCOUNTS_NOTIFICATIONS")),r(3),u("ngModel",!!e.settings().disconnected_notifications),r(),u("disabled",!e.settings().disconnected_notifications),r(3),x(g(11,7,"GENERAL.APPLY")),r(2),y(e.settings().disconnected_notifications?12:-1)}}var Ds,Zo,Xo=z(()=>{w();Te();he();ye();ts();w();ke();Re();lt();wn();ao();es();Vt();Z();Ds=(t,i)=>i.key;Zo=(()=>{class t{constructor(){this.global=h(j),this.account=q.required(),this.profileEmit=te(),this.settings=Gt(()=>structuredClone(this.account())),this.isDisconnectedNotifications=O(!1),this.dayDictionary={1:"DAYS.MONDAY",2:"DAYS.TUESDAY",3:"DAYS.WEDNESDAY",4:"DAYS.THURSDAY",5:"DAYS.FRIDAY",6:"DAYS.SATURDAY",7:"DAYS.SUNDAY"}}ngOnInit(){this.isDisconnectedNotifications.set(this.global.reseller.disconnected_notifications)}setField(e,n){this.settings.update(o=>se(re({},o),{[e]:n}))}setDay(e,n){this.settings.update(o=>se(re({},o),{disconnected_notification_days:se(re({},o.disconnected_notification_days),{[e]:n})}))}apply(){this.profileEmit.emit(this.settings())}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=A({type:t,selectors:[["exp-account-notifications"]],inputs:{account:[1,"account"]},outputs:{profileEmit:"profileEmit"},decls:14,vars:8,consts:[["id","notifications",1,"tab-container"],["id","disconnected-notifications"],["id","account-stats-notification"],[1,"title"],[1,"tab-actions"],[3,"ngModelChange","ngModel"],[1,"btn-primary","ml-12",3,"click"],["name","save"],[1,"btn-text"],[3,"ngModelChange","change","ngModel"],[1,"btn-primary","ml-12",3,"click","disabled"],[1,"my-16"],[1,"time-fields-wrapper","mt-12"],[3,"timezoneChange","timezone"],["appearance","outline",1,"form-field","input-time"],["type","time","matInput","",3,"ngModelChange","ngModel"],[1,"notifications-days"],[1,"day-item"],[1,"day-label"]],template:function(n,o){n&1&&(s(0,"div",0),S(1,Rs,14,9,"div",1),s(2,"div",2)(3,"h5",3)(4,"span"),p(5),d(6,"translate"),l(),s(7,"div",4)(8,"mat-slide-toggle",5),C("ngModelChange",function(c){return o.setField("weekly_stats_notifications",c)}),l(),s(9,"button",6),C("click",function(){return o.apply()}),T(10,"exp-icon",7),s(11,"span",8),p(12),d(13,"translate"),l()()()()()()),n&2&&(r(),y(o.isDisconnectedNotifications()?1:-1),r(4),M(" ",g(6,4,"ACCOUNT_SETTINGS.NOTIFICATIONS.ACCOUNT_WEEKLY_STATS_NOTIFICATIONS")," "),r(3),u("ngModel",o.settings().weekly_stats_notifications),r(4),x(g(13,6,"GENERAL.APPLY")))},dependencies:[W,Ae,xe,qt,U,$,fe,ue,Se,ct,Qt,Go,Bo,Ai,D],styles:["#notifications[_ngcontent-%COMP%]{color:var(--primaryText-color)}#notifications[_ngcontent-%COMP%]   .tab-actions[_ngcontent-%COMP%]{display:flex;align-items:center}#notifications[_ngcontent-%COMP%]   #disconnected-notifications[_ngcontent-%COMP%], #notifications[_ngcontent-%COMP%]   #account-stats-notification[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:relative}#notifications[_ngcontent-%COMP%]   #disconnected-notifications[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%], #notifications[_ngcontent-%COMP%]   #account-stats-notification[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}#notifications[_ngcontent-%COMP%]   #disconnected-notifications[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%] > span[_ngcontent-%COMP%], #notifications[_ngcontent-%COMP%]   #account-stats-notification[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{line-height:20px!important;font-size:16px!important}@media all and (width <= 991px){#notifications[_ngcontent-%COMP%]   #disconnected-notifications[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%] > span[_ngcontent-%COMP%], #notifications[_ngcontent-%COMP%]   #account-stats-notification[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:block!important}}@media all and (width <= 480px){#notifications[_ngcontent-%COMP%]   #disconnected-notifications[_ngcontent-%COMP%], #notifications[_ngcontent-%COMP%]   #account-stats-notification[_ngcontent-%COMP%]{padding-bottom:45px}#notifications[_ngcontent-%COMP%]   #disconnected-notifications[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%], #notifications[_ngcontent-%COMP%]   #account-stats-notification[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{z-index:1;position:absolute;width:100%;left:0;bottom:0;min-width:100%;justify-content:center;margin-left:0!important}}@media all and (width <= 480px){#notifications[_ngcontent-%COMP%]   #disconnected-notifications[_ngcontent-%COMP%]{margin-bottom:18px}#notifications[_ngcontent-%COMP%]   #disconnected-notifications[_ngcontent-%COMP%]   mat-divider[_ngcontent-%COMP%]{display:none}}#notifications[_ngcontent-%COMP%]   .time-fields-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}#notifications[_ngcontent-%COMP%]   .time-fields-wrapper[_ngcontent-%COMP%]   exp-timezone-picker[_ngcontent-%COMP%]{max-width:59%;min-width:59%}#notifications[_ngcontent-%COMP%]   .time-fields-wrapper[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]{max-width:39%;min-width:39%}@media all and (width <= 580px){#notifications[_ngcontent-%COMP%]   .time-fields-wrapper[_ngcontent-%COMP%]{flex-direction:column}#notifications[_ngcontent-%COMP%]   .time-fields-wrapper[_ngcontent-%COMP%]   exp-timezone-picker[_ngcontent-%COMP%], #notifications[_ngcontent-%COMP%]   .time-fields-wrapper[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]{max-width:100%;min-width:100%}}#notifications[_ngcontent-%COMP%]   .notifications-days[_ngcontent-%COMP%]{display:flex;flex-direction:column}#notifications[_ngcontent-%COMP%]   .notifications-days[_ngcontent-%COMP%]   h4[_ng
1content-%COMP%]{margin-top:0;margin-bottom:8px;color:var(--primaryText-color)}#notifications[_ngcontent-%COMP%]   .notifications-days[_ngcontent-%COMP%]   .day-item[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:8px}#notifications[_ngcontent-%COMP%]   .notifications-days[_ngcontent-%COMP%]   .day-item[_ngcontent-%COMP%]   .day-label[_ngcontent-%COMP%]{font-size:16px;margin-left:12px;color:var(--primaryText-color)}",".tab-container[_ngcontent-%COMP%]{max-width:656px;margin:0 auto;padding:16px}@media all and (width <= 991px){.tab-container[_ngcontent-%COMP%]{padding:0}}.page-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.title[_ngcontent-%COMP%]{margin:0;font-family:geist,sans-serif;font-weight:600;font-size:24px;line-height:28px;color:#191d23;display:flex;align-items:center;justify-content:space-between;min-height:32px}@media all and (width <= 991px){.title[_ngcontent-%COMP%]{min-height:inherit}.title[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:none}}.subtitle[_ngcontent-%COMP%]{margin:0;font-family:geist,sans-serif;font-size:14px;font-weight:400;line-height:16px;color:#77808c}.docs-link[_ngcontent-%COMP%]{color:#105670;text-decoration:none}.docs-link[_ngcontent-%COMP%]:hover{text-decoration:underline}.tab-description[_ngcontent-%COMP%]{margin-top:12px;margin-bottom:0;min-width:100%}.btn-primary[_ngcontent-%COMP%]{padding:0 18px;height:36px;display:flex;align-items:center;font-weight:500;font-size:14px;line-height:20px;border-radius:12px}h2[_ngcontent-%COMP%]{margin:0;color:var(--primaryText-color);font-weight:500!important;font-size:18px!important;line-height:28px!important;display:flex;align-items:center;justify-content:space-between;min-height:32px}@media all and (width <= 991px){h2[_ngcontent-%COMP%]{min-height:inherit;line-height:0!important}h2[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:none}}h4[_ngcontent-%COMP%]{font-weight:400!important;font-size:16px!important;line-height:24px!important;margin:0;color:var(--primaryText-color)}"],changeDetection:0})}}return t})()});var wt,ea=z(()=>{wt=class{constructor(i={}){Object.assign(this,i)}}});var sn,An=z(()=>{Gr();ea();Ye();w();Lr();sn=(()=>{class t extends qi{constructor(e){super(e)}verify2FA(e,n){return this.httpPut(`/accounts/totp/${n}/verify/`,{token:e})}get2FA(){return this.httpGetAll("/accounts/totp/",wt)}add2FA(){return this.httpPost("/accounts/totp/",{}).pipe(ai(e=>new wt(e)))}remove2FA(e){return this.httpDelete(`/accounts/totp/${e}`)}static{this.\u0275fac=function(n){return new(n||t)(di(Ni))}}static{this.\u0275prov=pi({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})()});var na=F((lm,ta)=>{ta.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var Ue=F(qe=>{var Nn,Fs=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];qe.getSymbolSize=function(i){if(!i)throw new Error('"version" cannot be null or undefined');if(i<1||i>40)throw new Error('"version" should be in range from 1 to 40');return i*4+17};qe.getSymbolTotalCodewords=function(i){return Fs[i]};qe.getBCHDigit=function(t){let i=0;for(;t!==0;)i++,t>>>=1;return i};qe.setToSJISFunction=function(i){if(typeof i!="function")throw new Error('"toSJISFunc" is not a valid function.');Nn=i};qe.isKanjiModeEnabled=function(){return typeof Nn<"u"};qe.toSJIS=function(i){return Nn(i)}});var ln=F(_e=>{_e.L={bit:1};_e.M={bit:0};_e.Q={bit:3};_e.H={bit:2};function Us(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return _e.L;case"m":case"medium":return _e.M;case"q":case"quartile":return _e.Q;case"h":case"high":return _e.H;default:throw new Error("Unknown EC Level: "+t)}}_e.isValid=function(i){return i&&typeof i.bit<"u"&&i.bit>=0&&i.bit<4};_e.from=function(i,e){if(_e.isValid(i))return i;try{return Us(i)}catch{return e}}});var aa=F((dm,oa)=>{function ia(){this.buffer=[],this.length=0}ia.prototype={get:function(t){let i=Math.floor(t/8);return(this.buffer[i]>>>7-t%8&1)===1},put:function(t,i){for(let e=0;e<i;e++)this.putBit((t>>>i-e-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){let i=Math.floor(this.length/8);this.buffer.length<=i&&this.buffer.push(0),t&&(this.buffer[i]|=128>>>this.length%8),this.length++}};oa.exports=ia});var sa=F((mm,ra)=>{function vt(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}vt.prototype.set=function(t,i,e,n){let o=t*this.size+i;this.data[o]=e,n&&(this.reservedBit[o]=!0)};vt.prototype.get=function(t,i){return this.data[t*this.size+i]};vt.prototype.xor=function(t,i,e){this.data[t*this.size+i]^=e};vt.prototype.isReserved=function(t,i){return this.reservedBit[t*this.size+i]};ra.exports=vt});var la=F(cn=>{var Bs=Ue().getSymbolSize;cn.getRowColCoords=function(i){if(i===1)return[];let e=Math.floor(i/7)+2,n=Bs(i),o=n===145?26:Math.ceil((n-13)/(2*e-2))*2,a=[n-7];for(let c=1;c<e-1;c++)a[c]=a[c-1]-o;return a.push(6),a.reverse()};cn.getPositions=function(i){let e=[],n=cn.getRowColCoords(i),o=n.length;for(let a=0;a<o;a++)for(let c=0;c<o;
1c++)a===0&&c===0||a===0&&c===o-1||a===o-1&&c===0||e.push([n[a],n[c]]);return e}});var da=F(pa=>{var Gs=Ue().getSymbolSize,ca=7;pa.getPositions=function(i){let e=Gs(i);return[[0,0],[e-ca,0],[0,e-ca]]}});var ma=F(B=>{B.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var We={N1:3,N2:3,N3:40,N4:10};B.isValid=function(i){return i!=null&&i!==""&&!isNaN(i)&&i>=0&&i<=7};B.from=function(i){return B.isValid(i)?parseInt(i,10):void 0};B.getPenaltyN1=function(i){let e=i.size,n=0,o=0,a=0,c=null,m=null;for(let _=0;_<e;_++){o=a=0,c=m=null;for(let v=0;v<e;v++){let I=i.get(_,v);I===c?o++:(o>=5&&(n+=We.N1+(o-5)),c=I,o=1),I=i.get(v,_),I===m?a++:(a>=5&&(n+=We.N1+(a-5)),m=I,a=1)}o>=5&&(n+=We.N1+(o-5)),a>=5&&(n+=We.N1+(a-5))}return n};B.getPenaltyN2=function(i){let e=i.size,n=0;for(let o=0;o<e-1;o++)for(let a=0;a<e-1;a++){let c=i.get(o,a)+i.get(o,a+1)+i.get(o+1,a)+i.get(o+1,a+1);(c===4||c===0)&&n++}return n*We.N2};B.getPenaltyN3=function(i){let e=i.size,n=0,o=0,a=0;for(let c=0;c<e;c++){o=a=0;for(let m=0;m<e;m++)o=o<<1&2047|i.get(c,m),m>=10&&(o===1488||o===93)&&n++,a=a<<1&2047|i.get(m,c),m>=10&&(a===1488||a===93)&&n++}return n*We.N3};B.getPenaltyN4=function(i){let e=0,n=i.data.length;for(let a=0;a<n;a++)e+=i.data[a];return Math.abs(Math.ceil(e*100/n/5)-10)*We.N4};function Vs(t,i,e){switch(t){case B.Patterns.PATTERN000:return(i+e)%2===0;case B.Patterns.PATTERN001:return i%2===0;case B.Patterns.PATTERN010:return e%3===0;case B.Patterns.PATTERN011:return(i+e)%3===0;case B.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(e/3))%2===0;case B.Patterns.PATTERN101:return i*e%2+i*e%3===0;case B.Patterns.PATTERN110:return(i*e%2+i*e%3)%2===0;case B.Patterns.PATTERN111:return(i*e%3+(i+e)%2)%2===0;default:throw new Error("bad maskPattern:"+t)}}B.applyMask=function(i,e){let n=e.size;for(let o=0;o<n;o++)for(let a=0;a<n;a++)e.isReserved(a,o)||e.xor(a,o,Vs(i,a,o))};B.getBestMask=function(i,e){let n=Object.keys(B.Patterns).length,o=0,a=1/0;for(let c=0;c<n;c++){e(c),B.applyMask(c,i);let m=B.getPenaltyN1(i)+B.getPenaltyN2(i)+B.getPenaltyN3(i)+B.getPenaltyN4(i);B.applyMask(c,i),m<a&&(a=m,o=c)}return o}});var kn=F(Dn=>{var Be=ln(),pn=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],dn=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Dn.getBlocksCount=function(i,e){switch(e){case Be.L:return pn[(i-1)*4+0];case Be.M:return pn[(i-1)*4+1];case Be.Q:return pn[(i-1)*4+2];case Be.H:return pn[(i-1)*4+3];default:return}};Dn.getTotalCodewordsCount=function(i,e){switch(e){case Be.L:return dn[(i-1)*4+0];case Be.M:return dn[(i-1)*4+1];case Be.Q:return dn[(i-1)*4+2];case Be.H:return dn[(i-1)*4+3];default:return}}});var ga=F(gn=>{var It=new Uint8Array(512),mn=new Uint8Array(256);(function(){let i=1;for(let e=0;e<255;e++)It[e]=i,mn[i]=e,i<<=1,i&256&&(i^=285);for(let e=255;e<512;e++)It[e]=It[e-255]})();gn.log=function(i){if(i<1)throw new Error("log("+i+")");return mn[i]};gn.exp=function(i){return It[i]};gn.mul=function(i,e){return i===0||e===0?0:It[mn[i]+mn[e]]}});var ua=F(At=>{var Ln=ga();At.mul=function(i,e){let n=new Uint8Array(i.length+e.length-1);for(let o=0;o<i.length;o++)for(let a=0;a<e.length;a++)n[o+a]^=Ln.mul(i[o],e[a]);return n};At.mod=function(i,e){let n=new Uint8Array(i);for(;n.length-e.length>=0;){let o=n[0];for(let c=0;c<e.length;c++)n[c]^=Ln.mul(e[c],o);let a=0;for(;a<n.length&&n[a]===0;)a++;n=n.slice(a)}return n};At.generateECPolynomial=function(i){let e=new Uint8Array([1]);for(let n=0;n<i;n++)e=At.mul(e,new Uint8Array([1,Ln.exp(n)]));return e}});var ha=F((xm,_a)=>{var fa=ua();function Rn(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}Rn.prototype.initialize=function(i){this.degree=i,this.genPoly=fa.generateECPolynomial(this.degree)};Rn.prototype.encode=function(i){if(!this.genPoly)throw new Error("Encoder not initialized");let e=new Uint8Array(i.length+this.degree);
1e.set(i);let n=fa.mod(e,this.genPoly),o=this.degree-n.length;if(o>0){let a=new Uint8Array(this.degree);return a.set(n,o),a}return n};_a.exports=Rn});var Fn=F(Ca=>{Ca.isValid=function(i){return!isNaN(i)&&i>=1&&i<=40}});var Un=F(we=>{var xa="[0-9]+",zs="[A-Z $%*+\\-./:]+",Nt="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Nt=Nt.replace(/u/g,"\\u");var qs="(?:(?![A-Z0-9 $%*+\\-./:]|"+Nt+`)(?:.|[\r
2]))+`;we.KANJI=new RegExp(Nt,"g");we.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");we.BYTE=new RegExp(qs,"g");we.NUMERIC=new RegExp(xa,"g");we.ALPHANUMERIC=new RegExp(zs,"g");var Ws=new RegExp("^"+Nt+"$"),Ks=new RegExp("^"+xa+"$"),Hs=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");we.testKanji=function(i){return Ws.test(i)};we.testNumeric=function(i){return Ks.test(i)};we.testAlphanumeric=function(i){return Hs.test(i)}});var Ge=F(Y=>{var js=Fn(),Bn=Un();Y.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};Y.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};Y.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};Y.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};Y.MIXED={bit:-1};Y.getCharCountIndicator=function(i,e){if(!i.ccBits)throw new Error("Invalid mode: "+i);if(!js.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?i.ccBits[0]:e<27?i.ccBits[1]:i.ccBits[2]};Y.getBestModeForData=function(i){return Bn.testNumeric(i)?Y.NUMERIC:Bn.testAlphanumeric(i)?Y.ALPHANUMERIC:Bn.testKanji(i)?Y.KANJI:Y.BYTE};Y.toString=function(i){if(i&&i.id)return i.id;throw new Error("Invalid mode")};Y.isValid=function(i){return i&&i.bit&&i.ccBits};function $s(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return Y.NUMERIC;case"alphanumeric":return Y.ALPHANUMERIC;case"kanji":return Y.KANJI;case"byte":return Y.BYTE;default:throw new Error("Unknown mode: "+t)}}Y.from=function(i,e){if(Y.isValid(i))return i;try{return $s(i)}catch{return e}}});var Ma=F(Ke=>{var un=Ue(),Qs=kn(),Ta=ln(),Ve=Ge(),Gn=Fn(),ya=7973,Sa=un.getBCHDigit(ya);function Ys(t,i,e){for(let n=1;n<=40;n++)if(i<=Ke.getCapacity(n,e,t))return n}function Oa(t,i){return Ve.getCharCountIndicator(t,i)+4}function Js(t,i){let e=0;return t.forEach(function(n){let o=Oa(n.mode,i);e+=o+n.getBitsLength()}),e}function Zs(t,i){for(let e=1;e<=40;e++)if(Js(t,e)<=Ke.getCapacity(e,i,Ve.MIXED))return e}Ke.from=function(i,e){return Gn.isValid(i)?parseInt(i,10):e};Ke.getCapacity=function(i,e,n){if(!Gn.isValid(i))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=Ve.BYTE);let o=un.getSymbolTotalCodewords(i),a=Qs.getTotalCodewordsCount(i,e),c=(o-a)*8;if(n===Ve.MIXED)return c;let m=c-Oa(n,i);switch(n){case Ve.NUMERIC:return Math.floor(m/10*3);case Ve.ALPHANUMERIC:return Math.floor(m/11*2);case Ve.KANJI:return Math.floor(m/13);case Ve.BYTE:default:return Math.floor(m/8)}};Ke.getBestVersionForData=function(i,e){let n,o=Ta.from(e,Ta.M);if(Array.isArray(i)){if(i.length>1)return Zs(i,o);if(i.length===0)return 1;n=i[0]}else n=i;return Ys(n.mode,n.getLength(),o)};Ke.getEncodedBits=function(i){if(!Gn.isValid(i)||i<7)throw new Error("Invalid QR Code version");let e=i<<12;for(;un.getBCHDigit(e)-Sa>=0;
2)e^=ya<<un.getBCHDigit(e)-Sa;return i<<12|e}});var wa=F(Ea=>{var Vn=Ue(),Pa=1335,Xs=21522,ba=Vn.getBCHDigit(Pa);Ea.getEncodedBits=function(i,e){let n=i.bit<<3|e,o=n<<10;for(;Vn.getBCHDigit(o)-ba>=0;)o^=Pa<<Vn.getBCHDigit(o)-ba;return(n<<10|o)^Xs}});var Ia=F((bm,va)=>{var el=Ge();function gt(t){this.mode=el.NUMERIC,this.data=t.toString()}gt.getBitsLength=function(i){return 10*Math.floor(i/3)+(i%3?i%3*3+1:0)};gt.prototype.getLength=function(){return this.data.length};gt.prototype.getBitsLength=function(){return gt.getBitsLength(this.data.length)};gt.prototype.write=function(i){let e,n,o;for(e=0;e+3<=this.data.length;e+=3)n=this.data.substr(e,3),o=parseInt(n,10),i.put(o,10);let a=this.data.length-e;a>0&&(n=this.data.substr(e),o=parseInt(n,10),i.put(o,a*3+1))};va.exports=gt});var Na=F((Pm,Aa)=>{var tl=Ge(),zn=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function ut(t){this.mode=tl.ALPHANUMERIC,this.data=t}ut.getBitsLength=function(i){return 11*Math.floor(i/2)+6*(i%2)};ut.prototype.getLength=function(){return this.data.length};ut.prototype.getBitsLength=function(){return ut.getBitsLength(this.data.length)};ut.prototype.write=function(i){let e;for(e=0;e+2<=this.data.length;e+=2){let n=zn.indexOf(this.data[e])*45;n+=zn.indexOf(this.data[e+1]),i.put(n,11)}this.data.length%2&&i.put(zn.indexOf(this.data[e]),6)};Aa.exports=ut});var ka=F((Em,Da)=>{var nl=Ge();function ft(t){this.mode=nl.BYTE,typeof t=="string"?this.data=new TextEncoder().encode(t):this.data=new Uint8Array(t)}ft.getBitsLength=function(i){return i*8};ft.prototype.getLength=function(){return this.data.length};ft.prototype.getBitsLength=function(){return ft.getBitsLength(this.data.length)};ft.prototype.write=function(t){for(let i=0,e=this.data.length;i<e;i++)t.put(this.data[i],8)};Da.exports=ft});var Ra=F((wm,La)=>{var il=Ge(),ol=Ue();function _t(t){this.mode=il.KANJI,this.data=t}_t.getBitsLength=function(i){return i*13};_t.prototype.getLength=function(){return this.data.length};_t.prototype.getBitsLength=function(){return _t.getBitsLength(this.data.length)};_t.prototype.write=function(t){let i;for(i=0;i<this.data.length;i++){let e=ol.toSJIS(this.data[i]);if(e>=33088&&e<=40956)e-=33088;else if(e>=57408&&e<=60351)e-=49472;else throw new Error("Invalid SJIS character: "+this.data[i]+`
3Make sure your charset is UTF-8`);e=(e>>>8&255)*192+(e&255),t.put(e,13)}};La.exports=_t});var Fa=F((vm,qn)=>{"use strict";var Dt={single_source_shortest_paths:function(t,i,e){var n={},o={};o[i]=0;var a=Dt.PriorityQueue.make();a.push(i,0);for(var c,m,_,v,I,K,R,Ce,ve;!a.empty();){c=a.pop(),m=c.value,v=c.cost,I=t[m]||{};for(_ in I)I.hasOwnProperty(_)&&(K=I[_],R=v+K,Ce=o[_],ve=typeof o[_]>"u",(ve||Ce>R)&&(o[_]=R,a.push(_,R),n[_]=m))}if(typeof e<"u"&&typeof o[e]>"u"){var Ie=["Could not find a path from ",i," to ",e,"."].join("");throw new Error(Ie)}return n},extract_shortest_path_from_predecessor_list:function(t,i){for(var e=[],n=i,o;n;)e.push(n),o=t[n],n=t[n];return e.reverse(),e},find_path:function(t,i,e){var n=Dt.single_source_shortest_paths(t,i,e);return Dt.extract_shortest_path_from_predecessor_list(n,e)},PriorityQueue:{make:function(t){var i=Dt.PriorityQueue,e={},n;t=t||{};for(n in i)i.hasOwnProperty(n)&&(e[n]=i[n]);return e.queue=[],e.sorter=t.sorter||i.default_sorter,e},default_sorter:function(t,i){return t.cost-i.cost},push:function(t,i){var e={value:t,cost:i};this.queue.push(e),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof qn<"u"&&(qn.exports=Dt)});var Ka=F(ht=>{var L=Ge(),Ga=Ia(),Va=Na(),za=ka(),qa=Ra(),kt=Un(),fn=Ue(),al=Fa();function Ua(t){return unescape(encodeURIComponent(t)).length}function Lt(t,i,e){let n=[],o;for(;(o=t.exec(e))!==null;)n.push({data:o[0],index:o.index,mode:i,length:o[0].length});return n}function Wa(t){let i=Lt(kt.NUMERIC,L.NUMERIC,t),e=Lt(kt.ALPHANUMERIC,L.ALPHANUMERIC,t),n,o;return fn.isKanjiModeEnabled()?(n=Lt(kt.BYTE,L.BYTE,t),o=Lt(kt.KANJI,L.KANJI,t)):(n=Lt(kt.BYTE_KANJI,L.BYTE,t),o=[]),i.concat(e,n,o).sort(function(c,m){return c.index-m.index}).map(function(c){return{data:c.data,mode:c.mode,length:c.length}})}
3function Wn(t,i){switch(i){case L.NUMERIC:return Ga.getBitsLength(t);case L.ALPHANUMERIC:return Va.getBitsLength(t);case L.KANJI:return qa.getBitsLength(t);case L.BYTE:return za.getBitsLength(t)}}function rl(t){return t.reduce(function(i,e){let n=i.length-1>=0?i[i.length-1]:null;return n&&n.mode===e.mode?(i[i.length-1].data+=e.data,i):(i.push(e),i)},[])}function sl(t){let i=[];for(let e=0;e<t.length;e++){let n=t[e];switch(n.mode){case L.NUMERIC:i.push([n,{data:n.data,mode:L.ALPHANUMERIC,length:n.length},{data:n.data,mode:L.BYTE,length:n.length}]);break;case L.ALPHANUMERIC:i.push([n,{data:n.data,mode:L.BYTE,length:n.length}]);break;case L.KANJI:i.push([n,{data:n.data,mode:L.BYTE,length:Ua(n.data)}]);break;case L.BYTE:i.push([{data:n.data,mode:L.BYTE,length:Ua(n.data)}])}}return i}function ll(t,i){let e={},n={start:{}},o=["start"];for(let a=0;a<t.length;a++){let c=t[a],m=[];for(let _=0;_<c.length;_++){let v=c[_],I=""+a+_;m.push(I),e[I]={node:v,lastCount:0},n[I]={};for(let K=0;K<o.length;K++){let R=o[K];e[R]&&e[R].node.mode===v.mode?(n[R][I]=Wn(e[R].lastCount+v.length,v.mode)-Wn(e[R].lastCount,v.mode),e[R].lastCount+=v.length):(e[R]&&(e[R].lastCount=v.length),n[R][I]=Wn(v.length,v.mode)+4+L.getCharCountIndicator(v.mode,i))}}o=m}for(let a=0;a<o.length;a++)n[o[a]].end=0;return{map:n,table:e}}function Ba(t,i){let e,n=L.getBestModeForData(t);if(e=L.from(i,n),e!==L.BYTE&&e.bit<n.bit)throw new Error('"'+t+'" cannot be encoded with mode '+L.toString(e)+`.
4 Suggested mode is: `+L.toString(n));switch(e===L.KANJI&&!fn.isKanjiModeEnabled()&&(e=L.BYTE),e){case L.NUMERIC:return new Ga(t);case L.ALPHANUMERIC:return new Va(t);case L.KANJI:return new qa(t);case L.BYTE:return new za(t)}}ht.fromArray=function(i){return i.reduce(function(e,n){return typeof n=="string"?e.push(Ba(n,null)):n.data&&e.push(Ba(n.data,n.mode)),e},[])};ht.fromString=function(i,e){let n=Wa(i,fn.isKanjiModeEnabled()),o=sl(n),a=ll(o,e),c=al.find_path(a.map,"start","end"),m=[];for(let _=1;_<c.length-1;_++)m.push(a.table[c[_]].node);return ht.fromArray(rl(m))};ht.rawSplit=function(i){return ht.fromArray(Wa(i,fn.isKanjiModeEnabled()))}});var ja=F(Ha=>{var hn=Ue(),Kn=ln(),cl=aa(),pl=sa(),dl=la(),ml=da(),$n=ma(),Qn=kn(),gl=ha(),_n=Ma(),ul=wa(),fl=Ge(),Hn=Ka();function _l(t,i){let e=t.size,n=ml.getPositions(i);for(let o=0;o<n.length;o++){let a=n[o][0],c=n[o][1];for(let m=-1;m<=7;m++)if(!(a+m<=-1||e<=a+m))for(let _=-1;_<=7;_++)c+_<=-1||e<=c+_||(m>=0&&m<=6&&(_===0||_===6)||_>=0&&_<=6&&(m===0||m===6)||m>=2&&m<=4&&_>=2&&_<=4?t.set(a+m,c+_,!0,!0):t.set(a+m,c+_,!1,!0))}}function hl(t){let i=t.size;
4for(let e=8;e<i-8;e++){let n=e%2===0;t.set(e,6,n,!0),t.set(6,e,n,!0)}}function Cl(t,i){let e=dl.getPositions(i);for(let n=0;n<e.length;n++){let o=e[n][0],a=e[n][1];for(let c=-2;c<=2;c++)for(let m=-2;m<=2;m++)c===-2||c===2||m===-2||m===2||c===0&&m===0?t.set(o+c,a+m,!0,!0):t.set(o+c,a+m,!1,!0)}}function xl(t,i){let e=t.size,n=_n.getEncodedBits(i),o,a,c;for(let m=0;m<18;m++)o=Math.floor(m/3),a=m%3+e-8-3,c=(n>>m&1)===1,t.set(o,a,c,!0),t.set(a,o,c,!0)}function jn(t,i,e){let n=t.size,o=ul.getEncodedBits(i,e),a,c;for(a=0;a<15;a++)c=(o>>a&1)===1,a<6?t.set(a,8,c,!0):a<8?t.set(a+1,8,c,!0):t.set(n-15+a,8,c,!0),a<8?t.set(8,n-a-1,c,!0):a<9?t.set(8,15-a-1+1,c,!0):t.set(8,15-a-1,c,!0);t.set(n-8,8,1,!0)}function Tl(t,i){let e=t.size,n=-1,o=e-1,a=7,c=0;for(let m=e-1;m>0;m-=2)for(m===6&&m--;;){for(let _=0;_<2;_++)if(!t.isReserved(o,m-_)){let v=!1;c<i.length&&(v=(i[c]>>>a&1)===1),t.set(o,m-_,v),a--,a===-1&&(c++,a=7)}if(o+=n,o<0||e<=o){o-=n,n=-n;break}}}function Sl(t,i,e){let n=new cl;e.forEach(function(_){n.put(_.mode.bit,4),n.put(_.getLength(),fl.getCharCountIndicator(_.mode,t)),_.write(n)});let o=hn.getSymbolTotalCodewords(t),a=Qn.getTotalCodewordsCount(t,i),c=(o-a)*8;for(n.getLengthInBits()+4<=c&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);let m=(c-n.getLengthInBits())/8;for(let _=0;_<m;_++)n.put(_%2?17:236,8);return yl(n,t,i)}function yl(t,i,e){let n=hn.getSymbolTotalCodewords(i),o=Qn.getTotalCodewordsCount(i,e),a=n-o,c=Qn.getBlocksCount(i,e),m=n%c,_=c-m,v=Math.floor(n/c),I=Math.floor(a/c),K=I+1,R=v-I,Ce=new gl(R),ve=0,Ie=new Array(c),ni=new Array(c),Tn=0,Dr=new Uint8Array(t.buffer);for(let je=0;je<c;je++){let yn=je<_?I:K;Ie[je]=Dr.slice(ve,ve+yn),ni[je]=Ce.encode(Ie[je]),ve+=yn,Tn=Math.max(Tn,yn)}let Sn=new Uint8Array(n),ii=0,Me,be;for(Me=0;Me<Tn;Me++)for(be=0;be<c;be++)Me<Ie[be].length&&(Sn[ii++]=Ie[be][Me]);for(Me=0;Me<R;Me++)for(be=0;be<c;be++)Sn[ii++]=ni[be][Me];return Sn}function Ol(t,i,e,n){let o;if(Array.isArray(t))o=Hn.fromArray(t);else if(typeof t=="string"){let v=i;if(!v){let I=Hn.rawSplit(t);v=_n.getBestVersionForData(I,e)}o=Hn.fromString(t,v||40)}else throw new Error("Invalid data");let a=_n.getBestVersionForData(o,e);if(!a)throw new Error("The amount of data is too big to be stored in a QR Code");if(!i)i=a;else if(i<a)throw new Error(`
5The chosen QR Code version cannot contain this amount of data.
6Minimum version required to store current data is: `+a+`.
7`);let c=Sl(i,e,o),m=hn.getSymbolSize(i),_=new pl(m);return _l(_,i),hl(_),Cl(_,i),jn(_,e,0),i>=7&&xl(_,i),Tl(_,c),isNaN(n)&&(n=$n.getBestMask(_,jn.bind(null,_,e))),$n.applyMask(n,_),jn(_,e,n),{modules:_,version:i,errorCorrectionLevel:e,maskPattern:n,segments:o}}Ha.create=function(i,e){if(typeof i>"u"||i==="")throw new Error("No input text");let n=Kn.M,o,a;return typeof e<"u"&&(n=Kn.from(e.errorCorrectionLevel,Kn.M),o=_n.from(e.version),a=$n.from(e.maskPattern),e.toSJISFunc&&hn.setToSJISFunction(e.toSJISFunc)),Ol(i,o,n,a)}});var Yn=F(He=>{function $a(t){if(typeof t=="number"&&(t=t.toString()),typeof t!="string")throw new Error("Color should be defined as hex string");let i=t.slice().replace("#","").split("");if(i.length<3||i.length===5||i.length>8)throw new Error("Invalid hex color: "+t);(i.length===3||i.length===4)&&(i=Array.prototype.concat.apply([],i.map(function(n){return[n,n]}))),i.length===6&&i.push("F","F");let e=parseInt(i.join(""),16);return{r:e>>24&255,g:e>>16&255,b:e>>8&255,a:e&255,hex:"#"+i.slice(0,6).join("")}}He.getOptions=function(i){i||(i={}),i.color||(i.color={});let e=typeof i.margin>"u"||i.margin===null||i.margin<0?4:i.margin,n=i.width&&i.width>=21?i.width:void 0,o=i.scale||4;
7return{width:n,scale:n?4:o,margin:e,color:{dark:$a(i.color.dark||"#000000ff"),light:$a(i.color.light||"#ffffffff")},type:i.type,rendererOpts:i.rendererOpts||{}}};He.getScale=function(i,e){return e.width&&e.width>=i+e.margin*2?e.width/(i+e.margin*2):e.scale};He.getImageWidth=function(i,e){let n=He.getScale(i,e);return Math.floor((i+e.margin*2)*n)};He.qrToImageData=function(i,e,n){let o=e.modules.size,a=e.modules.data,c=He.getScale(o,n),m=Math.floor((o+n.margin*2)*c),_=n.margin*c,v=[n.color.light,n.color.dark];for(let I=0;I<m;I++)for(let K=0;K<m;K++){let R=(I*m+K)*4,Ce=n.color.light;if(I>=_&&K>=_&&I<m-_&&K<m-_){let ve=Math.floor((I-_)/c),Ie=Math.floor((K-_)/c);Ce=v[a[ve*o+Ie]?1:0]}i[R++]=Ce.r,i[R++]=Ce.g,i[R++]=Ce.b,i[R]=Ce.a}}});var Qa=F(Cn=>{var Jn=Yn();function Ml(t,i,e){t.clearRect(0,0,i.width,i.height),i.style||(i.style={}),i.height=e,i.width=e,i.style.height=e+"px",i.style.width=e+"px"}function bl(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}Cn.render=function(i,e,n){let o=n,a=e;typeof o>"u"&&(!e||!e.getContext)&&(o=e,e=void 0),e||(a=bl()),o=Jn.getOptions(o);let c=Jn.getImageWidth(i.modules.size,o),m=a.getContext("2d"),_=m.createImageData(c,c);return Jn.qrToImageData(_.data,i,o),Ml(m,a,c),m.putImageData(_,0,0),a};Cn.renderToDataURL=function(i,e,n){let o=n;typeof o>"u"&&(!e||!e.getContext)&&(o=e,e=void 0),o||(o={});let a=Cn.render(i,e,o),c=o.type||"image/png",m=o.rendererOpts||{};return a.toDataURL(c,m.quality)}});var Za=F(Ja=>{var Pl=Yn();function Ya(t,i){let e=t.a/255,n=i+'="'+t.hex+'"';return e<1?n+" "+i+'-opacity="'+e.toFixed(2).slice(1)+'"':n}function Zn(t,i,e){let n=t+i;return typeof e<"u"&&(n+=" "+e),n}function El(t,i,e){let n="",o=0,a=!1,c=0;for(let m=0;m<t.length;m++){let _=Math.floor(m%i),v=Math.floor(m/i);!_&&!a&&(a=!0),t[m]?(c++,m>0&&_>0&&t[m-1]||(n+=a?Zn("M",_+e,.5+v+e):Zn("m",o,0),o=0,a=!1),_+1<i&&t[m+1]||(n+=Zn("h",c),c=0)):o++}return n}Ja.render=function(i,e,n){let o=Pl.getOptions(e),a=i.modules.size,c=i.modules.data,m=a+o.margin*2,_=o.color.light.a?"<path "+Ya(o.color.light,"fill")+' d="M0 0h'+m+"v"+m+'H0z"/>':"",v="<path "+Ya(o.color.dark,"stroke")+' d="'+El(c,a,o.margin)+'"/>',I='viewBox="0 0 '+m+" "+m+'"',R='<svg xmlns="http://www.w3.org/2000/svg" '+(o.width?'width="'+o.width+'" height="'+o.width+'" ':"")+I+' shape-rendering="crispEdges">'+_+v+`</svg>
8`;return typeof n=="function"&&n(null,R),R}});var er=F(Rt=>{var wl=na(),Xn=ja(),Xa=Qa(),vl=Za();function ei(t,i,e,n,o){let a=[].slice.call(arguments,1),c=a.length,m=typeof a[c-1]=="function";if(!m&&!wl())throw new Error("Callback required as last argument");if(m){if(c<2)throw new Error("Too few arguments provided");c===2?(o=e,e=i,i=n=void 0):c===3&&(i.getContext&&typeof o>"u"?(o=n,n=void 0):(o=n,n=e,e=i,i=void 0))}else{if(c<1)throw new Error("Too few arguments provided");return c===1?(e=i,i=n=void 0):c===2&&!i.getContext&&(n=e,e=i,i=void 0),new Promise(function(_,v){try{let I=Xn.create(e,n);_(t(I,i,n))}catch(I){v(I)}})}try{let _=Xn.create(e,n);o(null,t(_,i,n))}catch(_){o(_)}}Rt.create=Xn.create;Rt.toCanvas=ei.bind(null,Xa.render);Rt.toDataURL=ei.bind(null,Xa.renderToDataURL);Rt.toString=ei.bind(null,function(t,i,e){return vl.render(t,e)})});var Ct,Il,tr,nr=z(()=>{w();w();Ct=kr(er(),1);Li();Il=["qrcElement"],tr=(()=>{class t{constructor(e,n){this.renderer=e,this.sanitizer=n,this.allowEmptyString=!1,this.colorDark="#000000ff",this.colorLight="#ffffffff",this.cssClass="qrcode",this.elementType="canvas",this.errorCorrectionLevel="M",this.margin=4,this.qrdata="",this.scale=4,this.width=10,this.qrCodeURL=new fi,this.context=null}ngOnChanges(){return On(this,null,function*(){yield this.createQRCode()})}isValidQrCodeText(e){return this.allowEmptyString===!1?!(typeof e>"u"||e===""||e==="null"||e===null):!(typeof e>"u")}toDataURL(e){return new Promise((n,o)=>{(0,Ct.toDataURL)(this.qrdata,e,(a,c)=>{a?o(a):n(c)})})}toCanvas(e,n){return new Promise((o,a)=>{(0,Ct.toCanvas)(e,this.qrdata,n,c=>{c?a(c):o("success")})})}toSVG(e){return new Promise((n,o)=>{(0,Ct.toString)(this.qrdata,e,(a,c)=>{a?o(a):n(c)})})}renderElement(e){for(let n of this.qrcElement.nativeElement.childNodes)this.renderer.removeChild(this.qrcElement.nativeElement,n);this.renderer.appendChild(this.qrcElement.nativeElement,e)}createQRCode(){return On(this,null,function*(){this.version&&this.version>40?(console.warn("[angularx-qrcode] max value for `version` is 40"),this.version=40):this.version&&this.version<1?(console.warn("[angularx-qrcode]`min value for `version` is 1"),this.version=1):this.version!==void 0&&isNaN(this.version)&&(console.warn("[angularx-qrcode] ver
8sion should be a number, defaulting to auto."),this.version=void 0);try{if(!this.isValidQrCodeText(this.qrdata))throw new Error("[angularx-qrcode] Field `qrdata` is empty, set 'allowEmptyString=\"true\"' to overwrite this behaviour.");this.isValidQrCodeText(this.qrdata)&&this.qrdata===""&&(this.qrdata=" ");let e={color:{dark:this.colorDark,light:this.colorLight},errorCorrectionLevel:this.errorCorrectionLevel,margin:this.margin,scale:this.scale,version:this.version,width:this.width},n=this.imageSrc,o=this.imageHeight||40,a=this.imageWidth||40;switch(this.elementType){case"canvas":{let c=this.renderer.createElement("canvas");this.context=c.getContext("2d"),this.toCanvas(c,e).then(()=>{if(this.ariaLabel&&this.renderer.setAttribute(c,"aria-label",`${this.ariaLabel}`),this.title&&this.renderer.setAttribute(c,"title",`${this.title}`),n&&this.context){this.centerImage=new Image(a,o),n!==this.centerImage.src&&(this.centerImage.crossOrigin="anonymous",this.centerImage.src=n),o!==this.centerImage.height&&(this.centerImage.height=o),a!==this.centerImage.width&&(this.centerImage.width=a);let m=this.centerImage;m&&(m.onload=()=>{this.context?.drawImage(m,c.width/2-a/2,c.height/2-o/2,a,o)})}this.renderElement(c),this.emitQRCodeURL(c)}).catch(m=>{console.error("[angularx-qrcode] canvas error:",m)});break}case"svg":{let c=this.renderer.createElement("div");this.toSVG(e).then(m=>{this.renderer.setProperty(c,"innerHTML",m);let _=c.firstChild;this.renderer.setAttribute(_,"height",`${this.width}`),this.renderer.setAttribute(_,"width",`${this.width}`),this.renderElement(_),this.emitQRCodeURL(_)}).catch(m=>{console.error("[angularx-qrcode] svg error:",m)});break}case"url":case"img":default:{let c=this.renderer.createElement("img");this.toDataURL(e).then(m=>{this.alt&&c.setAttribute("alt",this.alt),this.ariaLabel&&c.setAttribute("aria-label",this.ariaLabel),c.setAttribute("src",m),this.title&&c.setAttribute("title",this.title),this.renderElement(c),this.emitQRCodeURL(c)}).catch(m=>{console.error("[angularx-qrcode] img/url error:",m)})}}}catch(e){console.error("[angularx-qrcode] Error generating QR Code:",e.message)}})}convertBase64ImageUrlToBlob(e){let n=e.split(";base64,"),o=n[0].split(":")[1],a=atob(n[1]),c=new Uint8Array(a.length);for(let m=0;m<a.length;++m)c[m]=a.charCodeAt(m);return new Blob([c],{type:o})}emitQRCodeURL(e){let n=e.constructor.name;if(n===SVGSVGElement.name){let _=e.outerHTML,v=new Blob([_],{type:"image/svg+xml"}),I=URL.createObjectURL(v),K=this.sanitizer.bypassSecurityTrustUrl(I);this.qrCodeURL.emit(K);return}let o="";n===HTMLCanvasElement.name&&(o=e.toDataURL("image/png")),n===HTMLImageElement.name&&(o=e.src);let a=this.convertBase64ImageUrlToBlob(o),c=URL.createObjectURL(a),m=this.sanitizer.bypassSecurityTrustUrl(c);this.qrCodeURL.emit(m)}static{this.\u0275fac=function(n){return new(n||t)(Mn(_i),Mn(ki))}}static{this.\u0275cmp=A({type:t,selectors:[["qrcode"]],viewQuery:function(n,o){if(n&1&&yi(Il,7),n&2){let a;Oi(a=Mi())&&(o.qrcElement=a.first)}},inputs:{allowEmptyString:"allowEmptyString",colorDark:"colorDark",colorLight:"colorLight",cssClass:"cssClass",elementType:"elementType",errorCorrectionLevel:"errorCorrectionLevel",imageSrc:"imageSrc",imageHeight:"imageHeight",imageWidth:"imageWidth",margin:"margin",qrdata:"qrdata",scale:"scale",version:"version",width:"width",alt:"alt",ariaLabel:"ariaLabel",title:"title"},outputs:{qrCodeURL:"qrCodeURL"},features:[gi],decls:2,vars:2,consts:[["qrcElement",""]],template:function(n,o){n&1&&xi(0,"div",null,0),n&2&&bi(o.cssClass)},encapsulation:2,changeDetection:0})}}return t})()});var or,ar=z(()=>{w();Mt();ge();An();po();nr();he();ye();In();w();ao();Pn();po();Z();or=(()=>{class t{constructor(){this.matDialogRef=h(at),this.data=h(Kt),this._totpService=h(sn),this._notification=h(V),this.isCanVerify=!1,this.QrcodeConfig={length:6,inputStyles:{"max-width.px":37},allowNumbersOnly:!0}}onOtpChange(e){this.code=e,this.code.length===6&&(this.isCanVerify=!0,this.verify())}verify(){if(!this.code){this._notification.translatedError("LINKEDIN_ACCOUNTS.ENTER_ACTIVATION_CODE");return}this._totpService.verify2FA(this.code,this.data.id).subscribe({next:()=>{this.matDialogRef.close(!0),this._notification.translatedSuccess("LINKEDIN_ACCOUNTS.2FA.CONFIRMED")},error:()=>{this._notification.translatedError("NOTIFICATIONS.SOMETHING_WENT_WRONG")}})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=A({type:t,selectors:[["ng-component"]],decls:19,vars:15,consts:[[3,"closeEvent","titleText"],["id","qrcode2FA-modal",1,"modal-content-container"],[3,"width","qrdata"],[1,"my-12"],[1,"secondary-text"],[3,"onInputChange","config"],[1,"modal-footer","mt-12"],[1,"btn-secondary",3,"click"],[1,"btn-text"],[1,"btn-primary",3,"click","disabled"]],template:function(n,o){n&1&&(s(0,"exp-modal-wrapper",0),C("closeEvent",function(){return o.matDialogRef.close()}),s(1,"div",1)(2,"h4"),p(3),l(),T(4,"qrcode",2)(5,"mat-divider",3),s(6,"p",4),p(7),d(8,"translate"),l(),s(9,"ng-otp-input",5),C("onInputChange",function(c){return o.onOtpChange(c)}),l(),s(10,"div",6)(11,"button",7),C("click",function(){return o.matDialogRef.close()}),s(12,"span",8),p(13),d(14,"translate"),l()(),s(15,"button",9),C("click",function(){return o.verify()}),s(16,"span"),p(17),d(18,"translate"),l()()()()()),n&2&&(u("titleText","LINKEDIN_ACCOUNTS.QRCODE.TITLE"),r(3),x(o.data.code),r(),u("width",250)("qrdata",o.data.config_url),r(3),M(" ",g(8,9,"LINKEDIN_ACCOUNTS.QRCODE.DESC")," "),r(2),u("config",o.QrcodeConfig),r(4),x(g(14,11,"GENERAL.CANCEL")),r(2),u("disabled",!o.isCanVerify),r(2),x(g(18,13,"LINKEDIN_ACCOUNTS.QRCODE.VERIFY")))},dependencies:[W,$,Qt,dt,rt,tr,co,lo,D],styles:["ng-otp-input[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}#qrcode2FA-modal[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap;align-items:center;justify-content:center}
8#qrcode2FA-modal[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-weight:600;margin-bottom:8px;display:block;width:100%;text-align:center;color:var(--primaryText-color)}#qrcode2FA-modal[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-bottom:12px;display:block;width:100%;color:var(--primaryText-color);text-align:center}#qrcode2FA-modal[_ngcontent-%COMP%]   .modal-footer[_ngcontent-%COMP%]{display:flex;gap:16px}"]})}}return t})()});function Al(t,i){t&1&&(s(0,"button",7),p(1),d(2,"translate"),l()),t&2&&(r(),M(" ",g(2,1,"LINKEDIN_ACCOUNTS.2FA.CONFIRMED")," "))}function Nl(t,i){if(t&1){let e=N();s(0,"button",8),C("click",function(){b(e);let o=f(2);return P(o.open2FAModal())}),p(1),d(2,"translate"),l()}t&2&&(r(),M(" ",g(2,1,"LINKEDIN_ACCOUNTS.2FA.NOT_CONFIRMED")," "))}function Dl(t,i){t&1&&S(0,Al,3,3,"button",7)(1,Nl,3,3,"button",7),t&2&&y(i.confirmed?0:1)}var rr,sr=z(()=>{w();Mt();ar();ce();ge();An();he();ye();w();wn();Z();rr=(()=>{class t{constructor(){this.totpService=h(sn),this.notificationService=h(V),this.matDialog=h(Ht),this.destroyRef=h(k),this.twoFactor=O(void 0)}ngOnInit(){this.totpService.get2FA().pipe(E(this.destroyRef)).subscribe({next:e=>{e.count&&this.twoFactor.set(e.results[0])},error:()=>this.notificationService.translatedError("NOTIFICATIONS.SOMETHING_WENT_WRONG")})}toggle2FA(e){e.checked?this.totpService.add2FA().pipe(E(this.destroyRef)).subscribe({next:n=>{this.twoFactor.set(n),this.open2FAModal()},error:()=>this.notificationService.translatedError("NOTIFICATIONS.SOMETHING_WENT_WRONG")}):this.totpService.remove2FA(this.twoFactor().id).pipe(E(this.destroyRef)).subscribe({next:()=>this.twoFactor.set(void 0),error:()=>this.notificationService.translatedError("NOTIFICATIONS.SOMETHING_WENT_WRONG")})}open2FAModal(){this.matDialog.open(or,{panelClass:["card-dialog","small","two-fa-modal"],data:this.twoFactor()}).afterClosed().pipe(E(this.destroyRef)).subscribe(e=>{this.twoFactor.update(n=>n&&se(re({},n),{confirmed:e||!1}))})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=A({type:t,selectors:[["exp-two-factor-auth"]],decls:13,vars:8,consts:[["id","two-factor-auth",1,"tab-container"],[1,"two-factor-auth-body"],[1,"page-header"],[1,"title"],[1,"tab-actions"],[3,"change","checked"],[1,"subtitle"],[1,"btn-primary"],[1,"btn-primary",3,"click"]],template:function(n,o){if(n&1&&(s(0,"div",0)(1,"div",1)(2,"header",2)(3,"h5",3)(4,"span"),p(5),d(6,"translate"),l(),s(7,"div",4)(8,"mat-slide-toggle",5),C("change",function(c){return o.toggle2FA(c)}),l()()(),s(9,"p",6),p(10),d(11,"translate"),l()()(),S(12,Dl,2,1),l()),n&2){let a;r(5),x(g(6,4,"ACCOUNT_SETTINGS.2FA")),r(3),u("checked",!!o.twoFactor()),r(2),M(" ",g(11,6,"LINKEDIN_ACCOUNTS.2FA.DESC")," "),r(2),y((a=o.twoFactor())?12:-1,a)}},dependencies:[W,$,ct,D],styles:["@media all and (width <= 991px){#two-factor-auth[_ngcontent-%COMP%]   .two-factor-auth-body[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start;flex-direction:row-reverse}}#two-factor-auth[_ngcontent-%COMP%]   .tab-description[_ngcontent-%COMP%]{margin-bottom:16px}@media all and (width <= 991px){#two-factor-auth[_ngcontent-%COMP%]   .tab-description[_ngcontent-%COMP%]{min-width:inherit;width:100%;margin:0}}#two-factor-auth[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{margin-top:12px}@media all and (width <= 991px){#two-factor-auth[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{margin-left:auto;margin-top:12px}}@media all and (width <= 480px){#two-factor-auth[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{min-width:100%;justify-content:center}}",".tab-container[_ngcontent-%COMP%]{max-width:656px;margin:0 auto;padding:16px}@media all and (width <= 991px){.tab-container[_ngcontent-%COMP%]{padding:0}}.page-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.title[_ngcontent-%COMP%]{margin:0;font-family:geist,sans-serif;font-weight:600;font-size:24px;line-height:28px;color:#191d23;display:flex;align-items:center;justify-content:space-between;min-height:32px}@media all and (width <= 991px){.title[_ngcontent-%COMP%]{min-height:inherit}.title[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:none}}.subtitle[_ngcontent-%COMP%]{margin:0;font-family:geist,sans-serif;font-size:14px;font-weight:400;line-height:16px;
8color:#77808c}.docs-link[_ngcontent-%COMP%]{color:#105670;text-decoration:none}.docs-link[_ngcontent-%COMP%]:hover{text-decoration:underline}.tab-description[_ngcontent-%COMP%]{margin-top:12px;margin-bottom:0;min-width:100%}.btn-primary[_ngcontent-%COMP%]{padding:0 18px;height:36px;display:flex;align-items:center;font-weight:500;font-size:14px;line-height:20px;border-radius:12px}h2[_ngcontent-%COMP%]{margin:0;color:var(--primaryText-color);font-weight:500!important;font-size:18px!important;line-height:28px!important;display:flex;align-items:center;justify-content:space-between;min-height:32px}@media all and (width <= 991px){h2[_ngcontent-%COMP%]{min-height:inherit;line-height:0!important}h2[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:none}}h4[_ngcontent-%COMP%]{font-weight:400!important;font-size:16px!important;line-height:24px!important;margin:0;color:var(--primaryText-color)}"],changeDetection:0})}}return t})()});function Ul(t,i){t&1&&T(0,"exp-content-loader")}function Bl(t,i){if(t&1){let e=N();s(0,"button",16),d(1,"translate"),C("click",function(){b(e);let o=f().$implicit,a=f(2);return P(a.setAsDefault(o.id))}),p(2),d(3,"translate"),l()}t&2&&(u("matTooltip",g(1,2,"ACCOUNT_SETTINGS.WORKSPACES.SET_AS_DEFAULT_TOOLTIP")),r(2),M(" ",g(3,4,"ACCOUNT_SETTINGS.WORKSPACES.SET_AS_DEFAULT")," "))}function Gl(t,i){t&1&&(s(0,"span",14),T(1,"exp-icon",17),p(2),d(3,"translate"),l()),t&2&&(r(2),M(" ",g(3,1,"ACCOUNT_SETTINGS.WORKSPACES.DEFAULT")," "))}function Vl(t,i){if(t&1){let e=N();s(0,"button",18),d(1,"translate"),C("click",function(){b(e);let o=f().$implicit,a=f(2);return P(a.switchToWorkspace(o.id))}),T(2,"exp-icon",19),l()}t&2&&u("matTooltip",g(1,1,"ACCOUNT_SETTINGS.WORKSPACES.OPEN_WORKSPACE"))}function zl(t,i){if(t&1&&(s(0,"div",10),T(1,"exp-contact-avatar-view",11),s(2,"
8span",12),p(3),l(),S(4,Bl,4,6,"button",13)(5,Gl,4,3,"span",14),S(6,Vl,3,3,"button",15),l()),t&2){let e=i.$implicit,n=f(2);r(),u("imageSrc",e==null?null:e.image)("borderRadius","4px")("imgSize",32),r(),u("matTooltip",e.name),r(),x(e.name),r(),y(n.defaultWorkspaceId()!==e.id?4:5),r(2),y(n.currentWorkspaceId()!==e.id?6:-1)}}function ql(t,i){if(t&1&&(s(0,"div",7),X(1,zl,7,7,"div",10,Fl),l()),t&2){let e=f();r(),ee(e.tableData().rows)}}function Wl(t,i){t&1&&(s(0,"div",8)(1,"span",20),p(2),d(3,"translate"),l()()),t&2&&(r(2),x(g(3,1,"NOTIFICATIONS.EMPTY_DATA_TABLE")))}var Fl,cr,pr=z(()=>{w();Ui();ce();Te();zi();Wr();Xr();Wt();Xi();En();he();ye();So();bo();Qr();yo();Rr();Tt();w();Re();Pt();xo();Mo();$r();To();Z();Fl=(t,i)=>i.id;cr=(()=>{class t{constructor(){this.accountService=h(Le),this.global=h(j),this.workspaceService=h(st),this.navigationHelper=h(Io),this.router=h(zt),this.subscriptionService=h($t),this.destroyRef=h(k),this.isLoading=O(!0),this.defaultWorkspaceId=O(void 0),this.currentWorkspaceId=O(void 0),this.tableData=O(it.empty()),this.workspaceQuery=new Ji({page_size:10,page:1})}ngOnInit(){this.defaultWorkspaceId.set(this.global.current_loggedin_user.default_workspace),this.currentWorkspaceId.set(this.global.currentWorkspace.id),this.fetchData()}filterChange(e){this.workspaceQuery.patch(e),this.fetchData()}setAsDefault(e){let n=se(re({},this.global.current_loggedin_user),{default_workspace:e});this.accountService.updateProfile(n).pipe(E(this.destroyRef)).subscribe(o=>{this.global.setUserAccount(o,!0),this.defaultWorkspaceId.set(e)})}switchToWorkspace(e){this.workspaceService.workspace(e).pipe(Qe(n=>(this.navigationHelper.navigationMenuChanged$.next(vo.WORKSPACE),this.global.setCurrentWorkspace(n,!0,null,!0))),Qe(()=>this.router.navigate(["refresh"],{queryParams:{workSpaceId:e}})),E(this.destroyRef)).subscribe(()=>{this.subscriptionService.pastDueInvoicesCheckEvent$.next(!0)})}fetchData(){this.isLoading.set(!0),this.workspaceService.getWorkspaces(this.workspaceQuery).pipe(E(this.destroyRef)).subscribe({next:e=>{this.applyWorkspacesLogos(e),this.tableData.set(e),this.isLoading.set(!1)},error:()=>{this.isLoading.set(!1)}})}applyWorkspacesLogos(e){let n=Ri.url==="https://staging-api.expandi.io/api/v1"?"https://expandi-stage.s3.amazonaws.com/":"https://expandi.s3.amazonaws.com/";e.rows.forEach(o=>{o.image&&!o.image.includes("https")&&(o.image=n+o.image)})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=A({type:t,selectors:[["exp-workspaces"]],decls:16,vars:11,consts:[[1,"page-header","mb-16"],[1,"title"],[1,"subtitle"],[1,"filter-search",3,"filterChange"],[1,"table"],[1,"table-content"],[1,"table-data"],[1,"table-body"],[1,"table-content-empty"],[3,"firstTableFilterChanged","firstTableFilter","tableData"],[1,"table-body-row","mb-8"],[3,"imageSrc","borderRadius","imgSize"],[1,"workspace-name","primary-text","ellipsis",3,"matTooltip"],[1,"btn-primary",3,"matTooltip"],[1,"default-workspace"],[1,"btn-secondary",3,"matTooltip"],[1,"btn-primary",3,"click","matTooltip"],["size","lg","name","military_tech"],[1,"btn-secondary",3,"click","matTooltip"],["name","arrow_forward"],[1,"table-empty-text"]],template:function(n,o){n&1&&(s(0,"header",0)(1,"h5",1)(2,"span"),p(3),d(4,"translate"),l()(),s(5,"p",2),p(6),d(7,"translate"),l()(),s(8,"exp-filter-search",3),C("filterChange",function(c){return o.filterChange(c)}),l(),s(9,"div",4)(10,"div",5)(11,"div",6),S(12,Ul,1,0,"exp-content-loader"),S(13,ql,3,0,"div",7),S(14,Wl,4,3,"div",8),l(),s(15,"exp-data-paginator",9),C("firstTableFilterChanged",function(c){return o.filterChange(c)}),l()()()),n&2&&(r(3),x(g(4,7,"ACCOUNT_SETTINGS.WORKSPACES.TITLE")),r(3),M(" ",g(7,9,"ACCOUNT_SETTINGS.WORKSPACES.CONTENT_DESCRIPTION")," "),r(6),y(o.isLoading()?12:-1),r(),y(o.tableData().rows.length&&!o.isLoading()?13:-1),r(),y(!o.tableData().rows.length&&!o.isLoading()?14:-1),r(),u("firstTableFilter",o.workspaceQuery)("tableData",o.tableData()))},dependencies:[W,U,$,Fe,en,Zt,on,nn,Oo,Co,tn,Xt,D],styles:["[_nghost-%COMP%]{height:100%;display:flex;flex-direction:column}.workspace-name[_ngcontent-%COMP%]{width:20rem}.filter-search[_ngcontent-%COMP%]{display:block;width:240px}.table[_ngcontent-%COMP%]{position:relative;height:100%;width:100%;overflow:hidden}.table[_ngcontent-%COMP%]   .table-content[_ngcontent-%COMP%], .table[_ngcontent-%COMP%]   .table-data[_ngcontent-%COMP%], .table[_ngcontent-%COMP%]   .table-link-full[_ngcontent-%COMP%]{height:100%;width:100%}.table[_ngcontent-%COMP%]   .table-content-empty[_ngcontent-%COMP%]{width:100%;height:calc(100% - 60px);min-height:90px;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:15px 0}.table[_ngcontent-%COMP%]   .table-content-empty[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:var(--secondaryText-color)}.table[_ngcontent-%COMP%]   .table-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;overflow:hidden;
8background:var(--mainBackground-color);box-shadow:0 0 10px #d3d8df4d;border-radius:12px 12px 0 0}.table[_ngcontent-%COMP%]   .table-content[_ngcontent-%COMP%]   .table-data[_ngcontent-%COMP%]{overflow:auto;position:relative;z-index:1}.table[_ngcontent-%COMP%]   .table-content[_ngcontent-%COMP%]   .table-data[_ngcontent-%COMP%]   .table-body[_ngcontent-%COMP%]{padding:0 12px;display:flex;flex-direction:column}.table   .dark-theme[_nghost-%COMP%]   .table-content[_ngcontent-%COMP%], .dark-theme   [_nghost-%COMP%]   .table-content[_ngcontent-%COMP%]{box-shadow:none!important}.table[_ngcontent-%COMP%]   exp-content-loader[_ngcontent-%COMP%]{min-height:120px;display:flex;align-items:center;justify-content:center;position:relative;height:100%}.table[_ngcontent-%COMP%]   .table-body-row[_ngcontent-%COMP%]{display:grid;min-width:100%;grid-template-columns:50px 2fr auto 36px;grid-gap:30px;padding:16px;border:1px solid var(--tableBorder-color);border-radius:12px;transition:border .2s ease-in}.table[_ngcontent-%COMP%]   .table-body-row[_ngcontent-%COMP%]:nth-child(1){margin-top:20px}.table[_ngcontent-%COMP%]   .table-body-row[_ngcontent-%COMP%]:hover{border:1px solid var(--tableRowHoverBackground-color);background:var(--tableRowHoverBackground-color)}.table[_ngcontent-%COMP%]   .table-body-row[_ngcontent-%COMP%]:hover   .table-row-item[_ngcontent-%COMP%]{background:var(--tableRowHoverBackground-color)}.table[_ngcontent-%COMP%]   .table-row-item[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:44px}.table[_ngcontent-%COMP%]   .actionsColumn[_ngcontent-%COMP%]{transition:all ease .3s;position:sticky;right:0;top:0;width:auto;height:auto;background:var(--mainBackground-color);z-index:999999;border-radius:0 12px 12px 0}.table-body-row[_ngcontent-%COMP%]{align-items:center;min-width:fit-content!important}.default-workspace[_ngcontent-%COMP%]{height:36px;padding:0 18px;display:flex;align-items:center;font-weight:500;font-size:14px;line-height:20px;border-radius:12px;background:var(--btnSecondaryBackground-color);color:var(--secondaryText-color);min-width:max-content}.btn-secondary[_ngcontent-%COMP%]{padding:0 6px}",".tab-container[_ngcontent-%COMP%]{max-width:656px;margin:0 auto;padding:16px}@media all and (width <= 991px){.tab-container[_ngcontent-%COMP%]{padding:0}}.page-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.title[_ngcontent-%COMP%]{margin:0;font-family:geist,sans-serif;font-weight:600;font-size:24px;line-height:28px;color:#191d23;display:flex;align-items:center;justify-content:space-between;min-height:32px}@media all and (width <= 991px){.title[_ngcontent-%COMP%]{min-height:inherit}.title[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:none}}.subtitle[_ngcontent-%COMP%]{margin:0;font-family:geist,sans-serif;font-size:14px;font-weight:400;line-height:16px;color:#77808c}.docs-link[_ngcontent-%COMP%]{color:#105670;text-decoration:none}.docs-link[_ngcontent-%COMP%]:hover{text-decoration:underline}.tab-description[_ngcontent-%COMP%]{margin-top:12px;margin-bottom:0;min-width:100%}.btn-primary[_ngcontent-%COMP%]{padding:0 18px;height:36px;display:flex;align-items:center;font-weight:500;font-size:14px;line-height:20px;border-radius:12px}h2[_ngcontent-%COMP%]{margin:0;color:var(--primaryText-color);font-weight:500!important;font-size:18px!important;line-height:28px!important;display:flex;align-items:center;justify-content:space-between;min-height:32px}@media all and (width <= 991px){h2[_ngcontent-%COMP%]{min-height:inherit;line-height:0!important}h2[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:none}}h4[_ngcontent-%COMP%]{font-weight:400!important;font-size:16px!important;line-height:24px!important;margin:0;color:var(--primaryText-color)}"],changeDetection:0})}}return t})()});var dr,mr=z(()=>{w();an();ce();ge();Zi();Te();he();ye();w();Re();Pt();lt();an();Z();dr=(()=>{class t{constructor(){this.notification=h(V),this.userService=h(jt),this.global=h(j),this.destroyRef=h(k),this.user=q.required(),this.apiKeys=Gt(()=>({key:this.user().api_key,secret:this.user().api_secret}))}regenerateApiKeys(){this.userService.regenerateApiKeys().pipe(E(this.destroyRef)).subscribe(e=>{this.apiKeys.set({key:e.api_key,secret:e.api_secret}),this.global.setUserAccount(se(re({},this.user()),{api_key:e.api_key,api_secret:e.api_secret}),!1)})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=A({type:t,selectors:[["exp-api-keys"]],inputs:{user:[1,"user"]},decls:29,vars:24,consts:[["id","api-keys",1,"tab-container"],[1,"page-header","mb-12"],[1,"title"],[1,"btn-primary",3,"click"],[1,"btn-text"],[1,"subtitle"],[1,"interactions-list","fadeIn"],[1,"form-field","mb-16"],[1,"form-field-label"],["appearance","outline"],["matInput","","disabled","",3,"value"],["name","content_copy",3,"cdkCopyToClipboardCopied","matTooltip","matTooltipPosition","cdkCopyToClipboard"],[1,"form-field"]],template:function(n,o){n&1&&(s(0,"div",0)(1,"header",1)(2,"h5",2)(3,"span"),p(4),d(5,"translate"),l(),s(6,"button",3),C("click",function(){return o.regenerateApiKeys()}),s(7,"span",4),p(8,"Generate"),l()()(),s(9,"p",5),p(10),d(11,"translate"),l()(),s(12,"div",6)(13,"div",7)(14,"div",8),p(15),d(16,"translate"),l(),s(17,"mat-form-field",9),T(18,"input",10),l(),s(19,"exp-icon",11),d(20,"translate"),C("cdkCopyToClipboardCopied",function(){return o.notification.translatedSuccess("NOTIFICATIONS.COPIED_TO_CLIPBOARD")}),l()(),s(21,"div",12)(22,"div",8),p(23),d(24,"translate"),l(),s(25,"mat-form-field",9),T(26,"input",10),l(),s(27,"exp-icon",11),d(28,"translate"),C("cdkCopyToClipboardCopied",function(){return o.notification.translatedSuccess("NOTIFICATIONS.COPIED_TO_CLIPBOARD")}),l()()()()),n&2&&(r(4),x(g(5,12,"API")),r(6),x(g(11,14,"ACCOUNT_SETTINGS.API_DESC")),r(5),M(" ",g(16,16,"INTEGRATIONS.API_KEY_TITLE")," "),r(3),u("value",o.apiKeys().key),r(),u("matTooltip",g(20,18,"GENERAL.COPY"))("matTooltipPosition","above")("cdkCopyToClipboard",o.apiKeys().key),r(4),M(" ",g(24,20,"INTEGRATIONS.API_SECRET_TITLE")," "),r(3),u("value",o.apiKeys().secret),r(),u("matTooltip",g(28,22,"GENERAL.COPY"))("matTooltipPosition","above")("cdkCopyToClipboard",o.apiKeys().secret))},dependencies:[W,U,$,Fe,fe,ue,Uo,mt,D],styles:["@media all and (width <= 991px){#api-keys[_ngcontent-%COMP%]{position:relative;padding-bottom:45px}#api-keys[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0}}@media all and (width <= 480px){#api-keys[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{width:100%;justify-content:center}}@media all and (width <= 991px){#api-keys[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]{display:none}}#api-keys[_ngcontent-%COMP%]   .interactions-list[_ngcontent-%COMP%]{padding-top:12px}@media all and (width <= 991px){#api-keys[_ngcontent-%COMP%]   .interactions-list[_ngcontent-%COMP%]{padding-top:0}}#api-keys[_ngcontent-%COMP%]   .input-suffix-icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;cursor:pointer;width:45px;height:36px;position:absolute;right:0;bottom:0}#api-keys[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]{position:relative;max-width:420px;width:100%}#api-keys[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .form-field-label[_ngcontent-%COMP%]{color:var(--primaryText-color);font-size:14px;font-weight:500;line-height:20px;text-align:left;display:flex;align-items:center;margin-bottom:8px}#api-keys[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .form-field-label[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{max-width:max-content;display:flex;align-items:center;justify-content:center;margin-left:8px}#api-keys[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .form-field-label[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:flex}#api-keys[_ngcontent-%COMP%]   exp-icon[_ngcontent-%COMP%]{position:absolute;right:10px;bottom:8px;
8cursor:pointer;z-index:1}",".tab-container[_ngcontent-%COMP%]{max-width:656px;margin:0 auto;padding:16px}@media all and (width <= 991px){.tab-container[_ngcontent-%COMP%]{padding:0}}.page-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.title[_ngcontent-%COMP%]{margin:0;font-family:geist,sans-serif;font-weight:600;font-size:24px;line-height:28px;color:#191d23;display:flex;align-items:center;justify-content:space-between;min-height:32px}@media all and (width <= 991px){.title[_ngcontent-%COMP%]{min-height:inherit}.title[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:none}}.subtitle[_ngcontent-%COMP%]{margin:0;font-family:geist,sans-serif;font-size:14px;font-weight:400;line-height:16px;color:#77808c}.docs-link[_ngcontent-%COMP%]{color:#105670;text-decoration:none}.docs-link[_ngcontent-%COMP%]:hover{text-decoration:underline}.tab-description[_ngcontent-%COMP%]{margin-top:12px;margin-bottom:0;min-width:100%}.btn-primary[_ngcontent-%COMP%]{padding:0 18px;height:36px;display:flex;align-items:center;font-weight:500;font-size:14px;line-height:20px;border-radius:12px}h2[_ngcontent-%COMP%]{margin:0;color:var(--primaryText-color);font-weight:500!important;font-size:18px!important;line-height:28px!important;display:flex;align-items:center;justify-content:space-between;min-height:32px}@media all and (width <= 991px){h2[_ngcontent-%COMP%]{min-height:inherit;line-height:0!important}h2[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:none}}h4[_ngcontent-%COMP%]{font-weight:400!important;font-size:16px!important;line-height:24px!important;margin:0;color:var(--primaryText-color)}"],changeDetection:0})}}return t})()});var oe,xn,ti=z(()=>{oe="ACCOUNT_SETTINGS.AI_AGENTS.LOGS.ACTIONS",xn={"Add Leads to List":`${oe}.ADD_LEADS_TO_LIST`,"Added leads to a campaign":`${oe}.ADDED_LEADS_TO_CAMPAIGN`,"Alert raised":`${oe}.ALERT_RAISED`,"Assign List to Campaign":`${oe}.ASSIGN_LIST_TO_CAMPAIGN`,"Create campaign":`${oe}.CREATE_CAMPAIGN`,"Create Lead List":`${oe}.CREATE_LEAD_LIST`,"Create reply":`${oe}.CREATE_REPLY`,"Delete Lead List":`${oe}.DELETE_LEAD_LIST`,"Pause lead":`${oe}.PAUSE_LEAD`,"Refill list":`${oe}.REFILL_LIST`,"Remove Leads from List":`${oe}.REMOVE_LEADS_FROM_LIST`,"Resume errored leads":`${oe}.RESUME_ERRORED_LEADS`,"Resume lead":`${oe}.RESUME_LEAD`,"Retry failed actions":`${oe}.RETRY_FAILED_ACTIONS`,"Set placeholder":`${oe}.SET_PLACEHOLDER`,"Update campaign":`${oe}.UPDATE_CAMPAIGN`}});function $l(t,i){if(t&1){let e=N();s(0,"span",5),p(1),l(),s(2,"exp-icon",6),d(3,"translate"),C("click",function(o){b(e);let a=f();return P(a.clear(o))}),l()}if(t&2){let e=f();H("data-testid",e.testId()+"-count"),r(),x(e.selected().length),r(),u("filled",!0)("customSize",le(8,gr))("matTooltip",g(3,6,"GENERAL.CLEAR_FILTER")),H("data-testid",e.testId()+"-clear")}}function Ql(t,i){if(t&1){let e=N();s(0,"div",8),T(1,"exp-icon",12),s(2,"input",13),d(3,"translate"),C("input",function(o){b(e);let a=f(2);return P(a.onSearch(o))}),l()()}if(t&2){let e=f(2);r(),u("customSize",le(6,Kl)),r(),u("placeholder",g(3,4,"ACCOUNT_SETTINGS.AI_AGENTS.LOGS.FILTER_PLACEHOLDER"))("value",e.search()),H("data-testid",e.testId()+"-search")}}function Yl(t,i){t&1&&T(0,"exp-icon",16),t&2&&u("customSize",le(1,Hl))}function Jl(t,i){if(t&1){let e=N();s(0,"button",14),C("click",function(){let o=b(e).$implicit,a=f(2);return P(a.toggle(o.value))}),s(1,"span",15),S(2,Yl,1,2,"exp-icon",16),l(),s(3,"span",17),p(4),l()()}if(t&2){let e=i.$implicit,n=f(2);H("data-testid",n.testId()+"-option")("data-value",e.value),r(),pe("checked",n.isSelected(e.value)),r(),y(n.isSelected(e.value)?2:-1),r(2),x(e.label)}}function Zl(t,i){if(t&1&&(s(0,"span",11),p(1),d(2,"translate"),l()),t&2){let e=f(2);H("data-testid",e.testId()+"-no-options"),r(),x(g(2,2,"GENERAL.NO_DATA_TO_DISPLAY"))}}function Xl(t,i){if(t&1){let e=N();s(0,"div",7),S(1,Ql,4,7,"div",8),s(2,"div",9),C("callRequest",function(){b(e);let o=f();return P(o.scrolledToEnd.emit())}),X(3,Jl,5,6,"button",10,jl,!1,Zl,3,4,"span",11),l()()}if(t&2){let e=f();H("data-testid",e.testId()+"-panel"),r(),y(e.searchable()?1:-1),r(2),ee(e.filteredOptions())}}var gr,Kl,Hl,jl,ec,ur,fr=z(()=>{w();Qi();Pt();ce();Tt();Ye();Z();bt();vn();w();Qi();Pt();jr();gr=()=>[14,14],Kl=()=>[16,16],Hl=()=>[12,12],jl=(t,i)=>i.value;ec=400,ur=(()=>{class t{constructor(){this.destroyRef=h(k),this.labelKey=q.required(),this.testId=q(""),this.options=q.required(),this.selected=q([]),this.searchable=q(!0),this.serverSearch=q(!1),this.selectionChange=te(),this.searchChange=te(),this.scrolledToEnd=te(),this.isOpen=O(!1),this.search=O(""),this.filteredOptions=Ee(()=>{let e=this.search().trim().toLowerCase();return this.serverSearch()||!e?this.options():this.options().filter(n=>n.label.toLowerCase().includes(e))}),this.searchInput$=new Ft,this.searchInput$.pipe($e(ec),Ut(),E(this.destroyRef)).subscribe(e=>this.searchChange.emit(e))}open(){this.isOpen.set(!0)}close(){this.isOpen.set(!1)}clear(e){e.stopPropagation(),this.selectionChange.emit([])}onSearch(e){let n=e.target.value;this.search.set(n),this.serverSearch()&&this.searchInput$.next(n.trim())}isSelected(e){return this.selected().includes(e)}toggle(e){let n=this.isSelected(e)?this.selected().filter(o=>o!==e):[...this.selected(),e];this.selectionChange.emit(n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=A({type:t,selectors:[["exp-mcp-logs-dropdown"]],inputs:{labelKey:[1,"labelKey"],testId:[1,"testId"],options:[1,"options"],selected:[1,"selected"],searchable:[1,"searchable"],serverSearch:[1,"serverSearch"]},outputs:{selectionChange:"selectionChange",searchChange:"searchChange",scrolledToEnd:"scrolledToEnd"},decls:8,vars:14,consts:[["trigger","cdkOverlayOrigin"],["type","button","cdkOverlayOrigin","",1,"mcp-logs-dropdown-trigger",3,"click"],[1,"label"],[1,"chevron",3,"name","customSize"],["cdkConnectedOverlay","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","detach","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen"],[1,"count"],["name","cancel",1,"clear",3,"click","filled","customSize","matTooltip"],[1,"mcp-logs-dropdown-panel"],[1,"panel-search"],["expInfinityScrollBlock","",1,"panel-options",3,"callRequest"],["type","button",1,"option"],[1,"n
8o-options"],["name","search",3,"customSize"],["type","text","autocomplete","off",3,"input","placeholder","value"],["type","button",1,"option",3,"click"],[1,"checkbox"],["name","check",3,"customSize"],[1,"option-label"]],template:function(n,o){if(n&1){let a=N();s(0,"button",1,0),C("click",function(){return b(a),P(o.open())}),s(2,"span",2),p(3),d(4,"translate"),l(),S(5,$l,4,9),T(6,"exp-icon",3),l(),J(7,Xl,6,3,"ng-template",4),C("backdropClick",function(){return b(a),P(o.close())})("detach",function(){return b(a),P(o.close())})}if(n&2){let a=G(1);pe("open",o.isOpen())("active",o.selected().length),H("data-testid",o.testId()+"-trigger"),r(3),x(g(4,11,o.labelKey())),r(2),y(o.selected().length?5:-1),r(),u("name",o.isOpen()?"expand_less":"expand_more")("customSize",le(13,gr)),r(),u("cdkConnectedOverlayOrigin",a)("cdkConnectedOverlayOpen",o.isOpen())}},dependencies:[$i,ji,Hi,ro,Fe,pt,ho,U,D],styles:[`.mcp-logs-dropdown-trigger{display:flex;align-items:center;gap:4px;height:32px;padding:4px 12px;background:#fafafa;border:1px solid #CDD2D9;border-radius:8px;cursor:pointer;white-space:nowrap;color:#303845}.mcp-logs-dropdown-trigger .label{font-family:geist,sans-serif;font-size:12px;font-weight:400;line-height:16px}.mcp-logs-dropdown-trigger .count{display:flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 4px;background:#f3f7f9;border-radius:9999px;font-family:geist,sans-serif;font-size:12px;font-weight:600;line-height:16px}.mcp-logs-dropdown-trigger .clear{color:#77808c;cursor:pointer}.mcp-logs-dropdown-trigger .clear:hover{color:#303845}.mcp-logs-dropdown-trigger .chevron{color:inherit}.mcp-logs-dropdown-trigger:hover,.mcp-logs-dropdown-trigger.open,.mcp-logs-dropdown-trigger.active{border-color:#3f4a5a}.mcp-logs-dropdown-panel{display:flex;flex-direction:column;min-width:220px;max-width:320px;margin-top:4px;background:#fff;border:1px solid #DFE4EC;border-radius:8px;box-shadow:0 4px 8px -2px #1018281a,0 2px 4px -2px #1018280f;overflow:hidden}.mcp-logs-dropdown-panel .panel-search{display:flex;align-items:center;gap:8px;padding:12px;border-bottom:1px solid #DFE4EC;color:#77808c}.mcp-logs-dropdown-panel .panel-search input{flex:1;min-width:0;border:none;outline:none;background:transparent;font-family:geist,sans-serif;font-size:12px;font-weight:400;line-height:16px;color:#303845}.mcp-logs-dropdown-panel .panel-search input::placeholder{color:#77808c}.mcp-logs-dropdown-panel .panel-options{display:flex;flex-direction:column;max-height:280px;padding:8px 0;overflow-y:auto}.mcp-logs-dropdown-panel .option{display:flex;align-items:center;gap:12px;padding:8px 16px;background:transparent;border:none;cursor:pointer;text-align:left}.mcp-logs-dropdown-panel .option:hover{background:#f3f7f9}.mcp-logs-dropdown-panel .checkbox{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:16px;height:16px;border:1px solid #CDD2D9;border-radius:4px;color:#fff}.mcp-logs-dropdown-panel .checkbox.checked{background:#21aec1;border-color:#21aec1}.mcp-logs-dropdown-panel .option-image{flex-shrink:0;width:16px;height:16px;border-radius:9999px;object-fit:cover}.mcp-logs-dropdown-panel .option-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:geist,sans-serif;font-size:14px;font-weight:400;line-height:16px;color:#303845}.mcp-logs-dropdown-panel .no-options{padding:8px 16px;font-family:geist,sans-serif;font-size:14px;font-weight:400;line-height:16px;color:#77808c}
9`],encapsulation:2,changeDetection:0})}}return t})()});var tc,nc,_r,hr=z(()=>{w();ce();Tt();Ye();Z();bt();zr();qr();ti();fr();w();tc=()=>[16,16],nc=[{value:"Codex",label:"ChatGPT"},{value:"Claude",label:"Claude"},{value:"Unknown app",label:"Unknown app"}],_r=(()=>{class t{constructor(){this.accountCrudService=h(Yi),this.translate=h(ot),this.destroyRef=h(k),this.filterChange=te(),this.search=O(""),this.selectedApplications=O([]),this.selectedAccounts=O([]),this.selectedActions=O([]),this.applicationOptions=nc,this.actionOptions=Object.entries(xn).map(([e,n])=>({value:e,label:this.translate.instant(n)})),this.accountOptions=O([]),this.accountsQuery=new Ki({page:1,page_size:10}),this.hasNextAccountsPage=!0,this.isLoadingAccounts=!1,this.searchInput$=new Ft,this.searchInput$.pipe($e(500),Ut(),E(this.destroyRef)).subscribe(e=>{this.search.set(e),this.emitFilters()}),this.loadAccounts()}onSearchInput(e){this.searchInput$.next(e.target.value)}onApplicationsChange(e){this.selectedApplications.set(e),this.emitFilters()}onAccountsChange(e){this.selectedAccounts.set(e),this.emitFilters()}onActionsChange(e){this.selectedActions.set(e),this.emitFilters()}onAccountsSearch(e){this.accountsQuery.search=e||void 0,this.loadAccounts()}loadMoreAccounts(){!this.hasNextAccountsPage||this.isLoadingAccounts||(this.isLoadingAccounts=!0,this.accountsQuery.page=this.accountsQuery.page+1,this.accountCrudService.getAccounts(this.accountsQuery).pipe(E(this.destroyRef)).subscribe({next:e=>{this.hasNextAccountsPage=!!e.next,this.accountOptions.update(n=>[...n,...this.toOptions(e.rows)]),this.isLoadingAccounts=!1},error:()=>{this.accountsQuery.page=this.accountsQuery.page-1,this.isLoadingAccounts=!1}}))}clearAll(){this.search.set(""),this.selectedApplications.set([]),this.selectedAccounts.set([]),this.selectedActions.set([]),this.emitFilters()}loadAccounts(){this.accountsQuery.page=1,this.hasNextAccountsPage=!0,this.isLoadingAccounts=!0,this.accountCrudService.getAccounts(this.accountsQuery).pipe(E(this.destroyRef)).subscribe({next:e=>{this.hasNextAccountsPage=!!e.next,this.accountOptions.set(this.toOptions(e.rows)),this.isLoadingAccounts=!1},error:()=>{this.accountOptions.set([]),this.isLoadingAccounts=!1}})}toOptions(e){return e.map(n=>({value:String(n.id),label:n.name==="temp_name"?n.login:n.name,image:n.image_link}))}emitFilters(){this.filterChange.emit({search:this.search().trim()||void 0,application:this.selectedApplications(),action:this.selectedActions(),accounts:this.selectedAccounts()})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=A({type:t,selectors:[["exp-mcp-logs-filter"]],outputs:{filterChange:"filterChange"},decls:9,vars:17,consts:[["id","mcp-logs-filter","data-testid","mcp-logs-filter"],[1,"search"],["name","search",3,"customSize"],["type","text","autocomplete","off","data-testid","mcp-logs-search",3,"input","placeholder","value"],[1,"dropdowns"],["testId","mcp-filter-apps",3,"selectionChange","labelKey","options","selected","searchable"],["testId","mcp-filter-account",3,"selectionChange","searchChange","scrolledToEnd","labelKey","options","selected","serverSearch"],["testId","mcp-filter-action",3,"selectionChange","labelKey","options","selected"]],template:function(n,o){n&1&&(s(0,"div",0)(1,"div",1),T(2,"exp-icon",2),s(3,"input",3),d(4,"translate"),C("input",function(c){return o.onSearchInput(c)}),l()(),s(5,"div",4)(6,"exp-mcp-logs-dropdown",5),C("selectionChange",function(c){return o.onApplicationsChange(c)}),l(),s(7,"exp-mcp-logs-dropdown",6),C("selectionChange",function(c){return o.onAccountsChange(c)})("searchChange",function(c){return o.onAccountsSearch(c)})("scrolledToEnd",function(){return o.loadMoreAccounts()}),l(),s(8,"exp-mcp-logs-dropdown",7),C("selectionChange",function(c){return o.onActionsChange(c)}),l()()()),n&2&&(r(2),u("customSize",le(16,tc)),r(),u("placeholder",g(4,14,"ACCOUNT_SETTINGS.AI_AGENTS.LOGS.SEARCH_PLACEHOLDER"))("value",o.search()),r(3),u("labelKey","ACCOUNT_SETTINGS.AI_AGENTS.LOGS.FILTER_APPS")("options",o.applicationOptions)("selected",o.selectedApplications())("searchable",!1),r(),u("labelKey","ACCOUNT_SETTINGS.AI_AGENTS.LOGS.FILTER_ACCOUNT")("options",o.accountOptions())("selected",o.selectedAccounts())("serverSearch",!0),r(),u("labelKey","ACCOUNT_SETTINGS.AI_AGENTS.LOGS.FILTER_ACTION")("options",o.actionOptions)("selected",o.selectedActions()))},dependencies:[U,ur,D],styles:["#mcp-logs-filter[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px}#mcp-logs-filter[_ngcontent-%COMP%]   .search[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;width:300px;max-width:100%;padding:8px 12px;background:#fafafa;border:1px solid #DFE4EC;border-radius:4px;
9color:#77808c}#mcp-logs-filter[_ngcontent-%COMP%]   .search[_ngcontent-%COMP%]:focus-within{border-color:#3f4a5a}#mcp-logs-filter[_ngcontent-%COMP%]   .search[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{flex:1;min-width:0;border:none;outline:none;background:transparent;font-family:geist,sans-serif;font-size:12px;font-weight:400;line-height:16px;color:#303845}#mcp-logs-filter[_ngcontent-%COMP%]   .search[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::placeholder{color:#77808c}#mcp-logs-filter[_ngcontent-%COMP%]   .dropdowns[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}@media all and (width <= 767px){#mcp-logs-filter[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch}#mcp-logs-filter[_ngcontent-%COMP%]   .search[_ngcontent-%COMP%]{width:100%}#mcp-logs-filter[_ngcontent-%COMP%]   .dropdowns[_ngcontent-%COMP%]{flex-wrap:wrap}}"],changeDetection:0})}}return t})()});function rc(t,i){t&1&&(s(0,"div",9)(1,"div",10),T(2,"span",11),s(3,"div",12),T(4,"span",13)(5,"span",14),l()(),T(6,"span",15)(7,"span",16)(8,"span"),l())}function sc(t,i){if(t&1&&(s(0,"div",1)(1,"div",5)(2,"div",6),T(3,"span",7)(4,"span",8)(5,"span",8)(6,"span"),l(),X(7,rc,9,0,"div",9,Ci),l()()),t&2){let e=f();r(7),ee(e.skeletonRows)}}function lc(t,i){if(t&1&&(p(0),d(1,"date")),t&2){let e=f().$implicit;M(" ",Pi(1,1,e.created,"yyyy-MM-dd HH:mm:ss","UTC")," UTC ")}}function cc(t,i){if(t&1&&(s(0,"span",28),p(1),l()),t&2){let e=f().$implicit,n=f(2);H("data-testid","mcp-log-action-"+e.id),r(),x(n.actionLabel(e))}}function pc(t,i){if(t&1&&T(0,"exp-icon",20),t&2){let e=f().$implicit,n=f(2);u("name",n.isExpanded(e)?"expand_less":"chevron_right")("customSize",le(3,oc)),H("data-testid","mcp-log-chevron-"+e.id)}}function dc(t,i){if(t&1&&(s(0,"div",30)(1,"span",31),p(2),d(3,"translate"),l(),s(4,"div",32)(5,"span",33),p(6),d(7,"translate"),l(),s(8,"span",34),p(9),l()()()),t&2){let e=f().$implicit,n=f(2);H("data-testid","mcp-log-details-"+e.id),r(2),M(" ",g(3,4,"ACCOUNT_SETTINGS.AI_AGENTS.LOGS.TABLE.DETAILS")," "),r(4),M(" ",g(7,6,"ACCOUNT_SETTINGS.AI_AGENTS.LOGS.TABLE.UPDATED_PLACEHOLDERS")," "),r(3),x(n.updatedPlaceholders(e))}}function mc(t,i){if(t&1){let e=N();s(0,"div",18),C("click",function(){let o=b(e).$implicit,a=f(2);return P(a.toggleDetails(o))}),s(1,"div",10)(2,"span",19),T(3,"exp-icon",20),l(),s(4,"div",21)(5,"span",22),p(6),l(),s(7,"span",23),S(8,lc,2,5),l()()(),s(9,"div",24),T(10,"exp-contact-avatar-view",25),s(11,"span",26),p(12),l()(),s(13,"div",27),S(14,cc,2,2,"span",28),l(),s(15,"div",29),S(16,pc,1,4,"exp-icon",20),l()(),S(17,dc,10,8,"div",30)}if(t&2){let e=i.$implicit,n=f(2);pe("expandable",n.hasDetails(e)),H("data-testid","mcp-log-row-"+e.id),r(2),u("title",e.application_name),H("data-testid","mcp-log-app-"+e.id),r(),u("name",n.applicationIcon(e))("customSize",le(1
97,ic)),r(3),x(e.summary),r(2),y(e.created?8:-1),r(2),u("imgSize",16)("imageSrc",e.li_account.image_base64||e.li_account.image_link)("name",e.li_account.name),r(),H("data-testid","mcp-log-account-"+e.id),r(),x(e.li_account.name),r(2),y(e.action?14:-1),r(2),y(n.hasDetails(e)?16:-1),r(),y(n.isExpanded(e)?17:-1)}}function gc(t,i){if(t&1){let e=N();s(0,"div",2)(1,"div",5)(2,"div",6)(3,"span"),p(4),d(5,"translate"),l(),s(6,"span"),p(7),d(8,"translate"),l(),s(9,"span"),p(10),d(11,"translate"),l(),T(12,"span"),l(),X(13,mc,18,18,null,null,ac),l(),s(15,"exp-data-paginator",17),C("firstTableFilterChanged",function(o){b(e);let a=f();return P(a.onPaginatorChanged(o))}),l()()}if(t&2){let e=f();r(4),x(g(5,5,"ACCOUNT_SETTINGS.AI_AGENTS.LOGS.TABLE.SUMMARY")),r(3),x(g(8,7,"ACCOUNT_SETTINGS.AI_AGENTS.LOGS.TABLE.ACCOUNT")),r(3),x(g(11,9,"ACCOUNT_SETTINGS.AI_AGENTS.LOGS.TABLE.ACTION")),r(3),ee(e.tableData().rows),r(2),u("firstTableFilter",e.query())("tableData",e.tableData())}}function uc(t,i){if(t&1){let e=N();s(0,"div",3),T(1,"exp-icon",35),s(2,"span",36),p(3),d(4,"translate"),l(),s(5,"p",37),p(6),d(7,"translate"),l(),s(8,"button",38),C("click",function(){b(e);let o=f();return P(o.clearFilters.emit())}),p(9),d(10,"translate"),l()()}t&2&&(r(),u("customSize",le(10,Cr)),r(2),M(" ",g(4,4,"ACCOUNT_SETTINGS.AI_AGENTS.LOGS.NO_RESULTS.TITLE")," "),r(3),M(" ",g(7,6,"ACCOUNT_SETTINGS.AI_AGENTS.LOGS.NO_RESULTS.DESCRIPTION")," "),r(3),M(" ",g(10,8,"ACCOUNT_SETTINGS.AI_AGENTS.LOGS.NO_RESULTS.CLEAR")," "))}function fc(t,i){t&1&&(s(0,"div",4),T(1,"exp-icon",39),s(2,"div",40)(3,"span",36),p(4),d(5,"translate"),l(),s(6,"p",37),p(7),d(8,"translate"),l()()()),t&2&&(r(),u("customSize",le(7,Cr)),r(3),M(" ",g(5,3,"ACCOUNT_SETTINGS.AI_AGENTS.LOGS.EMPTY.TITLE")," "),r(3),M(" ",g(8,5,"ACCOUNT_SETTINGS.AI_AGENTS.LOGS.EMPTY.DESCRIPTION")," "))}var ic,oc,Cr,ac,_c,xr,Tr=z(()=>{Vt();w();Z();bt();bo();yo();ti();w();Mo();To();ic=()=>[20,20],oc=()=>[16,16],Cr=()=>[64,64],ac=(t,i)=>i.id;_c={Codex:"ai_chatgpt",Claude:"ai_claude"},xr=(()=>{class t{constructor(){this.translate=h(ot),this.tableData=q.required(),this.query=q.required(),this.isLoading=q(!1),this.hasActiveFilters=q(!1),this.filterEvent=te(),this.clearFilters=te(),this.skeletonRows=[0,1,2,3,4],this.expandedLogId=O(null)}actionLabel(e){let n=xn[e.action];return n?this.translate.instant(n):e.action}isExpanded(e){return this.expandedLogId()===e.id}hasDetails(e){return!!this.updatedPlaceholders(e)}updatedPlaceholders(e){return this.formatValue(e.params?.placeholders)||this.formatValue(e.extra_data?.placeholders)}toggleDetails(e){this.hasDetails(e)&&this.expandedLogId.update(n=>n===e.id?null:e.id)}applicationIcon(e){return _c[e.application_name]??"smart_toy"}onPaginatorChanged(e){this.expandedLogId.set(null),this.filterEvent.emit(e)}formatValue(e){return e==null?"":Array.isArray(e)?e.length?e.map(n=>this.formatValue(n)).join(", "):"":e!==null&&typeof e=="object"?Object.entries(e).map(([n,o])=>`${n}: ${this.formatValue(o)}`).join(", "):String(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=A({type:t,selectors:[["exp-mcp-logs-table"]],inputs:{tableData:[1,"tableData"],query:[1,"query"],isLoading:[1,"isLoading"],hasActiveFilters:[1,"hasActiveFilters"]},outputs:{filterEvent:"filterEvent",clearFilters:"clearFilters"},decls:5,vars:1,consts:[["id","mcp-logs-table","data-testid","mcp-logs-table"],["data-testid","mcp-logs-skeleton",1,"table-card"],[1,"table-card"],["data-testid","mcp-logs-no-results",1,"no-results"],["data-testid","mcp-logs-empty",1,"empty-state"],[1,"table-scroll"],[1,"table-header"],[1,"skeleton-block","skeleton-header-line","summary-column"],[1,"skeleton-block","skeleton-header-line"],[1,"table-row","skeleton-row"],[1,"summary"],[1,"skeleton-block","skeleton-app-icon"],[1,"skeleton-lines"],[1,"skeleton-block","skeleton-line","title-line"],[1,"skeleton-block","skeleton-line","date-line"],[1,"skeleton-block","skeleton-line","account-line"],[1,"skeleton-block","skeleton-chip"],["data-testid","mcp-logs-paginator",3,"firstTableFilterChanged","firstTableFilter","tableData"],[1,"table-row",3,"click"],[1,"app-icon",3,"title"],[3,"name","customSize"],[1,"summary-text"],[1,"title"],[1,"date"],[1,"account"],[1,"avatar",3,"imgSize","imageSrc","name"],[1,"account-name"],[1,"action"],[1,"action-chip"],[1,"chevron"],[1,"details"],[1,"details-title"],[1,"detail-row"],[1,"detail-label"],[1,"detail-value"],["name","empty_search",3,"customSize"],[1,"empty-title"],[1,"empty-description"],["type","button","data-testid","mcp-logs-clear-filters",1,"clear-filters-button",3,"click"],["name","satellite",3,"customSize"],[1,"empty-text"]],template:function(n,o){n&1&&(s(0,"div",0),S(1,sc,9,0,"div",1)(2,gc,16,11,"div",2)(3,uc,11,11,"div",3)(4,fc,9,8,"div",4),l()),n&2&&(r(),y(o.isLoading()?1:o.tableData().rows.length?2:o.hasActiveFilters()?3:4))},dependencies:[U,on,nn,tn,Xt,D,Ii],styles:["#mcp-logs-table[_ngcontent-%COMP%]{--mcp-logs-grid: 320px 150px 180px 34px}#mcp-logs-table[_ngcontent-%COMP%]   .table-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;border:1px solid #DFE4EC;border-radius:12px;overflow:hidden}#mcp-logs-table[_ngcontent-%COMP%]   .table-scroll[_ngcontent-%COMP%]{overflow-x:auto}#mcp-logs-table[_ngcontent-%COMP%]   .table-header[_ngcontent-%COMP%], #mcp-logs-table[_ngcontent-%COMP%]   .table-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:var(--mcp-logs-grid);align-items:center;gap:16px;padding:16px;min-width:fit-content}#mcp-logs-table[_ngcontent-%COMP%]   .table-header[_ngcontent-%COMP%]{background:#fafafa;border-bottom:1px solid #CDD2D9}#mcp-logs-table[_ngcontent-%COMP%]   .table-header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-family:geist,sans-serif;font-size:12px;font-weight:400;line-height:16px;
9color:#77808c}#mcp-logs-table[_ngcontent-%COMP%]   .table-row[_ngcontent-%COMP%]{border-bottom:1px solid #DFE4EC}#mcp-logs-table[_ngcontent-%COMP%]   .table-row.expandable[_ngcontent-%COMP%]{cursor:pointer}#mcp-logs-table[_ngcontent-%COMP%]   .table-row.expandable[_ngcontent-%COMP%]:hover{background:#f3f7f9}#mcp-logs-table[_ngcontent-%COMP%]   .summary[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;min-width:0}#mcp-logs-table[_ngcontent-%COMP%]   .app-icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;background:#f3f7f9;border:1px solid #DFE4EC;border-radius:6px;color:#303845}#mcp-logs-table[_ngcontent-%COMP%]   .summary-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px;min-width:0;font-family:geist,sans-serif;font-size:12px;font-weight:400;line-height:16px}#mcp-logs-table[_ngcontent-%COMP%]   .summary-text[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{color:#191d23}#mcp-logs-table[_ngcontent-%COMP%]   .summary-text[_ngcontent-%COMP%]   .date[_ngcontent-%COMP%]{color:#77808c}#mcp-logs-table[_ngcontent-%COMP%]   .account[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;min-width:0}#mcp-logs-table[_ngcontent-%COMP%]   .account[_ngcontent-%COMP%]   .avatar[_ngcontent-%COMP%]{display:inline-flex;flex-shrink:0}#mcp-logs-table[_ngcontent-%COMP%]   .account[_ngcontent-%COMP%]   .account-name[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:geist,sans-serif;font-size:14px;font-weight:400;line-height:16px;color:#77808c}#mcp-logs-table[_ngcontent-%COMP%]   .action-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:20px;padding:2px 8px;background:#f3f7f9;border-radius:2px;font-family:geist,sans-serif;font-size:12px;font-weight:500;line-height:16px;color:#303845}#mcp-logs-table[_ngcontent-%COMP%]   .chevron[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;
9color:#77808c}#mcp-logs-table[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;margin:16px;padding:12px 16px;background:#fafafa;border:1px solid #DFE4EC;border-radius:8px}#mcp-logs-table[_ngcontent-%COMP%]   .details-title[_ngcontent-%COMP%]{font-family:geist,sans-serif;font-size:12px;font-weight:600;line-height:16px;color:#303845}#mcp-logs-table[_ngcontent-%COMP%]   .detail-row[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:16px;font-family:geist,sans-serif;font-size:12px;font-weight:400;line-height:16px}#mcp-logs-table[_ngcontent-%COMP%]   .detail-row[_ngcontent-%COMP%]   .detail-label[_ngcontent-%COMP%]{flex-shrink:0;color:#303845}#mcp-logs-table[_ngcontent-%COMP%]   .detail-row[_ngcontent-%COMP%]   .detail-value[_ngcontent-%COMP%]{word-break:break-word;color:#77808c}#mcp-logs-table[_ngcontent-%COMP%]   .empty-state[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:10px;padding:24px;border:1px solid #DFE4EC;border-radius:8px;color:#303845}#mcp-logs-table[_ngcontent-%COMP%]   .empty-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:12px}#mcp-logs-table[_ngcontent-%COMP%]   .no-results[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:8px;padding:96px 24px;color:#303845}#mcp-logs-table[_ngcontent-%COMP%]   .empty-title[_ngcontent-%COMP%]{font-family:geist,sans-serif;font-size:16px;font-weight:600;line-height:20px;color:#303845}#mcp-logs-table[_ngcontent-%COMP%]   .empty-description[_ngcontent-%COMP%]{margin:0;max-width:490px;text-align:center;font-family:geist,sans-serif;font-size:14px;font-weight:400;line-height:16px;color:#77808c}#mcp-logs-table[_ngcontent-%COMP%]   .clear-filters-button[_ngcontent-%COMP%]{margin-top:8px;height:32px;padding:4px 12px;background:#fff;border:1px solid #CDD2D9;border-radius:8px;cursor:pointer;font-family:geist,sans-serif;font-size:12px;font-weight:500;line-height:16px;color:#303845}#mcp-logs-table[_ngcontent-%COMP%]   .clear-filters-button[_ngcontent-%COMP%]:hover{background:#f3f7f9}#mcp-logs-table[_ngcontent-%COMP%]   .skeleton-row[_ngcontent-%COMP%]{pointer-events:none}#mcp-logs-table[_ngcontent-%COMP%]   .skeleton-block[_ngcontent-%COMP%]{display:block;overflow:hidden;background:linear-gradient(90deg,#f3f7f9 25%,#dfe4ec,#f3f7f9 75%);background-size:200% 100%;animation:_ngcontent-%COMP%_mcp-logs-skeleton-loading 1.3s ease-in-out infinite}#mcp-logs-table[_ngcontent-%COMP%]   .skeleton-header-line[_ngcontent-%COMP%], #mcp-logs-table[_ngcontent-%COMP%]   .skeleton-line[_ngcontent-%COMP%]{height:10px;border-radius:9999px}#mcp-logs-table[_ngcontent-%COMP%]   .skeleton-header-line[_ngcontent-%COMP%]{width:60px}#mcp-logs-table[_ngcontent-%COMP%]   .skeleton-header-line.summary-column[_ngcontent-%COMP%]{width:80px}#mcp-logs-table[_ngcontent-%COMP%]   .skeleton-app-icon[_ngcontent-%COMP%]{flex-shrink:0;width:32px;height:32px;border-radius:6px}#mcp-logs-table[_ngcontent-%COMP%]   .skeleton-lines[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px;width:100%}#mcp-logs-table[_ngcontent-%COMP%]   .title-line[_ngcontent-%COMP%]{width:70%}#mcp-logs-table[_ngcontent-%COMP%]   .date-line[_ngcontent-%COMP%]{width:40%}#mcp-logs-table[_ngcontent-%COMP%]   .account-line[_ngcontent-%COMP%]{width:110px}#mcp-logs-table[_ngcontent-%COMP%]   .skeleton-chip[_ngcontent-%COMP%]{width:90px;height:20px;border-radius:2px}@keyframes _ngcontent-%COMP%_mcp-logs-skeleton-loading{0%{background-position:200% 0}to{background-position:-200% 0}}"],changeDetection:0})}}return t})()});var Sr,yr=z(()=>{w();ce();Ye();zi();Br();Wt();hr();Tr();w();Sr=(()=>{class t{constructor(){this.accountService=h(Le),this.destroyRef=h(k),this.query=O(new bn({page:1,page_size:25})),this.tableData=O(it.empty()),this.isLoading=O(!0),this.hasActiveFilters=O(!1)}ngOnInit(){this.loadLogs()}onFilterChange(e){this.hasActiveFilters.set(!!e.search||!!e.application.length||!!e.action.length||!!e.accounts.length),this.query.set(new bn(se(re({},this.query()),{search:e.search,application:e.application,action:e.action,li_account_id:e.accounts,page:1}))),this.loadLogs()}onQueryChange(e){this.query.set(e),this.loadLogs()}loadLogs(){this.isLoading.set(!0),this.accountService.getMcpLogs(this.query()).pipe(ci(()=>this.isLoading.set(!1)),E(this.destroyRef)).subscribe({next:e=>{this.tableData.set(new it(e.results??[],e.count,this.query().page_size,this.query().page,e.next,e.previous,e.count))},error:()=>this.tableData.set(it.empty())})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=A({type:t,selectors:[["exp-mcp-logs"]],decls:4,vars:4,consts:[["logsFilter",""],["id","mcp-logs","data-testid","mcp-logs"],[3,"filterChange"],[3,"filterEvent","clearFilters","tableData","query","isLoading","hasActiveFilters"]],template:function(n,o){if(n&1){let a=N();s(0,"div",1)(1,"exp-mcp-logs-filter",2,0),C("filterChange",function(m){return b(a),P(o.onFilterChange(m))}),l(),s(3,"exp-mcp-logs-table",3),C("filterEvent",function(m){return b(a),P(o.onQueryChange(m))})("clearFilters",function(){b(a);
9let m=G(2);return P(m.clearAll())}),l()()}n&2&&(r(3),u("tableData",o.tableData())("query",o.query())("isLoading",o.isLoading())("hasActiveFilters",o.hasActiveFilters()))},dependencies:[_r,xr],styles:["#mcp-logs[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}"],changeDetection:0})}}return t})()});function Cc(t,i){t&1&&(p(0),d(1,"translate")),t&2&&M(" ",g(1,1,"ACCOUNT_SETTINGS.AI_AGENTS.MCP_TOKEN.LOADING")," ")}function xc(t,i){if(t&1&&p(0),t&2){let e=f();M(" ",e.displayedToken()," ")}}var hc,Tc,Or,Mr=z(()=>{w();ce();Mt();Te();ge();En();an();In();Z();Pt();bt();w();Pn();hc=t=>({reseller:t});Tc="https://help.expandi.io/",Or=(()=>{class t{constructor(){this.dialogRef=h(at),this.data=h(Kt),this.accountService=h(st),this.global=h(j),this.notification=h(V),this.destroyRef=h(k),this.docsUrl=Tc,this.resellerName=this.global.reseller?.name??"",this.currentToken=O(null),this.isLoading=O(!0),this.isRevealed=O(!1),this.token=Ee(()=>this.currentToken()?.token??""),this.hasToken=Ee(()=>this.token().length>0),this.displayedToken=Ee(()=>this.isRevealed()?this.token():"\u2022".repeat(this.token().length||24))}ngOnInit(){this.loadToken()}toggleReveal(){this.isRevealed.update(e=>!e)}onCopied(){this.notification.translatedSuccess("NOTIFICATIONS.COPIED_TO_CLIPBOARD")}close(){this.dialogRef.close()}regenerate(){let e=this.currentToken()?.id;if(this.isLoading.set(!0),e==null){this.createToken();return}this.accountService.deleteMcpToken(e).pipe(E(this.destroyRef)).subscribe({next:()=>this.createToken(),error:()=>this.handleError()})}loadToken(){this.isLoading.set(!0),this.accountService.getMcpToken().pipe(E(this.destroyRef)).subscribe({next:e=>{let n=e.results?.[0]??null;n?(this.currentToken.set(n),this.isLoading.set(!1)):this.createToken()},error:()=>this.handleError()})}createToken(){this.isLoading.set(!0),this.accountService.postMcpToken(this.data.userId).pipe(E(this.destroyRef)).subscribe({next:e=>{this.currentToken.set(e),this.isRevealed.set(!1),this.isLoading.set(!1)},error:()=>this.handleError()})}handleError(){this.isLoading.set(!1),this.notification.translatedError("NOTIFICATIONS.SOMETHING_WENT_WRONG")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=A({type:t,selectors:[["exp-mcp-token-modal"]],decls:34,vars:33,consts:[[3,"closeEvent","titleText"],["id","mcp-token-modal","data-testid","mcp-token-modal",1,"modal-content-container"],[1,"secondary-text"],["target","_blank","rel","noopener noreferrer",1,"docs-link",3,"href"],[1,"divider"],[1,"field-block"],[1,"field-label"],[1,"token-input"],["data-testid","mcp-token-value",1,"token-value"],["type","button","data-testid","mcp-token-toggle",1,"field-icon",3,"click","disabled"],[3,"name"],["type","button","data-testid","mcp-token-copy","matTooltipPosition","above",1,"field-icon",3,"cdkCopyToClipboardCopied","matTooltip","disabled","cdkCopyToClipboard"],["name","content_copy"],[1,"modal-footer"],["data-testid","mcp-token-close",1,"btn-secondary",3,"click"],[1,"btn-text"],["data-testid","mcp-token-regenerate",1,"btn-delete",3,"click"],["name","refresh"]],template:function(n,o){n&1&&(s(0,"exp-modal-wrapper",0),d(1,"translate"),C("closeEvent",function(){return o.close()}),s(2,"div",1)(3,"p",2),p(4),d(5,"translate"),s(6,"a",3),p(7),d(8,"translate"),l()(),T(9,"div",4),s(10,"div",5)(11,"span",6),p(12),d(13,"translate"),l(),s(14,"div",7)(15,"span",8),S(16,Cc,2,3)(17,xc,1,1),l(),s(18,"button",9),d(19,"translate"),C("click",function(){return o.toggleReveal()}),T(20,"exp-icon",10),l(),s(21,"button",11),d(22,"translate"),C("cdkCopyToClipboardCopied",function(){return o.onCopied()}),T(23,"exp-icon",12),l()()(),s(24,"div",13)(25,"button",14),C("click",function(){return o.close()}),s(26,"span",15),p(27),d(28,"translate"),l()(),s(29,"button",16),C("click",function(){return o.regenerate()}),T(30,"exp-icon",17),s(31,"span",15),p(32),d(33,"translate"),l()()()()()),n&2&&(u("titleText",yt(1,14,"ACCOUNT_SETTINGS.AI_AGENTS.MCP_TOKEN.TITLE",de(31,hc,o.resellerName))),r(4),M(" ",g(5,17,"ACCOUNT_SETTINGS.AI_AGENTS.MCP_TOKEN.DESCRIPTION")," "),r(2),u("href",o.docsUrl,Pe),r(),M(" ",g(8,19,"ACCOUNT_SETTINGS.AI_AGENTS.MCP_TOKEN.DOCS_LINK")," "),r(5),M(" ",g(13,21,"ACCOUNT_SETTINGS.AI_AGENTS.MCP_TOKEN.FIELD_LABEL")," "),r(4),y(o.isLoading()?16:17),r(2),u("disabled",o.isLoading()||!o.token()),H("aria-label",g(19,23,o.isRevealed()?"ACCOUNT_SETTINGS.AI_AGENTS.MCP_TOKEN.HIDE":"ACCOUNT_SETTINGS.AI_AGENTS.MCP_TOKEN.SHOW")),r(2),u("name",o.isRevealed()?"visibility_off":"visibility"),r(),u("matTooltip",g(22,25,"GENERAL.COPY"))("disabled",o.isLoading()||!o.token())("cdkCopyToClipboard",o.token()),r(6),M(" ",g(28,27,"ACCOUNT_SETTINGS.AI_AGENTS.MCP_TOKEN.SAVE_AND_CLOSE")," "),r(5),M(" ",g(33,29,"ACCOUNT_SETTINGS.AI_AGENTS.MCP_TOKEN.REGENERATE")," "))},dependencies:[Fe,mt,dt,rt,U,D],styles:["#mcp-token-modal[_ngcontent-%COMP%]   .secondary-text[_ngcontent-%COMP%]{margin-bottom:0}#mcp-token-modal[_ngcontent-%COMP%]   .secondary-text[_ngcontent-%COMP%]   .docs-link[_ngcontent-%COMP%]{color:#105670;text-decoration:none}#mcp-token-modal[_ngcontent-%COMP%]   .secondary-text[_ngcontent-%COMP%]   .docs-link[_ngcontent-%COMP%]:hover{text-decoration:underline}#mcp-token-modal[_ngcontent-%COMP%]   .divider[_ngcontent-%COMP%]{height:1px;background:#dfe4ec;margin:12px 0}#mcp-token-modal[_ngcontent-%COMP%]   .field-block[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}#mcp-token-modal[_ngcontent-%COMP%]   .field-label[_ngcontent-%COMP%]{font-size:14px;font-weight:500;line-height:20px;color:#191d23}#mcp-token-modal[_ngcontent-%COMP%]   .token-input[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;padding:12px;background:#f3f7f9;border:1px solid #CDD2D9;border-radius:8px}#mcp-token-modal[_ngcontent-%COMP%]   .token-value[_ngcontent-%COMP%]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:400;line-height:20px;color:#191d23}#mcp-token-modal[_ngcontent-%COMP%]   .field-icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:0;background:none;border:none;cursor:pointer;color:#3f4a5a}#mcp-token-modal[_ngcontent-%COMP%]   .field-icon[_ngcontent-%COMP%]:disabled{opacity:.5;pointer-events:none}
9#mcp-token-modal[_ngcontent-%COMP%]   .modal-footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;gap:16px}"],changeDetection:0})}}return t})()});var br,Pr=z(()=>{w();ce();Mt();Tt();Ye();ge();In();En();Z();w();Pn();br=(()=>{class t{constructor(){this.dialogRef=h(at),this.accountService=h(st),this.notification=h(V),this.destroyRef=h(k),this.isLoading=O(!1)}cancel(){this.dialogRef.close(!1)}confirm(){this.isLoading.set(!0),this.accountService.getMcpToken().pipe(Qe(e=>{let n=(e.results??[]).map(o=>this.accountService.deleteMcpToken(o.id));return n.length?ri(n):oi(null)}),Qe(()=>this.accountService.revokeMCP()),E(this.destroyRef)).subscribe({next:()=>{this.notification.translatedSuccess("ACCOUNT_SETTINGS.AI_AGENTS.DISCONNECT.SUCCESS"),this.dialogRef.close(!0)},error:()=>{this.isLoading.set(!1),this.notification.translatedError("NOTIFICATIONS.SOMETHING_WENT_WRONG")}})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=A({type:t,selectors:[["exp-disconnect-tools-modal"]],decls:14,vars:12,consts:[[3,"closeEvent","titleText"],["data-testid","disconnect-tools-modal",1,"modal-content-container"],[1,"secondary-text"],[1,"modal-footer","between","mt-12"],["data-testid","disconnect-cancel",1,"btn-secondary",3,"click","disabled"],[1,"btn-text"],["data-testid","disconnect-confirm",1,"btn-delete",3,"click","disabled"]],template:function(n,o){n&1&&(s(0,"exp-modal-wrapper",0),C("closeEvent",function(){return o.cancel()}),s(1,"div",1)(2,"p",2),p(3),d(4,"translate"),l(),s(5,"div",3)(6,"button",4),C("click",function(){return o.cancel()}),s(7,"span",5),p(8),d(9,"translate"),l()(),s(10,"button",6),C("click",function(){return o.confirm()}),s(11,"span",5),p(12),d(13,"translate"),l()()()()()),n&2&&(u("titleText","ACCOUNT_SETTINGS.AI_AGENTS.DISCONNECT.TITLE"),r(3),M(" ",g(4,6,"ACCOUNT_SETTINGS.AI_AGENTS.DISCONNECT.DESCRIPTION")," "),r(3),u("disabled",o.isLoading()),r(2),x(g(9,8,"GENERAL.CANCEL")),r(2),u("disabled",o.isLoading()),r(2),M(" ",g(13,10,"ACCOUNT_SETTINGS.AI_AGENTS.DISCONNECT.CONFIRM")," "))},dependencies:[dt,rt,D],encapsulation:2,changeDetection:0})}}return t})()});function yc(t,i){if(t&1&&T(0,"exp-icon",27),t&2){let e=f().$implicit;u("name",e.svgIcon)("customSize",le(2,Sc))}}function Oc(t,i){if(t&1&&T(0,"exp-icon",28),t&2){let e=f().$implicit;u("name",e.matIcon)}}function Mc(t,i){if(t&1){let e=N();s(0,"button",26),C("click",function(){let o=b(e).$implicit,a=f();return P(a.selectTool(o.key))}),S(1,yc,1,3,"exp-icon",27),S(2,Oc,1,1,"exp-icon",28),s(3,"span",29),p(4),d(5,"translate"),l()()}if(t&2){let e=i.$implicit,n=f();pe("selected",n.selectedTool()===e.key),H("data-testid","mcp-tool-"+e.key),r(),y(e.svgIcon?1:-1),r(),y(e.matIcon?2:-1),r(2),x(g(5,6,e.labelKey))}}function bc(t,i){if(t&1&&(p(0),d(1,"translate"),s(2,"a",30),p(3),d(4,"translate"),l(),p(5,". ")),t&2){let e=f();M(" ",g(1,3,"ACCOUNT_SETTINGS.AI_AGENTS.STEP_NEED_HELP")," "),r(2),u("href",e.currentSteps().guideUrl,Pe),r(),x(g(4,5,"ACCOUNT_SETTINGS.AI_AGENTS.STEP_GUIDE_LINK"))}}var Er,Sc,Pc,Ec,wc,vc,Ic,wr,vr=z(()=>{w();Vt();an();Mt();Z();Te();ge();bt();Mr();Pr();w();Er=t=>({resellerName:t}),Sc=()=>[20,20];Pc=5e3,Ec="https://api.liaufa.com/mcp",wc="https://help.expandi.io/en/articles/16150671-how-to-connect-claude-to-expandi-expandi-mcp-beta",vc="https://help.expandi.io/en/articles/16150681-how-to-connect-chatgpt-to-expandi-expandi-mcp-beta",Ic={claude:{step1TitleKey:"ACCOUNT_SETTINGS.AI_AGENTS.CLAUDE_STEPS.STEP_1_TITLE",step1DescKey:"ACCOUNT_SETTINGS.AI_AGENTS.CLAUDE_STEPS.STEP_1_DESC",step2TitleKey:"ACCOUNT_SETTINGS.AI_AGENTS.CLAUDE_STEPS.STEP_2_TITLE",step2DescKey:"ACCOUNT_SETTINGS.AI_AGENTS.CLAUDE_STEPS.STEP_2_DESC",guideUrl:wc},chatgpt:{step1TitleKey:"ACCOUNT_SETTINGS.AI_AGENTS.CHATGPT_STEPS.STEP_1_TITLE",step1DescKey:"ACCOUNT_SETTINGS.AI_AGENTS.CHATGPT_STEPS.STEP_1_DESC",step2TitleKey:"ACCOUNT_SETTINGS.AI_AGENTS.CHATGPT_STEPS.STEP_2_TITLE",step2DescKey:"ACCOUNT_SETTINGS.AI_AGENTS.CHATGPT_STEPS.STEP_2_DESC",guideUrl:vc},other:{step1TitleKey:"ACCOUNT_SETTINGS.AI_AGENTS.OTHER_STEPS.STEP_1_TITLE",step1DescKey:"ACCOUNT_SETTINGS.AI_AGENTS.OTHER_STEPS.STEP_1_DESC",
9step2TitleKey:"ACCOUNT_SETTINGS.AI_AGENTS.OTHER_STEPS.STEP_2_TITLE",step2DescKey:"ACCOUNT_SETTINGS.AI_AGENTS.OTHER_STEPS.STEP_2_DESC"}},wr=(()=>{class t{constructor(){this.matDialog=h(Ht),this.destroyRef=h(k),this.notification=h(V),this.global=h(j),this.account=q(),this.tools=[{key:"claude",labelKey:"ACCOUNT_SETTINGS.AI_AGENTS.TOOLS.CLAUDE",svgIcon:"ai_claude"},{key:"chatgpt",labelKey:"ACCOUNT_SETTINGS.AI_AGENTS.TOOLS.CHATGPT",svgIcon:"ai_chatgpt"},{key:"other",labelKey:"ACCOUNT_SETTINGS.AI_AGENTS.TOOLS.OTHER",matIcon:"more_horiz"}],this.serverUrl=Ec,this.resellerName$=this.global.resellerName$,this.copiedTarget=O(null),this.selectedTool=O("claude"),this.currentSteps=Ee(()=>Ic[this.selectedTool()]),this.showGuideLink=Ee(()=>this.isExpandiReseller&&!!this.currentSteps().guideUrl),this.destroyRef.onDestroy(()=>clearTimeout(this.copiedResetTimeout))}get isExpandiReseller(){return this.global.reseller.id===1}trackByToolKey(e,n){return n.key}selectTool(e){this.selectedTool.set(e)}onCopied(e){this.notification.translatedSuccess("NOTIFICATIONS.COPIED_TO_CLIPBOARD"),clearTimeout(this.copiedResetTimeout),this.copiedTarget.set(e),this.copiedResetTimeout=setTimeout(()=>this.copiedTarget.set(null),Pc)}openTokenModal(){this.matDialog.open(Or,{panelClass:["card-dialog","small","ai-agents-connect-dialog"],autoFocus:!1,data:{userId:this.account()?.id}})}openDisconnectModal(){this.matDialog.open(br,{panelClass:["card-dialog","small","ai-agents-disconnect-dialog"],autoFocus:!1})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=A({type:t,selectors:[["exp-mcp-setup"]],inputs:{account:[1,"account"]},decls:66,vars:52,consts:[["id","mcp-setup","data-testid","mcp-setup"],[1,"connect"],[1,"tools"],[1,"tools-heading"],[1,"tool-cards"],["type","button",1,"tool-card",3,"selected"],[1,"steps"],[1,"step"],[1,"step-badge"],[1,"step-body"],["data-testid","mcp-step1-title",1,"step-title"],["data-testid","mcp-step1-desc",1,"step-desc"],[1,"command"],["data-testid","mcp-server-url",1,"command-text"],["type","button","data-testid","mcp-copy-server-url",1,"copy-button",3,"cdkCopyToClipboardCopied","cdkCopyToClipboard"],["size","sm",3,"name"],[1,"btn-text"],["data-testid","mcp-step2-title",1,"step-title"],["data-testid","mcp-step2-desc",1,"step-desc"],[1,"actions"],[1,"action-row"],[1,"action-text"],[1,"action-title"],[1,"action-desc"],["type","button","data-testid","mcp-view-token",1,"copy-button",3,"click"],["data-testid","mcp-disconnect-all",1,"disconnect-button",3,"click"],["type","button",1,"tool-card",3,"click"],[1,"tool-logo",3,"name","customSize"],["size","lg",1,"tool-logo",3,"name"],[1,"tool-label"],["data-testid","mcp-guide-link","target","_blank","rel","noopener noreferrer",1,"docs-link",3,"href"]],template:function(n,o){n&1&&(s(0,"div",0)(1,"section",1)(2,"div",2)(3,"span",3),p(4),d(5,"translate"),l(),s(6,"div",4),X(7,Mc,6,8,"button",5,o.trackByToolKey,!0),l(),s(9,"div",6)(10,"div",7)(11,"span",8),p(12,"1"),l(),s(13,"div",9)(14,"span",10),p(15),d(16,"translate"),l(),s(17,"p",11),p(18),d(19,"translate"),S(20,bc,6,7),l(),s(21,"div",12)(22,"span",13),p(23),l(),s(24,"button",14),C("cdkCopyToClipboardCopied",function(){return o.onCopied("command")}),T(25,"exp-icon",15),s(26,"span",16),p(27),d(28,"translate"),l()()()()(),s(29,"div",7)(30,"span",8),p(31,"2"),l(),s(32,"div",9)(33,"span",17),p(34),d(35,"async"),d(36,"translate"),l(),s(37,"p",18),p(38),d(39,"async"),d(40,"translate"),l()()()()()(),s(41,"section",19)(42,"div",20)(43,"div",21)(44,"span",22),p(45),d(46,"translate"),l(),s(47,"p",23),p(48),d(49,"translate"),l()(),s(50,"button",24),C("click",function(){return o.openTokenModal()}),s(51,"span",16),p(52),d(53,"translate"),l()()(),s(54,"div",20)(55,"div",21)(56,"span",22),p(57),d(58,"translate"),l(),s(59,"p",23),p(60),d(61,"translate"),l()(),s(62,"button",25),C("click",function(){return o.openDisconnectModal()}),s(63,"span",16),p(64),d(65,"translate"),l()()()()()),n&2&&(r(4),M(" ",g(5,18,"ACCOUNT_SETTINGS.AI_AGENTS.STEPS_HEADING")," "),r(3),ee(o.tools),r(8),M(" ",g(16,20,o.currentSteps().step1TitleKey)," "),r(3),M(" ",g(19,22,o.currentSteps().step1DescKey)," "),r(2),y(o.showGuideLink()?20:-1),r(3),x(o.serverUrl),r(),pe("copied",o.copiedTarget()==="command"),u("cdkCopyToClipboard",o.serverUrl),r(),u("name",o.copiedTarget()==="command"?"check":"content_copy"),r(2),M(" ",g(28,24,o.copiedTarget()==="command"?"GENERAL.COPIED":"GENERAL.COPY")," "),r(7),M(" ",yt(36,28,o.currentSteps().step2TitleKey,de(48,Er,g(35,26,o.resellerName$)))," "),r(4),M(" ",yt(40,33,o.currentSteps().step2DescKey,de(50,Er,g(39,31,o.resellerName$)))," "),r(7),M(" ",g(46,36,"ACCOUNT_SETTINGS.AI_AGENTS.ACCESS_TOKEN.TITLE")," "),r(3),M(" ",g(49,38,"ACCOUNT_SETTINGS.AI_AGENTS.ACCESS_TOKEN.DESCRIPTION")," "),r(4),M(" ",g(53,40,"ACCOUNT_SETTINGS.AI_AGENTS.ACCESS_TOKEN.VIEW")," "),r(5),M(" ",g(58,42,"ACCOUNT_SETTINGS.AI_AGENTS.DISCONNECT.ROW_TITLE")," "),r(3),M(" ",g(61,44,"ACCOUNT_SETTINGS.AI_AGENTS.DISCONNECT.ROW_DESCRIPTION")," "),r(4),M(" ",g(65,46,"ACCOUNT_SETTINGS.AI_AGENTS.DISCONNECT.ROW_ACTION")," "))},dependencies:[U,mt,D,vi],styles:['#mcp-setup[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:48px}#mcp-setup[_ngcontent-%COMP%]   .connect[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px}#mcp-setup[_ngcontent-%COMP%]   .copy-button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:4px;flex-shrink:0;height:32px;padding:4px 12px;background:#f3f7f9;border:1px solid #CDD2D9;border-radius:8px;
9cursor:pointer;color:#191d23}#mcp-setup[_ngcontent-%COMP%]   .copy-button[_ngcontent-%COMP%]   .btn-text[_ngcontent-%COMP%]{font-family:geist,sans-serif;font-size:12px;font-weight:500;line-height:16px}#mcp-setup[_ngcontent-%COMP%]   .copy-button[_ngcontent-%COMP%]:hover{background:#dfe4ec}#mcp-setup[_ngcontent-%COMP%]   .copy-button.copied[_ngcontent-%COMP%]{background:#eaf9e8;border-color:#9ed696;color:#004700}#mcp-setup[_ngcontent-%COMP%]   .copy-button.copied[_ngcontent-%COMP%]:hover{background:#eaf9e8}#mcp-setup[_ngcontent-%COMP%]   .tools[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}#mcp-setup[_ngcontent-%COMP%]   .tools-heading[_ngcontent-%COMP%]{font-family:geist,sans-serif;font-size:16px;font-weight:600;line-height:20px;color:#303845}#mcp-setup[_ngcontent-%COMP%]   .tool-cards[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px}#mcp-setup[_ngcontent-%COMP%]   .tool-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:120px;height:100px;padding:16px 12px;background:#fff;border:1px solid #DFE4EC;border-radius:16px;cursor:pointer;
9color:#77808c}#mcp-setup[_ngcontent-%COMP%]   .tool-card.selected[_ngcontent-%COMP%]{border-color:#3f4a5a;color:#303845}#mcp-setup[_ngcontent-%COMP%]   .tool-card[_ngcontent-%COMP%]   .tool-logo[_ngcontent-%COMP%]{color:inherit}#mcp-setup[_ngcontent-%COMP%]   .tool-card[_ngcontent-%COMP%]   .tool-label[_ngcontent-%COMP%]{font-family:geist,sans-serif;font-size:14px;font-weight:400;line-height:16px;color:inherit}#mcp-setup[_ngcontent-%COMP%]   .steps[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px}#mcp-setup[_ngcontent-%COMP%]   .step[_ngcontent-%COMP%]{position:relative;display:flex;gap:8px}#mcp-setup[_ngcontent-%COMP%]   .step[_ngcontent-%COMP%]:not(:last-child)   .step-badge[_ngcontent-%COMP%]:after{content:"";position:absolute;top:28px;left:14px;height:calc(100% - 4px);border-left:1px solid #CDD2D9}#mcp-setup[_ngcontent-%COMP%]   .step-badge[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:28px;height:28px;border-radius:9999px;background:#f3f7f9;font-family:geist,sans-serif;font-size:16px;font-weight:400;line-height:20px;color:#303845}#mcp-setup[_ngcontent-%COMP%]   .step-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px}#mcp-setup[_ngcontent-%COMP%]   .step-title[_ngcontent-%COMP%]{font-family:geist,sans-serif;font-size:14px;font-weight:600;line-height:16px;color:#303845}#mcp-setup[_ngcontent-%COMP%]   .step-desc[_ngcontent-%COMP%]{margin:0;max-width:600px;font-family:geist,sans-serif;font-size:12px;font-weight:400;line-height:16px;color:#77808c}#mcp-setup[_ngcontent-%COMP%]   .docs-link[_ngcontent-%COMP%]{color:#105670;text-decoration:none}#mcp-setup[_ngcontent-%COMP%]   .docs-link[_ngcontent-%COMP%]:hover{text-decoration:underline}#mcp-setup[_ngcontent-%COMP%]   .command[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px;max-width:596px;padding:12px 16px;background:#fafafa;border:1px solid #DFE4EC;border-radius:12px}#mcp-setup[_ngcontent-%COMP%]   .command-text[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:geist,sans-serif;font-size:12px;font-weight:400;line-height:16px;color:#303845}#mcp-setup[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;border:1px solid #DFE4EC;border-radius:12px;overflow:hidden}#mcp-setup[_ngcontent-%COMP%]   .action-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px}#mcp-setup[_ngcontent-%COMP%]   .action-row[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid #DFE4EC}#mcp-setup[_ngcontent-%COMP%]   .action-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}#mcp-setup[_ngcontent-%COMP%]   .action-title[_ngcontent-%COMP%]{font-family:geist,sans-serif;font-size:14px;font-weight:600;line-height:16px;color:#303845}#mcp-setup[_ngcontent-%COMP%]   .action-desc[_ngcontent-%COMP%]{margin:0;font-family:geist,sans-serif;font-size:12px;font-weight:400;line-height:16px;color:#77808c}#mcp-setup[_ngcontent-%COMP%]   .disconnect-button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex-shrink:0;height:32px;padding:4px 12px;background:#bd002a;border:none;border-radius:8px;cursor:pointer;color:#fafafa}#mcp-setup[_ngcontent-%COMP%]   .disconnect-button[_ngcontent-%COMP%]   .btn-text[_ngcontent-%COMP%]{font-family:geist,sans-serif;font-size:12px;font-weight:500;line-height:16px}#mcp-setup[_ngcontent-%COMP%]   .disconnect-button[_ngcontent-%COMP%]:hover{background:#9c0d30}'],changeDetection:0})}}return t})()});function Nc(t,i){if(t&1&&(s(0,"a",4),p(1),d(2,"translate"),l()),t&2){let e=f();u("href",e.docsUrl,Pe),r(),M(" ",g(2,2,"ACCOUNT_SETTINGS.AI_AGENTS.READ_DOCS")," ")}}function Dc(t,i){if(t&1){let e=N();s(0,"button",9),C("click",function(){let o=b(e).$implicit,a=f();return P(a.selectTab(o.key))}),p(1),d(2,"translate"),l()}if(t&2){let e=i.$implicit,n=f();pe("active",n.activeTab()===e.key),H("data-testid","ai-agents-tab-"+e.key),r(),M(" ",g(2,4,e.labelKey)," ")}}function kc(t,i){if(t&1&&T(0,"exp-mcp-setup",8),t&2){let e=f();u("account",e.account)}}function Lc(t,i){t&1&&T(0,"exp-mcp-logs")}var Ac,Rc,Ir,Ar=z(()=>{w();Z();Te();yr();vr();w();Ac=(t,i)=>i.key;Rc="https://help.expandi.io/en/articles/16005740-what-is-expandi-s-mcp-and-what-can-it-do-for-you",Ir=(()=>{class t{constructor(){this.global=h(j),this.docsUrl=Rc,this.tabs=[{key:"setup",labelKey:"ACCOUNT_SETTINGS.AI_AGENTS.TABS.SETUP"},{key:"logs",labelKey:"ACCOUNT_SETTINGS.AI_AGENTS.TABS.LOGS"}],this.activeTab=O("setup")}get isExpandiReseller(){return this.global.reseller.id===1}selectTab(e){this.activeTab.set(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=A({type:t,selectors:[["exp-ai-agents"]],inputs:{account:"account"},decls:15,vars:8,consts:[["id","ai-agents","data-testid","ai-agents",1,"fadeIn"],[1,"page-header"],[1,"title"],[1,"subtitle"],["data-testid","ai-agents-docs-link","target","_blank","rel","noopener noreferrer",1,"docs-link",3,"href"],[1,"tabs"],["type","button",1,"tab",3,"active"],[1,"content"],[3,"account"],["type","button",1,"tab",3,"click"]],template:function(n,o){n&1&&(s(0,"div",0)(1,"header",1)(2,"h5",2),p(3),d(4,"translate"),l(),s(5,"p",3),p(6),d(7,"translate"),S(8,Nc,3,4,"a",4),l()(),s(9,"nav",5),X(10,Dc,3,6,"button",6,Ac),l(),s(12,"div",7),S(13,kc,1,1,"exp-mcp-setup",8)(14,Lc,1,0,"exp-mcp-logs"),l()()),n&2&&(r(3),x(g(4,4,"ACCOUNT_SETTINGS.AI_AGENTS.TITLE")),r(3),M(" ",g(7,6,"ACCOUNT_SETTINGS.AI_AGENTS.SUBTITLE")," "),r(2),y(o.isExpandiReseller?8:-1),r(2),ee(o.tabs),r(3),y(o.activeTab()==="setup"?13:14))},dependencies:[wr,Sr,D],styles:['#ai-agents[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;max-width:742px;padding:16px;margin:0 auto}@media all and (width <= 991px){#ai-agents[_ngcontent-%COMP%]{padding:0}#ai-agents[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{display:none!important}}#ai-agents[_ngcontent-%COMP%]   .tabs[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:16px;margin-top:8px;border-bottom:1px solid #DFE4EC}#ai-agents[_ngcontent-%COMP%]   .tab[_ngcontent-%COMP%]{position:relative;padding:0 0 8px;background:transparent;border:none;cursor:pointer;font-family:geist,sans-serif;font-size:14px;font-weight:600;line-height:16px;
9color:#77808c}#ai-agents[_ngcontent-%COMP%]   .tab[_ngcontent-%COMP%]:after{content:"";position:absolute;left:0;bottom:-1px;width:100%;height:2px;border-radius:4px 4px 0 0;background:transparent}#ai-agents[_ngcontent-%COMP%]   .tab[_ngcontent-%COMP%]:hover, #ai-agents[_ngcontent-%COMP%]   .tab.active[_ngcontent-%COMP%]{color:#303845}#ai-agents[_ngcontent-%COMP%]   .tab.active[_ngcontent-%COMP%]:after{background:#303845}#ai-agents[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-top:16px}',".tab-container[_ngcontent-%COMP%]{max-width:656px;margin:0 auto;padding:16px}@media all and (width <= 991px){.tab-container[_ngcontent-%COMP%]{padding:0}}.page-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.title[_ngcontent-%COMP%]{margin:0;font-family:geist,sans-serif;font-weight:600;font-size:24px;line-height:28px;color:#191d23;display:flex;align-items:center;justify-content:space-between;min-height:32px}@media all and (width <= 991px){.title[_ngcontent-%COMP%]{min-height:inherit}.title[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:none}}.subtitle[_ngcontent-%COMP%]{margin:0;font-family:geist,sans-serif;font-size:14px;font-weight:400;line-height:16px;color:#77808c}.docs-link[_ngcontent-%COMP%]{color:#105670;text-decoration:none}.docs-link[_ngcontent-%COMP%]:hover{text-decoration:underline}.tab-description[_ngcontent-%COMP%]{margin-top:12px;margin-bottom:0;min-width:100%}.btn-primary[_ngcontent-%COMP%]{padding:0 18px;height:36px;display:flex;align-items:center;font-weight:500;font-size:14px;line-height:20px;border-radius:12px}h2[_ngcontent-%COMP%]{margin:0;color:var(--primaryText-color);font-weight:500!important;font-size:18px!important;line-height:28px!important;display:flex;align-items:center;justify-content:space-between;min-height:32px}@media all and (width <= 991px){h2[_ngcontent-%COMP%]{min-height:inherit;line-height:0!important}h2[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:none}}h4[_ngcontent-%COMP%]{font-weight:400!important;font-size:16px!important;line-height:24px!important;margin:0;color:var(--primaryText-color)}"],changeDetection:0})}}return t})()});function Uc(t,i){t&1&&T(0,"exp-content-loader")}function Bc(t,i){t&1&&ne(0)}function Gc(t,i){t&1&&ne(0)}function Vc(t,i){if(t&1){let e=N();s(0,"div",19),C("click",function(){b(e);let o=f(2).$implicit,a=f(2);return P(a.onTabChange(o.ariaLabel))}),J(1,Bc,1,0,"ng-container",20)(2,Gc,1,0,"ng-container",20),l()}if(t&2){let e=f(2).$implicit;f(2);let n=G(7),o=G(9);r(),u("ngTemplateOutlet",n)("ngTemplateOutletContext",de(4,xt,e)),r(),u("ngTemplateOutlet",o)("ngTemplateOutletContext",de(6,xt,e))}}function zc(t,i){t&1&&ne(0)}function qc(t,i){if(t&1&&J(0,zc,1,0,"ng-container",20),t&2){let e=f(2).$implicit;f(2);let n=G(11);u("ngTemplateOutlet",n)("ngTemplateOutletContext",de(2,xt,e.body))}}function Wc(t,i){if(t&1&&(s(0,"mat-tab",16),J(1,Vc,3,8,"ng-template",17)(2,qc,1,4,"ng-template",18),l()),t&2){let e=f().$implicit;hi("aria-label",e.ariaLabel)}}function Kc(t,i){if(t&1&&S(0,Wc,3,1,"mat-tab",16),t&2){let e=i.$implicit;y(e.condition?0:-1)}}function Hc(t,i){if(t&1&&(s(0,"mat-tab-group",15,11),X(2,Kc,1,1,null,null,Nr),l()),t&2){let e=f();u("@.disabled",!0)("selectedIndex",e.selectedTab()),r(2),ee(e.menuTabs())}}function jc(t,i){t&1&&ne(0)}function $c(t,i){t&1&&ne(0)}function Qc(t,i){t&1&&ne(0)}function Yc(t,i){if(t&1&&(s(0,"mat-expansion-panel",21)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),J(3,jc,1,0,"ng-container",20),l(),s(4,"mat-panel-description"),J(5,$c,1,0,"ng-container",20),l()(),J(6,Qc,1,0,"ng-container",20),l()),t&2){let e=f(),n=e.$implicit,o=e.$index;f(2);let a=G(7),c=G(9),m=G(11);u("expanded",o===0),r(3),u("ngTemplateOutlet",a)("ngTemplateOutletContext",de(7,xt,n)),r(2),u("ngTemplateOutlet",c)("ngTemplateOutletContext",de(9,xt,n)),r(),u("ngTemplateOutlet",m)("ngTemplateOutletContext",de(11,xt,n.body))}}function Jc(t,i){if(t&1&&S(0,Yc,7,13,"mat-expansion-panel",21),t&2){let e=i.$implicit;y(e.condition?0:-1)}}function Zc(t,i){if(t&1&&(s(0,"mat-accordion"),X(1,Jc,1,1,null,null,Nr),l()),t&2){let e=f();r(),ee(e.menuTabs())}}function Xc(t,i){if(t&1&&(s(0,"span",23),T(1,"exp-icon",24),l()),t&2){let e=f().$implicit;r(),u("name",e.matIcon)}}function ep(t,i){if(t&1&&(s(0,"div",22),S(1,Xc,2,1,"span",23),p(2),d(3,"translate"),l()),t&2){let e=i.$implicit;r(),y(e.matIcon?1:-1),r(),M(" ",g(3,2,e.title)," ")}}function tp(t,i){if(t&1&&(s(0,"span",25),p(1),d(2,"translate"),l()),t&2){let e=i.$implicit;r(),x(g(2,1,e.description))}}function np(t,i){t&1&&ne(0)}function ip(t,i){if(t&1&&J(0,np,1,0,"ng-container",26),t&2){f(2);let e=G(13);u("ngTemplateOutlet",e)}}function op(t,i){t&1&&ne(0)}function ap(t,i){if(t&1&&J(0,op,1,0,"ng-container",26),t&2){f(2);let e=G(15);u("ngTemplateOutlet",e)}}function rp(t,i){t&1&&ne(0)}function sp(t,i){if(t&1&&J(0,rp,1,0,"ng-container",26),t&2){f(2);let e=G(17);u("ngTemplateOutlet",e)}}function lp(t,i){t&1&&ne(0)}function cp(t,i){if(t&1&&J(0,lp,1,0,"ng-container",26),t&2){f(2);let e=G(19);u("ngTemplateOutlet",e)}}function pp(t,i){t&1&&ne(0)}function dp(t,i){if(t&1&&J(0,pp,1,0,"ng-container",26),t&2){f(2);let e=G(21);u("ngTemplateOutlet",e)}}function mp(t,i){t&1&&ne(0)}function gp(t,i){if(t&1&&J(0,mp,1,0,"ng-container",26),t&2){f(2);let e=G(23);u("ngTemplateOutlet",e)}}function up(t,i){t&1&&ne(0)}function fp(t,i){if(t&1&&J(0,up,1,0,"ng-container",26),t&2){f(2);let e=G(25);u("ngTemplateOutlet",e)}}function _p(t,i){t&1&&ne(0)}function hp(t,i){if(t&1&&J(0,_p,1,0,"ng-container",26),t&2){f(2);let e=G(27);u("ngTemplateOutlet",e)}}function Cp(t,i){t&1&&ne(0)}function xp(t,i){if(t&1&&J(0,Cp,1,0,"ng-container",26),t&2){f(2);let e=G(13);u("ngTemplateOutlet",e)}}function Tp(t,i){if(t&1&&S(0,ip,1,1,"ng-container")(1,ap,1,1,"ng-container")(2,sp,1,1,"ng-container")(3,cp,1,1,"ng-container")(4,dp,1,1,"ng-container")(5,gp,1,1,"ng-container")(6,fp,1,1,"ng-container")(7,hp,1,1,"ng-container")(8,xp,1,1,"ng-container"),t&2){let e,n=i.$implicit;y((e=n)==="settingsBody"?0:e==="passwordBody"?1:e==="addressBody"?2:e==="notificationsBody"?3:e==="twoFaBody"?4:e==="workspacesBody"?5:e==="apiBody"?6:e==="aiAgentsBody"?7:8)}}function Sp(t,i){if(t&1){let e=N();s(0,"exp-profile-settings",28),C("profileEmit",function(o){b(e);let a=f(2);return P(a.updateAccount(o,"user_information"))}),l()}t&2&&u("account",i)}function yp(t,i){if(t&1&&S(0,Sp,1,1,"exp-profile-settings",27),t&2){let e,n=f();y((e=n.account())?0:-1,e)}}function Op(t,i){t&1&&T(0,"exp-profile-password",29)}function Mp(t,i){t&1&&T(0,"exp-social-password-reset",29)}function bp(t,i){if(t&1&&S(0,Op,1,0,"exp-profile-password",29)(1,Mp,1,0,"exp-social-password-reset",29),t&2){let e=f();y(e.hasPassword()?0:1)}}function Pp(t,i){if(t&1){let e=N();
9s(0,"exp-profile-address",31),C("profileEmit",function(o){b(e);let a=f(3);return P(a.updateAccount(o,"user_address"))}),l()}if(t&2){let e=f();u("userStripe",i)("account",e)}}function Ep(t,i){if(t&1&&S(0,Pp,1,2,"exp-profile-address",30),t&2){let e,n=f(2);y((e=n.userStripe())?0:-1,e)}}function wp(t,i){if(t&1&&S(0,Ep,1,1),t&2){let e,n=f();y((e=n.account())?0:-1,e)}}function vp(t,i){if(t&1){let e=N();s(0,"exp-account-notifications",28),C("profileEmit",function(o){b(e);let a=f(2);return P(a.updateAccount(o,"user_notifications"))}),l()}t&2&&u("account",i)}function Ip(t,i){if(t&1&&S(0,vp,1,1,"exp-account-notifications",27),t&2){let e,n=f();y((e=n.account())?0:-1,e)}}function Ap(t,i){t&1&&T(0,"exp-two-factor-auth",29)}function Np(t,i){t&1&&T(0,"exp-workspaces")}function Dp(t,i){t&1&&T(0,"exp-api-keys",32),t&2&&u("user",i)}function kp(t,i){if(t&1&&S(0,Dp,1,1,"exp-api-keys",32),t&2){let e,n=f();y((e=n.account())?0:-1,e)}}function Lp(t,i){t&1&&T(0,"exp-ai-agents",33),t&2&&u("account",i)}function Rp(t,i){if(t&1&&S(0,Lp,1,1,"exp-ai-agents",33),t&2){let e,n=f();y((e=n.account())?0:-1,e)}}var Fc,xt,Nr,ff,Fp=z(()=>{w();Li();Z();ce();Wt();Te();ge();Ui();Fo();he();ye();So();zo();Wo();Ho();Jo();Xo();sr();pr();mr();Ar();Fr();w();Vt();Re();Hr();Fo();xo();Z();Fc=["settingsTabGroup"],xt=t=>({$implicit:t}),Nr=(t,i)=>i.ariaLabel;ff=(()=>{class t{constructor(){this.accountService=h(Le),this.translate=h(ot),this.notificationService=h(V),this.titleService=h(Di),this.activatedRoute=h(Fi),this.global=h(j),this.document=h(mi),this.destroyRef=h(k),this.router=h(zt),this.settingsTabGroup=Ot("settingsTabGroup"),this.account=O(void 0),this.userStripe=O(void 0),this.isContent=O(!1),this.selectedTab=O(0),this.documentWidth=O(0),this.hasPassword=O(!1),this.menuTabs=O([]),this.resellerIsUsingStripe=!1}onWindowResize(e){this.documentWidth.set(e.target.innerWidth)}ngOnInit(){this.documentWidth.set(this.document.body.offsetWidth),this.global.pageTitle$.next({heading:"HEADER_MENU.ACCOUNT_SETTINGS"}),this.hasPassword.set(this.global.current_loggedin_user.has_password),this.titleService.setTitle(this.translate.instant("HEADER_MENU.ACCOUNT_SETTINGS")),this.resellerIsUsingStripe=this.global.reseller.use_stripe,this.initAccount()}ngAfterViewInit(){setTimeout(()=>{this.activatedRoute.queryParams.pipe(E(this.destroyRef)).subscribe(e=>{e?.tabName&&this.selectTab(e?.tabName)})})}onTabChange(e){this.router.navigate([],{relativeTo:this.activatedRoute,queryParams:{tabName:e},queryParamsHandling:"merge"}).then()}updateAccount(e,n){n&&(this.isContent.set(!1),this.selectTab(n)),this.accountService.updateProfile(e).pipe(E(this.destroyRef)).subscribe({next:o=>{this.global.setUserAccount(o,!0),this.notificationService.translatedSuccess("NOTIFICATIONS.PROFILE_UPDATED_SUCCESSFULLY"),this.isContent.set(!0)},error:()=>{this.notificationService.translatedError("NOTIFICATIONS.SOMETHING_WENT_WRONG")}})}initAccount(){this.global.userChanged$.pipe(E(this.destroyRef)).subscribe({next:e=>{this.account.set(e),this.userStripe.set(e.stripe),this.isContent.set(!0),this.initMenu()},error:()=>{this.notificationService.translatedError("ACCOUNT_SETTINGS.SOMETHING_WENT_WRONG_WITH_GETTING_PROFILE")}})}initMenu(){this.menuTabs.set([{ariaLabel:"user_information",body:"settingsBody",condition:!0,description:"ACCOUNT_SETTINGS.ACCOUNT_DESCR",matIcon:"perm_identity",title:"ACCOUNT_SETTINGS.PROFILE_SETTINGS"},{ariaLabel:"user_password",body:"passwordBody",condition:!0,description:"ACCOUNT_SETTINGS.ACCOUNT_PASSWORD_DESCR",matIcon:"lock",title:"GENERAL.PASSWORD"},{ariaLabel:"user_address",body:"addressBody",condition:!!this.account()&&!!this.userStripe()&&this.resellerIsUsingStripe,description:"ACCOUNT_SETTINGS.ACCOUNT_ADDRESS_DESCR",matIcon:"home",title:"ACCOUNT_SETTINGS.ADDRESS"},{ariaLabel:"user_notifications",body:"notificationsBody",condition:!!this.account(),description:"ACCOUNT_SETTINGS.NOTIFICATIONS.ACCOUNT_NOTIFICATIONS_DESCR",matIcon:"notifications",title:"ACCOUNT_SETTINGS.NOTIFICATIONS.ACCOUNT_NOTIFICATIONS_TITLE"},{ariaLabel:"user_two_factor",body:"twoFaBody",condition:!0,description:"ACCOUNT_SETTINGS.2FA_DESCR",matIcon:"security",title:"ACCOUNT_SETTINGS.2FA"},{ariaLabel:"workspaces",body:"workspacesBody",condition:!0,description:"ACCOUNT_SETTINGS.WORKSPACES.DESCRIPTION",matIcon:"layers",title:"ACCOUNT_SETTINGS.WORKSPACES.TITLE"},{ariaLabel:"api_keys",body:"apiBody",condition:!0,description:"ACCOUNT_SETTINGS.API_DESC",matIcon:"vpn_key",title:"API"},{ariaLabel:"ai_agents",body:"aiAgentsBody",condition:this.global.hasFeatureFlag(Gi.MCPAccess),description:"ACCOUNT_SETTINGS.AI_AGENTS.TAB_DESCRIPTION",matIcon:"smart_toy",title:"ACCOUNT_SETTINGS.AI_AGENTS.TAB_TITLE"}])}selectTab(e){let n=this.settingsTabGroup();if(n?._tabs._results.length){let o=n._tabs._results.findIndex(a=>a.ariaLabel===e);this.selectedTab.set(o!==-1?o:0)}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=A({type:t,selectors:[["exp-account-settings"]],viewQuery:function(n,o){n&1&&St(o.settingsTabGroup,Fc,5),n&2&&Bt()},hostBindings:function(n,o){n&1&&C("resize",function(c){return o.onWindowResize(c)},ui)},decls:28,vars:3,consts:[["menuTitle",""],["menuDescription",""],["contentBody",""],["settingsBody",""],["passwordBody",""],["addressBody",""],["notificationsBody",""],["twoFaBody",""],["workspacesBody",""],["apiBody",""],["aiAgentsBody",""],["settingsTabGroup",""],["id","account-settings"],[1,"page-content"],[1,"tab-content"],[1,"vertical-tab-group",3,"selectedIndex"],[3,"aria-label"],["mat-tab-label",""],["matTabContent",""],[1,"wrap-content","exp-hover-sync",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"expanded"],[1,"tab-title"],[1,"tab-icon"],["size","lg",3,"name"],[1,"tab-description"],[4,"ngTemplateOutlet"],[1,"fadeIn",3,"account"],[1,"fadeIn",3,"profileEmit","account"],[1,"fadeIn"],[1,"fadeIn",3,"userStripe","account"],[1,"fadeIn",3,"profileEmit","userStripe","account"],[3,"user"],[3,"account"]],template:function(n,o){n&1&&(S(0,Uc,1,0,"exp-content-loader"),s(1,"div",12)(2,"div",13)(3,"div",14),S(4,Hc,4,2,"mat-tab-group",15),S(5,Zc,3,0,"mat-accordion"),l()()(),J(6,ep,4,4,"ng-template",null,0,me)(8,tp,3,3,"ng-template",null,1,me)(10,Tp,9,1,"ng-template",null,2,me)(12,yp,1,1,"ng-template",null,3,me)(14,bp,2,1,"ng-template",null,4,me)(16,wp,1,1,"ng-template",null,5,me)(18,Ip,1,1,"ng-template",null,6,me)(20,Ap,1,0,"ng-template",null,7,me)(22,Np,1,0,"ng-template",null,8,me)(24,kp,1,1,"ng-template",null,9,me)(26,Rp,1,1,"ng-template",null,10,me)),n&2&&(y(o.isContent()?-1:0),r(4),y(o.documentWidth()>991&&o.isContent()?4:-1),r(),y(o.documentWidth()<=991?5:-1))},dependencies:[W,wi,U,$,go,uo,fo,_o,Ro,Lo,Ao,No,ko,Do,en,Zt,Vo,qo,Ko,Yo,Zo,rr,cr,dr,Ir,D],styles:["#account-settings[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-width:100%;height:100%;overflow:hidden;flex:1 1 auto;padding:0 16px}@media all and (max-width: 991px){#account-settings[_ngcontent-%COMP%]{padding:0 12px}}#account-settings[_ngcontent-%COMP%]   .page-toolbar[_ngcontent-%COMP%]{width:100%}#account-settings[_ngcontent-%COMP%]   .page-toolbar[_ngcontent-%COMP%]   .page-toolbar-container[_ngcontent-%COMP%]   .filter-buttons[_ngcontent-%COMP%]{display:flex;align-items:center;min-width:40%;justify-content:flex-end}#account-settings[_ngcontent-%COMP%]   .page-content[_ngcontent-%COMP%]{width:100%;overflow:hidden;position:relative;height:100%;border:1px solid transparent;border-radius:12px 12px 0 0;box-shadow:0 0 10px #d3d8df4d}#account-settings[_ngcontent-%COMP%]   .page-content[_ngcontent-%COMP%]   .page-content-container[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;flex-direction:column;overflow:hidden;
9background:var(--mainBackground-color);border-radius:12px 12px 0 0}#account-settings[_ngcontent-%COMP%]   .page-content[_ngcontent-%COMP%]   .page-content-container[_ngcontent-%COMP%]   .page-content-data[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;overflow:hidden;position:relative}#account-settings[_ngcontent-%COMP%]   .page-content[_ngcontent-%COMP%]   .page-content-container[_ngcontent-%COMP%]   .page-content-data[_ngcontent-%COMP%]   .left-element[_ngcontent-%COMP%]{display:block;height:100%;overflow:hidden}#account-settings[_ngcontent-%COMP%]   .page-content[_ngcontent-%COMP%]   .page-content-container[_ngcontent-%COMP%]   .page-content-data[_ngcontent-%COMP%]   .right-element[_ngcontent-%COMP%]{width:100%;height:100%;overflow:hidden;border-left:1px solid var(--blockBorders-color)}#account-settings[_ngcontent-%COMP%]   .page-content[_ngcontent-%COMP%]   .tab-content[_ngcontent-%COMP%]{overflow:hidden;background:var(--mainBackground-color);border-radius:12px 12px 0 0;box-shadow:0 0 10px #d3d8df4d;height:100%}#account-settings   .dark-theme[_nghost-%COMP%]   .page-content[_ngcontent-%COMP%], .dark-theme   [_nghost-%COMP%]   .page-content[_ngcontent-%COMP%]{box-shadow:none!important}#account-settings[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap;padding:10px 12px;min-width:100%!important}#account-settings[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]   .selected-counts[_ngcontent-%COMP%]{font-weight:500;font-size:14px;line-height:20px;color:var(--secondaryText-color);display:block;margin-right:15px}#account-settings[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]   .filter-field-parent[_ngcontent-%COMP%]{padding:5px 0}#account-settings[_ngcontent-%COMP%]   .page-toolbar[_ngcontent-%COMP%]{width:100%;padding:0 16px}@media all and (width <= 991px){#account-settings[_ngcontent-%COMP%]   .page-toolbar[_ngcontent-%COMP%]{padding:0 12px}}#account-settings[_ngcontent-%COMP%]   .page-toolbar[_ngcontent-%COMP%]   .page-toolbar-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:relative;z-index:100}#account-settings[_ngcontent-%COMP%]   .page-toolbar[_ngcontent-%COMP%]   .page-toolbar-container[_ngcontent-%COMP%]   .page-header-actions[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:8px 0;min-height:58px}#account-settings[_ngcontent-%COMP%]   .page-toolbar[_ngcontent-%COMP%]   .page-toolbar-container[_ngcontent-%COMP%]   .filter-buttons[_ngcontent-%COMP%]{display:flex;align-items:center}@media all and (width <= 991px){#account-settings[_ngcontent-%COMP%]   .page-content[_ngcontent-%COMP%]{padding:0 12px}}#account-settings[_ngcontent-%COMP%]   .page-content[_ngcontent-%COMP%]   .tab-content[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;background:var(--mainBackground-color);box-shadow:0 0 10px #d3d8df4d;border-radius:12px 12px 0 0;overflow:auto;min-height:calc(100vh - 130px)}#account-settings   .dark-theme[_nghost-%COMP%]   .tab-content[_ngcontent-%COMP%], .dark-theme   [_nghost-%COMP%]   .tab-content[_ngcontent-%COMP%]{box-shadow:none!important}#account-settings[_ngcontent-%COMP%]   .mat-tab-group[_ngcontent-%COMP%]{display:flex}#account-settings[_ngcontent-%COMP%]   .mat-tab-group[_ngcontent-%COMP%]   .mat-tab-header[_ngcontent-%COMP%]   .mat-tab-labels[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start}mat-expansion-panel[_ngcontent-%COMP%]{background:var(--mainBackground-color)}.fadeIn[_ngcontent-%COMP%]{display:block}.vertical-tab-group[_ngcontent-%COMP%]{height:100%}"],changeDetection:0})}}return t})()});Fp();export{ff as AccountSettingsComponent};

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.