1import{b as $,c as f,d as G,e as H,g as R,j as U,k as j,l as Y,m as J,n as K,p as Q,q as W}from"./chunk-RR6OVJVN.js";import{a as X}from"./chunk-OSP5SPNW.js";import"./chunk-ZRTKV6HX.js";import{a as D}from"./chunk-LAQDVV5O.js";import{b as L}from"./chunk-6PW7EEKB.js";import"./chunk-JQDIWTWC.js";import"./chunk-YV4OFCJA.js";import{b as B}from"./chunk-T3VAZM5W.js";import"./chunk-5FA7A4ZO.js";import{a as z,e as q}from"./chunk-G3MMWKJF.js";import{Ab as l,Gc as V,Ib as P,Kb as d,Lb as c,Ma as t,Mb as g,Nb as E,Ob as T,S as w,X as x,Y as v,Ya as N,cc as S,hb as C,ia as b,ib as m,jb as _,mb as I,nb as F,ob as u,pb as r,qb as a,rb as p,sa as O,wb as y,yb as h,zc as A}from"./chunk-ASGIIALJ.js";function k(n,i){return typeof n=="boolean"?n:i}function Z(n){let i=n??{};return{profile:k(i.profile,!0),security:k(i.security,!0),addresses:k(i.addresses,!0)}}var te=(n,i)=>i.id;function ne(n,i){if(n&1&&(r(0,"p",13),d(1),a()),n&2){let e=l(2);t(),c(e.labels.phoneLockedHint)}}function ae(n,i){if(n&1&&(r(0,"span",14),d(1),a()),n&2){let e=l(2);t(),c(e.labels.phoneError)}}function ie(n,i){if(n&1&&(r(0,"p",17),d(1),a()),n&2){let e=l(2);t(),c(e.labels.emailLockedHint)}}function oe(n,i){if(n&1&&(r(0,"span",14),d(1),a()),n&2){let e=l(2);t(),c(e.labels.emailError)}}function re(n,i){if(n&1&&(r(0,"p",20),d(1),a()),n&2){let e=l(2);P("acct__feedback--error",e.profileMsg()===e.labels.profileUpdateError),t(),c(e.profileMsg())}}function de(n,i){if(n&1){let e=y();r(0,"section",3)(1,"h2",6),d(2),a(),r(3,"form",7),h("ngSubmit",function(){x(e);let s=l();return v(s.saveProfile())}),r(4,"div",8)(5,"label",9),d(6),a(),p(7,"input",10),a(),r(8,"div",8)(9,"label",11),d(10),a(),p(11,"input",12),m(12,ne,2,1,"p",13)(13,ae,2,1,"span",14),a(),r(14,"div",8)(15,"label",15),d(16),a(),p(17,"input",16),m(18,ie,2,1,"p",17)(19,oe,2,1,"span",14),a(),r(20,"button",18),d(21),a(),m(22,re,2,3,"p",19),a()()}if(n&2){let e=l();t(2),c(e.labels.profile),t(),u("formGroup",e.profileForm),t(3),c(e.labels.fullName),t(),u("placeholder",e.labels.namePlaceholder),t(),P("acct__field--locked",e.contactLocked),t(2),c(e.labels.phoneNumber),t(),u("readonly",e.contactLocked)("placeholder",e.labels.phonePlaceholder),C("aria-describedby",e.contactLocked?"acct-phone-hint":null),t(),_(e.contactLocked?12:e.profileForm.controls.phone.touched&&e.profileForm.controls.phone.invalid?13:-1),t(2),P("acct__field--locked",e.contactLocked),t(2),c(e.labels.emailAddress),t(),u("readonly",e.contactLocked)("placeholder",e.labels.emailPlaceholder),C("aria-describedby",e.contactLocked?"acct-email-hint":null),t(),_(e.contactLocked?18:e.profileForm.controls.email.touched&&e.profileForm.controls.email.invalid?19:-1),t(2),u("disabled",e.profileBusy()||e.profileForm.pristine),t(),g(" ",e.profileBusy()?e.labels.updatingProfile:e.labels.updateProfile," "),t(),_(e.profileMsg()?22:-1)}}function le(n,i){if(n&1){let e=y();r(0,"button",29),h("click",function(){x(e);let s=l(2);return v(s.showPasswordForm.set(!0))}),d(1),a()}if(n&2){let e=l(2);t(),g(" ",e.labels.changePassword," ")}}function ce(n,i){if(n&1&&(r(0,"span",14),d(1),a()),n&2){let e=l(3);t(),c(e.labels.passwordMinError)}}function se(n,i){if(n&1&&(r(0,"span",14),d(1),a()),n&2){let e=l(3);t(),c(e.labels.passwordMismatch)}}function pe(n,i){if(n&1&&(r(0,"p",20),d(1),a()),n&2){let e=l(3);P("acct__feedback--error",e.passwordFailed()),t(),c(e.passwordMsg())}}function me(n,i){if(n&1){let e=y();r(0,"form",30),h("ngSubmit",function(){x(e);let s=l(2);return v(s.savePassword())}),r(1,"div",8)(2,"label",31),d(3),a(),r(4,"div",32),p(5,"input",33),r(6,"button",34),h("click",function(){x(e);let s=l(2);return v(s.showCurPw.set(!s.showCurPw()))}),p(7,"app-icon",35),a()()(),r(8,"div",8)(9,"label",36),d(10),a(),r(11,"div",32),p(12,"input",37),r(13,"button",34),h("click",function(){x(e);let s=l(2);return v(s.showNewPw.set(!s.showNewPw()))}),p(14,"app-icon",35),a()(),m(15,ce,2,1,"span",14),a(),r(16,"div",8)(17,"label",38),d(18),a(),r(19,"div",32),p(20,"input",39),r(21,"button",34),h("click",function(){x(e);let s=l(2);return v(s.showConfirmPw.set(!s.showConfirmPw()))}),p(22,"app-icon",35),a()(),m(23,se,2,1,"span",14),a(),r(24,"div",40)(25,"button",18),d(26),a(),r(27,"button",29),h("click",function(){x(e);let s=l(2);return v(s.cancelPasswordChange())}),d(28),a()(),m(29,pe,2,3,"p",19),a()}if(n&2){let e=l(2);u("formGroup",e.passwordForm),t(3),c(e.labels.currentPassword),t(2),u("type",e.showCurPw()?"text":"password")("placeholder",e.labels.currentPasswordPh),t(),C("aria-label",e.showCurPw()?e.labels.hidePassword:e.labels.showPassword),t(),u("name",e.showCurPw()?"eye-off":"eye"),t(3),c(e.labels.newPassword),t(2),u("type",e.showNewPw()?"text":"password")("placeholder",e.labels.newPasswordPh),t(),C("aria-label",e.showNewPw()?e.labels.hidePassword:e.labels.showPassword),t(),u("name",e.showNewPw()?"eye-off":"eye"),t(),_(e.passwordForm.controls.newPassword.touched&&e.passwordForm.controls.newPassword.invalid?15:-1),t(3),c(e.labels.confirmNewPassword),t(2),u("type",e.showConfirmPw()?"text":"password")("placeholder",e.labels.confirmPasswordPh),t(),C("aria-label",e.showConfirmPw()?e.labels.hidePassword:e.labels.showPassword),t(),u("name",e.showConfirmPw()?"eye-off":"eye"),t(),_(e.passwordForm.controls.confirmPassword.touched&&e.passwordMismatch?23:-1),t(2),u("disabled",e.passwordBusy()||e.passwordForm.invali
1d||e.passwordMismatch),t(),g(" ",e.passwordBusy()?e.labels.changingPassword:e.labels.changePassword," "),t(2),g(" ",e.labels.cancel," "),t(),_(e.passwordMsg()?29:-1)}}function _e(n,i){if(n&1&&(r(0,"section",4)(1,"div",21)(2,"div",22),p(3,"app-icon",23),a(),r(4,"div",24)(5,"h2",25),d(6),a(),r(7,"p",26),d(8),a()(),m(9,le,2,1,"button",27),a(),m(10,me,30,22,"form",28),a()),n&2){let e=l();t(6),c(e.labels.securityTitle),t(2),c(e.labels.securitySubtitle),t(),_(e.showPasswordForm()?-1:9),t(),_(e.showPasswordForm()?10:-1)}}function ue(n,i){if(n&1){let e=y();r(0,"button",48),h("click",function(){x(e);let s=l(2);return v(s.addNewAddress())}),p(1,"app-icon",49),d(2),a()}if(n&2){let e=l(2);C("aria-label",e.labels.addNewAddress),t(2),g(" ",e.labels.addNewAddress," ")}}function fe(n,i){if(n&1&&d(0),n&2){let e=l();g(", ",e.area)}}function ge(n,i){if(n&1&&(r(0,"p",52)(1,"span",77),d(2),a(),r(3,"span",78),d(4),m(5,fe,1,1),d(6),a()()),n&2){let e=i,o=l(3);t(2),g(" ",e.type==="office"?o.labels.addrOffice:o.labels.addrHome," "),t(2),E(" ",e.fullName," \xB7 ",e.line1),t(),_(e.area?5:-1),t(),g(" - ",e.pincode," ")}}function be(n,i){if(n&1&&(r(0,"span",14),d(1),a()),n&2){let e=l(3);t(),c(e.labels.phoneError)}}function xe(n,i){if(n&1&&(r(0,"span",14),d(1),a()),n&2){let e=l(3);t(),c(e.labels.pincodeError)}}function ve(n,i){if(n&1&&(r(0,"span",79),d(1),a()),n&2){let e=l(4);t(),c(e.addressErrorDetail())}}function he(n,i){if(n&1&&(r(0,"p",76),d(1),m(2,ve,2,1,"span",79),a()),n&2){let e=l(3);t(),g(" ",e.labels.addressSaveError," "),t(),_(e.addressErrorDetail()?2:-1)}}function Ce(n,i){if(n&1){let e=y();r(0,"form",50),h("ngSubmit",function(){x(e);let s=l(2);return v(s.saveAddress())}),r(1,"h3",51),d(2),a(),m(3,ge,7,5,"p",52),r(4,"div",53)(5,"div",8)(6,"label",54),d(7),a(),p(8,"input",55),a(),r(9,"div",8)(10,"label",56),d(11),a(),p(12,"input",57),m(13,be,2,1,"span",14),a(),r(14,"div",8)(15,"label",58),d(16),a(),p(17,"input",59),a(),r(18,"div",8)(19,"label",60),d(20),a(),p(21,"input",61),a(),r(22,"div",8)(23,"label",62),d(24),a(),p(25,"input",63),a(),r(26,"div",8)(27,"label",64),d(28),a(),p(29,"input",65),a(),r(30,"div",8)(31,"label",66),d(32),a(),p(33,"input",67),a(),r(34,"div",8)(35,"label",68),d(36),a(),p(37,"input",69),a(),r(38,"div",8)(39,"label",70),d(40),a(),p(41,"input",71),m(42,xe,2,1,"span",14),a(),r(43,"div",8)(44,"label",72),d(45),a(),r(46,"select",73)(47,"option",74),d(48),a(),r(49,"option",75),d(50),a()()()(),r(51,"div",40)(52,"button",18),d(53),a(),r(54,"button",29),h("click",function(){x(e);let s=l(2);return v(s.cancelAddressEdit())}),d(55),a()(),m(56,he,3,2,"p",76),a()}if(n&2){let e,o=l(2);u("formGroup",o.addressForm),t(2),c(o.editingAddressId()?o.labels.editAddress:o.labels.addNewAddress),t(),_((e=o.editingAddressOriginal())?3:-1,e),t(4),c(o.labels.fullName),t(),u("placeholder",o.labels.namePlaceholder),t(3),c(o.labels.phoneNumber),t(),u("placeholder",o.labels.phonePlaceholder),t(),_(o.addressForm.controls.mobile.touched&&o.addressForm.controls.mobile.invalid?13:-1),t(3),c(o.labels.addressLine1),t(),u("placeholder",o.labels.addressLine1Placeholder),t(3),c(o.labels.street),t(),u("placeholder",o.labels.streetPlaceholder),t(3),c(o.labels.area),t(),u("placeholder",o.labels.areaPlaceholder),t(3),c(o.labels.landmark),t(),u("placeholder",o.labels.landmarkPlaceholder),t(3),c(o.labels.townCity),t(),u("placeholder",o.labels.cityPlaceholder),t(3),c(o.labels.state),t(4),c(o.labels.pinCode),t(2),_(o.addressForm.controls.pincode.touched&&o.addressForm.controls.pincode.invalid?42:-1),t(3),c(o.labels.addressType),t(3),c(o.labels.addrHome),t(2),c(o.labels.addrOffice),t(2),u("disabled",o.addressSaving()||o.addressForm.invalid),t(),g(" ",o.addressSaving()?o.labels.saving:o.labels.saveAddress," "),t(2),g(" ",o.labels.cancel," "),t(),_(o.addressError()?56:-1)}}function we(n,i){if(n&1&&(r(0,"p",45),d(1),a()),n&2){let e=l(2);t(),c(e.labels.loadingAddresses)}}function ye(n,i){if(n&1&&(r(0,"p",46),d(1),a()),n&2){let e=l(2);t(),c(e.labels.noSavedAddresses)}}function Pe(n,i){if(n&1&&d(0),n&2){let e=l().$implicit;g(", ",e.street)}}function Se(n,i){if(n&1&&d(0),n&2){let e=l().$implicit;g(", ",e.area)}}function Me(n,i){if(n&1){let e=y();r(0,"article",81)(1,"div",82)(2,"span",83),d(3),a(),r(4,"div",84)(5,"button",85),h("click",function(){let s=x(e).$implicit,M=l(3);return v(M.editAddress(s))}),p(6,"app-icon",86),a(),r(7,"button",85),h("click",function(){let s=x(e).$implicit,M=l(3);return v(M.deleteAddress(s))}),p(8,"app-icon",87),a()()(),r(9,"p",88),d(10),a(),r(11,"p",89),d(12),m(13,Pe,1,1),m(14,Se,1,1),p(15,"br"),d(16),a(),r(17,"p",90),d(18),a()()}if(n&2){let e=i.$implicit,o=l(3);t(3),g(" ",e.type==="office"?o.labels.addrOffice:o.labels.addrHome," "),t(2),C("aria-label",o.labels.editAddress),t(2),C("aria-label",o.labels.deleteAddress),t(3),c(e.fullName),t(2),g(" ",e.line1),t(),_(e.street?13:-1),t(),_(e.area?14:-1),t(2),T(" ",e.city,", ",e.state," - ",e.pincode," "),t(2),E("",o.labels.phonePrefix," ",e.mobile)}}function Ee(n,i){if(n&1&&(r(0,"div",80),I(1,Me,19,12,"article",81,te),a()),n&2){let e=l(2);P("acct__addr-grid--grid",e.addressesVariant==="grid"),t(),F(e.addresses())}}function Ae(n,i){if(n&1&&(r(0,"section",5)(1,"div",41)(2,"h2",42),d(3),a(),m(4,ue,3,2,"button",43),a(),m(5,Ce,57,28,"form",44),m(6,we,2,1,"p",45)(7,ye,2,1,"p",46)(8,Ee,3,2,"div",47),a()),n&2){let e=l();t(3),c(e.labels.savedAddresses),t(),_(e.editingAddress()?-1:4),t(),_(e.editingAddress()?5:-1),t(),_(e.addressesLoading()?6:e.addresses().length===0&&!e.editingAddress()?7:8)}}var ee=class n{http=w(V);config=w(z);auth=w(D);fb=w(Q);platformId=w(O);labels=q(this.config);variant=this.config.account?.variant??"sidebar";sections=Z(this.config.account?.sections);addressesVariant=this.config.account?.addressesVariant??"grid";contactLocked=L(this.config);profileForm=this.fb.nonNullable.group({name:["",f.required],phone:["",this.contactLocked?[]:[f.pattern(/^\d{10}$/)]],email:["",this.contactLocked?[]:[f.email]]});profileStatus=b("idle");profileBusy=S(()=>this.profileStatus()==="saving");profileMsg=S(()=>{switch(this.profileStatus()){case"saved":return this.labels.profileUpdated;case"error":return this.labels.profileUpdateError;default:return""}});showPasswordForm=b(!1);showCurPw=b(!1);showNewPw=b(!1);showConfirmPw=b(!1);passwordForm=this.fb.nonNullable.group({currentPassword:["",f.required],newPassword:["",[f.required,f.minLength(8)]],confirmPassword:["",f.required]});passwordStatus=b("idle");passwordBusy=S(()=>this.passwordStatus()==="saving");get passwordMismatch(){let i=this.passwordForm.value;return i.newPassword!==i.confirmPassword}passwordMsg=S(()=>{switch(this.passwordStatus()){case"saved":return this.labels.passwordChanged;case"wrong-password":return this.labels.passwordCurrentIncorrect;case"error":return this.labels.passwordChangeError;default:return""}});passwordFailed=S(()=>this.passwordStatus()==="error"||this.passwordStatus()==="wrong-password");addresses=b([]);addressesLoading=b(!1);editingAddress=b(!1);editingAddressId=b(null);addressSaving=b(!1);addressError=b(!1);addressErrorDetail=b("");editingAddressOriginal=S(()=>{let i=this.editingAddressId();return i?this.addresses().find(e=>e.id===i)??null:null});addressForm=this.fb.nonNullable.group({fullName:["",f.required],mobile:["",[f.required,f.pattern(/^\d{10}$/)]],line1:["",f.required],street:[""],area:["",f.required],landmark:[""],city:["",f.required],state:["",f.required],pincode:["",[f.required,f.pattern(/^\d{6}$/)]],type:["home"]});constructor(){w(X).applyAppPage(this.config.seo,this.config.name,this.labels.accountTitle),A(this.platformId)&&(this.loadProfile(),this.loadAddresses())}loadProfile(){this.http.get("/api/account/profile").subscribe({next:i=>{this.profileForm.patchValue({name:i.name,phone:i.phone,email:i.email}),this.profileForm.markAsPristine()}})}loadAddresses(){this.addressesLoading.set(!0),this.http.get("/api/checkout/addresses").subscribe({next:i=>{this.addresses.set(i.addresses??[]),this.addressesLoading.set(!1)},error:()=>this.addressesLoading.set(!1)})}
1saveProfile(){if(this.profileForm.invalid||this.profileBusy())return;this.profileStatus.set("saving");let{name:i,phone:e,email:o}=this.profileForm.getRawValue();this.http.put("/api/account/profile",{name:i,phone:e,email:o}).subscribe({next:()=>{this.profileStatus.set("saved"),this.profileForm.markAsPristine(),this.auth.applyProfile(i,e)},error:()=>this.profileStatus.set("error")})}savePassword(){if(this.passwordForm.invalid||this.passwordBusy()||this.passwordMismatch)return;this.passwordStatus.set("saving");let{currentPassword:i,newPassword:e}=this.passwordForm.getRawValue();this.http.put("/api/account/password",{currentPassword:i,newPassword:e}).subscribe({next:()=>{this.passwordStatus.set("saved"),this.passwordForm.reset(),this.showPasswordForm.set(!1)},error:o=>this.passwordStatus.set(o?.error?.code==="wrong-password"?"wrong-password":"error")})}cancelPasswordChange(){this.passwordForm.reset(),this.passwordStatus.set("idle"),this.showPasswordForm.set(!1),this.showCurPw.set(!1),this.showNewPw.set(!1),this.showConfirmPw.set(!1)}addNewAddress(){this.editingAddressId.set(null),this.addressForm.reset({type:"home"}),this.addressForm.patchValue({fullName:this.auth.name()??"",mobile:this.auth.phone?.()??""}),this.addressError.set(!1),this.editingAddress.set(!0)}editAddress(i){this.editingAddressId.set(i.id),this.addressForm.patchValue({fullName:i.fullName,mobile:i.mobile,line1:i.line1,street:i.street??"",area:i.area,landmark:i.landmark??"",city:i.city,state:i.state,pincode:i.pincode,type:i.type}),this.addressError.set(!1),this.editingAddress.set(!0)}cancelAddressEdit(){this.editingAddress.set(!1),this.editingAddressId.set(null),this.addressForm.reset(),this.addressError.set(!1),this.addressErrorDetail.set("")}saveAddress(){if(this.addressForm.invalid||this.addressSaving())return;this.addressSaving.set(!0),this.addressError.set(!1),this.addressErrorDetail.set("");let i=this.addressForm.getRawValue(),e={fullName:i.fullName,mobile:i.mobile,pincode:i.pincode,line1:i.line1,street:i.street||void 0,area:i.area,landmark:i.landmark||void 0,city:i.city,state:i.state,type:i.type},o=this.editingAddressId();(o?this.http.put(`/api/checkout/address/${o}`,e):this.http.post("/api/checkout/address",e)).subscribe({next:()=>{this.addressSaving.set(!1),this.editingAddress.set(!1),this.editingAddressId.set(null),this.addressForm.reset(),this.loadAddresses()},error:M=>{this.addressSaving.set(!1),this.addressError.set(!0),this.addressErrorDetail.set(M?.error?.detail??"")}})}deleteAddress(i){!A(this.platformId)||!confirm(this.labels.deleteConfirm)||(this.addressError.set(!1),this.addressErrorDetail.set(""),this.http.delete(`/api/checkout/address/${i.id}`).subscribe({next:()=>this.addresses.update(e=>e.filter(o=>o.id!==i.id)),error:e=>{this.addressError.set(!0),this.addressErrorDetail.set(e?.error?.detail??e?.error?.error??"")}}))}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-account-page"]],decls:8,vars:7,consts:[[1,"acct"],[1,"acct__title"],[1,"acct__subtitle"],["aria-labelledby","profile-heading",1,"acct__section","acct__profile"],["aria-labelledby","security-heading",1,"acct__section","acct__security"],["aria-labelledby","addr-heading",1,"acct__section","acct__addresses"],["id","profile-heading",1,"sr-only"],[1,"acct__profile-form",3,"ngSubmit","formGroup"],[1,"acct__field"],["for","acct-name"],["id","acct-name","type","text","formControlName","name",3,"placeholder"],["for","acct-phone"],["id","acct-phone","type","tel","formControlName","phone",3,"readonly","placeholder"],["id","acct-phone-hint",1,"acct__hint"],["role","alert",1,"acct__error"],["for","acct-email"],["id","acct-email","type","email","formControlName","email",3,"readonly","placeholder"],["id","acct-email-hint",1,"acct__hint"],["type","submit",1,"acct__btn","acct__btn--primary",3,"disabled"],["role","status",1,"acct__feedback",3,"acct__feedback--error"],["role","status",1,"acct__feedback"],[1,"acct__security-header"],[1,"acct__security-icon"],["name","lock"],[1,"acct__security-info"],["id","security-heading"],[1,"acct__security-sub"],["type","button",1,"acct__btn","acct__btn--outline"],[1,"acct__pw-form",3,"formGroup"],["type","button",1,"acct__btn","acct__btn--outline",3,"click"],[1,"acct__pw-form",3,"ngSubmit","formGroup"],["for","acct-cur-pw"],[1,"acct__pw-input"],["id","acct-cur-pw","formControlName","currentPassword",3,"type","placeholder"],["type","button",1,"acct__pw-toggle",3,"click"],[3,"name"],["for","acct-new-pw"],["id","acct-new-pw","formControlName","newPassword",3,"type","placeholder"],["for","acct-confirm-pw"],["id","acct-confirm-pw","formControlName","confirmPassword",3,"type","placeholder"],[1,"acct__pw-actions"],[1,"acct__addresses-header"],["id","addr-heading"],["type","button",1,"acct__add-addr"],[1,"acct__addr-form",3,"formGroup"],[1,"acct__loading"],[1,"acct__empty"],[1,"acct__addr-grid",3,"acct__addr-grid--grid"],["type","button",1,"acct__add-addr",3,"click"],["name","plus"],[1,"acct__addr-form",3,"ngSubmit","formGroup"],[1,"acct__addr-form-title"],[1,"acct__addr-form-subtitle"],[1,"acct__addr-form-grid"],["for","addr-name"],["id","addr-name","type","text","formControlName","fullName",3,"placeholder"],["for","addr-mobile"],["id","addr-mobile","type","tel","formControlName","mobile",3,"placeholder"],["for","addr-line1"],["id","addr-line1","type","text","formControlName","line1",3,"placeholder"],["for","addr-street"],["id","addr-street","type","text","formControlName","street",3,"placeholder"],["for","addr-area"],["id","addr-area","type","text","formControlName","area",3,"placeholder"],["for","addr-landmark"],["id","addr-landmark","type","text","formControlName","landmark",3,"placeholder"],["for","addr-city"],["id","addr-city","type","text","formControlName","city",3,"placeholder"],["for","addr-state"],["id","addr-state","type","text","formControlName","state"],["for","addr-pincode"],["id","addr-pincode","type","text","formControlName","pincode"],["for","addr-type"],["id","addr-type","formControlName","type"],["value","home"],["value","office"],["role","alert",1,"acct__feedback","acct__feedback--error"],[1,"acct__addr-form-badge"],[1,"acct__addr-form-id"],[1,"acct__feedback-detail"],[1,"acct__addr-grid"],[1,"addr-card"],[1,"addr-card__top"],[1,"addr-card__badge"],[1,"addr-card__actions"],["type","button",1,"addr-card__action",3,"click"],["name","edit"],["name","trash"],[1,"addr-card__name"],[1,"addr-card__text"],[1,"addr-card__phone"]],template:function(e,o){e&1&&(r(0,"div",0)(1,"h1",1),d(2),a(),r(3,"p",2),d(4),a(),m(5,de,23,21,"section",3),m(6,_e,11,4,"section",4),m(7,Ae,9,4,"section",5),a()),e&2&&(P("acct--stacked",o.variant==="stacked"),t(2),c(o.labels.accountTitle),t(2),c(o.labels.accountSubtitle),t(),_(o.sections.profile?5:-1),t(),_(o.sections.security?6:-1),t(),_(o.sections.addresses?7:-1))},dependencies:[W,R,J,K,$,Y,G,H,j,U,B],styles:[`@charset "UTF-8";[_nghost-%COMP%]{display:block;margin-top:var(--section-gap)}.sr-only[_ngcontent-%COMP%]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.acct[_ngcontent-%COMP%]{max-width:960px;margin:0 auto;padding:0 var(--space-md)}.acct__title[_ngcontent-%COMP%]{font-family:var(--font-heading);font-size:1.75rem;font-weight:700;color:var(--color-text);margin:0 0 var(--space-xs)}.acct__subtitle[_ngcontent-%COMP%]{font-family:var(--font-body);font-size:.938rem;color:var(--color-text-muted);margin:0 0 var(--space-lg)}.acct__section[_ngcontent-%COMP%]{background:var(--color-surface);border:1px solid var(--color-border, rgba(0, 0, 0, .08));border-radius:var(--radius-lg);padding:var(--space-lg);margin-bottom:var(--space-md)}.acct__profile-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--space-sm)}.acct__field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.acct__field[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-family:var(--font-body);font-size:.813rem;font-weight:600;color:var(--color-text)}.acct__field[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .acct__field[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{font-family:var(--font-body);font-size:.938rem;color:var(--color-text);background:var(--color-surface);border:1px solid var(--color-border, rgba(0, 0, 0, .15));border-radius:var(--radius-md);padding:10px 12px;transition:border-color .15s}.acct__field[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus, .acct__field[_ngcontent-%COMP%] select[_ngcontent-%COMP%]:focus{outline:2px solid var(--color-primary);outline-offset:-1px;border-color:var(--color-primary)}.acct__field[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder, .acct__field[_ngcontent-%COMP%] select[_ngcontent-%COMP%]::placeholder{color:var(--color-text-muted)}.acct__field[_ngcontent-%COMP%] input[readonly][_ngcontent-%COMP%]{background:color-mix(in srgb,var(--color-text) 5%,var(--color-surface));
1cursor:default}.acct__field[_ngcontent-%COMP%] input[readonly][_ngcontent-%COMP%]:focus{border-color:var(--color-border, rgba(0, 0, 0, .15))}.acct__field[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{appearance:none;-webkit-appearance:none;padding-right:36px;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23666' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1.5l5 5 5-5'/></svg>");background-repeat:no-repeat;background-position:right 12px center;background-size:12px 8px;cursor:pointer}.acct__field[_ngcontent-%COMP%] select[_ngcontent-%COMP%]::-ms-expand{display:none}.acct__hint[_ngcontent-%COMP%]{font-family:var(--font-body);font-size:.75rem;color:var(--color-text-muted);margin:0}.acct__error[_ngcontent-%COMP%]{font-family:var(--font-body);font-size:.75rem;color:color-mix(in srgb,var(--color-badge, #d32f2f) 82%,#000)}.acct__btn[_ngcontent-%COMP%]{font-family:var(--font-body);font-size:.875rem;font-weight:600;letter-spacing:.02em;border:none;border-radius:var(--radius-md);padding:10px 24px;cursor:pointer;transition:opacity .15s;white-space:nowrap}.acct__btn[_ngcontent-%COMP%]:disabled{opacity:.55;cursor:not-allowed}.acct__btn--primary[_ngcontent-%COMP%]{background:var(--color-cta);color:var(--color-on-cta, var(--color-primary))}.acct__btn--outline[_ngcontent-%COMP%]{background:transparent;border:1px solid var(--color-border, rgba(0, 0, 0, .15));color:var(--color-text)}.acct__feedback[_ngcontent-%COMP%]{font-family:var(--font-body);font-size:.813rem;color:var(--color-primary);margin:var(--space-xs) 0 0}.acct__feedback--error[_ngcontent-%COMP%]{color:color-mix(in srgb,var(--color-badge, #d32f2f) 82%,#000)}.acct__feedback-detail[_ngcontent-%COMP%]{display:block;margin-top:2px;font-size:.75rem;font-weight:400;color:var(--color-text-muted);word-break:break-word}.acct__security-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--space-sm)}.acct__security-icon[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:50%;background:var(--color-bg, #f5f5f5);display:flex;align-items:center;justify-content:center;color:var(--color-text-muted);font-size:1.25rem;flex-shrink:0}.acct__security-info[_ngcontent-%COMP%]{flex:1;min-width:0}.acct__security-info[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-family:var(--font-heading);font-size:1.125rem;font-weight:700;color:var(--color-text);margin:0}.acct__security-sub[_ngcontent-%COMP%]{font-family:var(--font-body);font-size:.813rem;color:var(--color-text-muted);margin:2px 0 0}.acct__pw-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--space-sm);margin-top:var(--space-md);padding-top:var(--space-md);border-top:1px solid var(--color-border, rgba(0, 0, 0, .08))}.acct__pw-input[_ngcontent-%COMP%]{position:relative}.acct__pw-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;padding-right:40px}.acct__pw-toggle[_ngcontent-%COMP%]{position:absolute;right:8px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:var(--color-text-muted);font-size:1.125rem;padding:4px;display:flex}.acct__pw-actions[_ngcontent-%COMP%]{display:flex;gap:var(--space-sm);margin-top:var(--space-xs)}.acct__addr-form-subtitle[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-family:var(--font-body);font-size:.813rem;color:var(--color-text-muted);margin:-4px 0 var(--space-sm)}.acct__addr-form-badge[_ngcontent-%COMP%]{font-family:var(--font-body);font-size:.688rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--color-on-cta, var(--color-surface));background:var(--color-primary);border-radius:var(--radius-sm, 4px);padding:2px 10px}.acct__addr-form-id[_ngcontent-%COMP%]{color:var(--color-text)}.acct__addresses-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--space-md)}.acct__addresses-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-family:var(--font-heading);font-size:1.125rem;font-weight:700;color:var(--color-text);margin:0}.acct__add-addr[_ngcontent-%COMP%]{font-family:var(--font-body);font-size:.875rem;font-weight:600;color:var(--color-primary);background:transparent;border:1px solid var(--color-border, rgba(0, 0, 0, .15));border-radius:var(--radius-md);padding:8px 16px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;gap:4px;transition:background .15s}.acct__add-addr[_ngcontent-%COMP%]:hover{background:color-mix(in srgb,var(--color-primary) 8%,transparent)}.acct__add-addr[_ngcontent-%COMP%] app-icon[_ngcontent-%COMP%]{font-size:1rem}.acct__loading[_ngcontent-%COMP%], .acct__empty[_ngcontent-%COMP%]{font-family:var(--font-body);font-size:.938rem;color:var(--color-text-muted);text-align:center;padding:var(--space-lg) 0}.acct__addr-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-md)}.addr-card[_ngcontent-%COMP%]{border:1px solid var(--color-border, rgba(0, 0, 0, .08));border-radius:var(--radius-md);padding:var(--space-sm) var(--space-md)}.addr-card__top[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--space-xs)}.addr-card__badge[_ngcontent-%COMP%]{font-family:var(--font-body);font-size:.688rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--color-on-cta, var(--color-surface));background:var(--color-primary);border-radius:var(--radius-sm, 4px);padding:2px 10px}.addr-card__actions[_ngcontent-%COMP%]{display:flex;gap:4px}.addr-card__action[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;color:var(--color-text-muted);font-size:1rem;padding:4px;display:flex;border-radius:var(--radius-sm, 4px);transition:color .15s}.addr-card__action[_ngcontent-%COMP%]:hover, .addr-card__action[_ngcontent-%COMP%]:focus-visible{color:var(--color-text)}.addr-card__action[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--color-primary);outline-offset:1px}.addr-card__name[_ngcontent-%COMP%]{font-family:var(--font-body);font-size:.938rem;font-weight:700;color:var(--color-text);margin:0 0 4px}.addr-card__text[_ngcontent-%COMP%]{font-family:var(--font-body);font-size:.813rem;color:var(--color-text-muted);line-height:1.5;margin:0 0 4px}.addr-card__phone[_ngcontent-%COMP%]{font-family:var(--font-body);font-size:.813rem;color:var(--color-text);margin:0}@media(max-width:767px){.acct__addr-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}.acct__security-header[_ngcontent-%COMP%]{flex-wrap:wrap}.acct__security-header[_ngcontent-%COMP%] .acct__btn[_ngcontent-%COMP%]{width:100%;margin-top:var(--space-xs)}}`],changeDetection:0})};export{ee as AccountPage};
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.