1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="7ff54782-b1b0-5349-8aaa-7b77fb27c2ab")}catch(e){}}(); 3import{a as Nt,c as Ti,y as No,z as Uo}from"./chunk-BG6DHE7H.js";import{a as lt,b as Le,c as et,d as gn}from"./chunk-SFH3RU2X.js";import{a as jo,b as un,c as Ho}from"./chunk-BWPEJOYY.js";import"./chunk-KNUKN5UP.js";import{a as Lo}from"./chunk-BD3C2TDJ.js";import{a as Ro}from"./chunk-XT4FNP6Y.js";import{a as Di}from"./chunk-UKYVYFHQ.js";import"./chunk-PX7CC6C7.js";import{a as Bo}from"./chunk-PRI3D6CE.js";import"./chunk-4WGNXEZH.js";import{a as ki}from"./chunk-NAU6M7DC.js";import"./chunk-BTHTUPUF.js";import{a as Ve}from"./chunk-PHNQWCAQ.js";import{a as Ei}from"./chunk-BFGMM5EH.js";import{H as Ii}from"./chunk-WHK64ZUQ.js";import"./chunk-UOPNDS46.js";import"./chunk-REDQK6LL.js";import{a as Gt,b as Vo}from"./chunk-XKC6U7KO.js";import{b as Oi,f as zo}from"./chunk-ICJ4OYTG.js";import"./chunk-OD4XUPKL.js";import"./chunk-GV6YIY7T.js";import"./chunk-3Q4ENG64.js";import"./chunk-TZG57MXV.js";import"./chunk-6UKZOYTK.js";import{c as Do,d as Ao}from"./chunk-GRLQ2JNI.js";import"./chunk-7OEBSWIG.js";import"./chunk-74XSALDF.js";import{a as Fo}from"./chunk-Y2P56MT7.js";import{a as Pi,b as Mi}from"./chunk-TN63NN3M.js";import{$ as vi,$b as Po,$d as at,C as mi,Ed as To,F as $r,Fc as Mo,Fd as aa,G as an,Gc as ea,H as gi,Ib as Ge,Id as Ze,J as to,Jb as Bt,Jc as Rt,Jd as Wt,K as io,Kc as dn,Kd as Lt,Lc as Oo,Ld as mn,Mc as ta,N as no,Od as xe,P as ln,Pd as _e,Q as vt,Qd as we,R as Vt,Ra as bo,S as sn,Sa as Co,T as cn,Ta as yo,Ua as wo,Z as _i,Zb as So,Zc as Eo,_ as xi,_b as Jr,_c as ia,_d as he,ac as Zr,ae as ve,bd as ko,be as ft,cd as na,da as Re,ea as ho,ee as Y,fe as be,ga as _o,ha as bi,hd as wi,ia as Ae,ib as Ft,id as oa,ja as Ci,jb as pn,la as yi,qa as xo,ra as vo,rd as ra,sa as Xr,yd as Si,zd as Io}from"./chunk-3DSPHW6V.js";import{A as Kr,O as ee,P as ye,X as ie,Y as Oe,b as Qr,c as oo,z as ro}from"./chunk-63QE6F3C.js";import{c as ct,d as ei,f as Qn,k as $n,l as Kn,n as Se,r as gt}from"./chunk-J3ZCYF7X.js";import"./chunk-N6HKC5YM.js";import{c as fe,i as rt,j as me,k as We}from"./chunk-EHPICUXU.js";import{$b as fi,A as rn,C as Pe,Cb as ut,D as Zn,Db as B,Eb as Je,F as eo,Fb as ui,Hb as zt,Ib as ao,Jb as lo,L as At,Lb as so,M as Me,Mb as co,N as di,Nb as ue,O as Be,Sb as ot,Vb as po,Yb as mo,bc as go,fc as hi,kc as pe,lc as uo,mc as fo,rc as te,t as Xn,v as Ce,y as Jn}from"./chunk-NZAURXIC.js";import{D as F,R as Yn,S as pi,V as on,b as Hn,g as qn,i as Xe,k as le,l as N,q as ci,s as Wn,u as Gn,y as U}from"./chunk-PDBQSBW2.js";import{$c as A,Ab as ii,Bb as ge,Ca as De,Cb as An,Da as Ht,E as jt,Fb as Vn,H as Zi,Ib as l,Ja as P,Jb as x,Ka as tn,Lc as u,Ld as jn,Ma as In,Md as si,Nc as p,P as On,Rb as nn,Rc as Bn,Sc as ai,Tc as se,Ua as dt,Ub as ni,Uc as re,V as En,Va as f,Vc as ae,Wa as h,Wb as Et,Xa as Tn,Ya as Dn,Yc as Ke,Z as kn,Zb as W,Zc as s,Zd as I,_c as E,ad as kt,bd as Rn,cd as X,dd as J,ec as b,ed as Z,f as je,fb as q,fc as qt,fd as It,gd as M,hc as c,hd as Ln,ic as mt,id as ce,jc as Qe,jd as Tt,kd as Nn,lc as zn,ma as pt,oc as $e,od as Dt,pc as Fn,pd as li,qd as Un,ra as Ot,rc as oi,sa as ti,sc as ri,tc as o,uc as r,ud as He,vc as g,wc as R,xa as Fe,xc as L,ya as en,yc as nt,zc as y}from"./chunk-RX45F3VG.js";import{a as de,b as qe}from"./chunk-XTLLHG7S.js";import"./chunk-3YV6UUBL.js";import"./chunk-JLENAXOB.js";import"./chunk-2QIXGXOC.js";import"./chunk-SNF2N7IK.js";import"./chunk-NM7LVQTP.js";import"./chunk-IK6B3JC3.js";import{a as K,b as it,j as Ji,m as C}from"./chunk-C6VPWJCA.js";I();ft();Wt();var qo=(()=>{class n{constructor(e,t){this.planHelperService=e,this.premiumPlanService=t;}canActivate(e,t){return C(this,null,function*(){return this.planHelperService.isPremiumRoute()&&!(yield this.planHelperService.hasPremiumPlan())?(this.premiumPlanService.openPricingPage(),!1):!0;});}static{this.ɵfac=function(t){return new(t||n)(De(ve),De(Ze));};}static{this.ɵprov=Fe({token:n,factory:n.ɵfac,providedIn:"root"});}}return n;})();gt();var G=function(n){return n[n.MY_ACCOUNT=0]="MY_ACCOUNT",n[n.MY_BUSINESS=1]="MY_BUSINESS",n[n.DOMAIN=2]="DOMAIN",n[n.PREFERENCES=3]="PREFERENCES",n[n.AFFILIATION=4]="AFFILIATION",n[n.EXPERTS=5]="EXPERTS",n[n.TRASH_BIN=6]="TRASH_BIN",n[n.BILLING=7]="BILLING",n[n.SSO_SETTINGS=8]="SSO_SETTINGS",n[n.LOGIN_PRIVACY=9]="LOGIN_PRIVACY",n[n.EMAIL_NOTIFICATIONS=10]="EMAIL_NOTIFICATIONS",n;}(G||{}),Q=function(n){return n[n.MY_ACCOUNT=0]="MY_ACCOUNT",n[n.MY_BUSINESS=1]="MY_BUSINESS",n[n.DOMAIN=2]="DOMAIN",n[n.PREFERENCES=3]="PREFERENCES",n[n.AFFILIATION_READY=4]="AFFILIATION_READY",n[n.AFFILIATION_BECAME=5]="AFFILIATION_BECAME",n[n.EXPERTS_READY=6]="EXPERTS_READY",n[n.EXPERTS_BECAME=7]="EXPERTS_BECAME",n[n.TRASH_BIN=8]="TRASH_BIN",n[n.BILLING=9]="BILLING",n[n.SSO_Settings=10]="SSO_Settings",n[n.PROFILE=11]="PROFILE",n[n.LOGIN_PRIVACY=12]="LOGIN_PRIVACY",n[n.EMAIL_NOTIFICATIONS=13]="EMAIL_NOTIFICATIONS",n[n.REFERRALS=14]="REFERRALS",n[n.SINGLE_SIGN_ON=15]="SINGLE_SIGN_ON",n;}(Q||{});function Ee(n){switch(n){case Q.MY_ACCOUNT:return"My Account";case Q.MY_BUSINESS:return"My Business";case Q.DOMAIN:return"Domain";case Q.PREFERENCES:return"Preferences";case Q.AFFILIATION_READY:return"Affiliation";case Q.AFFILIATION_BECAME:return"Become an Affiliate";case Q.EXPERTS_READY:return"BIGVU Expert";case Q.EXPERTS_BECAME:return"Become an Expert";case Q.TRASH_BIN:return"Deleted Files";case Q.BILLING:return"Billing";case Q.SSO_Settings:return"SSO Settings";case Q.PROFILE:return"Profile";case Q.LOGIN_PRIVACY:return"Account & Security";case Q.EMAIL_NOTIFICATIONS:return"Email & Notifications";
3case Q.REFERRALS:return"Referrals";case Q.SINGLE_SIGN_ON:return"Single sign-on (SSO)";}}var Wo=[G.DOMAIN],Go=[G.SSO_SETTINGS],Yo=["/profile/my-business","/profile/domain","/profile/preferences","/profile/affiliate","/profile/experts","/profile/trash-bin","/profile/billing","/profile/sso-setting","/profile/login-privacy","/profile/email-notifications"],Ct="profile",ne=function(n){return n.home="",n.extra="coupon/:extra",n.business="my-business",n.business_affiliate="my-business/affiliate",n.domain="domain",n.preferences="preferences",n.affiliate="affiliate",n.experts="experts",n.sso="sso-setting",n.trashBin="trash-bin",n.billing="billing",n.loginPrivacy="login-privacy",n.emailNotifications="email-notifications",n;}(ne||{});var Vi={ADD_SEATS:"https://calendly.com/bigvu-success-team/one-on-one-coaching-call?utm_source=add-seats&utm_medium=web",CANCEL_COACHING:"https://calendly.com/bigvu-success-team/one-on-one-coaching-call?utm_source=cancel&utm_medium=web"};ei();cn();bi();yi();te();I();F();ft();at();gt();we();Wt();be();dn();Io();var pa=(n,m)=>m.type;function da(n,m){if(n&1){let e=y();o(0,"lib-button",7),u("clicked",function(){f(e);let i=p();return h(i.onUpgradeClick());}),s(1),r();}if(n&2){let e=p();c("leftIconContent",e.upgradeButtonIconPath)("preserveIconColor",!0),l(),A(" ",e.upgradeButtonText," ");}}function ma(n,m){if(n&1){let e=y();o(0,"lib-submenu-item",9),u("clicked",function(){let i=f(e).$index,a=p(2);return h(a.setCurrentTab(i));}),r();}if(n&2){let e=m.$implicit,t=p(2);c("state",t.getSubmenuState(e))("title",e.name)("hasIcon",!0)("iconSrc",e.iconSrc)("iconClass",e.iconClass);}}function ga(n,m){if(n&1&&(o(0,"nav",4),oi(1,ma,1,5,"lib-submenu-item",8,pa),r()),n&2){let e=p();l(),ri(e.menuTabs);}}function ua(n,m){n&1&&(o(0,"div",6),g(1,"div",10),r());}var Qo=(()=>{class n extends Lo{get TabsType(){return G;}constructor(e,t,i,a,d,_,w,v,O,D,j,k,z,$){super(w),this.locationService=e,this.profileDataHelperService=t,this.planHelperService=i,this.userHelperService=a,this.router=d,this.route=_,this.dialogService=w,this.profileChangeService=v,this.expertObserverService=O,this.premiumPlanService=D,this.eventsService=j,this.workspacePermissionService=k,this.paymentService=z,this.cello=$,this._DEFAULT_TAB_TYPE=G.MY_ACCOUNT,this.dismissAction=!0,this.isReferralLoading=!1,this.HOME_ICON_SVG='<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4.5 19.4409V8.31364L11.25 3.01182C11.6945 2.66273 12.3056 2.66273 12.75 3.01182L19.5 8.31364V19.4409C19.5 20.1639 18.9404 20.75 18.25 20.75H14.5V14.2045C14.5 13.4816 13.9404 12.8955 13.25 12.8955H10.75C10.0597 12.8955 9.5 13.4816 9.5 14.2045V20.75H5.75C5.05968 20.75 4.5 20.1639 4.5 19.4409Z" fill="currentColor"/></svg>',this.breadcrumbs=[{text:"Home",leftIconContent:this.HOME_ICON_SVG},{text:"Profile",iconLeft:!1}],this.showUpgradeButton=!1,this.upgradeButtonText="",this.upgradeButtonIconPath="",this.isProPlan=!1,this.setAffiliateRegistrationSuccessListener=()=>{this.affiliateRegistrationSuccessSubscription=this.profileDataHelperService.affiliateRegistrationSuccess$.subscribe(S=>{S&&(this.affiliationTabName=Ee(Q.REFERRALS),this.replaceTabName(G.AFFILIATION,this.affiliationTabName));});},this.setExpertChangeListener=()=>{this.expertChangeSubscription=this.profileDataHelperService.expertChanged$.subscribe(S=>{this.setExpertsTab(S),this.replaceTabName(G.EXPERTS,this.expertsTabName);});},this.setChildComponentChangeListener=()=>{this.childComponentChangeListener=this.profileChangeService.hasChanges$.subscribe(this.setHasChanges);},this.setHasChanges=S=>{this.hasChanges=S.has,this.confirmationAction=S.action,S.dismissAction===!0||S.dismissAction===void 0?this.dismissAction=!0:S.dismissAction===!1&&(this.dismissAction=!1),this.setDialogText(S.dialogText);},this.openConfirmationDialog=S=>{this.canDeactivateSubject=S,this.dialogHelperService.showNewConfirmationDialog({title:"Discard changes?",msg:"You have unsaved changes. If you close this window, they'll be lost.",confirmationText:"Discard changes",cancellationText:"Keep editing",confirmButtonDestructive:!0,onSubmit:()=>{this.profileChangeService.setHasChanges(!1),this.dialogHelperService.close(),this.canDeactivateSubject.next(!0);},onClose:()=>{this.dialogHelperService.close(),this.canDeactivateSubject.next(!1);}});},this.onConfirmation=()=>C(this,null,function*(){try{this.confirmationAction&&(yield this.confirmationAction()),this.confirm();}catch(S){console.error("Confirmation action failed",S);}finally{this.dialogHelperService.close();}}),this.onDismissal=()=>{this.dialogHelperService.close(),this.dismissAction?(this.profileChangeService.setHasChanges(!1),this.canDeactivateSubject.next(!0)):this.canDeactivateSubject.next(!1);},this.setInitialActiveTabIndex=()=>C(this,null,function*(){let S=this.parseRouteParam();if(S.includes("profile/coupon")){this.activeTabType=G.LOGIN_PRIVACY;let T=S.split("profile/coupon/")[1];this.profileDataHelperService.setCoupon(T);}else if(S==="profile/my-business/affiliate")this.activeTabType=G.MY_BUSINESS,this.profileDataHelperService.setBusinessAffiliateFiled(!0);else if(S==="profile/my-business")this.activeTabType=G.MY_BUSINESS,this.profileDataHelperService.setBusinessAffiliateFiled(!1);else{let T=this.menuTabs.find(H=>{let oe=H.url?`${Ct}/${H.url}`:Ct;return S===oe;});T?this.activeTabType=T.type:this.activeTabType=this._DEFAULT_TAB_TYPE;}}),this.getTabIndexByType=S=>this.menuTabs.findIndex(T=>T.type===S),this.setAffiliationTab=(S,T)=>{S!==Vt.free&&!T?this.affiliationTabName=Ee(Q.REFERRALS):T&&(this.affiliationTabName=Ee(Q.REFERRALS));},this.setExpertsTab=S=>{S?this.expertsTabName=Ee(Q.EXPERTS_READY):this.expertsTabName=Ee(Q.EXPERTS_BECAME);},this.setMenuTabs=()=>C(this,null,function*(){let S=yield this.workspacePermissionService.isGuest();this.menuTabs=[{name:Ee(Q.PROFILE),url:`${ne.home}`,type:G.MY_ACCOUNT,iconSrc:"/img/icon-library/pepole/user.svg"},{name:Ee(Q.LOGIN_PRIVACY),url:`${ne.loginPrivacy}`,type:G.LOGIN_PRIVACY,iconSrc:"/img/icon-library/basic-ui/locked.svg"},{name:Ee(Q.EMAIL_NOTIFICATIONS),url:`${ne.emailNotifications}`,type:G.EMAIL_NOTIFICATIONS,iconSrc:"/img/icon-library/basic-ui/notification-reminder-bell.svg"},{name:Ee(Q.BILLING),url:`${ne.billing}`,type:G.BILLING,disabled:S,iconSrc:"/img/icon-library/pricing/billing-info.svg"}],this.affiliationTabName&&this.menuTabs.push({name:this.affiliationTabName,type:G.AFFILIATION,disabled:S,iconSrc:"/img/icon-library/music/megaphone.svg",action:()=>C(this,null,function*(){this.isReferralLoading=!0;try{yield this.cello.openCelloDialog();}catch(T){console.error(T);}finally{this.isReferralLoading=!1;}})}),this.expertsTabName&&this.menuTabs.push({name:this.expertsTabName,url:`${ne.experts}
3`,type:G.EXPERTS,disabled:S,iconSrc:"/img/icon-library/coaching/expert.svg"}),this.menuTabs.push({name:Ee(Q.DOMAIN),url:`${ne.domain}`,type:G.DOMAIN,disabled:S,iconSrc:"/img/icon-library/basic-ui/global.svg"},{name:Ee(Q.SINGLE_SIGN_ON),url:`${ne.sso}`,type:G.SSO_SETTINGS,disabled:S,isPremiumFeature:!0,allowedSubscription:Re.AI_MAX,iconSrc:"/img/icon-library/other/key-sso.svg"},{name:Ee(Q.TRASH_BIN),url:`${ne.trashBin}`,type:G.TRASH_BIN,disabled:S,iconSrc:"/img/icon-library/basic-ui/delete-trash.svg"});}),this.getPremiumIcon=S=>{switch(S){case Re.AI_MAX:return"/img/profile/ai-max-diamond.svg";case Re.PRO:return"/img/profile/pro-crown.svg";}},this.tabButtonMap={[G.MY_ACCOUNT]:"edit",[G.LOGIN_PRIVACY]:"account-settings",[G.EMAIL_NOTIFICATIONS]:"preferences",[G.BILLING]:"subscription",[G.AFFILIATION]:"affiliate",[G.EXPERTS]:"expert",[G.DOMAIN]:"domain",[G.SSO_SETTINGS]:"settings",[G.TRASH_BIN]:"deleted-files"},this.setCurrentTab=S=>C(this,null,function*(){let T=this.menuTabs[S];this.eventsService.log(this.eventsService.events.profile.profileClick,{button:this.tabButtonMap[T.type]||T.name});let{orphanedAccountUrl:H}=ct.globals;if((yield this.planHelperService.isOrphanedAccount())&&T.url!==H)T=this.menuTabs.find(oe=>oe.type===G.LOGIN_PRIVACY);else if(Wo.includes(T.type)&&!(yield this.planHelperService.hasPremiumPlan())){let oe="profile";this.premiumPlanService.openPricingDialog(Re.PRO,oe,oe,Ae.domain);return;}else if(Go.includes(T.type)&&!(yield this.planHelperService.isAIMaxPlanByCurrentPlan())){let oe="profile";this.premiumPlanService.openPricingDialog(Re.AI_MAX,oe,oe,Ae.ssoConfig,()=>{},()=>{},ho.AI_MAX_SSO);return;}if(T.action){yield T.action();return;}this.hasChanges&&!(yield this.showTabChangeConfirmation())||(yield this.navigateToTab(T));}),this.navigateToTab=S=>C(this,null,function*(){S.url?yield this.router.navigate(["/",Ct,S.url]):yield this.router.navigate(["/",Ct]),this.activeTabType=S.type;}),this.showTabChangeConfirmation=()=>new Promise(S=>{this.dialogHelperService.showNewConfirmationDialog({title:"Discard changes?",msg:"You have unsaved changes. If you close this window, they'll be lost.",confirmationText:"Discard changes",cancellationText:"Keep editing",confirmButtonDestructive:!0,onSubmit:()=>{this.profileChangeService.setHasChanges(!1),this.dialogHelperService.close(),S(!0);},onClose:()=>{this.dialogHelperService.close(),S(!1);}});}),this.updateUpgradeButtonState=S=>{this.planHelperService.isFreePlan(S)||this.planHelperService.isStarterPlan(S)?(this.showUpgradeButton=!0,this.upgradeButtonText="Upgrade",this.upgradeButtonIconPath="/img/composer/broll-suggestion-modal/crown.svg",this.isProPlan=!1):this.planHelperService.isProPlan(S)?(this.showUpgradeButton=!0,this.upgradeButtonText="Get AI Max",this.upgradeButtonIconPath="/img/profile/ai-max-diamond.svg",this.isProPlan=!0):this.showUpgradeButton=!1;},this.onUpgradeClick=()=>{this.isProPlan?this.premiumPlanService.openPricingDialog(Re.AI_MAX,location.pathname,location.pathname,Ae.projectsScreenMax):this.premiumPlanService.openPricingDialog(Re.PRO,location.pathname,location.pathname,Ae.projectsScreenPro);},this.onBreadcrumbClick=S=>{S.index===0&&this.router.navigate(["/home"]);},this.parseRouteParam=()=>this.locationService.path().slice(1),this.replaceTabName=(S,T)=>{let H=this.getTabIndexByType(S);this.menuTabs[H]&&(this.menuTabs[H].name=T);};}ngOnInit(){return C(this,null,function*(){try{if(yield this.paymentService.checkForSuccessPayment(this.route.snapshot.queryParams),this.isOrphanedAccount=yield this.planHelperService.isOrphanedAccount(),this.isOrphanedAccount)this.menuTabs=[{name:Ee(Q.LOGIN_PRIVACY),url:`${ne.loginPrivacy}`,type:G.LOGIN_PRIVACY,iconSrc:"/img/icon-library/basic-ui/locked.svg"}],this.activeTabType=G.LOGIN_PRIVACY;else{this.userData=yield this.userHelperService.getUserDetails();let e=yield this.planHelperService.getOrganizationPlansDetails(),t=e.display.name;this.updateUpgradeButtonState(t),this.setAffiliationTab(e.name,this.userData.isAffiliate),this.setExpertsTab(this.userData.isExpert),yield this.setMenuTabs(),this.setInitialActiveTabIndex(),this.eventsService.log(this.eventsService.events.profile.profileScreen),this.routerEventsSubscription=this.router.events.subscribe(i=>{i instanceof Qn&&this.setInitialActiveTabIndex();}),this.setAffiliateRegistrationSuccessListener(),this.setExpertChangeListener(),this.setChildComponentChangeListener(),this.updateProfileSubscription=this.expertObserverService.getUpdateProfile().subscribe(()=>{this.setCurrentTab(1);});}}catch(e){console.error(e);}});}ngOnDestroy(){this.affiliateRegistrationSuccessSubscription?.unsubscribe(),this.childComponentChangeListener?.unsubscribe(),this.expertChangeSubscription?.unsubscribe(),this.routerEventsSubscription?.unsubscribe(),this.updateProfileSubscription?.unsubscribe(),this.profileDataHelperService.clean();}getSubmenuState(e){return e.disabled?"disabled":e.type===this.activeTabType?"active":"default";}static{this.ɵfac=function(t){return new(t||n)(x(qn),x(lt),x(ve),x(he),x(Se),x($n),x(_e),x(Le),x(Bo),x(Ze),x(Y),x(Rt),x(Si),x(ki));};}static{this.ɵcmp=P({type:n,selectors:[["profile"]],standalone:!0,features:[W,M],decls:8,vars:4,consts:[[3,"breadcrumbClick","breadcrumbs"],["slot","right","variant","ghost","size","md",3,"leftIconContent","preserveIconColor"],[1,"profile-component-container"],[1,"profile-navigation-sidebar"],[1,"tabs-menu-container"],[1,"profile-content-container"],[1,"referral-loading-overlay"],["slot","right","variant","ghost","size","md",3,"clicked","leftIconContent","preserveIconColor"],["variant","full","description","",3,"state","t
3itle","hasIcon","iconSrc","iconClass"],["variant","full","description","",3,"clicked","state","title","hasIcon","iconSrc","iconClass"],[1,"referral-spinner"]],template:function(t,i){t&1&&(o(0,"lib-header-project",0),u("breadcrumbClick",function(d){return i.onBreadcrumbClick(d);}),b(1,da,2,3,"lib-button",1),r(),o(2,"div",2)(3,"div",3),b(4,ga,3,0,"nav",4),r(),o(5,"div",5),b(6,ua,2,0,"div",6),g(7,"router-outlet"),r()()),t&2&&(c("breadcrumbs",i.breadcrumbs),l(),$e(1,i.showUpgradeButton?1:-1),l(3),$e(4,i.activeTabType!==void 0?4:-1),l(2),$e(6,i.isReferralLoading?6:-1));},dependencies:[Kn,go,mo,B],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}.profile-component-container[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;align-items:stretch;padding:32px 64px 0;box-sizing:border-box;height:calc(100vh - 56px);overflow:hidden}.profile-navigation-sidebar[_ngcontent-%COMP%]{width:280px;flex-shrink:0;margin-right:40px;align-self:flex-start}.tabs-menu-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.tabs-menu-container[_ngcontent-%COMP%] lib-submenu-item[_ngcontent-%COMP%]{cursor:pointer}.profile-content-container[_ngcontent-%COMP%]{width:1000px;position:relative;min-height:0;height:100%;overflow-y:auto;padding-bottom:84px;scrollbar-width:none;-ms-overflow-style:none}.profile-content-container[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.profile-content-container[_ngcontent-%COMP%] .referral-loading-overlay[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#ffffffb3;z-index:10;border-radius:10px}.profile-content-container[_ngcontent-%COMP%] .referral-spinner[_ngcontent-%COMP%]{width:40px;height:40px;border:3px solid rgba(68,129,253,.2);border-top-color:#4481fd;border-radius:50%;animation:_ngcontent-%COMP%_spin .8s linear infinite}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}@media only screen and (max-width: 1023px){.profile-navigation-sidebar[_ngcontent-%COMP%]{width:30%;margin-right:40px}.profile-content-container[_ngcontent-%COMP%]{width:75%}}@media only screen and (max-width: 767px){.profile-component-container[_ngcontent-%COMP%]{flex-direction:column;padding:30px 16px 84px;overflow-y:auto}.profile-navigation-sidebar[_ngcontent-%COMP%]{width:100%;margin-bottom:40px;margin-right:0;position:static}.profile-content-container[_ngcontent-%COMP%]{width:100%;height:auto;overflow:visible;padding-bottom:0}}"]});}}return n;})();I();dn();gt();var $o=(()=>{class n{constructor(e,t){this.workspacePermissionService=e,this.router=t;}canActivate(e,t){return C(this,null,function*(){return(yield this.workspacePermissionService.isGuest())&&Yo.includes(t.url)?(this.router.navigate([Ct]),!1):!0;});}static{this.ɵfac=function(t){return new(t||n)(De(Rt),De(Se));};}static{this.ɵprov=Fe({token:n,factory:n.ɵfac,providedIn:"root"});}}return n;})();Be();Jr();F();te();te();te();te();I();var Ko=(()=>{class n{static{this.ɵfac=function(t){return new(t||n)();};}static{this.ɵcmp=P({type:n,selectors:[["app-my-domain-shimmer"]],standalone:!0,features:[M],decls:25,vars:0,consts:[[1,"my-domain-shimmer"],[1,"shimmer-card"],[1,"shimmer-header"],[1,"shimmer-block","title-block"],[1,"shimmer-block","text-block-medium"],[1,"shimmer-separator"],[1,"shimmer-steps"],[1,"shimmer-step-row"],[1,"shimmer-block","step-number-block"],[1,"shimmer-block","step-text-block"],[1,"shimmer-step-with-chip"],[1,"shimmer-block","step-text-block-sm"],[1,"shimmer-block","chip-block"],[1,"shimmer-input-row"],[1,"shimmer-block","input-block"],[1,"shimmer-block","button-block"],[1,"shimmer-notice"],[1,"shimmer-block","notice-icon-block"],[1,"shimmer-block","notice-text-block"],[1,"wave"]],template:function(t,i){t&1&&(o(0,"div",0)(1,"div",1)(2,"div",2),g(3,"div",3)(4,"div",4),r(),g(5,"div",5),o(6,"div",6)(7,"div",7),g(8,"div",8)(9,"div",9),r(),o(10,"div",7),g(11,"div",8),o(12,"div",10),g(13,"div",11)(14,"div",12),r()(),o(15,"div",7),g(16,"div",8)(17,"div",9),r()(),o(18,"div",13),g(19,"div",14)(20,"div",15),r(),o(21,"div",16),g(22,"div",17)(23,"div",18),r()(),g(24,"div",19),r());},styles:[".my-domain-shimmer[_ngcontent-%COMP%]{position:relative;overflow:hidden;width:100%;display:flex;flex-direction:column;gap:18px}.shimmer-card[_ngcontent-%COMP%]{background:#fff;border-radius:16px;padding:24px;width:100%}.shimmer-block[_ngcontent-%COMP%]{background:#4481fd1f;border-radius:6px;flex-shrink:0}
3.title-block[_ngcontent-%COMP%]{width:200px;height:22px}.text-block-medium[_ngcontent-%COMP%]{width:340px;height:14px}.shimmer-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.shimmer-separator[_ngcontent-%COMP%]{height:1px;background:#4481fd14;margin:20px 0}.shimmer-steps[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;margin-bottom:24px}.shimmer-step-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.step-number-block[_ngcontent-%COMP%]{width:28px;height:28px;border-radius:50%}.step-text-block[_ngcontent-%COMP%]{width:360px;height:14px}.step-text-block-sm[_ngcontent-%COMP%]{width:240px;height:14px}.shimmer-step-with-chip[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.chip-block[_ngcontent-%COMP%]{width:120px;height:28px;border-radius:14px}.shimmer-input-row[_ngcontent-%COMP%]{display:flex;gap:12px;align-items:flex-end;margin-bottom:20px}.input-block[_ngcontent-%COMP%]{flex:1;height:40px;border-radius:8px}.button-block[_ngcontent-%COMP%]{width:90px;height:40px;border-radius:8px}.shimmer-notice[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;padding:12px 16px;border-radius:8px;background:#4481fd0a}.notice-icon-block[_ngcontent-%COMP%]{width:20px;height:20px;border-radius:50%}.notice-text-block[_ngcontent-%COMP%]{width:340px;height:14px}.wave[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.3) 50%,transparent 100%);transform:translate(-100%);animation:_ngcontent-%COMP%_wave 1.5s infinite}@keyframes _ngcontent-%COMP%_wave{0%{transform:translate(-100%)}50%{transform:translate(100%)}to{transform:translate(100%)}}",".profile-common-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.profile-common-sub-container[_ngcontent-%COMP%]{background-color:#fff;border-radius:10px;padding:18px;width:100%;margin:0 0 18px}.profile-common-title[_ngcontent-%COMP%]{font-size:18px;line-height:24px;font-family:Inter-Bold;color:#253658;display:flex;align-items:center;gap:5px}hr.profile-common-hr[_ngcontent-%COMP%]{margin:18px 0}.profile-common-paragraph[_ngcontent-%COMP%]{font-size:14px;color:#7b8db1}.profile-common-sub-title[_ngcontent-%COMP%]{margin-bottom:12px;color:#000;line-height:24px;font-size:15px;font-weight:600;text-transform:capitalize;display:flex;align-items:center;gap:5px}.profile-big-sub-title[_ngcontent-%COMP%]{font-size:28px;font-family:Inter-Bold;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#253658;margin-bottom:8px}
3.content-separator[_ngcontent-%COMP%]{height:1px;background-color:#7b8db14d;margin:18px 0}.profile-sub-header[_ngcontent-%COMP%]{font-size:14px;color:#25365899;max-width:380px}.profile-details-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;height:36px}.profile-buttons-container[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px}.profile-details-cancel-button[_ngcontent-%COMP%], .profile-details-save-button[_ngcontent-%COMP%]{width:90px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px}.profile-details-cancel-button[_ngcontent-%COMP%]:hover, .profile-details-save-button[_ngcontent-%COMP%]:hover{opacity:.8}.profile-details-cancel-button[_ngcontent-%COMP%]{background:#7b8db114;color:#7b8db1;margin:0 12px 0 auto}.profile-details-save-button[_ngcontent-%COMP%]{background:#00abfe;color:#fff}.profile-details-preview[_ngcontent-%COMP%]{padding:0 22px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px;border:1px solid #00abfe;color:#00abfe;background:#fff}.disabled-button[_ngcontent-%COMP%]{background:gray!important;color:#d3d3d3!important}.disabled-button[_ngcontent-%COMP%]:hover{opacity:1} autocomplete-menu .autocomplete-menu-container{border-radius:10px;background-color:#7b8db114;padding:5px 12px;height:46px;cursor:text} autocomplete-menu .autocomplete-menu-container input{color:#253658;font-size:14px} autocomplete-menu .autocomplete-menu-container .mat-form-field-label-wrapper label mat-label{color:#00abfe!important;font-weight:700} autocomplete-menu .autocomplete-menu-container .mdc-line-ripple{display:none!important}.billing-plan-details-title[_ngcontent-%COMP%]{color:#888;font-size:12px;font-weight:400;text-transform:capitalize}.billing-plan-details-sub-title[_ngcontent-%COMP%]{color:#000;font-size:13px;font-weight:700;text-transform:capitalize}"]});}}return n;})();I();Oe();pn();we();ea();be();ye();F();I();var fn=class{constructor(m,e){this._document=e;let t=this._textarea=this._document.createElement("textarea"),i=t.style;i.position="fixed",i.top=i.opacity="0",i.left="-999em",t.setAttribute("aria-hidden","true"),t.value=m,t.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(t);}copy(){let m=this._textarea,e=!1;try{if(m){let t=this._document.activeElement;m.select(),m.setSelectionRange(0,m.value.length),e=this._document.execCommand("copy"),t&&t.focus();}}catch{}return e;}destroy(){let m=this._textarea;m&&(m.remove(),this._textarea=void 0);}},Fi=(()=>{class n{constructor(e){this._document=e;}copy(e){let t=this.beginCopy(e),i=t.copy();return t.destroy(),i;}beginCopy(e){return new fn(e,this._document);}static{this.ɵfac=function(t){return new(t||n)(De(Hn));};}static{this.ɵprov=Fe({token:n,factory:n.ɵfac,providedIn:"root"});}}return n;})();function fa(n,m){n&1&&g(0,"app-my-domain-shimmer");}function ha(n,m){if(n&1){let e=y();o(0,"span",23),u("click",function(){f(e);let i=p(4);return h(i.copyHost());}),s(1),g(2,"img",24),r();}if(n&2){let e=p(4);l(),A(" ",e.BIGVU_HOST," ");}}function _a(n,m){if(n&1&&(o(0,"div",19)(1,"div",20),s(2),r(),o(3,"div",21),s(4),b(5,ha,3,1,"span",22),r()()),n&2){let e=m.$implicit,t=m.index;l(2),E(t+1),l(2),A(" ",e.text," "),l(),c("ngIf",e.hasCopy);}}function xa(n,m){if(n&1){let e=y();R(0),o(1,"div",9),b(2,_a,6,3,"div",10),r(),o(3,"div",11)(4,"div",12)(5,"lib-input",13),u("valueChange",function(i){f(e);let a=p(2);return h(a.onDomainInput(i));}),r()(),o(6,"div",14)(7,"lib-button",15),u("clicked",function(){f(e);let i=p(2);return h(i.verifyDomain());}),s(8," Verify "),r()()(),o(9,"div",16),g(10,"img",17),o(11,"p",18)(12,"strong"),s(13,"Important:"),r(),s(14," DNS changes may take up to 24-48 hours to propagate. "),r()(),L();}if(n&2){let e=p(2);l(2),c("ngForOf",e.steps),l(3),c("label",!0)("required",!1)("error",!!e.verificationError)("errorMessage",e.verificationError)("value",e.domainUrl),l(2),c("disabled",e.isVerifyDisabled)("loading",e.isVerifying);}}function va(n,m){n&1&&g(0,"lib-badge",33);}function ba(n,m){n&1&&g(0,"lib-badge",34),n&2&&c("hasIcon",!0);}function Ca(n,m){if(n&1){let e=y();R(0),o(1,"lib-button",35),u("clicked",function(){f(e);let i=p(3);return h(i.recheckDomain());}),s(2," Recheck "),r(),L();}if(n&2){let e=p(3);l(),c("loading",e.isVerifying);}}function ya(n,m){if(n&1){let e=y();R(0),o(1,"lib-button-icon",36),u("clicked",function(){f(e);let i=p(3);return h(i.copyDomain());}),r(),o(2,"lib-button-icon",37),u("clicked",function(){f(e);let i=p(3);return h(i.openDomainLink());}),r(),L();}}function wa(n,m){if(n&1){let e=y();R(0),o(1,"div",25)(2,"div",26),g(3,"img",27),o(4,"span",28),s(5),r(),b(6,va,1,0,"lib-badge",29)(7,ba,1,1,"lib-badge",30),r(),o(8,"div",31),b(9,Ca,3,1,"ng-container",0)(10,ya,3,0,"ng-container",0),o(11,"lib-button-icon",32),u("clicked",function(){f(e);let i=p(2);return h(i.onDomainRemoveRequest());}),r()()(),L();}if(n&2){let e=p(2);
3l(5),E(e.domainUrl),l(),c("ngIf",e.isDomainPending),l(),c("ngIf",e.isDomainApproved),l(2),c("ngIf",e.isDomainPending),l(),c("ngIf",e.isDomainApproved),l(),c("destructive",!0);}}function Sa(n,m){if(n&1){let e=y();o(0,"div",38),u("click",function(){f(e);let i=p(2);return h(i.closeDeleteModal());}),o(1,"div",39),u("click",function(i){return f(e),h(i.stopPropagation());}),o(2,"h3",40),s(3,"Remove Domain?"),r(),o(4,"p",41),s(5," This will disconnect "),o(6,"strong"),s(7),r(),s(8," from BIGVU Pages. "),r(),o(9,"div",42)(10,"lib-button",43),u("clicked",function(){f(e);let i=p(2);return h(i.closeDeleteModal());}),s(11," Cancel "),r(),o(12,"lib-button",44),u("clicked",function(){f(e);let i=p(2);return h(i.removeDomain());}),s(13," Remove "),r()()()();}if(n&2){let e=p(2);l(7),E(e.domainUrl),l(5),c("destructive",!0);}}function Pa(n,m){if(n&1&&(o(0,"div",2)(1,"div",3)(2,"div",4)(3,"h2",5),s(4,"Connect your domain"),r(),o(5,"p",6),s(6,"Connect your domain to BIGVU Pages for a fully branded URL."),r()(),g(7,"div",7),b(8,xa,15,8,"ng-container",0)(9,wa,12,6,"ng-container",0),r(),b(10,Sa,14,2,"div",8),r()),n&2){let e=p();l(8),c("ngIf",!e.hasConnectedDomain),l(),c("ngIf",e.hasConnectedDomain),l(),c("ngIf",e.showDeleteModal);}}var Zo=(()=>{class n{constructor(e,t,i,a,d,_,w){this.requestsService=e,this.errorParseService=t,this.dialogHelperService=i,this.inputFieldsValidatorService=a,this.eventsService=d,this.notifier=_,this.clipboard=w,this._NO_DOMAIN_ERROR_CODE="10001/0",this._EVENTS_PATH=this.eventsService.events.domain,this.BIGVU_HOST="pages.bigvu.tv",this.domainUrl="",this.isVerifying=!1,this.verificationError="",this.hasConnectedDomain=!1,this.isDomainDataLoaded=!1,this.showDeleteModal=!1,this.steps=[{text:"Go to your DNS provider's website and create a CNAME record."},{text:"Point it at BIGVU's host domain:",hasCopy:!0},{text:'Enter your domain to connect, then press the "Verify" button.'}],this.buildDomainUrlFormControl=()=>{this.domainUrlFormControl=new Pe("",this.inputFieldsValidatorService.getValidator(So.URL_DOMAIN));},this.setDomainData=()=>C(this,null,function*(){try{this.domainData=yield this.requestsService.getDomain();}catch(v){if(v.responseJSON.code!==this._NO_DOMAIN_ERROR_CODE){let O=this.errorParseService.parseAccountDomainErrors(v.responseJSON.code);this.notifier.error(O),console.error(v);}else this.domainData=void 0;}}),this.loadDomainData=()=>C(this,null,function*(){try{yield this.setDomainData(),this.hasConnectedDomain=!!this.domainData,this.domainData&&(this.domainUrl=this.domainData.domain,this.domainUrlFormControl.setValue(this.domainData.domain));}catch{}}),this.verifyDomain=()=>C(this,null,function*(){if(!this.isVerifyDisabled)try{this.verificationError="",this.isVerifying=!0;let v=yield this.requestsService.verifyDomain(this.domainUrl);this.hasConnectedDomain?(this.showDomainVerificationNotification(v?.status==="approved"),this.sendEvent(this._EVENTS_PATH.verifyRepeat)):(this.domainData=v,this.hasConnectedDomain=!0,this.sendEvent(this._EVENTS_PATH.verifyStart));}catch(v){this.verificationError=this.errorParseService.parseAccountDomainErrors(v.responseJSON.code);}finally{this.isVerifying=!1;}}),this.recheckDomain=()=>C(this,null,function*(){yield this.verifyDomain();}),this.onDomainRemoveRequest=()=>{this.showDeleteModal=!0,this.sendEvent(this._EVENTS_PATH.deleteClick);},this.closeDeleteModal=()=>{this.showDeleteModal=!1;},this.removeDomain=()=>C(this,null,function*(){try{yield this.requestsService.removeDomain(this.domainUrl),this.sendEvent(this._EVENTS_PATH.delete),this.domainData=void 0,this.hasConnectedDomain=!1,this.domainUrl="",this.domainUrlFormControl.reset(),this.showDeleteModal=!1;}catch(v){let O=this.errorParseService.parseAccountDomainErrors(v.responseJSON.code);this.notifier.error(O);}}),this.copyDomain=()=>{this.clipboard.copy(this.domainUrl),this.notifier.info("Domain copied to clipboard");},this.copyHost=()=>{this.clipboard.copy(this.BIGVU_HOST),this.notifier.info("Host copied to clipboard");},this.openDomainLink=()=>{window.open(`https://${this.domainUrl}`,"_blank");},this.showDomainVerificationNotification=v=>{v?this.notifier.info("Your domain is verified"):this.notifier.info("Not verified yet. DNS changes can take up to 48 hours. Please try again later.");},this.sendEvent=v=>{this.eventsService.log(v,{domain:this.domainUrl});};}ngOnInit(){return C(this,null,function*(){this.buildDomainUrlFormControl(),yield this.loadDomainData(),this.isDomainDataLoaded=!0;});}get isDomainApproved(){return this.domainData?.status==="approved";}get isDomainPending(){return this.domainData?.status==="pending";}get isVerifyDisabled(){return this.isVerifying||this.domainUrlFormControl?.invali
3d||!this.domainUrl;}onDomainInput(e){this.domainUrl=e,this.domainUrlFormControl.setValue(e);}static{this.ɵfac=function(t){return new(t||n)(x(ie),x(Ft),x(_e),x(Mo),x(Y),x(ee),x(Fi));};}static{this.ɵcmp=P({type:n,selectors:[["my-domain"]],standalone:!0,features:[M],decls:2,vars:2,consts:[[4,"ngIf"],["class","my-domain-component",4,"ngIf"],[1,"my-domain-component"],[1,"domain-card"],[1,"domain-header"],[1,"domain-title"],[1,"domain-subtitle"],[1,"separator"],["class","modal-overlay",3,"click",4,"ngIf"],[1,"steps-container"],["class","step-row",4,"ngFor","ngForOf"],[1,"domain-input-row"],[1,"input-wrapper"],["labelText","Domain","placeholder","example.com","labelType","outside","size","small",3,"valueChange","label","required","error","errorMessage","value"],[1,"verify-button-wrapper"],["variant","primary","size","md",3,"clicked","disabled","loading"],[1,"notice-banner"],["src","/img/important-notice-icon.svg","alt","Warning",1,"notice-icon"],[1,"notice-text"],[1,"step-row"],[1,"step-number"],[1,"step-text"],["class","host-chip",3,"click",4,"ngIf"],[1,"host-chip",3,"click"],["src","/img/icon-library/basic-ui/copy-text.svg","alt","Copy",1,"copy-icon-small"],[1,"connected-domain-row"],[1,"domain-info"],["src","/img/icon-library/basic-ui/global.svg","alt","Globe",1,"globe-icon"],[1,"domain-name"],["text","Pending","color","neutral","size","small","shape","rounded",4,"ngIf"],["text","Verified","color","success","size","small","shape","rounded",3,"hasIcon",4,"ngIf"],[1,"domain-actions"],["variant","ghost","size","sm","iconContent","/img/icon-library/basic-ui/delete-trash.svg",3,"clicked","destructive"],["text","Pending","color","neutral","size","small","shape","rounded"],["text","Verified","color","success","size","small","shape","rounded",3,"hasIcon"],["variant","secondary","size","sm",3,"clicked","loading"],["variant","ghost","size","sm","iconContent","/img/icon-library/basic-ui/copy-text.svg",3,"clicked"],["variant","ghost","size","sm","iconContent","/img/icon-library/basic-ui/external-link.svg",3,"clicked"],[1,"modal-overlay",3,"click"],[1,"modal-card",3,"click"],[1,"modal-title"],[1,"modal-description"],[1,"modal-actions"],["variant","ghost","size","md",3,"clicked"],["variant","primary","size","md",3,"clicked","destructive"]],template:function(t,i){t&1&&b(0,fa,1,0,"app-my-domain-shimmer",0)(1,Pa,11,3,"div",1),t&2&&(c("ngIf",!i.isDomainDataLoaded),l(),c("ngIf",i.isDomainDataLoaded));},dependencies:[N,le,B,Je,ut,ue,Ko],styles:[".my-domain-component[_ngcontent-%COMP%]{width:100%}.domain-card[_ngcontent-%COMP%]{background:#fff;border-radius:16px;padding:24px;width:100%}.domain-header[_ngcontent-%COMP%]{margin-bottom:0}.domain-title[_ngcontent-%COMP%]{font-size:20px;font-weight:600;font-family:Inter-SemiBold,Inter,sans-serif;color:#253658;margin:0 0 4px;line-height:28px}.domain-subtitle[_ngcontent-%COMP%]{font-size:14px;font-weight:400;color:#7b8db1;margin:0;line-height:20px}
3.separator[_ngcontent-%COMP%]{height:1px;background-color:transparent;margin:20px 0}.steps-container[_ngcontent-%COMP%]{margin-bottom:24px}.step-row[_ngcontent-%COMP%]{display:flex;align-items:flex-start;margin-bottom:12px}.step-row[_ngcontent-%COMP%]:last-child{margin-bottom:0}.step-number[_ngcontent-%COMP%]{width:20px;height:20px;min-width:20px;border-radius:999px;border:1.5px solid #c7d9fe;display:flex;justify-content:center;align-items:center;font-size:11px;font-weight:600;color:#3b82f6;margin-right:10px;margin-top:1px}.step-text[_ngcontent-%COMP%]{font-size:14px;color:#64748b;line-height:22px;display:flex;align-items:center;flex-wrap:wrap;gap:6px}.host-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;background:#f1f5f9;border-radius:6px;padding:2px 8px;font-size:13px;font-weight:500;color:#334155;cursor:pointer;transition:background-color .15s ease;font-family:Inter,monospace}.host-chip[_ngcontent-%COMP%]:hover{background:#e2e8f0}.copy-icon-small[_ngcontent-%COMP%]{width:14px;height:14px;opacity:.6}.domain-input-row[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:12px;margin-bottom:20px}.input-wrapper[_ngcontent-%COMP%]{flex:1;max-width:400px}.verify-button-wrapper[_ngcontent-%COMP%]{padding-top:24px}.notice-banner[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:8px;background:#f9fafb;border-radius:8px;padding:12px 16px}.notice-icon[_ngcontent-%COMP%]{width:20px;height:20px;min-width:20px;margin-top:1px}.notice-text[_ngcontent-%COMP%]{font-size:13px;color:#64748b;margin:0;line-height:20px}.notice-text[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:#334155;font-weight:600}.connected-domain-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:#f9fafb;border-radius:10px;gap:12px}.domain-info[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;min-width:0}.globe-icon[_ngcontent-%COMP%]{width:20px;height:20px;min-width:20px;color:#7b8db1}.domain-name[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#253658;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.domain-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;flex-shrink:0}.modal-overlay[_ngcontent-%COMP%]{position:fixed;inset:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:1000}.modal-card[_ngcontent-%COMP%]{background:#fff;border-radius:16px;padding:24px;width:400px;max-width:90vw;box-shadow:0 20px 60px #00000026}.modal-title[_ngcontent-%COMP%]{font-size:18px;font-weight:600;color:#253658;margin:0 0 8px}.modal-description[_ngcontent-%COMP%]{font-size:14px;color:#64748b;margin:0 0 24px;line-height:20px}.modal-description[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:#253658;font-weight:500}.modal-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:8px}@media only screen and (max-width: 767px){.domain-card[_ngcontent-%COMP%]{padding:16px}.domain-input-row[_ngcontent-%COMP%]{flex-direction:column;gap:12px}.input-wrapper[_ngcontent-%COMP%]{max-width:100%;width:100%}.verify-button-wrapper[_ngcontent-%COMP%]{padding-top:0}.connected-domain-row[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}.domain-actions[_ngcontent-%COMP%]{align-self:flex-end}.step-text[_ngcontent-%COMP%]{font-size:13px}}",".profile-common-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.profile-common-sub-container[_ngcontent-%COMP%]{background-color:#fff;border-radius:10px;padding:18px;width:100%;margin:0 0 18px}.profile-common-title[_ngcontent-%COMP%]{font-size:18px;line-height:24px;font-family:Inter-Bold;color:#253658;display:flex;align-items:center;gap:5px}hr.profile-common-hr[_ngcontent-%COMP%]{margin:18px 0}.profile-common-paragraph[_ngcontent-%COMP%]{font-size:14px;color:#7b8db1}.profile-common-sub-title[_ngcontent-%COMP%]{margin-bottom:12px;color:#000;line-height:24px;font-size:15px;font-weight:600;text-transform:capitalize;display:flex;align-items:center;gap:5px}.profile-big-sub-title[_ngcontent-%COMP%]{font-size:28px;font-family:Inter-Bold;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#253658;margin-bottom:8px}
3.content-separator[_ngcontent-%COMP%]{height:1px;background-color:#7b8db14d;margin:18px 0}.profile-sub-header[_ngcontent-%COMP%]{font-size:14px;color:#25365899;max-width:380px}.profile-details-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;height:36px}.profile-buttons-container[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px}.profile-details-cancel-button[_ngcontent-%COMP%], .profile-details-save-button[_ngcontent-%COMP%]{width:90px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px}.profile-details-cancel-button[_ngcontent-%COMP%]:hover, .profile-details-save-button[_ngcontent-%COMP%]:hover{opacity:.8}.profile-details-cancel-button[_ngcontent-%COMP%]{background:#7b8db114;color:#7b8db1;margin:0 12px 0 auto}.profile-details-save-button[_ngcontent-%COMP%]{background:#00abfe;color:#fff}.profile-details-preview[_ngcontent-%COMP%]{padding:0 22px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px;border:1px solid #00abfe;color:#00abfe;background:#fff}.disabled-button[_ngcontent-%COMP%]{background:gray!important;color:#d3d3d3!important}.disabled-button[_ngcontent-%COMP%]:hover{opacity:1} autocomplete-menu .autocomplete-menu-container{border-radius:10px;background-color:#7b8db114;padding:5px 12px;height:46px;cursor:text} autocomplete-menu .autocomplete-menu-container input{color:#253658;font-size:14px} autocomplete-menu .autocomplete-menu-container .mat-form-field-label-wrapper label mat-label{color:#00abfe!important;font-weight:700} autocomplete-menu .autocomplete-menu-container .mdc-line-ripple{display:none!important}.billing-plan-details-title[_ngcontent-%COMP%]{color:#888;font-size:12px;font-weight:400;text-transform:capitalize}.billing-plan-details-sub-title[_ngcontent-%COMP%]{color:#000;font-size:13px;font-weight:700;text-transform:capitalize}"]});}}return n;})();Be();F();vi();ln();rt();wo();var Bi=class{};We();I();I();I();on();on();ti();Ot();F();F();var Oa=["wrapper"],Ea=["sourceImage"];function ka(n,m){if(n&1){let e=y();o(0,"img",5,1),u("load",function(){f(e);let i=p();return h(i.imageLoadedInView());})("mousedown",function(i){f(e);let a=p();return h(a.startMove(i,a.moveTypes.Drag));})("touchstart",function(i){f(e);let a=p();return h(a.startMove(i,a.moveTypes.Drag));})("error",function(i){f(e);let a=p();return h(a.loadImageError(i));}),r();}if(n&2){let e=p();mt("visibility",e.imageVisible?"visible":"hidden")("transform",e.safeTransformStyle),Qe("ngx-ic-draggable",!e.disabled&&e.allowMoveImage),c("src",e.safeImgDataUrl,ge),qt("alt",e.imageAltText);}}function Ia(n,m){if(n&1){let e=y();R(0),o(1,"span",9),u("mousedown",function(i){f(e);let a=p(2);return h(a.startMove(i,a.moveTypes.Resize,"topleft"));})("touchstart",function(i){f(e);let a=p(2);return h(a.startMove(i,a.moveTypes.Resize,"topleft"));}),g(2,"span",10),r(),o(3,"span",11),g(4,"span",10),r(),o(5,"span",12),u("mousedown",function(i){f(e);let a=p(2);return h(a.startMove(i,a.moveTypes.Resize,"topright"));})("touchstart",function(i){f(e);let a=p(2);return h(a.startMove(i,a.moveTypes.Resize,"topright"));}),g(6,"span",10),r(),o(7,"span",13),g(8,"span",10),r(),o(9,"span",14),u("mousedown",function(i){f(e);let a=p(2);return h(a.startMove(i,a.moveTypes.Resize,"bottomright"));})("touchstart",function(i){f(e);let a=p(2);return h(a.startMove(i,a.moveTypes.Resize,"bottomright"));}),g(10,"span",10),r(),o(11,"span",15),g(12,"span",10),r(),o(13,"span",16),u("mousedown",function(i){f(e);let a=p(2);return h(a.startMove(i,a.moveTypes.Resize,"bottomleft"));})("touchstart",function(i){f(e);let a=p(2);return h(a.startMove(i,a.moveTypes.Resize,"bottomleft"));}),g(14,"span",10),r(),o(15,"span",17),g(16,"span",10),r(),o(17,"span",18),u("mousedown",function(i){f(e);let a=p(2);return h(a.startMove(i,a.moveTypes.Resize,"top"));})("touchstart",function(i){f(e);let a=p(2);return h(a.startMove(i,a.moveTypes.Resize,"top"));}),r(),o(18,"span",19),u("mousedown",function(i){f(e);let a=p(2);return h(a.startMove(i,a.moveTypes.Resize,"right"));})("touchstart",function(i){f(e);let a=p(2);return h(a.startMove(i,a.moveTypes.Resize,"right"));}),r(),o(19,"span",20),u("mousedown",function(i){f(e);let a=p(2);return h(a.startMove(i,a.moveTypes.Resize,"bottom"));})("touchstart",function(i){f(e);let a=p(2);return h(a.startMove(i,a.moveTypes.Resize,"bottom"));}),r(),o(20,"span",21),u("mousedown",function(i){f(e);let a=p(2);return h(a.startMove(i,a.moveTypes.Resize,"left"));})("touchstart",function(i){f(e);let a=p(2);return h(a.startMove(i,a.moveTypes.Resize,"left"));}),r(),L();}}function Ta(n,m){if(n&1){let e=y();o(0,"div",6),u("keydown",function(i){f(e);let a=p();return h(a.keyboardAccess(i));}),o(1,"div",7),u("mousedown",function(i){f(e);let a=p();return h(a.startMove(i,a.moveTypes.Move));})("touchstart",function(i){f(e);let a=p();return h(a.startMove(i,a.moveTypes.Move));}),r(),b(2,Ia,21,0,"ng-container",8),r();}if(n&2){let e=p();mt("top",e.cropper.y1,"px")("left",e.cropper.x1,"px")("width",e.cropper.x2-e.cropper.x1,"px")("height",e.cropper.y2-e.cropper.y1,"px")("margin-left",e.alignImage==="center"?e.marginLeft:null)("visibility",e.imageVisible?"visible":"hidden"),Qe("ngx-ic-round",e.roundCropper),qt("aria-label",e.cropperFrameAriaLabel),l(2),c("ngIf",!e.hideResizeSquares);}}var hn=class{constructor(){this.format="png",this.output="blob",this.maintainAspectRatio=!0,this.transform={},this.aspectRatio=1,this.resetCropOnAspectRatioChange=!0,this.resizeToWidth=0,this.resizeToHeight=0,this.cropperMinWidth=0,this.cropperMinHeight=0,this.cropperMaxHeight=0,this.cropperMaxWidth=0,this.cropperStaticWidth=0,this.cropperStaticHeight=0,this.canvasRotation=0,this.initialStepSize=3,this.roundCropper=!1,this.onlyScaleDown=!1,this.imageQuality=92,this.autoCrop=!0,this.backgroundColor=null,this.containWithinAspectRatio=!1,this.hideResizeSquares=!1,this.alignImage="center",this.cropperFrameAriaLabel="Crop photo",this.cropperScaledMinWidth=20,this.cropperScaledMinHeight=20,this.cropperScaledMaxWidth=20,this.cropperScaledMaxHeight=20,this.stepSize=this.initialStepSize;}setOptions(m){Object.keys(m).filter(e=>
3e in this).forEach(e=>this[e]=m[e]),this.validateOptions();}setOptionsFromChanges(m){Object.keys(m).filter(e=>e in this).forEach(e=>this[e]=m[e].currentValue),this.validateOptions();}validateOptions(){if(this.maintainAspectRatio&&!this.aspectRatio)throw new Error("`aspectRatio` should > 0 when `maintainAspectRatio` is enabled");}},Ne=function(n){return n.Drag="drag",n.Move="move",n.Resize="resize",n.Pinch="pinch",n;}(Ne||{});function Da(n){switch(n){case"ArrowUp":return"top";case"ArrowRight":return"right";case"ArrowDown":return"bottom";case"ArrowLeft":default:return"left";}}function Aa(n){switch(n){case"ArrowUp":return"bottom";case"ArrowRight":return"left";case"ArrowDown":return"top";case"ArrowLeft":default:return"right";}}function Va(n,m){switch(n){case"ArrowUp":return{clientX:0,clientY:m*-1};case"ArrowRight":return{clientX:m,clientY:0};case"ArrowDown":return{clientX:0,clientY:m};case"ArrowLeft":default:return{clientX:m*-1,clientY:0};}}function za(n,m,e){let t=n.width,i=n.height;m=Math.round(m),e=Math.round(e);let a=t/m,d=i/e,_=Math.ceil(a/2),w=Math.ceil(d/2),v=n.getContext("2d");if(v){let O=v.getImageData(0,0,t,i),D=v.createImageData(m,e),j=O.data,k=D.data;for(let z=0;z<e;z++)for(let $=0;$<m;$++){let S=($+z*m)*4,T=z*d,H=0,oe=0,tt=0,Te=0,St=0,Xt=0,Sn=0,qr=Math.floor($*a),Wr=Math.floor(z*d),Ki=Math.ceil(($+1)*a),Xi=Math.ceil((z+1)*d);Ki=Math.min(Ki,t),Xi=Math.min(Xi,i);for(let Jt=Wr;Jt<Xi;Jt++){let Pn=Math.abs(T-Jt)/w,Gr=$*a,Yr=Pn*Pn;for(let Zt=qr;Zt<Ki;Zt++){let Mn=Math.abs(Gr-Zt)/_,Pt=Math.sqrt(Yr+Mn*Mn);if(Pt>=1)continue;H=2*Pt*Pt*Pt-3*Pt*Pt+1;let Mt=4*(Zt+Jt*t);Sn+=H*j[Mt+3],tt+=H,j[Mt+3]<255&&(H=H*j[Mt+3]/250),Te+=H*j[Mt],St+=H*j[Mt+1],Xt+=H*j[Mt+2],oe+=H;}}k[S]=Te/oe,k[S+1]=St/oe,k[S+2]=Xt/oe,k[S+3]=Sn/tt;}n.width=m,n.height=e,v.putImageData(D,0,0);}}function er(n,m){return n/100*m;}var Fa=(()=>{class n{crop(e,t,i,a,d){let _=this.getImagePosition(e,t,i,d),w=_.x2-_.x1,v=_.y2-_.y1,O=document.createElement("canvas");O.width=w,O.height=v;let D=O.getContext("2d");if(!D)return null;i.backgroundColor!=null&&(D.fillStyle=i.backgroundColor,D.fillRect(0,0,w,v));let j=(i.transform.scale||1)*(i.transform.flipH?-1:1),k=(i.transform.scale||1)*(i.transform.flipV?-1:1),{translateH:z,translateV:$}=this.getCanvasTranslate(e,i,d),S=e.transformed;D.setTransform(j,0,0,k,S.size.width/2+z,S.size.height/2+$),D.translate(-_.x1/j,-_.y1/k),D.rotate((i.transform.rotate||0)*Math.PI/180),D.drawImage(S.image,-S.size.width/2,-S.size.height/2);let T={width:w,height:v,imagePosition:_,cropperPosition:K({},t)};i.containWithinAspectRatio&&(T.offsetImagePosition=this.getOffsetImagePosition(e,t,i,d));let H=this.getResizeRatio(w,v,i);return H!==1&&(T.width=Math.round(w*H),T.height=i.maintainAspectRatio?Math.round(T.width/i.aspectRatio):Math.round(v*H),za(O,T.width,T.height)),a==="blob"?this.cropToBlob(T,O,i):(T.base64=O.toDataURL("image/"+i.format,this.getQuality(i)),T);}cropToBlob(e,t,i){return C(this,null,function*(){return e.blob=yield new Promise(a=>t.toBlob(a,"image/"+i.format,this.getQuality(i))),e.blob&&(e.objectUrl=URL.createObjectURL(e.blob)),e;});}getCanvasTranslate(e,t,i){if(t.transform.translateUnit==="px"){let a=this.getRatio(e,i);return{translateH:(t.transform.translateH||0)*a,translateV:(t.transform.translateV||0)*a};}else return{translateH:t.transform.translateH?er(t.transform.translateH,e.transformed.size.width):0,translateV:t.transform.translateV?er(t.transform.translateV,e.transformed.size.height):0};}getRatio(e,t){return e.transformed.size.width/t.width;}getImagePosition(e,t,i,a){let d=this.getRatio(e,a),_={x1:Math.round(t.x1*d),y1:Math.round(t.y1*d),x2:Math.round(t.x2*d),y2:Math.round(t.y2*d)};return i.containWithinAspectRatio||(_.x1=Math.max(_.x1,0),_.y1=Math.max(_.y1,0),_.x2=Math.min(_.x2,e.transformed.size.width),_.y2=Math.min(_.y2,e.transformed.size.height)),_;}getOffsetImagePosition(e,t,i,a){let d=i.canvasRotation+e.exifTransform.rotate,_=this.getRatio(e,a),w,v;d%2?(w=(e.transformed.size.width-e.original.size.height)/2,v=(e.transformed.size.height-e.original.size.width)/2):(w=(e.transformed.size.width-e.original.size.width)/2,v=(e.transformed.size.height-e.original.size.height)/2);let O={x1:Math.round(t.x1*_)-w,y1:Math.round(t.y1*_)-v,x2:Math.round(t.x2*_)-w,y2:Math.round(t.y2*_)-v};return i.containWithinAspectRatio||(O.x1=Math.max(O.x1,0),O.y1=Math.max(O.y1,0),O.x2=Math.min(O.x2,e.transformed.size.width),O.y2=Math.min(O.y2,e.transformed.size.height)),O;}getResizeRatio(e,t,i){let a=i.resizeToWidth/e,d=i.resizeToHeight/t,_=new Array();i.resizeToWidth>0&&_.push(a),i.resizeToHeight>0&&_.push(d);let w=_.length===0?1:Math.min(..._);return w>1&&!i.onlyScaleDown?w:Math.min(w,1);}getQuality(e){return Math.min(1,Math.max(0,e.imageQuality/100));}}return n.ɵfac=function(e){return new(e||n)();},n.ɵprov=Fe({token:n,factory:n.ɵfac,providedIn:"root"}),n;})(),Ba=(()=>{class n{resetCropperPosition(e,t,i,a){if(e?.nativeElement)if(i.cropperStaticHeight&&i.cropperStaticWidth)t.x1=0,t.x2=a.width>i.cropperStaticWidth?i.cropperStaticWidth:a.width,t.y1=0,t.y2=a.height>i.cropperStaticHeight?i.cropperStaticHeight:a.height;else{let d=Math.min(i.cropperScaledMaxWidth,a.width),_=Math.min(i.cropperScaledMaxHeight,a.height);if(!i.maintainAspectRatio)t.x1=0,t.x2=d,t.y1=0,t.y2=_;else if(a.width/i.aspectRatio<a.height){t.x1=0,t.x2=d;let w=d/i.aspectRatio;t.y1=(a.height-w)/2,t.y2=t.y1+w;}else{t.y1=0,t.y2=_;let w=_*i.aspectRatio;t.x1=(a.width-w)/2,t.x2=t.x1+w;}}}move(e,t,i){let a=this.getClientX(e)-t.clientX,d=this.getClientY(e)-t.clientY;i.x1=t.x1+a,i.y1=t.y1+d,i.x2=t.x2+a,i.y2=t.y2+d;}resize(e,t,i,a,d){let _=this.getClientX(e)-t.clientX,w=this.getClientY(e)-t.clientY;switch(t.position){case"left":i.x1=Math.min(Math.max(t.x1+_,i.x2-d.cropperScaledMaxWidth),i.x2-d.cropperScaledMinWidth);break;case"topleft":i.x1=Math.min(Math.max(t.x1+_,i.x2-d.cropperScaledMaxWidth),i.x2-d.cropperScaledMinWidth),i.y1=Math.min(Math.max(t.y1+w,i.y2-d.cropperScaledMaxHeight),i.y2-d.cropperScaledMinHeight);break;case"top":i.y1=Math.min(Math.max(t.y1+w,i.y2-d.cropperScaledMaxHeight),i.y2-d.cropperScaledMinHeight);break;case"topright":i.x2=Math.max(Math.min(t.x2+_,i.x1+d.cropperScaledMaxWidth),i.x1+d.cropperScaledMinWidth),i.y1=Math.min(Math.max(t.y1+w,i.y2-d.cropperScaledMaxHeight),i.y2-d.cropperScaledMinHeight);break;case"right":i.x2=Math.max(Math.min(t.x2+_,i.x1+d.cropperScaledMaxWidth),i.x1+d.cropperScaledMinWidth);break;case"bottomright":i.x2=Math.max(Math.min(t.x2+_,i.x1+d.cropperScaledMaxWidth),i.x1+d.cropperScaledMinWidth),i.y2=Math.max(Math.min(t.y2+w,i.y1+d.cropperScaledMaxHeight),i.y1+d.cropperScaledMinHeight);break;case"bottom":i.y2=Math.max(Math.min(t.y2+w,i.y1+d.cropperScaledMaxHeight),i.y1+d.cropperScaledMinHeight);break;case"bottomleft":i.x1=Math.min(Math.max(t.x1+_,i.x2-d.cropperScaledMaxWidth),i.x2-d.cropperScaledMinWidth),i.y2=Math.max(Math.min(t.y2+w,i.y1+d.cropperScaledMaxHeight),i.y1+d.cropperScaledMinHeight);break;case"center":let v=e.scale,O=Math.min(Math.max(d.cropperScaledMinWidth,Math.abs(t.x2-t.x1)*v),d.cropperScaledMaxWidth),D=Math.min(Math.max(d.cropperScaledMinHeight,Math.abs(t.y2-t.y1)*v),d.cropperScaledMaxHeight);i.x1=t.clientX-O/2,i.x2=t.clientX+O/2,i.y1=t.clientY-D/2,i.y2=t.clientY+D/2,i.x1<0?(i.x2-=i.x1,i.x1=0):i.x2>a.width&&(i.x1-=i.x2-a.width,i.x2=a.width),i.y1<0?(i.y2-=i.y1,i.y1=0):i.y2>a.height&&(i.y1-=i.y2-a.height,i.y2=a.height);break;}d.maintainAspectRatio&&this.checkAspectRatio(t.position,i,a,d);}checkAspectRatio(e,t,i,a){let d=0,_=0;switch(e){case"top":t.x2=t.x1+(t.y2-t.y1)*a.aspectRatio,d=Math.max(t.x2-i.width,0),_=Math.max(0-t.y1,0),(d>0||_>0)&&(t.x2-=_*a.aspectRatio>d?_*a.aspectRatio:d,t.y1+=_*a.aspectRatio>d?_:d/a.aspectRatio);break;case"bottom":t.x2=t.x1+(t.y2-t.y1)*a.aspectRatio,d=Math.max(t.x2-i.width,0),_=Math.max(t.y2-i.height,0),(d>0||_>0)&&(t.x2-=_*a.aspectRatio>d?_*a.aspectRatio:d,t.y2-=_*a.aspectRatio>d?_:d/a.aspectRatio);break;case"topleft":t.y1=t.y2-(t.x2-t.x1)/a.aspectRatio,d=Math.max(0-t.x1,0),_=Math.max(0-t.y1,0),(d>0||_>0)&&(t.x1+=_*a.aspectRatio>d?_*a.aspectRatio:d,t.y1+=_*a.aspectRatio>d?_:d/a.aspectRatio);break;case"topright":t.y1=t.y2-(t.x2-t.x1)/a.aspectRatio,d=Math.max(t.x2-i.width,0),_=Math.max(0-t.y1,0),(d>0||_>0)&&(t.x2-=_*a.aspectRatio>d?_*a.aspectRatio:d,t.y1+=_*a.aspectRatio>d?_:d/a.aspectRatio);break;case"right":case"bottomright":t.y2=t.y1+(t.x2-t.x1)/a.aspectRatio,d=Math.max(t.x2-i.width,0),_=Math.max(t.y2-i.height,0),(d>0||_>0)&&(t.x2-=_*a.aspectRatio>d?_*a.aspectRatio:d,t.y2-=_*a.aspectRatio>d?_:d/a.aspectRatio);break;case"left":case"bottomleft":t.y2=t.y1+(t.x2-t.x1)/a.aspectRatio,d=Math.max(0-t.x1,0),_=Math.max(t.y2-i.height,0),(d>0||_>0)&&(t.x1+=_*a.aspectRatio>d?_*a.aspectRatio:d,t.y2-=_*a.aspectRatio>d?_:d/a.aspectRatio);break;case"center":t.x2=t.x1+(t.y2-t.y1)*a.aspectRatio,t.y2=t.y1+(t.x2-t.x1)/a.aspectRatio;let w=Math.max(0-t.x1,0),v=Math.max(t.x2-i.width,0),O=Math.max(t.y2-i.height,0),D=Math.max(0-t.y1,0);(w>0||v>0||O>0||D>0)&&(t.x1+=O*a.aspectRatio>w?O*a.aspectRatio:w,t.x2-=D*a.aspectRatio>v?D*a.aspectRatio:v,t.y1+=D*a.aspectRatio>v?D:v/a.aspectRatio,t.y2-=O*a.aspectRatio>w?O:w/a.aspectRatio);break;}}getClientX(e){return e.touches?.[0].clientX||e.clientX||0;}getClientY(e){return e.touches?.[0].clientY||e.clientY||0;}}return n.ɵfac=function(e){return new(e||n)();},n.ɵprov=Fe({token:n,factory:n.ɵfac,providedIn:"root"}),n;})(),Ra="data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==";function La(){return new Promise(n=>{let m=new Image();m.onload=()=>{let e=m.width===1&&m.height===2;n(e);},m.src=Ra;});}function Na(n){switch(typeof n=="object"&&(n=Ua(n)),n){case 2:return{rotate:0,flip:!0};case 3:return{rotate:2,flip:!1};case 4:return{rotate:2,flip:!0};case 5:return{rotate:1,flip:!0};case 6:return{rotate:1,flip:!1};case 7:return{rotate:3,flip:!0};case 8:return{rotate:3,flip:!1};default:return{rotate:0,flip:!1};}}function Ua(n){let m=new DataView(n);if(m.getUint16(0,!1)!==65496)return-2;let e=m.byteLength,t=2;for(;t<e;){if(m.getUint16(t+2,!1)<=8)return-1;let i=m.getUint16(t,!1);if(t+=2,i==65505){if(m.getUint32(t+=2,!1)!==1165519206)return-1;let a=m.getUint16(t+=6,!1)==18761;t+=m.getUint32(t+4,a);let d=m.getUint16(t,a);t+=2;
3for(let _=0;_<d;_++)if(m.getUint16(t+_*12,a)==274)return m.getUint16(t+_*12+8,a);}else{if((i&65280)!==65280)break;t+=m.getUint16(t,!1);}}return-1;}var ja=(()=>{class n{constructor(){this.autoRotateSupported=La();}loadImageFile(e,t){return C(this,null,function*(){let i=yield e.arrayBuffer();return yield this.checkImageTypeAndLoadImageFromArrayBuffer(i,e.type,t);});}checkImageTypeAndLoadImageFromArrayBuffer(e,t,i){return this.isValidImageType(t)?this.loadImageFromArrayBuffer(e,i,t):Promise.reject(new Error("Invalid image type"));}isValidImageType(e){return /image\/(png|jpg|jpeg|bmp|gif|tiff|svg|webp|x-icon|vnd.microsoft.icon)/.test(e);}loadImageFromURL(e,t){return C(this,null,function*(){let a=yield(yield fetch(e)).blob(),d=yield a.arrayBuffer();return yield this.loadImageFromArrayBuffer(d,t,a.type);});}loadBase64Image(e,t){let i=this.base64ToArrayBuffer(e);return this.loadImageFromArrayBuffer(i,t);}base64ToArrayBuffer(e){e=e.replace(/^data:([^;]+);base64,/gmi,"");let t=atob(e),i=t.length,a=new Uint8Array(i);for(let d=0;d<i;d++)a[d]=t.charCodeAt(d);return a.buffer;}loadImageFromArrayBuffer(e,t,i){return C(this,null,function*(){let a=yield new Promise((d,_)=>C(this,null,function*(){try{let w=new Blob([e],i?{type:i}:void 0),v=URL.createObjectURL(w),O=new Image(),j=i==="image/svg+xml"?yield this.getSvgImageSize(w):void 0;O.onload=()=>d({originalImage:O,originalImageSize:j,originalObjectUrl:v,originalArrayBuffer:e}),O.onerror=_,O.src=v;}catch(w){_(w);}}));return yield this.transformImageFromArrayBuffer(a,t,a.originalImageSize!=null);});}getSvgImageSize(e){return C(this,null,function*(){let a=new DOMParser().parseFromString(yield e.text(),"image/svg+xml").querySelector("svg");if(!a)throw Error("Failed to parse SVG image");let d=a.getAttribute("width"),_=a.getAttribute("height");if(d&&_)return null;let w=a.getAttribute("viewBox")||a.getAttribute("viewbox");if(w){let v=w.split(" ");return{width:+v[2],height:+v[3]};}throw Error("Failed to load SVG image. SVG must have width + height or viewBox definition.");});}transformImageFromArrayBuffer(e,t,i=!1){return C(this,null,function*(){let a=yield this.autoRotateSupported,d=Na(a?-1:e.originalArrayBuffer);if(!e.originalImage||!e.originalImage.complete)return Promise.reject(new Error("No image loaded"));let _={original:{objectUrl:e.originalObjectUrl,image:e.originalImage,size:e.originalImageSize??{width:e.originalImage.naturalWidth,height:e.originalImage.naturalHeight}},exifTransform:d};return this.transformLoadedImage(_,t,i);});}transformLoadedImage(e,t,i=!1){return C(this,null,function*(){let a=t.canvasRotation+e.exifTransform.rotate,d=e.original.size;if(!i&&a===0&&!e.exifTransform.flip&&!t.containWithinAspectRatio)return{original:{objectUrl:e.original.objectUrl,image:e.original.image,size:K({},d)},transformed:{objectUrl:e.original.objectUrl,image:e.original.image,size:K({},d)},exifTransform:e.exifTransform};let _=this.getTransformedSize(d,e.exifTransform,t),w=document.createElement("canvas");w.width=_.width,w.height=_.height;let v=w.getContext("2d");v?.setTransform(e.exifTransform.flip?-1:1,0,0,1,w.width/2,w.height/2),v?.rotate(Math.PI*(a/2)),v?.drawImage(e.original.image,-d.width/2,-d.height/2);let O=yield new Promise(k=>w.toBlob(k,t.format));if(!O)throw new Error("Failed to get Blob for transformed image.");let D=URL.createObjectURL(O),j=yield this.loadImageFromObjectUrl(D);return{original:{objectUrl:e.original.objectUrl,image:e.original.image,size:K({},d)},transformed:{objectUrl:D,image:j,size:{width:j.width,height:j.height}},exifTransform:e.exifTransform};});}loadImageFromObjectUrl(e){return new Promise((t,i)=>{let a=new Image();a.onload=()=>t(a),a.onerror=i,a.src=e;});}getTransformedSize(e,t,i){let a=i.canvasRotation+t.rotate;if(i.containWithinAspectRatio)if(a%2){let d=e.width*i.aspectRatio,_=e.height/i.aspectRatio;return{width:Math.max(e.height,d),height:Math.max(e.width,_)};}else{let d=e.height*i.aspectRatio,_=e.width/i.aspectRatio;return{width:Math.max(e.width,d),height:Math.max(e.height,_)};}return a%2?{height:e.width,width:e.height}:{width:e.width,height:e.height};}}return n.ɵfac=function(e){return new(e||n)();},n.ɵprov=Fe({token:n,factory:n.ɵfac,providedIn:"root"}),n;})(),Ri=(()=>{class n{constructor(e,t,i,a,d,_,w){this.cropService=e,this.cropperPositionService=t,this.loadImageService=i,this.sanitizer=a,this.cd=d,this.zone=_,this.hammerLoa
3der=w,this.settings=new hn(),this.setImageMaxSizeRetries=0,this.resizedWhileHidden=!1,this.marginLeft="0px",this.maxSize={width:0,height:0},this.moveTypes=Ne,this.imageVisible=!1,this.cropperFrameAriaLabel=this.settings.cropperFrameAriaLabel,this.output=this.settings.output,this.format=this.settings.format,this.transform={},this.maintainAspectRatio=this.settings.maintainAspectRatio,this.aspectRatio=this.settings.aspectRatio,this.resetCropOnAspectRatioChange=this.settings.resetCropOnAspectRatioChange,this.resizeToWidth=this.settings.resizeToWidth,this.resizeToHeight=this.settings.resizeToHeight,this.cropperMinWidth=this.settings.cropperMinWidth,this.cropperMinHeight=this.settings.cropperMinHeight,this.cropperMaxHeight=this.settings.cropperMaxHeight,this.cropperMaxWidth=this.settings.cropperMaxWidth,this.cropperStaticWidth=this.settings.cropperStaticWidth,this.cropperStaticHeight=this.settings.cropperStaticHeight,this.canvasRotation=this.settings.canvasRotation,this.initialStepSize=this.settings.initialStepSize,this.roundCropper=this.settings.roundCropper,this.onlyScaleDown=this.settings.onlyScaleDown,this.imageQuality=this.settings.imageQuality,this.autoCrop=this.settings.autoCrop,this.backgroundColor=this.settings.backgroundColor,this.containWithinAspectRatio=this.settings.containWithinAspectRatio,this.hideResizeSquares=this.settings.hideResizeSquares,this.allowMoveImage=!1,this.cropper={x1:-100,y1:-100,x2:1e4,y2:1e4},this.alignImage=this.settings.alignImage,this.disabled=!1,this.hidden=!1,this.imageCropped=new q(),this.startCropImage=new q(),this.imageLoaded=new q(),this.cropperReady=new q(),this.loadImageFailed=new q(),this.transformChange=new q(),this.reset();}ngOnChanges(e){this.onChangesUpdateSettings(e),this.onChangesInputImage(e),this.loadedImage?.original.image.complete&&(e.containWithinAspectRatio||e.canvasRotation)&&this.loadImageService.transformLoadedImage(this.loadedImage,this.settings).then(t=>this.setLoadedImage(t)).catch(t=>this.loadImageError(t)),(e.cropper||e.maintainAspectRatio||e.aspectRatio)&&(this.setMaxSize(),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize(),this.maintainAspectRatio&&(this.resetCropOnAspectRatioChange||!this.aspectRatioIsCorrect())&&(e.maintainAspectRatio||e.aspectRatio)?this.resetCropperPosition():e.cropper&&(this.checkCropperPosition(!1),this.doAutoCrop())),e.transform&&(this.transform=this.transform||{},this.setCssTransform(),this.doAutoCrop()),e.hidden&&this.resizedWhileHidden&&!this.hidden&&setTimeout(()=>{this.onResize(),this.resizedWhileHidden=!1;});}onChangesUpdateSettings(e){this.settings.setOptionsFromChanges(e),this.settings.cropperStaticHeight&&this.settings.cropperStaticWidth&&(this.hideResizeSquares=!0,this.settings.setOptions({hideResizeSquares:!0,cropperMinWidth:this.settings.cropperStaticWidth,cropperMinHeight:this.settings.cropperStaticHeight,cropperMaxHeight:this.settings.cropperStaticHeight,cropperMaxWidth:this.settings.cropperStaticWidth,maintainAspectRatio:!1}));}onChangesInputImage(e){(e.imageChangedEvent||e.imageURL||e.imageBase64||e.imageFile)&&this.reset(),e.imageChangedEvent&&this.isValidImageChangedEvent()&&this.loadImageFile(this.imageChangedEvent.target.files[0]),e.imageURL&&this.imageURL&&this.loadImageFromURL(this.imageURL),e.imageBase64&&this.imageBase64&&this.loadBase64Image(this.imageBase64),e.imageFile&&this.imageFile&&this.loadImageFile(this.imageFile);}isValidImageChangedEvent(){return this.imageChangedEvent?.target?.files?.length>0;}setCssTransform(){let e=this.transform?.translateUnit||"%";this.safeTransformStyle=this.sanitizer.bypassSecurityTrustStyle(`translate(${this.transform.translateH||0}${e}, ${this.transform.translateV||0}${e}) scaleX(`+(this.transform.scale||1)*(this.transform.flipH?-1:1)+") scaleY("+(this.transform.scale||1)*(this.transform.flipV?-1:1)+") rotate("+(this.transform.rotate||0)+"deg)");}ngOnInit(){this.settings.stepSize=this.initialStepSize,this.activatePinchGesture();}reset(){this.imageVisible=!1,this.loadedImage=void 0,this.safeImgDataUrl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=",this.moveStart={active:!1,type:null,position:null,x1:0,y1:0,x2:0,y2:0,clientX:0,clientY:0},this.maxSize={width:0,height:0},this.cropper.x1=-100,this.cropper.y1=-100,this.cropper.x2=1e4,this.cropper.y2=1e4;}loadImageFile(e){this.loadImageService.loadImageFile(e,this.settings).then(t=>this.setLoadedImage(t)).catch(t=>this.loadImageError(t));}loadBase64Image(e){this.loadImageService.loadBase64Image(e,this.settings).then(t=>this.setLoadedImage(t)).catch(t=>this.loadImageError(t));}loadImageFromURL(e){this.loadImageService.loadImageFromURL(e,this.settings).then(t=>this.setLoadedImage(t)).catch(t=>this.loadImageError(t));}setLoadedImage(e){this.loadedImage=e,this.safeImgDataUrl=this.sanitizer.bypassSecurityTrustResourceUrl(e.transformed.objectUrl),this.cd.markForCheck();}loadImageError(e){console.error(e),this.loadImageFailed.emit();}imageLoadedInView(){this.loadedImage!=null&&(this.imageLoaded.emit(this.loadedImage),this.setImageMaxSizeRetries=0,setTimeout(()=>this.checkImageMaxSizeRecursively()));}checkImageMaxSizeRecursively(){this.setImageMaxSizeRetries>40?this.loadImageFailed.emit():this.sourceImageLoaded()?(this.setMaxSize(),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize(),this.resetCropperPosition(),this.cropperReady.emit(K({},this.maxSize)),this.cd.markForCheck()):(this.setImageMaxSizeRetries++,setTimeout(()=>this.checkImageMaxSizeRecursively(),50));}sourceImageLoaded(){return this.sourceImage?.nativeElement?.offsetWidth>0;}onResize(){if(this.loadedImage)if(this.hidden)this.resizedWhileHidden=!0;else{let e=K({},this.maxSize);this.setMaxSize(),this.resizeCropperPosition(e),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize();}}activatePinchGesture(){return C(this,null,function*(){yield this.hammerLoa
3der?.();let e=window?.Hammer||null;if(e){let t=new e(this.wrapper.nativeElement);t.get("pinch").set({enable:!0}),t.on("pinchmove",this.onPinch.bind(this)),t.on("pinchend",this.pinchStop.bind(this)),t.on("pinchstart",this.startPinch.bind(this));}else jn()&&console.warn("[NgxImageCropper] Could not find HammerJS - Pinch Gesture won't work");});}resizeCropperPosition(e){(e.width!==this.maxSize.width||e.height!==this.maxSize.height)&&(this.cropper.x1=this.cropper.x1*this.maxSize.width/e.width,this.cropper.x2=this.cropper.x2*this.maxSize.width/e.width,this.cropper.y1=this.cropper.y1*this.maxSize.height/e.height,this.cropper.y2=this.cropper.y2*this.maxSize.height/e.height);}resetCropperPosition(){this.cropperPositionService.resetCropperPosition(this.sourceImage,this.cropper,this.settings,this.maxSize),this.doAutoCrop(),this.imageVisible=!0;}keyboardAccess(e){this.changeKeyboardStepSize(e),this.keyboardMoveCropper(e);}changeKeyboardStepSize(e){let t=+e.key;t>=1&&t<=9&&(this.settings.stepSize=t);}keyboardMoveCropper(e){if(!["ArrowUp","ArrowDown","ArrowRight","ArrowLeft"].includes(e.key))return;let i=e.shiftKey?Ne.Resize:Ne.Move,a=e.altKey?Aa(e.key):Da(e.key),d=Va(e.key,this.settings.stepSize);e.preventDefault(),e.stopPropagation(),this.startMove({clientX:0,clientY:0},i,a),this.handleMouseMove(d),this.handleMouseUp();}startMove(e,t,i=null){this.disabled||this.moveStart?.active&&this.moveStart?.type===Ne.Pinch||t===Ne.Drag&&!this.allowMoveImage||(e.preventDefault&&e.preventDefault(),this.moveStart=K({active:!0,type:t,position:i,transform:K({},this.transform),clientX:this.cropperPositionService.getClientX(e),clientY:this.cropperPositionService.getClientY(e)},this.cropper),this.initMouseMove());}initMouseMove(){Zi(jt(document,"mousemove"),jt(document,"touchmove")).pipe(pt(Zi(jt(document,"mouseup"),jt(document,"touchend")).pipe(kn()))).subscribe({next:e=>this.zone.run(()=>{this.handleMouseMove(e),this.cd.markForCheck();}),complete:()=>this.zone.run(()=>{this.handleMouseUp(),this.cd.markForCheck();})});}startPinch(e){this.safeImgDataUrl&&(e.preventDefault&&e.preventDefault(),this.moveStart=K({active:!0,type:Ne.Pinch,position:"center",clientX:this.cropper.x1+(this.cropper.x2-this.cropper.x1)/2,clientY:this.cropper.y1+(this.cropper.y2-this.cropper.y1)/2},this.cropper));}handleMouseMove(e){if(this.moveStart.active){if(e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),this.moveStart.type===Ne.Move)this.cropperPositionService.move(e,this.moveStart,this.cropper),this.checkCropperPosition(!0);else if(this.moveStart.type===Ne.Resize)!this.cropperStaticWidth&&!this.cropperStaticHeight&&this.cropperPositionService.resize(e,this.moveStart,this.cropper,this.maxSize,this.settings),this.checkCropperPosition(!1);else if(this.moveStart.type===Ne.Drag){let t=this.cropperPositionService.getClientX(e)-this.moveStart.clientX,i=this.cropperPositionService.getClientY(e)-this.moveStart.clientY;this.transform=it(K({},this.transform),{translateH:(this.moveStart.transform?.translateH||0)+t,translateV:(this.moveStart.transform?.translateV||0)+i}),this.setCssTransform();}}}onPinch(e){this.moveStart.active&&(e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),this.moveStart.type===Ne.Pinch&&(this.cropperPositionService.resize(e,this.moveStart,this.cropper,this.maxSize,this.settings),this.checkCropperPosition(!1)),this.cd.markForCheck());}setMaxSize(){if(this.sourceImage){let e=getComputedStyle(this.sourceImage.nativeElement);this.maxSize.width=parseFloat(e.width),this.maxSize.height=parseFloat(e.height),this.marginLeft=this.sanitizer.bypassSecurityTrustStyle("calc(50% - "+this.maxSize.width/2+"px)");}}setCropperScaledMinSize(){this.loadedImage?.transformed?.image?(this.setCropperScaledMinWidth(),this.setCropperScaledMinHeight()):(this.settings.cropperScaledMinWidth=20,this.settings.cropperScaledMinHeight=20);}setCropperScaledMinWidth(){this.settings.cropperScaledMinWidth=this.cropperMinWidth>0?Math.max(20,this.cropperMinWidth/this.loadedImage.transformed.image.width*this.maxSize.width):20;}setCropperScaledMinHeight(){this.maintainAspectRatio?this.settings.cropperScaledMinHeight=Math.max(20,this.settings.cropperScaledMinWidth/this.aspectRatio):this.cropperMinHeight>0?this.settings.cropperScaledMinHeight=Math.max(20,this.cropperMinHeight/this.loadedImage.transformed.image.height*this.maxSize.height):this.settings.cropperScaledMinHeight=20;}setCropperScaledMaxSize(){if(this.loadedImage?.transformed?.image){let e=this.loadedImage.transformed.size.width/this.maxSize.width;this.settings.cropperScaledMaxWidth=this.cropperMaxWidth>20?this.cropperMaxWidth/e:this.maxSize.width,this.settings.cropperScaledMaxHeight=this.cropperMaxHeight>20?this.cropperMaxHeight/e:this.maxSize.height,this.maintainAspectRatio&&(this.settings.cropperScaledMaxWidth>this.settings.cropperScaledMaxHeight*this.aspectRatio?this.settings.cropperScaledMaxWidth=this.settings.cropperScaledMaxHeight*this.aspectRatio:this.settings.cropperScaledMaxWidth<this.settings.cropperScaledMaxHeight*this.aspectRatio&&(this.settings.cropperScaledMaxHeight=this.settings.cropperScaledMaxWidth/this.aspectRatio));}else this.settings.cropperScaledMaxWidth=this.maxSize.width,this.settings.cropperScaledMaxHeight=this.maxSize.height;}checkCropperPosition(e=!1){this.cropper.x1<0&&(this.cropper.x2-=e?this.cropper.x1:0,this.cropper.x1=0),this.cropper.y1<0&&(this.cropper.y2-=e?this.cropper.y1:0,this.cropper.y1=0),this.cropper.x2>this.maxSize.width&&(this.cropper.x1-=e?this.cropper.x2-this.maxSize.width:0,this.cropper.x2=this.maxSize.width),this.cropper.y2>this.maxSize.height&&(this.cropper.y1-=e?this.cropper.y2-this.maxSize.height:0,this.cropper.y2=this.maxSize.height);}handleMouseUp(){this.moveStart.active&&(this.moveStart.active=!1,this.moveStart?.type===Ne.Drag?this.transformChange.emit(this.transform):this.doAutoCrop());}pinchStop(){this.moveStart.active&&(this.moveStart.active=!1,this.doAutoCrop());}doAutoCrop(){this.autoCrop&&this.crop();}crop(e=this.settings.output){if(this.loadedImage?.transformed?.image!=null){if(this.startCropImage.emit(),e==="blob")return this.cropToBlob();if(e==="base64")return this.cropToBase64();}return null;}cropToBlob(){return new Promise((e,t)=>
3this.zone.run(()=>C(this,null,function*(){let i=yield this.cropService.crop(this.loadedImage,this.cropper,this.settings,"blob",this.maxSize);i?(this.imageCropped.emit(i),e(i)):t("Crop image failed");})));}cropToBase64(){let e=this.cropService.crop(this.loadedImage,this.cropper,this.settings,"base64",this.maxSize);return e?(this.imageCropped.emit(e),e):null;}aspectRatioIsCorrect(){return(this.cropper.x2-this.cropper.x1)/(this.cropper.y2-this.cropper.y1)===this.aspectRatio;}}return n.ɵfac=function(e){return new(e||n)(x(Fa),x(Ba),x(ja),x(pi),x(si),x(nn),x(Yn,8));},n.ɵcmp=P({type:n,selectors:[["image-cropper"]],viewQuery:function(e,t){if(e&1&&(se(Oa,7),se(Ea,5)),e&2){let i;re(i=ae())&&(t.wrapper=i.first),re(i=ae())&&(t.sourceImage=i.first);}},hostVars:6,hostBindings:function(e,t){e&1&&u("resize",function(){return t.onResize();},!1,Vn),e&2&&(mt("text-align",t.alignImage),Qe("disabled",t.disabled)("ngx-ix-hidden",t.hidden));},inputs:{imageChangedEvent:"imageChangedEvent",imageURL:"imageURL",imageBase64:"imageBase64",imageFile:"imageFile",imageAltText:"imageAltText",cropperFrameAriaLabel:"cropperFrameAriaLabel",output:"output",format:"format",transform:"transform",maintainAspectRatio:"maintainAspectRatio",aspectRatio:"aspectRatio",resetCropOnAspectRatioChange:"resetCropOnAspectRatioChange",resizeToWidth:"resizeToWidth",resizeToHeight:"resizeToHeight",cropperMinWidth:"cropperMinWidth",cropperMinHeight:"cropperMinHeight",cropperMaxHeight:"cropperMaxHeight",cropperMaxWidth:"cropperMaxWidth",cropperStaticWidth:"cropperStaticWidth",cropperStaticHeight:"cropperStaticHeight",canvasRotation:"canvasRotation",initialStepSize:"initialStepSize",roundCropper:"roundCropper",onlyScaleDown:"onlyScaleDown",imageQuality:"imageQuality",autoCrop:"autoCrop",backgroundColor:"backgroundColor",containWithinAspectRatio:"containWithinAspectRatio",hideResizeSquares:"hideResizeSquares",allowMoveImage:"allowMoveImage",cropper:"cropper",alignImage:"alignImage",disabled:"disabled",hidden:"hidden"},outputs:{imageCropped:"imageCropped",startCropImage:"startCropImage",imageLoaded:"imageLoaded",cropperReady:"cropperReady",loadImageFailed:"loadImageFailed",transformChange:"transformChange"},features:[dt],decls:5,vars:10,consts:[["wrapper",""],["sourceImage",""],["class","ngx-ic-source-image","role","presentation",3,"src","visibility","transform","ngx-ic-draggable","load","mousedown","touchstart","error",4,"ngIf"],[1,"ngx-ic-overlay"],["class","ngx-ic-cropper","tabindex","0",3,"ngx-ic-round","top","left","width","height","margin-left","visibility","keydown",4,"ngIf"],["role","presentation",1,"ngx-ic-source-image",3,"load","mousedown","touchstart","error","src"],["tabindex","0",1,"ngx-ic-cropper",3,"keydown"],["role","presentation",1,"ngx-ic-move",3,"mousedown","touchstart"],[4,"ngIf"],["role","presentation",1,"ngx-ic-resize","ngx-ic-topleft",3,"mousedown","touchstart"],[1,"ngx-ic-square"],[1,"ngx-ic-resize","ngx-ic-top"],["role","presentation",1,"ngx-ic-resize","ngx-ic-topright",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-right"],["role","presentation",1,"ngx-ic-resize","ngx-ic-bottomright",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-bottom"],["role","presentation",1,"ngx-ic-resize","ngx-ic-bottomleft",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-left"],["role","presentation",1,"ngx-ic-resize-bar","ngx-ic-top",3,"mousedown","touchstart"],["role","presentation",1,"ngx-ic-resize-bar","ngx-ic-right",3,"mousedown","touchstart"],["role","presentation",1,"ngx-ic-resize-bar","ngx-ic-bottom",3,"mousedown","touchstart"],["role","presentation",1,"ngx-ic-resize-bar","ngx-ic-left",3,"mousedown","touchstart"]],template:function(e,t){e&1&&(o(0,"div",null,0),b(2,ka,2,8,"img",2),g(3,"div",3),b(4,Ta,3,16,"div",4),r()),e&2&&(mt("background",t.imageVisible&&t.backgroundColor),l(2),c("ngIf",t.safeImgDataUrl),l(),mt("width",t.maxSize.width,"px")("height",t.maxSize.height,"px")("margin-left",t.alignImage==="center"?t.marginLeft:null),l(),c("ngIf",t.imageVisible));},dependencies:[N],styles:['[_nghost-%COMP%]{display:flex;position:relative;width:100%;max-width:100%;max-height:100%;overflow:hidden;padding:5px;text-align:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{width:100%;position:relative}[_nghost-%COMP%] > div[_ngcontent-%COMP%] img.ngx-ic-source-image[_ngcontent-%COMP%]{max-width:100%;max-height:100%;transform-origin:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%] img.ngx-ic-source-image.ngx-ic-draggable[_ngcontent-%COMP%]{user-drag:none;-webkit-user-drag:none;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;cursor:grab}[_nghost-%COMP%] .ngx-ic-overlay[_ngcontent-%COMP%]{position:absolute;pointer-events:none;touch-action:none;
3outline:var(--cropper-overlay-color, white) solid 100vw;top:0;left:0}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]{position:absolute;display:flex;color:#53535c;background:transparent;outline:rgba(255,255,255,.3) solid 100vw;outline:var(--cropper-outline-color, rgba(255, 255, 255, .3)) solid 100vw;touch-action:none}@media (orientation: portrait){[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]{outline-width:100vh}}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]:after{position:absolute;content:"";inset:0;pointer-events:none;border:dashed 1px;opacity:.75;color:inherit;z-index:1}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-move[_ngcontent-%COMP%]{width:100%;cursor:move;border:1px solid rgba(255,255,255,.5)}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]:focus .ngx-ic-move[_ngcontent-%COMP%]{border-color:#1e90ff;border-width:2px}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize[_ngcontent-%COMP%]{position:absolute;display:inline-block;line-height:6px;padding:8px;opacity:.85;z-index:1}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize[_ngcontent-%COMP%] .ngx-ic-square[_ngcontent-%COMP%]{display:inline-block;background:#53535C;width:6px;height:6px;border:1px solid rgba(255,255,255,.5);box-sizing:content-box}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-topleft[_ngcontent-%COMP%]{top:-12px;left:-12px;cursor:nwse-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-top[_ngcontent-%COMP%]{top:-12px;left:calc(50% - 12px);cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-topright[_ngcontent-%COMP%]{top:-12px;right:-12px;cursor:nesw-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-right[_ngcontent-%COMP%]{top:calc(50% - 12px);right:-12px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-bottomright[_ngcontent-%COMP%]{bottom:-12px;right:-12px;cursor:nwse-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-bottom[_ngcontent-%COMP%]{bottom:-12px;left:calc(50% - 12px);cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-bottomleft[_ngcontent-%COMP%]{bottom:-12px;left:-12px;cursor:nesw-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-left[_ngcontent-%COMP%]{top:calc(50% - 12px);left:-12px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar[_ngcontent-%COMP%]{position:absolute;z-index:1}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-top[_ngcontent-%COMP%]{top:-11px;left:11px;width:calc(100% - 22px);height:22px;cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-right[_ngcontent-%COMP%]{top:11px;right:-11px;height:calc(100% - 22px);width:22px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-bottom[_ngcontent-%COMP%]{bottom:-11px;left:11px;width:calc(100% - 22px);height:22px;cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-left[_ngcontent-%COMP%]{top:11px;left:-11px;height:calc(100% - 22px);width:22px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]{outline-color:transparent}[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]:after{border-radius:100%;box-shadow:0 0 0 100vw #ffffff4d;box-shadow:0 0 0 100vw var(--cropper-outline-color, rgba(255, 255, 255, .3))}@media (orientation: portrait){[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]:after{box-shadow:0 0 0 100vh #ffffff4d;box-shadow:0 0 0 100vh var(--cropper-outline-color, rgba(255, 255, 255, .3))}}[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%] .ngx-ic-move[_ngcontent-%COMP%]{border-radius:100%}.disabled[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize[_ngcontent-%COMP%], .disabled[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar[_ngcontent-%COMP%], .disabled[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-move[_ngcontent-%COMP%]{display:none}.ngx-ix-hidden[_nghost-%COMP%]{display:none}'],changeDetection:0}),n;})(),tr=(()=>{class n{}return n.ɵfac=function(e){return new(e||n)();},n.ɵmod=tn({type:n}),n.ɵinj=en({imports:[[U]]}),n;})();I();var ir=(()=>{class n{constructor(e){this.cdr=e,this.cropper=null,this.onCropperReady=t=>{this.imageWidth=t.width,this.imageHeight=t.height,this.maxCropperWidth=this.roundCropper?Math.min(this.imageWidth,this.imageHeight):this.imageWidth,this.cropperPosition=this.cropper.cropper,this.setCropperPosition(this.getCropperW
3idth());},this.setCropperPosition=t=>{let i=this.getCropperCenter(),a=.5*t,d=.5*t/this.aspectRatio,_=[];i.x-a>=0&&i.y-d>=0&&(this.cropperPosition.x1=i.x-a,this.cropperPosition.y1=i.y-d,_.push("x1","y1")),i.x+a<=this.imageWidth&&i.y+d<=this.imageHeight&&(this.cropperPosition.x2=i.x+a,this.cropperPosition.y2=i.y+d,_.push("x2","y2")),i.x+a<=this.imageWidth&&i.y-d>=0&&_.indexOf("x2")===-1&&_.indexOf("y1")===-1&&(this.cropperPosition.x2=i.x+a,_.push("x2"),this.cropperPosition.y1=i.y-d,_.push("y1")),i.x-a>=0&&i.y+d<=this.imageHeight&&_.indexOf("x1")===-1&&_.indexOf("y2")===-1&&(this.cropperPosition.x1=i.x-a,this.cropperPosition.y2=i.y+d);},this.getCropperWidth=()=>parseInt((this.proportion*this.maxCropperWidth).toString()),this.crop=()=>{this.proportion=this.cropWidth/100;let t=this.getCropperWidth();this.setCropperPosition(t),this.cropper.crop();},this.getCropperCenter=()=>{let t=this.cropperPosition.x2-this.cropperPosition.x1,i={x:0,y:0};return i.x=parseInt((this.cropperPosition.x1+.5*t).toString()),i.y=parseInt((this.cropperPosition.y1+.5*t/this.aspectRatio).toString()),i;},this.imageCropped=t=>{this.onImageCropped.emit(t);},this.onImageCropped=new q(),this.proportion=.5;}ngOnChanges(e){let{cropWidth:t}=e;t&&!t.isFirstChange()&&this.crop();}static{this.ɵfac=function(t){return new(t||n)(x(si));};}static{this.ɵcmp=P({type:n,selectors:[["image-crop"]],viewQuery:function(t,i){if(t&1&&se(Ri,5),t&2){let a;re(a=ae())&&(i.cropper=a.first);}},inputs:{imageFile:"imageFile",cropWidth:"cropWidth",roundCropper:"roundCropper",aspectRatio:"aspectRatio"},outputs:{onImageCropped:"onImageCropped"},standalone:!0,features:[dt,M],decls:1,vars:6,consts:[[1,"image-cropper",3,"cropperReady","imageCropped","maintainAspectRatio","imageFile","roundCropper","hideResizeSquares","autoCrop","aspectRatio"]],template:function(t,i){t&1&&(o(0,"image-cropper",0),u("cropperReady",function(d){return i.onCropperReady(d);})("imageCropped",function(d){return i.imageCropped(d);}),r()),t&2&&c("maintainAspectRatio",!0)("imageFile",i.imageFile)("roundCropper",i.roundCropper)("hideResizeSquares",!0)("autoCrop",!0)("aspectRatio",i.aspectRatio);},dependencies:[tr,Ri],styles:[".image-cropper[_ngcontent-%COMP%]{max-width:309px;max-height:189px}.image-cropper[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > .cropper[_ngcontent-%COMP%], .image-cropper-strip[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > .cropper[_ngcontent-%COMP%]{--cropper-outline-color: rgba(0, 0, 0, .56)}.image-cropper[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > .cropper[_ngcontent-%COMP%]:after, .image-cropper-strip[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > .cropper[_ngcontent-%COMP%]:after{border:4px solid #fffcfc!important}.image-crop-container[_ngcontent-%COMP%]{width:100%;padding:4px}.image-crop-container[_ngcontent-%COMP%] > .image-cropper[_ngcontent-%COMP%]{padding:0;border-radius:7px}@media only screen and (max-width: 767px){.image-crop-container[_ngcontent-%COMP%]{padding:0}.image-cropper[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{width:100%}}.image-cropper-strip[_ngcontent-%COMP%] img.source-image[_ngcontent-%COMP%]{max-height:580px!important}"]});}}return n;})();F();te();I();wo();var qa=n=>({"image-edit-container":n}),Wa=(n,m)=>({"image-edit-container":n,"crop-control-container":m}),nr=(()=>{class n extends me{constructor(e){super(e),this.data=e,this.INITIAL_SLIDER_VALUE=50,this.SLIDER_MIN_VALUE=30,this.onSliderChange=t=>{this.sliderValue=t.value;},this.onImageCropped=t=>{this.croppedImage=t.base64||t.blob;},this.submit=()=>{let t=new Bi();t.croppedImage=this.croppedImage,this.data.title&&(t.fileName=this.data.title),this.data.onSubmit(t);},this.sliderMinValue=this.SLIDER_MIN_VALUE,this.sliderValue=this.INITIAL_SLIDER_VALUE;}static{this.ɵfac=function(t){return new(t||n)(x(fe));};}static{this.ɵcmp=P({type:n,selectors:[["image-edit-dialog"]],standalone:!0,features:[W,M],decls:16,vars:16,consts:[["ngSlider",""],["ngSliderThumb","matSliderThumb"],["size","lg",3,"closed","title"],["modal-body",""],[3,"ngClass"],[1,"image-cropper-wrapper"],[1,"image-cropper-dimensions"],[3,"onImageCropped","imageFile","cropWidth","aspectRatio","roundCropper"],[2,"width","100%",3,"min","step","color"],["matSliderThumb","",3,"input","value"],["modal
3-footer",""],["variant","ghost","size","md",3,"clicked"],["variant","primary","size","md",3,"clicked"]],template:function(t,i){if(t&1){let a=y();o(0,"lib-modal",2),u("closed",function(){return f(a),h(i.close());}),o(1,"div",3)(2,"div",4)(3,"div",5)(4,"div",6)(5,"image-crop",7),u("onImageCropped",function(_){return f(a),h(i.onImageCropped(_));}),r(),o(6,"div",4)(7,"mat-slider",8,0)(9,"input",9,1),u("input",function(){f(a);let _=Ke(8),w=Ke(10);return h(i.onSliderChange({source:w,parent:_,value:w.value}));}),r()()()()()()(),o(11,"div",10)(12,"lib-button",11),u("clicked",function(){return f(a),h(i.close());}),s(13," Cancel "),r(),o(14,"lib-button",12),u("clicked",function(){return f(a),h(i.submit());}),s(15," Save "),r()()();}t&2&&(c("title",i.data.header),l(2),c("ngClass",ce(11,qa,!i.data.isImageStrip)),l(3),c("imageFile",i.data.file)("cropWidth",i.sliderValue)("aspectRatio",i.data.isImageStrip?3.5:1)("roundCropper",i.data.isRoundedCropper),l(),c("ngClass",Tt(13,Wa,i.data.isImageStrip,!i.data.isImageStrip)),l(),c("min",i.sliderMinValue)("step",1)("color","primary"),l(2),c("value",i.sliderValue));},dependencies:[Xe,ir,yo,bo,Co,pe,B],styles:[".image-edit-container[_ngcontent-%COMP%]{width:309px;margin:0 auto}.crop-control-container[_ngcontent-%COMP%]{width:100%}.crop-control-container[_ngcontent-%COMP%] > mat-slider.mat-mdc-slider[_ngcontent-%COMP%]{width:100%}.image-cropper-dimensions[_ngcontent-%COMP%] image-crop[_ngcontent-%COMP%] image-cropper.image-cropper[_ngcontent-%COMP%]{padding:0!important}.image-cropper-wrapper[_ngcontent-%COMP%] .cropper[_ngcontent-%COMP%]:after, .image-cropper-wrapper[_ngcontent-%COMP%] .move[_ngcontent-%COMP%]{border-radius:10px}@media only screen and (max-width: 767px){.image-edit-container[_ngcontent-%COMP%]{width:100%}}"]});}}return n;})();qe();var Li=class extends de{};we();te();I();var or=(()=>{class n{static{this.ɵfac=function(t){return new(t||n)();};}static{this.ɵcmp=P({type:n,selectors:[["app-my-account-shimmer"]],standalone:!0,features:[M],decls:67,vars:0,consts:[[1,"my-account-shimmer"],[1,"shimmer-card"],[1,"shimmer-progress-header"],[1,"shimmer-block","progress-circle-block"],[1,"shimmer-progress-text"],[1,"shimmer-block","title-block"],[1,"shimmer-block","text-block"],[1,"shimmer-block","text-block-short"],[1,"shimmer-progress-steps"],[1,"shimmer-block","step-block"],[1,"shimmer-title-bar"],[1,"shimmer-photo-row"],[1,"shimmer-block","avatar-block"],[1,"shimmer-photo-actions"],[1,"shimmer-block","button-block"],[1,"shimmer-block","button-block-sm"],[1,"shimmer-block","icon-block"],[1,"shimmer-info-grid"],[1,"shimmer-info-field"],[1,"shimmer-block","label-block"],[1,"shimmer-block","value-block"],[1,"shimmer-bio-field"],[1,"shimmer-title-group"],[1,"shimmer-block","text-block-medium"],[1,"shimmer-channel-row"],[1,"shimmer-block","channel-icon-block"],[1,"shimmer-channel-text"],[1,"shimmer-block","sub-title-block"],[1,"shimmer-block","hint-block"],[1,"shimmer-cta-area"],[1,"shimmer-block","cta-button-block"],[1,"wave"]],template:function(t,i){t&1&&(o(0,"div",0)(1,"div",1)(2,"div",2),g(3,"div",3),o(4,"div",4),g(5,"div",5)(6,"div",6)(7,"div",7),r()(),o(8,"div",8),g(9,"div",9)(10,"div",9)(11,"div",9)(12,"div",9)(13,"div",9),r()(),o(14,"div",1)(15,"div",10),g(16,"div",5),r(),o(17,"div",11),g(18,"div",12),o(19,"div",13),g(20,"div",14)(21,"div",15),r()()(),o(22,"div",1)(23,"div",10),g(24,"div",5)(25,"div",16),r(),o(26,"div",17)(27,"div",18),g(28,"div",19)(29,"div",20),r(),o(30,"div",18),g(31,"div",19)(32,"div",20),r(),o(33,"div",18),g(34,"div",19)(35,"div",20),r(),o(36,"div",18),g(37,"div",19)(38,"div",20),r()(),o(39,"div",21),g(40,"div",19)(41,"div",6)(42,"div",7),r()(),o(43,"div",1)(44,"div",10)(45,"div",22),g(46,"div",5)(47,"div",23),r(),g(48,"div",16),r(),o(49,"div",24),g(50,"div",25),o(51,"div",26),g(52,"div",27)(53,"div",28),r()(),o(54,"div",24),g(55,"div",25),o(56,"div",26),g(57,"div",27)(58,"div",28),r()()(),o(59,"div",1)(60,"div",10)(61,"div",22),g(62,"div",5)(63,"div",23),r()(),o(64,"div",29),g(65,"div",30),r()(),g(66,"div",31),r());},styles:[".my-account-shimmer[_ngcontent-%COMP%]{position:relative;overflow:hidden;width:100%;display:flex;flex-direction:column;gap:18px}.shimmer-card[_ngcontent-%COMP%]{background:#fff;border-radius:16px;padding:24px;width:100%}.shimmer-block[_ngcontent-%COMP%]{background:#4481fd1f;border-radius:6px;flex-shrink:0}.title-block[_ngcontent-%COMP%]{width:180px;height:22px}.sub-title-block[_ngcontent-%COMP%]{width:140px;height:16px}.text-block[_ngcontent-%COMP%]{width:100%;height:14px}.text-block-short[_ngcontent-%COMP%]{width:75%;height:14px}
3.text-block-medium[_ngcontent-%COMP%]{width:280px;height:14px}.label-block[_ngcontent-%COMP%]{width:100px;height:12px}.value-block[_ngcontent-%COMP%]{width:160px;height:16px}.button-block[_ngcontent-%COMP%]{width:100px;height:36px;border-radius:8px}.button-block-sm[_ngcontent-%COMP%]{width:70px;height:36px;border-radius:8px}.icon-block[_ngcontent-%COMP%]{width:36px;height:36px;border-radius:8px}.hint-block[_ngcontent-%COMP%]{width:80px;height:12px}.shimmer-progress-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px;margin-bottom:20px}.progress-circle-block[_ngcontent-%COMP%]{width:56px;height:56px;border-radius:50%}.shimmer-progress-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px;flex:1}.shimmer-progress-steps[_ngcontent-%COMP%]{display:flex;gap:12px}.step-block[_ngcontent-%COMP%]{flex:1;height:80px;border-radius:12px}.shimmer-title-bar[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.shimmer-photo-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px}.avatar-block[_ngcontent-%COMP%]{width:100px;height:100px;border-radius:50%}.shimmer-photo-actions[_ngcontent-%COMP%]{display:flex;gap:8px}.shimmer-info-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px}.shimmer-info-field[_ngcontent-%COMP%], .shimmer-bio-field[_ngcontent-%COMP%], .shimmer-title-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.shimmer-channel-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:12px 0}.channel-icon-block[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:50%}.shimmer-channel-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px}.shimmer-cta-area[_ngcontent-%COMP%]{display:flex;justify-content:center;padding:20px 0}.cta-button-block[_ngcontent-%COMP%]{width:200px;height:44px;border-radius:22px}.wave[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.3) 50%,transparent 100%);transform:translate(-100%);animation:_ngcontent-%COMP%_wave 1.5s infinite}@keyframes _ngcontent-%COMP%_wave{0%{transform:translate(-100%)}50%{transform:translate(100%)}to{transform:translate(100%)}}@media only screen and (max-width: 767px){.shimmer-info-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}.shimmer-progress-steps[_ngcontent-%COMP%]{flex-wrap:wrap}.step-block[_ngcontent-%COMP%]{min-width:calc(50% - 6px)}}",".profile-common-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.profile-common-sub-container[_ngcontent-%COMP%]{background-color:#fff;border-radius:10px;padding:18px;width:100%;margin:0 0 18px}.profile-common-title[_ngcontent-%COMP%]{font-size:18px;line-height:24px;font-family:Inter-Bold;color:#253658;display:flex;align-items:center;gap:5px}hr.profile-common-hr[_ngcontent-%COMP%]{margin:18px 0}.profile-common-paragraph[_ngcontent-%COMP%]{font-size:14px;color:#7b8db1}.profile-common-sub-title[_ngcontent-%COMP%]{margin-bottom:12px;color:#000;line-height:24px;font-size:15px;font-weight:600;text-transform:capitalize;display:flex;align-items:center;gap:5px}.profile-big-sub-title[_ngcontent-%COMP%]{font-size:28px;font-family:Inter-Bold;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#253658;margin-bottom:8px}
3.content-separator[_ngcontent-%COMP%]{height:1px;background-color:#7b8db14d;margin:18px 0}.profile-sub-header[_ngcontent-%COMP%]{font-size:14px;color:#25365899;max-width:380px}.profile-details-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;height:36px}.profile-buttons-container[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px}.profile-details-cancel-button[_ngcontent-%COMP%], .profile-details-save-button[_ngcontent-%COMP%]{width:90px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px}.profile-details-cancel-button[_ngcontent-%COMP%]:hover, .profile-details-save-button[_ngcontent-%COMP%]:hover{opacity:.8}.profile-details-cancel-button[_ngcontent-%COMP%]{background:#7b8db114;color:#7b8db1;margin:0 12px 0 auto}.profile-details-save-button[_ngcontent-%COMP%]{background:#00abfe;color:#fff}.profile-details-preview[_ngcontent-%COMP%]{padding:0 22px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px;border:1px solid #00abfe;color:#00abfe;background:#fff}.disabled-button[_ngcontent-%COMP%]{background:gray!important;color:#d3d3d3!important}.disabled-button[_ngcontent-%COMP%]:hover{opacity:1} autocomplete-menu .autocomplete-menu-container{border-radius:10px;background-color:#7b8db114;padding:5px 12px;height:46px;cursor:text} autocomplete-menu .autocomplete-menu-container input{color:#253658;font-size:14px} autocomplete-menu .autocomplete-menu-container .mat-form-field-label-wrapper label mat-label{color:#00abfe!important;font-weight:700} autocomplete-menu .autocomplete-menu-container .mdc-line-ripple{display:none!important}.billing-plan-details-title[_ngcontent-%COMP%]{color:#888;font-size:12px;font-weight:400;text-transform:capitalize}.billing-plan-details-sub-title[_ngcontent-%COMP%]{color:#000;font-size:13px;font-weight:700;text-transform:capitalize}"]});}}return n;})();ei();I();at();Oe();be();Bt();ye();Kr();we();vi();var Qa=["fileInput"],$a=(n,m)=>({"step-completed":n,"step-clickable":m}),Qt=n=>({"not-set":n});function Ka(n,m){n&1&&g(0,"app-my-account-shimmer");}function Xa(n,m){n&1&&g(0,"img",48);}function Ja(n,m){n&1&&g(0,"img",49);}function Za(n,m){n&1&&g(0,"img",50);}function el(n,m){if(n&1){let e=y();o(0,"div",41),u("click",function(){let i=f(e).$implicit,a=p(3);return h(a.navigateToStep(i));}),o(1,"div",42),g(2,"img",43),b(3,Xa,1,0,"img",44)(4,Ja,1,0,"img",45)(5,Za,1,0,"img",46),r(),o(6,"span",47),s(7),r()();}if(n&2){let e=m.$implicit;c("ngClass",Tt(6,$a,e.completed,!e.completed)),l(2),c("src",e.icon,ge),l(),c("ngIf",e.completed),l(),c("ngIf",!e.completed&&e.external),l(),c("ngIf",!e.completed&&!e.external),l(2),E(e.label);}}function tl(n,m){if(n&1&&(o(0,"div",29)(1,"div",30)(2,"div",31),Tn(),o(3,"svg",32),g(4,"path",33)(5,"path",34),r(),Dn(),o(6,"span",35),s(7),r()(),o(8,"div",36)(9,"div",37),s(10,"Complete your profile"),r(),o(11,"div",38),s(12,"Create branded scripts, personalized video pages, outros, and insightful dashboards."),r()()(),o(13,"div",39),b(14,el,8,9,"div",40),r()()),n&2){let e=p(2);l(5),qt("stroke-dasharray",e.completedStepCount/5*100+", 100"),l(2),A("",e.completedStepCount,"/5"),l(7),c("ngForOf",e.profileCompletionSteps);}}function il(n,m){if(n&1&&g(0,"lib-avatar",51),n&2){let e=p(2);c("avatarImage",e.userProfileImgUrl);}}function nl(n,m){n&1&&(o(0,"div",52),g(1,"img",53),r());}function ol(n,m){if(n&1){let e=y();o(0,"lib-button",54),u("clicked",function(){f(e);let i=p(2);return h(i.removeProfilePhoto());}),s(1," Remove "),r();}n&2&&c("destructive",!0);}function rl(n,m){if(n&1){let e=y();R(0),o(1,"lib-button-icon",55),u("clicked",function(){f(e);let i=p(2);return h(i.startEditing("personal"));}),r(),L();}if(n&2){let e=p(2);l(),c("disabled",e.editingSection!==null&&e.editingSection!=="personal")("matTooltip",e.getEditLockTooltip())("matTooltipDisabled",!e.editingSection||e.editingSection==="personal");}}function al(n,m){if(n&1){let e=y();R(0),o(1,"lib-button",56),u("clicked",function(){f(e);let i=p(2);return h(i.cancelEditing());}),s(2,"Cancel"),r(),o(3,"lib-button",57),u("clicked",function(){f(e);let i=p(2);return h(i.savePersonalInfo());}),s(4,"Save"),r(),L();}}function ll(n,m){if(n&1&&(o(0,"div",58)(1,"div",59)(2,"div",60)(3,"span",61),s(4,"Full Name"),r(),o(5,"span",62),s(6),r()(),o(7,"div",60)(8,"span",61),s(9,"Role"),r(),o(10,"span",62),s(11),r()(),o(12,"div",60)(13,"span",61),s(14,"Title"),r(),o(15,"span",62),s(16),r()(),o(17,"div",60)(18,"span",61),s(19,"Default Language"),r(),o(20,"span",62),s(21),r()()(),o(22,"div",63)(23,"span",61),s(24,"Bio"),r(),o(25,"span",64),s(26),r()()()),n&2){let e=p(2);l(5),c("ngClass",ce(10,Qt,!e.fullNameDisplay)),l(),A(" ",e.fullNameDisplay||"Not set"," "),l(4),c("ngClass",ce(12,Qt,!e.roleDisplay)),l(),A(" ",e.roleDisplay||"Not set"," "),l(4),c("ngClass",ce(14,Qt,!e.titleDisplay)),l(),A(" ",e.titleDisplay||"Not set"," "),l(4),c("ngClass",ce(16,Qt,!e.languageDisplay)),l(),A(" ",e.languageDisplay||"Not set"," "),l(4),c("ngClass",ce(18,Qt,!e.bioDisplay)),l(),A(" ",e.bioDisplay||"Not set"," ");}}function sl(n,m){if(n&1){let e=y();o(0,"div",65)(1,"div",66)(2,"lib-input",67),Z("valueChange",function(i){f(e);let a=p(2);return J(a.firstNameControl.value,i)||(a.firstNameControl.value=i),h(i);}),u("valueChange",function(i){f(e);let a=p(2);return a.firstNameControl.setValue(i),h(a.firstNameControl.markAsDirty());}),r(),o(3,"lib-input",68),Z("valueChange",function(i){f(e);let a=p(2);return J(a.lastNameControl.value,i)||(a.lastNameControl.value=i),h(i);}),u("valueChange",function(i){f(e);let a=p(2);return a.lastNameControl.setValue(i),h(a.lastNameControl.markAsDirty());}),r()(),o(4,"div",66)(5,"lib-dropdown",69),Z("valueChange",function(i){f(e);let a=p(2);return J(a.roleControl.value,i)||(a.roleControl.value=i),h(i);}),u("valueChange",function(i){f(e);let a=p(2);return a.roleControl.setValue(i),h(a.roleControl.markAsDirty());}),r(),o(6,"lib-dropdown",70),Z("valueChange",function(i){f(e);let a=p(2);return J(a.languageControl.value,i)||(a.languageControl.value=i),h(i);}),u("valueChange",function(i){f(e);let a=p(2);return a.languageControl.setValue(i),h(a.languageControl.markAsDirty());}),r()(),o(7,"div",71)(8,"lib-input",72),Z("valueChange",function(i){f(e);let a=p(2);return J(a.titleControl.value,i)||(a.titleControl.value=i),h(i);}),u("valueChange",function(i){f(e);let a=p(2);return a.titleControl.setValue(i),h(a.titleControl.markAsDirty());}),r()(),o(9,"div",71)(10,"lib-textarea",73),Z("valueChange",function(i){f(e);let a=p(2);return J(a.bioControl.value,i)||(a.bioControl.value=i),h(i);}),u("valueChange",function(i){f(e);let a=p(2);return h(a.onBioValueChange(i));}),r(),o(11,"div",74)(12,"span",75),s(13,"Brief description for your profile"),r(),o(14,"span",76),s(15),r()()()();}if(n&2){let e=p(2);l(2),c("label",!0)("required",!0),X("value",e.firstNameControl.value),l(),c("label",!0)("required",!1),X("value",e.lastNameControl.value),l(2),c("label",!0)("required",!1)("options",e.roleMenuOptions)("searchable",!0),X("value",e.roleControl.value),l(),c("label",!0)("required",!1)("options",e.languageMenuOptions)("searchable",!0),X("value",e.languageControl.value),l(2),c("label",!0)("required",!1),X("value",e.titleControl.value),l(2),c("label",!0)("required",!1)("aiButton",!1)("state",e.bioErrorMessage?"error":"default")("errorMessage",e.bioErrorMessage),X("value",e.bioControl.value),l(5),A("",e.bioCharCount," / 500");}}
3function cl(n,m){if(n&1&&(o(0,"span",90),s(1),r()),n&2){let e=p().$implicit,t=p(3);l(),A(" ",t.formatFollowerCount(e.channel.memberCount)," ");}}function pl(n,m){if(n&1){let e=y();o(0,"lib-button-icon",91),u("clicked",function(){f(e);let i=p().$implicit,a=p(3);return h(a.reconnectChannel(i));}),r();}n&2&&c("destructive",!0);}function dl(n,m){if(n&1){let e=y();o(0,"div",79)(1,"div",80),g(2,"img",81),o(3,"img",82),u("error",function(i){return f(e),h(i.target.style.display="none");}),r(),o(4,"div",83)(5,"span",84),s(6),r(),o(7,"span",85),s(8),r()()(),o(9,"div",86),b(10,cl,2,1,"span",87)(11,pl,1,1,"lib-button-icon",88),o(12,"lib-dropdown",89),u("selectionChange",function(i){let a=f(e).$implicit,d=p(3);return h(d.onChannelMenuAction(a,i));}),r()()();}if(n&2){let e=m.$implicit,t=p(3);l(2),c("src",e.channel.logoUrl,ge),l(),c("src",e.channel.profileImgUrl,ge),l(3),kt("","@","",e.channel.title,""),l(2),E(t.getChannelTypeLabel(e)),l(2),c("ngIf",e.channel.memberCount&&!e.taskError),l(),c("ngIf",e.taskError),l(),c("iconOnly",!0)("label",!1)("options",t.channelMenuOptions)("showSelected",!1)("showSeparators",!0);}}function ml(n,m){if(n&1&&(o(0,"div",77),b(1,dl,13,12,"div",78),r()),n&2){let e=p(2);l(),c("ngForOf",e.socialChannels);}}function gl(n,m){if(n&1){let e=y();o(0,"div",92)(1,"div",93)(2,"span",94),s(3,"No channels selected"),r(),o(4,"span",95),s(5,"Connect a social account to choose which channels appear on your shared profile."),r(),o(6,"lib-button",96),u("clicked",function(){f(e);let i=p(2);return h(i.navigateToSocialChannels());}),s(7," Connect channels "),r()()();}}function ul(n,m){if(n&1){let e=y();o(0,"lib-button-icon",55),u("clicked",function(){f(e);let i=p(3);return h(i.startEditing("cta"));}),r();}if(n&2){let e=p(3);c("disabled",e.editingSection!==null&&e.editingSection!=="cta")("matTooltip",e.getEditLockTooltip())("matTooltipDisabled",!e.editingSection||e.editingSection==="cta");}}function fl(n,m){if(n&1&&(R(0),b(1,ul,1,3,"lib-button-icon",97),L()),n&2){let e=p(2);l(),c("ngIf",e.currentCtaButton);}}function hl(n,m){if(n&1){let e=y();R(0),o(1,"lib-button",56),u("clicked",function(){f(e);let i=p(2);return h(i.cancelEditing());}),s(2,"Cancel"),r(),o(3,"lib-button",57),u("clicked",function(){f(e);let i=p(2);return h(i.saveCtaButton());}),s(4,"Save"),r(),L();}}function _l(n,m){if(n&1){let e=y();o(0,"img",103),u("error",function(i){return f(e),h(i.target.style.display="none");}),r();}if(n&2){let e=p(3);Bn("src","/img/icons/cta/",e.currentCtaButton.action==null?null:e.currentCtaButton.action.toLowerCase(),".svg",ge);}}function xl(n,m){if(n&1&&(o(0,"div",98)(1,"div",99)(2,"a",100),b(3,_l,1,2,"img",101),s(4),r()(),o(5,"span",102),s(6,"Press the button to test it"),r()()),n&2){let e=p(2);l(2),mt("background",e.currentCtaButton.color)("color",e.currentCtaButton.textColor),c("href",e.ctaPreviewHref,ge),l(),c("ngIf",e.currentCtaButton.icon),l(),A(" ",e.currentCtaButton.text," ");}}function vl(n,m){if(n&1){let e=y();o(0,"div",92)(1,"div",93)(2,"lib-button",104),u("clicked",function(){f(e);let i=p(2);return h(i.startAddCta());}),s(3," Add CTA "),r(),o(4,"span",95),s(5,"Most creators choose Email Me or Schedule."),r(),o(6,"a",105),g(7,"span",106),s(8," Watch how it works "),r()()();}}function bl(n,m){if(n&1){let e=y();o(0,"div",107)(1,"cta-button-editor",108),u("onButtonChanges",function(i){f(e);let a=p(2);return h(a.onCtaFormChange(i));})("onValidationChange",function(i){f(e);let a=p(2);return h(a.onCtaValidationChange(i));}),r()();}if(n&2){let e=p(2);l(),c("currentActionButton",e.currentCtaButton)("valid",e.ctaValid)("context",e.pagesCTAContext.profile);}}function Cl(n,m){if(n&1){let e=y();o(0,"div",3),b(1,tl,15,3,"div",4),o(2,"div",5)(3,"div",6)(4,"h2",7),s(5,"Profile Photo"),r()(),o(6,"div",8)(7,"div",9),b(8,il,1,1,"lib-avatar",10)(9,nl,2,0,"div",11),r(),o(10,"div",12)(11,"lib-button",13),u("clicked",function(){f(e);let i=p();return h(i.onUploadPhotoClick());}),s(12," Upload file "),r(),b(13,ol,2,1,"lib-button",14),r(),o(14,"input",15,0),u("change",function(i){f(e);let a=p();return h(a.onFileSelected(i));}),r()()(),o(16,"div",16)(17,"div",6)(18,"h2",7),s(19,"Personal Information"),r(),o(20,"div",17),b(21,rl,2,3,"ng-container",1)(22,al,5,
30,"ng-container",1),r()(),b(23,ll,27,20,"div",18)(24,sl,16,26,"div",19),r(),o(25,"div",20)(26,"div",6)(27,"div",21)(28,"h2",7),s(29,"Social channels"),r(),o(30,"p",22),s(31,"Choose which connected channels appear on your shared profile."),r()(),o(32,"lib-button-icon",23),u("clicked",function(){f(e);let i=p();return h(i.navigateToSocialChannels());}),r()(),b(33,ml,2,1,"div",24)(34,gl,8,0,"div",25),r(),o(35,"div",26)(36,"div",6)(37,"div",21)(38,"h2",7),s(39,"Call-to-Action Button"),r(),o(40,"p",22),s(41,"Add a button to your shared profile so people can contact you or visit your links."),r()(),o(42,"div",17),b(43,fl,2,1,"ng-container",1)(44,hl,5,0,"ng-container",1),r()(),b(45,xl,7,7,"div",27)(46,vl,9,0,"div",25)(47,bl,2,3,"div",28),r()();}if(n&2){let e=p();l(),c("ngIf",e.showProgressTracker),l(7),c("ngIf",e.userProfileImgUrl),l(),c("ngIf",!e.userProfileImgUrl),l(4),c("ngIf",e.hasCustomProfileImage),l(),c("accept",e.validImageFormats),l(7),c("ngIf",e.editingSection!=="personal"),l(),c("ngIf",e.editingSection==="personal"),l(),c("ngIf",e.editingSection!=="personal"),l(),c("ngIf",e.editingSection==="personal"),l(9),c("ngIf",e.socialChannels.length>0),l(),c("ngIf",e.socialChannelsLoaded&&e.socialChannels.length===0),l(9),c("ngIf",e.editingSection!=="cta"),l(),c("ngIf",e.editingSection==="cta"),l(),c("ngIf",e.editingSection!=="cta"&&e.currentCtaButton),l(),c("ngIf",e.editingSection!=="cta"&&!e.currentCtaButton),l(),c("ngIf",e.editingSection==="cta");}}var rr=(()=>{class n extends et{get ctaPreviewHref(){if(!this.currentCtaButton)return"";let e=Ti.getUrlBuilderByType(this.currentCtaButton.action);return e?e(this.currentCtaButton.url):this.currentCtaButton.url||"";}get hasCustomProfileImage(){return!!this.userProfileImgUrl&&this.userProfileImgUrl!==ct.globals.emptyProfileImgUrl;}constructor(e,t,i,a,d,_,w,v,O,D,j){super(_),this.userHelperService=e,this.requestsService=t,this.eventsService=i,this.socialNetworkHelperService=a,this.deskManagerHelperService=d,this.profileChangesService=_,this.notifier=w,this.cookieService=v,this.uploadHelperService=O,this.fileValidationService=D,this.dialogService=j,this.fileInput=null,this.validImageFormats="image/jpg, image/png, image/jpeg, image/webp, image/bmp, image/ico",this.pagesCTAContext=No,this.isLoading=!0,this.editingSection=null,this.fullNameDisplay="",this.roleDisplay="",this.titleDisplay="",this.languageDisplay="",this.bioDisplay="",this.bioErrorMessage="",this.roleMenuOptions=[],this.languageMenuOptions=[],this.channelMenuOptions=[{value:"reconnect",name:"Reconnect Channel",subtitle:"Re-authorize channel to restore posting and access",sideIconClass:"/img/icon-library/symbols/retry-reload.svg"},{value:"shared-posting",name:"Shared Posting",subtitle:"Workspace or Personal (only you)",sideIconClass:"/img/icons/link.svg"},{value:"remove",name:"Remove Channel",subtitle:"Disconnect this channel from BIGVU",sideIconClass:"/img/icon-library/basic-ui/delete-trash.svg",style:"color: #dc2626"}],this.socialChannels=[],this.socialChannelsLoaded=!1,this.currentCtaButton=null,this.savedCtaButton=null,this.ctaValid=!0,this.isExpert=!1,this.profileCompletionSteps=[],this.completedStepCount=0,this.showProgressTracker=!1,this.savePersonalInfo=()=>
3C(this,null,function*(){if(this.personalForm.invalid){this.notifier.error("Please fill in all required fields");return;}let k=(this.bioControl.value||"").trim();if(!k&&this.userData?.bio){this.bioErrorMessage="Bio can't be empty. Please add a short bio or restore your previous one";return;}let z=(this.firstNameControl.value||"").trim(),$=(this.lastNameControl.value||"").trim(),S=$?`${z} ${$}`:z,T={fullName:S,lang:this.languageControl.value||this.userData?.lang,industry:this.roleControl.value||this.userData?.industry||"other"};k&&(T.bio=k);try{yield this.userHelperService.updateUser(T),this.cookieService.setCookie("username",S,"2");let H=T.bio??this.userData?.bio??"";if(this.fullNameDisplay=S,this.roleDisplay=this.getIndustryDisplayName(T.industry),this.languageDisplay=this.getLanguageDisplayName(T.lang),this.bioDisplay=H,this.titleDisplay=this.titleControl.value||"",this.isExpert&&this.titleControl.value)try{yield this.requestsService.updateExpert({role:this.titleControl.value});}catch(oe){console.error("Failed to update expert title",oe);}this.userData=it(K({},this.userData),{fullName:S,lang:T.lang,industry:T.industry,bio:H}),this.lastReceivedUserData=this.userData,this.personalForm.markAsPristine(),this.setHasChanges(!1),this.editingSection=null,this.notifier.success("Profile updated successfully"),this.eventsService.log(this.eventsService.events.profile.saveDetails,{name:S,language:T.lang,industry:T.industry}),this.eventsService.updateRegister("name",S),this.updateProgressTracker();}catch(H){let oe=H?.responseJSON?.code,tt=H?.responseJSON?.msg||"";oe==="1400"&&tt.toLowerCase().includes("bio")?this.bioErrorMessage="Bio can't be empty. Please add a short bio to your profile":this.notifier.error("Failed to update profile. Please try again");}}),this.saveProfileImage=k=>C(this,null,function*(){try{this.dialogService.close();let z=yield this.uploadHelperService.blobToBase64(k.croppedImage),$=yield this.uploadHelperService.uploadProfileImage(z,k.fileName);if($){yield this.userHelperService.updateUser({profileImgAssetId:$.assetId},!0);let S=yield this.userHelperService.getUserDetails(!0),T=S.profileImgAsset?.url||S.profileImgUrl;this.userProfileImgUrl=T?`${T}?${Date.now()}`:"",this.userData=S,this.lastReceivedUserData=S,this.eventsService.log(this.eventsService.events.profile.profileProcessEnd,{process:"profile-picture-change"}),this.notifier.success("Profile image updated"),this.updateProgressTracker();}}catch(z){console.error(z),this.notifier.error("Failed to upload profile image");}}),this.removeProfilePhoto=()=>C(this,null,function*(){this.eventsService.log(this.eventsService.events.profile.profileProcessStart,{process:"profile-picture-change"});try{yield this.userHelperService.updateUser({profileImgAssetId:""}),this.userProfileImgUrl="",this.userData&&(this.userData.profileImgUrl="",this.userData.profileImgAssetId=""),this.eventsService.log(this.eventsService.events.profile.profileProcessEnd,{process:"profile-picture-change"}),this.notifier.success("Profile image removed"),this.updateProgressTracker();}catch{this.notifier.error("Failed to remove profile image");}}),this.saveCtaButton=()=>C(this,null,function*(){if(!this.ctaValid||!this.currentCtaButton){this.notifier.error("Please fill in the CTA button details");return;}this.eventsService.log(this.eventsService.events.profile.profileProcessStart,{process:"cta-change"});try{this.expertApiData?yield this.requestsService.updateExpert({button:this.currentCtaButton}):this.expertApiData=yield this.requestsService.applyExpert({button:this.currentCtaButton,fullName:this.userData?.fullName}),this.eventsService.log(this.eventsService.events.profile.profileProcessEnd,{process:"cta-change"}),this.notifier.success("CTA button updated"),this.editingSection=null,this.updateProgressTracker();}catch{this.notifier.error("Failed to update CTA button");}}),this.STEP_LABEL_TO_KEY={"Profile picture":"picture","Personal information":"info","Social channels":"social","Call-to-Action Button":"cta","Business Profile (Brand Kit)":"brandkit"};}ngOnInit(){return C(this,null,function*(){this.initPersonalForm(),this.setLanguageMenuOptions(),yield this.setIndustryMenuOptions(),yield this.loadUserData(),yield this.loadSocialChannels(),yield this.loadExpertData(),this.updateProgressTracker(),this.logProfileCompleteOpen(),this.logProfileProperties(),this.setFormControlReference(this.personalForm),this.setConfirmationAction(this.savePersonalInfo),this.isLoading=!1;});}loadUserData(){return C(this,null,function*(){try{let e=yield this.userHelperService.getUserDetails();this.lastReceivedUserData=e,this.userData=e,this.setViewModeData(e);}catch(e){console.error(e),this.notifier.error("Failed to load user data");}});}setViewModeData(e){this.userId=e.userId,this.userProfileImgUrl=e.profileImgAsset?.url||e.profileImgUrl,this.fullNameDisplay=e.fullName||"",this.roleDisplay=this.getIndustryDisplayName(e.industry),this.languageDisplay=this.getLanguageDisplayName(e.lang),this.bioDisplay=e.bio||"",this.titleDisplay="",this.isExpert=e.isExpert;}loadSocialChannels(){return C(this,null,function*(){try{let e=this.deskManagerHelperService.getSelectedWorkspaceId();if(e){let t=yield this.socialNetworkHelperService.getLinkedAccounts(e,50,
30);this.socialChannels=t?.data||[];}}catch(e){console.error("Failed to load social channels",e);}finally{this.socialChannelsLoaded=!0;}});}loadExpertData(){return C(this,null,function*(){try{if(this.expertApiData=yield this.requestsService.getExpert(),this.expertApiData){this.isExpert&&(this.titleDisplay=this.expertApiData.role||"");let e=this.expertApiData.button;e&&e.action!==Nt.NO_BUTTON&&(this.currentCtaButton=e);}}catch{}});}initPersonalForm(){this.firstNameControl=new Pe("",[Ce.required,Ce.minLength(1)]),this.lastNameControl=new Pe(""),this.roleControl=new Pe(""),this.languageControl=new Pe(""),this.titleControl=new Pe(""),this.bioControl=new Pe("",[Ce.maxLength(500)]),this.personalForm=new rn({firstName:this.firstNameControl,lastName:this.lastNameControl,role:this.roleControl,language:this.languageControl,title:this.titleControl,bio:this.bioControl}),this.ctaFormGroup=new rn({ctaButton:new Pe(null)});}populatePersonalForm(){let e=(this.userData?.fullName||"").split(" "),t=e[0]||"",i=e.slice(1).join(" ")||"";this.firstNameControl.setValue(t),this.lastNameControl.setValue(i),this.roleControl.setValue(this.userData?.industry||""),this.languageControl.setValue(this.userData?.lang||""),this.titleControl.setValue(this.titleDisplay||""),this.bioControl.setValue(this.userData?.bio||""),this.personalForm.markAsPristine();}get bioCharCount(){return(this.bioControl?.value||"").length;}onBioValueChange(e){this.bioControl.setValue(e),this.bioControl.markAsDirty(),this.bioErrorMessage="";}setLanguageMenuOptions(){let e=an();this.languageMenuOptions=e.map(t=>({value:t.value,name:t.name}));}setIndustryMenuOptions(){return C(this,null,function*(){try{let e=yield this.userHelperService.getIndustryMenuOptions();this.roleMenuOptions=(e||[]).map(t=>({value:t.value,name:t.name}));}catch(e){console.error("Failed to load industry options",e);}});}getLanguageDisplayName(e){return e?Ei(e,an())||e:"";}getIndustryDisplayName(e){return e?e.charAt(0).toUpperCase()+e.slice(1):"";}getEditLockTooltip(){return this.editingSection?`Finish editing '${{personal:"Personal Information",cta:"Call-to-Action Button"}[this.editingSection]}' to edit another section.`:"";}startEditing(e){this.editingSection&&this.editingSection!==e||(this.editingSection=e,e==="personal"?(this.bioErrorMessage="",this.populatePersonalForm()):e==="cta"&&(this.savedCtaButton=this.currentCtaButton?K({},this.currentCtaButton):null));}cancelEditing(){let e=this.editingSection;this.editingSection=null,e==="personal"?(this.personalForm.markAsPristine(),this.setHasChanges(!1),this.bioErrorMessage=""):e==="cta"&&(this.currentCtaButton=this.savedCtaButton,this.savedCtaButton=null);}onUploadPhotoClick(){this.fileInput?.nativeElement?.click();}onFileSelected(e){let t=e.target,i=t.files;if(!i||i.length===0)return;let a=i[0];this.fileValidationService.isFileNameValid(a)&&this.fileValidationService.isFileFormatValid(a,this.validImageFormats)&&(this.eventsService.log(this.eventsService.events.profile.profileProcessStart,{process:"profile-picture-change"}),this.openImageEditDialog(a)),t.value=null;}openImageEditDialog(e){let t=new Li();t.header="Edit Profile Image",t.file=e,t.title=e.name,t.isRoundedCropper=!1,t.isImageStrip=!1,t.onClose=()=>this.dialogService.close(),t.onSubmit=this.saveProfileImage;let i=new xe();i.panelClass="image-edit-dialog-container",this.dialogService.open(t,nr,i);}onCtaFormChange(e){this.currentCtaButton=e;}onCtaValidationChange(e){this.ctaValid=e;}startAddCta(){this.savedCtaButton=this.currentCtaButton?K({},this.currentCtaButton):null,this.currentCtaButton={action:Nt.EMAIL_ME,url:"",textColor:"#fff",color:Ti.getBackground(Nt.EMAIL_ME),text:Ti.getButtonText(Nt.EMAIL_ME),icon:!0},this.startEditing("cta");}getChannelTypeLabel(e){return e.channel?.isShared?"Workspace":"Personal";}formatFollowerCount(e){return!e||e===0?"":e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${Math.round(e/1e3)}K`:e.toString();}navigateToSocialChannels(){window.open("/social-channels","_self");}onChannelMenuAction(e,t){switch(t.value){case"reconnect":this.reconnectChannel(e);break;case"shared-posting":this.toggleSharedPosting(e);break;case"remove":this.removeChannel(e);break;}}reconnectChannel(e){return C(this,null,function*(){try{let t=this.deskManagerHelperService.getSelectedWorkspaceId();this.notifier.info("Syncing..."),yield this.socialNetworkHelperService.syncSocialProvider(t,e.channel.provider,e.externalId),yield this.loadSocialChannels(),this.notifier.success("Channel reconnected successfully");}catch(t){let i=typeof t=="string"?t:"Failed to reconnect channel";this.notifier.error(i);}});}toggleSharedPosting(e){let t=this.deskManagerHelperService.getSelectedWorkspaceId(),i=!e.channel.isShared;e.channel.isShared=i;let a=i?"desk":"user";this.requestsService.updateLinkedProvider(e.id,void 0,t,a).then(()=>{this.notifier.success("Posting level updated"),this.loadSocialChannels();}).catch(()=>{e.channel.isShared=!i,this.notifier.error("Failed to update posting level");});}removeChannel(e){this.dialogService.showUiConfirmationDialog({title:"Remove Social Account",msg:"Are you sure you want to remove this Social Account?",confirmationText:"Yes",cancellationText:"No",onSubmit:()=>C(this,null,function*(){try{yield this.requestsService.unlinkSocialProvider(e.id),this.dialogService.close(),yield this.loadSocialChannels(),this.updateProgressTracker(),this.notifier.success("Social network removed successfully");}catch{this.notifier.error("The channel can only be deleted by the user who established the connection.");}})});}viewProfile(){this.userId&&window.open(`feed/${this.userId}?mode=1`,"_blank");}updateProgressTracker(){let e=this.hasCustomProfileImage,t=!!(this.userData?.fullName&&this.userData?.lang),i=this.socialChannels.length>0,a=!!(this.currentCtaButton&&this.currentCtaButton.action!==Nt.NO_BUTTON);this.profileCompletionSteps=[{label:"Profile picture",icon:"/img/icons/profile-progress/profile-picture.svg",completed:e,sectionId:"profile-picture"},{label:"Personal information",icon:"/img/icons/profile-progress/personal-info.svg",completed:t,sectionId:"personal"},{label:"Social channels",icon:"/img/icons/profile-progress/social-channels.svg",completed:i,sectionId:"social"},{label:"Call-to-Action Button",icon:"/img/icons/profile-progress/cta-button.svg",completed:a,sectionId:"cta"},{label:"Business Profile (Brand Kit)",icon:"/img/icons/profile-progress/brand-kit.svg",completed:!1,external:!0,externalUrl:"/branding"}],this.completedStepCount=this.profileCompletionSteps.filter(d=>d.completed).length,this.showProgressTracker=this.completedStepCount<5;}navigateToStep(e){if(this.eventsService.log(this.eventsService.events.profile.profileCompleteClick,{button:this.stepLabelToKey(e.label),completed:this.getCompletedStepKeys()}),!e.completed){if(e.external&&e.externalUrl){window.open(e.externalUrl,"_blank");return;}e.sectionId&&(document.getElementById(e.sectionId)?.scrollIntoView({behavior:"smooth",block:"start"}),e.sectionId==="social"?this.navigateToSocialChannels():e.sectionId==="personal"?this.startEditing("personal"):e.sectionId==="cta"&&(this.currentCtaButton?this.startEditing("cta"):this.startAddCta()));}}stepLabelToKey(e){return this.STEP_LABEL_TO_KEY[e]||e;}getCompletedStepKeys(){return this.profileCompletionSteps.filter(e=>e.completed).map(e=>this.stepLabelToKey(e.label));}logProfileCompleteOpen(){this.showProgressTracker&&this.eventsService.log(this.eventsService.events.profile.profileCompleteOpen,{completed:this.getCompletedStepKeys(),numLeft:this.profileCompletionSteps.length-this.completedStepCount});}logProfileProperties(){this.eventsService.log(this.eventsService.events.profile.profileProfileProperties,{role:this.userData?.industry||"",cta:this.currentCtaButton?.text||"",title:this.titleDisplay||"",website:"",bio:this.userData?.bio||""});}
3ngOnDestroy(){super.ngOnDestroy();}static{this.ɵfac=function(t){return new(t||n)(x(he),x(ie),x(Y),x(Ii),x(Ge),x(Le),x(ee),x(ro),x(zo),x(Vo),x(_e));};}static{this.ɵcmp=P({type:n,selectors:[["my-account"]],viewQuery:function(t,i){if(t&1&&se(Qa,5),t&2){let a;re(a=ae())&&(i.fileInput=a.first);}},standalone:!0,features:[W,M],decls:2,vars:2,consts:[["fileInput",""],[4,"ngIf"],["class","my-account-container",4,"ngIf"],[1,"my-account-container"],["class","section-card progress-tracker-card",4,"ngIf"],["id","profile-picture",1,"section-card"],[1,"section-header"],[1,"section-title"],[1,"profile-photo-section"],[1,"avatar-wrapper"],["size","lg","customSize","100px","variant","round",3,"avatarImage",4,"ngIf"],["class","avatar-placeholder",4,"ngIf"],[1,"photo-actions"],["variant","ghost","size","sm","leftIconContent","/img/icon-library/basic-ui/import-upload-storke.svg",3,"clicked"],["variant","ghost","size","sm",3,"destructive","clicked",4,"ngIf"],["type","file",2,"display","none",3,"change","accept"],["id","personal",1,"section-card"],[1,"section-header-actions"],["class","personal-info-view",4,"ngIf"],["class","personal-info-edit",4,"ngIf"],["id","social",1,"section-card"],[1,"section-title-group"],[1,"section-subtitle"],["variant","ghost","size","md","iconContent","/img/icons/edit-pencil.svg",3,"clicked"],["class","channels-list",4,"ngIf"],["class","empty-state-card",4,"ngIf"],["id","cta",1,"section-card"],["class","cta-preview-area",4,"ngIf"],["class","cta-edit-area",4,"ngIf"],[1,"section-card","progress-tracker-card"],[1,"progress-tracker-header"],[1,"progress-circle"],["viewBox","0 0 36 36",1,"progress-ring"],["d","M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831","fill","none","stroke","#e5e7eb","stroke-width","3",1,"progress-ring-bg"],["d","M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831","fill","none","stroke","#2563eb","stroke-width","3",1,"progress-ring-fill"],[1,"progress-count"],[1,"progress-text"],[1,"progress-title"],[1,"progress-subtitle"],[1,"progress-steps"],["class","progress-step",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"progress-step",3,"click","ngClass"],[1,"step-top-row"],["alt","",1,"step-icon",3,"src"],["src","/img/icons/check-circle-green.svg","alt","","class","step-check",4,"ngIf"],["src","/img/icons/external-link-small.svg","alt","","class","step-action-icon",4,"ngIf"],["src","/img/icons/chevron-right-dark-grey.svg","alt","","class","step-action-icon",4,"ngIf"],[1,"step-label"],["src","/img/icons/check-circle-green.svg","alt","",1,"step-check"],["src","/img/icons/external-link-small.svg","alt","",1,"step-action-icon"],["src","/img/icons/chevron-right-dark-grey.svg","alt","",1,"step-action-icon"],["size","lg","customSize","100px","variant","round",3,"avatarImage"],[1,"avatar-placeholder"],["src","/img/icons/user-placeholder.svg","alt","Profile"],["variant","ghost","size","sm",3,"clicked","destructive"],["variant","ghost","size","md","iconContent","/img/icons/edit-pencil.svg","matTooltipPosition","above",3,"clicked","disabled","matTooltip","matTooltipDisabled"],["variant","ghost","size","sm",3,"clicked"],["variant","primary","size","sm",3,"clicked"],[1,"personal-info-view"],[1,"info-grid"],[1,"info-field"],[1,"field-label"],[1,"field-value",3,"ngClass"],[1,"info-field","bio-field"],[1,"field-value","bio-value",3,"ngClass"],[1,"personal-info-edit"],[1,"edit-grid"],["labelText","First Name","placeholder","First name","labelType","outside","size","small",3,"valueChange","label","required","value"],["labelText","Last Name","placeholder","Last name","labelType","outside","size","small",3,"valueChange","label","required","value"],["labelText","Role","placeholder","Select","type","outside",3,"valueChange","label","required","options","searchable","value"],["labelText","Default Language","placeholder","Select","type","outside",3,"valueChange","label","required","options","searchable","value"],[1,"edit-full-width"],["labelText","Title","placeholder","Ex.: Real estate agent","labelType","outside","size","small",3,"valueChange","label","required","value"],["labelText","Bio","placeholder","Tell others about yourself, your experience, and what you do...","height","120px",3,"valueChange","label","required","aiButton","state","errorMessage","value"],[1,"bio-footer"],[1,"bio-hint"],[1,"bio-counter"],[1,"channels-list"],["class","channel-row",4,"ngFor","ngForOf"],[1,"channel-row"],[1,"channel-info"],["alt","",1,"channel-provider-icon",3,"src"],["alt","",1,"channel-avatar",3,"error","src"],[1,"channel-text"],[1,"channel-title"],[1,"channel-type"],[1,"channel-meta"],["class","channel-followers",4,"ngIf"],["variant","secondary","size","sm","iconContent","/img/icon-library/symbols/retry-reload.svg",3,"destructive","clicked",4,"ngIf"],[3,"selectionChange","iconOnly","label","options","showSelected","showSeparators"],[1,"channel-followers"],["variant","secondary","size","sm","iconContent","/img/icon-library/symbols/retry-reload.svg",3,"clicked","destructive"],[1,"empty-state-card"],[1,"empty-state-content"],[1,"empty-state-title"],[1,"empty-state-text"],["variant","secondary","size","sm","leftIconContent","/img/icons/link.svg",3,"clicked"],["variant","ghost","size","md","iconContent","/img/icons/edit-pencil.svg","matTooltipPosition","above",3,"disabled","matTooltip","matTooltipDisabled","clicked",4,"ngIf"],[1,"cta-preview-area"],[1,"cta-preview-button-wrapper"],["target","_blank","rel","noopener",1,"cta-preview-button",3,"href"],["class","cta-btn-icon","alt","",3,"src","error",4,"ngIf"],[1,"cta-preview-hint"],["alt","",1,"cta-btn-icon",3,"error","src"],["variant","secondary","size","md","leftIconContent","/img/icons/plus.svg",3,"clicked"],["href","https://www.bigvu.tv/features/cta","target","_blank","rel","noopener",1,"watch-link"],[1,"watch-icon"],[1,"cta-edit-area"],[3,"onButtonChanges","onValidationChange","currentActionButton","valid","context"]],template:function(t,i){t&1&&b(0,Ka,1,0,"app-my-account-shimmer",1)(1,Cl,48,16,"div",2),t&2&&(c("ngIf",i.isLoading),l(
3),c("ngIf",!i.isLoading));},dependencies:[N,le,Xe,Me,di,xi,_i,B,ue,ot,fi,so,Je,Uo,or],styles:[".my-account-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;width:100%}.section-card[_ngcontent-%COMP%]{background:#fff;border-radius:16px;padding:24px}.section-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px}.section-title[_ngcontent-%COMP%]{font-size:20px;font-weight:600;color:#253658;margin:0;line-height:28px}.section-subtitle[_ngcontent-%COMP%]{font-size:14px;color:#6b7280;margin:4px 0 0;line-height:20px}.section-title-group[_ngcontent-%COMP%]{flex:1;min-width:0}.section-header-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;flex-shrink:0}.progress-tracker-card[_ngcontent-%COMP%]{padding:20px 24px}.progress-tracker-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px;margin-bottom:20px}.progress-circle[_ngcontent-%COMP%]{position:relative;width:48px;height:48px;flex-shrink:0}.progress-circle[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:100%;height:100%;transform:rotate(-90deg)}.progress-ring-bg[_ngcontent-%COMP%]{stroke:#e5e7eb}.progress-ring-fill[_ngcontent-%COMP%]{stroke:#2563eb;stroke-linecap:round;transition:stroke-dasharray .3s ease}.progress-count[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:12px;font-weight:700;color:#253658}.progress-title[_ngcontent-%COMP%]{font-size:16px;font-weight:700;color:#253658;line-height:24px}.progress-subtitle[_ngcontent-%COMP%]{font-size:13px;color:#6b7280;line-height:20px}.progress-steps[_ngcontent-%COMP%]{display:flex;align-items:stretch;gap:12px;overflow-x:auto}.progress-step[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;flex:1;min-width:0;padding:12px;border:1px solid #c7d9fe;border-radius:16px;cursor:default}.progress-step.step-clickable[_ngcontent-%COMP%]{padding:12px 8px 12px 12px;cursor:pointer}.progress-step.step-clickable[_ngcontent-%COMP%]:hover{border-color:#93b4fd}.progress-step.step-completed[_ngcontent-%COMP%]{background:#f0f3f9}.step-top-row[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;width:100%}.step-icon[_ngcontent-%COMP%]{width:48px;height:48px;flex-shrink:0}.step-check[_ngcontent-%COMP%]{width:20px;height:20px;flex-shrink:0}.step-action-icon[_ngcontent-%COMP%]{width:16px;height:16px;flex-shrink:0;margin-top:4px}.step-label[_ngcontent-%COMP%]{font-size:14px;color:#253658;text-align:left;line-height:40px;font-weight:500;height:40px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;letter-spacing:-.14px}.profile-photo-section[_ngcontent-%COMP%]{display:flex;align-items:center;gap:24px}.avatar-wrapper[_ngcontent-%COMP%]{flex-shrink:0}.avatar-placeholder[_ngcontent-%COMP%]{width:100px;height:100px;border-radius:50%;background:#eef2ff;display:flex;align-items:center;justify-content:center}.avatar-placeholder[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:48px;height:48px;opacity:.5}.photo-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.personal-info-view[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.info-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:16px}.info-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.field-label[_ngcontent-%COMP%]{font-size:13px;color:#6b7280;line-height:20px}.field-value[_ngcontent-%COMP%]{font-size:15px;color:#253658;font-weight:500;line-height:22px}.field-value.not-set[_ngcontent-%COMP%]{color:#2563eb;font-weight:400}.bio-field[_ngcontent-%COMP%]{margin-top:0}.bio-value[_ngcontent-%COMP%]{line-height:22px;white-space:pre-wrap;word-break:break-word}.personal-info-edit[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.edit-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:16px}.edit-full-width[_ngcontent-%COMP%]{width:100%}.bio-footer[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-top:4px;padding:0 2px}.bio-hint[_ngcontent-%COMP%], .bio-counter[_ngcontent-%COMP%]{font-size:12px;color:#9ca3af}.channels-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.channel-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:12px}.channel-info[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;min-width:0;flex:1}.channel-provider-icon[_ngcontent-%COMP%]{width:20px;height:20px;flex-shrink:0}
3.channel-avatar[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:50%;object-fit:cover;flex-shrink:0}.channel-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-width:0}.channel-title[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#253658;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.channel-type[_ngcontent-%COMP%]{font-size:12px;color:#6b7280;line-height:17px}.channel-meta[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;flex-shrink:0}.channel-followers[_ngcontent-%COMP%]{font-size:14px;color:#253658;font-weight:500;min-width:32px;text-align:right}.empty-state-card[_ngcontent-%COMP%]{background:#f9fafb;border-radius:16px;padding:32px;min-height:168px}.empty-state-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center}.empty-state-title[_ngcontent-%COMP%]{font-size:14px;font-weight:600;color:#253658}.empty-state-text[_ngcontent-%COMP%]{font-size:12px;color:#6b7280;line-height:20px}.watch-link[_ngcontent-%COMP%]{display:flex;align-items:center;gap:2px;font-size:12px;color:#2563eb;text-decoration:none;font-weight:500}.watch-link[_ngcontent-%COMP%]:hover{text-decoration:underline}.watch-icon[_ngcontent-%COMP%]{display:inline-block;width:20px;height:20px;background-color:#2563eb;-webkit-mask-image:url(/img/icon-library/video/video.svg);mask-image:url(/img/icon-library/video/video.svg);-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center}.cta-preview-area[_ngcontent-%COMP%]{background:#f9fafb;border-radius:16px;padding:32px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:168px}.cta-preview-button-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}.cta-preview-button[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;padding:12px 16px;border-radius:10px;font-size:16px;height:40px;font-weight:600;text-decoration:none;cursor:pointer;transition:opacity .2s}.cta-preview-button[_ngcontent-%COMP%]:hover{opacity:.9}.cta-btn-icon[_ngcontent-%COMP%]{width:24px;height:24px;filter:brightness(0) invert(1)}.cta-preview-hint[_ngcontent-%COMP%]{font-size:12px;color:#6b7280}.cta-edit-area[_ngcontent-%COMP%]{margin-top:-8px}@media only screen and (max-width: 767px){.info-grid[_ngcontent-%COMP%], .edit-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}.progress-steps[_ngcontent-%COMP%]{flex-wrap:nowrap;overflow-x:auto;padding-bottom:8px}.progress-step[_ngcontent-%COMP%]{min-width:120px;flex:none}.profile-photo-section[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}.section-header[_ngcontent-%COMP%]{flex-direction:column;gap:12px}.section-header-actions[_ngcontent-%COMP%]{align-self:flex-end}}","[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}.profile-component-container[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;align-items:stretch;padding:32px 64px 0;box-sizing:border-box;height:calc(100vh - 56px);overflow:hidden}.profile-navigation-sidebar[_ngcontent-%COMP%]{width:280px;flex-shrink:0;margin-right:40px;align-self:flex-start}.tabs-menu-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.tabs-menu-container[_ngcontent-%COMP%] lib-submenu-item[_ngcontent-%COMP%]{cursor:pointer}.profile-content-container[_ngcontent-%COMP%]{width:1000px;position:relative;min-height:0;height:100%;overflow-y:auto;padding-bottom:84px;scrollbar-width:none;-ms-overflow-style:none}.profile-content-container[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.profile-content-container[_ngcontent-%COMP%] .referral-loading-overlay[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#ffffffb3;z-index:10;border-radius:10px}.profile-content-container[_ngcontent-%COMP%] .referral-spinner[_ngcontent-%COMP%]{width:40px;height:40px;border:3px solid rgba(68,129,253,.2);border-top-color:#4481fd;border-radius:50%;animation:_ngcontent-%COMP%_spin .8s linear infinite}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}@media only screen and (max-width: 1023px){.profile-navigation-sidebar[_ngcontent-%COMP%]{width:30%;margin-right:40px}.profile-content-container[_ngcontent-%COMP%]{width:75%}}@media only screen and (max-width: 767px){.profile-component-container[_ngcontent-%COMP%]{flex-direction:column;padding:30px 16px 84px;overflow-y:auto}.profile-navigation-sidebar[_ngcontent-%COMP%]{width:100%;margin-bottom:40px;margin-right:0;position:static}.profile-content-container[_ngcontent-%COMP%]{width:100%;height:auto;overflow:visible;padding-bottom:0}}",".profile-common-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.profile-common-sub-container[_ngcontent-%COMP%]{background-color:#fff;border-radius:10px;padding:18px;width:100%;margin:0 0 18px}.profile-common-title[_ngcontent-%COMP%]{font-size:18px;line-height:24px;font-family:Inter-Bold;color:#253658;display:flex;align-items:center;gap:5px}hr.profile-common-hr[_ngcontent-%COMP%]{margin:18px 0}.profile-common-paragraph[_ngcontent-%COMP%]{font-size:14px;color:#7b8db1}.profile-common-sub-title[_ngcontent-%COMP%]{margin-bottom:12px;color:#000;line-height:24px;font-size:15px;font-weight:600;text-transform:capitalize;display:flex;align-items:center;gap:5px}.profile-big-sub-title[_ngcontent-%COMP%]{font-size:28px;font-family:Inter-Bold;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#253658;margin-bottom:8px}
3.content-separator[_ngcontent-%COMP%]{height:1px;background-color:#7b8db14d;margin:18px 0}.profile-sub-header[_ngcontent-%COMP%]{font-size:14px;color:#25365899;max-width:380px}.profile-details-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;height:36px}.profile-buttons-container[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px}.profile-details-cancel-button[_ngcontent-%COMP%], .profile-details-save-button[_ngcontent-%COMP%]{width:90px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px}.profile-details-cancel-button[_ngcontent-%COMP%]:hover, .profile-details-save-button[_ngcontent-%COMP%]:hover{opacity:.8}.profile-details-cancel-button[_ngcontent-%COMP%]{background:#7b8db114;color:#7b8db1;margin:0 12px 0 auto}.profile-details-save-button[_ngcontent-%COMP%]{background:#00abfe;color:#fff}.profile-details-preview[_ngcontent-%COMP%]{padding:0 22px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px;border:1px solid #00abfe;color:#00abfe;background:#fff}.disabled-button[_ngcontent-%COMP%]{background:gray!important;color:#d3d3d3!important}.disabled-button[_ngcontent-%COMP%]:hover{opacity:1} autocomplete-menu .autocomplete-menu-container{border-radius:10px;background-color:#7b8db114;padding:5px 12px;height:46px;cursor:text} autocomplete-menu .autocomplete-menu-container input{color:#253658;font-size:14px} autocomplete-menu .autocomplete-menu-container .mat-form-field-label-wrapper label mat-label{color:#00abfe!important;font-weight:700} autocomplete-menu .autocomplete-menu-container .mdc-line-ripple{display:none!important}.billing-plan-details-title[_ngcontent-%COMP%]{color:#888;font-size:12px;font-weight:400;text-transform:capitalize}.billing-plan-details-sub-title[_ngcontent-%COMP%]{color:#000;font-size:13px;font-weight:700;text-transform:capitalize}"]});}}return n;})();oa();we();var ar=Ji(ra());var st=function(n){return n.VIDEO_IS_READY="Video is ready",n.SOCIAL_MEDIA_POST="Video posted to social media",n.PAGES="Emails & Pages Activity",n.TIPS="Tips",n.VIDEOMAKER_TIPS="VideoMaker Tips",n.WORKSHOPS="Workshops",n.NEWSLETTERS="Newsletters & Offers",n.WEEKLY_REPORT="Social Media Analytics",n.WEEKLY_LEARN="Weekly digest",n.VIDEO_POSTED_TO_GET_INSPIRED="Video posted to BIGVU inspire",n.OFFERS="Special offers",n.PRODUCT_ANN="Product announcements",n.MONTHLY_RECAP="Monthly Recaps",n;}(st||{}),Ni=function(n){return n.VIDEO_IS_READY="Alert when your video has been successfully uploaded to the cloud",n.SOCIAL_MEDIA_POST="Notifies you when your video is successfully published to connected accounts",n.PAGES="Opens, clicks, and page visits from your campaigns",n.TIPS="",n.VIDEOMAKER_TIPS="Elevate your video-making skills with helpful advice on using BIGVU's apps to create amazing videos!",n.WORKSHOPS="Get notified about upcoming workshops and training sessions",n.NEWSLETTERS="",n.WEEKLY_REPORT="Weekly performance summary across channels",n.WEEKLY_LEARN="Receive a weekly summary of your content and engagement",n.VIDEO_POSTED_TO_GET_INSPIRED="Notifies you when your video goes live on Inspire",n.OFFERS="Receive exclusive deals and promotional offers",n.PRODUCT_ANN="Stay informed about new features and product updates",n.MONTHLY_RECAP="Your highlights, stats, and top content each month",n;}(Ni||{}),_n=new Map([["Alerts",["VIDEO_IS_READY","SOCIAL_MEDIA_POST","VIDEO_POSTED_TO_GET_INSPIRED"]],["Reports",["WEEKLY_REPORT","PAGES","MONTHLY_RECAP"]],["Marketing Updates",["WEEKLY_LEARN","OFFERS","WORKSHOPS","PRODUCT_ANN"]]]),xn=[st.WEEKLY_REPORT];I();Oe();at();be();ye();var vn=function(n){return n.tracking="Tracking",n.dataCollection="Data Linked to You",n;}(vn||{}),Ue=(()=>{class n{constructor(e,t,i,a){this.adminRequestsService=e,this.userHelperService=t,this.eventsService=i,this.notifier=a,this.UPDATE_TIMEOUT_MS=2e3,this.EVENTS_PATH=this.eventsService.events.preferences,this.loadUserPreferences=()=>C(this,null,function*(){try{let d=yield this.userHelperService.getUserDetails();this._currentUserId=d.userId,d&&(this._preferences=yield this.adminRequestsService.getUserPreferences());}catch(d){console.error(d);}}),this.getNotificationPreferences=()=>{let d={};this._preferences.notifications.forEach(w=>{let{name:v,type:O,allowed:D}=w;d[v]===void 0&&(d[v]={name:st[v],description:Ni[v],isPremium:xn.includes(st[v])}),d[v][O]=D;}
3),_n.forEach(w=>{w.forEach(v=>{d[v]||(d[v]={name:st[v],description:Ni[v],isPremium:xn.includes(st[v]),email:!0,app:!0});});});let _={};return _n.forEach((w,v)=>{let O=[];w.forEach(D=>O.push(d[D])),_[v]=O;}),_;},this.getPrivacyPreferences=()=>this._preferences.privacy,this.updateNotificationPreference=(d,_,w)=>{let{notifications:v}=this._updateQueue,O=this.getNotificationKey(d),D={name:O,type:_,allowed:w},j=v.findIndex(k=>k.name===O&&k.type===_);j>-1?v.splice(j,1,D):v.push(D),this.setUpdateTimer();},this.updatePrivacyPreference=(d,_)=>{let w=this.getPrivacyPreferenceEntryName(d);this._updateQueue.privacy[w]=_,this.setUpdateTimer();},this.getPrivacyPreferenceEntryName=d=>Object.keys(vn).find(_=>vn[_]===d),this.setUpdateTimer=()=>{clearTimeout(this._updateQueueTimeout),this._updateQueueTimeout=setTimeout(this.updatePreference,this.UPDATE_TIMEOUT_MS);},this.updatePreference=()=>C(this,null,function*(){if(!this.isQueueEmpty())try{let d=yield this.adminRequestsService.updateUserPreference(this._updateQueue.notifications,this._updateQueue.privacy);this.notifier.success("Preferences updated successfully"),this.sendChangeEvent(),this.clearQueue(),this._updateQueueTimeout=void 0;}catch(d){console.error(d),clearTimeout(this._updateQueueTimeout),this._updateQueueTimeout=void 0,this.notifier.error("Failed to update preferences");}}),this.setDefaultUserPreferences=()=>{this._preferences={privacy:{tracking:!0,dataCollection:!0}
3,notifications:[{name:"VIDEO_IS_READY",type:"app",allowed:!0},{name:"VIDEO_IS_READY",type:"email",allowed:!0},{name:"SOCIAL_MEDIA_POST",type:"app",allowed:!0},{name:"SOCIAL_MEDIA_POST",type:"email",allowed:!0},{name:"PAGES",type:"app",allowed:!0},{name:"PAGES",type:"email",allowed:!0},{name:"NEWSLETTERS",type:"app",allowed:!0},{name:"NEWSLETTERS",type:"email",allowed:!0},{name:"VIDEOMAKER_TIPS",type:"app",allowed:!0},{name:"VIDEOMAKER_TIPS",type:"email",allowed:!0},{name:"PRODUCT_ANN",type:"app",allowed:!0},{name:"PRODUCT_ANN",type:"email",allowed:!0},{name:"WORKSHOPS",type:"app",allowed:!0},{name:"WORKSHOPS",type:"email",allowed:!0},{name:"WEEKLY_REPORT",type:"app",allowed:!0},{name:"WEEKLY_REPORT",type:"email",allowed:!0},{name:"WEEKLY_LEARN",type:"app",allowed:!0},{name:"WEEKLY_LEARN",type:"email",allowed:!0},{name:"OFFERS",type:"app",allowed:!0},{name:"OFFERS",type:"email",allowed:!0},{name:"MONTHLY_RECAP",type:"app",allowed:!0},{name:"MONTHLY_RECAP",type:"email",allowed:!0},{name:"VIDEO_POSTED_TO_GET_INSPIRED",type:"app",allowed:!0},{name:"VIDEO_POSTED_TO_GET_INSPIRED",type:"email",allowed:!0}]};},this.getNotificationKey=d=>Object.keys(st).find(_=>st[_]===d),this.isQueueEmpty=()=>this._updateQueue.notifications.length===0&&Object.keys(this._updateQueue.privacy).length===0,this.clearQueue=()=>{this._updateQueue.notifications.length=0,this._updateQueue.privacy={};},this.sendChangeEvent=()=>{let d={email:{},app:{}};ar.default.cloneDeep(this._updateQueue).notifications.forEach(w=>{d[w.type][w.name]=w.allowed;}),d=K(K({},d),this._updateQueue.privacy),this.eventsService.log(this.EVENTS_PATH.change,d);},this._updateQueueTimeout=void 0,this._updateQueue={privacy:{},notifications:[]},this.setDefaultUserPreferences();}ngOnDestroy(){clearTimeout(this._updateQueueTimeout),this._updateQueueTimeout=void 0;}static{this.ɵfac=function(t){return new(t||n)(De(ie),De(he),De(Y),De(ee));};}static{this.ɵprov=Fe({token:n,factory:n.ɵfac});}}return n;})();I();I();var wl=["actionContainer"];function Sl(n,m){}var lr=(()=>{class n{constructor(e){this.dynamicLoadingService=e,this.loadAction=()=>{this.actionComponentRef=this.dynamicLoadingService.loadComponent(this.actionContainer,this.action.type,this.action.context.inputs,this.action.context.outputs);};}ngAfterViewInit(){this.action&&this.loadAction();}ngOnDestroy(){this.dynamicLoadingService.unloadComponent(this.actionComponentRef);}static{this.ɵfac=function(t){return new(t||n)(x(Oi));};}static{this.ɵcmp=P({type:n,selectors:[["data-preference"]],viewQuery:function(t,i){if(t&1&&se(wl,5,ni),t&2){let a;re(a=ae())&&(i.actionContainer=a.first);}},inputs:{name:"name",description:"description",action:"action"},standalone:!0,features:[M],decls:9,vars:2,consts:[["actionContainer",""],[1,"data-preference-component"],[1,"text-container"],[1,"profile-common-sub-title"],[1,"description"],[1,"action-container"]],template:function(t,i){t&1&&(o(0,"div",1)(1,"div",2)(2,"div",3),s(3),r(),o(4,"div",4),s(5),r()(),o(6,"div",5),b(7,Sl,0,0,"ng-template",null,0,He),r()()),t&2&&(l(3),E(i.name),l(2),E(i.description));},styles:[".data-preference-component[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.text-container[_ngcontent-%COMP%]{width:70%;margin-right:30px}.description[_ngcontent-%COMP%]{font-size:14px;color:#25365899}.action-container[_ngcontent-%COMP%]{display:flex;justify-content:center;width:24%}@media only screen and (max-width: 1023px){.data-preference-component[_ngcontent-%COMP%]{display:block}.text-container[_ngcontent-%COMP%]{width:100%;margin-bottom:20px}.action-container[_ngcontent-%COMP%]{width:100%;display:block;text-align:start} .action-container action-button .action-button-component.action-button{width:100%;text-align:start}}",".profile-common-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.profile-common-sub-container[_ngcontent-%COMP%]{background-color:#fff;border-radius:10px;padding:18px;width:100%;margin:0 0 18px}.profile-common-title[_ngcontent-%COMP%]{font-size:18px;line-height:24px;font-family:Inter-Bold;color:#253658;display:flex;align-items:center;gap:5px}hr.profile-common-hr[_ngcontent-%COMP%]{margin:18px 0}.profile-common-paragraph[_ngcontent-%COMP%]{font-size:14px;color:#7b8db1}.profile-common-sub-title[_ngcontent-%COMP%]{margin-bottom:12px;color:#000;line-height:24px;font-size:15px;font-weight:600;text-transform:capitalize;display:flex;align-items:center;gap:5px}.profile-big-sub-title[_ngcontent-%COMP%]{font-size:28px;font-family:Inter-Bold;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#253658;margin-bottom:8px}
3.content-separator[_ngcontent-%COMP%]{height:1px;background-color:#7b8db14d;margin:18px 0}.profile-sub-header[_ngcontent-%COMP%]{font-size:14px;color:#25365899;max-width:380px}.profile-details-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;height:36px}.profile-buttons-container[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px}.profile-details-cancel-button[_ngcontent-%COMP%], .profile-details-save-button[_ngcontent-%COMP%]{width:90px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px}.profile-details-cancel-button[_ngcontent-%COMP%]:hover, .profile-details-save-button[_ngcontent-%COMP%]:hover{opacity:.8}.profile-details-cancel-button[_ngcontent-%COMP%]{background:#7b8db114;color:#7b8db1;margin:0 12px 0 auto}.profile-details-save-button[_ngcontent-%COMP%]{background:#00abfe;color:#fff}.profile-details-preview[_ngcontent-%COMP%]{padding:0 22px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px;border:1px solid #00abfe;color:#00abfe;background:#fff}.disabled-button[_ngcontent-%COMP%]{background:gray!important;color:#d3d3d3!important}.disabled-button[_ngcontent-%COMP%]:hover{opacity:1} autocomplete-menu .autocomplete-menu-container{border-radius:10px;background-color:#7b8db114;padding:5px 12px;height:46px;cursor:text} autocomplete-menu .autocomplete-menu-container input{color:#253658;font-size:14px} autocomplete-menu .autocomplete-menu-container .mat-form-field-label-wrapper label mat-label{color:#00abfe!important;font-weight:700} autocomplete-menu .autocomplete-menu-container .mdc-line-ripple{display:none!important}.billing-plan-details-title[_ngcontent-%COMP%]{color:#888;font-size:12px;font-weight:400;text-transform:capitalize}.billing-plan-details-sub-title[_ngcontent-%COMP%]{color:#000;font-size:13px;font-weight:700;text-transform:capitalize}"]});}}return n;})();F();Zr();F();I();var Pl=["sectionHeaderTemplate"],Ml=["sectionItemTemplate"],Ol=["sectionItemPlaceholderTemplate"],El=n=>({$implicit:n}),kl=(n,m,e)=>({$implicit:n,section:m,index:e});function Il(n,m){if(n&1&&nt(0,7),n&2){let e=p().$implicit,t=p();c("ngTemplateOutlet",t.sectionHeaderTemplateRef)("ngTemplateOutletContext",ce(2,El,e.key));}}function Tl(n,m){if(n&1&&(o(0,"div"),nt(1,7),r()),n&2){let e=m.$implicit,t=m.index,i=p().$implicit,a=p();l(),c("ngTemplateOutlet",a.sectionItemTemplateRef)("ngTemplateOutletContext",Nn(2,kl,e,i.key,t));}}function Dl(n,m){if(n&1&&nt(0,8),n&2){let e=p(2);c("ngTemplateOutlet",e.sectionItemPlaceholderTemplateRef);}}function Al(n,m){if(n&1&&(o(0,"div",2),b(1,Il,1,4,"ng-container",3),o(2,"div",4),b(3,Tl,2,6,"div",5)(4,Dl,1,1,"ng-container",6),r()()),n&2){let e=m.$implicit,t=p();l(),c("ngIf",!t.hideSectionHeaders),l(2),c("ngForOf",e.value),l(),c("ngIf",e.value.length===0);}}var sr=(()=>{class n{get keepOriginalOrder(){return Po;}constructor(){this.sectionHeaderTemplateRef=null,this.sectionItemTemplateRef=null,this.sectionItemPlaceholderTemplateRef=null;}ngOnInit(){}static{this.ɵfac=function(t){return new(t||n)();};}static{this.ɵcmp=P({type:n,selectors:[["section-list"]],contentQueries:function(t,i,a){if(t&1&&(ai(a,Pl,5),ai(a,Ml,5),ai(a,Ol,5)),t&2){let d;re(d=ae())&&(i.sectionHeaderTemplateRef=d.first),re(d=ae())&&(i.sectionItemTemplateRef=d.first),re(d=ae())&&(i.sectionItemPlaceholderTemplateRef=d.first);}},inputs:{sectionList:"sectionList",hideSectionHeaders:"hideSectionHeaders"},standalone:!0,features:[M],decls:3,vars:4,consts:[[1,"section-list-component"],["class","section-container",4,"ngFor","ngForOf"],[1,"section-container"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[1,"section-items-container"],[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngTemplateOutlet"]],template:function(t,i){t&1&&(o(0,"div",0),b(1,Al,5,3,"div",1),Dt(2,"keyvalue"),r()),t&2&&(l(),c("ngForOf",Un(2,1,i.sectionList,i.keepOriginalOrder)));},dependencies:[le,N,ci,Gn]});}}return n;})();bi();yi();I();we();Oe();ft();
3at();gt();pn();Wt();Bt();ye();be();var Vl=n=>({"premium-badge-clickable":n});function zl(n,m){if(n&1&&(o(0,"div",12),s(1),Dt(2,"titlecase"),r()),n&2){let e=m.$implicit;l(),E(li(2,1,e));}}function Fl(n,m){if(n&1){let e=y();o(0,"div",21),u("click",function(){f(e);let i=p(2);return h(i.showPlusPlanDialogIfNotPremium());}),o(1,"div",22),g(2,"img",23),r(),o(3,"div",24),s(4,"Plus"),r()();}if(n&2){let e=p(2);c("ngClass",ce(1,Vl,!e.hasPremiumPlan));}}function Bl(n,m){if(n&1){let e=y();o(0,"div",13)(1,"div",14)(2,"div",15)(3,"div",16),s(4),r(),b(5,Fl,5,3,"div",17),r(),o(6,"div",18),s(7),r()(),o(8,"div",19)(9,"toggle-button",20),u("onToggle",function(){let i=f(e),a=i.section,d=i.index,_=p();return h(_.onNotificationPreferenceChange(a,d,"email"));}),r(),o(10,"toggle-button",20),u("onToggle",function(){let i=f(e),a=i.section,d=i.index,_=p();return h(_.onNotificationPreferenceChange(a,d,"app"));}),r()()();}if(n&2){let e=m.$implicit,t=p();l(4),E(e.name),l(),c("ngIf",e.isPremium),l(2),E(e.description),l(2),c("state",e.email)("disabled",!t.hasPremiumPlan),l(),c("state",e.app)("disabled",!t.hasPremiumPlan);}}function Rl(n,m){if(n&1&&(o(0,"div",25),g(1,"data-preference",26),r()),n&2){let e=m.$implicit;l(),c("name",e.name)("description",e.description)("action",e.action);}}var cr=(()=>{class n{constructor(e,t,i,a,d,_,w,v,O,D,j){this.preferencesDataService=e,this.dialogHelperService=t,this.adminRequestsService=i,this.planHelperService=a,this.userHelperService=d,this.router=_,this.errorParseService=w,this.premiumPlanService=v,this.workspaceHelperService=O,this.notifier=D,this.eventsService=j,this.loadUserPreferences=()=>C(this,null,function*(){yield this.preferencesDataService.loadUserPreferences();}),this.getNotificationPreferences=()=>{this.notificationPreferences=this.preferencesDataService.getNotificationPreferences();},this.setPlanChangeListener=()=>{this.planHelperService.organizationPlan$.subscribe(this.setHasPremiumPlan);},this.setHasPremiumPlan=()=>C(this,null,function*(){this.hasPremiumPlan=yield this.planHelperService.hasPremiumPlan();}),this.onNotificationPreferenceChange=(k,z,$)=>C(this,null,function*(){let S=this.notificationPreferences[k][z],T=!S[$];S.isPremium&&!this.hasPremiumPlan&&T?this.showPlusPlanDialogIfNotPremium():(S[$]=T,this.preferencesDataService.updateNotificationPreference(S.name,$,T));}),this.setDataPreferences=()=>C(this,null,function*(){let k=this.preferencesDataService.getPrivacyPreferences(),z=yield this.planHelperService.isOrphanedAccount(),$=z?"Contact your team admin to remove your account":` 4 Delete all my account info, scripts, media assets, videos and all projects. 5 Once deleted, it will not be possible to recover. 6 `;this.dataPreferences=[{name:"Delete Account",description:$,action:!z&&{type:wi,context:{inputs:[{key:"text",value:"Delete Account"},{key:"style",value:"action-button delete-action-button"}],outputs:[{key:"onClick",subscriber:this.onAccountDeleteRequest}]}}},{name:"Export All My Data",description:`Export all my my scripts, media assets, videos for all projects. 7 You will receive a link to a downloadable zip file with all your data. 8 This link will be available for 7 days.`,action:{type:wi,context:{inputs:[{key:"text",value:"Export all my data"},{key:"style",value:"action-button blue-action-button"}],outputs:[{key:"onClick",subscriber:this.onAccountExportRequest}]}}},{name:"Data Not Linked to You",description:"Saves your activity in an anonymous way on the BIGVU site and apps for analytics."},{name:"Data Linked to You",description:`Saves your activity on the BIGVU site and apps to our analytic platforms for a personalized service, 9 performance improvements and customer support.`,action:{type:Gt,context:{inputs:[{key:"state",value:k.dataCollection},{key:"id",value:3}],outputs:[{key:"onToggle",subscriber:this.onDataPreferenceChange}]}}},{name:"Tracking",description:"Configure cookies preferences regarding activity data and third party advertising platforms",action:{type:wi,context:{inputs:[{key:"text",value:"Open Preferences"},{key:"style",value:"action-button blue-action-button"}],outputs:[{key:"onClick",subscriber:this.openCookiePreferences}]}}}];}),this.onDataPreferenceChange=k=>{let{id:z,newState:$}=k,S=this.dataPreferences[z].name;this.preferencesDataService.updatePrivacyPreference(S,$);},this.onAccountDeleteRequest=()=>C(this,null,function*(){(yield this.isOrganizationOwner())?this.openDeleteConfirmationDialog():this.openContactOwnerConfirmationDialog();}),this.isOrganizationOwner=()=>C(this,null,function*(){let k=(yield this.userHelperService.getUserDetails()).userId,z=(yield this.workspaceHelperService.getOrganizationData()).owner.userId;return k===z;}),this.openDeleteConfirmationDialog=()=>C(this,null,function*(){let k=new jo();k.header="Delete BIGVU Account",k.disclaimer=` 10 You will no longer be able to access your projects, scripts, media assets and videos. <br> <br> 11 When you delete your account, your personal data is permanently removed from our active systems. <br> 12 We retain only anonymized backups for legal compliance.`,k.confirmationValue=(yield this.userHelperService.getUserDetails()).email,k.placeholder="Enter your email",k.confirmationMessage="Please enter your account email",k.confirmationErrorMessage=`The email you provided does not match the current user's email. 13 Please make sure you enter the email correctly. Contact support if the issue persists`,k.onClose=this.dialogHelperService.close,k.actionButtons=[{id:un.CANCEL,text:"Cancel",style:"cancel-button",onClick:this.dialogHelperService.close},{id:un.SUBMIT,text:"Delete",style:"delete-button",onClick:this.deleteAccount}];let z=new xe();z.panelClass="input-confirmation-dialog-content",this.dialogHelperService.open(k,Ho,z);}),this.deleteAccount=()=>C(this,null,function*(){let k;try{yield this.adminRequestsService.deleteUser({clearAllData:!0,forceDelete:!0}),this.userHelperService.clearUser(),this.planHelperService.clear(),this.router.navigate(["offboarding"]),this.dialogHelperService.close();}catch(z){console.error(z),k=this.errorParseService.parseAccountDeleteErrors(z.responseJSON.c
13ode),z.responseJSON.code==="10006/1"?(this.dialogHelperService.close(),this.dialogHelperService.showUiConfirmationDialog({title:"Delete Account",msg:k,confirmationText:"Ok"})):this.notifier.error(k);}finally{this.eventsService.log(this.eventsService.events.profile.deleteAccount,{error:k});}}),this.openContactOwnerConfirmationDialog=()=>{this.dialogHelperService.showUiConfirmationDialog({title:"Contact Owner",msg:"Contact your team owner to perform this action"});},this.onAccountExportRequest=()=>C(this,null,function*(){try{yield this.adminRequestsService.exportAccount(),this.notifier.info("We are working on your account export. You will get an email when the data is ready");}catch(k){console.error(k);let z=this.errorParseService.parseAccountExportErrors(k.responseJSON.code);this.notifier.error(z);}}),this.openCookiePreferences=()=>{window.Osano.cm.showDrawer();};}ngOnInit(){return C(this,null,function*(){yield this.preferencesDataService.loadUserPreferences(),this.getNotificationPreferences(),yield this.setDataPreferences(),this.setPlanChangeListener();});}showPlusPlanDialogIfNotPremium(){if(!this.hasPremiumPlan){let e="profile/preferences";this.premiumPlanService.openPricingDialog(Re.PRO,e,e,Ae.notificationPreference);}}static{this.ɵfac=function(t){return new(t||n)(x(Ue),x(_e),x(ie),x(ve),x(he),x(Se),x(Ft),x(Ze),x(Ge),x(ee),x(Y));};}static{this.ɵcmp=P({type:n,selectors:[["profile-preferences"]],standalone:!0,features:[It([Ue]),M],decls:23,vars:2,consts:[["sectionHeaderTemplate",""],["sectionItemTemplate",""],[1,"profile-preferences-component"],[1,"profile-common-sub-container"],[1,"profile-common-title"],[1,"content-separator"],[1,"section-content"],[1,"platform-subheaders-container"],[1,"platform-subheader"],[1,"notification-preference-container"],[3,"sectionList"],["class","data-preference-container",4,"ngFor","ngForOf"],[1,"section-header"],[1,"notification-container"],[1,"notification-details-container"],[1,"name-container"],[1,"name"],["class","premium-badge",3,"ngClass","click",4,"ngIf"],[1,"description"],[1,"toggle-buttons-container"],[3,"onToggle","state","disabled"],[1,"premium-badge",3,"click","ngClass"],[1,"premium-icon-container"],["src","/img/icons/branding/premium-diamond.svg","alt","Premium"],[1,"badge-text"],[1,"data-preference-container"],[3,"name","description","action"]],template:function(t,i){t&1&&(o(0,"div",2)(1,"div",3)(2,"div",4),s(3,"Notifications"),r(),g(4,"div",5),o(5,"div",6)(6,"div",7)(7,"div",8),s(8,"Email"),r(),o(9,"div",8),s(10,"Mobile App"),r()(),o(11,"div",9)(12,"section-list",10),b(13,zl,3,3,"ng-template",null,0,He)(15,Bl,11,7,"ng-template",null,1,He),r()()()(),o(17,"div",3)(18,"div",4),s(19,"Data and Privacy"),r(),g(20,"div",5),o(21,"div",6),b(22,Rl,2,3,"div",11),r()()()),t&2&&(l(12),c("sectionList",i.notificationPreferences),l(10),c("ngForOf",i.dataPreferences));},dependencies:[sr,N,Xe,Gt,le,lr,Wn],styles:[".platform-subheaders-container[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:flex-end;align-items:center}.platform-subheader[_ngcontent-%COMP%]{font-size:14px;color:#25365899;margin:0 20px}.section-header[_ngcontent-%COMP%]{color:#00abfe;font-size:18px;font-family:Inter-SemiBold}.notification-container[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:20px}.notification-details-container[_ngcontent-%COMP%]{width:63%}.name-container[_ngcontent-%COMP%]{display:flex;align-items:center}.name[_ngcontent-%COMP%]{font-size:14px;font-family:Inter-SemiBold;color:#253658;max-width:60%}.premium-badge[_ngcontent-%COMP%]{display:flex;align-items:center;background:linear-gradient(270deg,#f4fbfe 2.37%,#f6f8ff 99.35%);border-radius:2px;width:54px;height:24px;margin:0 5px;padding:3px 5px;cursor:default}.premium-badge-clickable[_ngcontent-%COMP%]{cursor:pointer}.premium-icon-container[_ngcontent-%COMP%]{width:16px;height:22px}.premium-icon-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:contain;object-position:center}.badge-text[_ngcontent-%COMP%]{font-size:12px;color:#00abfe;font-family:Inter-SemiBold}.description[_ngcontent-%COMP%]{color:#00000080;font-size:12px}.toggle-buttons-container[_ngcontent-%COMP%]{width:36%;display:flex;align-items:center;justify-content:space-evenly}.toggle-buttons-container[_ngcontent-%COMP%] toggle-button[_ngcontent-%COMP%]{margin:0 20px}.data-preference-container[_ngcontent-%COMP%]{padding-bottom:20px;border-bottom:1px solid transparent;margin-bottom:18px} .action-button{font-family:Inter-SemiBold;font-size:14px;width:150px;text-align:end} .delete-action-button button{color:#ff4d5b!important} .blue-action-button button{color:#00abfe!important} .action-container toggle-button{margin-right:-40px}",".profile-common-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.profile-common-sub-container[_ngcontent-%COMP%]{background-color:#fff;border-radius:10px;padding:18px;width:100%;margin:0 0 18px}.profile-common-title[_ngcontent-%COMP%]{font-size:18px;line-height:24px;font-family:Inter-Bold;color:#253658;display:flex;align-items:center;gap:5px}hr.profile-common-hr[_ngcontent-%COMP%]{margin:18px 0}.profile-common-paragraph[_ngcontent-%COMP%]{font-size:14px;color:#7b8db1}.profile-common-sub-title[_ngcontent-%COMP%]{margin-bottom:12px;color:#000;line-height:24px;font-size:15px;font-weight:600;text-transform:capitalize;display:flex;align-items:center;gap:5px}.profile-big-sub-title[_ngcontent-%COMP%]{font-size:28px;font-family:Inter-Bold;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#253658;margin-bottom:8px}
13.content-separator[_ngcontent-%COMP%]{height:1px;background-color:#7b8db14d;margin:18px 0}.profile-sub-header[_ngcontent-%COMP%]{font-size:14px;color:#25365899;max-width:380px}.profile-details-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;height:36px}.profile-buttons-container[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px}.profile-details-cancel-button[_ngcontent-%COMP%], .profile-details-save-button[_ngcontent-%COMP%]{width:90px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px}.profile-details-cancel-button[_ngcontent-%COMP%]:hover, .profile-details-save-button[_ngcontent-%COMP%]:hover{opacity:.8}.profile-details-cancel-button[_ngcontent-%COMP%]{background:#7b8db114;color:#7b8db1;margin:0 12px 0 auto}.profile-details-save-button[_ngcontent-%COMP%]{background:#00abfe;color:#fff}.profile-details-preview[_ngcontent-%COMP%]{padding:0 22px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px;border:1px solid #00abfe;color:#00abfe;background:#fff}.disabled-button[_ngcontent-%COMP%]{background:gray!important;color:#d3d3d3!important}.disabled-button[_ngcontent-%COMP%]:hover{opacity:1} autocomplete-menu .autocomplete-menu-container{border-radius:10px;background-color:#7b8db114;padding:5px 12px;height:46px;cursor:text} autocomplete-menu .autocomplete-menu-container input{color:#253658;font-size:14px} autocomplete-menu .autocomplete-menu-container .mat-form-field-label-wrapper label mat-label{color:#00abfe!important;font-weight:700} autocomplete-menu .autocomplete-menu-container .mdc-line-ripple{display:none!important}.billing-plan-details-title[_ngcontent-%COMP%]{color:#888;font-size:12px;font-weight:400;text-transform:capitalize}.billing-plan-details-sub-title[_ngcontent-%COMP%]{color:#000;font-size:13px;font-weight:700;text-transform:capitalize}"]});}}return n;})();F();Be();vi();Ot();ti();te();ei();I();F();Be();te();I();function Ll(n,m){if(n&1&&(o(0,"span",15)(1,"strong"),s(2),r(),s(3," selected "),r()),n&2){let e=p(2);l(2),E(e.selectedCount);}}function Nl(n,m){if(n&1){let e=y();o(0,"div",1),u("click",function(){f(e);let i=p();return h(i.onCancel());}),o(1,"div",2),u("click",function(i){return f(e),h(i.stopPropagation());}),o(2,"lib-modal",3),u("closed",function(){f(e);let i=p();return h(i.onCancel());}),o(3,"div",4),g(4,"p",5),o(5,"div",6)(6,"lib-input",7),Z("valueChange",function(i){f(e);let a=p();return J(a.confirmText,i)||(a.confirmText=i),h(i);}),r(),o(7,"span",8),s(8,"Type DELETE to confirm."),r()()(),o(9,"div",9)(10,"div",10),b(11,Ll,4,1,"span",11),o(12,"div",12)(13,"lib-button",13),u("clicked",function(){f(e);let i=p();return h(i.onCancel());}),s(14," Cancel "),r(),o(15,"lib-button",14),u("clicked",function(){f(e);let i=p();return h(i.onConfirm());}),s(16," Delete permanently "),r()()()()()()();}if(n&2){let e=p();l(2),c("title",e.title),l(2),c("innerHTML",e.message,ii),l(2),c("label",!0),X("value",e.confirmText),c("required",!1),l(5),c("ngIf",e.selectedCount>0),l(4),c("destructive",!0)("disabled",!e.isConfirmed);}}var pr=(()=>{class n{constructor(){this.isOpen=!1,this.title="Delete permanently?",this.message="",this.selectedCount=0,this.confirm=new q(),this.cancel=new q(),this.confirmText="";}get isConfirmed(){return this.confirmText.trim()==="DELETE";}onConfirm(){this.isConfirmed&&(this.confirmText="",this.confirm.emit());}onCancel(){this.confirmText="",this.cancel.emit();}static{this.ɵfac=function(t){return new(t||n)();};}static{this.ɵcmp=P({type:n,selectors:[["trash-bin-delete-dialog"]],inputs:{isOpen:"isOpen",title:"title",message:"message",selectedCount:"selectedCount"},outputs:{confirm:"confirm",cancel:"cancel"},standalone:!0,features:[M],decls:1,vars:1,consts:[["class","modal-overlay",3,"click",4,"ngIf"],[1,"modal-overlay",3,"click"],[3,"click"],["size","lg",3,"closed","title"],["modal-body",""],[1,"modal-description",3,"innerHTML"],[1,"confirmation-input"],["labelText","Confirmation","placeholder","Type DELETE","labelType","outside","size","small",3,"valueChange","label","value","required"],[1,"helper-text"],["modal
13-footer",""],[1,"modal-footer-wrapper"],["class","selected-count",4,"ngIf"],[1,"modal-actions-buttons"],["variant","ghost","size","md",3,"clicked"],["variant","primary","size","md",3,"clicked","destructive","disabled"],[1,"selected-count"]],template:function(t,i){t&1&&b(0,Nl,17,8,"div",0),t&2&&c("ngIf",i.isOpen);},dependencies:[N,Me,B,ue,pe],styles:[".modal-overlay[_ngcontent-%COMP%]{position:fixed;inset:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:1000}.modal-description[_ngcontent-%COMP%]{font-size:16px;color:#4b5563;margin:0 0 16px;line-height:24px}.confirmation-input[_ngcontent-%COMP%]{margin-bottom:8px}.helper-text[_ngcontent-%COMP%]{display:block;font-size:12px;color:#94a3b8;margin-top:4px}.modal-footer-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;width:100%}.selected-count[_ngcontent-%COMP%]{font-size:14px;font-weight:400;color:#253658}.modal-actions-buttons[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}"]});}}return n;})();I();Oe();be();ye();vi();var Ul=()=>[1,2,3,4,5],jl=(n,m)=>({"fa-sort-up":n,"fa-sort-down":m}),Hl=n=>({"row-selected":n}),ql=n=>({urgent:n});function Wl(n,m){n&1&&(o(0,"div",12),g(1,"div",13)(2,"div",14)(3,"div",15)(4,"div",16)(5,"div",17),r());}function Gl(n,m){n&1&&(o(0,"div",10),b(1,Wl,6,0,"div",11),r()),n&2&&(l(),c("ngForOf",Ln(1,Ul)));}function Yl(n,m){n&1&&(o(0,"div",18)(1,"div",19),g(2,"img",20),o(3,"h3",21),s(4,"No deleted files"),r(),o(5,"p",22),s(6," Files you delete will appear here and stay available for 30 days before being permanently removed. "),r()()());}function Ql(n,m){if(n&1){let e=y();o(0,"div",29)(1,"div",30)(2,"lib-search",31),u("valueChange",function(i){f(e);let a=p(2);return h(a.onSearchChange(i));})("clear",function(){f(e);let i=p(2);return h(i.onSearchClear());}),r()(),o(3,"div",32)(4,"lib-dropdown",33),u("selectionChange",function(i){f(e);let a=p(2);return h(a.onTypeFilterChange(i));}),r(),o(5,"lib-button",34),u("clicked",function(){f(e);let i=p(2);return h(i.openEmptyTrashDialog());}),s(6," Empty trash "),r()()();}if(n&2){let e=p(2);l(2),c("label",!1)("value",e.searchTerm)("hasClearButton",!0),l(2),c("label",!0)("labelText","Type")("placeholder",e.selectedTypeLabel)("options",e.typeFilterOptions)("showSelected",!1),l(),c("destructive",!0)("leftIconContent",e.deleteTrashIcon);}}function $l(n,m){if(n&1){let e=y();o(0,"div",35)(1,"span",36)(2,"strong"),s(3),r(),s(4," selected "),r(),o(5,"div",37)(6,"lib-button",38),u("clicked",function(){f(e);let i=p(2);return h(i.restoreSelected());}),s(7," Restore "),r(),o(8,"lib-button",34),u("clicked",function(){f(e);let i=p(2);return h(i.openDeleteDialog(i.Array.from(i.selectedIds)));}),s(9," Delete permanently "),r()()();}if(n&2){let e=p(2);l(3),E(e.selectedCount),l(5),c("destructive",!0)("leftIconContent",e.deleteTrashIcon);}}function Kl(n,m){n&1&&(o(0,"div",39)(1,"p"),s(2,"No files match your search or filter"),r()());}function Xl(n,m){if(n&1){let e=y();o(0,"tr",50)(1,"td",41)(2,"lib-checkbox",42),u("checked",function(){let i=f(e).$implicit,a=p(3);return h(a.toggleSelectItem(i.id));}),r()(),o(3,"td",43),g(4,"img",51),r(),o(5,"td",44)(6,"span",52,0),s(8),r()(),o(9,"td",45)(10,"span",53),g(11,"img",54),o(12,"span",55),s(13),r()()(),o(14,"td",56),s(15),r(),o(16,"td",48)(17,"lib-dropdown",57),u("selectionChange",function(i){let a=f(e).$implicit,d=p(3);return h(d.onRowMenuAction(a,i));}),r()()();}if(n&2){let e=m.$implicit,t=p(3);c("ngClass",ce(14,Hl,t.isSelected(e.id))),l(2),c("state",t.getCheckboxState(e.id)),l(2),c("src",e.thumbnailUrl,ge),l(2),c("matTooltip",e.name),l(2),A(" ",e.name," "),l(3),c("src",t.getTypeIconSrc(e.displayType),ge),l(2),E(e.displayType),l(),c("ngClass",ce(16,ql,e.isUrgent)),l(),kt(" ",e.daysLeft," day",e.daysLeft!==1?"s":""," "),l(2),c("iconOnly",!0)("label",!1)("options",t.rowMenuOptions)("showSelected",!1);}}function Jl(n,m){if(n&1){let e=y();o(0,"div",40)(1,"table")(2,"thead")(3,"tr")(4,"th",41)(5,"lib-checkbox",42),u("checked",function(){f(e);let i=p(2);return h(i.toggleSelectAll());}),r()(),o(6,"th",43),s(7,"Thumbnail"),r(),o(8,"th",44),s(9,"File Name"),r(),o(10,"th",45),s(11,"Type"),r(),o(12,"th",46),u("click",function(){f(e);let i=p(2);return h(i.toggleSort());}),s(13," Time left "),g(14,"i",47),r(),g(15,"th",48),r()(),o(16,"tbody"),b(17,Xl,18,18,"tr",49),r()()();}if(n&2){let e=p(2);l(5),c("state",e.getAllCheckboxState()),l(9),c("ngClass",Tt(4,jl,e.sortDirection==="up",e.sortDirection==="down")),l(3),c("ngForOf",e.deletedFiles)("ngForTrackBy",e.trackByFileId);}}function Zl(n,m){if(n&1){let e=y();o(0,"button",66),u("click",function(){f(e);let i=p().$implicit,a=p(3);return h(a.onPageChange(i));}),s(1),r();}if(n&2){let e=p().$implicit,t=p(3);Qe("active",e===t.getCurrentPage()),l(),A(" ",e," ");}}function es(n,m){n&1&&(o(0,"span",67),s(1,"..."),r());}function ts(n,m){if(n&1&&(R(0),b(1,Zl,2,3,"button",64)(2,es,2,0,"span",65),L()),n&2){let e=m.$implicit;l(),c("ngIf",e!=="..."),l(),c("ngIf",e==="...");}}function is(n,m){if(n&1){let e=y();o(0,"div",58)(1,"div",59)(2,"lib-button-icon",60),u("clicked",function(){f(e);let i=p(2);return h(i.goToPrevPage());}),r(),o(3,"div",61),b(4,ts,3,2,"ng-container",62),r(),o(5,"lib-button-icon",63),u("clicked",function(){f(e);let i=p(2);return h(i.goToNextPage());}),r()()();}if(n&2){let e=p(2);l(2),c("disabled",!e.hasPrev()),l(2),c("ngForOf",e.getPageNumbers()),l(),c("disabled",!e.hasNext());}}function ns(n,m){if(n&1&&(o(0,"div")(1,"div",23),b(2,Ql,7,10,"div",24)(3,$l,10,3,"div",25),r(),b(4,Kl,3,0,"div",26)(5,Jl,18,7,"div",27)(6,is,6,3,"div",28),r()),n&2){let e=p();l(2),c("ngIf",!e.hasSelection),l(),c("ngIf",e.hasSelection),l(),c("ngIf",e.hasNoResults),l(),c("ngIf",!e.hasNoResults),l(),c("ngIf",!e.hasNoResults);}}var dr=(()=>{class n extends Ao{constructor(e,t,i){super(Do.cursor),this.requestsService=e,this.eventsService=t,this.notifier=i,this.Array=Array,this.MAX_ITEMS_P
13ER_PAGE=10,this.EVENT_PATH="trashbin",this.MS_PER_DAY=864e5,this.RETENTION_DAYS=30,this.destroy$=new je(),this.searchSubject$=new je(),this.deletedFiles=[],this.allDeletedFiles=[],this.isLoading=!0,this.searchTerm="",this.selectedEntityType="",this.typeIcons={Video:"/img/icon-library/trash-bin/video.svg",Image:"/img/icon-library/trash-bin/image.svg",Audio:"/img/icon-library/trash-bin/audio.svg",Project:"/img/icon-library/trash-bin/project.svg","Story folder":"/img/icon-library/trash-bin/folder.svg","Asset folder":"/img/icon-library/trash-bin/folder.svg","Media library asset":"/img/icon-library/trash-bin/media-library.svg",Take:"/img/icon-library/trash-bin/take.svg",Page:"/img/icon-library/trash-bin/page.svg",Workspace:"/img/icon-library/trash-bin/workspace.svg"},this.typeFilterOptions=[{value:"",name:"All"},{value:"asset:video",name:"Video",sideIconClass:this.typeIcons.Video},{value:"asset:image",name:"Image",sideIconClass:this.typeIcons.Image},{value:"asset:audio",name:"Audio",sideIconClass:this.typeIcons.Audio},{value:"story",name:"Project",sideIconClass:this.typeIcons.Project},{value:"story_folder",name:"Story folder",sideIconClass:this.typeIcons["Story folder"]},{value:"folder",name:"Asset folder",sideIconClass:this.typeIcons["Asset folder"]},{value:"asset",name:"Media library asset",sideIconClass:this.typeIcons["Media library asset"]},{value:"video",name:"Take",sideIconClass:this.typeIcons.Take},{value:"page",name:"Page",sideIconClass:this.typeIcons.Page},{value:"desk",name:"Workspace",sideIconClass:this.typeIcons.Workspace}],this.sortDirection="down",this.selectedIds=new Set(),this.deleteTrashIcon="/img/icon-library/trash-bin/delete-trash.svg",this.rowMenuOptions=[{value:"restore",name:"Restore",sideIconClass:"/img/icon-library/symbols/Undo.svg"},{value:"delete",name:"Permanently delete",sideIconClass:"/img/icon-library/basic-ui/delete-trash.svg",style:"color: #dc2626"}],this.showDeleteDialog=!1,this.showEmptyTrashDialog=!1,this.deleteDialogTitle="",this.deleteDialogMessage="",this.pendingDeleteIds=[],this.loadDeletedFiles=()=>C(this,null,function*(){try{this.isLoading=!0;let a=yield this.getDeletedFilesData();this.parseDataForPagination(a),this.allDeletedFiles=this.formatItems(a.result||[]),this.deletedFiles=this.searchTerm?this.applySearchFilter(this.allDeletedFiles,this.searchTerm):[...this.allDeletedFiles],this.selectedIds.clear();}catch(a){this.notifier.error(a?.responseJSON?.msg||"Failed to load your deleted files"),console.error(a);}finally{this.isLoading=!1;}}),this.setItemsPerPage(this.MAX_ITEMS_PER_PAGE),this.setOnPageChangeCallback(this.loadDeletedFiles);}ngOnInit(){this.resetPagination(),this.loadDeletedFiles(),this.searchSubject$.pipe(On(300),En(),pt(this.destroy$)).subscribe(e=>{this.filterBySearch(e);});}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete();}getDeletedFilesData(){let e=this.getCurrentPageUrl();if(e!=="")return this.requestsService.pullPaginationNextUrl(e);let t={count:this.MAX_ITEMS_PER_PAGE,sb:"deletedAt",sd:this.sortDirection};if(this.selectedEntityType)if(this.selectedEntityType.includes(":")){let[i,a]=this.selectedEntityType.split(":");t.entityType=i,t.entitySubType=a;}else t.entityType=this.selectedEntityType;return this.requestsService.getTrashBin(t);}formatItems(e){return e.map(t=>this.formatItem(t));}formatItem(e){let t=e.deletedAt||"",i=new Date(t),a=new Date(i.getTime()+this.RETENTION_DAYS*this.MS_PER_DAY),d=new Date(),_=Math.max(0,Math.ceil((a.getTime()-d.getTime())/this.MS_PER_DAY)),w=e.thumbnails,v=e.entityType||"story",O=e.entitySubType||"";return{id:e.id,name:e.headline||"Untitled",thumbnailUrl:w?.length>0?w[0].url:ct.globals.emptyProfileImgUrl,entityType:v,entitySubType:O,deletedAt:t,daysLeft:_,isUrgent:_<=3,displayType:this.getDisplayType(v,O)};}getDisplayType(e,t){switch(e){case"asset":return t==="image"?"Image":t==="video"?"Video":t==="audio"?"Audio":"Media library asset";case"story":return"Project";case"video":return"Take";case"collection":return"Project";case"page":return"Page";case"desk":return"Workspace";case"folder":return"Asset folder";case"story_folder":return"Story folder";default:return e||"Unknown";}}onSearchChange(e){this.searchTerm=e,this.searchSubject$.next(e);}onSearchClear(){this.searchTerm="",this.deletedFiles=[...this.allDeletedFiles];}filterBySearch(e){this.deletedFiles=this.applySearchFilter(this.allDeletedFiles,e),this.selectedIds.clear();}applySearchFilter(e,t){if(!t)return[...e];let i=t.toLowerCase();return e.filter(a=>a.name.toLowerCase().includes(i));}onTypeFilterChange(e){this.selectedEntityType=e.value,this.resetPagination(),this.loadDeletedFiles();}get selectedTypeLabel(){let e=this.typeFilterOptions.find(t=>t.value===this.selectedEntityType);return e?e.name:"All";}toggleSort(){this.sortDirection=this.sortDirection==="up"?"down":"up",this.resetPagination(),this.loadDeletedFiles();}get isAllSelected(){return this.deletedFiles.length>0&&this.selectedIds.size===this.deletedFiles.length;}get isIndeterminate(){return this.selectedIds.size>0&&this.selectedIds.size<this.deletedFiles.length;}get selectedCount(){return this.selectedIds.size;}get hasSelection(){return this.selectedIds.size>0;}get isEmpty(){return!this.isLoading&&this.allDeletedFiles.length===0&&!this.searchTerm&&!this.selectedEntityType;}get hasNoResults(){return!this.isLoading&&this.deletedFiles.length===0&&(!!this.searchTerm||!!this.selectedEntityType);}toggleSelectAll(){this.isAllSelected?this.selectedIds.clear():this.deletedFiles.forEac
13h(e=>this.selectedIds.add(e.id));}toggleSelectItem(e){this.selectedIds.has(e)?this.selectedIds.delete(e):this.selectedIds.add(e);}isSelected(e){return this.selectedIds.has(e);}getCheckboxState(e){return this.isSelected(e)?"selected":"default";}getAllCheckboxState(){return this.isAllSelected?"selected":this.isIndeterminate?"indeterminate":"default";}restoreSingle(e){return C(this,null,function*(){try{this.isLoading=!0,this.resetPagination(),yield this.requestsService.restoreFromTrashBin(e.id),this.notifier.success(`"${e.name}" has been restored`),this.eventsService.log(this.eventsService.events[this.EVENT_PATH].restore,{entity:e.entityType,daysLeft:e.daysLeft}),yield this.loadDeletedFiles();}catch(t){this.notifier.error(t?.responseJSON?.msg||"Failed to restore the file. Please try again"),console.error(t);}finally{this.isLoading=!1;}});}restoreSelected(){return C(this,null,function*(){if(!this.hasSelection)return;let e=Array.from(this.selectedIds);try{this.isLoading=!0,this.resetPagination();let i=(yield this.requestsService.bulkRestoreFromTrashBin(e))?.results||[],a=i.filter(_=>_.status==="failed"),d=i.length-a.length;if(d>0&&(this.notifier.success(`${d} file(s) restored`),this.eventsService.log(this.eventsService.events[this.EVENT_PATH].restore,{count:d,bulk:!0})),a.length>0){let _=[...new Set(a.map(v=>v.error?.message).filter(Boolean))],w=_.length>0?_.join(" "):"Please try again";this.notifier.error(`Failed to restore ${a.length} file(s). ${w}`);}}catch(t){this.notifier.error("Failed to restore files. Please try again"),console.error(t);}finally{yield this.loadDeletedFiles();}});}openDeleteDialog(e){this.pendingDeleteIds=e,this.deleteDialogTitle="Delete permanently?",this.deleteDialogMessage="It may take up to 48 hours to permanently delete the file, once deleted it can't be recovered.",this.showDeleteDialog=!0,this.eventsService.log(this.eventsService.events[this.EVENT_PATH].trashDeleteStart,{count:e.length});}openEmptyTrashDialog(){this.pendingDeleteIds=[],this.deleteDialogTitle="Empty trash permanently?",this.deleteDialogMessage="This will permanently delete <strong>all files</strong> in Deleted files. This action can't be undone.",this.showEmptyTrashDialog=!0;}confirmDelete(){return C(this,null,function*(){try{this.isLoading=!0,this.showEmptyTrashDialog?(yield this.requestsService.emptyTrashBin(),this.notifier.success("Trash has been emptied")):(yield this.requestsService.permanentlyDeleteFromTrashBin(this.pendingDeleteIds),this.notifier.success(`${this.pendingDeleteIds.length} file(s) permanently deleted`),this.eventsService.log(this.eventsService.events[this.EVENT_PATH].trashDelete,{count:this.pendingDeleteIds.length})),this.showDeleteDialog=!1,this.showEmptyTrashDialog=!1,this.pendingDeleteIds=[],this.resetPagination(),yield this.loadDeletedFiles();}catch(e){this.notifier.error(e?.responseJSON?.msg||"Failed to delete. Please try again"),console.error(e),this.isLoading=!1;}});}cancelDelete(){this.showDeleteDialog=!1,this.showEmptyTrashDialog=!1,this.pendingDeleteIds=[];}onRowMenuAction(e,t){switch(t.value){case"restore":this.restoreSingle(e);break;case"delete":this.openDeleteDialog([e.id]);break;}}get totalPages(){return Math.max(1,Math.ceil(this.totalNumberOfItems/this.MAX_ITEMS_PER_PAGE));}getPageNumbers(){let e=this.getCurrentPage(),t=this.totalPages,i=[],a=Math.max(1,e-1),d=Math.min(t,e+1);a>1&&(i.push(1),a>2&&i.push("..."));for(let _=a;_<=d;_++)i.push(_);return d<t&&(d<t-1&&i.push("..."),i.push(t)),i;}goToNextPage(){this.hasNext()&&this.onPageChange(this.getCurrentPage()+1);}goToPrevPage(){this.hasPrev()&&this.onPageChange(this.getCurrentPage()-1);}trackByFileId(e,t){return t.id;}getTypeIconSrc(e){return this.typeIcons[e]||"";}static{this.ɵfac=function(t){return new(t||n)(x(ie),x(Y),x(ee));};}static{this.ɵcmp=P({type:n,selectors:[["trash-bin"]],standalone:!0,features:[W,M],decls:12,vars:11,consts:[["tooltip","matTooltip"],[1,"trash-bin-component"],[1,"profile-common-sub-container"],[1,"trash-bin-header"],[1,"trash-bin-title"],[1,"trash-bin-subtitle"],["class","loading-container",4,"ngIf"],["class","empty-state",4,"ngIf"],[4,"ngIf"],[3,"confirm","cancel","isOpen","title","message","selectedCount"],[1,"loading-container"],["class","shimmer-row",4,"ngFor","ngForOf"],[1,"shimmer-row"],[1,"shimmer","shimmer-checkbox"],[1,"shimmer","shimmer-thumbnail"],[1,"shimmer","shimmer-name"],[1,"shimmer","shimmer-type"],[1,"shimmer","shimmer-time"],[1,"empty-state"],[1,"empty-state-card"],["src","/img/icon-library/trash-bin-empty-state.svg","alt","No deleted files",1,"empty-state-illustration"],[1,"empty-state-title"],[1,"empty-state-description"],[1,"toolbar"],["class","toolbar-default",4,"ngIf"],["class","toolbar-selection",4,"ngIf"],["class","no-results",4,"ngIf"],["class","table-container",4,"ngIf"],["class","table-footer",4,"ngIf"],[1,"toolbar-default"],[1,"toolbar-left"],["placeholder","Search f
13iles...",3,"valueChange","clear","label","value","hasClearButton"],[1,"toolbar-right"],["variant","button","buttonStyle","primary","buttonSize","regular",3,"selectionChange","label","labelText","placeholder","options","showSelected"],["variant","secondary","size","sm",3,"clicked","destructive","leftIconContent"],[1,"toolbar-selection"],[1,"selected-count"],[1,"toolbar-selection-actions"],["variant","secondary","size","sm","leftIconContent","fa fa-undo",3,"clicked"],[1,"no-results"],[1,"table-container"],[1,"col-checkbox"],[3,"checked","state"],[1,"col-thumbnail"],[1,"col-name"],[1,"col-type"],[1,"col-time-left","clickable",3,"click"],[1,"fa","fa-sort","sort-icon",3,"ngClass"],[1,"col-actions"],[3,"ngClass",4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngClass"],["alt","",1,"file-thumbnail",3,"src"],["matTooltipClass","tooltip-custom",1,"file-name",3,"matTooltip"],[1,"type-label"],["alt","",1,"type-icon",3,"src"],[1,"type-text"],[1,"col-time-left",3,"ngClass"],[3,"selectionChange","iconOnly","label","options","showSelected"],[1,"table-footer"],[1,"pagination"],["variant","secondary","size","sm","iconContent","fa fa-chevron-left",3,"clicked","disabled"],[1,"pagination-controls"],[4,"ngFor","ngForOf"],["variant","secondary","size","sm","iconContent","fa fa-chevron-right",3,"clicked","disabled"],["class","page-btn",3,"active","click",4,"ngIf"],["class","page-ellipsis",4,"ngIf"],[1,"page-btn",3,"click"],[1,"page-ellipsis"]],template:function(t,i){t&1&&(o(0,"div",1)(1,"div",2)(2,"div",3)(3,"h2",4),s(4,"Deleted files"),r(),o(5,"p",5),s(6," Deleted files are permanently removed after 30 days. "),r()(),b(7,Gl,2,2,"div",6)(8,Yl,7,0,"div",7)(9,ns,7,5,"div",8),r(),o(10,"trash-bin-delete-dialog",9),u("confirm",function(){return i.confirmDelete();})("cancel",function(){return i.cancelDelete();}),r(),o(11,"trash-bin-delete-dialog",9),u("confirm",function(){return i.confirmDelete();})("cancel",function(){return i.cancelDelete();}),r()()),t&2&&(l(7),c("ngIf",i.isLoading),l(),c("ngIf",i.isEmpty&&!i.isLoading),l(),c("ngIf",!i.isEmpty&&!i.isLoading),l(),c("isOpen",i.showDeleteDialog)("title",i.deleteDialogTitle)("message",i.deleteDialogMessage)("selectedCount",i.pendingDeleteIds.length),l(),c("isOpen",i.showEmptyTrashDialog)("title",i.deleteDialogTitle)("message",i.deleteDialogMessage)("selectedCount",0));},dependencies:[N,le,Xe,Me,xi,_i,B,Je,ui,ot,zt,pr],styles:[".trash-bin-component[_ngcontent-%COMP%]{width:100%}.trash-bin-header[_ngcontent-%COMP%]{margin-bottom:24px}.trash-bin-title[_ngcontent-%COMP%]{font-size:20px;font-weight:700;color:#253658;margin:0 0 4px}.trash-bin-subtitle[_ngcontent-%COMP%]{font-size:14px;color:#7b8db1;margin:0;line-height:20px}.loading-container[_ngcontent-%COMP%]{margin-top:24px}.shimmer-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px;padding:12px 0;border-bottom:1px solid #f1f5f9}.shimmer[_ngcontent-%COMP%]{background:linear-gradient(90deg,#f1f5f9 25%,#e2e8f0,#f1f5f9 75%);background-size:200% 100%;animation:_ngcontent-%COMP%_shimmer 1.5s infinite;border-radius:4px}.shimmer-checkbox[_ngcontent-%COMP%]{width:20px;height:20px;border-radius:4px}.shimmer-thumbnail[_ngcontent-%COMP%]{width:36px;height:36px;border-radius:6px}.shimmer-name[_ngcontent-%COMP%]{width:200px;height:14px}.shimmer-type[_ngcontent-%COMP%]{width:80px;height:24px;border-radius:12px}
13.shimmer-time[_ngcontent-%COMP%]{width:80px;height:14px}@keyframes _ngcontent-%COMP%_shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.empty-state[_ngcontent-%COMP%]{width:100%}.empty-state-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px;background:#f9fafb;border-radius:16px;text-align:center;gap:12px}.empty-state-illustration[_ngcontent-%COMP%]{width:84px;height:80px}.empty-state-title[_ngcontent-%COMP%]{font-size:16px;font-weight:500;color:#253658;margin:0;line-height:1.4}.empty-state-description[_ngcontent-%COMP%]{font-size:12px;color:#6b7280;margin:0;max-width:360px;line-height:1.4}.toolbar[_ngcontent-%COMP%]{margin-bottom:16px}.toolbar-default[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:12px}.toolbar-left[_ngcontent-%COMP%]{flex:0 0 280px}.toolbar-right[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.toolbar-selection[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px}.selected-count[_ngcontent-%COMP%]{font-size:14px;font-weight:400;color:#253658}.toolbar-selection-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.no-results[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:60px 24px}.no-results[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14px;color:#7b8db1}.table-container[_ngcontent-%COMP%]{overflow-x:auto}table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{border-bottom:1px solid #e2e8f0}th[_ngcontent-%COMP%]{font-size:12px;font-weight:500;color:#7b8db1;text-align:left;padding:12px 8px;white-space:nowrap}tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{border-bottom:1px solid #f1f5f9;background-color:#f9fafb;transition:background-color .15s ease}tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{background-color:#f8fafc}tbody[_ngcontent-%COMP%] tr.row-selected[_ngcontent-%COMP%]{background-color:#d6e4ff}td[_ngcontent-%COMP%]{padding:10px 8px;vertical-align:middle}.col-checkbox[_ngcontent-%COMP%]{width:40px}.col-thumbnail[_ngcontent-%COMP%]{width:82px}
13.col-name[_ngcontent-%COMP%]{min-width:200px}.col-type[_ngcontent-%COMP%]{width:200px}.type-label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px}.type-icon[_ngcontent-%COMP%]{width:20px;height:20px;flex-shrink:0}.type-text[_ngcontent-%COMP%]{font-size:12px;color:#4b6fa5;white-space:nowrap}.col-time-left[_ngcontent-%COMP%]{width:180px;font-size:14px;color:#64748b}.col-time-left.clickable[_ngcontent-%COMP%]{cursor:pointer;-webkit-user-select:none;user-select:none}.col-time-left.urgent[_ngcontent-%COMP%]{color:#ef4444;font-weight:600}.sort-icon[_ngcontent-%COMP%]{margin-left:4px;font-size:10px}.col-actions[_ngcontent-%COMP%]{width:40px;text-align:center}.file-thumbnail[_ngcontent-%COMP%]{width:36px;height:36px;border-radius:6px;object-fit:cover;object-position:center}.file-name[_ngcontent-%COMP%]{display:block;max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;color:#253658}.table-footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;padding:16px 0 0;border-top:1px solid #e2e8f0;margin-top:4px}.pagination[_ngcontent-%COMP%]{display:flex;align-items:center;gap:32px}.pagination-controls[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.page-btn[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:6px;border:none;background:transparent;font-family:Inter,sans-serif;font-size:10px;font-weight:600;color:#253658;cursor:pointer;padding:0;line-height:1.4}.page-btn[_ngcontent-%COMP%]:hover{background:#f1f5f9}.page-btn.active[_ngcontent-%COMP%]{background:#d6e4ff;border:1px solid #4481fd;color:#1a2338}.page-ellipsis[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:24px;height:24px;font-size:10px;font-weight:600;color:#253658}",".profile-common-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.profile-common-sub-container[_ngcontent-%COMP%]{background-color:#fff;border-radius:10px;padding:18px;width:100%;margin:0 0 18px}.profile-common-title[_ngcontent-%COMP%]{font-size:18px;line-height:24px;font-family:Inter-Bold;color:#253658;display:flex;align-items:center;gap:5px}hr.profile-common-hr[_ngcontent-%COMP%]{margin:18px 0}.profile-common-paragraph[_ngcontent-%COMP%]{font-size:14px;color:#7b8db1}.profile-common-sub-title[_ngcontent-%COMP%]{margin-bottom:12px;color:#000;line-height:24px;font-size:15px;font-weight:600;text-transform:capitalize;display:flex;align-items:center;gap:5px}.profile-big-sub-title[_ngcontent-%COMP%]{font-size:28px;font-family:Inter-Bold;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#253658;margin-bottom:8px}
13.content-separator[_ngcontent-%COMP%]{height:1px;background-color:#7b8db14d;margin:18px 0}.profile-sub-header[_ngcontent-%COMP%]{font-size:14px;color:#25365899;max-width:380px}.profile-details-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;height:36px}.profile-buttons-container[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px}.profile-details-cancel-button[_ngcontent-%COMP%], .profile-details-save-button[_ngcontent-%COMP%]{width:90px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px}.profile-details-cancel-button[_ngcontent-%COMP%]:hover, .profile-details-save-button[_ngcontent-%COMP%]:hover{opacity:.8}.profile-details-cancel-button[_ngcontent-%COMP%]{background:#7b8db114;color:#7b8db1;margin:0 12px 0 auto}.profile-details-save-button[_ngcontent-%COMP%]{background:#00abfe;color:#fff}.profile-details-preview[_ngcontent-%COMP%]{padding:0 22px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px;border:1px solid #00abfe;color:#00abfe;background:#fff}.disabled-button[_ngcontent-%COMP%]{background:gray!important;color:#d3d3d3!important}.disabled-button[_ngcontent-%COMP%]:hover{opacity:1} autocomplete-menu .autocomplete-menu-container{border-radius:10px;background-color:#7b8db114;padding:5px 12px;height:46px;cursor:text} autocomplete-menu .autocomplete-menu-container input{color:#253658;font-size:14px} autocomplete-menu .autocomplete-menu-container .mat-form-field-label-wrapper label mat-label{color:#00abfe!important;font-weight:700} autocomplete-menu .autocomplete-menu-container .mdc-line-ripple{display:none!important}.billing-plan-details-title[_ngcontent-%COMP%]{color:#888;font-size:12px;font-weight:400;text-transform:capitalize}.billing-plan-details-sub-title[_ngcontent-%COMP%]{color:#000;font-size:13px;font-weight:700;text-transform:capitalize}"]});}}return n;})();F();Be();var xt=function(n){return n.nameTitle="nameTitle",n.logo="logo",n.background="background",n.profilePicture="profilePicture",n.bio="bio",n.socialLinks="socialLinks",n.langs="langs",n.callToAction="callToAction",n.mustCtaBtnUrl="mustCtaBtnUrl",n.expertise="expertise",n.applying="applying",n;}(xt||{}),Ui=[{value:"en",name:"English",nativeName:"English",flag:"\u{1F1EC}\u{1F1E7}"},{value:"es",name:"Spanish",nativeName:"Espa\xF1ol",flag:"\u{1F1EA}\u{1F1F8}"},{value:"fr",name:"French",nativeName:"Fran\xE7ais",flag:"\u{1F1EB}\u{1F1F7}"},{value:"he",name:"Hebrew",nativeName:"\u05E2\u05D1\u05E8\u05D9\u05EA",flag:"\u{1F1EE}\u{1F1F1}"},{value:"uk",name:"Ukrainian",nativeName:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",flag:"\u{1F1FA}\u{1F1E6}"},{value:"ja",name:"Japanese",nativeName:"\u65E5\u672C\u8A9E",flag:"\u{1F1EF}\u{1F1F5}"},{value:"it",name:"Italian",nativeName:"Italiano",flag:"\u{1F1EE}\u{1F1F9}"},{value:"pt",name:"Portuguese",nativeName:"Portugu\xEAs",flag:"\u{1F1E7}\u{1F1F7}"},{value:"de",name:"German",nativeName:"Deutsch",flag:"\u{1F1E9}\u{1F1EA}"},{value:"ru",name:"Russian",nativeName:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",flag:"\u{1F1F7}\u{1F1FA}"}];we();I();We();qe();F();rt();Ot();te();I();var os=["dynamicContent"],yt=class extends de{},Kt=(()=>{class n extends me{constructor(e,t){super(e),this.data=e,this.dynamicLoadingService=t,this.isFormValid=!1,this.unsubscribe$=new je();}ngAfterViewInit(){this.loadDynamicComponent();}ngOnDestroy(){this.dynamicLoadingService.unloadComponent(this._templateComponentRef),this.unsubscribe$.next(),this.unsubscribe$.unsubscribe();}loadDynamicComponent(){this.data.useComponentData?this._templateComponentRef=this.dynamicLoadingService.loadComponent(this.dynamicContent,this.data.componentType,[{key:"data",value:this.data.componentData}],[{key:"formStatus",subscriber:e=>{this.isFormValid=e;}},{key:"formData",subscriber:e=>{this.formData=e;}}]):(this._templateComponentRef=this.dynamicLoadingService.loadComponent(this.dynamicContent,this.data.componentType),this.isFormValid=!0);}static{this.ɵfac=function(t){return new(t||n)(x(fe),x(Oi));};}
13static{this.ɵcmp=P({type:n,selectors:[["app-generic-input-data-dialog"]],viewQuery:function(t,i){if(t&1&&se(os,5,ni),t&2){let a;re(a=ae())&&(i.dynamicContent=a.first);}},standalone:!0,features:[W,M],decls:9,vars:5,consts:[["dynamicContent",""],["size","md",3,"closed","title","subtitle"],["modal-body",""],["modal-footer",""],["variant","ghost","size","md",3,"clicked"],["variant","primary","size","md",3,"clicked","disabled"]],template:function(t,i){if(t&1){let a=y();o(0,"lib-modal",1),u("closed",function(){return f(a),h(i.close());}),o(1,"div",2),nt(2,null,0),r(),o(4,"div",3)(5,"lib-button",4),u("clicked",function(){return f(a),h(i.close());}),s(6),r(),o(7,"lib-button",5),u("clicked",function(){return f(a),h(i.submit(i.formData));}),s(8),r()()();}t&2&&(c("title",i.data.title)("subtitle",i.data.text),l(6),A(" ",i.data.cancelBtn," "),l(),c("disabled",!i.isFormValid),l(),A(" ",i.data.sendBtn," "));},dependencies:[U,B,pe],styles:["[_nghost-%COMP%]{display:block}"]});}}return n;})();F();te();$r();I();ye();be();ta();Oe();we();F();var rs=["listElement"];function as(n,m){n&1&&(o(0,"div",16),g(1,"img",17),r());}function ls(n,m){if(n&1){let e=y();o(0,"div",10)(1,"div",11),g(2,"img",12),r(),b(3,as,2,0,"div",13),o(4,"div",14),u("click",function(i){return f(e),h(i.stopPropagation());}),o(5,"lib-dropdown",15),u("selectionChange",function(i){let a=f(e).index,d=p(2);return h(d.onMenuSelection(i,a));}),r()()();}if(n&2){let e=m.$implicit,t=m.index,i=p(2);l(2),zn(e.aspectRatio),c("src",e.thumbnail,ge),l(),c("ngIf",e.pinned),l(2),c("options",i.getMenuOptions(t))("iconOnly",!0);}}function ss(n,m){if(n&1&&(R(0),b(1,ls,6,6,"div",9),L()),n&2){let e=p();l(),c("ngForOf",e.videoList);}}function cs(n,m){if(n&1){let e=y();o(0,"div",18)(1,"p",19),s(2,"No videos posted yet."),r(),o(3,"lib-button",20),u("clicked",function(){f(e);let i=p();return h(i.openCourse());}),s(4," Learn more about Experts "),r()();}}var mr=(()=>{class n{get noMoreSpaceToScroll(){return this.listElement&&this.listElement.nativeElement.scrollLeft>=this.listElement.nativeElement.scrollWidth-this.listElement.nativeElement.clientWidth-1;}get noMoreSpaceToScrollBack(){return this.listElement&&this.listElement.nativeElement.scrollLeft<=1;}constructor(e,t,i,a,d){this.notifier=e,this.eventsService=t,this.uiActionService=i,this.adminRequestsService=a,this.dialogHelperService=d,this.videoList=[],this.pinnedPicture="img/expert/pinned-filled.svg",this.unPinnedPicture="img/expert/pinned-empty.svg",this.EVENT_PATH=this.eventsService.events.experts,this.learnStoryId="66bb487729a933e27e057906",this.learnMediaId="66bb487729a933e27e05790b",this.pinVideo=_=>C(this,null,function*(){if(this.isLoading)return;let{id:w,pinned:v}=this.videoList[_];this.videoList[_].pinned=!v;try{this.isLoading=!0,v?(this.eventsService.log(this.EVENT_PATH.expertUnpinVideo,{applied:this.isExpert,index:_}),yield this.adminRequestsService.unPinVideoFromFeed(w),this.videoList[_].pinnedPicture=this.unPinnedPicture):(this.eventsService.log(this.EVENT_PATH.expertPinVideo,{applied:this.isExpert,index:_}),yield this.adminRequestsService.pinVideoFromFeed(w),this.videoList[_].pinnedPicture=this.pinnedPicture);}catch(O){console.error(O),this.notifier.error("Failed to pin Video");}finally{this.isLoading=!1;}}),this.loadVideoList=()=>C(this,null,function*(){try{let _;this.isLoading=!0,this.nextUrl?_=yield this.adminRequestsService.pullPaginationNextUrl(this.nextUrl):_=yield this.adminRequestsService.getVideoFeedList(8,this.userId),this.adaptVideoList(_);}catch(_){throw _;}finally{this.isLoading=!1;}}),this.adaptVideoList=_=>{_.metadata?.hasNext?this.nextUrl=_.metadata?.nextUrl:this.nextUrl="",(_.result||[]).forEach(w=>{this.videoList.push({id:w.id,thumbnail:w.thumbnails?w.thumbnails[0].url:"",aspectRatio:w.aspectRatio,pinned:w.pinned,pinnedPicture:w.pinned?this.pinnedPicture:this.unPinnedPicture});});},this.openCourse=()=>{this.uiActionService.openFeaturePreviewVideoDialog(this.learnStoryId,this.learnMediaId),this.eventsService.log(this.EVENT_PATH.expertLearnMore,{applied:this.isExpert,videoSubject:"addVideos"});},this.removeFromFeed=_=>{this.isLoading||this.dialogHelperService.showUiConfirmationDialog({title:"Delete Video",msg:"Are you sure you want to remove this video from your feed?",confirmationText:"Delete",cancellationText:"Cancel",confirmButtonVariant:"half-filled-red",cancelButtonVariant:"text-royal",onClose:()=>this.dialogHelperService.close(),onSubmit:()=>this.confirmRemoveFromFeed(_)});},this.confirmRemoveFromFeed=_=>C(this,null,function*(){try{this.isLoading=!0;let w=this.videoList[_].id;yield this.adminRequestsService.removeVideoFromVideoFeed(w),this.videoList=this.videoList.filter(v=>v.id!==w),this.notifier.success("Video removed from feed"),this.dialogHelperService.close();}catch(w){console.error(w),this.notifier.error("Failed to remove video from feed");}finally{this.isLoading=!1;}}),this.copyVideoLink=_=>C(this,null,function*(){let w=this.videoList[_].id,v=`${window.location.origin}/feed/?videoIds=${w}`;try{yield navigator.clipboard.writeText(v),this.notifier.info("Link copied to clipboard"),this.eventsService.log(this.EVENT_PATH.expertCopyVideoLink,{applied:this.isExpert,index:_});}catch(O){console.error("Failed to copy link:",O),this.notifier.error("Failed to copy link");}});}ngOnInit(){this.loadVideoList();}scrollBackward(){this.listElement&&(this.scrollStep=this.listElement.nativeElement.clientWidth,this.listElement.nativeElement.scrollTo({left:this.listElement.nativeElement.scrollLeft-this.scrollStep,behavior:"smooth"}));}scrollForward(){this.listElement&&(this.scrollStep=this.listElement.nativeElement.clientWidth,this.listElement.nativeElement.scrollLeft<this.listElement.nativeElement.scrollWidth-this.listElement.nativeElement.clientWidth&&(this.loadVideoList(),this.listElement.nativeElement.scrollTo({left:this.listElement.nativeElement.scrollLeft+this.scrollStep,behavior:"smooth"}
13)));}getMenuOptions(e){let t=this.videoList[e],i=t.pinned?"Unpin video":"Pin video",a=t.pinned?"pin-icon-new-filled":"pin-icon-new";return[new mi("copy-link","Copy link","","copy-icon"),new mi("pin",i,"",a),new mi("remove","Delete","","delete-icon-red-new")];}onMenuSelection(e,t){switch(e.value){case"copy-link":this.copyVideoLink(t);break;case"pin":this.pinVideo(t);break;case"remove":this.removeFromFeed(t);break;}setTimeout(()=>{this.dropdowns.toArray()[t]?.clear();},0);}static{this.ɵfac=function(t){return new(t||n)(x(ee),x(Y),x(Oo),x(ie),x(_e));};}static{this.ɵcmp=P({type:n,selectors:[["app-expert-video-slideshow"]],viewQuery:function(t,i){if(t&1&&(se(rs,7),se(ot,5)),t&2){let a;re(a=ae())&&(i.listElement=a.first),re(a=ae())&&(i.dropdowns=a);}},inputs:{isExpert:"isExpert",userId:"userId"},standalone:!0,features:[M],decls:11,vars:4,consts:[["listElement",""],["empty",""],[1,"video-list-wrapper"],[1,"nav-button","back",3,"click","hidden"],["src","/img/expert/video-feed-back.svg","alt","back"],[1,"section-main"],[4,"ngIf","ngIfElse"],[1,"nav-button","forward",3,"click","hidden"],["src","/img/expert/video-feed-back.svg","alt","forward"],["class","video-wrapper video-wrapper-list",4,"ngFor","ngForOf"],[1,"video-wrapper","video-wrapper-list"],[1,"img-wrapper"],["alt","video thumbnail",3,"src"],["class","img-pinned",4,"ngIf"],[1,"video-menu",3,"click"],[3,"selectionChange","options","iconOnly"],[1,"img-pinned"],["src","/img/icon-library/basic-ui/pin-filled.svg","alt","pinned image",1,"filled-icon"],[1,"empty-state"],[1,"empty-state-text"],["variant","secondary","size","sm",3,"clicked"]],template:function(t,i){if(t&1){let a=y();o(0,"div",2)(1,"button",3),u("click",function(){return f(a),h(i.scrollBackward());}),g(2,"img",4),r(),o(3,"section",5)(4,"main",null,0),b(6,ss,2,1,"ng-container",6)(7,cs,5,0,"ng-template",null,1,He),r()(),o(9,"button",7),u("click",function(){return f(a),h(i.scrollForward());}),g(10,"img",8),r()();}if(t&2){let a=Ke(8);l(),c("hidden",i.videoList.length===0||i.noMoreSpaceToScrollBack),l(5),c("ngIf",i.videoList.length>0)("ngIfElse",a),l(3),c("hidden",i.videoList.length===0||!i.nextUrl&&i.noMoreSpaceToScroll);}},dependencies:[U,le,N,ot,B],styles:[".video-list-wrapper[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;justify-content:flex-start;flex-direction:row;align-items:flex-start;position:relative;padding-top:12px;padding-bottom:24px}.section-main[_ngcontent-%COMP%]{width:100%}main[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:flex-start;align-items:center;gap:12px;overflow-x:scroll;scroll-snap-type:x mandatory;position:relative}.video-list-wrapper[_ngcontent-%COMP%] main[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.back[_ngcontent-%COMP%]{left:-12px}.forward[_ngcontent-%COMP%]{right:-12px}.nav-button[_ngcontent-%COMP%]{top:30%;position:absolute;z-index:1;width:29px;height:29px;border-radius:30px;border:1px solid rgba(37,54,88,.5);background:#fffc}.back[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{transform:rotate(180deg)}.nav-button[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-position:center;object-fit:contain}.video-wrapper-list[_ngcontent-%COMP%]{background:#000}.video-wrapper[_ngcontent-%COMP%]{display:flex;width:103px;flex-shrink:0;height:140px;overflow:hidden;justify-content:center;align-items:center;position:relative;border-radius:6px;cursor:pointer;scroll-snap-align:start;scroll-snap-stop:always}.img-wrapper-temp[_ngcontent-%COMP%]{width:100%;height:100%;overflow:hidden;background:#e5e7eb}.img-pinned[_ngcontent-%COMP%]{position:absolute;top:6px;right:8px;width:16px;height:16px;z-index:1}.video-menu[_ngcontent-%COMP%]{position:absolute;top:4px;left:4px;z-index:2;width:16px;height:16px}.video-menu[_ngcontent-%COMP%] .dropdown-icon-only-button{width:20px;height:20px}.video-menu[_ngcontent-%COMP%] .dropdown-icon-only-button .dropdown-icon{filter:brightness(0) invert(1)}.video-menu[_ngcontent-%COMP%] .dropdown-icon-only-button:hover, .video-menu[_ngcontent-%COMP%] .dropdown-icon-only-button[aria-expanded=true]{background-color:#4b6fa5}.img-wrapper[_ngcontent-%COMP%]{width:100%;overflow:hidden}.img-pinned[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .img-wrapper[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:contain;object-position:center;transition:.5s ease}.img-wrapper[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:hover{opacity:.7}.learn[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;padding:20px;align-items:center;gap:10px;border-radius:7px;background:#253658;color:#fff;font-size:16px;font-weight:700;text-transform:capitalize}.learn[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:24px;height:24px}.vertical[_ngcontent-%COMP%], .horizontal[_ngcontent-%COMP%]{aspect-ratio:9/16}.square[_ngcontent-%COMP%]{aspect-ratio:1}.filled-icon[_ngcontent-%COMP%]{filter:brightness(0) invert(1)}.empty-state[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 0;gap:16px}.empty-state-text[_ngcontent-%COMP%]{font-size:14px;color:#25365880}@media only screen and (max-width: 767px){.video-wrapper[_ngcontent-%COMP%]{scroll-snap-align:center}.img-wrapper[_ngcontent-%COMP%]{width:256px;height:148px}}@media only screen and (max-width: 550px){.img-wrapper[_ngcontent-%COMP%]{width:232px;height:136px}}"]});}}return n;})();I();te();I();var gr=(()=>{class n{constructor(){this.formStatus=new q(),this.formData=new q(),this.inputValue="";}onValueChange(e){this.inputValue=e,this.formStatus.emit(e.trim().length>0),this.formData.emit(e);}static{this.ɵfac=function(t){return new(t||n)();};}static{this.ɵcmp=P({type:n,selectors:[["app-request-experties"]
13],inputs:{data:"data"},outputs:{formStatus:"formStatus",formData:"formData"},standalone:!0,features:[M],decls:6,vars:1,consts:[[1,"request-wrapper"],["labelText","Expertise","placeholder","Type your expertise","size","small",3,"valueChange","required"],[1,"helper-row"],["src","/img/icon-library/symbols/info-2-small.svg","alt","",1,"helper-icon"],[1,"helper-text"]],template:function(t,i){t&1&&(o(0,"div",0)(1,"lib-input",1),u("valueChange",function(d){return i.onValueChange(d);}),r(),o(2,"div",2),g(3,"img",3),o(4,"span",4),s(5,"Keep it short (1\u20134 words)"),r()()()),t&2&&(l(),c("required",!1));},dependencies:[ue],styles:['@use "@bigvu/ui-components/scss/colors" as colors;.request-wrapper[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;gap:8px}.helper-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px}.helper-icon[_ngcontent-%COMP%]{width:16px;height:16px}.helper-text[_ngcontent-%COMP%]{font-size:14px;color:colors.color("gray-400")}']});}}return n;})();Ot();ti();te();F();rt();We();qe();te();I();F();function ps(n,m){if(n&1){let e=y();o(0,"div",13),u("click",function(){let i=f(e).$implicit,a=p();return h(a.onToggle(i.value));}),o(1,"div",14)(2,"span",15),s(3),r(),o(4,"span",16),s(5),r()(),o(6,"lib-checkbox",17),u("checked",function(){let i=f(e).$implicit,a=p();return h(a.onToggle(i.value));}),r()();}if(n&2){let e=m.$implicit,t=p();l(3),E(e.flag),l(2),kt("",e.nativeName," (",e.name,")"),l(),c("checked",t.isSelected(e.value));}}function ds(n,m){n&1&&(o(0,"div",18),s(1," No languages match your search. "),r());}var ji=class extends de{constructor(){super(...arguments),this.selectedLanguages=[];}},ur=(()=>{class n extends me{constructor(e){super(e),this.data=e,this.allLanguages=Ui,this.searchTerm="",this.selectedCodes=new Set(e.selectedLanguages||[]);}get filteredLanguages(){if(!this.searchTerm)return this.allLanguages;let e=this.searchTerm.toLowerCase();return this.allLanguages.filter(t=>t.name.toLowerCase().includes(e)||t.nativeName.toLowerCase().includes(e));}get selectedCount(){return this.selectedCodes.size;}isSelected(e){return this.selectedCodes.has(e);}onToggle(e){this.selectedCodes.has(e)?this.selectedCodes.delete(e):this.selectedCodes.add(e);}onSearchChange(e){this.searchTerm=e;}onSave(){this.submit(Array.from(this.selectedCodes));}onCancel(){this.close();}static{this.ɵfac=function(t){return new(t||n)(x(fe));};}static{this.ɵcmp=P({type:n,selectors:[["expert-language-modal"]],standalone:!0,features:[W,M],decls:16,vars:6,consts:[["title","Select Languages","size","sm",3,"closed"],["modal-body",""],[1,"language-modal-search"],["placeholder","Search languages",3,"valueChange","clear","label","value","hasClearButton"],[1,"language-modal-list"],["class","language-item",3,"click",4,"ngFor","ngForOf"],["class","language-empty",4,"ngIf"],["modal-footer",""],[1,"language-footer-wrapper"],[1,"language-selected-count"],[1,"language-modal-actions"],["variant","ghost","size","sm",3,"clicked"],["variant","primary","size","sm",3,"clicked"],[1,"language-item",3,"click"],[1,"language-info"],[1,"language-flag"],[1,"language-name"],[3,"checked"],[1,"language-empty"]],template:function(t,i){t&1&&(o(0,"lib-modal",0),u("closed",function(){return i.onCancel();}),o(1,"div",1)(2,"div",2)(3,"lib-search",3),u("valueChange",function(d){return i.onSearchChange(d);})("clear",function(){return i.onSearchChange("");}),r()(),o(4,"div",4),b(5,ps,7,4,"div",5)(6,ds,2,0,"div",6),r()(),o(7,"div",7)(8,"div",8)(9,"span",9),s(10),r(),o(11,"div",10)(12,"lib-button",11),u("clicked",function(){return i.onCancel();}),s(13," Cancel "),r(),o(14,"lib-button",12),u("clicked",function(){return i.onSave();}),s(15," Save "),r()()()()()),t&2&&(l(3),c("label",!1)("value",i.searchTerm)("hasClearButton",!0),l(2),c("ngForOf",i.filteredLanguages),l(),c("ngIf",i.filteredLanguages.length===0),l(4),A("",i.selectedCount," selected"));},dependencies:[U,le,N,ui,zt,B,pe],styles:[".language-modal-search[_ngcontent-%COMP%]{margin-bottom:12px}.language-modal-list[_ngcontent-%COMP%]{flex:1;overflow-y:auto;max-height:360px}.language-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:10px 0;cursor:pointer;border-bottom:1px solid rgba(37,54,88,.1)}.language-item[_ngcontent-%COMP%]:last-child{border-bottom:none}.language-item[_ngcontent-%COMP%]:hover{background-color:#2536581a;margin:0 -8px;padding:10px 8px;border-radius:6px}.language-info[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.language-flag[_ngcontent-%COMP%]{font-size:20px;line-height:1}
13.language-name[_ngcontent-%COMP%]{font-size:14px;color:#253658}.language-empty[_ngcontent-%COMP%]{padding:24px 0;text-align:center;font-size:14px;color:#25365880}.language-footer-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%}.language-selected-count[_ngcontent-%COMP%]{font-size:13px;color:#25365880}.language-modal-actions[_ngcontent-%COMP%]{display:flex;gap:8px}"]});}}return n;})();F();rt();We();qe();te();I();ye();var Hi=class extends de{},fr=(()=>{class n extends me{constructor(e,t){super(e),this.data=e,this.notifier=t;}copyUrl(){return C(this,null,function*(){try{yield navigator.clipboard.writeText(this.data.profileUrl),this.notifier.info("Link copied to clipboard");}catch{this.notifier.error("Failed to copy link");}});}shareProfile(){navigator.share?navigator.share({url:this.data.profileUrl}).catch(()=>{this.copyUrl();}):this.copyUrl();}viewProfile(){window.open(this.data.profileUrl,"_blank"),this.close();}static{this.ɵfac=function(t){return new(t||n)(x(fe),x(ee));};}static{this.ɵcmp=P({type:n,selectors:[["expert-success-modal"]],standalone:!0,features:[W,M],decls:16,vars:1,consts:[["title","You're now an Expert!","size","sm",3,"closed"],["modal-body",""],[1,"success-icon"],["src","img/icons/check-circle-green.svg","alt","success"],[1,"success-description"],[1,"profile-url-field"],[1,"profile-url-text"],[1,"profile-url-copy",3,"click"],["src","img/icons/copy-icon.svg","alt","copy"],["modal-footer",""],["variant","ghost","size","sm",3,"clicked"],["variant","primary","size","sm",3,"clicked"]],template:function(t,i){t&1&&(o(0,"lib-modal",0),u("closed",function(){return i.close();}),o(1,"div",1)(2,"div",2),g(3,"img",3),r(),o(4,"p",4),s(5,"Your profile is live and visible in the BIGVU Experts directory."),r(),o(6,"div",5)(7,"span",6),s(8),r(),o(9,"button",7),u("click",function(){return i.copyUrl();}),g(10,"img",8),r()()(),o(11,"div",9)(12,"lib-button",10),u("clicked",function(){return i.shareProfile();}),s(13," Share Profile "),r(),o(14,"lib-button",11),u("clicked",function(){return i.viewProfile();}),s(15," View Profile "),r()()()),t&2&&(l(8),E(i.data.profileUrl));},dependencies:[U,B,pe],styles:[".success-icon[_ngcontent-%COMP%]{margin-bottom:16px;text-align:center}.success-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:48px;height:48px}.success-description[_ngcontent-%COMP%]{font-size:14px;color:#25365880;margin:0 0 20px;max-width:300px;text-align:center}.profile-url-field[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;width:100%;padding:10px 12px;border:1px solid rgba(37,54,88,.1);border-radius:8px;background:#2536581a}.profile-url-text[_ngcontent-%COMP%]{flex:1;font-size:13px;color:#253658;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-url-copy[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;padding:4px;display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:4px}.profile-url-copy[_ngcontent-%COMP%]:hover{background-color:#2536581a}.profile-url-copy[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:16px;height:16px}"]});}}return n;})();F();rt();We();qe();te();aa();I();gt();var qi=class extends de{},hr=(()=>{class n extends me{constructor(e,t){super(e),this.data=e,this.router=t,this.videoUrl="https://assets.bigvu.tv/storyVideos/61d6df718eab1b90b68b7465/takes/61d6df718eab1b90b68b746a/a93e1d2c-cf0f-4e03-919f-e6b72ddbf2b3/video.m3u8";}viewListings(){this.close(),this.router.navigate(["/experts"]);}joinExperts(){this.close();}static{this.ɵfac=function(t){return new(t||n)(x(fe),x(Se));};}static{this.ɵcmp=P({type:n,selectors:[["expert-welcome-modal"]],standalone:!0,features:[W,M],decls:13,vars:3,consts:[["title","Become an Expert","size","md",3,"closed"],["modal-body",""],[3,"streamUrl","thumbnailUrl","borderRadius"],[1,"content-section"],[1,"showcase-title"],[1,"showcase-description"],["modal-footer",""],["variant","secondary","size","md",3,"clicked"],["variant","primary","size","md",3,"clicked"]],template:function(t,i){t&1&&(o(0,"lib-modal",0),u("closed",function(){return i.close();}),o(1,"div",1),g(2,"hls-video-player",2),o(3,"div",3)(4,"h2",4),s(5,"Showcase Your Expertise. Get More Clients"),r(),o(6,"p",5),s(7," BIGVU Experts is a community directory of creators, coaches, and professionals who share video tips and can be discovered and hired through the BIGVU platform. "),r()()(),o(8,"div",6)(9,"lib-button",7),u("clicked",function(){return i.viewListings();}),s(10," View Expert Listings "),r(),o(11,"lib-button",8),u("clicked",function(){return i.joinExperts();}),s(12," Join Club of Experts "),r()()()),t&2&&(l(2),c("streamUrl",i.videoUrl)("thumbnailUrl","img/expert/expert-banner-background.svg")("borderRadius","12px"));},dependencies:[U,B,pe,To],styles:["hls-video-player[_ngcontent-%COMP%]{display:block;width:100%}.content-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.showcase-title[_ngcontent-%COMP%]{font-size:30px;font-weight:600;line-height:1.1;color:#253658;margin:0}.showcase-description[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:1.4;letter-spacing:-.14px;color:#25365880;margin:0}[modal-footer][_ngcontent-%COMP%]{display:flex;width:100%;gap:12px}[modal-footer][_ngcontent-%COMP%] lib-button[_ngcontent-%COMP%]{flex:1;width:100%;--button-min-width: 100%}"]});}}return n;})();I();var _r=(()=>{class n{static{this.ɵfac=function(t){return new(t||n)();};}static{this.ɵcmp=P({type:n,selectors:[["app-expert-shimmer"]],standalone:!0,features:[M],decls:43,vars:0,consts:[[1,"expert-shimmer"],[1,"shimmer-card"],[1,"shimmer-section-header"],[1,"shimmer-header-text"],[1,"shimmer-block","title-block"],[1,"shimmer-block","text-block-medium"],[1,"shimmer-block","button-block-sm"],[1,"shimmer-tags-row"],[1,"shimmer-block","tag-block"],[1,"shimmer-block","tag-block-lg"],[1,"shimmer-block","tag-block-xl"],[1,"shimmer-block","title-block-sm"],[1,"shimmer-chips-row"],[1,"shimmer-block","chip-block"],[1,"shimmer-block","chip-block-lg"],[1,"shimmer-block","title-block-lg"],[1,"shimmer-block","text-block-medium-lg"],[1,"shimmer-videos-row"],[1,"shimmer-block","video-thumb-block"],[1,"shimmer-apply-row"],[1,"shimmer-block","checkbox-block"],[1,"shimmer-block","text-block-apply"],[1,"shimmer-apply-actions"],[1,"shimmer-block","button-block-lg"],[1,"wave"]],template:function(t,i){t&1&&(o(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),g(4,"div",4)(5,"div",5),r(),g(6,"div",6),r(),o(7,"div",7),g(8,"div",8)(9,"div",9)(10,"div",10)(11,"div",8)(12,"div",10),r()(),o(13,"div",1)(14,"div",2)(15,"div",3),g(16,"div",11)(17,"div",5),r(),g(18,"div",6),r(),o(19,"div",12),g(20,"div",13)(21,"div",14)(22,"div",13),r()(),o(23,"div",1)(24,"div",2)(25,"div",3),g(26,"div",15)(27,"div",16),r()(),o(28,"div",17),g(29,"div",18)(30,"div",18)(31,"div",18),r()(),o(32,"div",1)(33,"div",2)(34,"div",3),g(35,"div",4)(36,"div",16),r()(),o(37,"div",19),g(38,"div",20)(39,"div",21),r(),o(40,"div",22),g(41,"div",23),r()(),g(42,"div",24),r());},styles:[".expert-shimmer[_ngcontent-%COMP%]{position:relative;overflow:hidden;width:100%;display:flex;flex-direction:column;gap:18px}.shimmer-card[_ngcontent-%COMP%]{background:#fff;border-radius:10px;padding:18px;width:100%}.shimmer-block[_ngcontent-%COMP%]{background:#4481fd1f;border-radius:6px;flex-shrink:0}.title-block[_ngcontent-%COMP%]{width:120px;height:20px}.title-block-sm[_ngcontent-%COMP%]{width:100px;height:20px}.title-block-lg[_ngcontent-%COMP%]{width:180px;height:20px}
13.text-block-medium[_ngcontent-%COMP%]{width:320px;height:14px}.text-block-medium-lg[_ngcontent-%COMP%]{width:380px;height:14px}.text-block-apply[_ngcontent-%COMP%]{width:220px;height:14px}.button-block-sm[_ngcontent-%COMP%]{width:100px;height:32px;border-radius:8px}.button-block-lg[_ngcontent-%COMP%]{width:180px;height:40px;border-radius:8px}.tag-block[_ngcontent-%COMP%]{width:110px;height:36px;border-radius:18px}.tag-block-lg[_ngcontent-%COMP%]{width:140px;height:36px;border-radius:18px}.tag-block-xl[_ngcontent-%COMP%]{width:170px;height:36px;border-radius:18px}.chip-block[_ngcontent-%COMP%]{width:100px;height:32px;border-radius:16px}.chip-block-lg[_ngcontent-%COMP%]{width:130px;height:32px;border-radius:16px}.video-thumb-block[_ngcontent-%COMP%]{width:180px;height:120px;border-radius:10px}.checkbox-block[_ngcontent-%COMP%]{width:20px;height:20px;border-radius:4px}.shimmer-section-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px}.shimmer-header-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.shimmer-tags-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:10px}.shimmer-chips-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px}.shimmer-videos-row[_ngcontent-%COMP%]{display:flex;gap:12px}.shimmer-apply-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;margin-bottom:16px}.shimmer-apply-actions[_ngcontent-%COMP%]{display:flex}.wave[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.3) 50%,transparent 100%);transform:translate(-100%);animation:_ngcontent-%COMP%_wave 1.5s infinite}@keyframes _ngcontent-%COMP%_wave{0%{transform:translate(-100%)}50%{transform:translate(100%)}to{transform:translate(100%)}}@media only screen and (max-width: 767px){.shimmer-videos-row[_ngcontent-%COMP%]{flex-direction:column}.video-thumb-block[_ngcontent-%COMP%]{width:100%}}",".profile-common-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.profile-common-sub-container[_ngcontent-%COMP%]{background-color:#fff;border-radius:10px;padding:18px;width:100%;margin:0 0 18px}.profile-common-title[_ngcontent-%COMP%]{font-size:18px;line-height:24px;font-family:Inter-Bold;color:#253658;display:flex;align-items:center;gap:5px}hr.profile-common-hr[_ngcontent-%COMP%]{margin:18px 0}.profile-common-paragraph[_ngcontent-%COMP%]{font-size:14px;color:#7b8db1}.profile-common-sub-title[_ngcontent-%COMP%]{margin-bottom:12px;color:#000;line-height:24px;font-size:15px;font-weight:600;text-transform:capitalize;display:flex;align-items:center;gap:5px}.profile-big-sub-title[_ngcontent-%COMP%]{font-size:28px;font-family:Inter-Bold;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#253658;margin-bottom:8px}
13.content-separator[_ngcontent-%COMP%]{height:1px;background-color:#7b8db14d;margin:18px 0}.profile-sub-header[_ngcontent-%COMP%]{font-size:14px;color:#25365899;max-width:380px}.profile-details-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;height:36px}.profile-buttons-container[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px}.profile-details-cancel-button[_ngcontent-%COMP%], .profile-details-save-button[_ngcontent-%COMP%]{width:90px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px}.profile-details-cancel-button[_ngcontent-%COMP%]:hover, .profile-details-save-button[_ngcontent-%COMP%]:hover{opacity:.8}.profile-details-cancel-button[_ngcontent-%COMP%]{background:#7b8db114;color:#7b8db1;margin:0 12px 0 auto}.profile-details-save-button[_ngcontent-%COMP%]{background:#00abfe;color:#fff}.profile-details-preview[_ngcontent-%COMP%]{padding:0 22px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px;border:1px solid #00abfe;color:#00abfe;background:#fff}.disabled-button[_ngcontent-%COMP%]{background:gray!important;color:#d3d3d3!important}.disabled-button[_ngcontent-%COMP%]:hover{opacity:1} autocomplete-menu .autocomplete-menu-container{border-radius:10px;background-color:#7b8db114;padding:5px 12px;height:46px;cursor:text} autocomplete-menu .autocomplete-menu-container input{color:#253658;font-size:14px} autocomplete-menu .autocomplete-menu-container .mat-form-field-label-wrapper label mat-label{color:#00abfe!important;font-weight:700} autocomplete-menu .autocomplete-menu-container .mdc-line-ripple{display:none!important}.billing-plan-details-title[_ngcontent-%COMP%]{color:#888;font-size:12px;font-weight:400;text-transform:capitalize}.billing-plan-details-sub-title[_ngcontent-%COMP%]{color:#000;font-size:13px;font-weight:700;text-transform:capitalize}"]});}}return n;})();I();Oe();Bt();we();be();at();ye();Be();gt();F();function ms(n,m){n&1&&g(0,"app-expert-shimmer");}function gs(n,m){if(n&1){let e=y();o(0,"div",11)(1,"lib-button",12),u("clicked",function(){f(e);let i=p(3);return h(i.onCancelButtonClick());}),s(2),r(),o(3,"lib-button",13),u("clicked",function(){f(e);let i=p(3);return h(i.onSaveChanges());}),s(4),r()();}if(n&2){let e=p(3);l(2),A(" ",e.cancelBtn," "),l(2),A(" ",e.saveBtn," ");}}function us(n,m){if(n&1&&(o(0,"div",6)(1,"div",7)(2,"span",8),s(3,"Expert Profile"),r(),g(4,"lib-badge",9),r(),b(5,gs,5,2,"div",10),r()),n&2){let e=p(2);l(5),c("ngIf",e.formGroup&&e.formChanged);}}function fs(n,m){if(n&1&&(o(0,"div",14),s(1),r()),n&2){let e=p(2);l(),A(" ",e.allFields," ");}}function hs(n,m){n&1&&(o(0,"div",23),s(1,"Select what you want to showcase on your expert profile."),r());}function _s(n,m){n&1&&(o(0,"div",23),s(1,"Choose what you can help others with. This improves your visibility in the directory."),r());}function xs(n,m){if(n&1){let e=y();o(0,"lib-tag",24),u("selected",function(i){let a=f(e).$implicit,d=p(3);return h(d.onExpertiseToggle(a.value,i));}),r();}if(n&2){let e=m.$implicit,t=p(3);c("text",e.name)("value",e.value)("isSelected",t.isExpertiseSelected(e.value));}}function vs(n,m){n&1&&(o(0,"div",25),s(1," Please select at least one expertise. "),r());}function bs(n,m){if(n&1){let e=y();o(0,"div",15)(1,"div",16)(2,"div",17)(3,"div",18),s(4,"Expertise"),r(),b(5,hs,2,0,"div",19)(6,_s,2,0,"div",19),r(),o(7,"lib-button",12),u("clicked",function(){f(e);let i=p(2);return h(i.requestExperties());}),s(8," Request new "),r()(),o(9,"div",20),b(10,xs,1,3,"lib-tag",21),r(),b(11,vs,2,0,"div",22),r();}if(n&2){let e=p(2);l(5),c("ngIf",!e.isExpert),l(),c("ngIf",e.isExpert),l(4),c("ngForOf",e.expertiseOptions),l(),c("ngIf",(e.getExperties==null?null:e.getExperties.invalid)&&!e.formGroup.pristine);}}function Cs(n,m){if(n&1){let e=y();o(0,"lib-chip",29),u("closeClicked",function(i){f(e);let a=p(4);return h(a.removeLanguage(i));}),r();}if(n&2){let e=m.$implicit;c("text",e.flag+" "+e.nativeName)("value",e.value)("closeValue",e.value);}}function ys(n,m){if(n&1&&(o(0,"div",27),b(1,Cs,1,3,"lib-chip",28),r()),n&2){let e=p(3);l(),c("ngForOf",e.selectedLanguages);}}
13function ws(n,m){n&1&&(o(0,"div",25),s(1," Please select at least one language. "),r());}function Ss(n,m){if(n&1){let e=y();o(0,"div",15)(1,"div",16)(2,"div",17)(3,"div",18),s(4,"Languages"),r(),o(5,"div",23),s(6,"Select only the languages that you speak fluently."),r()(),o(7,"lib-button",12),u("clicked",function(){f(e);let i=p(2);return h(i.openLanguageModal());}),s(8," Add Language "),r()(),b(9,ys,2,1,"div",26)(10,ws,2,0,"div",22),r();}if(n&2){let e=p(2);l(9),c("ngIf",e.selectedLanguages.length>0),l(),c("ngIf",(e.getLangs==null?null:e.getLangs.invalid)&&!e.formGroup.pristine);}}function Ps(n,m){n&1&&(o(0,"div",23),s(1,"Videos you publish to BIGVU Inspire can be featured on your expert profile."),r());}function Ms(n,m){n&1&&(o(0,"div",23),s(1,"Any video you post to BIGVU Inspire will appear on your Expert Profile page. Pin a video to keep it at the top."),r());}function Os(n,m){if(n&1&&(o(0,"div",15)(1,"div",16)(2,"div",17)(3,"div",18),s(4,"Videos on Get Inspired"),r(),b(5,Ps,2,0,"div",19)(6,Ms,2,0,"div",19),r()(),g(7,"app-expert-video-slideshow",30),r()),n&2){let e=p(2);l(5),c("ngIf",!e.isExpert),l(),c("ngIf",e.isExpert),l(),c("userId",e.userData==null?null:e.userData.userId)("isExpert",e.isExpert);}}function Es(n,m){n&1&&(o(0,"div",23),s(1,"Create your public expert profile. Your selected expertise and languages will appear on your profile."),r());}function ks(n,m){n&1&&(o(0,"div",23),s(1,"Your expert profile is live and visible in the BIGVU Experts directory."),r());}function Is(n,m){if(n&1){let e=y();o(0,"div",34)(1,"lib-checkbox",35),u("checked",function(i){f(e);let a=p(3);return h(a.getIsApplying.setValue(i));}),r(),o(2,"span",36),s(3," By applying, I accept the "),g(4,"lib-link",37),r()();}if(n&2){let e=p(3);l(),c("checked",e.getIsApplying==null?null:e.getIsApplying.value),l(3),c("external",!0);}}function Ts(n,m){n&1&&(o(0,"div",25),s(1," Please fill out all required fields before submitting. "),r());}function Ds(n,m){if(n&1){let e=y();o(0,"div",38)(1,"lib-button",39),u("clicked",function(){f(e);let i=p(3);return h(i.onSendRequestClick());}),s(2," Create Expert Profile "),r(),b(3,Ts,2,0,"div",22),r();}if(n&2){let e=p(3);l(),c("disabled",e.sendClicked||!e.getIsApplying.value||e.getExperties.invalid||e.getLangs.invalid)("loading",e.sendClicked),l(2),c("ngIf",!e.formIsValid&&!e.formGroup.pristine);}}function As(n,m){if(n&1){let e=y();o(0,"div",40)(1,"div",41),g(2,"img",42),o(3,"span"),s(4,"Terms accepted"),r()(),o(5,"div",43)(6,"lib-button",44),u("clicked",function(){f(e);let i=p(3);return h(i.onUnpublishClick());}),s(7," Unpublish "),r(),o(8,"lib-button",12),u("clicked",function(){f(e);let i=p(3);return h(i.viewProfile());}),s(9," View Profile "),r()()();}}function Vs(n,m){if(n&1&&(o(0,"div",15)(1,"div",16)(2,"div",17)(3,"div",18),s(4,"Expert Profile"),r(),b(5,Es,2,0,"div",19)(6,ks,2,0,"div",19),r()(),b(7,Is,5,2,"div",31)(8,Ds,4,3,"div",32)(9,As,10,0,"div",33),r()),n&2){let e=p(2);l(5),c("ngIf",!e.isExpert),l(),c("ngIf",e.isExpert),l(),c("ngIf",!e.isExpert),l(),c("ngIf",!e.isExpert),l(),c("ngIf",e.isExpert);}}function zs(n,m){if(n&1&&(o(0,"div",2),b(1,us,6,1,"div",3)(2,fs,2,1,"div",4)(3,bs,12,4,"div",5)(4,Ss,11,2,"div",5)(5,Os,8,4,"div",5)(6,Vs,10,5,"div",5),r()),n&2){let e=p();l(),c("ngIf",e.isExpert&&!e.isLoading),l(),c("ngIf",!e.formIsValid&&!(e.formGroup!=null&&e.formGroup.pristine)&&e.isExpert),l(),c("ngIf",!e.isLoading),l(),c("ngIf",!e.isLoading),l(),c("ngIf",!e.isLoading),l(),c("ngIf",!e.isLoading);}}var xr=(()=>{class n extends et{get getIsApplying(){return this.formGroup.get(xt.applying);}get getLangs(){return this.formGroup.get(xt.langs);}get getExperties(){return this.formGroup.get(xt.expertise);}get selectedLanguages(){let e=this.getLangs.value||[];return Ui.filter(t=>e.includes(t.value));}constructor(e,t,i,a,d,_,w,v,O,D,j){super(t),this.requestsService=e,this.profileChangeService=t,this.profileDataHelperService=i,this.deskManagerHelperService=a,this.dialogService=d,this.eventService=_,this.userHelperService=w,this.socialNetworksHelperService=v,this.notifier=O,this.fb=D,this.router=j,this.cancelBtn="Cancel",this.saveBtn="Save",this.allFields="Please fill out all required fields before updating.",this.EVENT_PATH=this.eventService.events.experts,this.expertiseOptions=[{value:"onCameraSkills",name:"On Camera Skills"},{value:"videoMarketing",name:"Video Marketing"},{value:"realEstateMarketing",name:"Real Estate Marketing"},{value:"videoEditing",name:"Video Editing"},{value:"smallBusinessCoaching",name:"Small Business Coaching"}],this.sendClicked=!1,this.socialChannels=[],this.unsubscribe$=new je(),this.mainInit=()=>{this.buildForm(),this.setFormControlReference(this.formGroup);},this.setFormValueChangeListener=()=>{this.formValueChangeSubscription=this.formControlReference.valueChanges.subscribe(k=>{k&&(this.formIsValid=this.formGroup.valid,this.formChanged=!0,this.setHasChanges(!0));});},this.buildForm=()=>
13{this.formGroup=this.fb.group({[xt.expertise]:new Pe(this.expertApiData?this.expertApiData.expertise||[]:[],[Ce.required]),[xt.langs]:new Pe(this.expertApiData?this.expertApiData.lang||[]:[],[Ce.required]),[xt.applying]:new Pe(!1)});},this.requestExperties=()=>{this.eventService.log(this.EVENT_PATH.expertAddTopicStart),this.openGeneralInputDialog(gr,void 0,!0,k=>{this.dialogService.close(),this.eventService.log(this.EVENT_PATH.expertAddTopicEnd,{input:k});},"Request New Expertise","Suggest a new expertise tag. We'll notify you once it's added to the catalog.","Cancel","Send request");},this.openLanguageModal=()=>{let k=new ji();k.selectedLanguages=this.getLangs.value||[],k.onSubmit=$=>{this.getLangs.setValue($),this.dialogService.close();},k.onClose=()=>{this.dialogService.close();};let z=new xe();z.panelClass="common-dialog",this.dialogService.open(k,ur,z);},this.openGeneralInputDialog=(k,z=void 0,$,S,T,H,oe,tt)=>{let Te=new yt(),St=new xe();Te.componentType=k,Te.title=T,Te.text=H,Te.cancelBtn=oe,Te.sendBtn=tt,Te.useComponentData=$,Te.componentData=z,Te.onClose=()=>{this.dialogService.close();},Te.onSubmit=Xt=>{S(Xt);},St.panelClass="generic-input-dialog-content",St.disableClose=!0,this.dialogService.open(Te,Kt,St);},this.onSaveChanges=()=>C(this,null,function*(){if(!this.formIsValid){this.formGroup.markAsDirty();return;}this.formIsValid&&this.isExpert&&(yield this.updateApi());}),this.onCancelButtonClick=()=>{this.expertApiData?this.mainInit():this.formGroup.reset(),this.formGroup.markAsPristine(),this.setHasChanges(!1),this.formChanged=!1;},this.onUnpublishClick=()=>{this.dialogService.showNewConfirmationDialog({title:"Unpublish your Expert Profile?",msg:"Your profile will be hidden from the BIGVU Experts directory.",confirmationText:"Unpublish profile",cancellationText:"Cancel",confirmButtonVariant:"primary",confirmButtonDestructive:!0,onSubmit:()=>{this.dialogService.close(),this.onDeleteExpert();}});},this.onDeleteExpert=()=>C(this,null,function*(){try{yield this.requestsService.deleteExpert(),this.eventService.log(this.EVENT_PATH.expertProfileDelete),this.expertApiData=null,this.profileDataHelperService.setExpertChanged(!1),yield this.initUser(!0),this.mainInit();}catch{this.notifier.error("Failed to update the expert. Please try again");}}),this.viewProfile=()=>{this.eventService.log(this.EVENT_PATH.expertProfilePreview),window.open(`feed/${encodeURIComponent(this.expertApiData?.username||this.expertApiData?.userId)}`,"_blank");};}ngOnInit(){return C(this,null,function*(){this.isLoading=!0,yield this.initUser(!1),this.mainInit(),this.setConfirmationAction(this.onSaveChanges),this.setDismissAction(!1),this.setDialogText({msg:"Do you want to continue?",header:"Your change will be lost",confText:"Yes",actionText:"No"}),this.isLoading=!1,this.eventService.log(this.EVENT_PATH.expertScreen,{applied:this.isExpert}),this.showWelcomeModalIfNeeded()||this.showCompleteProfileModalIfNeeded();});}ngOnDestroy(){super.ngOnDestroy(),this.unsubscribe$.next(),this.unsubscribe$.unsubscribe();}initUser(e){return C(this,null,function*(){try{if(this.userData=yield this.userHelperService.getUserDetails(e),this.userData){this.isExpert=this.userData.isExpert;let t=yield this.requestsService.getBusiness(void 0,void 0,this.deskManagerHelperService.getSelectedWorkspaceId());this.profileDataHelperService.setBusinessData(t),this.profileDataHelperService.businessData$.pipe(pt(this.unsubscribe$)).subscribe(a=>this.businessData=a);let i=this.deskManagerHelperService.getSelectedWorkspaceId();if(i){let a=yield this.socialNetworksHelperService.getLinkedAccounts(i,50,0);this.socialChannels=a?.data||[];}this.isExpert&&(this.expertApiData=yield this.requestsService.getExpert());}}catch(t){console.error(t);}});}isExpertiseSelected(e){return(this.getExperties.value||[]).includes(e);}onExpertiseToggle(e,t){let i=[...(this.getExperties.value||[])];if(t)i.includes(e)||i.push(e);else{let a=i.indexOf(e);a>=0&&i.splice(a,1);}this.getExperties.setValue(i);}removeLanguage(e){let t=(this.getLangs.value||[]).filter(i=>i!==e);this.getLangs.setValue(t);}updateApi(){return C(this,null,function*(){if(!this.formIsValid){this.formGroup.markAsDirty();return;}try{let e=it(K(K({},this.getLangs.value&&{lang:this.getLangs.value}),this.getExperties.value&&{expertise:this.getExperties.value}),{businessId:this.businessData.businessId||this.businessData.id});this.expertApiData=yield this.requestsService.updateExpert(e),this.eventService.log(this.EVENT_PATH.expertProfileUpdate,{changed:Object.keys(e).sort()}),this.setHasChanges(!1),this.formChanged=!1,this.formGroup.markAsPristine(),this.notifier.success("Expert updated successfully");}catch{this.notifier.error("Failed to update the expert. Please try again");}});}onSendRequestClick(){return C(this,null,function*(){if(!this.getIsApplying.value||!this.formIsValid){this.formGroup.markAsDirty();return;}if(!this.isProfileComplete()){this.showCompleteProfileModal();return;}this.sendClicked=!0;try{this.expertApiData=yield this.requestsService.applyExpert(it(K(K({},this.getLangs.value&&{lang:this.getLangs.value}),this.getExperties.value&&{expertise:this.getExperties.value}),{businessId:this.businessData.businessId||this.businessData.id})),this.eventService.log(this.EVENT_PATH.expertFinish),this.setHasChanges(!1),this.formChanged=!1,this.formGroup.markAsPristine(),yield this.initUser(!0),this.mainInit(),this.profileDataHelperService.setExpertChanged(!0),this.showSuccessModal();}catch(e){let t=e instanceof Error?e.message:"";this.eventService.log(this.EVENT_PATH.expertApplyError,{error:t}),this.notifier.error("Failed to process your request. Please try again");}finally{this.sendClicked=!1;}});}getProfileUrl(){let e=this.expertApiData?.username||this.expertApiData?.userId;return`${window.location.origin}/feed/${e}`;}showSuccessModal(){let e=new Hi();e.profileUrl=this.getProfileUrl(),e.onClose=()=>{this.dialogService.close();},e.onSubmit=()=>{this.dialogService.close();};let t=new xe();t.panelClass="common-dialog",this.dialogService.open(e,fr,t);}showWelcomeModalIfNeeded(){if(this.isExpert||typeof window>"u"||!!localStorage.getItem("expert_welcome_shown"))return!1;localStorage.setItem("expert_welcome_shown","true");let t=new qi();t.onClose=()=>{this.dialogService.close(),this.showCompleteProfileModalIfNeeded();},t.onSubmit=()=>{this.dialogService.close(),this.showCompleteProfileModalIfNeeded();};let i=new xe();return i.panelClass="common-dialog",this.dialogService.open(t,hr,i),!0;}showCompleteProfileModalIfNeeded(){!this.isExpert&&!this.isProfileComplete()&&this.showCompleteProfileModal();}isProfileComplete(){let e=!!this.userData?.fullName,t=!!(this.userData?.profileImgAsset?.url||this.userData?.profileImgUrl),i=!!this.userData?.bio,a=this.socialChannels.length>0;return e&&t&&i&&a;}showCompleteProfileModal(){this.dialogService.showNewConfirmationDialog({title:"Complete your profile",msg:"To apply as an Expert, complete your BIGVU profile \u2014 add your name, photo, bio, and at least one social link.",confirmationText:"Go to Profile",cancellationText:"Skip for now",onSubmit:()=>{this.dialogService.close(),this.router.navigate(["/profile"]);},onClose:()=>{this.dialogService.close();}});}static{this.ɵfac=function(t){return new(t||n)(x(ie),x(Le),x(lt),x(Ge),x(_e),x(Y),x(he),x(Ii),x(ee),x(At),x(Se));};}static{this.ɵcmp=P({type:n,selectors:[["expert"]],standalone:!0,features:[W,M],decls:2,vars:2,consts:[[4,"ngIf"],["class","profile-common-container expert-page",4,"ngIf"],[1,"profile-common-container","expert-page"],["class","expert-page-header",4,"ngIf"],["class","expert-page-error",4,"ngIf"],["class","profile-common-sub-container",4,"ngIf"],[1,"expert-page-header"],[1,"expert-page-header-title"],[1,"profile-common-title"],["color","success","size","small","text","Live"],["class","expert-page-header-actions",4,"ngIf"],[1,"expert-page-header-actions"],["variant","ghost","size","sm",3,"clicked"],["variant","primary","size","sm",3,"clicked"],[1,"expert-page-error"],[1,"profile-common-sub-container"],[1,"section-header"],[1,"section-header-text"],[1,"profile-common-sub-title"],["class","section-description",4,"ngIf"],[1,"tags-row"],[3,"text","value","isSelected","selected",4,"ngFor","ngForOf"],["class","field-error",4,"ngIf"],[1,"section-description"],[3,"selected","text","value","isSelected"],[1,"field-error"],["class","chips-row",4,"ngIf"],[1,"chips-row"],[3,"text","value","closeValue","closeClicked",4,"ngFor","ngForOf"],[3,"closeClicked","text","value","closeValue"],[3,"userId","isExpert"],["class","expert-apply-section",4,"ngIf"],["class","expert-apply-actions",4,"ngIf"],["class","expert-live-section",4,"ngIf"],[1,"expert-apply-section"],[3,"checked"],[1,"terms-text"],["text","terms of the program","href","https://faq.bigvu.tv/en/articles/5050706-submission-guidelines-for-experts","size","regular",3,"external"],[1,"expert-apply-actions"],["variant","primary","size","md",3,"clicked","disabled","loading"],[1,"expert-live-section"],[1,"terms-accepted"],["src","img/icons/check-circle-green.svg","alt","check",1,"terms-check-icon"],[1,"expert-live-actions"],["variant","secondary","size","sm",3,"clicked"]],template:function(t,i){t&1&&b(0,ms,1,0,"app-expert-shimmer",0)(1,zs,7,6,"div",1),t&2&&(c("ngIf",i.isLoading),l(
13),c("ngIf",!i.isLoading));},dependencies:[U,le,N,Me,mr,ao,co,B,zt,po,ut,_r],styles:[".expert-page[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.expert-page-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.expert-page-header-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}.expert-page-header-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.expert-page-error[_ngcontent-%COMP%]{font-size:14px;color:#ff4d5b;margin-bottom:12px}.section-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px}.section-header-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.section-description[_ngcontent-%COMP%]{font-size:14px;color:#25365880;max-width:400px}.tags-row[_ngcontent-%COMP%], .chips-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px}.field-error[_ngcontent-%COMP%]{font-size:13px;color:#ff4d5b;margin-top:8px}.expert-apply-section[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-bottom:16px}.terms-text[_ngcontent-%COMP%]{font-size:14px;color:#253658;display:flex;align-items:center;gap:4px}.expert-apply-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.expert-live-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.terms-accepted[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:14px;color:#253658}.terms-accepted[_ngcontent-%COMP%] .terms-check-icon[_ngcontent-%COMP%]{width:18px;height:18px}.expert-live-actions[_ngcontent-%COMP%]{display:flex;gap:8px}@media only screen and (max-width: 600px){.section-header[_ngcontent-%COMP%]{flex-direction:column;gap:12px}.expert-page-header[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:12px}}",".profile-common-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.profile-common-sub-container[_ngcontent-%COMP%]{background-color:#fff;border-radius:10px;padding:18px;width:100%;margin:0 0 18px}.profile-common-title[_ngcontent-%COMP%]{font-size:18px;line-height:24px;font-family:Inter-Bold;color:#253658;display:flex;align-items:center;gap:5px}hr.profile-common-hr[_ngcontent-%COMP%]{margin:18px 0}.profile-common-paragraph[_ngcontent-%COMP%]{font-size:14px;color:#7b8db1}.profile-common-sub-title[_ngcontent-%COMP%]{margin-bottom:12px;color:#000;line-height:24px;font-size:15px;font-weight:600;text-transform:capitalize;display:flex;align-items:center;gap:5px}.profile-big-sub-title[_ngcontent-%COMP%]{font-size:28px;font-family:Inter-Bold;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#253658;margin-bottom:8px}
13.content-separator[_ngcontent-%COMP%]{height:1px;background-color:#7b8db14d;margin:18px 0}.profile-sub-header[_ngcontent-%COMP%]{font-size:14px;color:#25365899;max-width:380px}.profile-details-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;height:36px}.profile-buttons-container[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px}.profile-details-cancel-button[_ngcontent-%COMP%], .profile-details-save-button[_ngcontent-%COMP%]{width:90px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px}.profile-details-cancel-button[_ngcontent-%COMP%]:hover, .profile-details-save-button[_ngcontent-%COMP%]:hover{opacity:.8}.profile-details-cancel-button[_ngcontent-%COMP%]{background:#7b8db114;color:#7b8db1;margin:0 12px 0 auto}.profile-details-save-button[_ngcontent-%COMP%]{background:#00abfe;color:#fff}.profile-details-preview[_ngcontent-%COMP%]{padding:0 22px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px;border:1px solid #00abfe;color:#00abfe;background:#fff}.disabled-button[_ngcontent-%COMP%]{background:gray!important;color:#d3d3d3!important}.disabled-button[_ngcontent-%COMP%]:hover{opacity:1} autocomplete-menu .autocomplete-menu-container{border-radius:10px;background-color:#7b8db114;padding:5px 12px;height:46px;cursor:text} autocomplete-menu .autocomplete-menu-container input{color:#253658;font-size:14px} autocomplete-menu .autocomplete-menu-container .mat-form-field-label-wrapper label mat-label{color:#00abfe!important;font-weight:700} autocomplete-menu .autocomplete-menu-container .mdc-line-ripple{display:none!important}.billing-plan-details-title[_ngcontent-%COMP%]{color:#888;font-size:12px;font-weight:400;text-transform:capitalize}.billing-plan-details-sub-title[_ngcontent-%COMP%]{color:#000;font-size:13px;font-weight:700;text-transform:capitalize}"]});}}return n;})();qe();we();qe();We();We();Oe();we();be();ye();Bt();I();on();var vr=(()=>{class n{constructor(e){this.sanitizer=e;}transform(e){return this.sanitizer.bypassSecurityTrustResourceUrl(e);}static{this.ɵfac=function(t){return new(t||n)(x(pi,16));};}static{this.ɵpipe=In({name:"IFrameSecurityPipe",type:n,pure:!0,standalone:!0});}}return n;})();I();Oe();ye();var br=(()=>{class n extends et{constructor(e,t,i){super(t),this.adminRequestsService=e,this.profileChangeService=t,this.notifier=i,this.domainUrl="https://partners.bigvu.tv/iframe?tk=",this.getAffiliateInfo=()=>{this.adminRequestsService.getAffiliateInfo().then(a=>{this.affiliateAuthToken=a.authToken,this.iFrameUrl=this.domainUrl+this.affiliateAuthToken;}).catch(a=>{this.notifier.error("Failed to load the affiliate info. Please try again");});};}ngOnInit(){this.getAffiliateInfo();}static{this.ɵfac=function(t){return new(t||n)(x(ie),x(Le),x(ee));};}static{this.ɵcmp=P({type:n,selectors:[["affiliation-dashboard"]],standalone:!0,features:[W,M],decls:3,vars:3,consts:[[1,"affiliate-dashboard"],["height","850px","width","100%","frameborder","0",3,"src"]],template:function(t,i){t&1&&(o(0,"div",0),g(1,"iframe",1),Dt(2,"IFrameSecurityPipe"),r()),t&2&&(l(),c("src",li(2,1,i.iFrameUrl),An));},dependencies:[vr],styles:[".affiliate-dashboard[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;padding:18px;border-radius:10px;background:#fff}",".profile-common-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.profile-common-sub-container[_ngcontent-%COMP%]{background-color:#fff;border-radius:10px;padding:18px;width:100%;margin:0 0 18px}.profile-common-title[_ngcontent-%COMP%]{font-size:18px;line-height:24px;font-family:Inter-Bold;color:#253658;display:flex;align-items:center;gap:5px}hr.profile-common-hr[_ngcontent-%COMP%]{margin:18px 0}.profile-common-paragraph[_ngcontent-%COMP%]{font-size:14px;color:#7b8db1}.profile-common-sub-title[_ngcontent-%COMP%]{margin-bottom:12px;color:#000;line-height:24px;font-size:15px;font-weight:600;text-transform:capitalize;display:flex;align-items:center;gap:5px}.profile-big-sub-title[_ngcontent-%COMP%]{font-size:28px;font-family:Inter-Bold;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#253658;margin-bottom:8px}
13.content-separator[_ngcontent-%COMP%]{height:1px;background-color:#7b8db14d;margin:18px 0}.profile-sub-header[_ngcontent-%COMP%]{font-size:14px;color:#25365899;max-width:380px}.profile-details-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;height:36px}.profile-buttons-container[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px}.profile-details-cancel-button[_ngcontent-%COMP%], .profile-details-save-button[_ngcontent-%COMP%]{width:90px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px}.profile-details-cancel-button[_ngcontent-%COMP%]:hover, .profile-details-save-button[_ngcontent-%COMP%]:hover{opacity:.8}.profile-details-cancel-button[_ngcontent-%COMP%]{background:#7b8db114;color:#7b8db1;margin:0 12px 0 auto}.profile-details-save-button[_ngcontent-%COMP%]{background:#00abfe;color:#fff}.profile-details-preview[_ngcontent-%COMP%]{padding:0 22px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px;border:1px solid #00abfe;color:#00abfe;background:#fff}.disabled-button[_ngcontent-%COMP%]{background:gray!important;color:#d3d3d3!important}.disabled-button[_ngcontent-%COMP%]:hover{opacity:1} autocomplete-menu .autocomplete-menu-container{border-radius:10px;background-color:#7b8db114;padding:5px 12px;height:46px;cursor:text} autocomplete-menu .autocomplete-menu-container input{color:#253658;font-size:14px} autocomplete-menu .autocomplete-menu-container .mat-form-field-label-wrapper label mat-label{color:#00abfe!important;font-weight:700} autocomplete-menu .autocomplete-menu-container .mdc-line-ripple{display:none!important}.billing-plan-details-title[_ngcontent-%COMP%]{color:#888;font-size:12px;font-weight:400;text-transform:capitalize}.billing-plan-details-sub-title[_ngcontent-%COMP%]{color:#000;font-size:13px;font-weight:700;text-transform:capitalize}"]});}}return n;})();F();Qr();I();at();function Fs(n,m){n&1&&g(0,"affiliation-dashboard");}var Cr=(()=>{class n{constructor(e,t,i){this.userHelperService=e,this.profileDataHelperService=t,this.cello=i,this.openCelloDialog=()=>{this.cello.openCelloDialog();},this.tagline="You Get 20, They Get 20.";}ngOnInit(){return C(this,null,function*(){yield this.updateUserApi(),this.affiliateRegistrationSuccessSubscription=this.profileDataHelperService.affiliateRegistrationSuccess$.subscribe(e=>{e?this.isAffiliate=!0:this.openCelloDialog();});});}ngOnDestroy(){this.affiliateRegistrationSuccessSubscription&&this.affiliateRegistrationSuccessSubscription.unsubscribe();}updateUserApi(){return C(this,null,function*(){try{this.userData=yield this.userHelperService.getUserDetails(),this.userData&&(this.isAffiliate=this.userData.isAffiliate);}catch(e){console.error(e);}});}static{this.ɵfac=function(t){return new(t||n)(x(he),x(lt),x(ki));};}static{this.ɵcmp=P({type:n,selectors:[["affiliation"]],standalone:!0,features:[M],decls:2,vars:1,consts:[[1,"affiliation-component-container"],[4,"ngIf"]],template:function(t,i){t&1&&(o(0,"div",0),b(1,Fs,1,0,"affiliation-dashboard",1),r()),t&2&&(l(),c("ngIf",i.isAffiliate));},dependencies:[N,br],styles:[".affiliation-component-container[_ngcontent-%COMP%] .affiliation-tagline[_ngcontent-%COMP%]{color:#00abfe;font-size:32px;font-weight:800;line-height:1}@media only screen and (max-width: 1023px){.affiliation-component-container[_ngcontent-%COMP%] .affiliation-tagline[_ngcontent-%COMP%]{font-size:26px}}@media only screen and (max-width: 767px){.affiliation-component-container[_ngcontent-%COMP%]{margin-top:20px}.affiliation-component-container[_ngcontent-%COMP%] .affiliation-tagline[_ngcontent-%COMP%]{font-size:24px;text-align:center}}",".profile-common-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.profile-common-sub-container[_ngcontent-%COMP%]{background-color:#fff;border-radius:10px;padding:18px;width:100%;margin:0 0 18px}.profile-common-title[_ngcontent-%COMP%]{font-size:18px;line-height:24px;font-family:Inter-Bold;color:#253658;display:flex;align-items:center;gap:5px}hr.profile-common-hr[_ngcontent-%COMP%]{margin:18px 0}.profile-common-paragraph[_ngcontent-%COMP%]{font-size:14px;color:#7b8db1}.profile-common-sub-title[_ngcontent-%COMP%]{margin-bottom:12px;color:#000;line-height:24px;font-size:15px;font-weight:600;text-transform:capitalize;display:flex;align-items:center;gap:5px}.profile-big-sub-title[_ngcontent-%COMP%]{font-size:28px;font-family:Inter-Bold;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#253658;margin-bottom:8px}
13.content-separator[_ngcontent-%COMP%]{height:1px;background-color:#7b8db14d;margin:18px 0}.profile-sub-header[_ngcontent-%COMP%]{font-size:14px;color:#25365899;max-width:380px}.profile-details-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;height:36px}.profile-buttons-container[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px}.profile-details-cancel-button[_ngcontent-%COMP%], .profile-details-save-button[_ngcontent-%COMP%]{width:90px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px}.profile-details-cancel-button[_ngcontent-%COMP%]:hover, .profile-details-save-button[_ngcontent-%COMP%]:hover{opacity:.8}.profile-details-cancel-button[_ngcontent-%COMP%]{background:#7b8db114;color:#7b8db1;margin:0 12px 0 auto}.profile-details-save-button[_ngcontent-%COMP%]{background:#00abfe;color:#fff}.profile-details-preview[_ngcontent-%COMP%]{padding:0 22px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px;border:1px solid #00abfe;color:#00abfe;background:#fff}.disabled-button[_ngcontent-%COMP%]{background:gray!important;color:#d3d3d3!important}.disabled-button[_ngcontent-%COMP%]:hover{opacity:1} autocomplete-menu .autocomplete-menu-container{border-radius:10px;background-color:#7b8db114;padding:5px 12px;height:46px;cursor:text} autocomplete-menu .autocomplete-menu-container input{color:#253658;font-size:14px} autocomplete-menu .autocomplete-menu-container .mat-form-field-label-wrapper label mat-label{color:#00abfe!important;font-weight:700} autocomplete-menu .autocomplete-menu-container .mdc-line-ripple{display:none!important}.billing-plan-details-title[_ngcontent-%COMP%]{color:#888;font-size:12px;font-weight:400;text-transform:capitalize}.billing-plan-details-sub-title[_ngcontent-%COMP%]{color:#000;font-size:13px;font-weight:700;text-transform:capitalize}"]});}}return n;})();I();F();dn();mn();F();cn();we();bi();I();cn();F();te();I();ft();F();function Bs(n,m){if(n&1){let e=y();o(0,"lib-button",15),u("clicked",function(){f(e);let i=p(2);return h(i.onAddSeatsClick());}),s(1,"Add seats"),r();}}function Rs(n,m){if(n&1){let e=y();o(0,"div",12),b(1,Bs,2,0,"lib-button",13),o(2,"lib-button",14),u("clicked",function(){f(e);let i=p();return h(i.onUpgradeClick());}),s(3,"Upgrade"),r()();}if(n&2){let e=p();l(),c("ngIf",e.isStripe);}}function Ls(n,m){if(n&1&&(o(0,"lib-badge",16),s(1),r()),n&2){let e=p();l(),E(e.billingPeriod);}}var yr=(()=>{class n{constructor(e){this.planHelperService=e,this.isStripe=!1,this.emitAddSeats=new q(),this.emitUpgrade=new q(),this.initPlanValues=t=>{this.planName=this.planHelperService.getPlanDisplayNameNoPeriod(t),this.billingPeriod=this.planHelperService.getPlanNamePeriodOnly(t),this.totalSeats=t.features.maxUsers,this.activeSeats=t.features.maxUsers-(t.remained?.users??0),this.showActions=t.authority!==vt.APPSUMO;},this.onAddSeatsClick=()=>{this.emitAddSeats.emit();},this.onUpgradeClick=()=>{this.emitUpgrade.emit();};}ngOnChanges(e){let{plan:t}=e;t&&t.currentValue&&this.initPlanValues(t.currentValue);}static{this.ɵfac=function(t){return new(t||n)(x(ve));};}static{this.ɵcmp=P({type:n,selectors:[["app-billing-plan-overview"]],inputs:{plan:"plan",isStripe:"isStripe"},outputs:{emitAddSeats:"emitAddSeats",emitUpgrade:"emitUpgrade"},standalone:!0,features:[dt,M],decls:27,vars:5,consts:[[1,"plan-section"],[1,"plan-header"],[1,"profile-common-title"],["class","plan-header-actions",4,"ngIf"],[1,"plan-details-row"],[1,"plan-detail-column"],[1,"plan-detail-label"],[1,"plan-detail-value"],["color","primary","size","small",4,"ngIf"],[1,"plan-seats-info"],[1,"plan-seats-item"],[1,"plan-seats-separator"],[1,"plan-header-actions"],["variant","secondary","size","sm",3,"clicked",4,"ngIf"],["variant","primary","size","sm",3,"clicked"],["variant","secondary","size","sm",3,"clicked"],["color","primary","size","small"]],template:function(t,i){t&1&&(o(0,"div",0)(1,"div",1)(2,"div",2),s(3,"Plan"),r(),b(4,Rs,4,1,"div",3),r(),o(5,"div",4)(6,"div",5)(7,"div",6),s(8,"Current plan"),r(),o(9,"div",7)(10,"span"),s(11),r(),b(12,Ls,2,1,"lib-badge",8),r()(),o(13,"div",5)(14,"div",6),s(15,"Seats"),r(),o(16,"div",9)(17,"span",10),s(18,"Available: "),o(19,"strong"),s(20),r()(),o(21,"span",11),s(22,"\xB7"),r(),o(23,"span",10),s(24,"Active: "),o(25,"strong"),s(26),r()()()()()()),t&2&&(l(4),c("ngIf",i.showActions),l(7),E(i.planName),l(),c("ngIf",i.billingPeriod),l(8),E(i.totalSeats),l(6),E(i.activeSeats));},dependencies:[U,N,B,ut],styles:[".plan-section[_ngcontent-%COMP%]{width:100%}.plan-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.plan-header-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}
13.plan-details-row[_ngcontent-%COMP%]{display:flex;gap:48px;flex-wrap:wrap}.plan-detail-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px;min-width:160px}.plan-detail-label[_ngcontent-%COMP%]{font-size:12px;font-weight:400;color:#4b5563}.plan-detail-value[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:#253658}.plan-seats-info[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.plan-seats-item[_ngcontent-%COMP%]{font-size:14px;color:#253658}.plan-seats-item[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-weight:600}.plan-seats-separator[_ngcontent-%COMP%]{font-size:14px;color:#4b5563}@media screen and (max-width: 600px){.plan-details-row[_ngcontent-%COMP%]{flex-direction:column;gap:16px}.plan-header[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:12px}}","[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}.profile-component-container[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;align-items:stretch;padding:32px 64px 0;box-sizing:border-box;height:calc(100vh - 56px);overflow:hidden}.profile-navigation-sidebar[_ngcontent-%COMP%]{width:280px;flex-shrink:0;margin-right:40px;align-self:flex-start}.tabs-menu-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.tabs-menu-container[_ngcontent-%COMP%] lib-submenu-item[_ngcontent-%COMP%]{cursor:pointer}.profile-content-container[_ngcontent-%COMP%]{width:1000px;position:relative;min-height:0;height:100%;overflow-y:auto;padding-bottom:84px;scrollbar-width:none;-ms-overflow-style:none}.profile-content-container[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.profile-content-container[_ngcontent-%COMP%] .referral-loading-overlay[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#ffffffb3;z-index:10;border-radius:10px}.profile-content-container[_ngcontent-%COMP%] .referral-spinner[_ngcontent-%COMP%]{width:40px;height:40px;border:3px solid rgba(68,129,253,.2);border-top-color:#4481fd;border-radius:50%;animation:_ngcontent-%COMP%_spin .8s linear infinite}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}@media only screen and (max-width: 1023px){.profile-navigation-sidebar[_ngcontent-%COMP%]{width:30%;margin-right:40px}.profile-content-container[_ngcontent-%COMP%]{width:75%}}@media only screen and (max-width: 767px){.profile-component-container[_ngcontent-%COMP%]{flex-direction:column;padding:30px 16px 84px;overflow-y:auto}.profile-navigation-sidebar[_ngcontent-%COMP%]{width:100%;margin-bottom:40px;margin-right:0;position:static}.profile-content-container[_ngcontent-%COMP%]{width:100%;height:auto;overflow:visible;padding-bottom:0}}",".profile-common-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.profile-common-sub-container[_ngcontent-%COMP%]{background-color:#fff;border-radius:10px;padding:18px;width:100%;margin:0 0 18px}.profile-common-title[_ngcontent-%COMP%]{font-size:18px;line-height:24px;font-family:Inter-Bold;color:#253658;display:flex;align-items:center;gap:5px}hr.profile-common-hr[_ngcontent-%COMP%]{margin:18px 0}.profile-common-paragraph[_ngcontent-%COMP%]{font-size:14px;color:#7b8db1}.profile-common-sub-title[_ngcontent-%COMP%]{margin-bottom:12px;color:#000;line-height:24px;font-size:15px;font-weight:600;text-transform:capitalize;display:flex;align-items:center;gap:5px}.profile-big-sub-title[_ngcontent-%COMP%]{font-size:28px;font-family:Inter-Bold;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#253658;margin-bottom:8px}
13.content-separator[_ngcontent-%COMP%]{height:1px;background-color:#7b8db14d;margin:18px 0}.profile-sub-header[_ngcontent-%COMP%]{font-size:14px;color:#25365899;max-width:380px}.profile-details-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;height:36px}.profile-buttons-container[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px}.profile-details-cancel-button[_ngcontent-%COMP%], .profile-details-save-button[_ngcontent-%COMP%]{width:90px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px}.profile-details-cancel-button[_ngcontent-%COMP%]:hover, .profile-details-save-button[_ngcontent-%COMP%]:hover{opacity:.8}.profile-details-cancel-button[_ngcontent-%COMP%]{background:#7b8db114;color:#7b8db1;margin:0 12px 0 auto}.profile-details-save-button[_ngcontent-%COMP%]{background:#00abfe;color:#fff}.profile-details-preview[_ngcontent-%COMP%]{padding:0 22px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px;border:1px solid #00abfe;color:#00abfe;background:#fff}.disabled-button[_ngcontent-%COMP%]{background:gray!important;color:#d3d3d3!important}.disabled-button[_ngcontent-%COMP%]:hover{opacity:1} autocomplete-menu .autocomplete-menu-container{border-radius:10px;background-color:#7b8db114;padding:5px 12px;height:46px;cursor:text} autocomplete-menu .autocomplete-menu-container input{color:#253658;font-size:14px} autocomplete-menu .autocomplete-menu-container .mat-form-field-label-wrapper label mat-label{color:#00abfe!important;font-weight:700} autocomplete-menu .autocomplete-menu-container .mdc-line-ripple{display:none!important}.billing-plan-details-title[_ngcontent-%COMP%]{color:#888;font-size:12px;font-weight:400;text-transform:capitalize}.billing-plan-details-sub-title[_ngcontent-%COMP%]{color:#000;font-size:13px;font-weight:700;text-transform:capitalize}"]});}}return n;})();I();F();te();I();var wr=(()=>{class n{constructor(){this.emitUnsubscribe=new q(),this.onCancelClick=()=>{this.emitUnsubscribe.emit();};}static{this.ɵfac=function(t){return new(t||n)();};}static{this.ɵcmp=P({type:n,selectors:[["app-billing-invoice"]],outputs:{emitUnsubscribe:"emitUnsubscribe"},standalone:!0,features:[M],decls:8,vars:1,consts:[[1,"manage-subscription-section"],[1,"profile-common-title"],[1,"manage-subscription-content"],[1,"cancel-warning-text"],["variant","secondary","size","md",3,"clicked","destructive"]],template:function(t,i){t&1&&(o(0,"div",0)(1,"div",1),s(2,"Manage Subscription"),r(),o(3,"div",2)(4,"p",3),s(5," You can cancel your subscription at any time. You'll keep access to premium features until your current billing period ends. Please note that this action can't be undone. "),r(),o(6,"lib-button",4),u("clicked",function(){return i.onCancelClick();}),s(7," Cancel subscription "),r()()()),t&2&&(l(6),c("destructive",!0));},dependencies:[U,B],styles:[".manage-subscription-section[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;gap:24px}.manage-subscription-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:24px}.cancel-warning-text[_ngcontent-%COMP%]{font-size:14px;color:#253658;margin:0;line-height:1.4;letter-spacing:-.14px}","[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}.profile-component-container[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;align-items:stretch;padding:32px 64px 0;box-sizing:border-box;height:calc(100vh - 56px);overflow:hidden}.profile-navigation-sidebar[_ngcontent-%COMP%]{width:280px;flex-shrink:0;margin-right:40px;align-self:flex-start}.tabs-menu-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.tabs-menu-container[_ngcontent-%COMP%] lib-submenu-item[_ngcontent-%COMP%]{cursor:pointer}.profile-content-container[_ngcontent-%COMP%]{width:1000px;position:relative;min-height:0;height:100%;overflow-y:auto;padding-bottom:84px;scrollbar-width:none;-ms-overflow-style:none}.profile-content-container[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.profile-content-container[_ngcontent-%COMP%] .referral-loading-overlay[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#ffffffb3;z-index:10;border-radius:10px}.profile-content-container[_ngcontent-%COMP%] .referral-spinner[_ngcontent-%COMP%]{width:40px;height:40px;border:3px solid rgba(68,129,253,.2);border-top-color:#4481fd;border-radius:50%;animation:_ngcontent-%COMP%_spin .8s linear infinite}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}@media only screen and (max-width: 1023px){.profile-navigation-sidebar[_ngcontent-%COMP%]{width:30%;margin-right:40px}.profile-content-container[_ngcontent-%COMP%]{width:75%}}@media only screen and (max-width: 767px){.profile-component-container[_ngcontent-%COMP%]{flex-direction:column;padding:30px 16px 84px;overflow-y:auto}.profile-navigation-sidebar[_ngcontent-%COMP%]{width:100%;margin-bottom:40px;margin-right:0;position:static}.profile-content-container[_ngcontent-%COMP%]{width:100%;height:auto;overflow:visible;padding-bottom:0}}",".profile-common-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.profile-common-sub-container[_ngcontent-%COMP%]{background-color:#fff;border-radius:10px;padding:18px;width:100%;margin:0 0 18px}.profile-common-title[_ngcontent-%COMP%]{font-size:18px;line-height:24px;font-family:Inter-Bold;color:#253658;display:flex;align-items:center;gap:5px}hr.profile-common-hr[_ngcontent-%COMP%]{margin:18px 0}.profile-common-paragraph[_ngcontent-%COMP%]{font-size:14px;color:#7b8db1}.profile-common-sub-title[_ngcontent-%COMP%]{margin-bottom:12px;color:#000;line-height:24px;font-size:15px;font-weight:600;text-transform:capitalize;display:flex;align-items:center;gap:5px}.profile-big-sub-title[_ngcontent-%COMP%]{font-size:28px;font-family:Inter-Bold;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#253658;margin-bottom:8px}
13.content-separator[_ngcontent-%COMP%]{height:1px;background-color:#7b8db14d;margin:18px 0}.profile-sub-header[_ngcontent-%COMP%]{font-size:14px;color:#25365899;max-width:380px}.profile-details-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;height:36px}.profile-buttons-container[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px}.profile-details-cancel-button[_ngcontent-%COMP%], .profile-details-save-button[_ngcontent-%COMP%]{width:90px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px}.profile-details-cancel-button[_ngcontent-%COMP%]:hover, .profile-details-save-button[_ngcontent-%COMP%]:hover{opacity:.8}.profile-details-cancel-button[_ngcontent-%COMP%]{background:#7b8db114;color:#7b8db1;margin:0 12px 0 auto}.profile-details-save-button[_ngcontent-%COMP%]{background:#00abfe;color:#fff}.profile-details-preview[_ngcontent-%COMP%]{padding:0 22px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px;border:1px solid #00abfe;color:#00abfe;background:#fff}.disabled-button[_ngcontent-%COMP%]{background:gray!important;color:#d3d3d3!important}.disabled-button[_ngcontent-%COMP%]:hover{opacity:1} autocomplete-menu .autocomplete-menu-container{border-radius:10px;background-color:#7b8db114;padding:5px 12px;height:46px;cursor:text} autocomplete-menu .autocomplete-menu-container input{color:#253658;font-size:14px} autocomplete-menu .autocomplete-menu-container .mat-form-field-label-wrapper label mat-label{color:#00abfe!important;font-weight:700} autocomplete-menu .autocomplete-menu-container .mdc-line-ripple{display:none!important}.billing-plan-details-title[_ngcontent-%COMP%]{color:#888;font-size:12px;font-weight:400;text-transform:capitalize}.billing-plan-details-sub-title[_ngcontent-%COMP%]{color:#000;font-size:13px;font-weight:700;text-transform:capitalize}"]});}}return n;})();I();F();ln();te();I();at();var Sr=(()=>{class n{constructor(e){this.userHelperService=e,this.emitOpenBillingDetails=new q(),this.emitOpenPaymentMethod=new q(),this.onBillingDetailsClick=()=>{this.emitOpenBillingDetails.emit();},this.onPaymentMethodClick=()=>{this.emitOpenPaymentMethod.emit();},this.countriesMenuOptions=gi();}ngOnInit(){this.userDataSub=this.userHelperService.userData$.subscribe(e=>{e&&(this.displayCompany=e.company||"-");});}ngOnDestroy(){this.userDataSub?.unsubscribe();}ngOnChanges(e){let{plan:t}=e;t&&t.currentValue&&this.computeDisplayValues(t.currentValue);}computeDisplayValues(e){let t=e.billingDetails;this.displayEmail=e.billingEmail||"-",this.displayCompany=this.userHelperService.userData?.company||"-",this.displayTaxId=t?.taxId||"-",this.displayName=t?.name||"-";let i=[];if(t?.address&&i.push(t.address),t?.city&&i.push(t.city),t?.state&&i.push(t.state),t?.postalCode&&i.push(t.postalCode),t?.country){let a=Ei(t.country,this.countriesMenuOptions,"",t.country);i.push(a);}this.displayAddress=i.length>0?i.join(", "):"-";}static{this.ɵfac=function(t){return new(t||n)(x(he));};}static{this.ɵcmp=P({type:n,selectors:[["app-billing-invoice-details"]],inputs:{plan:"plan"},outputs:{emitOpenBillingDetails:"emitOpenBillingDetails",emitOpenPaymentMethod:"emitOpenPaymentMethod"},standalone:!0,features:[dt,M],decls:36,vars:5,consts:[[1,"billing-info-section"],[1,"billing-info-header"],[1,"profile-common-title"],[1,"billing-info-actions"],["variant","secondary","size","sm",3,"clicked"],[1,"profile-common-hr"],[1,"billing-info-grid"],[1,"billing-info-item"],[1,"billing-info-label"],[1,"billing-info-value"]],template:function(t,i){t&1&&(o(0,"div",0)(1,"div",1)(2,"div",2),s(3,"Billing information"),r(),o(4,"div",3)(5,"lib-button",4),u("clicked",function(){return i.onBillingDetailsClick();}),s(6,"Billing details"),r(),o(7,"lib-button",4),u("clicked",function(){return i.onPaymentMethodClick();}),s(8,"Payment method"),r()()(),g(9,"hr",5),o(10,"div",6)(11,"div",7)(12,"div",8),s(13,"Name"),r(),o(14,"div",9),s(15),r()(),o(16,"div",7)(17,"div",8),s(18,"Email for invoices"),r(),o(19,"div",9),s(20),r()(),o(21,"div",7)(22,"div",8),s(23,"Address"),r(),o(24,"div",9),s(25),r()(),o(26,"div",7)(27,"div",8),s(28,"Company"),r(),o(29,"div",9),s(30),r()(),o(31,"div",7)(32,"div",8),s(33,"Tax ID (EIN)"),r(),o(34,"div",9),s(35),r()()()()),t&2&&(l(15),E(i.displayName),l(5),E(i.displayEmail),l(5),E(i.displayAddress),l(5),E(i.displayCompany),l(5),E(i.displayTaxId));},dependencies:[U,B],styles:[".billing-info-section[_ngcontent-%COMP%]{width:100%}.billing-info-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.billing-info-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.billing-info-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:20px 48px}.billing-info-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.billing-info-label[_ngcontent-%COMP%]{font-size:12px;font-weight:400;color:#4b5563}.billing-info-value[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#253658;word-break:break-word}@media screen and (max-width: 600px){.billing-info-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}.billing-info-header[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:12px}}","[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}.profile-component-container[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;align-items:stretch;padding:32px 64px 0;box-sizing:border-box;height:calc(100vh - 56px);overflow:hidden}.profile-navigation-sidebar[_ngcontent-%COMP%]{width:280px;flex-shrink:0;margin-right:40px;align-self:flex-start}.tabs-menu-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.tabs-menu-container[_ngcontent-%COMP%] lib-submenu-item[_ngcontent-%COMP%]{cursor:pointer}.profile-content-container[_ngcontent-%COMP%]{width:1000px;position:relative;min-height:0;height:100%;overflow-y:auto;padding-bottom:84px;scrollbar-width:none;-ms-overflow-style:none}.profile-content-container[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.profile-content-container[_ngcontent-%COMP%] .referral-loading-overlay[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#ffffffb3;z-index:10;border-radius:10px}.profile-content-container[_ngcontent-%COMP%] .referral-spinner[_ngcontent-%COMP%]{width:40px;height:40px;border:3px solid rgba(68,129,253,.2);border-top-color:#4481fd;border-radius:50%;animation:_ngcontent-%COMP%_spin .8s linear infinite}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}@media only screen and (max-width: 1023px){.profile-navigation-sidebar[_ngcontent-%COMP%]{width:30%;margin-right:40px}.profile-content-container[_ngcontent-%COMP%]{width:75%}}@media only screen and (max-width: 767px){.profile-component-container[_ngcontent-%COMP%]{flex-direction:column;padding:30px 16px 84px;overflow-y:auto}.profile-navigation-sidebar[_ngcontent-%COMP%]{width:100%;margin-bottom:40px;margin-right:0;position:static}.profile-content-container[_ngcontent-%COMP%]{width:100%;height:auto;overflow:visible;padding-bottom:0}}",".profile-common-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.profile-common-sub-container[_ngcontent-%COMP%]{background-color:#fff;border-radius:10px;padding:18px;width:100%;margin:0 0 18px}.profile-common-title[_ngcontent-%COMP%]{font-size:18px;line-height:24px;font-family:Inter-Bold;color:#253658;display:flex;align-items:center;gap:5px}hr.profile-common-hr[_ngcontent-%COMP%]{margin:18px 0}.profile-common-paragraph[_ngcontent-%COMP%]{font-size:14px;color:#7b8db1}.profile-common-sub-title[_ngcontent-%COMP%]{margin-bottom:12px;color:#000;line-height:24px;font-size:15px;font-weight:600;text-transform:capitalize;display:flex;align-items:center;gap:5px}.profile-big-sub-title[_ngcontent-%COMP%]{font-size:28px;font-family:Inter-Bold;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#253658;margin-bottom:8px}
13.content-separator[_ngcontent-%COMP%]{height:1px;background-color:#7b8db14d;margin:18px 0}.profile-sub-header[_ngcontent-%COMP%]{font-size:14px;color:#25365899;max-width:380px}.profile-details-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;height:36px}.profile-buttons-container[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px}.profile-details-cancel-button[_ngcontent-%COMP%], .profile-details-save-button[_ngcontent-%COMP%]{width:90px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px}.profile-details-cancel-button[_ngcontent-%COMP%]:hover, .profile-details-save-button[_ngcontent-%COMP%]:hover{opacity:.8}.profile-details-cancel-button[_ngcontent-%COMP%]{background:#7b8db114;color:#7b8db1;margin:0 12px 0 auto}.profile-details-save-button[_ngcontent-%COMP%]{background:#00abfe;color:#fff}.profile-details-preview[_ngcontent-%COMP%]{padding:0 22px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px;border:1px solid #00abfe;color:#00abfe;background:#fff}.disabled-button[_ngcontent-%COMP%]{background:gray!important;color:#d3d3d3!important}.disabled-button[_ngcontent-%COMP%]:hover{opacity:1} autocomplete-menu .autocomplete-menu-container{border-radius:10px;background-color:#7b8db114;padding:5px 12px;height:46px;cursor:text} autocomplete-menu .autocomplete-menu-container input{color:#253658;font-size:14px} autocomplete-menu .autocomplete-menu-container .mat-form-field-label-wrapper label mat-label{color:#00abfe!important;font-weight:700} autocomplete-menu .autocomplete-menu-container .mdc-line-ripple{display:none!important}.billing-plan-details-title[_ngcontent-%COMP%]{color:#888;font-size:12px;font-weight:400;text-transform:capitalize}.billing-plan-details-sub-title[_ngcontent-%COMP%]{color:#000;font-size:13px;font-weight:700;text-transform:capitalize}"]});}}return n;})();We();F();rt();qe();te();I();be();Oe();ye();F();function Ns(n,m){if(n&1&&(R(0),o(1,"div",10)(2,"p"),s(3),r(),o(4,"ul",11)(5,"li"),s(6,"Watermark on videos"),r(),o(7,"li"),s(8,"Cloud videos deleted after 30 days"),r(),o(9,"li"),s(10,"Video Pages & embeds disabled after 30 days"),r()(),o(11,"p",12),s(12,"You can resubscribe anytime, but existing content may not be recoverable."),r()(),L()),n&2){let e=p();l(3),A("If you cancel, you'll keep access until ",e.data.expiration,". After that:");}}function Us(n,m){if(n&1){let e=y();R(0),o(1,"lib-textarea",13),u("valueChange",function(i){f(e);let a=p();return h(a.cancelReason=i);}),r(),L();}if(n&2){let e=p();l(),c("label",!1)("placeholder","Type a reason")("aiButton",!1)("required",!1)("value",e.cancelReason);}}function js(n,m){if(n&1){let e=y();R(0),o(1,"p",10),s(2),r(),o(3,"lib-textarea",14),u("valueChange",function(i){f(e);let a=p();return h(a.improvementSuggestion=i);}),r(),L();}if(n&2){let e=p();l(2),Rn(" You'll keep ",e.data.planDisplayName," access until ",e.data.expiration,". After that, ",e.data.planDisplayName," features will be disabled. "),l(),c("height","90px")("label",!0)("labelText","What's the one thing we should improve first?")("placeholder","Type your suggestion...")("aiButton",!1)("required",!1)("value",e.improvementSuggestion);}}function Hs(n,m){if(n&1){let e=y();R(0),o(1,"lib-button",15),u("clicked",function(){f(e);let i=p();return h(i.onKeepPlanClick());}),s(2),r(),o(3,"lib-button",15),u("clicked",function(){f(e);let i=p();return h(i.onCancelSubscriptionClick());}),s(4," Cancel subscription "),r(),L();}if(n&2){let e=p();l(),c("variant","tertiary"),l(),A(" Keep ",e.data.planDisplayName," Plan "),l(),c("variant","ghost");}}function qs(n,m){if(n&1){let e=y();R(0),o(1,"lib-button",15),u("clicked",function(){f(e);let i=p();return h(i.onKeepPlanClick());}),s(2),r(),o(3,"lib-button",16),u("clicked",function(){f(e);let i=p();return h(i.onContinueClick());}),s(4," Continue "),r(),L();}if(n&2){let e=p();l(),c("variant","tertiary"),l(),A(" Keep ",e.data.planDisplayName," Plan "),l(),c("variant","ghost")("disabled",!e.canProceedFromReason)("loading",e.isSubmitting);}}function Ws(n,m){if(n&1){let e=y();R(0),o(1,"lib-button",15),u("clicked",function(){f(e);let i=p();return h(i.onBookCoachingClick());}),s(2," Book Free Coaching "),r(),o(3,"lib-button",15),u("clicked",function(){f(e);let i=p();return h(i.onDoneClick());}),s(4," Done "),r(),L();}n&2&&(l(),c("variant","tertiary"),l(2),c("variant","ghost"));}var Wi=class extends de{},wt=function(n){return n.CONFIRMATION="confirmation",n.REASON="reason",n.CANCELED="canceled",n;}(wt||{}),Pr=(()=>{class n extends me{constructor(e,t,i,a){super(e),this.data=e,this.eventsService=t,this.requestsService=i,this.notifier=a,this.currentStep=wt.CONFIRMATION,this.cancelReason="",this.improvementSuggestion="",this.isSubmitting=!1,this.COACHING_LINK=Vi.CANCEL_COACHING,this.PROFILE_CANCEL=this.eventsService.events.profile.profileCancelSubscription,this.onCancelSubscriptionClick=()=>{this.eventsService.log(this.eventsService.events.billing.billingInvoiceCancelWarningClick,{button:"proceed"}),this.eventsService.log(this.PROFILE_CANCEL,{page:"start",button:"cancel"}),this.currentStep=wt.REASON;},this.onContinueClick=()=>C(this,null,function*(){if(!(!this.canProceedFromReason||this.isSubmitting)){this.isSubmitting=!0;try{yield this.requestsService.unsubscribePlan(),this.eventsService.log(this.eventsService.events.billing.billingInvoiceCancelReasonClick,{button:"proceed",freeText:this.cancelReason}),this.eventsService.log(this.PROFILE_CANCEL,{page:"reason",button:"continue",userMsg:this.cancelReason}),this.eventsService.log(this.eventsService.events.profile.profileProcessEnd,{process:"cancel-subscription"}),this.currentStep=wt.CANCELED,this.data.onSubmit();}catch(d){console.error(d),this.notifier.error("Something went wrong. Please try again.");}finally{this.isSubmitting=!1;}}}),this.onKeepPlanClick=()=>{this.isConfirmationStep?(this.eventsService.log(this.eventsService.events.billing.billingInvoiceCancelWarningClick,{button:"back"}),this.eventsService.log(this.PROFILE_CANCEL,{page:"start",button:"keep"})):this.isReasonStep&&(this.eventsService.log(this.eventsService.events.billing.billingInvoiceCancelReasonClick,{button:"back",freeText:this.cancelReason}),this.eventsService.log(this.PROFILE_CANCEL,{page:"reason",button:"keep",userMsg:this.cancelReason})),this.data.onClose();},this.onCloseClick=()=>{this.isConfirmationStep?this.eventsService.log(this.eventsService.events.billing.billingInvoiceCancelWarningClick,{button:"cancel"}):this.isReasonStep?this.eventsService.log(this.eventsService.events.billing.billingInvoiceCancelReasonClick,{button:"cancel",freeText:this.cancelReason}):(this.eventsService.log(this.eventsService.events.billing.billingInvoiceCancelPostClick,{button:"dism
13iss",planTier:this.data.planTier,planDuration:this.data.planDuration,freeText:this.improvementSuggestion}),this.showCancelSuccessToast()),this.data.onClose();},this.onBookCoachingClick=()=>{this.eventsService.log(this.eventsService.events.billing.billingInvoiceCancelPostClick,{button:"coach",planTier:this.data.planTier,planDuration:this.data.planDuration,freeText:this.improvementSuggestion}),this.eventsService.log(this.PROFILE_CANCEL,{page:"suggestions",button:"book-call",userMsg:this.improvementSuggestion}),window.open(this.COACHING_LINK,"_blank");},this.onDoneClick=()=>{this.eventsService.log(this.eventsService.events.billing.billingInvoiceCancelPostClick,{button:"done",planTier:this.data.planTier,planDuration:this.data.planDuration,freeText:this.improvementSuggestion}),this.eventsService.log(this.PROFILE_CANCEL,{page:"suggestions",button:"done",userMsg:this.improvementSuggestion}),this.showCancelSuccessToast(),this.data.onClose();};}ngOnInit(){this.eventsService.log(this.eventsService.events.billing.billingInvoiceCancelStart),this.eventsService.log(this.eventsService.events.profile.profileProcessStart,{process:"cancel-subscription"});}get stepTitle(){return this.isReasonStep?"What made you cancel your subscription?":this.isCanceledStep?"Your subscription has been canceled":"Cancel your subscription?";}get isConfirmationStep(){return this.currentStep===wt.CONFIRMATION;}get isReasonStep(){return this.currentStep===wt.REASON;}get isCanceledStep(){return this.currentStep===wt.CANCELED;}get canProceedFromReason(){return this.cancelReason.trim().length>0;}showCancelSuccessToast(){this.notifier.success(`Your plan has been canceled. You can keep using ${this.data.planDisplayName} until ${this.data.expiration}.`);}static{this.ɵfac=function(t){return new(t||n)(x(fe),x(Y),x(ie),x(ee));};}static{this.ɵcmp=P({type:n,selectors:[["app-unsubscribe-dialog"]],standalone:!0,features:[W,M],decls:15,vars:8,consts:[["size","lg","layout","side-panel","footerLayout","stacked",3,"closed","title","showCloseButton"],["modal-body",""],[4,"ngIf"],["modal-footer",""],["modal-side-panel",""],[1,"illustration-content"],[1,"photo-frame"],["src","img/billing/cancel-photo.webp","alt","",1,"person-photo"],[1,"logo-circle"],["src","img/billing/cancel-logo.svg","alt","BIGVU",1,"logo-img"],[1,"dialog-description"],[1,"consequences-list"],[1,"resubscribe-note"],[3,"valueChange","label","placeholder","aiButton","required","value"],[1,"improvement-textarea",3,"valueChange","height","label","labelText","placeholder","aiButton","required","value"],[3,"clicked","variant"],[3,"clicked","variant","disabled","loading"]],template:function(t,i){t&1&&(o(0,"lib-modal",0),u("closed",function(){return i.onCloseClick();}),o(1,"div",1),b(2,Ns,13,1,"ng-container",2)(3,Us,2,5,"ng-container",2)(4,js,4,10,"ng-container",2),r(),o(5,"div",3),b(6,Hs,5,3,"ng-container",2)(7,qs,5,5,"ng-container",2)(8,Ws,5,2,"ng-container",2),r(),o(9,"div",4)(10,"div",5)(11,"div",6),g(12,"img",7),r(),o(13,"div",8),g(14,"img",9),r()()()()),t&2&&(c("title",i.stepTitle)("showCloseButton",!0),l(2),c("ngIf",i.isConfirmationStep),l(),c("ngIf",i.isReasonStep),l(),c("ngIf",i.isCanceledStep),l(2),c("ngIf",i.isConfirmationStep),l(),c("ngIf",i.isReasonStep),l(),c("ngIf",i.isCanceledStep));},dependencies:[U,N,B,fi,pe],styles:['.modal-side-panel{background:linear-gradient(-63.43deg,#f8f5ff 15.23%,#eff5ff 65.31%)!important} .modal-side-panel:before, .modal-side-panel:after{content:"";position:absolute;border-radius:50%;opacity:.5} .modal-side-panel:before{width:183px;height:183px;background:radial-gradient(circle,rgba(220,210,255,.6) 0%,transparent 70%);right:-40px;bottom:-40px} .modal-side-panel:after{width:183px;height:183px;background:radial-gradient(circle,rgba(210,225,255,.6) 0%,transparent 70%);left:-30px;top:-20px}.dialog-description[_ngcontent-%COMP%]{font-size:14px;color:#4b5563;letter-spacing:-.14px;line-height:1.4;margin:0}.dialog-description[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 8px}.consequences-list[_ngcontent-%COMP%]{margin:8px 0;padding-left:20px!important;list-style-type:disc!important}.consequences-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{font-size:14px;color:#4b5563;line-height:1.4}.resubscribe-note[_ngcontent-%COMP%]{color:#4b5563;font-size:14px}.improvement-textarea[_ngcontent-%COMP%]{flex:0 0 auto}.illustration-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;padding:20px;position:relative}.photo-frame[_ngcontent-%COMP%]{border:7px solid #FFFFFF;border-radius:21px;box-shadow:3.5px 3.5px 21px #100c3229;transform:rotate(-2.72deg);overflow:hidden;width:157px;height:166px;background:linear-gradient(-52.5deg,#f8f5ff 15.23%,#eff5ff 65.31%)}.person-photo[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;display:block}
13.logo-circle[_ngcontent-%COMP%]{width:75px;height:75px;border-radius:46px;background:#c1c1c11a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 16px 28px #00000026;transform:rotate(9.56deg);display:flex;align-items:center;justify-content:center;position:absolute;left:11px;top:190px}.logo-img[_ngcontent-%COMP%]{width:45px;height:32px} .modal-footer lib-button button{width:100%}']});}}return n;})();F();Be();rt();We();qe();ln();te();I();Be();Oe();ft();ye();be();at();F();function Gs(n,m){if(n&1){let e=y();o(0,"div",3)(1,"div",4)(2,"lib-input",22),Z("valueChange",function(i){f(e);let a=p(2);return J(a.taxID.value,i)||(a.taxID.value=i),h(i);}),u("valueChange",function(i){f(e);let a=p(2);return a.taxID.setValue(i),h(a.taxID.markAsDirty());}),r()()();}if(n&2){let e=p(2);l(2),c("label",!0)("required",!1)("placeholder",e.taxIdPlaceholder),X("value",e.taxID.value);}}function Ys(n,m){if(n&1){let e=y();R(0),o(1,"div",3)(2,"div",4)(3,"lib-input",18),Z("valueChange",function(i){f(e);let a=p();return J(a.city.value,i)||(a.city.value=i),h(i);}),u("valueChange",function(i){f(e);let a=p();return a.city.setValue(i),h(a.city.markAsDirty());}),r()()(),o(4,"div",6)(5,"div",4)(6,"lib-dropdown",19),Z("valueChange",function(i){f(e);let a=p();return J(a.selectedStateUSValue,i)||(a.selectedStateUSValue=i),h(i);}),u("valueChange",function(i){f(e);let a=p();return h(a.onStateUSChange(i));}),r()(),o(7,"div",4)(8,"lib-input",20),Z("valueChange",function(i){f(e);let a=p();return J(a.zipCode.value,i)||(a.zipCode.value=i),h(i);}),u("valueChange",function(i){f(e);let a=p();return a.zipCode.setValue(i),h(a.zipCode.markAsDirty());}),r()()(),b(9,Gs,3,4,"div",21),L();}if(n&2){let e=p();l(3),c("label",!0)("required",!1),X("value",e.city.value),l(3),c("label",!0)("required",!1)("options",e.statesMenuOptions)("searchable",!0),X("value",e.selectedStateUSValue),l(2),c("label",!0)("required",!1),X("value",e.zipCode.value),l(),c("ngIf",e.showTaxID);}}function Qs(n,m){if(n&1){let e=y();o(0,"div",3)(1,"div",4)(2,"lib-input",22),Z("valueChange",function(i){f(e);let a=p(2);return J(a.taxID.value,i)||(a.taxID.value=i),h(i);}),u("valueChange",function(i){f(e);let a=p(2);return a.taxID.setValue(i),h(a.taxID.markAsDirty());}),r()()();}if(n&2){let e=p(2);l(2),c("label",!0)("required",!1)("placeholder",e.taxIdPlaceholder),X("value",e.taxID.value);}}function $s(n,m){if(n&1){let e=y();R(0),o(1,"div",6)(2,"div",4)(3,"lib-input",18),Z("valueChange",function(i){f(e);let a=p();return J(a.city.value,i)||(a.city.value=i),h(i);}),u("valueChange",function(i){f(e);let a=p();return a.city.setValue(i),h(a.city.markAsDirty());}),r()(),o(4,"div",4)(5,"lib-input",23),Z("valueChange",function(i){f(e);let a=p();return J(a.zipCode.value,i)||(a.zipCode.value=i),h(i);}),u("valueChange",function(i){f(e);let a=p();return a.zipCode.setValue(i),h(a.zipCode.markAsDirty());}),r()()(),b(6,Qs,3,4,"div",21),L();}if(n&2){let e=p();l(3),c("label",!0)("required",!1),X("value",e.city.value),l(2),c("label",!0)("required",!1),X("value",e.zipCode.value),l(),c("ngIf",e.showTaxID);}}var Gi=class extends de{},Mr=(()=>{class n extends me{get firstName(){return this.billingForm.get("firstName");}get lastName(){return this.billingForm.get("lastName");}get email(){return this.billingForm.get("email");}get company(){return this.billingForm.get("company");}get addressLine(){return this.billingForm.get("addressLine");}get apt(){return this.billingForm.get("apt");}get city(){return this.billingForm.get("city");}get country(){return this.billingForm.get("country");}get stateUS(){return this.billingForm.get("stateUS");}get state(){return this.billingForm.get("state");}get zipCode(){return this.billingForm.get("zipCode");}get taxID(){return this.billingForm.get("taxID");}constructor(e,t,i,a,d,_,w){super(e),this.data=e,this.formBuilder=t,this.requestsService=i,this.planHelperService=a,this.notifier=d,this.eventsService=_,this.userHelperService=w,this.selectedCountryValue="",this.selectedStateUSValue="",this.countriesMenuOptions=[],this.statesMenuOptions=[],this.taxCountries=[...to],this.taxStates=["New Jersey"],this.showTaxID=!1,this.isLoading=!1,this.taxI
13dPlaceholder="",this.onCountryChange=v=>{v&&(this.selectedCountryValue=v,this.country.setValue(v),this.country.markAsDirty(),this.state.setValue(""),this.showTaxID=this.taxCountries.includes(v),this.updateTaxForm(v),v==="US"?this.stateUS.setValidators([Ce.required]):(this.selectedStateUSValue="",this.stateUS.setValue(""),this.stateUS.setErrors(null),this.stateUS.clearValidators()));},this.onStateUSChange=v=>{v&&(this.selectedStateUSValue=v,this.stateUS.setValue(v),this.stateUS.markAsDirty(),this.selectedCountryValue==="US"&&(this.showTaxID=this.taxStates.includes(v)),this.updateTaxForm(v,!0));},this.saveBillingDetails=()=>C(this,null,function*(){if(this.billingForm.invalid){this.notifier.error("One or more fields are invalid");return;}this.isLoading=!0;let v;try{let O={billingEmail:this.email.value,billingDetails:{name:`${this.firstName.value} ${this.lastName.value}`.trim(),city:this.city.value,country:this.selectedCountryValue,address:this.addressLine.value,postalCode:this.zipCode.value,taxId:this.showTaxID?this.taxID.value:void 0,state:this.selectedCountryValue==="US"?this.selectedStateUSValue:this.state.value}},D=yield this.requestsService.updatePlan(O);this.company.dirty&&(yield this.userHelperService.updateUser({company:this.company.value})),this.planHelperService.broadcastOrganizationPlan(D),this.notifier.success("Billing details saved"),this.data.onClose();}catch(O){O.responseJSON?.code==="30013/1"?v="Invalid Tax ID":v=O.responseJSON?.msg||"Please try again",console.error(O),this.notifier.error(v);}finally{this.isLoading=!1,this.eventsService.log(this.eventsService.events.billing.billingInvoiceSave,{changedFields:"",error:v});}}),this.onCloseClick=()=>{this.data.onClose();},this.countriesMenuOptions=gi().map(v=>({value:v.value,name:v.name})),this.setupStatesMenuOptions(),this.buildForm(),this.populateForm(e.plan);}setupStatesMenuOptions(){this.statesMenuOptions=no().map(e=>({value:e,name:e}));}buildForm(){this.billingForm=this.formBuilder.group({firstName:[""],lastName:[""],email:["",[Ce.email]],company:[""],addressLine:[""],apt:[""],city:[""],country:["",[Ce.required]],stateUS:[""],state:[""],zipCode:[""],taxID:[""]});}populateForm(e){let t=e.billingDetails,i=t?.country||"US",a=(t?.name||"").trim().split(" ");this.billingForm.patchValue({firstName:a[0]||"",lastName:a.slice(1).join(" ")||"",email:e.billingEmail||"",company:this.userHelperService.userData?.company||"",addressLine:t?.address||"",apt:"",city:t?.city||"",zipCode:t?.postalCode||"",state:t?.state||"",taxID:t?.taxId||"",country:i,stateUS:t?.state||""}),this.selectedCountryValue=i,this.selectedStateUSValue=t?.state||"",this.onCountryChange(i),i==="US"&&t?.state&&this.onStateUSChange(t.state);}updateTaxForm(e,t=!1){this.showTaxID?this.taxIdPlaceholder=io(e)||"123456789":this.taxIdPlaceholder="";}static{this.ɵfac=function(t){return new(t||n)(x(fe),x(At),x(ie),x(ve),x(ee),x(Y),x(he));};}static{this.ɵcmp=P({type:n,selectors:[["app-billing-details-dialog"]],standalone:!0,features:[W,M],decls:32,vars:26,consts:[["title","Billing details","size","lg",3,"closed"],["modal-body",""],[1,"dialog-body-scroll"],[1,"form-row"],[1,"form-field"],["labelText","Country","placeholder","Select country","type","outside",3,"valueChange","label","required","options","searchable","value"],[1,"form-row","two-columns"],["labelText","First Name","placeholder","Sarah","labelType","outside","size","small",3,"valueChange","label","required","value"],["labelText","Last Name","placeholder","Stanfield","labelType","outside","size","small",3,"valueChange","label","required","value"],["labelText","Invoice Email","placeholder","[email protected]","labelType","outside","size","small","type","email",3,"valueChange","label","required","value"],[1,"helper-text"],["labelText","Company Name (optional)","placeholder","BIGVU Inc.","labelType","outside","size","small",3,"valueChange","label","required","value"],["labelText","Street Address","placeholder","123 Market Street","labelType","outside","size","small",3,"valueChange","label","required","value"],["labelText","Apt, Suite, etc. (optional)","placeholder","Apt 4B","labelType","outside","size","small",3,"valueChange","label","required","value"],[4,"ngIf"],["modal
13-footer",""],["variant","ghost","size","md",3,"clicked"],["variant","primary","size","md",3,"clicked","loading"],["labelText","City","placeholder","Brooklyn","labelType","outside","size","small",3,"valueChange","label","required","value"],["labelText","State","placeholder","Select state","type","outside",3,"valueChange","label","required","options","searchable","value"],["labelText","ZIP Code","placeholder","11237","labelType","outside","size","small",3,"valueChange","label","required","value"],["class","form-row",4,"ngIf"],["labelText","VAT / Tax ID","labelType","outside","size","small",3,"valueChange","label","required","placeholder","value"],["labelText","Postal Code","placeholder","11237","labelType","outside","size","small",3,"valueChange","label","required","value"]],template:function(t,i){t&1&&(o(0,"lib-modal",0),u("closed",function(){return i.onCloseClick();}),o(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"lib-dropdown",5),Z("valueChange",function(d){return J(i.selectedCountryValue,d)||(i.selectedCountryValue=d),d;}),u("valueChange",function(d){return i.onCountryChange(d);}),r()()(),o(6,"div",6)(7,"div",4)(8,"lib-input",7),Z("valueChange",function(d){return J(i.firstName.value,d)||(i.firstName.value=d),d;}),u("valueChange",function(d){return i.firstName.setValue(d),i.firstName.markAsDirty();}),r()(),o(9,"div",4)(10,"lib-input",8),Z("valueChange",function(d){return J(i.lastName.value,d)||(i.lastName.value=d),d;}),u("valueChange",function(d){return i.lastName.setValue(d),i.lastName.markAsDirty();}),r()()(),o(11,"div",6)(12,"div",4)(13,"lib-input",9),Z("valueChange",function(d){return J(i.email.value,d)||(i.email.value=d),d;}),u("valueChange",function(d){return i.email.setValue(d),i.email.markAsDirty();}),r(),o(14,"span",10),s(15,"We'll send receipts here."),r()(),o(16,"div",4)(17,"lib-input",11),Z("valueChange",function(d){return J(i.company.value,d)||(i.company.value=d),d;}),u("valueChange",function(d){return i.company.setValue(d),i.company.markAsDirty();}),r(),o(18,"span",10),s(19,"Shown on invoices."),r()()(),o(20,"div",6)(21,"div",4)(22,"lib-input",12),Z("valueChange",function(d){return J(i.addressLine.value,d)||(i.addressLine.value=d),d;}),u("valueChange",function(d){return i.addressLine.setValue(d),i.addressLine.markAsDirty();}),r()(),o(23,"div",4)(24,"lib-input",13),Z("valueChange",function(d){return J(i.apt.value,d)||(i.apt.value=d),d;}),u("valueChange",function(d){return i.apt.setValue(d),i.apt.markAsDirty();}),r()()(),b(25,Ys,10,12,"ng-container",14)(26,$s,7,7,"ng-container",14),r()(),o(27,"div",15)(28,"lib-button",16),u("clicked",function(){return i.onCloseClick();}),s(29,"Cancel"),r(),o(30,"lib-button",17),u("clicked",function(){return i.saveBillingDetails();}),s(31,"Save"),r()()()),t&2&&(l(5),c("label",!0)("required",!1)("options",i.countriesMenuOptions)("searchable",!0),X("value",i.selectedCountryValue),l(3),c("label",!0)("required",!1),X("value",i.firstName.value),l(2),c("label",!0)("required",!1),X("value",i.lastName.value),l(3),c("label",!0)("required",!1),X("value",i.email.value),l(4),c("label",!0)("required",!1),X("value",i.company.value),l(5),c("label",!0)("required",!1),X("value",i.addressLine.value),l(2),c("label",!0)("required",!1),X("value",i.apt.value),l(),c("ngIf",i.selectedCountryValue==="US"),l(),c("ngIf",i.selectedCountryValue!=="US"),l(4),c("loading",i.isLoading));},dependencies:[U,N,Me,ue,ot,B,pe],styles:[".dialog-body-scroll[_ngcontent-%COMP%]{max-height:60vh;overflow-y:auto;display:flex;flex-direction:column;gap:12px}.form-row[_ngcontent-%COMP%]{width:100%}.form-row.two-columns[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-field[_ngcontent-%COMP%]{width:100%}.helper-text[_ngcontent-%COMP%]{font-size:12px;color:#9ca3af;margin-top:4px} .billing-details-dialog-container .mat-mdc-dialog-container .mdc-dialog__surface{border-radius:16px!important;overflow:hidden}@media screen and (max-width: 600px){.form-row.two-columns[_ngcontent-%COMP%]{grid-template-columns:1fr}}"]});}}return n;})();F();rt();We();qe();te();I();var Yi=class extends de{},Or=(()=>{class n extends me{constructor(e){super(e),this.data=e,this.BOOKING_LINK=Vi.ADD_SEATS,this.onBookCallClick=()=>{window.open(this.BOOKING_LINK,"_blank");},this.onCloseClick=()=>{this.data.onClose();};}static{this.ɵfac=function(t){return new(t||n)(x(fe));};}static{this.ɵcmp=P({type:n,selectors:[["app-add-seats-dialog"]],standalone:!0,features:[W,M],decls:15,vars:0,consts:[["title","Add seats","size","lg","layout","side-panel","footerLayout","stacked",3,"closed"],["modal
13-body",""],[1,"dialog-description"],["modal-footer",""],["variant","primary","size","md",1,"book-call-btn",3,"clicked"],["variant","ghost","size","md",3,"clicked"],["modal-side-panel",""],["src","img/billing/add-seats-illustration.webp","alt","",1,"illustration-image"]],template:function(t,i){t&1&&(o(0,"lib-modal",0),u("closed",function(){return i.onCloseClick();}),o(1,"div",1)(2,"p",2),s(3," You're currently subscribed via the Apple App Store / Google Play (mobile plan). "),r(),o(4,"p",2),s(5," To create a Team account and add seats, you'll need to switch to a Web plan. "),r(),o(6,"p",2),s(7," Please book a call with our team, and we'll help you upgrade your subscription. "),r()(),o(8,"div",3)(9,"lib-button",4),u("clicked",function(){return i.onBookCallClick();}),s(10," Book a call "),r(),o(11,"lib-button",5),u("clicked",function(){return i.onCloseClick();}),s(12," Cancel "),r()(),o(13,"div",6),g(14,"img",7),r()());},dependencies:[U,B,pe],styles:[".dialog-description[_ngcontent-%COMP%]{font-size:14px;color:#253658;line-height:1.4;letter-spacing:-.14px;margin:0}.book-call-btn[_ngcontent-%COMP%]{width:100%}.book-call-btn[_ngcontent-%COMP%] button{width:100%}.illustration-image[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover} .add-seats-dialog-container .mat-mdc-dialog-container .mdc-dialog__surface{border-radius:16px!important;overflow:hidden}"]});}}return n;})();te();I();var Qi=(()=>{class n{static{this.ɵfac=function(t){return new(t||n)();};}static{this.ɵcmp=P({type:n,selectors:[["app-billing-shimmer"]],standalone:!0,features:[M],decls:79,vars:0,consts:[[1,"billing-shimmer"],[1,"shimmer-card"],[1,"shimmer-plan-header"],[1,"shimmer-plan-info"],[1,"shimmer-block","title-block-lg"],[1,"shimmer-block","badge-block"],[1,"shimmer-plan-actions"],[1,"shimmer-block","button-block"],[1,"shimmer-separator"],[1,"shimmer-plan-details"],[1,"shimmer-plan-detail"],[1,"shimmer-block","label-block"],[1,"shimmer-block","value-block-sm"],[1,"shimmer-block","title-block"],[1,"shimmer-credits-overview"],[1,"shimmer-credits-total"],[1,"shimmer-block","credits-number-block"],[1,"shimmer-block","label-block-sm"],[1,"shimmer-credits-divider"],[1,"shimmer-credits-breakdown"],[1,"shimmer-credit-row"],[1,"shimmer-credit-info"],[1,"shimmer-block","hint-block"],[1,"shimmer-block","text-block-hint"],[1,"shimmer-packs-grid"],[1,"shimmer-pack-card"],[1,"shimmer-block","value-block"],[1,"shimmer-block","button-block-full"],[1,"shimmer-tools-row"],[1,"shimmer-tool-card"],[1,"shimmer-block","tool-thumb-block"],[1,"shimmer-invoice-row"],[1,"wave"]],template:function(t,i){t&1&&(o(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),g(4,"div",4)(5,"div",5),r(),o(6,"div",6),g(7,"div",7)(8,"div",7),r()(),g(9,"div",8),o(10,"div",9)(11,"div",10),g(12,"div",11)(13,"div",12),r(),o(14,"div",10),g(15,"div",11)(16,"div",12),r(),o(17,"div",10),g(18,"div",11)(19,"div",12),r()()(),o(20,"div",1),g(21,"div",13),o(22,"div",14)(23,"div",15),g(24,"div",16)(25,"div",17),r(),g(26,"div",18),o(27,"div",19)(28,"div",20)(29,"div",21),g(30,"div",11)(31,"div",22),r(),g(32,"div",12),r(),o(33,"div",20)(34,"div",21),g(35,"div",11)(36,"div",22),r(),g(37,"div",12),r()()()(),o(38,"div",1),g(39,"div",13)(40,"div",23),o(41,"div",24)(42,"div",25),g(43,"div",17)(44,"div",26)(45,"div",27),r(),o(46,"div",25),g(47,"div",17)(48,"div",26)(49,"div",27),r(),o(50,"div",25),g(51,"div",17)(52,"div",26)(53,"div",27),r()()(),o(54,"div",1),g(55,"div",13),o(56,"div",28)(57,"div",29),g(58,"div",30)(59,"div",17),r(),o(60,"div",29),g(61,"div",30)(62,"div",17),r(),o(63,"div",29),g(64,"div",30)(65,"div",17),r(),o(66,"div",29),g(67,"div",30)(68,"div",17),r()()(),o(69,"div",1),g(70,"div",13)(71,"div",8),o(72,"div",31),g(73,"div",11)(74,"div",12),r(),o(75,"div",31),g(76,"div",11)(77,"div",12),r()(),g(78,"div",32),r());},styles:[".billing-shimmer[_ngcontent-%COMP%]{position:relative;overflow:hidden;width:100%;display:flex;flex-direction:column;gap:18px}.shimmer-card[_ngcontent-%COMP%]{background:#fff;border-radius:10px;padding:18px;width:100%}.shimmer-block[_ngcontent-%COMP%]{background:#4481fd1f;border-radius:6px;flex-shrink:0}.title-block[_ngcontent-%COMP%]{width:140px;height:22px;margin-bottom:16px}.title-block-lg[_ngcontent-%COMP%]{width:180px;height:28px}.label-block[_ngcontent-%COMP%]{width:140px;height:14px}.label-block-sm[_ngcontent-%COMP%]{width:90px;height:14px}.value-block[_ngcontent-%COMP%]{width:120px;height:18px}.value-block-sm[_ngcontent-%COMP%]{width:80px;height:16px}.badge-block[_ngcontent-%COMP%]{width:70px;height:24px;border-radius:12px}.button-block[_ngcontent-%COMP%]{width:100px;height:36px;border-radius:8px}.button-block-full[_ngcontent-%COMP%]{width:100%;height:36px;border-radius:8px}.hint-block[_ngcontent-%COMP%]{width:100px;height:12px}.text-block-hint[_ngcontent-%COMP%]{width:180px;height:14px;margin-bottom:16px}.credits-number-block[_ngcontent-%COMP%]{width:100px;height:36px;border-radius:8px}.tool-thumb-block[_ngcontent-%COMP%]{width:100%;height:80px;border-radius:8px}
13.shimmer-separator[_ngcontent-%COMP%]{height:1px;background:#4481fd14;margin:16px 0}.shimmer-plan-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.shimmer-plan-info[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.shimmer-plan-actions[_ngcontent-%COMP%]{display:flex;gap:8px}.shimmer-plan-details[_ngcontent-%COMP%]{display:flex;gap:32px}.shimmer-plan-detail[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px}.shimmer-credits-overview[_ngcontent-%COMP%]{display:flex;align-items:stretch;gap:24px}.shimmer-credits-total[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;min-width:140px}.shimmer-credits-divider[_ngcontent-%COMP%]{width:1px;background:#4481fd14}.shimmer-credits-breakdown[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:16px}.shimmer-credit-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.shimmer-credit-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.shimmer-packs-grid[_ngcontent-%COMP%]{display:flex;gap:16px}.shimmer-pack-card[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:12px;padding:16px;border-radius:12px;background:#4481fd0a}.shimmer-tools-row[_ngcontent-%COMP%]{display:flex;gap:16px}.shimmer-tool-card[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:8px}.shimmer-invoice-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:12px 0}.shimmer-invoice-row[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid rgba(68,129,253,.04)}.wave[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.3) 50%,transparent 100%);transform:translate(-100%);animation:_ngcontent-%COMP%_wave 1.5s infinite}@keyframes _ngcontent-%COMP%_wave{0%{transform:translate(-100%)}50%{transform:translate(100%)}to{transform:translate(100%)}}@media only screen and (max-width: 767px){.shimmer-packs-grid[_ngcontent-%COMP%]{flex-direction:column}.shimmer-tools-row[_ngcontent-%COMP%]{flex-wrap:wrap}.shimmer-tool-card[_ngcontent-%COMP%]{min-width:calc(50% - 8px)}.shimmer-credits-overview[_ngcontent-%COMP%]{flex-direction:column}.shimmer-plan-header[_ngcontent-%COMP%]{flex-direction:column;gap:16px;align-items:flex-start}.shimmer-plan-details[_ngcontent-%COMP%]{flex-direction:column;gap:16px}}",".profile-common-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.profile-common-sub-container[_ngcontent-%COMP%]{background-color:#fff;border-radius:10px;padding:18px;width:100%;margin:0 0 18px}.profile-common-title[_ngcontent-%COMP%]{font-size:18px;line-height:24px;font-family:Inter-Bold;color:#253658;display:flex;align-items:center;gap:5px}hr.profile-common-hr[_ngcontent-%COMP%]{margin:18px 0}.profile-common-paragraph[_ngcontent-%COMP%]{font-size:14px;color:#7b8db1}.profile-common-sub-title[_ngcontent-%COMP%]{margin-bottom:12px;color:#000;line-height:24px;font-size:15px;font-weight:600;text-transform:capitalize;display:flex;align-items:center;gap:5px}.profile-big-sub-title[_ngcontent-%COMP%]{font-size:28px;font-family:Inter-Bold;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#253658;margin-bottom:8px}
13.content-separator[_ngcontent-%COMP%]{height:1px;background-color:#7b8db14d;margin:18px 0}.profile-sub-header[_ngcontent-%COMP%]{font-size:14px;color:#25365899;max-width:380px}.profile-details-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;height:36px}.profile-buttons-container[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px}.profile-details-cancel-button[_ngcontent-%COMP%], .profile-details-save-button[_ngcontent-%COMP%]{width:90px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px}.profile-details-cancel-button[_ngcontent-%COMP%]:hover, .profile-details-save-button[_ngcontent-%COMP%]:hover{opacity:.8}.profile-details-cancel-button[_ngcontent-%COMP%]{background:#7b8db114;color:#7b8db1;margin:0 12px 0 auto}.profile-details-save-button[_ngcontent-%COMP%]{background:#00abfe;color:#fff}.profile-details-preview[_ngcontent-%COMP%]{padding:0 22px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px;border:1px solid #00abfe;color:#00abfe;background:#fff}.disabled-button[_ngcontent-%COMP%]{background:gray!important;color:#d3d3d3!important}.disabled-button[_ngcontent-%COMP%]:hover{opacity:1} autocomplete-menu .autocomplete-menu-container{border-radius:10px;background-color:#7b8db114;padding:5px 12px;height:46px;cursor:text} autocomplete-menu .autocomplete-menu-container input{color:#253658;font-size:14px} autocomplete-menu .autocomplete-menu-container .mat-form-field-label-wrapper label mat-label{color:#00abfe!important;font-weight:700} autocomplete-menu .autocomplete-menu-container .mdc-line-ripple{display:none!important}.billing-plan-details-title[_ngcontent-%COMP%]{color:#888;font-size:12px;font-weight:400;text-transform:capitalize}.billing-plan-details-sub-title[_ngcontent-%COMP%]{color:#000;font-size:13px;font-weight:700;text-transform:capitalize}"]});}}return n;})();var yn=Ji(oo());ti();Ot();yi();Xr();var Er=[{name:"AI Talking Photo",thumbnailUrl:"img/billing/ai-talking-photo.webp",routePath:"/portrait2video"},{name:"AI Avatars",thumbnailUrl:"img/billing/ai-avatars.webp",routePath:"/avatars"},{name:"AI Influencers",thumbnailUrl:"img/billing/ai-influencers.webp",routePath:"",externalUrl:"https://prompt2avatar.bigvu.tv/"},{name:"Auto B-Rolls",thumbnailUrl:"img/billing/auto-b-rolls.webp",routePath:"/boards",queryParams:{action:"autoShorts"}},{name:"AI Video Effects",thumbnailUrl:"img/billing/ai-video-effects.webp",routePath:"/boards",queryParams:{action:"eyeContact"}}];I();ft();Oe();we();Io();ye();gt();Wt();mn();be();F();var kr=n=>({$implicit:n});function Js(n,m){n&1&&g(0,"app-billing-shimmer");}function Zs(n,m){if(n&1&&(o(0,"span",34),s(1),r()),n&2){let e=p(4);l(),A("Resets ",e.resetDateLabel,"");}}function ec(n,m){if(n&1&&(o(0,"div",31)(1,"div",32)(2,"span",33),s(3,"Subscription credits"),r(),b(4,Zs,2,1,"span",42),r(),o(5,"div",35)(6,"div",36)(7,"span",37),s(8),r(),o(9,"span",38),s(10),r()(),o(11,"div",43),g(12,"mat-spinner",40)(13,"mat-progress-spinner",41),r()()()),n&2){let e=p(3);l(4),c("ngIf",e.resetDateLabel),l(4),E(e.formatNumber(e.subscriptionCreditsLeft)),l(2),A("of ",e.formatNumber(e.creditsData.subscription.limit),""),l(2),c("diameter",32)("strokeWidth",6)("value",100),l(),c("diameter",32)("strokeWidth",6)("value",e.subscriptionUsedPercent);}}function tc(n,m){if(n&1&&(o(0,"div",6)(1,"div",20)(2,"div",10),s(3,"AI Credits"),r()(),o(4,"div",23)(5,"div",24)(6,"div",25),s(7),o(8,"span",26),s(9,"credits"),r()(),o(10,"div",27),s(11,"Available to use now"),r()(),g(12,"div",28),o(13,"div",29),b(14,ec,14,9,"div",30),o(15,"div",31)(16,"div",32)(17,"span",33),s(18,"Top-up credits"),r(),o(19,"span",34),s(20,"Purchased \xB7 Never expire"),r()(),o(21,"div",35)(22,"div",36)(23,"span",37),s(24),r(),o(25,"span",38),s(26),r()(),o(27,"div",39),g(28,"mat-spinner",40)(29,"mat-progress-spinner",41),r()()()()()()),n&2){let e=p(2);l(7),A(" ",e.formatNumber(e.creditsData.totalAvailable)," "),l(7),c("ngIf",e.hasSubscriptionCredits),l(10),E(e.formatNumber(e.topUpCreditsLeft)),l(2),A("of ",e.formatNumber(e.creditsData.topUp.total),""),l(2),c("diameter",32)("strokeWidth",6)("value",100),l(),c("diameter",32)("strokeWidth",6)("value",e.topUpUsedPercent);}}function ic(n,m){if(n&1){let e=y();o(0,"lib-pack-card",44),u("buttonClick",function(){let i=f(e).$implicit,a=p(2);return h(a.buyCreditPack(i));}),r();}if(n&2){let e,t=m.$implicit,i=p(2);c("title",t.title)("discount",t.discount||"")("quantity",i.formatNumber(t.credits)+" credits")("price",((e=i.packPrices.get(t.id))==null?null:e.display)||"")("highlight",!!t.highlight)("isLoading",i.isLoadingPrices)("processing",i.isPurchasing);}}function nc(n,m){n&1&&nt(0);}function oc(n,m){if(n&1){let e=y();o(0,"lib-accordion",45),u("expandedChange",function(){let i=f(e).index,a=p(2);return h(a.toggleFaq(i));}),b(1,nc,1,0,"ng-container",46),r();}if(n&2){let e=m.$implicit,t=m.index;p();let i=Ke(21),a=p();c("title",e.title)("expanded",a.expandedFaqIndex===t),l(),c("ngTemplateOutlet",i)("ngTemplateOutletContext",ce(4,kr,e));}}function rc(n,m){n&1&&nt(0);}function ac(n,m){if(n&1){let e=y();o(0,"lib-accordion",45),u("expandedChange",function(){let i=f(e).index,a=p(2);return h(a.toggleFaq(i+a.faqItemsLeft.length));}),b(1,rc,1,0,"ng-container",46),r();}if(n&2){let e=m.$implicit,t=m.index;p();let i=Ke(21),a=p();c("title",e.title)("expanded",a.expandedFaqIndex===t+a.faqItemsLeft.length),l(),c("ngTemplateOutlet",i)("ngTemplateOutletContext",ce(4,kr,e));}}function lc(n,m){n&1&&(o(0,"p",50),s(1,"Loading..."),r());}
13function sc(n,m){if(n&1&&g(0,"img",57),n&2){let e=p().$implicit;c("src",e.icon,ge);}}function cc(n,m){if(n&1&&(o(0,"div",53)(1,"div",54),b(2,sc,1,1,"img",55),o(3,"span"),s(4),r()(),o(5,"span",56)(6,"strong"),s(7),r(),s(8),r()()),n&2){let e=m.$implicit;l(2),c("ngIf",e.icon),l(2),E(e.label),l(3),E(e.cost),l(),A(" ",e.cost==="1"?"credit":"credits"," ");}}function pc(n,m){if(n&1&&(o(0,"div",51),b(1,cc,9,4,"div",52),r()),n&2){let e=p(4);l(),c("ngForOf",e.creditCosts);}}function dc(n,m){if(n&1&&(R(0),b(1,lc,2,0,"p",48)(2,pc,2,1,"div",49),L()),n&2){let e=p(3);l(),c("ngIf",e.isLoadingCosts),l(),c("ngIf",!e.isLoadingCosts);}}function mc(n,m){n&1&&(o(0,"p",50),s(1,"Loading..."),r());}function gc(n,m){if(n&1&&(R(0),s(1),L()),n&2){let e=m.ngIf;l(),A(" (",e,")");}}function uc(n,m){if(n&1&&(R(0),s(1),L()),n&2){let e=m.ngIf;l(),A(" (",e,")");}}function fc(n,m){if(n&1&&(R(0),s(1),L()),n&2){let e=m.ngIf;l(),A(" (",e,")");}}function hc(n,m){if(n&1&&(R(0),s(1),L()),n&2){let e=m.ngIf;l(),A(" (",e,")");}}function _c(n,m){if(n&1&&(R(0),s(1),L()),n&2){let e=m.ngIf;l(),A(" at ",e,"/credit");}}function xc(n,m){if(n&1&&(o(0,"p",50),s(1," It depends on your usage. "),o(2,"b"),s(3,"Micro"),b(4,gc,2,1,"ng-container",3),r(),s(5," is great for occasional use. "),o(6,"b"),s(7,"Creator"),b(8,uc,2,1,"ng-container",3),r(),s(9," suits regular creators. "),o(10,"b"),s(11,"Studio"),b(12,fc,2,1,"ng-container",3),r(),s(13," is ideal for teams and agencies. "),o(14,"b"),s(15,"Power User"),b(16,hc,2,1,"ng-container",3),r(),s(17," delivers the best per-credit value"),b(18,_c,2,1,"ng-container",3),s(19," \u2014 perfect for heavy production workflows. "),r()),n&2){let e,t,i,a,d=p(5);l(4),c("ngIf",(e=d.packPrices.get("micro"))==null?null:e.display),l(4),c("ngIf",(t=d.packPrices.get("creator"))==null?null:t.display),l(4),c("ngIf",(i=d.packPrices.get("studio"))==null?null:i.display),l(4),c("ngIf",(a=d.packPrices.get("power"))==null?null:a.display),l(2),c("ngIf",d.powerPackPerCredit());}}function vc(n,m){if(n&1&&(R(0),b(1,mc,2,0,"p",48)(2,xc,20,5,"p",48),L()),n&2){let e=p(4);l(),c("ngIf",e.isLoadingPrices),l(),c("ngIf",!e.isLoadingPrices);}}function bc(n,m){if(n&1&&b(0,vc,3,2,"ng-container",47),n&2){let e=p().$implicit,t=Ke(4);c("ngIf",e.showPackPrices)("ngIfElse",t);}}function Cc(n,m){if(n&1&&g(0,"p",58),n&2){let e=p().$implicit;c("innerHTML",e.answer,ii);}}function yc(n,m){if(n&1&&b(0,dc,3,2,"ng-container",47)(1,bc,1,2,"ng-template",null,1,He)(3,Cc,1,1,"ng-template",null,2,He),n&2){let e=m.$implicit,t=Ke(2);c("ngIf",e.showFeatureCosts)("ngIfElse",t);}}function wc(n,m){if(n&1){let e=y();o(0,"div",59),u("click",function(){let i=f(e).$implicit,a=p(2);return h(a.navigateToTool(i));}),o(1,"div",60),g(2,"img",61),r(),o(3,"div",62),s(4),r()();}if(n&2){let e=m.$implicit;l(2),c("src",e.thumbnailUrl,ge)("alt",e.name),l(2),E(e.name);}}function Sc(n,m){if(n&1){let e=y();o(0,"div",6)(1,"app-billing-invoice-details",63),u("emitOpenBillingDetails",function(){f(e);let i=p(2);return h(i.openBillingDetailsDialog());})("emitOpenPaymentMethod",function(){f(e);let i=p(2);return h(i.openPaymentMethod());}),r()();}if(n&2){let e=p(2);l(),c("plan",e.currentPlan);}}function Pc(n,m){if(n&1){let e=y();o(0,"div",6)(1,"app-billing-invoice",64),u("emitUnsubscribe",function(){f(e);let i=p(2);return h(i.onCancelSubscription());}),r()();}}function Mc(n,m){if(n&1){let e=y();o(0,"div",5)(1,"div",6)(2,"app-billing-plan-overview",7),u("emitAddSeats",function(){f(e);let i=p();return h(i.onAddSeats());})("emitUpgrade",function(){f(e);let i=p();return h(i.onUpgrade());}),r()(),b(3,tc,30,10,"div",8),o(4,"div",6)(5,"div",9)(6,"div",10),s(7,"Buy more credits"),r(),o(8,"div",11),s(9,"Instant top-up. Use anytime"),r()(),o(10,"div",12),b(11,ic,1,7,"lib-pack-card",13),r(),o(12,"div",14)(13,"div",15),s(14,"Learn more"),r(),o(15,"div",16)(16,"div",17),b(17,oc,2,6,"lib-accordion",18),r(),o(18,"div",17),b(19,ac,2,6,"lib-accordion",18),r()()(),b(20,yc,5,2,"ng-template",null,0,He),r(),o(22,"div",19)(23,"div",20)(24,"div",10),s(25,"AI Editing Tools"),r()(),o(26,"div",21),b(27,wc,5,3,"div",22),r()(),b(28,Sc,2,1,"div",8)(29,Pc,2,0,"div",8),r();}if(n&2){let e=p();l(2),c("plan",e.currentPlan)("isStripe",e.isStripe),l(),c("ngIf",e.creditsData),l(8),c("ngForOf",e.creditPacks),l(6),c("ngForOf",e.faqItemsLeft),l(2),c("ngForOf",e.faqItemsRight),l(8),c("ngForOf",e.aiTools),l(),c("ngIf",e.isStripe),l(),c("ngIf",e.isStripe&&e.canCancelPlan);}}var Ir=(()=>{class n{get isPageLoading(){return this.isLoading||this.isLoadingCredits;}get hasSubscriptionCredits(){return!!this.creditsData&&this.creditsData.subscription.limit>0;}get subscriptionCreditsLeft(){return this.creditsData?Math.max(0,this.creditsData.subscription.limit-this.creditsData.subscription.used):0;}get topUpCreditsLeft(){return this.creditsData?Math.max(0,this.creditsData.topUp.total-this.creditsData.topUp.used):0;}get subscriptionUsedPercent(){if(!this.creditsData?.subscription.limit)return 0;let e=this.creditsData.subscription.used/this.creditsData.subscription.limit*100;return Math.round(Math.min(100,Math.max(0,e)));}get topUpUsedPercent(){if(!this.creditsData?.topUp.total)return 0;let e=this.creditsData.topUp.used/this.creditsData.topUp.total*100;return Math.round(Math.min(100,Math.max(0,e)));}get faqItemsLeft(){let e=Math.ceil(this.faqItems.length/2);return this.faqItems.slice(0,e);}get faqItemsRight(){let e=Math.ceil(this.faqItems.length/2);return this.faqItems.slice(e);}powerPackPerCredit(){let e=this.creditPacks.find(i=>i.id==="power"),t=e?this.packPrices.get(e.id):void 0;return!e||!t||!e.credits?"":`${t.currencySymbol}${(t.amount/e.credits).toFixed(3)}`;}get resetDateLabel(){return this.creditsData?.subscription.resetDate?(0,yn.default)(this.creditsData.subscription.resetDate).format("MMM D"):"";}get canCancelPlan(){return this.currentPlan?.name!==Vt.free&&!this.currentPlan?.cancellation;}constructor(e,t,i,a,d,_,w,v,O){this.planHelperService=e,this.requestsService=t,this.dialogHelperService=i,this.paymentService=a,this.notifier=d,this.router=_,this.premiumPlanService=w,this.creditsService=v,this.eventsService=O,this.isLoading=!0,this.destroy$=new je(),this.creditsData=null,this.isLoadingCredits=!0,this.creditPacks=xo,this.isPurchasing=!1,this.isLoadingPrices=!0,this.packPrices=new Map(),this.faqItems=vo,this.expandedFaqIndex=-1,this.creditCosts=[],this.isLoadingCosts=!0,this.aiTools=Er,this.isStripe=!1;}ngOnInit(){this.planHelperService.organizationPlan$.pipe(pt(this.destroy$)).subscribe(e=>{e!==null&&(this.currentPlan=e,this.isStripe=this.getPlanAuthority()===vt.STRIPE||this.getInactivePlanAuthority()===vt.STRIPE,this.isLoading=!1);}),this.loadCredits(),this.loadFeatureCosts(),this.loadPackPrices();}loadPackPrices(){return C(this,null,function*(){try{this.packPrices=yield this.creditsService.getCreditPackPrices();}finally{this.isLoadingPrices=!1;}});}loadCredits(){return C(this,null,function*(){this.isLoadingCredits=!0;try{let e=yield this.creditsService.getCreditsUsage();this.creditsData=this.mapCreditsResponse(e);}catch(e){console.error("[billing] failed to load credits:",e),this.creditsData=null;}finally{this.isLoadingCredits=!1;}});}loadFeatureCosts(){return C(this,null,function*(){this.isLoadingCosts=!0;try{this.creditCosts=yield this.creditsService.loadFeatureCosts();}finally{this.isLoadingCosts=!1;}});}mapCreditsResponse(e){return e?.credits?{totalAvailable:Math.max(0,e.credits.total-e.credits.used),subscription:{used:e.subscription?.used??0,limit:e.subscription?.total??0,resetDate:e.subscription?.resetAt??""},topUp:{used:e.oneTimePurchases?.used??0,total:e.oneTimePurchases?.total??0}}:null;}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete();}onAddSeats(){let e=this.currentPlan?.authority;if(e===vt.STRIPE||e===vt.BIGVU){let t=_o(this.currentPlan.genericName),i=this.currentPlan.features.maxUsers||1;this.premiumPlanService.openPricingDialog(t,location.pathname,location.pathname,Ae.billing,void 0,void 0,void 0,i,Ci.topup);}else this.openAddSeatsDialog();}onUpgrade(){this.router.navigate(["pricing"],{state:{paywallTrigger:Ae.billing,triggerType:Ci.topup}});}buyCreditPack(e){return C(this,null,function*(){if(!this.isPurchasing){this.isPurchasing=!0;try{yield this.creditsService.buyCreditPack({pack:e,paywallTrigger:Ae.billing,triggerType:Ci.topup});}catch{}finally{this.isPurchasing=!1;}}});}toggleFaq(e){this.expandedFaqIndex=this.expandedFaqIndex===e?-1:e;}openBillingDetailsDialog(){let e=new Gi();e.plan=this.currentPlan,e.header="Billing details",e.onClose=()=>this.dialogHelperService.close(),e.onSubmit=()=>{},this.openDialog(e,Mr,"billing-details-dialog-container");}openPaymentMethod(){return C(this,null,function*(){try{let e=yield this.requestsService.getStripeBillingPortal(window.location.href);e?.url&&window.open(e.url,"_blank");}catch(e){console.error("Failed to open billing portal",e),this.notifier.error("Failed to open billing portal. Please try again.");}});}onCancelSubscription(){let e=new Wi();e.expiration=(0,yn.default)(this.currentPlan.expiration).format("DD/MM/YYYY"),e.planDisplayName=this.planHelperService.getPlanDisplayNameNoPeriod(this.currentPlan),e.planTier=this.currentPlan.genericName,e.planDuration=this.getPlanDurationLabel(this.currentPlan),e.header="Cancel Subscription",e.onSubmit=()=>
13this.onCancelComplete(),e.onClose=()=>this.dialogHelperService.close(),this.openDialog(e,Pr,"unsubscribe-dialog");}navigateToTool(e){e.routePath==="/portrait2video"&&this.eventsService.log(this.eventsService.events.portrait2video.portrait2videoBannerClick,{}),e.externalUrl?window.open(e.externalUrl,"_blank"):this.router.navigate([e.routePath],K({},e.queryParams&&{queryParams:e.queryParams}));}onViewMoreToolsClick(){this.router.navigate(["/desk"]);}formatNumber(e){return e.toLocaleString("en-US");}openDialog(e,t,i){let a=new xe();a.disableClose=!1,a.panelClass=i,this.dialogHelperService.open(e,t,a);}onCancelComplete(){return C(this,null,function*(){try{yield this.getPlanDetails(!0),this.planHelperService.setPlanUpdated();}catch(e){console.error(e);}});}openAddSeatsDialog(){let e=new Yi();e.header="Add seats",e.onClose=()=>this.dialogHelperService.close(),e.onSubmit=()=>{},this.openDialog(e,Or,"add-seats-dialog-container");}getPlanDetails(e=!1){return C(this,null,function*(){try{this.isLoading=!0,this.currentPlan=yield this.planHelperService.getOrganizationPlansDetails(e);}catch(t){this.notifier.error("Failed to get user data. Please try again"),console.error(t);}finally{this.isLoading=!1;}});}getPlanAuthority(){return this.currentPlan&&this.currentPlan.authority&&this.currentPlan.name!==Vt.free?this.currentPlan.authority:"none";}getPlanDurationLabel(e){let t=e.display?.duration;return t?t.unit===sn.YEAR?"yearly":t.unit===sn.MONTH&&t.length===6?"6 months":"monthly":"monthly";}getInactivePlanAuthority(){return this.currentPlan?.inactivePlan?.authority&&this.currentPlan.inactivePlan.name!==Vt.free?this.currentPlan.inactivePlan.authority:"none";}static{this.ɵfac=function(t){return new(t||n)(x(ve),x(ie),x(_e),x(Si),x(ee),x(Se),x(Ze),x(Lt),x(Y));};}static{this.ɵcmp=P({type:n,selectors:[["billing"]],standalone:!0,features:[M],decls:2,vars:2,consts:[["faqBody",""],["packPricesOrPlain",""],["plainAnswer",""],[4,"ngIf"],["class","profile-common-container",4,"ngIf"],[1,"profile-common-container"],[1,"profile-common-sub-container"],[3,"emitAddSeats","emitUpgrade","plan","isStripe"],["class","profile-common-sub-container",4,"ngIf"],[1,"section-header-block"],[1,"profile-common-title"],[1,"section-subtitle"],[1,"credit-packs-grid"],[3,"title","discount","quantity","price","highlight","isLoading","processing","buttonClick",4,"ngFor","ngForOf"],[1,"faq-section"],[1,"faq-title"],[1,"faq-columns"],[1,"faq-column"],[3,"title","expanded","expandedChange",4,"ngFor","ngForOf"],[1,"profile-common-sub-container","ai-tools-container"],[1,"section-header"],[1,"ai-tools-row"],["class","ai-tool-card",3,"click",4,"ngFor","ngForOf"],[1,"credits-overview"],[1,"credits-total"],[1,"credits-total-number"],[1,"credits-total-unit"],[1,"credits-total-label"],[1,"credits-divider"],[1,"credits-breakdown"],["class","credit-type-row",4,"ngIf"],[1,"credit-type-row"],[1,"credit-type-info"],[1,"credit-type-label"],[1,"credit-type-note"],[1,"credit-type-right"],[1,"credit-type-values"],[1,"credit-type-value"],[1,"credit-type-sub-value"],[1,"progress-circle","addon"],["mode","determinate",1,"track",3,"diameter","strokeWidth","value"],["mode","determinate",3,"diameter","strokeWidth","value"],["class","credit-type-note",4,"ngIf"],[1,"progress-circle"],[3,"buttonClick","title","discount","quantity","price","highlight","isLoading","processing"],[3,"expandedChange","title","expanded"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf","ngIfElse"],["class","faq-answer",4,"ngIf"],["class","credit-costs-list",4,"ngIf"],[1,"faq-answer"],[1,"credit-costs-list"],["class","credit-cost-row",4,"ngFor","ngForOf"],[1,"credit-cost-row"],[1,"credit-cost-label"],["class","credit-cost-icon","alt","",3,"src",4,"ngIf"],[1,"credit-cost-value"],["alt","",1,"credit-cost-icon",3,"src"],[1,"faq-answer",3,"innerHTML"],[1,"ai-tool-card",3,"click"],[1,"ai-tool-thumbnail"],[3,"src","alt"],[1,"ai-tool-name"],[3,"emitOpenBillingDetails","emitOpenPaymentMethod","plan"],[3,"emitUnsubscribe"]],template:function(t,i){t&1&&b(0,Js,1,0,"app-billing-shimmer",3)(1,Mc,30,9,"div",4),t&2&&(c("ngIf",i.isPageLoading),l(
13),c("ngIf",!i.isPageLoading));},dependencies:[U,le,N,ci,yr,wr,Sr,uo,fo,Qi,Mi,Pi],styles:["[_nghost-%COMP%] .profile-common-sub-container{padding:24px;border-radius:16px;display:flex;flex-direction:column;gap:24px}.section-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.section-header-block[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.section-subtitle[_ngcontent-%COMP%]{font-size:13px;color:#4b5563}.credits-overview[_ngcontent-%COMP%]{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.credits-total[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px;flex:1 0 0;min-width:120px}.credits-total-number[_ngcontent-%COMP%]{font-size:30px;font-weight:700;color:#253658;line-height:1;display:flex;align-items:baseline;gap:8px}.credits-total-unit[_ngcontent-%COMP%]{font-size:18px;font-weight:600}.credits-total-label[_ngcontent-%COMP%]{font-size:14px;color:#6b7280}.credits-divider[_ngcontent-%COMP%]{width:1px;height:64px;background-color:#e5e7eb;flex-shrink:0}.credits-breakdown[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px;flex:1}.credit-type-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px}.credit-type-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px}.credit-type-label[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#333}.credit-type-value[_ngcontent-%COMP%]{font-size:14px;font-weight:600;color:#253658}.credit-type-note[_ngcontent-%COMP%]{font-size:12px;color:#6b7280}.credit-type-right[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.progress-circle[_ngcontent-%COMP%]{position:relative;width:32px;height:32px;flex-shrink:0}.progress-circle[_ngcontent-%COMP%] .track circle{stroke:#4481fd26!important}.progress-circle[_ngcontent-%COMP%] .mat-mdc-progress-spinner:not(.track) circle{stroke:#4481fd;stroke-linecap:round}.progress-circle.addon[_ngcontent-%COMP%] .track circle{stroke:#14b8a629!important}.progress-circle.addon[_ngcontent-%COMP%] .mat-mdc-progress-spinner:not(.track) circle{stroke:#14b8a6;stroke-linecap:round}.progress-circle[_ngcontent-%COMP%] mat-spinner[_ngcontent-%COMP%], .progress-circle[_ngcontent-%COMP%] mat-progress-spinner[_ngcontent-%COMP%]{position:absolute;top:0;left:0}.credit-type-values[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end}.credit-type-sub-value[_ngcontent-%COMP%]{font-size:12px;color:#6b7280}.credit-packs-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}.credit-packs-grid[_ngcontent-%COMP%] lib-pack-card[_ngcontent-%COMP%]{display:block;width:100%;min-width:0;--pack-card-width: 100%}.faq-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.faq-title[_ngcontent-%COMP%]{font-size:18px;font-weight:600;color:#253658}.faq-columns[_ngcontent-%COMP%]{display:flex;gap:24px;width:100%;min-width:0}.faq-column[_ngcontent-%COMP%]{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:8px}.faq-column[_ngcontent-%COMP%] lib-accordion[_ngcontent-%COMP%]{display:block;width:100%;min-width:0}.faq-answer[_ngcontent-%COMP%]{overflow-wrap:anywhere;word-break:break-word}.credit-cost-row[_ngcontent-%COMP%]{min-width:0}.credit-cost-label[_ngcontent-%COMP%]{min-width:0;flex:1 1 auto}.credit-cost-label[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.faq-answer[_ngcontent-%COMP%]{margin:0;font-size:14px;line-height:1.5;color:var(--foreground-text-icons-fg-secondary, #4b5563)}.credit-costs-list[_ngcontent-%COMP%]{display:flex;flex-direction:column}.credit-cost-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:8px 0}.credit-cost-row[_ngcontent-%COMP%]:first-child{padding-top:0}.credit-cost-row[_ngcontent-%COMP%]:last-child{padding-bottom:0}.credit-cost-label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:14px;line-height:1.4;color:var(--foreground-text-icons-fg-primary, #253658)}.credit-cost-icon[_ngcontent-%COMP%]{width:20px;height:20px;object-fit:contain;flex-shrink:0;filter:invert(30%) sepia(98%) saturate(1800%) hue-rotate(215deg) brightness(95%) contrast(95%)}.credit-cost-value[_ngcontent-%COMP%]{font-size:14px;line-height:1.4;color:var(--foreground-text-icons-fg-tertiary-strong, #6b7280);white-space:nowrap}.credit-cost-value[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-weight:500}.ai-tools-container[_ngcontent-%COMP%]{overflow:hidden}.ai-tools-row[_ngcontent-%COMP%]{display:flex;gap:16px;overflow-x:auto;padding-bottom:4px}.ai-tools-row[_ngcontent-%COMP%]::-webkit-scrollbar{height:4px}.ai-tools-row[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#00000026;border-radius:2px}.ai-tool-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:12px;cursor:pointer;flex-shrink:0}
13.ai-tool-thumbnail[_ngcontent-%COMP%]{width:200px;height:142px;border-radius:16px;overflow:hidden;border:.5px solid #c7d9fe}.ai-tool-thumbnail[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.ai-tool-name[_ngcontent-%COMP%]{font-size:16px;font-weight:500;color:#253658;letter-spacing:-.16px;line-height:1.4}@media screen and (max-width: 768px){.faq-columns[_ngcontent-%COMP%]{flex-direction:column}.credits-overview[_ngcontent-%COMP%]{flex-direction:column;gap:20px}.credits-divider[_ngcontent-%COMP%]{width:100%;height:1px}}","[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}.profile-component-container[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;align-items:stretch;padding:32px 64px 0;box-sizing:border-box;height:calc(100vh - 56px);overflow:hidden}.profile-navigation-sidebar[_ngcontent-%COMP%]{width:280px;flex-shrink:0;margin-right:40px;align-self:flex-start}.tabs-menu-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.tabs-menu-container[_ngcontent-%COMP%] lib-submenu-item[_ngcontent-%COMP%]{cursor:pointer}.profile-content-container[_ngcontent-%COMP%]{width:1000px;position:relative;min-height:0;height:100%;overflow-y:auto;padding-bottom:84px;scrollbar-width:none;-ms-overflow-style:none}.profile-content-container[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.profile-content-container[_ngcontent-%COMP%] .referral-loading-overlay[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#ffffffb3;z-index:10;border-radius:10px}.profile-content-container[_ngcontent-%COMP%] .referral-spinner[_ngcontent-%COMP%]{width:40px;height:40px;border:3px solid rgba(68,129,253,.2);border-top-color:#4481fd;border-radius:50%;animation:_ngcontent-%COMP%_spin .8s linear infinite}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}@media only screen and (max-width: 1023px){.profile-navigation-sidebar[_ngcontent-%COMP%]{width:30%;margin-right:40px}.profile-content-container[_ngcontent-%COMP%]{width:75%}}@media only screen and (max-width: 767px){.profile-component-container[_ngcontent-%COMP%]{flex-direction:column;padding:30px 16px 84px;overflow-y:auto}.profile-navigation-sidebar[_ngcontent-%COMP%]{width:100%;margin-bottom:40px;margin-right:0;position:static}.profile-content-container[_ngcontent-%COMP%]{width:100%;height:auto;overflow:visible;padding-bottom:0}}",".profile-common-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.profile-common-sub-container[_ngcontent-%COMP%]{background-color:#fff;border-radius:10px;padding:18px;width:100%;margin:0 0 18px}.profile-common-title[_ngcontent-%COMP%]{font-size:18px;line-height:24px;font-family:Inter-Bold;color:#253658;display:flex;align-items:center;gap:5px}hr.profile-common-hr[_ngcontent-%COMP%]{margin:18px 0}.profile-common-paragraph[_ngcontent-%COMP%]{font-size:14px;color:#7b8db1}.profile-common-sub-title[_ngcontent-%COMP%]{margin-bottom:12px;color:#000;line-height:24px;font-size:15px;font-weight:600;text-transform:capitalize;display:flex;align-items:center;gap:5px}.profile-big-sub-title[_ngcontent-%COMP%]{font-size:28px;font-family:Inter-Bold;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#253658;margin-bottom:8px}
13.content-separator[_ngcontent-%COMP%]{height:1px;background-color:#7b8db14d;margin:18px 0}.profile-sub-header[_ngcontent-%COMP%]{font-size:14px;color:#25365899;max-width:380px}.profile-details-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;height:36px}.profile-buttons-container[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px}.profile-details-cancel-button[_ngcontent-%COMP%], .profile-details-save-button[_ngcontent-%COMP%]{width:90px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px}.profile-details-cancel-button[_ngcontent-%COMP%]:hover, .profile-details-save-button[_ngcontent-%COMP%]:hover{opacity:.8}.profile-details-cancel-button[_ngcontent-%COMP%]{background:#7b8db114;color:#7b8db1;margin:0 12px 0 auto}.profile-details-save-button[_ngcontent-%COMP%]{background:#00abfe;color:#fff}.profile-details-preview[_ngcontent-%COMP%]{padding:0 22px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px;border:1px solid #00abfe;color:#00abfe;background:#fff}.disabled-button[_ngcontent-%COMP%]{background:gray!important;color:#d3d3d3!important}.disabled-button[_ngcontent-%COMP%]:hover{opacity:1} autocomplete-menu .autocomplete-menu-container{border-radius:10px;background-color:#7b8db114;padding:5px 12px;height:46px;cursor:text} autocomplete-menu .autocomplete-menu-container input{color:#253658;font-size:14px} autocomplete-menu .autocomplete-menu-container .mat-form-field-label-wrapper label mat-label{color:#00abfe!important;font-weight:700} autocomplete-menu .autocomplete-menu-container .mdc-line-ripple{display:none!important}.billing-plan-details-title[_ngcontent-%COMP%]{color:#888;font-size:12px;font-weight:400;text-transform:capitalize}.billing-plan-details-sub-title[_ngcontent-%COMP%]{color:#000;font-size:13px;font-weight:700;text-transform:capitalize}"]});}}return n;})();F();var Tr=Ji(oo());I();F();function Oc(n,m){if(n&1&&(o(0,"span",15),s(1),r()),n&2){let e=p(3);l(),A("Resets ",e.resetDateLabel,"");}}function Ec(n,m){if(n&1&&(o(0,"div",12)(1,"div",13)(2,"span",14),s(3,"Subscription credits"),r(),b(4,Oc,2,1,"span",23),r(),o(5,"div",16)(6,"div",17)(7,"span",18),s(8),r(),o(9,"span",19),s(10),r()(),o(11,"div",24),g(12,"mat-spinner",21)(13,"mat-progress-spinner",22),r()()()),n&2){let e=p(2);l(4),c("ngIf",e.resetDateLabel),l(4),E(e.formatNumber(e.subscriptionCreditsLeft)),l(2),A("of ",e.formatNumber(e.creditsData.subscription.limit),""),l(2),c("diameter",32)("strokeWidth",6)("value",100),l(),c("diameter",32)("strokeWidth",6)("value",e.subscriptionUsedPercent);}}function kc(n,m){if(n&1&&(o(0,"div",1)(1,"div",2)(2,"div",3),s(3,"AI Credits"),r()(),o(4,"div",4)(5,"div",5)(6,"div",6),s(7),o(8,"span",7),s(9,"credits"),r()(),o(10,"div",8),s(11,"Available to use now"),r()(),g(12,"div",9),o(13,"div",10),b(14,Ec,14,9,"div",11),o(15,"div",12)(16,"div",13)(17,"span",14),s(18,"Top-up credits"),r(),o(19,"span",15),s(20,"Purchased \xB7 Never expire"),r()(),o(21,"div",16)(22,"div",17)(23,"span",18),s(24),r(),o(25,"span",19),s(26),r()(),o(27,"div",20),g(28,"mat-spinner",21)(29,"mat-progress-spinner",22),r()()()()()()),n&2){let e=p();l(7),A(" ",e.formatNumber(e.creditsData.totalAvailable)," "),l(7),c("ngIf",e.hasSubscriptionCredits),l(10),E(e.formatNumber(e.topUpCreditsLeft)),l(2),A("of ",e.formatNumber(e.creditsData.topUp.total),""),l(2),c("diameter",32)("strokeWidth",6)("value",100),l(),c("diameter",32)("strokeWidth",6)("value",e.topUpUsedPercent);}}var Dr=(()=>{class n{constructor(){this.creditsData=null;}get hasSubscriptionCredits(){return!!this.creditsData&&this.creditsData.subscription.limit>0;}get subscriptionCreditsLeft(){return this.creditsData?Math.max(0,this.creditsData.subscription.limit-this.creditsData.subscription.used):0;}get topUpCreditsLeft(){return this.creditsData?Math.max(0,this.creditsData.topUp.total-this.creditsData.topUp.used):0;}get subscriptionUsedPercent(){if(!this.creditsData?.subscription.limit)return 0;let e=this.creditsData.subscription.used/this.creditsData.subscription.limit*100;return Math.round(Math.min(100,Math.max(0,e)));}get topUpUsedPercent(){if(!this.creditsData?.topUp.total)return 0;let e=this.creditsData.topUp.used/this.creditsData.topUp.total*100;return Math.round(Math.min(100,Math.max(0,e)));}get resetDateLabel(){return this.creditsData?.subscription.resetDate?(0,Tr.default)(this.creditsData.subscription.resetDate).format("MMM D"):"";}
13formatNumber(e){return e.toLocaleString("en-US");}static{this.ɵfac=function(t){return new(t||n)();};}static{this.ɵcmp=P({type:n,selectors:[["app-available-credits-card"]],inputs:{creditsData:"creditsData"},standalone:!0,features:[M],decls:1,vars:1,consts:[["class","profile-common-sub-container credits-card",4,"ngIf"],[1,"profile-common-sub-container","credits-card"],[1,"section-header"],[1,"profile-common-title"],[1,"credits-overview"],[1,"credits-total"],[1,"credits-total-number"],[1,"credits-total-unit"],[1,"credits-total-label"],[1,"credits-divider"],[1,"credits-breakdown"],["class","credit-type-row",4,"ngIf"],[1,"credit-type-row"],[1,"credit-type-info"],[1,"credit-type-label"],[1,"credit-type-note"],[1,"credit-type-right"],[1,"credit-type-values"],[1,"credit-type-value"],[1,"credit-type-sub-value"],[1,"progress-circle","addon"],["mode","determinate",1,"track",3,"diameter","strokeWidth","value"],["mode","determinate",3,"diameter","strokeWidth","value"],["class","credit-type-note",4,"ngIf"],[1,"progress-circle"]],template:function(t,i){t&1&&b(0,kc,30,10,"div",0),t&2&&c("ngIf",i.creditsData);},dependencies:[U,N,Mi,Pi],styles:["[_nghost-%COMP%]{display:block;width:100%}.credits-card[_ngcontent-%COMP%]{padding:24px;border-radius:16px;display:flex;flex-direction:column;gap:24px;margin:0}.section-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.credits-overview[_ngcontent-%COMP%]{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.credits-total[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px;flex:1 0 0;min-width:120px}.credits-total-number[_ngcontent-%COMP%]{font-size:30px;font-weight:700;color:#253658;line-height:1;display:flex;align-items:baseline;gap:8px}.credits-total-unit[_ngcontent-%COMP%]{font-size:18px;font-weight:600}.credits-total-label[_ngcontent-%COMP%]{font-size:14px;color:#6b7280}.credits-divider[_ngcontent-%COMP%]{width:1px;height:64px;background-color:#e5e7eb;flex-shrink:0}.credits-breakdown[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px;flex:1}.credit-type-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px}.credit-type-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px}.credit-type-label[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#333}.credit-type-value[_ngcontent-%COMP%]{font-size:14px;font-weight:600;color:#253658}.credit-type-note[_ngcontent-%COMP%]{font-size:12px;color:#6b7280}.credit-type-right[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.progress-circle[_ngcontent-%COMP%]{position:relative;width:32px;height:32px;flex-shrink:0}.progress-circle[_ngcontent-%COMP%] .track circle{stroke:#4481fd26!important}.progress-circle[_ngcontent-%COMP%] .mat-mdc-progress-spinner:not(.track) circle{stroke:#4481fd;stroke-linecap:round}.progress-circle.addon[_ngcontent-%COMP%] .track circle{stroke:#14b8a629!important}.progress-circle.addon[_ngcontent-%COMP%] .mat-mdc-progress-spinner:not(.track) circle{stroke:#14b8a6;stroke-linecap:round}.progress-circle[_ngcontent-%COMP%] mat-spinner[_ngcontent-%COMP%], .progress-circle[_ngcontent-%COMP%] mat-progress-spinner[_ngcontent-%COMP%]{position:absolute;top:0;left:0}.credit-type-values[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end}.credit-type-sub-value[_ngcontent-%COMP%]{font-size:12px;color:#6b7280}@media screen and (max-width: 768px){.credits-overview[_ngcontent-%COMP%]{flex-direction:column;gap:20px}.credits-divider[_ngcontent-%COMP%]{width:100%;height:1px}}",".profile-common-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.profile-common-sub-container[_ngcontent-%COMP%]{background-color:#fff;border-radius:10px;padding:18px;width:100%;margin:0 0 18px}.profile-common-title[_ngcontent-%COMP%]{font-size:18px;line-height:24px;font-family:Inter-Bold;color:#253658;display:flex;align-items:center;gap:5px}hr.profile-common-hr[_ngcontent-%COMP%]{margin:18px 0}.profile-common-paragraph[_ngcontent-%COMP%]{font-size:14px;color:#7b8db1}.profile-common-sub-title[_ngcontent-%COMP%]{margin-bottom:12px;color:#000;line-height:24px;font-size:15px;font-weight:600;text-transform:capitalize;display:flex;align-items:center;gap:5px}.profile-big-sub-title[_ngcontent-%COMP%]{font-size:28px;font-family:Inter-Bold;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#253658;margin-bottom:8px}
13.content-separator[_ngcontent-%COMP%]{height:1px;background-color:#7b8db14d;margin:18px 0}.profile-sub-header[_ngcontent-%COMP%]{font-size:14px;color:#25365899;max-width:380px}.profile-details-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;height:36px}.profile-buttons-container[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px}.profile-details-cancel-button[_ngcontent-%COMP%], .profile-details-save-button[_ngcontent-%COMP%]{width:90px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px}.profile-details-cancel-button[_ngcontent-%COMP%]:hover, .profile-details-save-button[_ngcontent-%COMP%]:hover{opacity:.8}.profile-details-cancel-button[_ngcontent-%COMP%]{background:#7b8db114;color:#7b8db1;margin:0 12px 0 auto}.profile-details-save-button[_ngcontent-%COMP%]{background:#00abfe;color:#fff}.profile-details-preview[_ngcontent-%COMP%]{padding:0 22px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px;border:1px solid #00abfe;color:#00abfe;background:#fff}.disabled-button[_ngcontent-%COMP%]{background:gray!important;color:#d3d3d3!important}.disabled-button[_ngcontent-%COMP%]:hover{opacity:1} autocomplete-menu .autocomplete-menu-container{border-radius:10px;background-color:#7b8db114;padding:5px 12px;height:46px;cursor:text} autocomplete-menu .autocomplete-menu-container input{color:#253658;font-size:14px} autocomplete-menu .autocomplete-menu-container .mat-form-field-label-wrapper label mat-label{color:#00abfe!important;font-weight:700} autocomplete-menu .autocomplete-menu-container .mdc-line-ripple{display:none!important}.billing-plan-details-title[_ngcontent-%COMP%]{color:#888;font-size:12px;font-weight:400;text-transform:capitalize}.billing-plan-details-sub-title[_ngcontent-%COMP%]{color:#000;font-size:13px;font-weight:700;text-transform:capitalize}"]});}}return n;})();I();function Ic(n,m){n&1&&g(0,"app-billing-shimmer");}function Tc(n,m){n&1&&g(0,"billing");}function Dc(n,m){if(n&1&&(o(0,"div",0),g(1,"app-available-credits-card",1),o(2,"div",2)(3,"div",3),g(4,"app-billing-shimmer"),r(),o(5,"div",4)(6,"div",5),g(7,"i",6),o(8,"h2",7),s(9,"Billing access restricted"),r(),o(10,"p",8),s(11,"Only the organization owner can view or change billing."),r()()()()()),n&2){let e=p();l(),c("creditsData",e.creditsData());}}var Ar=(()=>{class n{constructor(){this.workspacePermissionService=Ht(Rt),this.creditsService=Ht(Lt),this.status=Et("loading"),this.creditsData=Et(null);}ngOnInit(){return C(this,null,function*(){let e=this.workspacePermissionService.canViewBilling().catch(()=>!1),t=this.creditsService.getCreditsUsage().then(d=>this.mapCreditsResponse(d)).catch(()=>null),[i,a]=yield Promise.all([e,t]);this.creditsData.set(a),this.status.set(i?"allowed":"denied");});}mapCreditsResponse(e){return e?.credits?{totalAvailable:Math.max(0,e.credits.total-e.credits.used),subscription:{used:e.subscription?.used??0,limit:e.subscription?.total??0,resetDate:e.subscription?.resetAt??""},topUp:{used:e.oneTimePurchases?.used??0,total:e.oneTimePurchases?.total??0}}:null;}static{this.ɵfac=function(t){return new(t||n)();};}static{this.ɵcmp=P({type:n,selectors:[["app-billing-page"]],standalone:!0,features:[M],decls:3,vars:1,consts:[[1,"billing-locked"],[3,"creditsData"],[1,"billing-locked__restricted"],["aria-hidden","true",1,"billing-locked__backdrop"],[1,"billing-locked__overlay"],["role","status","aria-live","polite",1,"billing-locked__card"],["aria-hidden","true",1,"fa","fa-lock","billing-locked__icon"],[1,"billing-locked__title"],[1,"billing-locked__message"]],template:function(t,i){if(t&1&&b(0,Ic,1,0)(1,Tc,1,0)(2,Dc,12,1),t&2){let a;$e(0,(a=i.status())==="loading"?0:a==="allowed"?1:a==="denied"?2:-1);}},dependencies:[U,Ir,Qi,Dr],styles:[".billing-locked[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.billing-locked__restricted[_ngcontent-%COMP%]{position:relative;min-height:360px}.billing-locked__backdrop[_ngcontent-%COMP%]{filter:blur(8px);pointer-events:none;-webkit-user-select:none;user-select:none}.billing-locked__overlay[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;align-items:flex-start;justify-content:center;padding:100px 24px 24px;background:#ffffff8c}.billing-locked__card[_ngcontent-%COMP%]{max-width:420px;padding:32px 28px;background:#fff;border-radius:16px;box-shadow:0 12px 32px #0f172a29;text-align:center}.billing-locked__icon[_ngcontent-%COMP%]{font-size:32px;color:var(--foreground-text-icons-fg-primary, #253658);margin-bottom:12px}.billing-locked__title[_ngcontent-%COMP%]{margin:0 0 8px;font-size:20px;font-weight:600;color:var(--foreground-text-icons-fg-primary, #253658)}.billing-locked__message[_ngcontent-%COMP%]{margin:0;font-size:14px;color:var(--foreground-text-icons-fg-secondary, #4b5563)}"]});}}return n;})();I();Be();F();ei();var Vr="^(https?:\\/\\/)?(www\\.)?[a-zA-Z0-9-]+(\\.[a-zA-Z0-9-]+)+(\\/[a-zA-Z0-9-._~:/?#[\\]@!$&'()*+,;=]*)?",zr=ct.globals.origin+"/auth/sso/";I();var Fr=(()=>{class n{static{this.ɵfac=function(t){return new(t||n)();};}static{this.ɵcmp=P({type:n,selectors:[["app-sso-shimmer"]],standalone:!0,features:[M],decls:36,vars:0,consts:[[1,"sso-settings-shimmer"],[1,"shimmer-card"],[1,"shimmer-title-bar"],[1,"shimmer-block","title-block"],[1,"shimmer-separator"],[1,"shimmer-auth-row"],[1,"shimmer-auth-info"],[1,"shimmer-block","sub-title-block"],[1,"shimmer-block","text-block"],[1,"shimmer-block","text-block-short"],[1,"shimmer-block","button-block"],[1,"shimmer-title-group"],[1,"shimmer-block","text-block-medium"],[1,"shimmer-block","icon-block"],[1,"shimmer-form-row"],[1,"shimmer-form-col"],[1,"shimmer-field"],[1,"shimmer-block","label-block"],[1,"shimmer-block","input-block"],[1,"shimmer-block","hint-block"],[1,"shimmer-block","upload-block"],[1,"wave"]],template:function(t,i){t&1&&(o(0,"div",0)(1,"div",1)(2,"div",2),g(3,"div",3),r(),g(4,"div",4),o(5,"div",5)(6,"div",6),g(7,"div",7)(8,"div",8)(9,"div",9),r(),g(10,"div",10),r()(),o(11,"div",1)(12,"div",2)(13,"div",11),g(14,"div",3)(15,"div",12),r(),g(16,"div",13),r(),g(17,"div",4),o(18,"div",14)(19,"div",15)(20,"div",16),g(21,"div",17)(22,"div",18),r(),o(23,"div",16),g(24,"div",17)(25,"div",18)(26,"div",19),r(),o(27,"div",16),g(28,"div",17)(29,"div",18)(30,"div",19),r()(),o(31,"div",15),g(32,"div",17)(33,"div",20)(34,"div",19),r()()(),g(35,"div",21),r());},styles:[".sso-settings-shimmer[_ngcontent-%COMP%]{position:relative;overflow:hidden;width:100%;display:flex;flex-direction:column;gap:18px}.shimmer-card[_ngcontent-%COMP%]{background:#fff;border-radius:16px;padding:24px;width:100%}.shimmer-block[_ngcontent-%COMP%]{background:#4481fd1f;border-radius:6px;flex-shrink:0}.title-block[_ngcontent-%COMP%]{width:140px;height:22px}.sub-title-block[_ngcontent-%COMP%]{width:160px;height:16px}.text-block[_ngcontent-%COMP%]{width:100%;height:14px}.text-block-short[_ngcontent-%COMP%]{width:75%;height:14px}
13.text-block-medium[_ngcontent-%COMP%]{width:280px;height:14px}.button-block[_ngcontent-%COMP%]{width:90px;height:36px;border-radius:8px}.icon-block[_ngcontent-%COMP%]{width:36px;height:36px;border-radius:8px}.label-block[_ngcontent-%COMP%]{width:120px;height:14px}.input-block[_ngcontent-%COMP%]{width:100%;height:40px;border-radius:8px}.upload-block[_ngcontent-%COMP%]{width:100%;height:120px;border-radius:12px}.hint-block[_ngcontent-%COMP%]{width:80%;height:12px}.shimmer-separator[_ngcontent-%COMP%]{height:1px;background:#4481fd14;margin:20px 0}.shimmer-title-bar[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.shimmer-title-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.shimmer-auth-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:16px}.shimmer-auth-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px;flex:1}.shimmer-form-row[_ngcontent-%COMP%]{display:flex;gap:32px}.shimmer-form-col[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:20px}.shimmer-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.wave[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.3) 50%,transparent 100%);transform:translate(-100%);animation:_ngcontent-%COMP%_wave 1.5s infinite}@keyframes _ngcontent-%COMP%_wave{0%{transform:translate(-100%)}50%{transform:translate(100%)}to{transform:translate(100%)}}@media only screen and (max-width: 767px){.shimmer-form-row[_ngcontent-%COMP%]{flex-direction:column;gap:24px}}",".profile-common-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.profile-common-sub-container[_ngcontent-%COMP%]{background-color:#fff;border-radius:10px;padding:18px;width:100%;margin:0 0 18px}.profile-common-title[_ngcontent-%COMP%]{font-size:18px;line-height:24px;font-family:Inter-Bold;color:#253658;display:flex;align-items:center;gap:5px}hr.profile-common-hr[_ngcontent-%COMP%]{margin:18px 0}.profile-common-paragraph[_ngcontent-%COMP%]{font-size:14px;color:#7b8db1}.profile-common-sub-title[_ngcontent-%COMP%]{margin-bottom:12px;color:#000;line-height:24px;font-size:15px;font-weight:600;text-transform:capitalize;display:flex;align-items:center;gap:5px}.profile-big-sub-title[_ngcontent-%COMP%]{font-size:28px;font-family:Inter-Bold;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#253658;margin-bottom:8px}
13.content-separator[_ngcontent-%COMP%]{height:1px;background-color:#7b8db14d;margin:18px 0}.profile-sub-header[_ngcontent-%COMP%]{font-size:14px;color:#25365899;max-width:380px}.profile-details-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;height:36px}.profile-buttons-container[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px}.profile-details-cancel-button[_ngcontent-%COMP%], .profile-details-save-button[_ngcontent-%COMP%]{width:90px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px}.profile-details-cancel-button[_ngcontent-%COMP%]:hover, .profile-details-save-button[_ngcontent-%COMP%]:hover{opacity:.8}.profile-details-cancel-button[_ngcontent-%COMP%]{background:#7b8db114;color:#7b8db1;margin:0 12px 0 auto}.profile-details-save-button[_ngcontent-%COMP%]{background:#00abfe;color:#fff}.profile-details-preview[_ngcontent-%COMP%]{padding:0 22px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px;border:1px solid #00abfe;color:#00abfe;background:#fff}.disabled-button[_ngcontent-%COMP%]{background:gray!important;color:#d3d3d3!important}.disabled-button[_ngcontent-%COMP%]:hover{opacity:1} autocomplete-menu .autocomplete-menu-container{border-radius:10px;background-color:#7b8db114;padding:5px 12px;height:46px;cursor:text} autocomplete-menu .autocomplete-menu-container input{color:#253658;font-size:14px} autocomplete-menu .autocomplete-menu-container .mat-form-field-label-wrapper label mat-label{color:#00abfe!important;font-weight:700} autocomplete-menu .autocomplete-menu-container .mdc-line-ripple{display:none!important}.billing-plan-details-title[_ngcontent-%COMP%]{color:#888;font-size:12px;font-weight:400;text-transform:capitalize}.billing-plan-details-sub-title[_ngcontent-%COMP%]{color:#000;font-size:13px;font-weight:700;text-transform:capitalize}"]});}}return n;})();te();I();Oe();Be();ye();Bt();be();F();var Ac=["fileInput"];function Vc(n,m){n&1&&g(0,"app-sso-shimmer");}function zc(n,m){if(n&1){let e=y();o(0,"lib-button",24),u("clicked",function(){f(e);let i=p(2);return h(i.onConnectClick());}),s(1," Connect "),r();}}function Fc(n,m){if(n&1){let e=y();o(0,"lib-button",25),u("clicked",function(){f(e);let i=p(2);return h(i.onDisconnectClick());}),s(1," Disconnect "),r();}}function Bc(n,m){if(n&1){let e=y();o(0,"lib-button-icon",26),u("clicked",function(){f(e);let i=p(2);return h(i.onEditClick());}),r();}}
13function Rc(n,m){if(n&1){let e=y();R(0),o(1,"lib-button",27),u("clicked",function(){f(e);let i=p(2);return h(i.onCancelClick());}),s(2,"Cancel"),r(),o(3,"lib-button",24),u("clicked",function(){f(e);let i=p(2);return h(i.onSaveClick());}),s(4,"Save"),r(),L();}}function Lc(n,m){if(n&1){let e=y();o(0,"div",28),g(1,"img",29),o(2,"span",30),s(3,"SSO not configured"),r(),o(4,"p",31),s(5,"Configure SAML authentication to generate your SSO endpoints and certificates."),r(),o(6,"lib-button",32),u("clicked",function(){f(e);let i=p(2);return h(i.onConnectClick());}),s(7,"+ Configure SAML"),r()();}}function Nc(n,m){if(n&1){let e=y();o(0,"div",44),u("click",function(){f(e);let i=p(3);return h(i.onSelectFileRequest());}),g(1,"img",45),o(2,"span",46),s(3,"Upload certificate"),r(),o(4,"span",47),s(5,".pem or .crt file - Max 64 KB"),r(),o(6,"lib-button",48),s(7,"Import file"),r()();}}function Uc(n,m){if(n&1){let e=y();o(0,"div",49)(1,"div",50),g(2,"img",51),o(3,"div",52)(4,"span",53),s(5),r(),o(6,"span",54),s(7),r()()(),o(8,"lib-button-icon",55),u("clicked",function(){f(e);let i=p(3);return h(i.onRemoveCertificate());}),r()();}if(n&2){let e=p(3);l(5),E(e.certificateFileName),l(2),E(e.certificateUploadDate);}}function jc(n,m){if(n&1){let e=y();o(0,"div",33)(1,"div",34)(2,"div",35)(3,"lib-input",36),u("iconClick",function(){f(e);let i=p(2);return h(i.copyToClipboard(i.postback.value));}),r()(),o(4,"div",35)(5,"lib-input",37),u("valueChange",function(i){f(e);let a=p(2);return a.identityProviderUrl.setValue(i),h(a.setChangeStatus(!0));}),r(),o(6,"span",38),s(7,"The SSO endpoint your users will be redirected to for authentication."),r()(),o(8,"div",35)(9,"lib-input",39),u("valueChange",function(i){f(e);let a=p(2);return a.issuerUrl.setValue(i),h(a.setChangeStatus(!0));}),r(),o(10,"span",38),s(11,"The unique identifier of your identity provider, also called SP Entity ID."),r()()(),o(12,"div",40)(13,"span",41),s(14,"SAML Certificate"),r(),b(15,Nc,8,0,"div",42)(16,Uc,9,2,"div",43),o(17,"span",38),s(18,"X.509 public certificate from your identity provider to verify SAML assertions."),r()()();}if(n&2){let e=p(2);l(3),c("label",!0)("readonly",!0)("required",!1)("value",e.postback.value),l(2),c("label",!0)("required",!1)("value",e.identityProviderUrl.value),l(4),c("label",!0)("required",!1)("value",e.issuerUrl.value),l(6),c("ngIf",!e.certificateFileName),l(),c("ngIf",e.certificateFileName);}}function Hc(n,m){if(n&1){let e=y();o(0,"lib-button-icon",62),u("clicked",function(){f(e);let i=p(3);return h(i.copyToClipboard(i.identityProviderUrl.value));}),r();}}function qc(n,m){if(n&1){let e=y();o(0,"lib-button-icon",62),u("clicked",function(){f(e);let i=p(3);return h(i.copyToClipboard(i.issuerUrl.value));}),r();}}function Wc(n,m){if(n&1&&(o(0,"div",49)(1,"div",50),g(2,"img",51),o(3,"div",52)(4,"span",53),s(5),r(),o(6,"span",54),s(7),r()()()()),n&2){let e=p(3);l(5),E(e.certificateFileName),l(2),E(e.certificateUploadDate);}}function Gc(n,m){n&1&&(o(0,"div",66)(1,"span",61),s(2,"No certificate uploaded"),r()());}function Yc(n,m){if(n&1){let e=y();o(0,"div",56)(1,"div",57)(2,"div",58)(3,"span",59),s(4,"Postback URL"),r(),o(5,"div",60)(6,"span",61),s(7),r(),o(8,"lib-button-icon",62),u("clicked",function(){f(e);let i=p(2);return h(i.copyToClipboard(i.postback.value));}),r()()(),o(9,"div",58)(10,"span",59),s(11,"Identity Provider Sign-In URL"),r(),o(12,"div",60)(13,"span",61),s(14),r(),b(15,Hc,1,0,"lib-button-icon",63),r()(),o(16,"div",58)(17,"span",59),s(18,"Issuer URL"),r(),o(19,"div",60)(20,"span",61),s(21),r(),b(22,qc,1,0,"lib-button-icon",63),r()()(),o(23,"div",64)(24,"span",41),s(25,"SAML Certificate"),r(),b(26,Wc,8,2,"div",43)(27,Gc,3,0,"div",65),r()();}if(n&2){let e=p(2);l(7),E(e.postback.value),l(7),E(e.identityProviderUrl.value),l(),c("ngIf",e.identityProviderUrl.value),l(6),E(e.issuerUrl.value||"-"),l(),c("ngIf",e.issuerUrl.value),l(4),c("ngIf",e.certificateFileName),l(),c("ngIf",!e.certificateFileName);}}function Qc(n,m){if(n&1&&(o(0,"div",5)(1,"div",6)(2,"div",7)(3,"h2",8),s(4,"Authentication"),r()(),g(5,"div",9),o(6,"div",10)(7,"div",11)(8,"span",12),s(9,"SAML Authentication"),r(),o(10,"span",13),s(11," Single sign-on (SSO) allows your team to access BIGVU by signing in through your central identity provider. "),o(12,"a",14),s(13,"Learn more"),r()()(),b(14,zc,2,0,"lib-button",15)(15,Fc,2,0,"lib-button",16),r()(),o(16,"div",6)(17,"div",17)(18,"div")(19,"h2",8),s(20,"SSO Configuration"),r(),o(21,"p",18),s(22,"These values are required to configure your Identity Provider"),r()(),o(23,"div",19),b(24,Bc,1,0,"lib-button-icon",20)(25,Rc,5,0,"ng-container",1),r()(),g(26,"div",9),b(27,Lc,8,0,"div",21)(28,jc,19,12,"div",22)(29,Yc,28,7,"div",23),r()()),n&2){let e=p();c("@enterWithEase",void 0),l(14),c("ngIf",e.viewState==="empty"),l(),c("ngIf",e.viewState!=="empty"),l(9),c("ngIf",e.viewState==="read"),l(),c("ngIf",e.viewState==="editing"||e.viewState==="configuring"),l(2),c("ngIf",e.viewState==="empty"),l(),c("ngIf",e.viewState==="configuring"||e.viewState==="editing"),l(),c("ngIf",e.viewState==="read");}}function $c(n,m){if(n&1){let e=y();o(0,"div",67),u("click",function(){f(e);let i=p();
13return h(i.closeDisconnectModal());}),o(1,"div",68),u("click",function(i){return f(e),h(i.stopPropagation());}),o(2,"div",69)(3,"h3",70),s(4,"Disconnect SSO?"),r(),o(5,"lib-button-icon",71),u("clicked",function(){f(e);let i=p();return h(i.closeDisconnectModal());}),r()(),o(6,"p",72),s(7,"Are you sure? Your team will lose access via SSO and will need to sign in using their email and password."),r(),o(8,"div",73)(9,"lib-button",74),u("clicked",function(){f(e);let i=p();return h(i.closeDisconnectModal());}),s(10,"Cancel"),r(),o(11,"lib-button",75),u("clicked",function(){f(e);let i=p();return h(i.confirmDisconnect());}),s(12,"Disconnect"),r()()()();}}var Br=(()=>{class n extends et{constructor(e,t,i,a,d,_,w){super(i),this.requestsService=e,this.formBuilder=t,this.profileChangeService=i,this.notifier=a,this.deskManagerHelperService=d,this.eventsService=_,this.clipboard=w,this.showRequiredAffiliateFields=!1,this.cancel=new q(),this.save=new q(),this.isLoading=!1,this.viewState="empty",this.showDisconnectModal=!1,this.certificateFileName="",this.certificateUploadDate="",this.EVENT_PATH=this.eventsService.events,this.buildSSOSettingFormGroup=()=>{this.SSOSettingFormGroup=this.formBuilder.group({postback:[""],identity_provider_url:["",[Ce.required,Ce.pattern(Vr)]],saml_certification:["",[Ce.required]],issuer_url:[""],saml_certification_text:[null]});},this.setSSOSettingsData=()=>C(this,null,function*(){try{this.isLoading=!0;let v=yield this.fetchSAMLConfig(),O=yield this.deskManagerHelperService.getOrganizationData();this.organizationId=O.id;let D={postback:zr+O.id,samlUrl:v?.samlUrl||"",saml_certification:v?.idpCertificateExists?"Valid certificate detected":"",issuer_url:v?.issuer_url};this.chachedSAMLData=D,this.setSSOSettingsFormControlsValues(D),this.setFormControlReference(this.SSOSettingFormGroup),this.setConfirmationAction(this.saveSSOConfiguration),this.noSettingsFound?this.viewState="empty":(this.viewState="read",v?.idpCertificateExists&&(this.certificateFileName="saml-certificate.pem",this.certificateUploadDate="Uploaded"));}catch(v){console.error(v),this.notifier.error("Failed to load SSO Configuration");}finally{this.formInitialized=!0,this.isLoading=!1;}}),this.setSSOSettingsFormControlsValues=v=>{this.SSOSettingFormGroup.patchValue({postback:v.postback||"",identity_provider_url:v.samlUrl,saml_certification:v.saml_certification?v.saml_certification:"",issuer_url:v.issuer_url?v.issuer_url:""});},this.resetForm=()=>{this.chachedSAMLData?this.setSSOSettingsFormControlsValues(this.chachedSAMLData):this.SSOSettingFormGroup.reset(),this.SSOSettingFormGroup.markAsPristine(),this.profileChangesService.setHasChanges(!1);},this.setChangeStatus=v=>{this.hasChanges=v;},this.onConnectClick=()=>{this.eventsService.log(this.eventsService.events.profile.profileProcessStart,{process:"sso-configuration"}),this.viewState="configuring";},this.onEditClick=()=>{this.eventsService.log(this.eventsService.events.profile.profileProcessStart,{process:"sso-edit"}),this.viewState="editing";},this.onCancelClick=()=>{this.resetForm(),this.certificateFileName=this.chachedSAMLData?.saml_certification&&this.certificateFileName||"",this.noSettingsFound?this.viewState="empty":this.viewState="read";},this.onSaveClick=()=>{this.saveSSOConfiguration();},this.onDisconnectClick=()=>{this.showDisconnectModal=!0;},this.closeDisconnectModal=()=>{this.showDisconnectModal=!1;},this.confirmDisconnect=()=>C(this,null,function*(){try{yield this.requestsService.deleteSamlSetting(),this.eventsService.log(this.eventsService.events.profile.profileSSODisconnect,{organizationId:this.organizationId}),this.noSettingsFound=!0,this.viewState="empty",this.showDisconnectModal=!1,this.chachedSAMLData=null,this.certificateFileName="",this.certificateUploadDate="",this.SSOSettingFormGroup.reset(),this.SSOSettingFormGroup.patchValue({postback:this.postback.value}),this.notifier.success("SSO disconnected successfully");}catch(v){console.error(v),this.notifier.error("Failed to disconnect SSO. Please try again");}}),this.copyToClipboard=v=>{this.clipboard.copy(v),this.notifier.info("Copied to clipboard");},this.saveSSOConfiguration=v=>C(this,null,function*(){if(!this.hasChanges&&!v){this.viewState=this.noSettingsFound?"empty":"read";return;}if(this.SSOSettingFormGroup.invalid&&v?.enabled!==void 0)throw this.notifier.error("One or more fields are invalid"),new Error();let O="SAML configuration saved successfully.",D=this.viewState==="configuring";try{let j;
13v?j=v:(j=K(K({samlUrl:this.identityProviderUrl.value},this.samlCertificationFile.value&&{idpCertificate:this.samlCertificationFile.value}),this.issuerUrl.value&&{issuer_url:this.issuerUrl.value}),this.noSettingsFound||(j.enabled=!0)),this.noSettingsFound?(yield this.requestsService.createSamlSetting(it(K({},j),{enabled:!0})),this.noSettingsFound=!1):yield this.requestsService.updateSamlSetting(j),this.viewState="read",this.chachedSAMLData={postback:this.postback.value,samlUrl:this.identityProviderUrl.value,saml_certification:this.samlCertification.value||"Valid certificate detected",issuer_url:this.issuerUrl.value},this.eventsService.log(this.eventsService.events.profile.profileProcessEnd,{process:D?"sso-configuration":"sso-edit"}),this.notifier.success(O);}catch(j){console.error(j),this.notifier.error("Failed to save SAML configuration. Please try again");}finally{this.setHasChanges(!1),this.hasChanges=!1,this.SSOSettingFormGroup.markAsPristine();}}),this.MAX_CERTIFICATE_SIZE=65536,this.onCertificateUpload=v=>{let O=v.target,D=O.files?.[0];if(D){if(D.size>this.MAX_CERTIFICATE_SIZE){this.notifier.error("Certificate file exceeds 64KB limit");return;}this.samlCertification.setValue(D.name),this.certificateFileName=D.name,this.certificateUploadDate=new Date().toLocaleDateString(),this.parseCertificateData(D),this.setChangeStatus(!0),O.value=null;}},this.onSelectFileRequest=()=>{this.fileInput.nativeElement.click();},this.onRemoveCertificate=()=>{this.certificateFileName="",this.certificateUploadDate="",this.samlCertification.setValue(""),this.samlCertificationFile.setValue(null),this.setChangeStatus(!0);},this.fetchSAMLConfig=()=>C(this,null,function*(){try{return yield this.requestsService.getSamlSetting();}catch(v){if(v.status===404){this.noSettingsFound=!0;return;}throw new Error(`Failed to fetch SAML config: ${v.msg||v}`);}}),this.TEXT_CERT_EXTENSIONS=[".txt",".pem",".crt"],this.hasChanges=!1,this.acceptedFileTypes=".pem,.crt";}get postback(){return this.SSOSettingFormGroup.get("postback");}get identityProviderUrl(){return this.SSOSettingFormGroup.get("identity_provider_url");}get samlCertification(){return this.SSOSettingFormGroup.get("saml_certification");}get issuerUrl(){return this.SSOSettingFormGroup.get("issuer_url");}get samlCertificationFile(){return this.SSOSettingFormGroup.get("saml_certification_text");}ngOnInit(){this.buildSSOSettingFormGroup(),this.setSSOSettingsData();}ngOnDestroy(){super.ngOnDestroy(),this.affiliateFiledSubscription&&this.affiliateFiledSubscription.unsubscribe();}isTextCertificate(e){return this.TEXT_CERT_EXTENSIONS.some(t=>e.endsWith(t));}parseCertificateData(e){if(e){let t=new FileReader();t.onload=i=>{let a;if(this.isTextCertificate(e.name))a=i.target.result;else{let d=i.target.result,_=new Uint8Array(d),w="";for(let v=0;v<_.length;v++)w+=String.fromCharCode(_[v]);a=btoa(w);}this.samlCertificationFile.setValue(a);},t.onerror=i=>{console.error("Error reading file:",i);},this.isTextCertificate(e.name)?t.readAsText(e):t.readAsArrayBuffer(e);}}static{this.ɵfac=function(t){return new(t||n)(x(ie),x(At),x(Le),x(ee),x(Ge),x(Y),x(Fi));};}static{this.ɵcmp=P({type:n,selectors:[["sso-setting"]],viewQuery:function(t,i){if(t&1&&se(Ac,5),t&2){let a;re(a=ae())&&(i.fileInput=a.first);}},inputs:{showRequiredAffiliateFields:"showRequiredAffiliateFields"},outputs:{cancel:"cancel",save:"save"},standalone:!0,features:[W,M],decls:5,vars:4,consts:[["fileInput",""],[4,"ngIf"],["class","sso-component",4,"ngIf"],["class","modal-overlay",3,"click",4,"ngIf"],["type","file","aria-label","file upload",1,"upload-input",3,"change","accept"],[1,"sso-component"],[1,"sso-card"],[1,"card-header"],[1,"card-title"],[1,"separator"],[1,"auth-row"],[1,"auth-info"],[1,"auth-title"],[1,"auth-description"],["href","https://support.bigvu.tv","target","_blank","rel","noopener",1,"learn-more"],["variant","primary","size","sm",3,"clicked",4,"ngIf"],["variant","secondary","size","sm","class","disconnect-btn",3,"clicked",4,"ngIf"],[1,"config-header"],[1,"config-subtitle"],[1,"config-actions"],["variant","ghost","size","sm","iconContent","/img/icon-library/basic-ui/Edit.svg",3,"clicked",4,"ngIf"],["class","empty-state",4,"ngIf"],["class","config-form",4,"ngIf"],["class","config-read",4,"ngIf"],["variant","primary","size","sm",3,"clicked"],["variant","secondary","size","sm",1,"disconnect-btn",3,"clicked"],["variant","ghost","size","sm","iconContent","/img/icon-library/basic-ui/Edit.svg",3,"clicked"],["variant","ghost","size","sm",3,"clicked"],[1,"empty-state"],["src","/img/icon-library/basic-ui/link.svg","alt","",1,"empty-icon"],[1,"empty-title"],[1,"empty-description"],["variant","secondary","size","sm",3,"clicked"],[1,"config-form"],[1,"form-left"],[1,"form-field"],["labelText","Postback URL","labelType","outside","size","small","rightIcon","","rightIconContent","/img/icon-library/basic-ui/copy-text.svg",3,"iconClick","label","readonly","required","value"],["labelText","Identity Provider Sign-In URL","labelType","outside","size","small","placeholder","https://login.microsoftonline.com/tenant-id/saml2",3,"valueChange","label","required","value"],[1,"field-hint"],["labelText","Issuer URL","labelType","outside","size","small","placeholder","https://sts.windows.net/tenant-id/",3,"valueChange","label","required","value"],[1,"form-right"],[1,"cert-label"],["class","upload-area",3,"click",4,"ngIf"],["class","file-card",4,"ngIf"],[1,"upload-area",3,"click"],["src","/img/icon-library/basic-ui/import-upload.svg","alt","",1,"upload-icon"],[1,"upload-title"],[1,"upload-hint"],["variant","secondary","size","sm"],[1,"file-card"],[1,"file-info"],["src","/img/icon-library/basic-ui/attachment.svg","alt","",1,"file-icon"],[1,"file-details"],[1,"file-name"],[1,"file-date"],["variant","ghost","size","sm","iconContent","/img/icon-library/basic-ui/delete-trash.svg",3,"clicked"],[1,"config-read"],[1,"read-left"],[1,"read-field"],[1,"read-label"],[1,"read-value-row"],[1,"read-value"],["variant","ghost","size","xs","iconContent","/img/icon-library/basic-ui/copy-text.svg",3,"clicked"],["variant","ghost","size","xs","iconContent","/img/icon-library/basic-ui/copy-text.svg",3,"clicked",4,"ngIf"],[1,"read-right"],["class","no-cert",4,"ngIf"],[1,"no-cert"],[1,"modal-overlay",3,"click"],[1,"modal-card",3,"click"],[1,"modal-header"],[1,"modal-title"],["variant","ghost","size","sm","iconContent","/img/icon-library/basic-ui/close-icon-x.svg",3,"clicked"],[1,"modal-description"],[1,"modal-actions"],["variant","ghost","size","md",3,"clicked"],["variant","primary","size","md",1,"disconnect-confirm-btn",3,"clicked"]],template:function(t,i){if(t&1){let a=y();b(0,Vc,1,0,"app-sso-shimmer",1)(1,Qc,30,8,"div",2)(2,$c,13,0,"div",3),o(3,"input",4,0),u("change",function(_){return f(a),h(i.onCertificateUpload(_));}),r();}
13t&2&&(c("ngIf",i.isLoading),l(),c("ngIf",!i.isLoading),l(),c("ngIf",i.showDisconnectModal),l(),c("accept",i.acceptedFileTypes));},dependencies:[Me,di,Fr,U,N,B,Je,ue],styles:[".sso-component[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;gap:18px}.sso-card[_ngcontent-%COMP%]{background:#fff;border-radius:16px;padding:24px;width:100%}.card-header[_ngcontent-%COMP%]{margin-bottom:0}.card-title[_ngcontent-%COMP%]{font-size:20px;font-weight:600;font-family:Inter-SemiBold,Inter,sans-serif;color:#253658;margin:0;line-height:28px}.separator[_ngcontent-%COMP%]{height:1px;background-color:transparent;margin:20px 0}.auth-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px}.auth-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px;flex:1}.auth-title[_ngcontent-%COMP%]{color:#253658;font-size:15px;font-weight:600;line-height:22px}.auth-description[_ngcontent-%COMP%]{font-size:14px;color:#7b8db1;line-height:20px}.auth-description[_ngcontent-%COMP%] .learn-more[_ngcontent-%COMP%]{color:#3b82f6;text-decoration:none;cursor:pointer}.auth-description[_ngcontent-%COMP%] .learn-more[_ngcontent-%COMP%]:hover{text-decoration:underline} .disconnect-btn button{color:#ef4444!important;border-color:#ef4444!important} .disconnect-btn button:hover{background-color:#ef444414!important}.config-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.config-subtitle[_ngcontent-%COMP%]{font-size:14px;color:#7b8db1;margin:4px 0 0;line-height:20px}.config-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;flex-shrink:0}.empty-state[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:40px 20px;text-align:center}.empty-icon[_ngcontent-%COMP%]{width:40px;height:40px;opacity:.4;margin-bottom:16px}.empty-title[_ngcontent-%COMP%]{font-size:16px;font-weight:600;color:#253658;margin-bottom:8px}.empty-description[_ngcontent-%COMP%]{font-size:14px;color:#7b8db1;margin:0 0 20px;max-width:400px;line-height:20px}.config-form[_ngcontent-%COMP%]{display:flex;gap:32px}.form-left[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:20px}.form-right[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:12px}.form-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.field-hint[_ngcontent-%COMP%]{font-size:12px;color:#94a3b8;line-height:16px}.cert-label[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#253658;margin-bottom:4px}.upload-area[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:8px;padding:24px;border:2px dashed #e5e7eb;border-radius:12px;cursor:pointer;transition:border-color .15s ease,background-color .15s ease}.upload-area[_ngcontent-%COMP%]:hover{border-color:#c7d9fe;background-color:#4481fd08}.upload-icon[_ngcontent-%COMP%]{width:28px;height:28px;opacity:.5}.upload-title[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#253658}.upload-hint[_ngcontent-%COMP%]{font-size:12px;color:#94a3b8}.file-card[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:#f9fafb;border-radius:10px;gap:12px}.file-info[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;min-width:0}.file-icon[_ngcontent-%COMP%]{width:20px;height:20px;min-width:20px;opacity:.6}.file-details[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-width:0}.file-name[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#253658;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-date[_ngcontent-%COMP%]{font-size:12px;color:#94a3b8}.config-read[_ngcontent-%COMP%]{display:flex;gap:32px}.read-left[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:20px}.read-right[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:12px}.read-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.read-label[_ngcontent-%COMP%]{font-size:12px;font-weight:500;color:#7b8db1;text-transform:uppercase;letter-spacing:.5px}.read-value-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px}.read-value[_ngcontent-%COMP%]{font-size:14px;color:#253658;line-height:20px;word-break:break-all}.no-cert[_ngcontent-%COMP%]{padding:12px 0}.modal-overlay[_ngcontent-%COMP%]{position:fixed;inset:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:1000}.modal-card[_ngcontent-%COMP%]{background:#fff;border-radius:16px;padding:24px;width:440px;max-width:90vw;box-shadow:0 20px 60px #00000026}.modal-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.modal-title[_ngcontent-%COMP%]{font-size:18px;font-weight:600;color:#253658;margin:0}.modal-description[_ngcontent-%COMP%]{font-size:14px;color:#64748b;margin:0 0 24px;line-height:20px}.modal-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;
13gap:8px} .disconnect-confirm-btn button{background-color:#ef4444!important;border-color:#ef4444!important;color:#fff!important} .disconnect-confirm-btn button:hover{background-color:#dc2626!important;border-color:#dc2626!important}.upload-input[_ngcontent-%COMP%]{display:none}@media only screen and (max-width: 767px){.sso-card[_ngcontent-%COMP%]{padding:16px}.auth-row[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}.config-form[_ngcontent-%COMP%], .config-read[_ngcontent-%COMP%]{flex-direction:column;gap:24px}.config-header[_ngcontent-%COMP%]{flex-direction:column;gap:12px}}",".profile-common-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.profile-common-sub-container[_ngcontent-%COMP%]{background-color:#fff;border-radius:10px;padding:18px;width:100%;margin:0 0 18px}.profile-common-title[_ngcontent-%COMP%]{font-size:18px;line-height:24px;font-family:Inter-Bold;color:#253658;display:flex;align-items:center;gap:5px}hr.profile-common-hr[_ngcontent-%COMP%]{margin:18px 0}.profile-common-paragraph[_ngcontent-%COMP%]{font-size:14px;color:#7b8db1}.profile-common-sub-title[_ngcontent-%COMP%]{margin-bottom:12px;color:#000;line-height:24px;font-size:15px;font-weight:600;text-transform:capitalize;display:flex;align-items:center;gap:5px}.profile-big-sub-title[_ngcontent-%COMP%]{font-size:28px;font-family:Inter-Bold;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#253658;margin-bottom:8px}
13.content-separator[_ngcontent-%COMP%]{height:1px;background-color:#7b8db14d;margin:18px 0}.profile-sub-header[_ngcontent-%COMP%]{font-size:14px;color:#25365899;max-width:380px}.profile-details-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;height:36px}.profile-buttons-container[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px}.profile-details-cancel-button[_ngcontent-%COMP%], .profile-details-save-button[_ngcontent-%COMP%]{width:90px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px}.profile-details-cancel-button[_ngcontent-%COMP%]:hover, .profile-details-save-button[_ngcontent-%COMP%]:hover{opacity:.8}.profile-details-cancel-button[_ngcontent-%COMP%]{background:#7b8db114;color:#7b8db1;margin:0 12px 0 auto}.profile-details-save-button[_ngcontent-%COMP%]{background:#00abfe;color:#fff}.profile-details-preview[_ngcontent-%COMP%]{padding:0 22px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px;border:1px solid #00abfe;color:#00abfe;background:#fff}.disabled-button[_ngcontent-%COMP%]{background:gray!important;color:#d3d3d3!important}.disabled-button[_ngcontent-%COMP%]:hover{opacity:1} autocomplete-menu .autocomplete-menu-container{border-radius:10px;background-color:#7b8db114;padding:5px 12px;height:46px;cursor:text} autocomplete-menu .autocomplete-menu-container input{color:#253658;font-size:14px} autocomplete-menu .autocomplete-menu-container .mat-form-field-label-wrapper label mat-label{color:#00abfe!important;font-weight:700} autocomplete-menu .autocomplete-menu-container .mdc-line-ripple{display:none!important}.billing-plan-details-title[_ngcontent-%COMP%]{color:#888;font-size:12px;font-weight:400;text-transform:capitalize}.billing-plan-details-sub-title[_ngcontent-%COMP%]{color:#000;font-size:13px;font-weight:700;text-transform:capitalize}"],data:{animation:[Di.enterWithEase]}});}}return n;})();F();Ot();te();we();I();F();Be();rt();te();We();qe();be();I();F();Be();function Kc(n,m){if(n&1){let e=y();o(0,"label",9)(1,"input",10),Z("ngModelChange",function(i){f(e);let a=p(2);return J(a.selectedReason,i)||(a.selectedReason=i),h(i);}),r(),g(2,"span",11),o(3,"span",12),s(4),r()();}if(n&2){let e=m.$implicit,t=p(2);Qe("selected",t.selectedReason===e),l(),c("value",e),X("ngModel",t.selectedReason),l(3),E(e);}}function Xc(n,m){if(n&1){let e=y();R(0),o(1,"div",4),b(2,Kc,5,5,"label",5),r(),o(3,"div",6)(4,"label",7),s(5,"What's the one thing we should improve first?"),r(),o(6,"textarea",8),Z("ngModelChange",function(i){f(e);let a=p();return J(a.suggestion,i)||(a.suggestion=i),h(i);}),s(7," "),r()(),L();}if(n&2){let e=p();l(2),c("ngForOf",e.feedbackReasons),l(4),X("ngModel",e.suggestion);}}function Jc(n,m){if(n&1){let e=y();R(0),o(1,"div",13),g(2,"i",14),o(3,"span"),s(4,"You'll permanently lose access to your projects, scripts, media assets, and videos."),r()(),o(5,"div",15)(6,"lib-input",16),u("valueChange",function(i){f(e);let a=p();return h(a.onEmailChange(i));}),r()(),L();}if(n&2){let e=p();l(6),c("label",!0)("error",e.showEmailError)("value",e.emailInput);}}function Zc(n,m){if(n&1){let e=y();R(0),o(1,"lib-button",17),u("clicked",function(){f(e);let i=p();return h(i.close());}),s(2," Cancel "),r(),o(3,"lib-button",18),u("clicked",function(){f(e);let i=p();return h(i.onContinue());}),s(4," Continue "),r(),L();}if(n&2){let e=p();l(3),c("disabled",!e.isReasonSelected);}}function ep(n,m){if(n&1){let e=y();R(0),o(1,"lib-button",17),u("clicked",function(){f(e);let i=p();return h(i.close());}),s(2," Cancel "),r(),o(3,"lib-button",19),u("clicked",function(){f(e);let i=p();return h(i.onDeleteAccount());}),s(4," Delete account "),r(),L();}if(n&2){let e=p();l(3),c("destructive",!0)("disabled",!e.emailInput);}}var $i=class extends de{},Rr=(()=>{class n extends me{constructor(e){super(e),this.data=e,this.currentStep=1,this.feedbackReasons=["Privacy concerns","I no longer use BIGVU","I accidentally created a second account","Other"],this.selectedReason="",this.suggestion="",this.emailInput="",this.showEmailError=!1,this.eventsService=Ht(Y);}get stepTitle(){return this.currentStep===1?"Why are you leaving?":"Delete your account?";}get stepSubtitle(){return this.currentStep===1?"Your feedback helps us improve BIGVU.":"This action is permanent and can't be und
13one.";}get isReasonSelected(){return this.selectedReason!=="";}get isEmailMatch(){return this.emailInput.trim().toLowerCase()===(this.data.userEmail||"").trim().toLowerCase();}onContinue(){this.isReasonSelected&&(this.eventsService.log(this.eventsService.events.profile.deleteAccountReason,{reason:this.selectedReason,suggestion:this.suggestion||""}),this.currentStep=2);}onDeleteAccount(){if(this.showEmailError=!1,!this.isEmailMatch){this.showEmailError=!0;return;}this.data.onDelete();}onEmailChange(e){this.emailInput=e,this.showEmailError&&(this.showEmailError=!1);}static{this.ɵfac=function(t){return new(t||n)(x(fe));};}static{this.ɵcmp=P({type:n,selectors:[["app-delete-account-dialog"]],standalone:!0,features:[W,M],decls:7,vars:6,consts:[["size","md",3,"closed","title","subtitle"],["modal-body",""],[4,"ngIf"],["modal-footer",""],[1,"feedback-reasons"],["class","radio-option",3,"selected",4,"ngFor","ngForOf"],[1,"suggestion-section"],[1,"suggestion-label"],["placeholder","Type your suggestion...","rows","3",1,"suggestion-textarea",3,"ngModelChange","ngModel"],[1,"radio-option"],["type","radio","name","feedbackReason",3,"ngModelChange","value","ngModel"],[1,"radio-circle"],[1,"radio-label"],[1,"warning-banner"],[1,"fa-solid","fa-triangle-exclamation","warning-icon"],[1,"email-section"],["labelText","Confirm your email","labelType","outside","type","email","placeholder","[email protected]","size","large","errorMessage","The email you provided does not match the current user's email.",3,"valueChange","label","error","value"],["variant","ghost","size","md",3,"clicked"],["variant","primary","size","md",3,"clicked","disabled"],["variant","primary","size","md",3,"clicked","destructive","disabled"]],template:function(t,i){t&1&&(o(0,"lib-modal",0),u("closed",function(){return i.close();}),o(1,"div",1),b(2,Xc,8,2,"ng-container",2)(3,Jc,7,3,"ng-container",2),r(),o(4,"div",3),b(5,Zc,5,1,"ng-container",2)(6,ep,5,2,"ng-container",2),r()()),t&2&&(c("title",i.stepTitle)("subtitle",i.stepSubtitle),l(2),c("ngIf",i.currentStep===1),l(),c("ngIf",i.currentStep===2),l(2),c("ngIf",i.currentStep===1),l(),c("ngIf",i.currentStep===2));},dependencies:[U,le,N,Me,Xn,eo,Jn,Zn,B,ue,pe],styles:['.feedback-reasons[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.radio-option[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;cursor:pointer}.radio-option[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{display:none}.radio-circle[_ngcontent-%COMP%]{width:20px;height:20px;border-radius:50%;border:2px solid #D1D5DB;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:border-color .15s ease}.radio-circle[_ngcontent-%COMP%]:after{content:"";width:10px;height:10px;border-radius:50%;background:transparent;transition:background .15s ease}.radio-option.selected[_ngcontent-%COMP%] .radio-circle[_ngcontent-%COMP%]{border-color:#4481fd}.radio-option.selected[_ngcontent-%COMP%] .radio-circle[_ngcontent-%COMP%]:after{background:#4481fd}.radio-label[_ngcontent-%COMP%]{font-size:14px;font-weight:400;color:#253658;line-height:1.4}.suggestion-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.suggestion-label[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#253658;line-height:1.4;padding:12px}.suggestion-textarea[_ngcontent-%COMP%]{border:1px solid #E5E7EB;border-radius:8px;padding:12px 16px;font-size:14px;font-family:inherit;color:#253658;resize:vertical;min-height:80px;outline:none;transition:border-color .15s ease}.suggestion-textarea[_ngcontent-%COMP%]::placeholder{color:#bec3cd}.suggestion-textarea[_ngcontent-%COMP%]:focus{border-color:#4481fd}.warning-banner[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:12px;padding:12px 16px;border:1px solid #eb6a37;border-radius:8px;background:#fff}.warning-icon[_ngcontent-%COMP%]{color:#eb6a37;font-size:16px;flex-shrink:0;margin-top:2px}.warning-banner[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px;font-weight:400;color:#eb6a37;line-height:1.4}.email-section[_ngcontent-%COMP%]{display:flex;flex-direction:column}']});}}return n;})();I();F();te();I();var tp=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,Lr=(()=>{class n{constructor(){this.formStatus=new q(),this.formData=new q(),this.emailValue="",this.showError=!1,this.errorMessage="Please enter a valid email address";}onEmailChange(e){this.emailValue=e;let t=tp.test(e);this.showError=e.length>0&&!t,this.formStatus.emit(t),t&&this.formData.emit({email:e});}static{this.ɵfac=function(t){return new(t||n)();};}static{this.ɵcmp=P({type:n,selectors:[["update-email-form"]],inputs:{data:"data"},outputs:{formStatus:"formStatus",formData:"formData"},standalone:!0,features:[M],decls:2,vars:5,consts:[[1,"update-email-form"],["labelText","New email address","placeholder","Enter your new email","labelType","outside","size","small","type","email",3,"valueChange","label","required","error","errorMessage","value"]],template:function(t,i){t&1&&(o(0,"div",0)(1,"lib-input",1),Z("valueChange",function(d){return J(i.emailValue,d)||(i.emailValue=d),d;}),u("valueChange",function(d){return i.onEmailChange(d);}),r()()),t&2&&(l(),c("label",!0)("required",!0)("error",i.showError)("errorMessage",i.errorMessage),X("value",i.emailValue));},dependencies:[U,ue],styles:[".update-email-form[_ngcontent-%COMP%]{padding:8px 0}"]});}}return n;})();I();te();I();var ip=["otpInput"];function np(n,m){if(n&1){let e=y();o(0,"input",10,0),u("input",function(i){let a=f(e).$index,d=p();return h(d.onDigitInput(a,i));})("keydown",function(i){let a=f(e).$index,d=p();return h(d.onDigitKeydown(a,i));})("paste",function(i){f(e);let a=p();return h(a.onPaste(i));}),r();}if(n&2){let e=m.$implicit,t=p();Qe("has-value",e)("error",t.showError),c("value",e);}}function op(n,m){if(n&1&&g(0,"lib-alert",5),n&2){let e=p();c("message",e.errorMessage());}}
13function rp(n,m){if(n&1&&(o(0,"p",7),s(1),r()),n&2){let e=p();l(),A("Resend in ",e.resendCountdown,"s");}}function ap(n,m){if(n&1){let e=y();o(0,"button",11),u("click",function(){f(e);let i=p();return h(i.onResendClick());}),s(1," Resend code "),r();}}var Nr=(()=>{class n{constructor(){this.formStatus=new q(),this.formData=new q(),this.digits=Et(["","","","","",""]),this.errorMessage=Et(""),this.showError=!1,this.resendCountdown=60;}ngOnInit(){this.startCountdown(),this.data?.error$&&(this.errorSub=this.data.error$.subscribe(e=>{this.errorMessage.set(e),this.showError=!!e;}));}ngAfterViewInit(){this.otpInputs?.first?.nativeElement?.focus();}ngOnDestroy(){this.clearCountdown(),this.errorSub?.unsubscribe();}onDigitInput(e,t){let i=t.target,d=i.value.replace(/\D/g,"").slice(-1);i.value=d;let _=[...this.digits()];_[e]=d,this.digits.set(_),this.showError=!1,this.errorMessage.set(""),d&&e<5&&this.focusInput(e+1),this.emitState();}onDigitKeydown(e,t){t.key==="Backspace"&&!this.digits()[e]&&e>0&&this.focusInput(e-1);}onPaste(e){e.preventDefault();let t=(e.clipboardData?.getData("text")||"").replace(/\D/g,"");if(!t)return;let i=[...this.digits()];for(let d=0;d<6;d++)i[d]=t.charAt(d)||"";this.digits.set(i);let a=Math.min(t.length,5);this.focusInput(a),this.emitState();}onResendClick(){this.resendCountdown>0||(this.data?.onResend?.(),this.resendCountdown=60,this.startCountdown());}focusInput(e){this.otpInputs?.toArray()?.[e]?.nativeElement?.focus();}emitState(){let e=this.digits().join(""),t=e.length===6&&/^\d{6}$/.test(e);this.formStatus.emit(t),t&&this.formData.emit({code:e,email:this.data?.email});}startCountdown(){this.clearCountdown(),this.countdownInterval=setInterval(()=>{this.resendCountdown--,this.resendCountdown<=0&&this.clearCountdown();},1e3);}clearCountdown(){this.countdownInterval&&(clearInterval(this.countdownInterval),this.countdownInterval=null);}static{this.ɵfac=function(t){return new(t||n)();};}static{this.ɵcmp=P({type:n,selectors:[["verify-email-otp-form"]],viewQuery:function(t,i){if(t&1&&se(ip,5),t&2){let a;re(a=ae())&&(i.otpInputs=a);}},inputs:{data:"data"},outputs:{formStatus:"formStatus",formData:"formData"},standalone:!0,features:[M],decls:15,vars:4,consts:[["otpInput",""],[1,"verify-otp-form"],[1,"otp-instruction"],[1,"otp-digits"],["type","text","inputmode","numeric","maxlength","1","autocomplete","one-time-code",1,"otp-digit-input",3,"has-value","error","value"],["status","error","size","regular","mode","light",3,"message"],[1,"resend-section"],[1,"resend-info"],[1,"resend-btn"],[1,"resend-help"],["type","text","inputmode","numeric","maxlength","1","autocomplete","one-time-code",1,"otp-digit-input",3,"input","keydown","paste","value"],[1,"resend-btn",3,"click"]],template:function(t,i){t&1&&(o(0,"div",1)(1,"p",2),s(2,"Enter the 6-digit code sent to "),o(3,"strong"),s(4),r(),s(5,"."),r(),o(6,"div",3),oi(7,np,2,5,"input",4,Fn),r(),b(9,op,1,1,"lib-alert",5),o(10,"div",6),b(11,rp,2,1,"p",7)(12,ap,2,0,"button",8),o(13,"p",9),s(14,"Didn't get the code? Check your spam or resend it."),r()()()),t&2&&(l(4),E(i.data==null?null:i.data.email),l(3),ri(i.digits()),l(2),$e(9,i.errorMessage()?9:-1),l(2),$e(11,i.resendCountdown>0?11:-1),l(),$e(12,i.resendCountdown<=0?12:-1));},dependencies:[hi],styles:[".verify-otp-form[_ngcontent-%COMP%]{padding:8px 0;display:flex;flex-direction:column;gap:16px}.otp-instruction[_ngcontent-%COMP%]{font-size:14px;color:#6b7280;margin:0;line-height:20px}.otp-instruction[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:#253658}.otp-digits[_ngcontent-%COMP%]{display:flex;gap:8px;justify-content:center}.otp-digit-input[_ngcontent-%COMP%]{width:40px;height:48px;background:#f0f3f9;border:2px solid transparent;border-radius:8px;text-align:center;font-size:20px;font-weight:600;color:#253658;outline:none;transition:border-color .15s ease;caret-color:#2563eb}.otp-digit-input[_ngcontent-%COMP%]:focus{border-color:#2563eb}.otp-digit-input.has-value[_ngcontent-%COMP%]{background:#e8ecf4}.otp-digit-input.error[_ngcontent-%COMP%]{border-color:#ef4444}.otp-digit-input[_ngcontent-%COMP%]::placeholder{color:#c5cbd6}.resend-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:4px}.resend-info[_ngcontent-%COMP%]{font-size:14px;color:#6b7280;margin:0}.resend-btn[_ngcontent-%COMP%]{background:none;border:none;color:#2563eb;font-size:14px;font-weight:500;cursor:pointer;padding:0}.resend-btn[_ngcontent-%COMP%]:hover{text-decoration:underline}.resend-help[_ngcontent-%COMP%]{font-size:12px;color:#9ca3af;margin:0}"]});}}return n;})();I();var Ur=(()=>{class n{static{this.ɵfac=function(t){return new(t||n)();};}static{this.ɵcmp=P({type:n,selectors:[["app-login-privacy-shimmer"]],standalone:!0,features:[M],decls:105,vars:0,consts:[[1,"login-privacy-shimmer"],[1,"shimmer-card"],[1,"shimmer-title-group"],[1,"shimmer-block","title-block"],[1,"shimmer-block","text-block-medium"],[1,"shimmer-separator"],[1,"shimmer-sett
13ing-row"],[1,"shimmer-setting-info"],[1,"shimmer-block","label-block"],[1,"shimmer-block","value-block"],[1,"shimmer-block","button-block"],[1,"shimmer-block","text-block-short"],[1,"shimmer-block","label-block-wide"],[1,"shimmer-block","toggle-block"],[1,"shimmer-provider-row"],[1,"shimmer-block","provider-icon-block"],[1,"shimmer-provider-text"],[1,"shimmer-block","label-block-sm"],[1,"shimmer-block","hint-block"],[1,"shimmer-block","device-icon-block"],[1,"shimmer-block","icon-block-sm"],[1,"shimmer-block","text-block-medium-sm"],[1,"shimmer-block","title-block-sm"],[1,"shimmer-redeem-row"],[1,"shimmer-block","input-block"],[1,"wave"]],template:function(t,i){t&1&&(o(0,"div",0)(1,"div",1)(2,"div",2),g(3,"div",3)(4,"div",4),r(),g(5,"div",5),o(6,"div",6)(7,"div",7),g(8,"div",8)(9,"div",9),r(),g(10,"div",10),r(),o(11,"div",6)(12,"div",7),g(13,"div",8)(14,"div",11),r(),g(15,"div",10),r(),o(16,"div",6)(17,"div",7),g(18,"div",12)(19,"div",11),r(),g(20,"div",13),r()(),o(21,"div",1)(22,"div",2),g(23,"div",3)(24,"div",4),r(),g(25,"div",5),o(26,"div",14),g(27,"div",15),o(28,"div",16),g(29,"div",17)(30,"div",18),r(),g(31,"div",10),r(),o(32,"div",14),g(33,"div",15),o(34,"div",16),g(35,"div",17)(36,"div",18),r(),g(37,"div",10),r(),o(38,"div",14),g(39,"div",15),o(40,"div",16),g(41,"div",17)(42,"div",18),r(),g(43,"div",10),r()(),o(44,"div",1)(45,"div",2),g(46,"div",3)(47,"div",4),r(),g(48,"div",5),o(49,"div",6),g(50,"div",19),o(51,"div",7),g(52,"div",8)(53,"div",18),r(),g(54,"div",20),r(),o(55,"div",6),g(56,"div",19),o(57,"div",7),g(58,"div",8)(59,"div",18),r(),g(60,"div",20),r()(),o(61,"div",1)(62,"div",2),g(63,"div",3)(64,"div",21),r(),g(65,"div",5),o(66,"div",6)(67,"div",7),g(68,"div",8)(69,"div",11),r(),g(70,"div",13),r(),o(71,"div",6)(72,"div",7),g(73,"div",8)(74,"div",11),r(),g(75,"div",13),r(),o(76,"div",6)(77,"div",7),g(78,"div",8)(79,"div",11),r(),g(80,"div",13),r()(),o(81,"div",1)(82,"div",2),g(83,"div",22)(84,"div",4),r(),g(85,"div",5),o(86,"div",23),g(87,"div",24)(88,"div",10),r()(),o(89,"div",1)(90,"div",2),g(91,"div",3)(92,"div",4),r(),g(93,"div",5),o(94,"div",6)(95,"div",7),g(96,"div",8)(97,"div",11),r(),g(98,"div",10),r(),o(99,"div",6)(100,"div",7),g(101,"div",8)(102,"div",11),r(),g(103,"div",10),r()(),g(104,"div",25),r());},styles:[".login-privacy-shimmer[_ngcontent-%COMP%]{position:relative;overflow:hidden;width:100%;display:flex;flex-direction:column;gap:18px}.shimmer-card[_ngcontent-%COMP%]{background:#fff;border-radius:16px;padding:24px;width:100%}.shimmer-block[_ngcontent-%COMP%]{background:#4481fd1f;border-radius:6px;flex-shrink:0}.title-block[_ngcontent-%COMP%]{width:160px;height:22px}.title-block-sm[_ngcontent-%COMP%]{width:120px;height:22px}
13.text-block-medium[_ngcontent-%COMP%]{width:280px;height:14px}.text-block-medium-sm[_ngcontent-%COMP%]{width:200px;height:14px}.text-block-short[_ngcontent-%COMP%]{width:75%;height:14px}.label-block[_ngcontent-%COMP%]{width:140px;height:14px}.label-block-sm[_ngcontent-%COMP%]{width:80px;height:14px}.label-block-wide[_ngcontent-%COMP%]{width:220px;height:14px}.value-block[_ngcontent-%COMP%]{width:200px;height:16px}.hint-block[_ngcontent-%COMP%]{width:90px;height:12px}.button-block[_ngcontent-%COMP%]{width:110px;height:36px;border-radius:8px}.toggle-block[_ngcontent-%COMP%]{width:44px;height:24px;border-radius:12px}.icon-block-sm[_ngcontent-%COMP%]{width:32px;height:32px;border-radius:8px}.provider-icon-block[_ngcontent-%COMP%]{width:36px;height:36px;border-radius:8px}.device-icon-block[_ngcontent-%COMP%]{width:20px;height:20px;border-radius:4px}.input-block[_ngcontent-%COMP%]{flex:1;height:40px;border-radius:8px}.shimmer-separator[_ngcontent-%COMP%]{height:1px;background:#4481fd14;margin:20px 0}.shimmer-title-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.shimmer-setting-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:14px 0}.shimmer-setting-row[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid rgba(68,129,253,.04)}.shimmer-setting-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px;flex:1}.shimmer-provider-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:14px 0}.shimmer-provider-row[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid rgba(68,129,253,.04)}.shimmer-provider-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px;flex:1}.shimmer-redeem-row[_ngcontent-%COMP%]{display:flex;gap:12px;align-items:center}.wave[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.3) 50%,transparent 100%);transform:translate(-100%);animation:_ngcontent-%COMP%_wave 1.5s infinite}@keyframes _ngcontent-%COMP%_wave{0%{transform:translate(-100%)}50%{transform:translate(100%)}to{transform:translate(100%)}}",".profile-common-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.profile-common-sub-container[_ngcontent-%COMP%]{background-color:#fff;border-radius:10px;padding:18px;width:100%;margin:0 0 18px}.profile-common-title[_ngcontent-%COMP%]{font-size:18px;line-height:24px;font-family:Inter-Bold;color:#253658;display:flex;align-items:center;gap:5px}hr.profile-common-hr[_ngcontent-%COMP%]{margin:18px 0}.profile-common-paragraph[_ngcontent-%COMP%]{font-size:14px;color:#7b8db1}.profile-common-sub-title[_ngcontent-%COMP%]{margin-bottom:12px;color:#000;line-height:24px;font-size:15px;font-weight:600;text-transform:capitalize;display:flex;align-items:center;gap:5px}.profile-big-sub-title[_ngcontent-%COMP%]{font-size:28px;font-family:Inter-Bold;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#253658;margin-bottom:8px}
13.content-separator[_ngcontent-%COMP%]{height:1px;background-color:#7b8db14d;margin:18px 0}.profile-sub-header[_ngcontent-%COMP%]{font-size:14px;color:#25365899;max-width:380px}.profile-details-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;height:36px}.profile-buttons-container[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px}.profile-details-cancel-button[_ngcontent-%COMP%], .profile-details-save-button[_ngcontent-%COMP%]{width:90px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px}.profile-details-cancel-button[_ngcontent-%COMP%]:hover, .profile-details-save-button[_ngcontent-%COMP%]:hover{opacity:.8}.profile-details-cancel-button[_ngcontent-%COMP%]{background:#7b8db114;color:#7b8db1;margin:0 12px 0 auto}.profile-details-save-button[_ngcontent-%COMP%]{background:#00abfe;color:#fff}.profile-details-preview[_ngcontent-%COMP%]{padding:0 22px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px;border:1px solid #00abfe;color:#00abfe;background:#fff}.disabled-button[_ngcontent-%COMP%]{background:gray!important;color:#d3d3d3!important}.disabled-button[_ngcontent-%COMP%]:hover{opacity:1} autocomplete-menu .autocomplete-menu-container{border-radius:10px;background-color:#7b8db114;padding:5px 12px;height:46px;cursor:text} autocomplete-menu .autocomplete-menu-container input{color:#253658;font-size:14px} autocomplete-menu .autocomplete-menu-container .mat-form-field-label-wrapper label mat-label{color:#00abfe!important;font-weight:700} autocomplete-menu .autocomplete-menu-container .mdc-line-ripple{display:none!important}.billing-plan-details-title[_ngcontent-%COMP%]{color:#888;font-size:12px;font-weight:400;text-transform:capitalize}.billing-plan-details-sub-title[_ngcontent-%COMP%]{color:#000;font-size:13px;font-weight:700;text-transform:capitalize}"]});}}return n;})();I();Oe();at();ye();we();be();pn();Bt();na();ia();ft();mn();gt();var lp=["mfaToggle"];function sp(n,m){n&1&&g(0,"app-login-privacy-shimmer");}function cp(n,m){n&1&&(o(0,"div",35),g(1,"lib-alert",36),r());}function pp(n,m){if(n&1){let e=y();o(0,"lib-button",37),u("clicked",function(){f(e);let i=p(2);return h(i.onVerifyEmail());}),s(1," Verify email "),r();}}function dp(n,m){n&1&&(o(0,"span",20),s(1,"Verify your email to enable MFA."),r());}function mp(n,m){n&1&&(o(0,"span",45),s(1,"Connected"),r());}function gp(n,m){n&1&&(o(0,"span",46),s(1,"Connection expired"),r());}function up(n,m){n&1&&(o(0,"span",20),s(1,"Not connected"),r());}function fp(n,m){if(n&1){let e=y();o(0,"lib-button",19),u("clicked",function(){f(e);let i=p().$implicit,a=p(2);return h(a.onConnectProvider(i));}),s(1," Connect "),r();}}function hp(n,m){if(n&1){let e=y();o(0,"lib-button",19),u("clicked",function(){f(e);let i=p().$implicit,a=p(2);return h(a.onConnectProvider(i));}),s(1," Reconnect "),r();}}function _p(n,m){if(n&1){let e=y();o(0,"lib-button",34),u("clicked",function(){f(e);let i=p().$implicit,a=p(2);return h(a.onUnlinkProvider(i));}),s(1," Unlink "),r();}n&2&&c("destructive",!0);}function xp(n,m){if(n&1&&(o(0,"div",11)(1,"div",12)(2,"div",38),g(3,"img",39),o(4,"div",40)(5,"span",13),s(6),r(),b(7,mp,2,0,"span",41)(8,gp,2,0,"span",42)(9,up,2,0,"span",21),r()()(),o(10,"div",17),b(11,fp,2,0,"lib-button",43)(12,hp,2,0,"lib-button",43)(13,_p,2,1,"lib-button",44),r()()),n&2){let e=m.$implicit;l(3),c("src",e.icon,ge)("alt",e.name),l(3),E(e.name),l(),c("ngIf",e.connected&&!e.expired),l(),c("ngIf",e.connected&&e.expired),l(),c("ngIf",!e.connected),l(2),c("ngIf",!e.connected),l(),c("ngIf",e.connected&&e.expired),l(),c("ngIf",e.connected);}}function vp(n,m){if(n&1&&(o(0,"span",20),s(1),r()),n&2){let e=p().$implicit;l(),A("Last connected ",e.lastConnected,"");}}function bp(n,m){if(n&1){let e=y();o(0,"div",11)(1,"div",47),g(2,"img",48),o(3,"div",12)(4,"span",13),s(5),r(),b(6,vp,2,1,"span",21),r()(),o(7,"div",17)(8,"lib-button-icon",49),u("clicked",function(){let i=f(e).$implicit,a=p(3);return h(a.onRemoveDevice(i));}),r()()();}if(n&2){let e=m.$implicit;l(5),E(e.name),l(),c("ngIf",e.lastConnected),l(2),c("destructive",!0);}}function Cp(n,m){if(n&1&&(o(0,"div",10),b(1,bp,9,3,"div",23),r()),n&2){let e=p(2);l(),c("ngForOf",e.devices);}}function yp(n,m){n&1&&(o(0,"div",50)(1,"div",51)(2,"span",52),s(3,"No authorized devices"),r(),o(4,"span",53),s(5,"Devices that sign in to your account will appear here."),r()()());}function wp(n,m){n&1&&(o(0,"p",27),s(1," Removing a device will sign it out of your account. "),r());}function Sp(n,m){if(n&1){let e=y();o(0,"lib-toggle",55),u("changed",function(){f(e);let i=p().$implicit,a=p(2);return h(a.onPrivacyToggle(i));}),r();}if(n&2){let e=p().$implicit;c("checked",e.enabled);}}function Pp(n,m){if(n&1){let e=y();o(0,"lib-button",19),u("clicked",function(){f(e);let i=p(3);return h(i.onOpenCookiePreferences());}),s(1," Open preferences "),r();}}function Mp(n,m){if(n&1&&(o(0,"div",11)(1,"div",12)(2,"span",13),s(3),r(),o(4,"span",20),s(5),r()(),o(6,"div",17),b(7,Sp,1,1,"lib-toggle",54)(8,Pp,2,0,"lib-button",43),r()()),n&2){let e=m.$implicit;l(3),E(e.label),l(2),E(e.description),l(2),c("ngIf",e.actionType==="toggle"),l(),c("ngIf",e.actionType==="button");}}function Op(n,m){if(n&1){let e=y();o(0,"div",3)(1,"div",4)(2,"div",5)(3,"div",6)(4,"h2",7),s(5,"Account & Security"),r(),o(6,"p",8),s(7,"Manage your email, password, and authentication settings."),r()()(),b(8,cp,2,0,"div",9),o(9,"div",10)(10,"div",11)(11,"div",12)(12,"span",13),s(13,"Email"),r(),o(14,"div",14)(15,"span",15),s(16),r(),g(17,"lib-badge",16),r()(),o(18,"div",17),b(19,pp,2,0,"lib-button",18),o(20,"lib-button",19),u("clicked",function(){f(e);let i=p();return h(i.onChangeEmail());}),s(21," Change email "),r()()(),o(22,"div",11)(23,"div",12)(24,"span",13),s(25,"Password"),r(),o(26,"span",20),s(27,"Change your password to keep your account secure."),r()(),o(28,"div",17)(29,"lib-button",19),u("clicked",function(){f(e);let i=p();return h(i.onChangePassword());}),s(30," Change password "),r()()(),o(31,"div",11)(32,"div",12)(33,"span",13),s(34,"Multi-factor authentication (MFA)"),r(),o(35,"span",20),s(36,"Add an extra layer of security to your account."),r(),b(37,dp,2,0,"span",21),r(),o(38,"div",17)(39,"lib-toggle",22,0),u("changed",function(){f(e);let i=p();
13return h(i.onMfaToggle());}),r()()()()(),o(41,"div",4)(42,"div",5)(43,"div",6)(44,"h2",7),s(45,"Login Accounts"),r(),o(46,"p",8),s(47,"Connect social accounts for quick sign-in."),r()()(),o(48,"div",10),b(49,xp,14,9,"div",23),r()(),o(50,"div",4)(51,"div",5)(52,"div",6)(53,"h2",7),s(54,"Authorized Devices"),r(),o(55,"p",8),s(56,"Devices currently signed in to your account."),r()()(),b(57,Cp,2,1,"div",24)(58,yp,6,0,"div",25)(59,wp,2,0,"p",26),r(),o(60,"div",4)(61,"div",5)(62,"div",6)(63,"h2",7),s(64,"Privacy & Data"),r(),o(65,"p",8),s(66,"Control how your data is used."),r()()(),o(67,"div",10),b(68,Mp,9,4,"div",23),r(),o(69,"p",27),s(70," Changes take effect immediately. Review our "),o(71,"a",28),s(72,"Privacy Policy"),r(),s(73," for more details. "),r()(),o(74,"div",29)(75,"div",5)(76,"div",6)(77,"h2",7),s(78,"Redeem Code"),r(),o(79,"p",8),s(80,"Enter a coupon or gift code to apply to your account"),r()()(),o(81,"div",30)(82,"lib-input",31),u("valueChange",function(i){f(e);let a=p();return h(a.onRedeemCodeChange(i));}),r(),o(83,"lib-button",32),u("clicked",function(){f(e);let i=p();return h(i.onRedeemCode());}),s(84," Redeem "),r()()(),o(85,"div",4)(86,"div",5)(87,"div",6)(88,"h2",7),s(89,"Data & Account"),r(),o(90,"p",8),s(91,"Export your data or manage your account."),r()()(),o(92,"div",10)(93,"div",11)(94,"div",12)(95,"span",13),s(96,"Export all my data"),r(),o(97,"span",20),s(98,"Download all your scripts, media assets, and videos. You will receive a link via email."),r()(),o(99,"div",17)(100,"lib-button",19),u("clicked",function(){f(e);let i=p();return h(i.onExportData());}),s(101," Export data "),r()()(),o(102,"div",11)(103,"div",12)(104,"span",33),s(105,"Delete account"),r(),o(106,"span",20),s(107,"Permanently delete your account and all associated data. This cannot be undone."),r()(),o(108,"div",17)(109,"lib-button",34),u("clicked",function(){f(e);let i=p();return h(i.onDeleteAccount());}),s(110," Delete account "),r()()()()()();}if(n&2){let e=p();l(8),c("ngIf",!e.isEmailVerified),l(8),E(e.userEmail),l(),c("text",e.isEmailVerified?"Verified":"Unverified")("color",e.isEmailVerified?"success":"danger"),l(2),c("ngIf",!e.isEmailVerified),l(18),c("ngIf",!e.isEmailVerified),l(2),c("checked",e.mfaEnabled)("disabled",e.mfaProcessing||!e.isEmailVerified&&!e.mfaEnabled),l(10),c("ngForOf",e.loginProviders),l(8),c("ngIf",e.devices.length>0),l(),c("ngIf",e.devicesLoaded&&e.devices.length===0),l(),c("ngIf",e.devices.length>0),l(9),c("ngForOf",e.privacyToggles),l(14),c("label",!1)("leftIcon",!0)("leftIconContent",e.redeemIconSvg)("value",e.redeemCodeValue),l(),c("disabled",!e.redeemCodeValue.trim()),l(26),c("destructive",!0);}}var wn=(()=>{class n extends et{constructor(e,t,i,a,d,_,w,v,O,D,j,k,z,$,S,T){super(z),this.requestsService=e,this.userHelperService=t,this.notifier=i,this.dialogHelperService=a,this.eventsService=d,this.errorParseService=_,this.workspaceHelperService=w,this.firebaseAuthService=v,this.authDataAdapter=O,this.planHelperService=D,this.creditsService=j,this.router=k,this.profileChangesService=z,this.profileDataHelperService=$,this.preferencesDataService=S,this.mfaService=T,this.isLoading=!0,this.userEmail="",this.isEmailVerified=!1,this.mfaEnabled=!1,this.mfaProcessing=!1,this.loginProviders=[],this.devices=[],this.devicesLoaded=!1,this.privacyToggles=[{label:"Data Linked to You",description:"Allow BIGVU to use your activity for personalized service and performance improvements.",enabled:!0,key:"dataCollection",actionType:"toggle"},{label:"Tracking",description:"Configure cookies preferences regarding activity data and third-party advertising platforms.",enabled:!0,key:"tracking",actionType:"button"}],this.redeemCodeValue="",this.redeemIconSvg="/img/icon-library/misc/redeem-code.svg",this.deleteAccount=()=>C(this,null,function*(){let H;try{yield this.requestsService.deleteUser({clearAllData:!0,forceDelete:!0}),this.eventsService.log(this.eventsService.events.profile.profileProcessEnd,{process:"delete-account"}),this.userHelperService.clearUser(),this.planHelperService.clear(),this.router.navigate(["offboarding"]),this.dialogHelperService.close();}catch(oe){console.error(oe);let tt=oe;H=this.errorParseService.parseAccountDeleteErrors(tt?.responseJSON?.code),tt?.responseJSON?.code==="10006/1"?(this.dialogHelperService.close(),this.dialogHelperService.showUiConfirmationDialog({title:"Delete Account",msg:H,confirmationText:"Ok"})):this.notifier.error(H);}});}ngOnInit(){return C(this,null,function*(){try{yield this.loadUserData(),yield this.loadDevices(),yield this.loadPrivacyPreferences(),this.couponSubscription=this.profileDataHelperService.accountCoupon$.subscribe(e=>{e&&(this.redeemCodeValue=e,this.scrollToRedeemSection());});}catch(e){console.error("Failed to initialize login & privacy",e);}finally{this.isLoading=!1;}});}ngOnDestroy(){super.ngOnDestroy(),this.couponSubscription?.unsubscribe(),clearTimeout(this.scrollToRedeemTimeoutId),this.mfaErrorSubject?.complete();}loadUserData(e=!1){return C(this,null,function*(){try{this.userData=yield this.userHelperService.getUserDetails(e),this.userEmail=this.userData.email||"",this.isEmailVerified=this.userData.status===300,this.mfaEnabled=this.userData.mfaEnabled?.email||!1,this.buildLoginProviders();}catch(t){console.error("Failed to load user data",t),this.notifier.error("Failed to load user data");}});}buildLoginProviders(){let e=this.userData?.providers||[],t={google_plus:{name:"Google",icon:"/img/icon-library/misc/google.svg"},facebook:{name:"Facebook",icon:"/img/facebook-logo.svg"},apple:{name:"Apple",icon:"/img/icon-library/misc/apple.svg"}};this.loginProviders=Object.entries(t).map(([i,a])=>{let d=this.authDataAdapter.adaptProvider(i),_=e.find(w=>w.provider===i||w.provider===d);return{name:a.name,key:i,icon:a.icon,connected:!!_,expired:_?.expired||!1,externalId:_?.externalId};});}loadDevices(){return C(this,null,function*(){try{let e=yield this.requestsService.getActivatedDevices(),t=e?.devices||e?.data?.devices||[];this.devices=(Array.isArray(t)?t:[]).map(i=>({deviceId:i.deviceId||i.id,name:i.deviceName||i.name||"Unknown device",lastConnected:i.lastConnected||""}));}catch(e){console.error("Failed to load devices",e);}finally{this.devicesLoaded=!0;}});}onChangeEmail(){this.eventsService.log(this.eventsService.events.user.changeMailClicked),this.eventsService.log(this.eventsService.events.profile.profileProcessStart,{process:"email-change"});let e=new yt();e.componentType=Lr,e.useComponentData=!0,e.title="Update email address",e.text="Enter your new email address. We will send a confirmation link to verify.",e.cancelBtn="Cancel",e.sendBtn="Send verification",e.onClose=()=>this.dialogHelperService.close(),e.onSubmit=i=>{i?.email&&this.submitChangeEmail(i.email);};let t=new xe();
13t.panelClass="generic-input-dialog-content",t.disableClose=!0,this.dialogHelperService.open(e,Kt,t);}submitChangeEmail(e){return C(this,null,function*(){try{yield this.requestsService.requestChangeMail({email:e}),this.dialogHelperService.close(),this.eventsService.log(this.eventsService.events.user.changeMail,{newEmail:e}),this.showEmailConfirmationSentDialog(e);}catch(t){console.error("Failed to send email change request",t),this.notifier.error("Failed to send verification email. Please try again.");}});}showEmailConfirmationSentDialog(e){this.dialogHelperService.showNewConfirmationDialog({title:"Check your email",msg:`We sent a confirmation link to <strong>${e}</strong>. Click the link in the email to complete the change.`,confirmationText:"Got it",onSubmit:()=>{this.dialogHelperService.close(),this.eventsService.log(this.eventsService.events.profile.profileProcessEnd,{process:"email-change"});}});}onVerifyEmail(){this.sendVerificationEmail();}sendVerificationEmail(){return C(this,null,function*(){try{yield this.requestsService.resendActivationEmail({email:this.userEmail}),this.notifier.success("Verification email sent. Please check your inbox.");}catch(e){console.error("Failed to send verification email",e),this.notifier.error("Failed to send verification email. Please try again.");}});}onChangePassword(){this.eventsService.log(this.eventsService.events.account.forgotPassword),this.eventsService.log(this.eventsService.events.profile.profileProcessStart,{process:"password-change"}),this.dialogHelperService.showNewConfirmationDialog({title:"Reset password",msg:`We will send a password reset link to <strong>${this.userEmail}</strong>. Check your inbox after clicking send.`,confirmationText:"Send reset email",cancellationText:"Cancel",onSubmit:()=>C(this,null,function*(){try{yield this.requestsService.forgotPassword(this.userEmail),this.dialogHelperService.close(),this.eventsService.log(this.eventsService.events.profile.profileProcessEnd,{process:"password-change"}),this.notifier.success("Password reset email sent");}catch(e){console.error("Failed to send password reset",e),this.notifier.error("Failed to send password reset email");}})});}onMfaToggle(){return C(this,null,function*(){if(!this.mfaProcessing){if(!this.isEmailVerified&&!this.mfaEnabled){this.syncMfaToggle();return;}this.eventsService.log(this.eventsService.events.profile.profileProcessStart,{process:"2FA"}),this.mfaProcessing=!0,this.mfaEnabled?this.disableMfa():yield this.enableMfa();}});}enableMfa(){return C(this,null,function*(){try{let e=yield this.mfaService.initiate();this.mfaToken=e.mfaToken,this.openMfaOtpDialog();}catch(e){console.error("Failed to initiate MFA",e),this.handleMfaError(e,"initiate"),this.mfaProcessing=!1,this.syncMfaToggle();}});}syncMfaToggle(){this.mfaToggle?.checked.set(this.mfaEnabled);}openMfaOtpDialog(){this.mfaErrorSubject=new je(),this.openOtpDialog({email:this.userEmail,title:"Multi-Factor Authentication",submitBtn:"Continue",error$:this.mfaErrorSubject,onResend:()=>this.resendMfaCode(),onSubmit:e=>this.verifyMfaCode(e),onClose:()=>{this.mfaProcessing=!1,this.syncMfaToggle();}});}openOtpDialog(e){let t=new yt();t.componentType=Nr,t.useComponentData=!0,t.componentData={email:e.email,onResend:e.onResend,error$:e.error$},t.title=e.title,t.text="",t.cancelBtn="Cancel",t.sendBtn=e.submitBtn,t.onClose=()=>{e.onClose?.(),this.dialogHelperService.close();},t.onSubmit=a=>{a?.code&&e.onSubmit(a.code);};let i=new xe();i.panelClass="generic-input-dialog-content",i.disableClose=!0,this.dialogHelperService.open(t,Kt,i);}verifyMfaCode(e){return C(this,null,function*(){try{yield this.mfaService.verify(this.mfaToken,e),this.dialogHelperService.close(),this.mfaEnabled=!0,this.mfaToken=null,this.eventsService.log(this.eventsService.events.profile.profileProcessEnd,{process:"2FA"}),this.notifier.success("MFA enabled successfully");}catch(t){console.error("Failed to verify MFA",t);let i=this.mfaService.parseError(t,"verify");i.sessionExpired&&(this.mfaToken=null),this.mfaErrorSubject?.next(i.message);}finally{this.mfaProcessing=!1;}});}resendMfaCode(){return C(this,null,function*(){try{yield this.mfaService.resend(this.mfaToken),this.notifier.success("Verification code resent");}catch(e){console.error("Failed to resend MFA code",e),this.handleMfaError(e,"resend");}});}disableMfa(){this.dialogHelperService.showNewConfirmationDialog({title:"Disable MFA",msg:"Are you sure you want to disable multi-factor authentication? This will make your account less secure.",confirmationText:"Disable",cancellationText:"Cancel",confirmButtonVariant:"primary",confirmButtonDestructive:!0,onClose:()=>{this.mfaProcessing=!1,this.dialogHelperService.close(),this.syncMfaToggle(
13);},onSubmit:()=>C(this,null,function*(){try{yield this.mfaService.disable(),this.dialogHelperService.close(),this.mfaEnabled=!1,this.eventsService.log(this.eventsService.events.profile.profileProcessEnd,{process:"2FA"}),this.notifier.success("MFA disabled");}catch(e){console.error("Failed to disable MFA",e),this.handleMfaError(e,"disable"),this.syncMfaToggle();}finally{this.mfaProcessing=!1;}})});}handleMfaError(e,t){let i=this.mfaService.parseError(e,t);i.sessionExpired&&(this.mfaToken=null),this.notifier.error(i.message);}onConnectProvider(e){return C(this,null,function*(){this.eventsService.log(this.eventsService.events.profile.profileProcessStart,{process:"account-connect"});try{let t=yield this.firebaseAuthService.loginWithSocialProvider(e.key);if(!t)return;let i={provider:this.authDataAdapter.adaptProvider(e.key)};e.key==="apple"?i.authorizationCode=t.authorizationCode:i.accessToken=t.accessToken,yield this.requestsService.attachProvider(i),this.eventsService.log(this.eventsService.events.profile.loginAccount,{provider:e.key,action:"connect"}),this.eventsService.log(this.eventsService.events.profile.profileProcessEnd,{process:"account-connect"}),this.notifier.success(`${e.name} account connected`),yield this.loadUserData(!0);}catch(t){if(t==="popup_closed_by_user")return;console.error("Failed to connect provider",t),this.notifier.error(`Failed to connect ${e.name}. Please try again.`);}});}onUnlinkProvider(e){this.eventsService.log(this.eventsService.events.profile.profileProcessStart,{process:"account-disconnect"}),this.dialogHelperService.showUiConfirmationDialog({title:`Unlink ${e.name}`,msg:`Are you sure you want to unlink your ${e.name} account? You will no longer be able to sign in with ${e.name}.`,confirmationText:"Unlink",cancellationText:"Cancel",confirmButtonVariant:"half-filled-red",onSubmit:()=>C(this,null,function*(){try{yield this.requestsService.unlinkProvider({externalId:e.externalId}),this.eventsService.log(this.eventsService.events.profile.loginAccount,{provider:e.key,action:"disconnect"}),this.eventsService.log(this.eventsService.events.profile.profileProcessEnd,{process:"account-disconnect"}),this.dialogHelperService.close(),this.notifier.success(`${e.name} account unlinked`),yield this.loadUserData(!0);}catch(t){console.error("Failed to unlink provider",t),this.notifier.error(`Failed to unlink ${e.name}`);}})});}onRemoveDevice(e){this.eventsService.log(this.eventsService.events.profile.profileProcessStart,{process:"unlink-device"}),this.dialogHelperService.showNewConfirmationDialog({title:"Remove device",msg:`Are you sure you want to remove <strong>${e.name}</strong>? This will sign out the device.`,confirmationText:"Remove",cancellationText:"Cancel",confirmButtonVariant:"primary",confirmButtonDestructive:!0,onSubmit:()=>C(this,null,function*(){try{yield this.requestsService.deactivateDevice(e.deviceId),this.eventsService.log(this.eventsService.events.profile.detachDevice,{type:e.deviceId}),this.eventsService.log(this.eventsService.events.profile.profileProcessEnd,{process:"unlink-device"}),this.dialogHelperService.close(),this.devices=this.devices.filter(t=>t.deviceId!==e.deviceId),this.notifier.success("Device removed");}catch(t){console.error("Failed to remove device",t),this.notifier.error("Failed to remove device");}})});}onPrivacyToggle(e){e.enabled=!e.enabled,this.preferencesDataService.updatePrivacyPreference(e.label,e.enabled);}onOpenCookiePreferences(){window.Osano?.cm?.showDrawer?.();}loadPrivacyPreferences(){return C(this,null,function*(){try{yield this.preferencesDataService.loadUserPreferences();let e=this.preferencesDataService.getPrivacyPreferences(),t=this.privacyToggles.find(i=>i.key==="dataCollection");t&&e?.dataCollection!==void 0&&(t.enabled=e.dataCollection);}catch(e){console.error("Failed to load privacy preferences",e);}});}scrollToRedeemSection(){this.scrollToRedeemTimeoutId=setTimeout(()=>{document.getElementById("redeem-code")?.scrollIntoView({behavior:"smooth",block:"center"});});}onRedeemCodeChange(e){this.redeemCodeValue=e;}onRedeemCode(){return C(this,null,function*(){if(this.redeemCodeValue.trim())try{yield this.requestsService.redeemCoupon(this.redeemCodeValue.trim()),this.eventsService.log(this.eventsService.events.coupons.redeem),this.notifier.success("Code redeemed successfully"),this.redeemCodeValue="",yield this.planHelperService.getOrganizationPlansDetails(!0),this.planHelperService.setPlanUpdated(),this.creditsService.refreshCredits();}catch(e){console.error("Failed to redeem code",e);let i=e?.responseJSON?.msg||"Failed to redeem code. Please check and try again.";this.notifier.error(i);}});}onExportData(){this.dialogHelperService.showNewConfirmationDialog({title:"Export your data",msg:"We will prepare an export of all your data including scripts, media assets, and videos. You will receive an email with a download link when it is ready (available for 7 days).",confirmationText:"Request export",cancellationText:"Cancel",onSubmit:()=>C(this,null,function*(){try{yield this.requestsService.exportAccount(),this.dialogHelperService.close(),this.notifier.info("We are working on your account export. You will get an email when the data is ready");}catch(e){console.error("Failed to export data",e);let t=e,i=this.errorParseService.parseAccountExportErrors(t?.responseJSON?.code);this.notifier.error(i);}})});}onDeleteAccount(){return C(this,null,function*(){if(this.eventsService.log(this.eventsService.events.profile.deleteAccount),this.eventsService.log(this.eventsService.events.profile.profileProcessStart,{process:"delete-account"}),!(yield this.isOrganizationOwner())){this.dialogHelperService.showUiConfirmationDialog({title:"Contact Owner",msg:"Contact your team owner to perform this action"});return;}let t=new $i();t.userEmail=this.userEmail,t.onDelete=this.deleteAccount,t.onClose=this.dialogHelperService.close;let i=new xe();i.panelClass="delete-account-dialog-container",this.dialogHelperService.open(t,Rr,i);});}isOrganizationOwner(){return C(this,null,function*(){try{let e=(yield this.userHelperService.getUserDetails()).userId,t=(yield this.workspaceHelperService.getOrganizationData()).owner.userId;return e===t;}catch{return!1;}});}static{this.ɵfac=function(t){return new(t||n)(x(ie),x(he),x(ee),x(_e),x(Y),x(Ft),x(Ge),x(ko),x(Eo),x(ve),x(Lt),x(Se),x(Le),x(lt),x(Ue),x(Fo));};}static{this.ɵcmp=P({type:n,selectors:[["login-privacy"]],viewQuery:function(t,i){if(t&1&&se(lp,5),t&2){let a;re(a=ae())&&(i.mfaToggle=a.first);}},standalone:!0,features:[It([Ue]),W,M],decls:2,vars:2,consts:[["mfaToggle",""],[4,"ngIf"],["class","login-privacy-container",4,"ngIf"],[1,"login-privacy-container"],[1,"section-card"],[1,"section-header"],[1,"section-title-group"],[1,"section-title"],[1,"section-subtitle"],["class","alert-row",4,"ngIf"],[1,"settings-rows"],[1,"setting-row"],[1,"setting-info"],[1,"setting-label"],[1,"setting-value-row"],[1,"setting-value"],["size","small","shape","rounded",3,"text","color"],[1,"setting-actions"],["variant","primary","size","sm",3,"clicked",4,"ngIf"],["variant","secondary","size","sm",3,"clicked"],[1,"setting-description"],["class","setting-description",4,"ngIf"],[3,"changed","checked","disabled"],["class","setting-row",4,"ngFor","ngForOf"],["class","settings-rows",4,"ngIf"],["class","empty-state-card",4,"ngIf"],["class","section-footer-note",4,"ngIf"],[1,"section-footer-note"],["href","https://www.bigvu.tv/privacy","target","_blank","rel","noopener"],["id","redeem-code",1,"section-card"],[1,"redeem-row"],["placeholder","Enter a code","size","small",3,"valueChange","label","leftIcon","leftIconContent","value"],["variant","secondary","size","md",3,"clicked","disabled"],[1,"setting-label","text-danger"],["variant","secondary","size","sm",3,"clicked","destructive"],[1,"alert-row"],["status","error","size","regular","message","Your email is not verified. Please verify to secure your account."],["variant","primary","size","sm",3,"clicked"],[1,"provider-row"],[1,"provider-icon",3,"src","alt"],[1,"provider-text"],["class","setting-description text-success",4,"ngIf"],["class","setting-description text-danger",4,"ngIf"],["variant","secondary","size","sm",3,"clicked",4,"ngIf"],["variant","secondary","size","sm",3,"destructive","clicked",4,"ngIf"],[1,"setting-description","text-success"],[1,"setting-description","text-danger"],[1,"device-row"],["src","/img/icon-library/misc/mobile-device.svg","alt","",1,"device-icon"],["variant","ghost","size","sm","iconContent","/img/icon-library/trash-bin/delete-trash.svg",3,"clicked","destructive"],[1,"empty-state-card"],[1,"empty-state-content"],[1,"empty-state-title"],[1,"empty-state-text"],[3,"checked","changed",4,"ngIf"],[3,"changed","checked"]],template:function(t,i){t&1&&b(0,sp,1,0,"app-login-privacy-shimmer",1)(1,Op,111,19,"div",2),t&2&&(c("ngIf",i.isLoading),l(
13),c("ngIf",!i.isLoading));},dependencies:[N,le,B,ue,lo,ut,hi,Je,Ur],styles:[".login-privacy-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;width:100%}.section-card[_ngcontent-%COMP%]{background:#fff;border-radius:12px;border:1px solid #e5e7eb;padding:24px}.section-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px}.section-title[_ngcontent-%COMP%]{font-size:20px;font-weight:700;color:#253658;margin:0;line-height:28px}.section-subtitle[_ngcontent-%COMP%]{font-size:14px;color:#6b7280;margin:4px 0 0;line-height:20px}.section-title-group[_ngcontent-%COMP%]{flex:1;min-width:0}.alert-row[_ngcontent-%COMP%]{margin-bottom:20px}.settings-rows[_ngcontent-%COMP%]{display:flex;flex-direction:column}.setting-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid transparent}.setting-row[_ngcontent-%COMP%]:first-child{padding-top:0}.setting-row[_ngcontent-%COMP%]:last-child{border-bottom:none;padding-bottom:0}.setting-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}.setting-label[_ngcontent-%COMP%]{font-size:14px;font-weight:600;color:#253658;line-height:20px}.setting-label.text-danger[_ngcontent-%COMP%]{color:#ef4444}.setting-value-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.setting-value[_ngcontent-%COMP%]{font-size:14px;color:#253658;line-height:20px}.setting-description[_ngcontent-%COMP%]{font-size:13px;color:#6b7280;line-height:18px}.setting-description.text-success[_ngcontent-%COMP%]{color:#10b981}.setting-description.text-danger[_ngcontent-%COMP%]{color:#ef4444}.setting-description.text-warning[_ngcontent-%COMP%]{color:#f59e0b}.setting-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;flex-shrink:0}.provider-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.provider-icon[_ngcontent-%COMP%]{width:24px;height:24px;flex-shrink:0}.provider-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px}.device-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.device-icon[_ngcontent-%COMP%]{width:20px;height:20px;flex-shrink:0;opacity:.6}.empty-state-card[_ngcontent-%COMP%]{background:#f9fafb;border-radius:10px;padding:32px}.empty-state-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}.empty-state-title[_ngcontent-%COMP%]{font-size:14px;font-weight:600;color:#253658}.empty-state-text[_ngcontent-%COMP%]{font-size:13px;color:#6b7280;line-height:20px}.section-footer-note[_ngcontent-%COMP%]{font-size:12px;color:#9ca3af;margin:16px 0 0;line-height:18px}.section-footer-note[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#2563eb;text-decoration:none}.section-footer-note[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}.redeem-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px}.redeem-row[_ngcontent-%COMP%] lib-input[_ngcontent-%COMP%]{width:464px}@media only screen and (max-width: 767px){.setting-row[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:12px}.setting-actions[_ngcontent-%COMP%]{align-self:flex-end}.section-header[_ngcontent-%COMP%]{flex-direction:column;gap:12px}}","[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}.profile-component-container[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;align-items:stretch;padding:32px 64px 0;box-sizing:border-box;height:calc(100vh - 56px);overflow:hidden}.profile-navigation-sidebar[_ngcontent-%COMP%]{width:280px;flex-shrink:0;margin-right:40px;align-self:flex-start}.tabs-menu-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.tabs-menu-container[_ngcontent-%COMP%] lib-submenu-item[_ngcontent-%COMP%]{cursor:pointer}.profile-content-container[_ngcontent-%COMP%]{width:1000px;position:relative;min-height:0;height:100%;overflow-y:auto;padding-bottom:84px;scrollbar-width:none;-ms-overflow-style:none}.profile-content-container[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.profile-content-container[_ngcontent-%COMP%] .referral-loading-overlay[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#ffffffb3;z-index:10;border-radius:10px}.profile-content-container[_ngcontent-%COMP%] .referral-spinner[_ngcontent-%COMP%]{width:40px;height:40px;border:3px solid rgba(68,129,253,.2);border-top-color:#4481fd;border-radius:50%;animation:_ngcontent-%COMP%_spin .8s linear infinite}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}@media only screen and (max-width: 1023px){.profile-navigation-sidebar[_ngcontent-%COMP%]{width:30%;margin-right:40px}.profile-content-container[_ngcontent-%COMP%]{width:75%}}@media only screen and (max-width: 767px){.profile-component-container[_ngcontent-%COMP%]{flex-direction:column;padding:30px 16px 84px;overflow-y:auto}.profile-navigation-sidebar[_ngcontent-%COMP%]{width:100%;margin-bottom:40px;margin-right:0;position:static}.profile-content-container[_ngcontent-%COMP%]{width:100%;height:auto;overflow:visible;padding-bottom:0}}",".profile-common-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.profile-common-sub-container[_ngcontent-%COMP%]{background-color:#fff;border-radius:10px;padding:18px;width:100%;margin:0 0 18px}.profile-common-title[_ngcontent-%COMP%]{font-size:18px;line-height:24px;font-family:Inter-Bold;color:#253658;display:flex;align-items:center;gap:5px}hr.profile-common-hr[_ngcontent-%COMP%]{margin:18px 0}.profile-common-paragraph[_ngcontent-%COMP%]{font-size:14px;color:#7b8db1}.profile-common-sub-title[_ngcontent-%COMP%]{margin-bottom:12px;color:#000;line-height:24px;font-size:15px;font-weight:600;text-transform:capitalize;display:flex;align-items:center;gap:5px}.profile-big-sub-title[_ngcontent-%COMP%]{font-size:28px;font-family:Inter-Bold;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#253658;margin-bottom:8px}
13.content-separator[_ngcontent-%COMP%]{height:1px;background-color:#7b8db14d;margin:18px 0}.profile-sub-header[_ngcontent-%COMP%]{font-size:14px;color:#25365899;max-width:380px}.profile-details-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;height:36px}.profile-buttons-container[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px}.profile-details-cancel-button[_ngcontent-%COMP%], .profile-details-save-button[_ngcontent-%COMP%]{width:90px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px}.profile-details-cancel-button[_ngcontent-%COMP%]:hover, .profile-details-save-button[_ngcontent-%COMP%]:hover{opacity:.8}.profile-details-cancel-button[_ngcontent-%COMP%]{background:#7b8db114;color:#7b8db1;margin:0 12px 0 auto}.profile-details-save-button[_ngcontent-%COMP%]{background:#00abfe;color:#fff}.profile-details-preview[_ngcontent-%COMP%]{padding:0 22px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px;border:1px solid #00abfe;color:#00abfe;background:#fff}.disabled-button[_ngcontent-%COMP%]{background:gray!important;color:#d3d3d3!important}.disabled-button[_ngcontent-%COMP%]:hover{opacity:1} autocomplete-menu .autocomplete-menu-container{border-radius:10px;background-color:#7b8db114;padding:5px 12px;height:46px;cursor:text} autocomplete-menu .autocomplete-menu-container input{color:#253658;font-size:14px} autocomplete-menu .autocomplete-menu-container .mat-form-field-label-wrapper label mat-label{color:#00abfe!important;font-weight:700} autocomplete-menu .autocomplete-menu-container .mdc-line-ripple{display:none!important}.billing-plan-details-title[_ngcontent-%COMP%]{color:#888;font-size:12px;font-weight:400;text-transform:capitalize}.billing-plan-details-sub-title[_ngcontent-%COMP%]{color:#000;font-size:13px;font-weight:700;text-transform:capitalize}"]});}}return n;})();F();bi();yi();I();var jr=(()=>{class n{static{this.ɵfac=function(t){return new(t||n)();};}static{this.ɵcmp=P({type:n,selectors:[["app-email-notifications-shimmer"]],standalone:!0,features:[M],decls:22,vars:0,consts:[[1,"email-notifications-shimmer"],[1,"shimmer-card"],[1,"shimmer-section-header"],[1,"shimmer-header-content"],[1,"shimmer-block","title-block"],[1,"shimmer-block","text-block-medium"],[1,"shimmer-block","chevron-block"],[1,"shimmer-block","title-block-sm"],[1,"shimmer-block","text-block-medium-sm"],[1,"shimmer-header-actions"],[1,"shimmer-block","toggle-block"],[1,"wave"]],template:function(t,i){t&1&&(o(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),g(4,"div",4)(5,"div",5),r(),g(6,"div",6),r()(),o(7,"div",1)(8,"div",2)(9,"div",3),g(10,"div",7)(11,"div",8),r(),g(12,"div",6),r()(),o(13,"div",1)(14,"div",2)(15,"div",3),g(16,"div",4)(17,"div",5),r(),o(18,"div",9),g(19,"div",10)(20,"div",6),r()()(),g(21,"div",11),r());},styles:[".email-notifications-shimmer[_ngcontent-%COMP%]{position:relative;overflow:hidden;width:100%;display:flex;flex-direction:column;gap:18px}.shimmer-card[_ngcontent-%COMP%]{background:#fff;border-radius:16px;padding:24px;width:100%}.shimmer-block[_ngcontent-%COMP%]{background:#4481fd1f;border-radius:6px;flex-shrink:0}.title-block[_ngcontent-%COMP%]{width:160px;height:22px}.title-block-sm[_ngcontent-%COMP%]{width:100px;height:22px}
13.text-block-medium[_ngcontent-%COMP%]{width:300px;height:14px}.text-block-medium-sm[_ngcontent-%COMP%]{width:260px;height:14px}.chevron-block[_ngcontent-%COMP%]{width:24px;height:24px;border-radius:4px}.toggle-block[_ngcontent-%COMP%]{width:44px;height:24px;border-radius:12px}.shimmer-section-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.shimmer-header-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.shimmer-header-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.wave[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.3) 50%,transparent 100%);transform:translate(-100%);animation:_ngcontent-%COMP%_wave 1.5s infinite}@keyframes _ngcontent-%COMP%_wave{0%{transform:translate(-100%)}50%{transform:translate(100%)}to{transform:translate(100%)}}",".profile-common-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.profile-common-sub-container[_ngcontent-%COMP%]{background-color:#fff;border-radius:10px;padding:18px;width:100%;margin:0 0 18px}.profile-common-title[_ngcontent-%COMP%]{font-size:18px;line-height:24px;font-family:Inter-Bold;color:#253658;display:flex;align-items:center;gap:5px}hr.profile-common-hr[_ngcontent-%COMP%]{margin:18px 0}.profile-common-paragraph[_ngcontent-%COMP%]{font-size:14px;color:#7b8db1}.profile-common-sub-title[_ngcontent-%COMP%]{margin-bottom:12px;color:#000;line-height:24px;font-size:15px;font-weight:600;text-transform:capitalize;display:flex;align-items:center;gap:5px}.profile-big-sub-title[_ngcontent-%COMP%]{font-size:28px;font-family:Inter-Bold;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#253658;margin-bottom:8px}
13.content-separator[_ngcontent-%COMP%]{height:1px;background-color:#7b8db14d;margin:18px 0}.profile-sub-header[_ngcontent-%COMP%]{font-size:14px;color:#25365899;max-width:380px}.profile-details-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;height:36px}.profile-buttons-container[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px}.profile-details-cancel-button[_ngcontent-%COMP%], .profile-details-save-button[_ngcontent-%COMP%]{width:90px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px}.profile-details-cancel-button[_ngcontent-%COMP%]:hover, .profile-details-save-button[_ngcontent-%COMP%]:hover{opacity:.8}.profile-details-cancel-button[_ngcontent-%COMP%]{background:#7b8db114;color:#7b8db1;margin:0 12px 0 auto}.profile-details-save-button[_ngcontent-%COMP%]{background:#00abfe;color:#fff}.profile-details-preview[_ngcontent-%COMP%]{padding:0 22px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px;border:1px solid #00abfe;color:#00abfe;background:#fff}.disabled-button[_ngcontent-%COMP%]{background:gray!important;color:#d3d3d3!important}.disabled-button[_ngcontent-%COMP%]:hover{opacity:1} autocomplete-menu .autocomplete-menu-container{border-radius:10px;background-color:#7b8db114;padding:5px 12px;height:46px;cursor:text} autocomplete-menu .autocomplete-menu-container input{color:#253658;font-size:14px} autocomplete-menu .autocomplete-menu-container .mat-form-field-label-wrapper label mat-label{color:#00abfe!important;font-weight:700} autocomplete-menu .autocomplete-menu-container .mdc-line-ripple{display:none!important}.billing-plan-details-title[_ngcontent-%COMP%]{color:#888;font-size:12px;font-weight:400;text-transform:capitalize}.billing-plan-details-sub-title[_ngcontent-%COMP%]{color:#000;font-size:13px;font-weight:700;text-transform:capitalize}"]});}}return n;})();I();ft();Wt();be();var Ep=n=>({expanded:n});function kp(n,m){n&1&&g(0,"app-email-notifications-shimmer");}function Ip(n,m){if(n&1){let e=y();o(0,"div",15),u("click",function(i){return f(e),h(i.stopPropagation());}),o(1,"toggle-button",16),u("onToggle",function(){f(e);let i=p(3);return h(i.toggleAllMarketing());}),r()();}if(n&2){let e=p(3);l(),c("state",e.isAllMarketingEnabled());}}function Tp(n,m){if(n&1){let e=y();o(0,"div",24)(1,"div",25)(2,"div",26),s(3),r(),o(4,"div",27),s(5),r()(),o(6,"div",28)(7,"toggle-button",16),u("onToggle",function(){let i=f(e).index,a=p(2).$implicit,d=p(2);return h(d.onNotificationPreferenceChange(a,i,"email"));}),r(),o(8,"toggle-button",16),u("onToggle",function(){let i=f(e).index,a=p(2).$implicit,d=p(2);return h(d.onNotificationPreferenceChange(a,i,"app"));}),r()()();}if(n&2){let e=m.$implicit;l(3),E(e.name),l(2),E(e.description),l(2),c("state",e.email),l(),c("state",e.app);}}function Dp(n,m){if(n&1&&(o(0,"div",17),g(1,"div",18),o(2,"div",19)(3,"span",20),s(4),r(),o(5,"div",21)(6,"span",22),s(7,"Email"),r(),o(8,"span",22),s(9,"Push"),r()()(),b(10,Tp,9,4,"div",23),r()),n&2){let e=p().$implicit,t=p(2);l(4),E(t.sectionColumnLabels[e]),l(6),c("ngForOf",t.notificationPreferences[e])("ngForTrackBy",t.trackByPrefIndex);}}function Ap(n,m){if(n&1){let e=y();o(0,"div",4)(1,"div",5),u("click",function(){let i=f(e).$implicit,a=p(2);return h(a.toggleSection(i));}),o(2,"div",6)(3,"div",7),s(4),r(),o(5,"div",8),s(6),r()(),o(7,"div",9),b(8,Ip,2,1,"div",10),o(9,"button",11),g(10,"img",12),r()()(),o(11,"div",13),b(12,Dp,11,3,"div",14),r()();}if(n&2){let e=m.$implicit,t=p(2);l(4),E(e),l(2),E(t.sectionSubtitles[e]),l(2),c("ngIf",e==="Marketing Updates"),l(),c("ngClass",ce(6,Ep,t.expandedSections[e])),l(2),c("@containerResize",t.expandedSections[e]),l(),c("ngIf",t.expandedSections[e]);}}function Vp(n,m){if(n&1&&(o(0,"div",2),b(1,Ap,13,8,"div",3),r()),n&2){let e=p();l(),c("ngForOf",e.sectionKeys)("ngForTrackBy",e.trackBySection);}}var zp={Alerts:"Get notified about important activity on your account",Reports:"Stay up to date with your weekly and monthly performance","Marketing Updates":"Control what promotional content you receive"},Fp={Alerts:"Notification",Reports:"Report","Marketing Updates":"Category"},Hr=(()=>{class n{constructor(e,t,i,a){this.preferencesDataService=e,this.planHelperService=t,this.premiumPlanService=i,this.eventsService=a,this.sectionKeys=[],this.expandedSections={},this.sectionSubtitles=zp,this.sectionColumnLabels=Fp,this.hasPremiumPlan=!1,this.isLoading=!0;}ngOnInit(){return C(this,null,function*(){yield this.preferencesDataService.loadUserPreferences(),this.notificationPreferences=this.preferencesDataService.getNotificationPreferences(),this.sectionKeys=Object.keys(this.notificationPreferences),this.sectionKeys.forEach(e
13=>this.expandedSections[e]=!1),this.setPlanChangeListener(),this.isLoading=!1;});}toggleSection(e){this.expandedSections[e]=!this.expandedSections[e];}onNotificationPreferenceChange(e,t,i){let a=this.notificationPreferences[e][t],d=!a[i];a.isPremium&&!this.hasPremiumPlan&&d?this.showPremiumPlanDialog():(a[i]=d,this.preferencesDataService.updateNotificationPreference(a.name,i,d));}trackBySection(e,t){return t;}trackByPrefIndex(e){return e;}toggleAllMarketing(){let t=this.notificationPreferences["Marketing Updates"];if(!t)return;let i=!this.isAllMarketingEnabled();t.forEach(a=>{a.email!==i&&(a.email=i,this.preferencesDataService.updateNotificationPreference(a.name,"email",i)),a.app!==i&&(a.app=i,this.preferencesDataService.updateNotificationPreference(a.name,"app",i));});}isAllMarketingEnabled(){let e=this.notificationPreferences?.["Marketing Updates"];return e?e.every(t=>t.email&&t.app):!1;}setPlanChangeListener(){this.planSubscription=this.planHelperService.organizationPlan$.subscribe(()=>this.setHasPremiumPlan());}setHasPremiumPlan(){return C(this,null,function*(){this.hasPremiumPlan=yield this.planHelperService.hasPremiumPlan();});}showPremiumPlanDialog(){let e="profile/email-notifications";this.premiumPlanService.openPricingDialog(Re.PRO,e,e,Ae.notificationPreference);}ngOnDestroy(){this.planSubscription?.unsubscribe();}static{this.ɵfac=function(t){return new(t||n)(x(Ue),x(ve),x(Ze),x(Y));};}static{this.ɵcmp=P({type:n,selectors:[["email-notifications"]],standalone:!0,features:[It([Ue]),M],decls:2,vars:2,consts:[[4,"ngIf"],["class","email-notifications-container",4,"ngIf"],[1,"email-notifications-container"],["class","section-card",4,"ngFor","ngForOf","ngForTrackBy"],[1,"section-card"],[1,"section-header",3,"click"],[1,"header-content"],[1,"section-title"],[1,"section-subtitle"],[1,"header-actions"],["class","master-toggle",3,"click",4,"ngIf"],[1,"chevron-btn",3,"ngClass"],["src","/img/chevron-down.svg","alt","Toggle section"],[1,"section-body-wrapper"],["class","section-body",4,"ngIf"],[1,"master-toggle",3,"click"],[3,"onToggle","state"],[1,"section-body"],[1,"section-divider"],[1,"column-headers"],[1,"column-label-left"],[1,"column-toggles-header"],[1,"column-label"],["class","notification-row",4,"ngFor","ngForOf","ngForTrackBy"],[1,"notification-row"],[1,"notification-info"],[1,"notification-name"],[1,"notification-desc"],[1,"notification-toggles"]],template:function(t,i){t&1&&b(0,kp,1,0,"app-email-notifications-shimmer",0)(1,Vp,2,2,"div",1),t&2&&(c("ngIf",i.isLoading),l(),c("ngIf",!i.isLoading));},dependencies:[le,N,Xe,Gt,jr],styles:[".email-notifications-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px;width:100%}.section-card[_ngcontent-%COMP%]{background-color:#fff;border-radius:16px;padding:24px}.section-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;cursor:pointer}.header-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.section-title[_ngcontent-%COMP%]{font-size:20px;font-weight:600;color:#253658;line-height:28px}.section-subtitle[_ngcontent-%COMP%]{font-size:14px;font-weight:400;color:#4b5563;line-height:20px}.header-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.master-toggle[_ngcontent-%COMP%]{display:flex;align-items:center}.chevron-btn[_ngcontent-%COMP%]{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border:none;background:transparent;border-radius:8px;cursor:pointer;transition:transform .2s ease}.chevron-btn[_ngcontent-%COMP%]:hover{background-color:#eeeff2}.chevron-btn[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:20px;height:20px;transition:transform .2s ease}.chevron-btn.expanded[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{transform:rotate(180deg)}.section-body-wrapper[_ngcontent-%COMP%]{position:relative;overflow:hidden}.section-body[_ngcontent-%COMP%]{display:flex;flex-direction:column}.section-divider[_ngcontent-%COMP%]{height:1px;background-color:transparent;margin:20px 0}.column-headers[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.column-label-left[_ngcontent-%COMP%]{font-size:12px;font-weight:500;color:#9ca3af;text-transform:uppercase;letter-spacing:.05em}.column-toggles-header[_ngcontent-%COMP%]{display:flex;gap:24px;min-width:132px;justify-content:center}.column-label[_ngcontent-%COMP%]{font-size:12px;font-weight:500;color:#9ca3af;text-align:center;width:54px}.notification-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:12px 0}.notification-row[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid transparent}.notification-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0;padding-right:16px}
13.notification-name[_ngcontent-%COMP%]{font-size:16px;font-weight:500;color:#253658;line-height:24px}.notification-desc[_ngcontent-%COMP%]{font-size:15px;font-weight:400;color:#6b7280;line-height:22px}.notification-toggles[_ngcontent-%COMP%]{display:flex;gap:24px;min-width:132px;justify-content:center}"],data:{animation:[Di.containerResize]}});}}return n;})();var o_=[{path:ne.home,component:Qo,canActivate:[qo,$o],canDeactivate:[Ro],children:[{path:ne.home,component:rr,canActivate:[Ve]},{path:ne.extra,component:wn,canActivate:[Ve]},{path:ne.business,component:gn,canActivate:[Ve]},{path:ne.business_affiliate,component:gn,canActivate:[Ve]},{path:ne.domain,component:Zo,canActivate:[Ve]},{path:ne.preferences,component:cr},{path:ne.billing,component:Ar,canActivate:[Ve]},{path:ne.affiliate,component:Cr,canActivate:[Ve]},{path:ne.experts,component:xr,canActivate:[Ve]},{path:ne.sso,component:Br,canActivate:[Ve]},{path:ne.trashBin,component:dr,canActivate:[Ve]},{path:ne.loginPrivacy,component:wn,canActivate:[Ve]},{path:ne.emailNotifications,component:Hr,canActivate:[Ve]}]}];export{o_ as routes};/**i18n:e059b5419240afef74436eb5a1887102ff8937e043a8d48b1423a03649476971*/ 14//# debugId=7ff54782-b1b0-5349-8aaa-7b77fb27c2ab
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.