PageSourceSearch

https://www.eldorado.gg/chunk-33RUHHCE.js

js eldorado.gg collected 2026-09-24 20:02:22 UTC 74,719 bytes, 4 lines download raw bytes

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]="2a7fd3be-35e9-5679-8f87-b879f4c8de50")}catch(e){}}();
3import{a as Mn}from"./chunk-QTCCPTZ6.js";import{a as In}from"./chunk-KJ2EDQ7W.js";import{a as On}from"./chunk-XWQABWHV.js";import{a as Dn}from"./chunk-SW6CAPI4.js";import{v as hn}from"./chunk-KH2OPDW7.js";import{b as Nn}from"./chunk-7QJ77ZCD.js";import{a as Ze}from"./chunk-BSEIL2FS.js";import{a as se}from"./chunk-ZPM45NLY.js";import"./chunk-5XJ2A37Y.js";import{a as Ve}from"./chunk-IGXDIGTW.js";import{a as fn}from"./chunk-5LMAWQYI.js";import"./chunk-I44XM4VS.js";import"./chunk-XPHCNJIZ.js";import{d as An,j as Cn}from"./chunk-6CZNRYSF.js";import{a as Sn}from"./chunk-BBT3V5DN.js";import"./chunk-QPQ5U7CL.js";import{B as on,C as rn,F as _n,H as an,I as He,K as sn,M as ln,P as M,a as Xt,c as Wt,d as Yt,e as jt,f as qt,j as Qt,k as Kt,l as Jt,m as ve,n as Zt,o as en,p as Je,v as ye,w as tn,x as nn}from"./chunk-V6MPAE46.js";import"./chunk-WSR2LQXJ.js";import{c as Tn}from"./chunk-2P33FOQL.js";import"./chunk-A5MRUSUO.js";import"./chunk-OE5HBOUP.js";import"./chunk-4HIOK7IU.js";import"./chunk-SEYW75FS.js";import{a as j,b as q}from"./chunk-URCHDJUK.js";import{a as un}from"./chunk-XD6BBOOK.js";import{b as gn}from"./chunk-V7KFNQFG.js";import{a as Oe}from"./chunk-L6V3QX4D.js";import"./chunk-UCWNRO56.js";import{b as mn}from"./chunk-MC32HPIJ.js";import"./chunk-WFSHCAYZ.js";import{b as ae}from"./chunk-LM6YNNWJ.js";import{c as cn}from"./chunk-R5JSEUD6.js";import"./chunk-MWL2FFFD.js";import{a as he}from"./chunk-MJQPGXQA.js";import{c as De}from"./chunk-UP7JJ5CQ.js";import{c as te}from"./chunk-5OIQMPTD.js";import"./chunk-WK7JGA4O.js";import"./chunk-LQ4VKUEJ.js";import{c as En}from"./chunk-WYHHUQGQ.js";import{a as v}from"./chunk-ASX35LZ3.js";import{a as Ue}from"./chunk-5CMGDIGY.js";import{d as Q,e as y,f as ne,j as ke,l as ie,o as ze,r as oe,s as re,w as _e,z as H}from"./chunk-3I3QRXE3.js";import"./chunk-KP4ZWBAU.js";import{i as fe}from"./chunk-LENXEETP.js";import"./chunk-QYZK7QCM.js";import"./chunk-IB7PDLZR.js";import"./chunk-VCEBYPVT.js";import"./chunk-RUVMA635.js";import{a as Gt}from"./chunk-QY63XGLG.js";import"./chunk-JP3J2EIG.js";import"./chunk-B4OJV77W.js";import{P as Bt,b as bt,x as Lt}from"./chunk-IJME5RCK.js";import{i as Ut,j as kt,k as zt,l as Vt}from"./chunk-VVHXKJVC.js";import{a as xt,c as wt}from"./chunk-53LEKQ6W.js";import"./chunk-TBDJQ7TF.js";import"./chunk-GHFNDSJY.js";import"./chunk-EIJYTSSU.js";import{f as $e}from"./chunk-YSIK6MXW.js";import"./chunk-JSFO5J2A.js";import{c as pn}from"./chunk-W46QXR7J.js";import"./chunk-7JZBFRBC.js";import"./chunk-VEE7FFD6.js";import"./chunk-Y3BOGZA4.js";import"./chunk-R6OQSG5T.js";import"./chunk-RFGDW4TP.js";import"./chunk-HW4GJV3L.js";import"./chunk-E4PRIN5E.js";import"./chunk-VYMYI5JX.js";import"./chunk-XSGLK73N.js";import"./chunk-2FDBDQC5.js";import"./chunk-QRUNXDIJ.js";import"./chunk-UBZAA23F.js";import"./chunk-IKI4AKGO.js";import"./chunk-AYDJY52V.js";import"./chunk-J62MJSSO.js";import"./chunk-J77BE44H.js";import{B as $t,q as ge}from"./chunk-QZXYJUOV.js";import"./chunk-EDGYPARL.js";import{D as yt,E as Ht,a as Fe,b as Ke,m as Ae,u as Ce,v as xe,w as ee,x as Ft,y as vt}from"./chunk-HHMEJT5Q.js";import{b as we}from"./chunk-G3UAL5O7.js";import{a as pe,c as Te,d as Rt}from"./chunk-RE4Z5UYO.js";import{J as Mt,da as Pt}from"./chunk-UHERDYYU.js";import{A as Be,F as Z,m as J}from"./chunk-AI7XZROF.js";import{a as dn}from"./chunk-QYBPOF7X.js";import"./chunk-ZRIFOCYK.js";import{a as It}from"./chunk-U4TDMDM3.js";import{$d as Nt,Aa as C,Ac as T,Bc as Ie,Bd as Ot,Cc as Me,Cd as K,Db as s,Ec as L,Ed as Dt,Fc as B,G as rt,Ha as u,Ia as A,Id as F,Ja as St,Jd as ce,Ka as dt,Kc as h,Kd as Ee,L as _t,Na as be,Qc as Se,Rc as de,Sc as c,Ta as b,Td as me,Ud as x,Vb as D,W as at,Wa as G,Wb as Et,Wc as Tt,Xc as E,Yb as mt,Zc as Le,Zd as I,_c as S,_d as O,gd as gt,hd as ut,la as st,nd as N,od as w,p as ot,pc as pt,pd as Y,qc as m,sc as p,uc as le,ud as At,v as Ne,va as ue,vc as X,vd as Ct,wa as lt,wc as W,wd as ft,xc as d,yb as ct,yc as _,zc as a,zd as ht}from"./chunk-P7PFFTQP.js";import{a as qe,b as Qe}from"./chunk-CHCY4HII.js";var zn=(e,i)=>i.key;function Vn(e,i){if(e&1&&(_(0,"div",10),N(1),a()),e&2){let o=i.$implicit;s(),w(o.value.message);}}function Xn(e,i){if(e&1&&(X(0,Vn,2,1,"div",10,zn),F(2,"keyvalue")),e&2){S();let o=ft(1);W(ce(2,0,o==null?null:o.errors));}}function Wn(e,i){if(e&1&&(_(0,"div",7),At(1),m(2,Xn,3,2),a()),e&2){let o=S(2);s();let t=Ct(o.descriptionFormGroup.get(o.DESCRIPTION_FIELD_NAME));s(),p(t!=null&&t.touched&&t!=null&&t.invalid?2:-1);}}function Yn(e,i){if(e&1){let o=h();_(0,"div",9)(1,"eld-button",11),E("buttonClick",function(){u(o);let n=S(2);return A(n.onUpdateDescription());}),a()(),_(2,"div",12)(3,"eld-button",13),E("buttonClick",function(){u(o);let n=S(2);return A(n.onCancelUpdateDescription());}),a()();}}function jn(e,i){if(e&1){let o=h();_(0,"div",9)(1,"eld-button",14),E("buttonClick",function(){u(o);let n=S(2);return A(n.descriptionFormGroup.enable());}),a()();}}function qn(e,i){if(e&1&&(_(0,"h4",1),c(1,0),a(),_(2,"div",2)(3,"div",3)(4,"form",4)(5,"div",5),T(6,"eld-textarea",6),a(),m(7,Wn,3,2,"div",7),_(8,"div",8),m(9,Yn,4,0)(10,jn,2,0,"div",9),a()()()()),e&2){let o=S();s(4),d("formGroup",o.descriptionFormGroup),s(2),d("formControlName",o.DESCRIPTION_FIELD_NAME)("maxLength",o.descriptionFormGroup.enabled?500:void 0)("width",540),s(),p(o.descriptionFormGroup.enabled?7:-1),s(2),p(o.descriptionFormGroup.enabled?9:10);}}function Qn(e,i){if(e&1&&T(0,"ngx-skeleton-loader",15)(1,"ngx-skeleton-loader",16),e&2){let o=S();d("theme",o.skeletonTitleTheme),s(),d("theme",o.skeletonContainerTheme);}}var Rn=(()=>{let i=class i{constructor(){this.userProfile=O(),this.updateDescription=I(),this.fb=C(_e),this.DESCRIPTION_FIELD_NAME=On.ItemDescription,this.skeletonTitleTheme={width:"150px",height:"29px"},this.skeletonContainerTheme={height:"209px"},this.descriptionFormGroup=this.fb.group({[this.DESCRIPTION_FIELD_NAME]:["",[hn("Description")]]}),G(()=>{this.descriptionFormGroup.controls[this.DESCRIPTION_FIELD_NAME].setValue(this.userProfile()?.description??"");});}
3ngOnInit(){this.descriptionFormGroup.disable();}onUpdateDescription(){this.descriptionFormGroup.markAllAsTouched(),this.descriptionFormGroup.valid&&(this.updateDescription.emit(this.descriptionFormGroup.value[this.DESCRIPTION_FIELD_NAME]??""),this.descriptionFormGroup.disable());}onCancelUpdateDescription(){this.descriptionFormGroup.controls[this.DESCRIPTION_FIELD_NAME].setValue(this.userProfile()?.description??""),this.descriptionFormGroup.disable();}};i.ɵfac=function(n){return new(n||i)();},i.ɵcmp=D({type:i,selectors:[["eld-dashboard-settings-description"]],inputs:{userProfile:[1,"userProfile"]},outputs:{updateDescription:"updateDescription"},decls:2,vars:1,consts:()=>{let t;t="Your description";let n;n="Save changes";let r;r="Cancel changes";let l;return l="Change description",[t,[1,"font-bold"],[1,"description-container"],[1,"description-form"],[3,"formGroup"],[1,"form-group"],[3,"formControlName","maxLength","width"],[1,"validation-errors"],[1,"description-form-details"],[1,"description-update-button"],[1,"error"],["text",n,"type","submit",3,"buttonClick"],[1,"description-cancel-button"],["text",r,"theme","secondary","type","submit",3,"buttonClick"],["text",l,3,"buttonClick"],[1,"title-skeleton",3,"theme"],[1,"container-skeleton",3,"theme"]];},template:function(n,r){n&1&&m(0,qn,11,6)(1,Qn,2,2),n&2&&p(r.userProfile()?0:1);},dependencies:[H,ie,y,ne,re,oe,v,Dn,q,j,Be],styles:[".description-container[_ngcontent-%COMP%]{display:block;background-color:var(--background-base-1);margin-bottom:10px;box-shadow:var(--shadow-base);padding:24px 10px}.description-form[_ngcontent-%COMP%]{max-width:540px}.form-group[_ngcontent-%COMP%]{margin-bottom:20px}h4[_ngcontent-%COMP%]{margin-bottom:12px;color:var(--text-primary);font-weight:700;font-size:16px;line-height:15px}.description-form-details[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.description-update-button[_ngcontent-%COMP%]{max-width:max-content}.settings-description-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.description-text[_ngcontent-%COMP%]{background-color:var(--background-alt-1);color:var(--text-primary);max-width:540px;height:212px;padding:8px 12px;margin-bottom:20px;overflow-wrap:anywhere;overflow:scroll}.description-text[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{line-height:19.2px;font-size:16px}@media(min-width:481px){h4[_ngcontent-%COMP%]{font-size:24px;line-height:normal}.description-container[_ngcontent-%COMP%]{padding:24px 30px}.description-text[_ngcontent-%COMP%]{overflow:visible}}"],changeDetection:0});let e=i;return e;})();var Pn=(()=>{let i=class i{transform(t){switch(t){case M.BoostingOffers:return"Boosting offers";case M.DisputeUpdates:return"Dispute updates";case M.MessageReceived:return"Message received";case M.NewOrder:return"New order";case M.OrderUpdates:return"Order updates";case M.PaymentUpdates:return"Payment updates";case M.VerificationUpdates:return"Verification updates";case M.WithdrawalUpdates:return"Withdrawal updates";default:throw new Error("Invalid email subscriptions label.");}}};i.ɵfac=function(n){return new(n||i)();},i.ɵpipe=mt({name:"emailsSubscriptionsLabel",type:i,pure:!0});let e=i;return e;})();function Kn(e,i){if(e&1){let o=h();_(0,"div",15)(1,"h6"),N(2),F(3,"emailsSubscriptionsLabel"),a(),_(4,"small",13),N(5),a()(),_(6,"div",9)(7,"eld-toggle",10),F(8,"emailsSubscriptionsLabel"),E("toggle",function(n){let r=u(o).$implicit,l=S(2);return A(l.onToggleEmailSubscription(r.value,n));}),a()();}if(e&2){let o=i.$implicit,t=S(2);s(2),w(ce(3,4,o.value)),s(3),w(t.getSubscriptionDescription(o.value)),s(2),d("ariaLabel",ce(8,6,o.value))("checked",t.isSubscribed(o.value));}}function Jn(e,i){if(e&1){let o=h();_(0,"div",14)(1,"h6"),N(2),F(3,"emailsSubscriptionsLabel"),a(),_(4,"eld-toggle",10),F(5,"emailsSubscriptionsLabel"),E("toggle",function(n){let r=u(o).$implicit,l=S(2);return A(l.onToggleEmailSubscription(r.value,n));}),a()();}if(e&2){let o=i.$implicit,t=S(2);s(2),w(ce(3,3,o.value)),s(2),d("ariaLabel",ce(5,5,o.value))("checked",t.isSubscribed(o.value));}}function Zn(e,i){if(e&1){let o=h();_(0,"div",4)(1,"h4",5),c(2,0),a(),_(3,"div",6)(4,"div",7)(5,"div",8)(6,"h5"),N(7),a(),_(8,"div",9)(9,"eld-toggle",10),E("toggle",function(n){u(o);let r=S();return A(r.onToggleAllEmailSubscriptions(n));}),a()()()(),_(10,"div",11),X(11,Kn,9,8,null,null,le),F(13,"keyvalue"),a()()(),_(14,"div",12)(15,"h4"),c(16,1),a(),_(17,"div",6)(18,"div",7)(19,"div",8)(20,"h5"),c(21,2),a(),_(22,"small",13),c(23,3),a()()(),_(24,"div",11)(25,"div",14)(26,"h6"),N(27),a(),_(28,"eld-toggle",10),E("toggle",function(n){u(o);let r=S();return A(r.onToggleAllEmailSubscriptions(n));}),a()(),X(29,Jn,6,7,"div",14,le),F(31,"keyvalue"),a()()();}if(e&2){let o=S();s(7),Y("",o.allEmailSubscriptionsToggleLabelDesktop," "),s(2),d("ariaLabel",o.allEmailSubscriptionsToggleLabelDesktop)("checked",o.isAllSubscriptions()),s(2),W(Ee(13,6,o.emailSubscriptionsEnum,o.originalOrder)),s(16),Y("",o.allEmailSubscriptionsToggleLabelMobile," "),s(),d("ariaLabel",o.allEmailSubscriptionsToggleLabelMobile)("checked",o.isAllSubscriptions()),s(),W(Ee(31,9,o.emailSubscriptionsEnum,o.originalOrder));}}function ei(e,i){if(e&1&&T(0,"ngx-skeleton-loader",16)(1,"ngx-skeleton-loader",17),e&2){let o=S();d("theme",o.skeletonTitleTheme),s(),d("theme",o.skeletonContainerTheme);}}var Gn=(()=>{let i=class i{constructor(){this.userProfile=O(),this.emailSubscriptions=O(null),this.toggleAllEmailSubscriptions=I(),this.toggleEmailSubscription=I(),this.emailSubscriptionsEnum=M,this.currentSubscriptions=b([]),this.isAllSubscriptions=x(()=>Object.values(M).every(t=>this.currentSubscriptions().includes(t))),this.allEmailSubscriptionsToggleLabelDesktop="All email notifications",this.allEmailSubscriptionsToggleLabelMobile="Turn on all email notifications",this.skeletonTitleTheme={width:"150px",height:"29px"},this.skeletonContainerTheme={height:"629px"},G(()=>{this.currentSubscriptions.set(this.emailSubscriptions()??[]);});}getSubscriptionDescription(t){switch(t){case M.BoostingOffers:return"When you receive boosting offers or updates";case M.DisputeUpdates:return"When your dispute is resolved or updated";case M.MessageReceived:return"When you receive a new message";case M.NewOrder:return"When you receive a new order";case M.OrderUpdates:return"When your order status changes";case M.PaymentUpdates:return"When your payment is received or refunded";case M.VerificationUpdates:return"When your verification is processed or updated";case M.WithdrawalUpdates:return"When you request a withdrawal, and when it is processed";default:return"";}}onToggleAllEmailSubscriptions(t){this.toggleAllEmailSubscriptions.emit(t);}onToggleEmailSubscription(t,n){let r=n?this.currentSubscriptions().concat(t):this.currentSubscriptions().filter(l=>l!==t);this.currentSubscriptions.set(r),this.toggleEmailSubscription.emit(r);}isSubscribed(t){return this.currentSubscriptions().includes(t);}originalOrder(){return 0;}};i.ɵfac=function(n){return new(n||i)();},i.ɵcmp=D({type:i,selectors:[["eld-dashboard-settings-notifications"]],inputs:{userProfile:[1,"userProfile"],emailSubscriptions:[1,"emailSubscriptions"]},outputs:{toggleAllEmailSubscriptions:"toggleAllEmailSubscriptions",toggleEmailSubscription:"toggleEmailSubscription"},decls:2,vars:1,consts:()=>{let t;t="Email notifications";let n;n="Notifications settings";let r;r="Notifications";let l;return l="Choose which events we should email you about.",[t,n,r,l,[1,"desktop--sm"],[1,"font-bold"],[1,"n
3otifications-container"],[1,"notifications-container__top"],[1,"field-container"],[1,"column--3"],[3,"toggle","ariaLabel","checked"],[1,"notifications-container__bottom"],[1,"mobile--sm","mobile"],[1,"text-secondary"],[1,"flex","flex-row"],[1,"column--2"],[1,"title-skeleton",3,"theme"],[1,"container-skeleton",3,"theme"]];},template:function(n,r){n&1&&m(0,Zn,32,12)(1,ei,2,2),n&2&&p(r.userProfile()?0:1);},dependencies:[fn,q,j,Be,Pn],styles:[".dashboard-container[_ngcontent-%COMP%]{margin-top:32px;position:relative;max-width:1048px;padding:0 14px 50px}@media(min-width:1025px){.dashboard-container[_ngcontent-%COMP%]{padding:0 24px 50px}}.dashboard-text[_ngcontent-%COMP%]{max-width:1048px;padding-left:14px;padding-right:14px}@media(min-width:1025px){.dashboard-text[_ngcontent-%COMP%]{padding-left:24px;padding-right:24px}}.dashboard-tabs-container[_ngcontent-%COMP%]{padding-top:10px;padding-bottom:0}.dashboard-separator[_ngcontent-%COMP%]{margin-bottom:20px}@media(min-width:1025px){.dashboard-separator[_ngcontent-%COMP%]{margin-bottom:0}}h4[_ngcontent-%COMP%]{margin-bottom:12px;font-weight:700}h5[_ngcontent-%COMP%]{font-size:16px;grid-column:span 2;font-weight:700}h6[_ngcontent-%COMP%]{font-size:14px;font-weight:700}small[_ngcontent-%COMP%]{font-size:14px}.notifications-container[_ngcontent-%COMP%]{display:block;background-color:var(--background-base-1);margin-bottom:10px;box-shadow:var(--shadow-base)}.notifications-container__top[_ngcontent-%COMP%], .notifications-container__bottom[_ngcontent-%COMP%]{padding:20px 24px;line-height:normal}.notifications-container__top[_ngcontent-%COMP%]{border-bottom:1px solid var(--divider-border)}.notifications-container__bottom[_ngcontent-%COMP%], .notifications-container[_ngcontent-%COMP%]   .field-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1.5fr .5fr 1fr}.notifications-container__bottom[_ngcontent-%COMP%]   .column--2[_ngcontent-%COMP%], .notifications-container[_ngcontent-%COMP%]   .field-container[_ngcontent-%COMP%]   .column--2[_ngcontent-%COMP%]{margin-bottom:24px;grid-column:2}.notifications-container__bottom[_ngcontent-%COMP%]   .column--3[_ngcontent-%COMP%], .notifications-container[_ngcontent-%COMP%]   .field-container[_ngcontent-%COMP%]   .column--3[_ngcontent-%COMP%]{justify-self:flex-end}.mobile[_ngcontent-%COMP%]   .notifications-container__top[_ngcontent-%COMP%], .mobile[_ngcontent-%COMP%]   .notifications-container__bottom[_ngcontent-%COMP%]{padding:10px 12px}.mobile[_ngcontent-%COMP%]   .notifications-container__bottom[_ngcontent-%COMP%], .mobile[_ngcontent-%COMP%]   .notifications-container[_ngcontent-%COMP%]   .field-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.mobile[_ngcontent-%COMP%]   .notifications-container__bottom[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%], .mobile[_ngcontent-%COMP%]   .notifications-container[_ngcontent-%COMP%]   .field-container[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{position:relative;margin-bottom:5px}.mobile[_ngcontent-%COMP%]   .notifications-container__bottom[_ngcontent-%COMP%]   .flex-row[_ngcontent-%COMP%], .mobile[_ngcontent-%COMP%]   .notifications-container[_ngcontent-%COMP%]   .field-container[_ngcontent-%COMP%]   .flex-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:12px}.mobile[_ngcontent-%COMP%]   .notifications-container__bottom[_ngcontent-%COMP%]   .flex-row[_ngcontent-%COMP%]   h6[_ngcontent-%COMP%], .mobile[_ngcontent-%COMP%]   .notifications-container[_ngcontent-%COMP%]   .field-container[_ngcontent-%COMP%]   .flex-row[_ngcontent-%COMP%]   h6[_ngcontent-%COMP%]{font-weight:400}"],changeDetection:0});let e=i;return e;})();var Pe=Fe("[ForgetCard] Forget Primer Card Request",Ke()),We=Fe("[ForgetCard] Forget Primer Card Success Response"),Ye=Fe("[ForgetCard] Forget Primer Card Failure Response",Ke());var bn=(()=>{let i=class i{constructor(){this.apiService=C(we);}forgetVaultedPrimerPaymentMethod(t){return this.apiService.delete(`userpayment/me/payments/vaultedPaymentMethod/primer/${t}`);}};i.ɵfac=function(n){return new(n||i)();},i.ɵprov=ue({token:i,factory:i.ɵfac,providedIn:"root"});let e=i;return e;})();var Ln=(()=>{let i=class i{constructor(){this.actions$=C(xe),this.forgetCardApiService=C(bn),this.forgetPrimerCard$=Ce(()=>this.actions$.pipe(ee(Pe),at(({id:t})=>this.forgetCardApiService.forgetVaultedPrimerPaymentMethod(t).pipe(Ne(()=>We()),_t(n=>ot(Ye({error:n}))))))),this.handleSuccess$=Ce(()=>this.actions$.pipe(ee(We),st(()=>[yt({payload:vt()}),new bt()]))),this.handleFailure$=Ce(()=>this.actions$.pipe(ee(Ye),Ne(({error:t})=>Ht({payload:t})))),this.showSpinner$=Ce(()=>this.actions$.pipe(ee(Pe),Ne(()=>xt()))),this.hideSpinner$=Ce(()=>this.actions$.pipe(ee(We,Ye),Ne(()=>wt())));}};i.ɵfac=function(n){return new(n||i)();},i.ɵprov=ue({token:i,factory:i.ɵfac});let e=i;return e;})();var et=(()=>{let i=class i{};i.ɵfac=function(n){return new(n||i)();},i.ɵmod=Et({type:i}
3),i.ɵinj=lt({imports:[Ft.forFeature([Ln])]});let e=i;return e;})();var Bn=(()=>{let i=class i{constructor(){this.store=C(Ae),this.cardDetails=null,this.dismiss=()=>{};}registerDismiss(t){this.dismiss=t;}setData(t){this.cardDetails=t;}removeCard(){if(this.cardDetails){switch(this.cardDetails.method){case Lt.PrimerRecurring:{this.store.dispatch(Pe({id:this.cardDetails.id}));break;}default:break;}this.dismiss();}}};i.ɵfac=function(n){return new(n||i)();},i.ɵcmp=D({type:i,selectors:[["eld-remove-credit-card-modal"]],decls:9,vars:0,consts:()=>{let t;t="Cancel";let n;n="Remove";let r;r="Remove Credit Card";let l;return l="Are you sure you want to remove this credit card?",[r,l,[3,"closeClick"],[1,"text-primary","text-2xl","font-bold"],[1,"text-primary"],["text",t,"theme","secondary",3,"buttonClick"],["text",n,"theme","primary",3,"buttonClick"]];},template:function(n,r){n&1&&(_(0,"eld-small-modal-layout")(1,"eld-modal-title",2),E("closeClick",function(){return r.dismiss();}),_(2,"span",3),c(3,0),a()(),_(4,"div",4),c(5,1),a(),_(6,"eld-modal-actions")(7,"eld-button",5),E("buttonClick",function(){return r.dismiss();}),a(),_(8,"eld-button",6),E("buttonClick",function(){return r.removeCard();}),a()()());},dependencies:[et,De,he,Oe,v],encapsulation:2,changeDetection:0});let e=i;return e;})();function ni(e,i){if(e&1){let o=h();_(0,"div",5)(1,"div",6),c(2,1),a(),_(3,"div",7)(4,"div",8),T(5,"eld-image",9),F(6,"toNetworkIcon"),_(7,"span"),N(8),a()(),_(9,"div",10)(10,"span",11),E("click",function(){let n=u(o).$implicit,r=S();return A(r.onRemoveCard(n));}),c(11,2),a()()()();}if(e&2){let o=i.$implicit,t=S();s(5),d("filePath",Ee(6,4,o.network??"",t.theme()))("height",28)("width",42),s(3),Y("**** ",o.last4Digits);}}var Fn=(()=>{let i=class i{constructor(){this.vaultedCards=O(),this.themeService=C(cn),this.dialogs=C(te),this.theme=Te(this.themeService.themeChange,{initialValue:this.themeService.getActiveTheme()}),this.removeCreditCardDialog=null;}ngOnDestroy(){this.removeCreditCardDialog?.dismiss();}onRemoveCard(t){this.removeCreditCardDialog=this.dialogs.display({content:Bn,data:t});}};i.ɵfac=function(n){return new(n||i)();},i.ɵcmp=D({type:i,selectors:[["eld-dashboard-settings-payments"]],inputs:{vaultedCards:[1,"vaultedCards"]},decls:5,vars:0,consts:()=>{let t;t="Payments";let n;n="payment-methods";let r;r="Credit Card";let l;return l="Remove",[t,r,l,[1,"font-bold"],[1,"payments-container"],[1,"field-container"],[1,"field-container__left"],[1,"field-container__right"],[1,"card-number-container"],["alt",n,3,"filePath","height","width"],[1,"remove-card-container"],["data-testid","remove-saved-card-button-23tw",3,"click"]];},template:function(n,r){n&1&&(_(0,"h4",3),c(1,0),a(),_(2,"div",4),X(3,ni,12,7,"div",5,le),a()),n&2&&(s(3),W(r.vaultedCards()));},dependencies:[$e,Tn],styles:["h4[_ngcontent-%COMP%]{color:var(--text-primary);margin-bottom:12px;font-weight:700;font-size:16px;line-height:15px}.field-container[_ngcontent-%COMP%]{display:flex;width:100%;padding:14px 10px;flex-direction:column}.field-container__left[_ngcontent-%COMP%]{display:flex;align-items:center;width:180px;font-weight:700;font-size:14px;line-height:20px;color:var(--text-primary);padding-bottom:15px}.field-container__right[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center}.field-container__right[_ngcontent-%COMP%]   .card-number-container[_ngcontent-%COMP%]{display:flex;align-items:center}.field-container__right[_ngcontent-%COMP%]   .card-number-container[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-left:10px;color:var(--text-primary)}.payments-container[_ngcontent-%COMP%]{display:block;background-color:var(--background-base-1);margin-bottom:10px;box-shadow:var(--shadow-base);transition:all .2s ease}.payments-container[_ngcontent-%COMP%]   .field-container[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid var(--divider-border)}.remove-card-container[_ngcontent-%COMP%]{font-size:12px;line-height:16.8px;letter-spacing:.03em;margin-left:auto}.remove-card-container[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:var(--brand-marine);text-transform:uppercase;font-weight:700;cursor:pointer;padding:10px}.remove-card-container[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:hover{text-decoration:underline}@media(min-width:481px){h4[_ngcontent-%COMP%]{font-size:24px;line-height:normal}}@media(min-width:841px){.field-container[_ngcontent-%COMP%]{padding:30px 24px;flex-direction:row}.field-container__left[_ngcontent-%COMP%]{padding-bottom:0}}"],changeDetection:0});let e=i;return e;})();function ii(e,i){if(e&1){let o=h();Ie(0,"p",4),Le("click",function(){u(o);let n=S();return A(n.onCancelClick());}),c(1,0),Me(),Ie(2,"p",5),Le("click",function(){u(o);let n=S();return A(n.onSaveClick());}),c(3,1),Me();}}function oi(e,i){if(e&1){let o=h();Ie(0,"p",5),Le("click",function(){u(o);let n=S();return A(n.onEditClick());}),c(1,2),Me();}}var je=(()=>{let i=class i{constructor(){this.isEditMode=O(!1),this.saveClick=I(),this.cancelClick=I(),this.editClick=I();}onSaveClick(){this.saveClick.emit();}onCancelClick(){this.cancelClick.emit();}onEditClick(){this.editClick.emit();}};i.ɵfac=function(n){return new(n||i)();},i.ɵcmp=D({type:i,selectors:[["eld-dashboard-settings-profile-actions"]],inputs:{isEditMode:[1,"isEditMode"]},outputs:{saveClick:"saveClick",cancelClick:"cancelClick",editClick:"edit
3Click"},decls:3,vars:2,consts:()=>{let t;t="Cancel";let n;n="Save";let r;return r="Edit",[t,n,r,[1,"buttons"],[1,"cancel",3,"click"],[3,"click"]];},template:function(n,r){n&1&&(Ie(0,"div",3),m(1,ii,4,0),m(2,oi,2,0,"p"),Me()),n&2&&(s(),p(r.isEditMode()?1:-1),s(),p(r.isEditMode()?-1:2));},styles:[".buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-right:15px}.buttons[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{line-height:normal;text-transform:uppercase;font-weight:700;font-size:12px;letter-spacing:.03em;color:var(--brand-marine);cursor:pointer;margin-bottom:0}.buttons[_ngcontent-%COMP%]   .cancel[_ngcontent-%COMP%]{color:var(--text-grey);margin-right:32px}@media(min-width:481px){.buttons[_ngcontent-%COMP%]{margin-right:0}}"],changeDetection:0});let e=i;return e;})();var ri=e=>({"not-submitted":e});function _i(e,i){if(e&1){let o=h();_(0,"div",13)(1,"eld-dashboard-settings-profile-actions",20),E("cancelClick",function(){u(o);let n=S();return A(n.onCancel());})("editClick",function(){u(o);let n=S();return A(n.toggleEdit());})("saveClick",function(){u(o);let n=S();return A(n.onSubmit());}),a()();}if(e&2){let o=S();s(),d("isEditMode",o.isEditMode());}}function ai(e,i){if(e&1){let o=h();_(0,"div",17)(1,"eld-dashboard-settings-profile-actions",20),E("cancelClick",function(){u(o);let n=S();return A(n.onCancel());})("editClick",function(){u(o);let n=S();return A(n.toggleEdit());})("saveClick",function(){u(o);let n=S();return A(n.onSubmit());}),a()();}if(e&2){let o=S();s(),d("isEditMode",o.isEditMode());}}function si(e,i){e&1&&(_(0,"eld-error-message"),c(1,1),a());}function li(e,i){e&1&&(_(0,"div",21),c(1,2),a());}function Si(e,i){e&1&&(_(0,"small"),c(1,3),a());}function di(e,i){e&1&&(_(0,"small"),c(1,4),a());}function ci(e,i){if(e&1&&(_(0,"div",18),m(1,li,2,0,"div",21),m(2,Si,2,0,"small")(3,di,2,0,"small"),a()),e&2){let o=S();s(),p(o.isVerifiedSeller()?1:-1),s(),p(o.isEmailChangeLocked()?2:3);}}function Ei(e,i){if(e&1&&(_(0,"div",19)(1,"small",22),L(2),c(3,5),B(),N(4),a(),_(5,"div",23)(6,"p"),N(7,"- "),L(8),c(9,6),B(),a(),_(10,"p"),N(11,"- "),L(12),c(13,7),B(),a(),_(14,"p"),N(15,"- "),L(16),c(17,8),B(),a(),_(18,"p"),N(19,"- "),L(20),c(21,9),B(),a()()()),e&2){let o=S();s(4),Y(": ",o.email()," ");}}var xn=(()=>{let i=class i{constructor(){this.email=O.required(),this.isVerifiedSeller=O(null),this.isEmailChangeLocked=O(!1),this.screenWidth=O(null),this.emailChange=I(),this.dialogs=C(te),this.newEmailFormControl=new ke({value:"",disabled:!0},[Q.required]),this.isEditMode=b(!1),this.formSubmitAttempt=b(!1),this.emailDialog=null;let t=!0;G(()=>{this.email(),me(()=>{!t&&this.isEditMode()&&this.onCancel(),t=!1;});}),G(()=>{this.isEmailChangeLocked()&&me(()=>{this.emailDialog?.dismiss(),this.isEditMode()&&this.onCancel();});});}ngOnDestroy(){this.emailDialog?.dismiss();}toggleEdit(){this.setEditMode(!this.isEditMode());}onSubmit(){this.formSubmitAttempt.set(!0),this.newEmailFormControl.valid&&(this.emailDialog=this.dialogs.display({content:Ve,data:{title:"Are you sure you want to change your email address?"},onDismiss:t=>{let n=this.newEmailFormControl.value??"";this.onCancel(),t&&!this.isEmailChangeLocked()&&this.emailChange.emit(n);}}));}onCancel(){this.formSubmitAttempt.set(!1),this.newEmailFormControl.reset(),this.setEditMode(!1);}setEditMode(t){this.isEditMode.set(t),this.newEmailFormControl[t?"enable":"disable"]();}};i.ɵfac=function(n){return new(n||i)();},i.ɵcmp=D({type:i,selectors:[["eld-dashboard-settings-email"]],inputs:{email:[1,"email"],isVerifiedSeller:[1,"isVerifiedSeller"],isEmailChangeLocked:[1,"isEmailChangeLocked"],screenWidth:[1,"screenWidth"]},outputs:{emailChange:"emailChange"},decls:13,vars:12,consts:()=>{let t;t="Email:";let n;n=" Field is required ";let r;r="Verified";let l;l=" Email cannot be changed while Team accounts are active. ";let g;g=" This email is linked to your account. It is not visible to other users. ";let R;R="Current email";let $;$="After confirming the email change, you will be logged out";let U;U="Email can only be changed if you are using the email/password login flow";let k;k=" Email change link will be sent to your new inbox";let z;return z="You can change your email once 30 days",[t,n,r,l,g,R,$,U,k,z,[1,"email-container"],[1,"field-container"],[1,"field-container__left"],[1,"mobile--md"],[1,"field-container__right",3,"ngClass"],[1,"email-input"],[3,"disabledState","focus","formControl","placeholder"],[1,"desktop--md"],[1,"description"],[1,"description--edit-mode"],[3,"cancelClick","editClick","
3saveClick","isEditMode"],[1,"verified"],[1,"edit-mode"],[1,"edit-mode-banner"]];},template:function(n,r){n&1&&(_(0,"div",10)(1,"div",11)(2,"div",12),L(3),c(4,0),B(),m(5,_i,2,1,"div",13),a(),_(6,"div",14)(7,"div",15),T(8,"eld-input",16),m(9,ai,2,1,"div",17),a(),m(10,si,2,0,"eld-error-message"),m(11,ci,4,2,"div",18),m(12,Ei,22,1,"div",19),a()()()),n&2&&(s(5),p(r.isEmailChangeLocked()?-1:5),s(),d("ngClass",K(10,ri,!r.formSubmitAttempt())),s(2),d("disabledState",!r.isEditMode())("focus",r.isEditMode())("formControl",r.newEmailFormControl)("placeholder",r.email()),s(),p(r.isEmailChangeLocked()?-1:9),s(),p(r.formSubmitAttempt()&&r.newEmailFormControl.hasError("required")?10:-1),s(),p(r.isEditMode()?-1:11),s(),p(r.isEditMode()?12:-1));},dependencies:[Z,J,je,ae,se,H,y,ze],styles:[".email-container[_ngcontent-%COMP%]{padding:14px 10px 24px}.field-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;align-items:baseline}.field-container__left[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center;justify-content:space-between;min-width:151px;margin-right:24px;padding-bottom:7px;color:var(--text-primary);font-weight:700;font-size:14px;line-height:normal}.field-container__right[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;width:100%}.field-container__right[_ngcontent-%COMP%]   .email-input[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.field-container__right[_ngcontent-%COMP%]   .email-input[_ngcontent-%COMP%] > eld-input[_ngcontent-%COMP%]{width:320px}.field-container__right[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]{font-weight:400;font-size:14px;line-height:normal;color:var(--text-secondary);margin-top:6px;display:block}.field-container__right[_ngcontent-%COMP%]   small.edit-mode[_ngcontent-%COMP%]{margin:8px 0 16px}.description[_ngcontent-%COMP%]{display:flex;align-items:center}.description--edit-mode[_ngcontent-%COMP%]   .edit-mode-banner[_ngcontent-%COMP%]{border-radius:4px;background-color:var(--brand-marine-light);padding:12px 14px}.description--edit-mode[_ngcontent-%COMP%]   .edit-mode-banner[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#14131a}.description--edit-mode[_ngcontent-%COMP%]   .edit-mode-banner[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]:not(:last-child){margin-bottom:2px}.description[_ngcontent-%COMP%]   .verified[_ngcontent-%COMP%]{color:var(--brand-emerald);font-size:14px;line-height:normal;margin:6px 7px 0 0}@media(min-width:481px){.email-container[_ngcontent-%COMP%]{padding:20px 24px}.field-container__left[_ngcontent-%COMP%]{padding-bottom:15px}}@media(min-width:841px){.field-container[_ngcontent-%COMP%]{flex-direction:row}.field-container__left[_ngcontent-%COMP%]{width:auto;padding-bottom:0;justify-content:unset}}"],changeDetection:0});let e=i;return e;})();function Ge(e,i){return o=>e.test(o.value)?null:{[i]:o.value};}var mi=e=>({"not-submitted":e}),pi=(e,i,o)=>({validation__initial:e,validation__error:i,validation__success:o});function Ti(e,i){if(e&1){let o=h();_(0,"div",7)(1,"div",8),L(2),c(3,0),B(),a(),_(4,"div",9)(5,"eld-button",10),E("buttonClick",function(){u(o);let n=S();return A(n.togglePasswordFields());}),a(),_(6,"small",11),c(7,1),a()()();}}function gi(e,i){e&1&&T(0,"eld-icon",21),e&2&&d("name","close")("size",16);}function ui(e,i){e&1&&T(0,"eld-icon",21),e&2&&d("name","check")("size",16);}function Ai(e,i){if(e&1&&(_(0,"div",16),m(1,gi,1,2,"eld-icon",21),m(2,ui,1,2,"eld-icon",21),N(3),a()),e&2){let o,t,n,r=i.$implicit,l=S(2);d("ngClass",Dt(4,pi,!l.formSubmitAttempt()&&(!((o=l.passwordForm.get("proposedPassword"))!=null&&o.value)||((o=l.passwordForm.get("proposedPassword"))==null||o.errors==null?null:o.errors[r.name])),l.formSubmitAttempt()&&(!((o=l.passwordForm.get("proposedPassword"))!=null&&o.value)||((o=l.passwordForm.get("proposedPassword"))==null||o.errors==null?null:o.errors[r.name])),((o=l.passwordForm.get("proposedPassword"))==null?null:o.dirty)&&((o=l.passwordForm.get("proposedPassword"))==null?null:o.value)&&!(!((o=l.passwordForm.get("proposedPassword"))==null||o.errors==null)&&o.errors[r.name]))),s(),p(!((t=l.passwordForm.get("proposedPassword"))!=null&&t.value)||!((t=l.passwordForm.get("proposedPassword"))==null||t.errors==null)&&t.errors[r.name]?1:-1),s(),p((n=l.passwordForm.get("proposedPassword"))!=null&&n.dirty&&(n=l.passwordForm.get("proposedPassword"))!=null&&n.value&&!(!((n=l.passwordForm.get("proposedPassword"))==null||n.errors==null)&&n.errors[r.name])?2:-1),s(),Y(" ",r.message," ");}}function Ci(e,i){e&1&&(_(0,"div",7),T(1,"div",8),_(2,"div",15)(3,"eld-error-message"),c(4,5),a()()());}function fi(e,i){if(e&1){let o=h();_(0,"div")(1,"form",12),E("ngSubmit",function(){u(o);let n=S();return A(n.onSubmit());}),_(2,"div",7)(3,"div",8),L(4),c(5,2),B(),a(),_(6,"div",9),T(7,"eld-input",13),a()(),_(8,"div",7)(9,"div",8),L(10),c(11,3),B(),a(),_(12,"div",9),T(13,"eld-input",14),a()(),_(14,"div",7),T(15,"div",8),_(16,"div",15),X(17,Ai,4,8,"div",16,le),a()(),_(19,"div",7)(20,"div",8),L(21),c(22,4),B(),a(),_(23,"div",9),T(24,"eld-input",17),a()(),m(25,Ci,5,0,"div",7),_(26,"div",7),T(27,"div",8),_(28,"div",18),T(29,"eld-button",19),_(30,"eld-button",20),E("buttonClick",function(){u(o);let n=S();return A(n.togglePasswordFields());}),a()()()()();}if(e&2){let o=S();s(),d("formGroup",o.passwordForm)("ngClass",K(4,mi,!o.formSubmitAttempt())),s(16),W(o.validationRules),s(8),p(o.confirmPassword.errors!=null&&o.confirmPassword.errors.passwordMismatch&&o.confirmPassword.touched?25:-1),s(4),d("isDisabled",o.isPasswordChangeDisabled());}}var wn=(()=>{let i=class i{constructor(){this.passwordChangeSuccess=O.required(),this.isPasswordChangeDisabled=O.required(),this.passwordChange=I(),this.destroyRef=C(be),this.fb=C(_e),this.showPasswordFields=b(!1),this.formSubmitAttempt=b(!1),this.validationRules=[{name:"lowercase",message:"Password must contain a lowercase letter"},{name:"uppercase",message:"Password must contain an uppercase letter"},{name:"numeric",message:"Password must contain a number"},{name:"minlength",message:"Password must be at least 8 characters long"},{name:"whitespace",message:"Password must not contain leading or trailing space
3s"}],this.passwordForm=this.fb.group({previousPassword:["",Q.required],proposedPassword:["",[Q.required,Q.minLength(8),Ge(Ut,"lowercase"),Ge(kt,"uppercase"),Ge(zt,"numeric"),Ge(Vt,"whitespace")]],confirmPassword:["",Q.required]});let t;G(()=>{let n=this.passwordChangeSuccess();!t&&n&&this.showPasswordFields.set(!1),t=n;});}ngOnInit(){rt(this.proposedPassword.valueChanges,this.confirmPassword.valueChanges).pipe(pe(this.destroyRef)).subscribe(()=>{this.checkPasswordMatch();});}get proposedPassword(){let t=this.passwordForm.get("proposedPassword");if(!t)throw new Error("proposedPassword control not found");return t;}get confirmPassword(){let t=this.passwordForm.get("confirmPassword");if(!t)throw new Error("confirmPassword control not found");return t;}togglePasswordFields(){this.showPasswordFields.update(t=>!t),this.formSubmitAttempt.set(!1),this.passwordForm.reset();}checkPasswordMatch(){this.formSubmitAttempt()&&this.proposedPassword.value!==this.confirmPassword.value?this.confirmPassword.setErrors({passwordMismatch:!0}):this.confirmPassword.setErrors(null);}onSubmit(){this.formSubmitAttempt.set(!0),this.passwordForm.markAllAsTouched(),this.checkPasswordMatch(),this.passwordForm.valid&&this.passwordChange.emit(this.passwordForm.value);}};i.ɵfac=function(n){return new(n||i)();},i.ɵcmp=D({type:i,selectors:[["eld-dashboard-settings-password"]],inputs:{passwordChangeSuccess:[1,"passwordChangeSuccess"],isPasswordChangeDisabled:[1,"isPasswordChangeDisabled"]},outputs:{passwordChange:"passwordChange"},decls:3,vars:2,consts:()=>{let t;t="Change password";let n;n="Password:";let r;r="Password can only be changed if you are using the email/password login flow";let l;l="Enter old password";let g;g="Enter new password";let R;R="Re-enter your new password";let $;$="Change password";let U;U="Cancel";let k;k="Old password:";let z;z="New password:";let f;f=" Re-enter new password: ";let it;return it=" Passwords do not match ",[n,r,k,z,f,it,[1,"password-container"],[1,"field-container"],[1,"field-container__left"],[1,"field-container__right"],["size","s","text",t,1,"change-password-button",3,"buttonClick"],[1,"text-secondary"],[3,"ngSubmit","formGroup","ngClass"],["formControlName","previousPassword","placeholder",l,"type","password"],["formControlName","proposedPassword","placeholder",g,"type","password"],[1,"field-container__right","validation-wrapper"],[1,"validation",3,"ngClass"],["formControlName","confirmPassword","placeholder",R,"type","password"],[1,"field-container__right","action-buttons-wrapper"],["size","s","text",$,"type","submit",3,"isDisabled"],["size","s","text",U,"theme","secondary",3,"buttonClick"],[3,"name","size"]];},template:function(n,r){n&1&&(_(0,"div",6),m(1,Ti,8,0,"div",7),m(2,fi,31,6,"div"),a()),n&2&&(s(),p(r.showPasswordFields()?-1:1),s(),p(r.showPasswordFields()?2:-1));},dependencies:[fe,Z,J,v,ae,H,ie,y,ne,re,oe,se],styles:[".password-container[_ngcontent-%COMP%]{padding:14px 10px 24px}.field-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:baseline;width:100%;margin-bottom:24px}.field-container__left[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;width:100%;margin-right:24px;color:var(--text-primary);font-weight:700;font-size:14px;line-height:16.8px;padding-bottom:7px}.field-container__right[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;width:100%}@media screen and (min-width:481px){.field-container__right[_ngcontent-%COMP%]{width:auto}}.field-container__right[_ngcontent-%COMP%] > eld-input[_ngcontent-%COMP%]{width:100%;max-width:320px}@media screen and (min-width:481px){.field-container__right[_ngcontent-%COMP%] > eld-input[_ngcontent-%COMP%]{width:320px;max-width:none}}.field-container__right[_ngcontent-%COMP%]   .change-password-button[_ngcontent-%COMP%]{margin-bottom:8px}.field-container__right[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]{font-size:14px}.field-container__right.validation-wrapper[_ngcontent-%COMP%]{font-size:12px;margin-top:-16px}.field-container__right.action-buttons-wrapper[_ngcontent-%COMP%]{flex-direction:row;gap:6px}
3.validation[_ngcontent-%COMP%]{display:flex;align-items:center;margin-right:16px;line-height:16px}.validation[_ngcontent-%COMP%]   eld-icon[_ngcontent-%COMP%]{margin-right:8px}.validation__initial[_ngcontent-%COMP%]{color:var(--input-text-color-placeholder)}.validation__initial[_ngcontent-%COMP%]     .icon-close:before{color:var(--input-text-color-placeholder)}.validation__initial[_ngcontent-%COMP%]   ng-icon[_ngcontent-%COMP%]{color:var(--input-text-color-placeholder)}.validation__error[_ngcontent-%COMP%]{color:var(--input-text-color-error)}.validation__error[_ngcontent-%COMP%]     .icon-close:before{color:var(--input-text-color-error)}.validation__error[_ngcontent-%COMP%]   ng-icon[_ngcontent-%COMP%]{color:var(--input-text-color-error)}.validation__success[_ngcontent-%COMP%]{color:var(--brand-emerald)}.validation__success[_ngcontent-%COMP%]     .icon-check:before{color:var(--brand-emerald)}.validation__success[_ngcontent-%COMP%]   ng-icon[_ngcontent-%COMP%]{color:var(--brand-emerald)}@media(min-width:481px){.password-container[_ngcontent-%COMP%]{padding:20px 24px}.field-container__left[_ngcontent-%COMP%]{padding-bottom:15px}}@media(min-width:841px){.field-container[_ngcontent-%COMP%]{flex-direction:row}.field-container__left[_ngcontent-%COMP%]{width:151px;padding-bottom:0;justify-content:normal}}"],changeDetection:0});let e=i;return e;})();var hi=e=>({"not-submitted":e});function Oi(e,i){e&1&&(_(0,"eld-error-message"),c(1,2),a());}var vn=(()=>{let i=class i{constructor(){this.username=O.required(),this.usernameChange=I(),this.dialogs=C(te),this.newUsernameFormControl=new ke({value:"",disabled:!0},[Q.required]),this.isEditMode=b(!1),this.formSubmitAttempt=b(!1),this.usernameDialog=null;let t=!0;G(()=>{this.username(),me(()=>{!t&&this.isEditMode()&&this.onCancel(),t=!1;});});}ngOnDestroy(){this.usernameDialog?.dismiss();}toggleEdit(){let t=!this.isEditMode();this.isEditMode.set(t),this.newUsernameFormControl[t?"enable":"disable"]();}onSubmit(){this.formSubmitAttempt.set(!0),this.newUsernameFormControl.valid&&(this.usernameDialog=this.dialogs.display({content:Ve,data:{title:"Update username",description:"You can change your username once every 90 days."},onDismiss:t=>{t?(this.usernameChange.emit(this.newUsernameFormControl.value??""),this.toggleEdit(),this.formSubmitAttempt.set(!1)):this.onCancel();}}));}onCancel(){this.formSubmitAttempt.set(!1),this.newUsernameFormControl.reset(),this.toggleEdit();}};i.ɵfac=function(n){return new(n||i)();},i.ɵcmp=D({type:i,selectors:[["eld-dashboard-settings-username"]],inputs:{username:[1,"username"]},outputs:{usernameChange:"usernameChange"},decls:15,vars:10,consts:()=>{let t;t="Username:";let n;n="Name that is visible to other Eldorado users. You can change your username once every 90 days.";let r;return r=" Field is required ",[t,n,r,[1,"username-container"],[1,"field-container"],[1,"field-container__left"],[1,"mobile--md"],[3,"cancelClick","editClick","saveClick","isEditMode"],[1,"field-container__right",3,"ngClass"],[1,"username-input"],[3,"disabledState","focus","formControl","placeholder"],[1,"desktop--md"]];},template:function(n,r){n&1&&(_(0,"div",3)(1,"div",4)(2,"div",5),L(3),c(4,0),B(),_(5,"div",6)(6,"eld-dashboard-settings-profile-actions",7),E("cancelClick",function(){return r.onCancel();})("editClick",function(){return r.toggleEdit();})("saveClick",function(){return r.onSubmit();}),a()()(),_(7,"div",8)(8,"div",9),T(9,"eld-input",10),_(10,"div",11)(11,"eld-dashboard-settings-profile-actions",7),E("cancelClick",function(){return r.onCancel();})("editClick",function(){return r.toggleEdit();})("saveClick",function(){return r.onSubmit();}),a()()(),m(12,Oi,2,0,"eld-error-message"),_(13,"small"),c(14,1),a()()()()),n&2&&(s(6),d("isEditMode",r.isEditMode()),s(),d("ngClass",K(8,hi,!r.formSubmitAttempt())),s(2),d("disabledState",!r.isEditMode())("focus",r.isEditMode())("formControl",r.newUsernameFormControl)("placeholder",r.username()),s(2),d("isEditMode",r.isEditMode()),s(),p(r.formSubmitAttempt()&&r.newUsernameFormControl.hasError("required")?12:-1));},dependencies:[Z,J,je,ae,se,H,y,ze],styles:[".username-container[_ngcontent-%COMP%]{padding:14px 10px 24px}.field-container[_ngcontent-%COMP%]{display:flex;width:100%;align-items:baseline;flex-direction:column}.field-container__left[_ngcontent-%COMP%]{display:flex;align-items:center;min-width:151px;margin-right:24px;color:var(--text-primary);font-weight:700;font-size:14px;line-height:16.8px;padding-bottom:7px;width:100%;justify-content:space-between}.field-container__right[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;width:100%}.field-container__right[_ngcontent-%COMP%]   .username-input[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.field-container__right[_ngcontent-%COMP%]   .username-input[_ngcontent-%COMP%] > eld-input[_ngcontent-%COMP%]{width:320px}.field-container__right[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]{font-weight:400;font-size:14px;line-height:16.8px;color:var(--text-secondary);margin-top:6px}@media(min-width:481px){.username-container[_ngcontent-%COMP%]{padding:20px 24px}.field-container__left[_ngcontent-%COMP%]{padding-bottom:15px}}@media(min-width:841px){.field-container[_ngcontent-%COMP%]{flex-direction:row}.field-container__left[_ngcontent-%COMP%]{width:auto;padding-bottom:0;justify-content:normal}}"],changeDetection:0});let e=i;return e;})();function Di(e,i){if(e&1){let o=h();_(0,"h4",1),c(1,0),a(),_(2,"div",2)(3,"eld-dashboard-settings-email",3),E("emailChange",function(n){u(o);let r=S();return A(r.onEmailChange(n));}),a(),_(4,"eld-dashboard-settings-username",4),E("usernameChange",function(n){u(o);let r=S();return A(r.onUsernameChange(n));}),a(),_(5,"eld-dashboard-settings-password",5),E("passwordChange",function(n){u(o);let r=S();return A(r.onPasswordChange(n));}),a()();}if(e&2){let o=i,t=S();s(3),d("email",o.email)("isEmailChangeLocked",t.isEmailChangeLocked())("isVerifiedSeller",o.isVerifiedSeller),s(),d("username",o.username),s(),d("isPasswordChangeDisabled",t.isPasswordChangeDisabled()??!1)("passwordChangeSuccess",t.passwordChangeSuccess()??!1);}}function Ni(e,i){if(e&1&&T(0,"ngx-skeleton-loader",6)(1,"ngx-skeleton-loader",7),e&2){let o=S();d("theme",o.skeletonTitleTheme),s(),d("theme",o.skeletonContainerTheme);}}var yn=(()=>{let i=class i{constructor(){this.userProfile=O(),this.passwordChangeSuccess=O(),this.isPasswordChangeDisabled=O(),this.isEmailChangeLocked=O(!1),this.usernameChange=I(),this.emailChange=I(),this.passwordChange=I(),this.skeletonTitleTheme={width:"150px",height:"29px"},this.skeletonContainerTheme={height:"337px"};}onUsernameChange(t){this.usernameChange.emit(t);}onEmailChange(t){this.emailChange.emit(t);}onPasswordChange(t){this.passwordChange.emit(t);}};i.ɵfac=function(n){return new(n||i)();},i.ɵcmp=D({type:i,selectors:[["eld-dashboard-settings-profile"]],inputs:{userProfile:[1,"userProfile"],passwordChangeSuccess:[1,"passwordChangeSuccess"],isPasswordChangeDisabled:[1,"isPasswordChangeDisabled"],isEmailChangeLocked:[1,"isEmailChangeLocked"]},outputs:{usernameChange:"usernameChange",emailChange:"emailChange",passwordChange:"passwordChange"},decls:2,vars:1,consts:()=>{let t;return t="Profile",[t,[1,"font-bold"],[1,"profile-container"],[3,"emailChange","email","isEmailChangeLocked","isVerifiedSeller"],[3,"usernameChange","username"],[3,"passwordChange","isPasswordChangeDisabled","passwordChangeSuccess"],[1,"title-skeleton",3,"theme"],[1,"container-skeleton","w-full",3,"theme"]];},template:function(n,r){if(n&1&&m(0,Di,6,6)(1,Ni,2,2),n&2){let l;p((l=r.userProfile())?0:1,l);}},dependencies:[xn,vn,wn,q,j],styles:["h4[_ngcontent-%COMP%]{color:var(--text-primary);margin-bottom:12px;font-weight:700;font-size:16px;line-height:15px}.profile-container[_ngcontent-%COMP%]{display:block;background-color:var(--background-base-1);margin-bottom:10px;box-shadow:var(--shadow-base)}eld-dashboard-settings-email[_ngcontent-%COMP%]{display:block;
3border-bottom:1px solid var(--divider-border)}eld-dashboard-settings-username[_ngcontent-%COMP%]{display:block;border-bottom:1px solid var(--divider-border)}@media(min-width:481px){h4[_ngcontent-%COMP%]{font-size:24px;line-height:normal}}"],changeDetection:0});let e=i;return e;})();var Ii=["fileUploadComponent"],Mi=e=>({"disabled-click":e});function Ri(e,i){if(e&1&&T(0,"eld-image",8),e&2){let o=S(2);d("filePath",ht("",o.imagePath(),"",i))("height",125)("width",125);}}function Pi(e,i){if(e&1&&(T(0,"eld-image",9),F(1,"getElDragoAssetUrl")),e&2){let o=S(2);d("filePath",Ee(1,3,"profile-avatar.svg",o.ASSET_ENUM.Miscellaneous))("height",125)("width",125);}}function Gi(e,i){if(e&1&&(_(0,"form",12),T(1,"eld-file-upload",14,0),a()),e&2){let o=S(2);d("formGroup",o.form),s(),d("showFileName",!1)("showPreview",!1);}}function bi(e,i){e&1&&(_(0,"div",13),T(1,"eld-loading"),_(2,"span"),c(3,3),a()());}function Li(e,i){if(e&1){let o=h();_(0,"h4",4),c(1,1),a(),_(2,"div",5)(3,"div",6)(4,"div",7),E("click",function(){u(o);let n=S();return A(n.onFileUploadClick());}),m(5,Ri,1,5,"eld-image",8)(6,Pi,2,6,"eld-image",9),_(7,"div",10),T(8,"eld-icon",11),_(9,"p"),c(10,2),a()()(),m(11,Gi,3,3,"form",12),m(12,bi,4,0,"div",13),a()();}if(e&2){let o,t=S();s(3),d("ngClass",K(4,Mi,t.updating())),s(2),p((o=i.mediumPicture)?5:6,o),s(6),p(t.updating()?-1:11),s(),p(t.updating()?12:-1);}}function Bi(e,i){if(e&1&&T(0,"ngx-skeleton-loader",15)(1,"ngx-skeleton-loader",16),e&2){let o=S();d("theme",o.skeletonTitleTheme),s(),d("theme",o.skeletonContainerTheme);}}var Hn=(()=>{let i=class i{constructor(){this.fileUploadComponent=Nt.required("fileUploadComponent"),this.profilePicture=O(),this.updating=O(!1),this.imagePath=O.required(),this.fileUpload=I(),this.fb=C(_e),this.form=this.fb.group({profilePicture:[null]}),this.ASSET_ENUM=dn,this.skeletonTitleTheme={width:"150px",height:"29px"},this.skeletonContainerTheme={height:"125px"};let t=this.form.controls.profilePicture;t.valueChanges.pipe(pe()).subscribe(n=>{n&&t.valid&&(this.fileUpload.emit(n),this.form.reset());});}onFileUploadClick(){this.fileUploadComponent().triggerFileInput();}};i.ɵfac=function(n){return new(n||i)();},i.ɵcmp=D({type:i,selectors:[["eld-dashboard-settings-profile-picture"]],viewQuery:function(n,r){n&1&&gt(r.fileUploadComponent,Ii,5),n&2&&ut();},inputs:{profilePicture:[1,"profilePicture"],updating:[1,"updating"],imagePath:[1,"imagePath"]},outputs:{fileUpload:"fileUpload"},decls:2,vars:1,consts:()=>{let t;t="Profile picture";let n;n="Profile avatar";let r;r="Profile picture";let l;l="Update image";let g;return g="Updating picture. Please wait...",[["fileUploadComponent",""],r,l,g,[1,"font-bold"],[1,"profile-container"],[1,"profile-picture",3,"ngClass"],[1,"profile-image",3,"click"],["alt",t,3,"filePath","height","width"],["alt",n,1,"profile-avatar",3,"filePath","height","width"],[1,"upload-picture-overlay"],["name","edit"],[1,"upload-button-wrapper",3,"formGroup"],[1,"updating-picture"],["formControlName","profilePicture",3,"showFileName","showPreview"],[1,"title-skeleton",3,"theme"],[1,"container-skeleton",3,"theme"]];},template:function(n,r){if(n&1&&m(0,Li,13,6)(1,Bi,2,2),n&2){let l;p((l=r.profilePicture())?0:1,l);}},dependencies:[Z,J,$e,Nn,fe,Ue,H,ie,y,ne,re,oe,q,j,mn],styles:[".profile-container[_ngcontent-%COMP%]{display:block;width:100%;padding:16px 10px;background-color:var(--background-base-1);margin-bottom:10px;box-shadow:var(--shadow-base)}h4[_ngcontent-%COMP%]{color:var(--text-primary);margin-bottom:12px;font-size:16px;line-height:15px}.profile-picture[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px}@media(min-width:481px){.profile-picture[_ngcontent-%COMP%]{gap:5px 30px}}.profile-image[_ngcontent-%COMP%]{position:relative;min-width:125px;width:125px;min-height:125px;display:flex;justify-content:center;align-items:center;overflow:hidden;border-radius:50%;margin-right:10px}.upload-button-wrapper[_ngcontent-%COMP%]{width:calc(100% - 165px)}.upload-button-wrapper[_ngcontent-%COMP%]   .upload-button[_ngcontent-%COMP%]{display:block;max-width:250px;margin-bottom:15px}.upload-picture-overlay[_ngcontent-%COMP%]{position:absolute;width:125px;height:125px;display:flex;justify-content:center;align-items:center;flex-direction:column;background-color:#2f2f37;opacity:0;transition:all .3s ease;cursor:pointer}.upload-picture-overlay[_ngcontent-%COMP%]:hover{opacity:1;background-color:#2f2f3780}.upload-picture-overlay[_ngcontent-%COMP%]   p[_ngcontent-%COMP%], .upload-picture-overlay[_ngcontent-%COMP%]   eld-icon[_ngcontent-%COMP%]     .icon, .upload-picture-overlay[_ngcontent-%COMP%]   eld-icon[_ngcontent-%COMP%]   ng-icon[_ngcontent-%COMP%]{color:var(--brand-white)}.disabled-click[_ngcontent-%COMP%]{pointer-events:none}.updating-picture[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.updating-picture[_ngcontent-%COMP%]   eld-loading[_ngcontent-%COMP%]{min-width:27px}.updating-picture[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin-bottom:12px;margin-left:5px;color:var(--brand-marine)}@media(min-width:481px){h4[_ngcontent-%COMP%]{font-size:24px;line-height:normal}.profile-container[_ngcontent-%COMP%]{padding:24px}.profile-image[_ngcontent-%COMP%]{margin-right:0}.updating-picture[_ngcontent-%COMP%]{margin-bottom:5px;margin-left:30px}}"],changeDetection:0});let e=i;return e;})();function Fi(e,i){if(e&1){let o=h();_(0,"eld-button",20),E("buttonClick",function(){u(o);let n=S(2);return A(n.setup2FA.emit());}),a();}}function xi(e,i){e&1&&(_(0,"div",15),Se(1,6),T(2,"strong"),de(),a());}function wi(e,i){if(e&1){let o=h();_(0,"eld-button",21),E("buttonClick",function(){u(o);let n=S(2);return A(n.disable2FA.emit());}),a();}}function vi(e,i){if(e&1){let o=h();_(0,"h4",7),c(1,0),a(),_(2,"div",8)(3,"div",9)(4,"div",10),c(5,1),a(),_(6,"div",11)(7,"div",12)(8,"div",13),m(9,Fi,1,0,"eld-button",14),m(10,xi,3,0,"div",15),_(11,"p",16),Se(12,2),T(13,"strong")(14,"strong")(15,"strong"),de(),a()(),_(16,"div",17),m(17,wi,
31,0,"eld-button",18),a()()()(),_(18,"div",9)(19,"div",10),c(20,3),a(),_(21,"div",11)(22,"div",12)(23,"div",13)(24,"eld-button",19),E("buttonClick",function(){u(o);let n=S();return A(n.logoutAllSessions.emit());}),a(),_(25,"p",16),c(26,4),a(),_(27,"small"),c(28,5),a()()()()()();}if(e&2){let o=S();s(9),p(o.isTwoFactorAuthEnabled()?-1:9),s(),p(o.isTwoFactorAuthEnabled()?10:-1),s(7),p(o.isTwoFactorAuthEnabled()?17:-1);}}function yi(e,i){if(e&1&&T(0,"ngx-skeleton-loader",22)(1,"ngx-skeleton-loader",23),e&2){let o=S();d("theme",o.skeletonTitleTheme),s(),d("theme",o.skeletonContainerTheme);}}var $n=(()=>{let i=class i{constructor(){this.totpAuthStatusState=O(null),this.setup2FA=I(),this.disable2FA=I(),this.logoutAllSessions=I(),this.skeletonTitleTheme={width:"150px",height:"29px"},this.skeletonContainerTheme={height:"274px"},this.isTwoFactorAuthEnabled=x(()=>this.totpAuthStatusState()?.data?.totpAuthStatus===ge.Enabled);}};i.ɵfac=function(n){return new(n||i)();},i.ɵcmp=D({type:i,selectors:[["eld-dashboard-settings-security"]],inputs:{totpAuthStatusState:[1,"totpAuthStatusState"]},outputs:{setup2FA:"setup2FA",disable2FA:"disable2FA",logoutAllSessions:"logoutAllSessions"},decls:2,vars:1,consts:()=>{let t;t="Set Up 2FA";let n;n="Disable";let r;r="Log out from all devices";let l;l="Security";let g;g="Payment Lock";let R;R=" Enable with Google Authenticator. 2FA codes will be requested for "+"[\uFFFD#13\uFFFD|\uFFFD#14\uFFFD|\uFFFD#15\uFFFD]"+"withdrawals"+"[\uFFFD/#13\uFFFD|\uFFFD/#14\uFFFD|\uFFFD/#15\uFFFD]"+" and "+"[\uFFFD#13\uFFFD|\uFFFD#14\uFFFD|\uFFFD#15\uFFFD]"+"purchases"+"[\uFFFD/#13\uFFFD|\uFFFD/#14\uFFFD|\uFFFD/#15\uFFFD]"+". They are not "+"[\uFFFD#13\uFFFD|\uFFFD#14\uFFFD|\uFFFD#15\uFFFD]"+"required for logging in"+"[\uFFFD/#13\uFFFD|\uFFFD/#14\uFFFD|\uFFFD/#15\uFFFD]"+". ",R=Tt(R);let $;$="Log out from all sessions";let U;U="This button logs you out from all devices and browsers.";let k;k="* This action can take up to 1 hour to complete.";let z;return z="Status: "+"\uFFFD#2\uFFFD"+"Enabled"+"\uFFFD/#2\uFFFD"+"",[l,g,R,$,U,k,z,[1,"font-bold"],[1,"security-container"],[1,"field-container"],[1,"field-container__left"],[1,"field-container__right"],[1,"two-factor-container"],[1,"two-factor-container__left"],["text",t,"theme","secondary",1,"button"],[1,"status"],[1,"two-factor-paragraph"],[1,"two-factor-container__right"],["text",n,"theme","secondary",1,"button"],["text",r,"theme","secondary",1,"button",3,"buttonClick"],["text",t,"theme","secondary",1,"button",3,"buttonClick"],["text",n,"theme","secondary",1,"button",3,"buttonClick"],[1,"title-skeleton",3,"theme"],[1,"container-skeleton",3,"theme"]];},template:function(n,r){if(n&1&&m(0,vi,29,3)(1,yi,2,2),n&2){let l;p((l=r.totpAuthStatusState())!=null&&l.data?0:1);}},dependencies:[v,q,j],styles:["h4[_ngcontent-%COMP%]{color:var(--text-primary);margin-bottom:12px;font-weight:700;font-size:16px;line-height:15px}@media(min-width:481px){h4[_ngcontent-%COMP%]{font-size:24px;line-height:normal}}.description[_ngcontent-%COMP%]{font-weight:400;font-size:14px;margin-bottom:20px}p[_ngcontent-%COMP%]{margin-bottom:4px;color:var(--text-secondary)}p.two-factor-paragraph[_ngcontent-%COMP%]{max-width:620px;margin-top:10px}.field-container[_ngcontent-%COMP%]{display:flex;width:100%;padding:14px 10px 24px;color:var(--text-primary);line-height:16.8px;flex-direction:column}.field-container__left[_ngcontent-%COMP%]{display:flex;align-items:center;font-weight:700;width:150px;font-size:14px;line-height:20px;padding-right:5px;padding-bottom:15px}@media(min-width:841px){.field-container[_ngcontent-%COMP%]{flex-direction:row}.field-container__left[_ngcontent-%COMP%]{padding-bottom:0}}.field-container__right[_ngcontent-%COMP%]{display:flex;width:100%;flex-direction:column;justify-content:center}.field-container__right[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]{font-weight:400;font-size:12px;line-height:16px;color:var(--text-grey);margin-top:10px}.security-container[_ngcontent-%COMP%]{display:block;background-color:var(--background-base-1);margin-bottom:10px;box-shadow:var(--shadow-base)}.security-container[_ngcontent-%COMP%]   .field-container[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid var(--div
3ider-border)}.button[_ngcontent-%COMP%]     button{width:auto}.two-factor-container[_ngcontent-%COMP%]{display:flex;width:100%;flex-direction:column}@media(min-width:841px){.two-factor-container[_ngcontent-%COMP%]{flex-direction:row}}.two-factor-container__left[_ngcontent-%COMP%]{display:block;flex-basis:70%}.two-factor-container__right[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;flex-basis:30%}.status[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{color:var(--brand-emerald)}.change-password-container[_ngcontent-%COMP%]{font-size:14px}.change-password-container[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:var(--brand-marine);cursor:pointer}.change-password-container[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:hover{text-decoration:underline}@media(min-width:481px){.field-container[_ngcontent-%COMP%]{padding:20px 24px}}"],changeDetection:0});let e=i;return e;})();var Un=(()=>{let i=class i{constructor(){this.modalTitle="Log Out",this.modalDescription="Are you sure that you want to log out from all sessions?",this.authService=C(Sn),this.dismiss=()=>{};}registerDismiss(t){this.dismiss=t;}logout(){this.authService.signOutAllSessions(),this.dismiss();}};i.ɵfac=function(n){return new(n||i)();},i.ɵcmp=D({type:i,selectors:[["eld-logout-all-sessions-modal"]],decls:9,vars:2,consts:()=>{let t;t="No";let n;return n="Yes",[[3,"closeClick"],[1,"text-primary","text-2xl","font-bold"],[1,"text-primary"],["text",t,"theme","secondary",3,"buttonClick"],["text",n,"theme","primary",3,"buttonClick"]];},template:function(n,r){n&1&&(_(0,"eld-small-modal-layout")(1,"eld-modal-title",0),E("closeClick",function(){return r.dismiss();}),_(2,"span",1),N(3),a()(),_(4,"div",2),N(5),a(),_(6,"eld-modal-actions")(7,"eld-button",3),E("buttonClick",function(){return r.dismiss();}),a(),_(8,"eld-button",4),E("buttonClick",function(){return r.logout();}),a()()()),n&2&&(s(3),w(r.modalTitle),s(2),Y(" ",r.modalDescription," "));},dependencies:[he,De,v,Oe],encapsulation:2,changeDetection:0});let e=i;return e;})();var Hi=(e,i)=>i.id;function $i(e,i){e&1&&(_(0,"div",20),c(1,3),a());}function Ui(e,i){if(e&1){let o=h();_(0,"div",22),St(),_(1,"svg",24),T(2,"rect",25),_(3,"defs")(4,"pattern",26),T(5,"use",27),a(),T(6,"image",28),a()(),dt(),_(7,"button",29),E("click",function(){u(o);let n=S(4);return A(n.showQRcode.set(!1));}),c(8,4),a()();}if(e&2){let o,t=S(4);s(6),pt("href",(o=t.totpSetupState())==null||o.data==null?null:o.data.qrCodeSetupImageUrl,null,"xlink");}}function ki(e,i){if(e&1){let o=h();_(0,"div",23)(1,"div",30),c(2,5),a(),_(3,"div",31),N(4),a(),_(5,"button",29),E("click",function(){u(o);let n=S(4);return A(n.showQRcode.set(!0));}),c(6,6),a()();}if(e&2){let o,t=S(4);s(4),w((o=t.totpSetupState())==null||o.data==null?null:o.data.manualEntryKey);}}function zi(e,i){if(e&1&&m(0,Ui,9,1,"div",22)(1,ki,7,1,"div",23),e&2){let o=S(3);p(o.showQRcode()?0:1);}}function Vi(e,i){e&1&&(_(0,"div",21),T(1,"eld-loading"),a());}function Xi(e,i){if(e&1&&m(0,zi,2,1)(1,Vi,2,0,"div",21),e&2){let o,t=S(2);p((o=t.totpSetupState())!=null&&o.loading?1:0);}}function Wi(e,i){if(e&1&&(_(0,"div",13)(1,"ol",17)(2,"li",18),Se(3,0),T(4,"a",19),de(),a(),_(5,"li"),Se(6,1),T(7,"strong"),de(),a(),_(8,"li"),Se(9,2),T(10,"strong"),de(),a()(),m(11,$i,2,0,"div",20)(12,Xi,2,1),a()),e&2){let o=S();s(4),d("href",o.googleAuthRef,ct),s(7),p(o.isTwoFactorAuthLocked()?11:12);}}function Yi(e,i){if(e&1&&(_(0,"eld-error-message"),N(1),a()),e&2){let o=S(2);s(),w(o.totpEnableError());}}function ji(e,i){if(e&1){let o=h();_(0,"form",14)(1,"div",32)(2,"div",30),c(3,7),a(),_(4,"eld-input",33),E("searchEvent",function(){u(o);let n=S();return A(n.verify());}),a(),m(5,Yi,2,1,"eld-error-message"),a()();}if(e&2){let o=S();d("formGroup",o.secondStepFormGroup),s(4),d("focus",!0),s(),p(o.totpEnableError()?5:-1);}}function qi(e,i){e&1&&(_(0,"div",15),T(1,"eld-icon",34),_(2,"div"),c(3,8),a()()),e&2&&(s(),d("size",40));}function Qi(e,i){if(e&1){let o=h();_(0,"eld-button",35),E("buttonClick",function(){let n=u(o).$implicit;return A(n.onClick());}),a();}if(e&2){let o=i.$implicit;d("isDisabled",o.isDisabled??!1)("text",o.text)("theme",o.type==null?null:o.type.theme);}}var nt=(()=>{let i=class i{constructor(){this.store=C(Ae),this.fb=C(_e),this.totpSetupState=Te(this.store.select(an)),this.totpEnableError=Te(this.store.select(sn)),this.totpAuthStatusState=Te(this.store.select(He)),this.title="Setup Authenticator",this.showQRcode=b(!0),this.step=b(1),this.isTwoFactorAuthLocked=x(()=>this.totpAuthStatusState()?.data?.totpAuthStatus===ge.Locked),this.secondStepF
3ormGroup=this.fb.nonNullable.group({code:[""]}),this.codeValue=Te(this.secondStepFormGroup.controls.code.valueChanges,{initialValue:""}),this.googleAuthRef="https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2&hl=en&gl=US",this.dismiss=()=>{},this.modalActions=x(()=>{let t=this.step();return t===3?[this.closeStep]:t===2?[this.cancelStep,Qe(qe({},this.verifyStep),{isDisabled:!this.codeValue()?.trim()})]:[this.cancelStep,Qe(qe({},this.nextStep),{isDisabled:this.isTwoFactorAuthLocked()})];}),this.nextStep={id:"next",text:"Next",type:{size:"m",theme:"primary"},onClick:()=>this.goToNextStep()},this.cancelStep={id:"cancel",text:"Cancel",type:{size:"m",theme:"secondary"},onClick:()=>this.dismiss()},this.verifyStep={id:"verify",text:"Verify",type:{size:"m",theme:"primary"},onClick:()=>this.verify()},this.closeStep={id:"close",text:"Close",type:{size:"m",theme:"primary"},onClick:()=>this.dismiss()},G(()=>{this.totpAuthStatusState()?.data?.totpAuthStatus===ge.Enabled&&this.step()===2&&this.step.set(3);}),G(()=>{this.codeValue(),this.totpEnableError()&&this.store.dispatch(new ye());});}ngOnInit(){this.store.dispatch(new Yt());}registerDismiss(t){this.dismiss=t;}verify(){this.totpAuthStatusState()?.loading||this.store.dispatch(new jt({code:this.secondStepFormGroup.controls.code.value}));}goToNextStep(){this.step.update(t=>t+1);}};i.ɵfac=function(n){return new(n||i)();},i.ɵcmp=D({type:i,selectors:[["eld-enable-two-factor-auth-modal"]],decls:13,vars:4,consts:()=>{let t;t="Get the "+"\uFFFD#4\uFFFD"+"Google Authenticator"+"\uFFFD/#4\uFFFD"+" App.";let n;n="In the App select "+"\uFFFD#7\uFFFD"+"Set up account."+"\uFFFD/#7\uFFFD"+"";let r;r="Choose "+"\uFFFD#10\uFFFD"+"Scan a QR code."+"\uFFFD/#10\uFFFD"+"";let l;l=" Your 2FA is locked. Please contact Customer Support. ";let g;g="Can't scan it?";let R;R="Security key:";let $;$="QR code";let U;U="Enter a code";let k;k=" Enter the 6-digit code you see in the app. ";let z;return z=" 2FA enabled successfully ",[t,n,r,l,g,R,$,k,z,[3,"closeClick"],[1,"flex","items-center","gap-2"],["name","shield",1,"text-primary"],[1,"text-primary","text-2xl","font-bold"],[1,"step"],[1,"step",3,"formGroup"],[1,"success-wrapper"],[3,"isDisabled","text","theme"],[1,"flex","list-inside","list-decimal","flex-col","gap-2"],[1,"text-base"],["rel","noopener nofollow noreferrer","target","_blank",1,"text-base",3,"href"],[1,"notification","text-sm"],[1,"loading-wrapper"],[1,"auth-method"],[1,"auth-method","auth-method--security-key"],["fill","none","height","175","viewBox","0 0 175 175","width","175",0,"xmlns","xlink","http://www.w3.org/1999/xlink","xmlns","http://www.w3.org/2000/svg"],["fill","url(#pattern0)","height","175","width","175"],["id","pattern0","height","1","patternContentUnits","objectBoundingBox","width","1"],[0,"xlink","href","#qrCode","transform","scale(0.00130208)"],["id","qrCode","height","768","width","768"],[1,"btn-switch-auth-method",3,"click"],[1,"label"],[1,"security-key"],[1,"enter-code-container"],["formControlName","code","placeholder",U,"size","m","type","text",3,"searchEvent","focus"],["name","check",1,"text-marine",3,"size"],[3,"buttonClick","isDisabled","text","theme"]];},template:function(n,r){n&1&&(_(0,"eld-small-modal-layout")(1,"eld-modal-title",9),E("closeClick",function(){return r.dismiss();}),_(2,"span",10),T(3,"eld-icon",11),_(4,"span",12),N(5),a()()(),_(6,"eld-scroller"),m(7,Wi,13,2,"div",13),m(8,ji,6,3,"form",14),m(9,qi,4,1,"div",15),a(),_(10,"eld-modal-actions"),X(11,Qi,1,3,"eld-button",16,Hi),a()()),n&2&&(s(5),w(r.title),s(2),p(r.step()===1?7:-1),s(),p(r.step()===2?8:-1),s(),p(r.step()===3?9:-1),s(2),W(r.modalActions()));},dependencies:[Ue,H,ie,y,ne,re,oe,ae,fe,he,Oe,v,De,se,gn],styles:["[_nghost-%COMP%]{line-height:normal}.loading-wrapper[_ngcontent-%COMP%]{display:flex;width:100%;justify-content:center}.enter-code-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;color:var(--text-primary)}.success-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;width:100%;color:var(--text-primary);gap:8px}.step[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px;width:100%}.btn-switch-auth-method[_ngcontent-%COMP%]{background:none;border:none;font-size:14px;color:var(--brand-marine);cursor:pointer;transition:all .25s}.btn-switch-auth-method[_ngcontent-%COMP%]:hover{opacity:.75}.auth-method[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;margin:0 auto}.auth-method--security-key[_ngcontent-%COMP%]   .btn-switch-auth-method[_ngcontent-%COMP%]{margin-top:30px}.auth-method[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{display:block;width:100%;text-align:center;font-size:14px;line-height:21px;color:var(--text-primary)}.auth-method[_ngcontent-%COMP%]   .security-key[_ngcontent-%COMP%]{text-align:center;word-break:break-all;font-weight:700;font-size:24px;line-height:26px}ol[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{color:var(--text-primary)}@media(max-width:840px){ol[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{padding:0 0 5px}}.notification[_ngcontent-%COMP%]{display:block;padding:20px;background:var(--yellow-light-transparent);border-radius:3px;line-height:21px;color:var(--text-primary);margin:5px 0}  eld-error-message .error{line-height:normal!important}"],changeDetection:0});let e=i;return e;})();var kn=(()=>{let i=class i{constructor(){this.apiService=C(we);}getStatus(){return this.apiService.get("v1/team-accounts/status");}};i.ɵfac=function(n){return new(n||i)();},i.ɵprov=ue({token:i,factory:i.ɵfac,providedIn:"root"});let e=i;return e;})();var Ki=()=>["/seller-api"];function Ji(e,i){e&1&&T(0,"eld-button-link",1),e&2&&d("link",Ot(1,Ki));}function Zi(e,i){if(e&1&&T(0,"eld-dashboard-settings-payments",4),e&2){let o=S();
3d("vaultedCards",o.vaultedCardDetails());}}var ns=(()=>{let i=class i{constructor(){this.store=C(Ae),this.seoTagService=C(pn),this.activatedRoute=C(Mt),this.platform=C(Pt),this.dialogs=C(te),this.destroyRef=C(be),this.teamAccountsStatusApi=C(kn),this.actions$=C(xe),this.imagePath=It.profileImagePath.fullPath,this.vaultedCardDetails=this.store.selectSignal(Bt),this.updatingPicture=this.store.selectSignal(_n),this.emailSubscriptions=this.store.selectSignal(ln),this.passwordChangeSuccess=this.store.selectSignal(on),this.isPasswordChangeDisabled=this.store.selectSignal(rn),this.totpAuthStatusState=this.store.selectSignal(He),this.profile=x(()=>this.userProfile()??void 0),this.isSellerApiEligible=x(()=>this.sellerApiEligibility()?.isEligible??!1),this.hasSavedCards=x(()=>this.userProfile()!==null&&this.vaultedCardDetails().length>0),this.isEmailChangeLocked=x(()=>this.teamAccountsStatus.hasValue()&&this.teamAccountsStatus.value()?.status===In.Active),this.userProfile=this.store.selectSignal(tn),this.sellerApiEligibility=this.store.selectSignal(Cn),this.isVerifiedSeller=this.store.selectSignal(nn),this.isInternalUser=this.store.selectSignal($t),this.canHaveTeamAccounts=x(()=>this.isVerifiedSeller()&&this.isInternalUser()===!0),this.teamAccountsStatus=Rt({params:()=>this.canHaveTeamAccounts()?!0:void 0,stream:()=>this.teamAccountsStatusApi.getStatus()}),this.twoFactorAuthDialog=null,this.twoFactorVerificationDialog=null,this.emailChangeVerificationDialog=null,this.logoutAllSessionsDialog=null,G(()=>{this.isEmailChangeLocked()&&me(()=>{this.emailChangeVerificationDialog?.dismiss();});});}ngOnInit(){this.setSeoTags(),this.initUserData(),this.subscribeActivatedRouteFragment(),this.refreshTeamAccountsStatusOnEmailFailure();}ngOnDestroy(){this.seoTagService.removeNoIndexTag(),this.twoFactorAuthDialog?.dismiss(),this.twoFactorVerificationDialog?.dismiss(),this.emailChangeVerificationDialog?.dismiss(),this.logoutAllSessionsDialog?.dismiss();}uploadPicture(t){this.store.dispatch(new Kt({type:Gt.Avatar,file:t}));}updateDescription(t){this.store.dispatch(new Qt({message:t}));}toggleAllEmailSubscriptions(t){if(t){let n=Object.values(M);this.store.dispatch(new ve(n));}else this.store.dispatch(new ve([]));}toggleEmailSubscription(t){this.store.dispatch(new ve(t));}changeUsername(t){this.store.dispatch(new Zt(t));}changeEmail(t){if(this.totpAuthStatusState().data?.totpAuthStatus!==ge.Enabled){this.store.dispatch(new Je({newEmail:t,totpCode:null}));return;}this.emailChangeVerificationDialog?.dismiss(),this.emailChangeVerificationDialog=this.dialogs.display({content:Ze,onDismiss:n=>{n&&!this.isEmailChangeLocked()&&this.store.dispatch(new Je({newEmail:t,totpCode:n}));}});}changePassword({previousPassword:t,proposedPassword:n}){this.store.dispatch(new en({previousPassword:t,proposedPassword:n}));}disableTwoFactorAuth(){this.twoFactorVerificationDialog=this.dialogs.display({content:Ze,onDismiss:t=>{t&&this.store.dispatch(new qt({code:t}));}});}setupTwoFactorAuth(){this.twoFactorAuthDialog=this.dialogs.display({content:nt,onDismiss:()=>this.store.dispatch(new ye())});}logoutAllSessions(){this.logoutAllSessionsDialog=this.dialogs.display({content:Un});}subscribeActivatedRouteFragment(){this.activatedRoute.fragment.pipe(pe(this.destroyRef)).subscribe(t=>{t==="security"&&En.scrollToTop("#dashboardSettingsSecurity");});}refreshTeamAccountsStatusOnEmailFailure(){this.actions$.pipe(ee(Xt.UPDATE_EMAIL_FAILURE),pe(this.destroyRef)).subscribe(()=>this.teamAccountsStatus.reload());}initUserData(){this.platform.browser&&(this.store.dispatch(new Wt()),this.store.dispatch(new Jt()),this.store.dispatch(An()));}setSeoTags(){this.seoTagService.setNoIndexTag();}};i.ɵfac=function(n){return new(n||i)();},i.ɵcmp=D({type:i,selectors:[["eld-dashboard-settings-page"]],decls:9,vars:13,consts:()=>{let t;return t="Account settings",[["header",t,"icon","settings"],["iconAfterText","sign-right","text","Seller API",3,"link"],[1,"dashboard-container"],[3,"emailChange","passwordChange","usernameChange","isEmailChangeLocked","isPasswordChangeDisabled","passwordChangeSuccess","userProfile"],["data-testid","dashboard-remove-saved-card-V1VC",3,"vaultedCards"],[3,"fileUpload","imagePath","profilePicture","updating"],["id","dashboardSettingsSecurity",3,"disable2FA","logoutAllSessions","setup2FA","totpAuthStatusState"],[3,"toggleAllEmailSubscriptions","toggleEmailSubscription","emailSubscriptions","userProfile"],[3,"updateDescription","userProfile"]];},template:function(n,r){if(n&1&&(_(0,"eld-dashboard-header",0),m(1,Ji,1,2,"eld-button-link",1),a(),_(2,"div",2)(3,"eld-dashboard-settings-profile",3),E("emailChange",function(g){return r.changeEmail(g);})("passwordChange",function(g){return r.changePassword(g);})("usernameChange",function(g){return r.changeUsername(g);}),a(),m(4,Zi,1,1,"eld-dashboard-settings-payments",4),_(5,"eld-dashboard-settings-profile-picture",5),E("fileUpload",function(g){return r.uploadPicture(g);}),a(),_(6,"eld-dashboard-settings-security",6),E("disable2FA",function(){return r.disableTwoFactorAuth();})("logoutAllSessions",function(){return r.logoutAllSessions();})("setup2FA",function(){return r.setupTwoFactorAuth();}),a(),_(7,"eld-dashboard-settings-notifications",7),E("toggleAllEmailSubscriptions",function(g){return r.toggleAllEmailSubscriptions(g);})("toggleEmailSubscription",function(g){return r.toggleEmailSubscription(g);}),a(),_(8,"eld-dashboard-settings-description",8),E("updateDescription",function(g){return r.updateDescription(g);}),a()()),n&2){let l;s(),p(r.isSellerApiEligible()?1:-1),s(2),d("isEmailChangeLocked",r.isEmailChangeLocked())("isPasswordChangeDisabled",r.isPasswordChangeDisabled())("passwordChangeSuccess",r.passwordChangeSuccess())("userProfile",r.profile()),s(),p(r.hasSavedCards()?4:-1),s(),d("imagePath",r.imagePath)("profilePicture",(l=r.profile())==null?null:l.picture)("updating",r.updatingPicture()),s(),d("totpAuthStatusState",r.totpAuthStatusState()),s(),d("emailSubscriptions",r.emailSubscriptions())("userProfile",r.profile()),s(),d("userProfile",r.profile());}},dependencies:[Mn,un,yn,Fn,Hn,$n,Gn,Rn],styles:[".dashboard-container[_ngcontent-%COMP%]{margin-top:32px;position:relative;max-width:1048px;padding:0 14px 50px}@media(min-width:1025px){.dashboard-container[_ngcontent-%COMP%]{padding:0 24px 50px}}.dashboard-text[_ngcontent-%COMP%]{max-width:1048px;padding-left:14px;padding-right:14px}@media(min-width:1025px){.dashboard-text[_ngcontent-%COMP%]{padding-left:24px;padding-right:24px}}.dashboard-tabs-container[_ngcontent-%COMP%]{padding-top:10px;padding-bottom:0}
3.dashboard-separator[_ngcontent-%COMP%]{margin-bottom:20px}@media(min-width:1025px){.dashboard-separator[_ngcontent-%COMP%]{margin-bottom:0}}eld-dashboard-settings-profile-picture[_ngcontent-%COMP%], eld-dashboard-settings-payments[_ngcontent-%COMP%], eld-dashboard-settings-description[_ngcontent-%COMP%], eld-dashboard-settings-security[_ngcontent-%COMP%], eld-dashboard-settings-notifications[_ngcontent-%COMP%]{display:block;margin-top:30px}"],changeDetection:0});let e=i;return e;})();export{ns as DashboardSettingsPageComponent};/**i18n:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855*/
4//# debugId=2a7fd3be-35e9-5679-8f87-b879f4c8de50

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.