PageSourceSearch

https://app.advance.cm/en/2769.07544d6b4b7f2450.js

js advance.cm collected 2026-10-01 23:55:13 UTC 58,760 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunktv3=self.webpackChunktv3||[]).push([[2769],{82769:(Gt,z,r)=>{r.r(z),r.d(z,{AccountsModule:()=>Dt});var f=r(36362),a=r(12933),B=r(86942),v=r(78218),Y=r(39184),e=r(3184),m=r(63904),re=r(11371),d=r(42321),l=r(90587),se=r(11133),Ce=r(47418),K=r(73696),ce=r(26439),S=r(80767),de=r(43416),Ne=r(7438),V=r(59151),G=r(88759),w=r(53298),Te=r(85371),y=r(63344),U=r(45526),$=r(43365),O=r(44770),F=r(41666),P=r(9108);function Se(o,n){if(1&o&&(e.\u0275\u0275elementStart(0,"div",13),e.\u0275\u0275element(1,"i",14),e.\u0275\u0275elementStart(2,"span",15),e.\u0275\u0275i18n(3,16),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"epoch"),e.\u0275\u0275elementEnd()),2&o){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(5,1,t.domainUpdatedDate)," ")}}function Ae(o,n){1&o&&(e.\u0275\u0275elementStart(0,"mat-error"),e.\u0275\u0275i18n(1,17),e.\u0275\u0275elementEnd())}function me(o,n){1&o&&(e.\u0275\u0275elementStart(0,"span",18),e.\u0275\u0275element(1,"i",19),e.\u0275\u0275elementContainerStart(2),e.\u0275\u0275i18n(3,20),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd())}function ue(o,n){1&o&&(e.\u0275\u0275elementStart(0,"span",21),e.\u0275\u0275element(1,"i",19),e.\u0275\u0275elementContainerStart(2),e.\u0275\u0275i18n(3,22),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd())}class I extends a.VZT{constructor(n,t,_,i){super(),this.fb=n,this.store=t,this.accountService=_,this.auth=i,this.classes="container-box p-3",this.form=this.fb.group({domain:this.fb.control("",{updateOn:"blur",validators:[l.kI.required]})})}ngOnInit(){this.store.select((0,a.bkt)(this.auth.user.account),(0,a.sNL)(this)).pipe((0,V.h)(n=>!Te.Z(n)),(0,G.b)(n=>this.domainUpdatedDate=n.domainUpdated||n.created),(0,B.U)(n=>n.domain),(0,w.x)()).subscribe(n=>{this.form.patchValue({domain:n},{emitEvent:!1})})}onDomainChange(){const{domain:n}=this.form.getRawValue();this.accountService.isDomainAvailable(n).subscribe(t=>{this.isAvailable=t})}onSave(n){const t=n.getRawValue();this.store.dispatch((0,a.gKz)({domain:t.domain}))}}I.\u0275fac=function(n){return new(n||I)(e.\u0275\u0275directiveInject(l.qu),e.\u0275\u0275directiveInject(m.yh),e.\u0275\u0275directiveInject(a.BRM),e.\u0275\u0275directiveInject(v.e8))},I.\u0275cmp=e.\u0275\u0275defineComponent({type:I,selectors:[["app-account-domain"]],hostVars:2,hostBindings:function(n,t){2&n&&e.\u0275\u0275classMap(t.classes)},features:[e.\u0275\u0275InheritDefinitionFeature],decls:16,vars:9,consts:function(){let o,n,t,_,i,s,C;return o="Domain",n="Your unique AdvanceCM domain, used to route guest email conversations",t="Update",_="Updated On:",i=" Domain is required ",s="Domain Available",C="Domain Unavailable",[[3,"formGroup","formEditablePermission"],[1,"d-flex","gap-3","position-relative"],["class","domain-updated-date text-light text-sm d-flex gap-1",4,"ngIf"],[1,"mat-block"],["matInput","","placeholder",o,"type","text","required","","formControlName","domain",3,"change"],[4,"ngIf"],n,["align","end"],["class","check-availability text-skyblue",4,"ngIf"],["class","check-availability text-rose",4,"ngIf"],[1,"btn","btn-secondary-primary","align-input-row-end",3,"disabled","click"],[1,"far","fa-sync"],t,[1,"domain-updated-date","text-light","text-sm","d-flex","gap-1"],[1,"cs-icon","cs-icon-clock","text-lg"],[1,"text-semi-bold"],_,i,[1,"check-availability","text-skyblue"],[1,"fal","fa-check"],s,[1,"check-availability","text-rose"],C]},template:function(n,t){1&n&&(e.\u0275\u0275elementStart(0,"form",0)(1,"div",1),e.\u0275\u0275template(2,Se,6,3,"div",2),e.\u0275\u0275elementStart(3,"mat-form-field2",3)(4,"input",4),e.\u0275\u0275listener("change",function(){return t.onDomainChange()}),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(5,Ae,2,0,"mat-error",5),e.\u0275\u0275elementStart(6,"mat-hint"),e.\u0275\u0275i18n(7,6),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"mat-hint",7),e.\u0275\u0275template(9,me,4,0,"span",8),e.\u0275\u0275template(10,ue,4,0,"span",9),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(11,"button",10),e.\u0275\u0275listener("click",function(){return t.onSave(t.form)}),e.\u0275\u0275pipe(12,"isReadonlyRole"),e.\u0275\u0275element(13,"span",11),e.\u0275\u0275elementContainerStart(14),e.\u0275\u0275i18
1n(15,12),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd()()()),2&n&&(e.\u0275\u0275property("formGroup",t.form)("formEditablePermission",t.form),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.domainUpdatedDate),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",t.form.get("domain").touched&&t.form.get("domain").hasError("required")),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngIf",!0===t.isAvailable),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!1===t.isAvailable),e.\u0275\u0275advance(1),e.\u0275\u0275property("disabled",e.\u0275\u0275pipeBind1(12,7,1)))},directives:[l._Y,l.JL,l.sg,S.VP,y.W,f.NgIf,U.J,$.Nt,l.Fj,l.Q7,l.JJ,l.u,S.bc,S.YE,O.TO,O.bx],pipes:[F.Y,P.T],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%]   .domain-updated-date[_ngcontent-%COMP%]{position:absolute;top:0;right:0}"]}),(0,d.gn)([(0,a.CIN)(),(0,d.w6)("design:type",Function),(0,d.w6)("design:paramtypes",[l.cw]),(0,d.w6)("design:returntype",void 0)],I.prototype,"onSave",null);var Ee=r(59189),fe=r(27082),pe=r(22457);function Oe(o,n){1&o&&(e.\u0275\u0275elementStart(0,"mat-error"),e.\u0275\u0275i18n(1,42),e.\u0275\u0275elementEnd())}function ge(o,n){1&o&&(e.\u0275\u0275elementStart(0,"mat-error"),e.\u0275\u0275i18n(1,43),e.\u0275\u0275elementEnd())}function Pe(o,n){1&o&&(e.\u0275\u0275elementStart(0,"mat-error"),e.\u0275\u0275i18n(1,44),e.\u0275\u0275elementEnd())}function Ie(o,n){1&o&&(e.\u0275\u0275elementStart(0,"mat-error"),e.\u0275\u0275i18n(1,45),e.\u0275\u0275elementEnd())}function Me(o,n){1&o&&(e.\u0275\u0275elementStart(0,"mat-error"),e.\u0275\u0275i18n(1,46),e.\u0275\u0275elementEnd())}function Re(o,n){1&o&&(e.\u0275\u0275elementStart(0,"mat-error"),e.\u0275\u0275i18n(1,47),e.\u0275\u0275elementEnd())}function he(o,n){1&o&&(e.\u0275\u0275elementStart(0,"mat-error"),e.\u0275\u0275i18n(1,48),e.\u0275\u0275elementEnd())}function be(o,n){1&o&&(e.\u0275\u0275elementStart(0,"mat-error"),e.\u0275\u0275i18n(1,49),e.\u0275\u0275elementEnd())}class g extends a.VZT{constructor(n,t,_,i,s,C){super(),this.store=n,this.auth=t,this.actions=_,this.accountService=i,this.confirmDialog=s,this.fb=C,this.submitting=!1,this.currencyList=a.QTh,this.countryList=a.hW3,this.form=this.fb.group({name:["",[l.kI.required,l.kI.minLength(2),l.kI.maxLength(30)]],merchant_name:[""],phone:["",[l.kI.required]],email:["",[l.kI.required,l.kI.email]],currency:["",[l.kI.required]],website:["",[S.CM.url()]],address:this.fb.group({address:[""],city:[""],country_code:[""],postal_code:[""],state:[""]}),vat_tin:[""]}),this.deleteForm=this.fb.group({password:["",[l.kI.required]]})}ngOnInit(){this.user=this.auth.user,this.store.pipe((0,m.Ys)((0,a.bkt)(this.user.account)),(0,a.sNL)(this)).subscribe(n=>{var t;this.account=n,this.form.patchValue(Object.assign(Object.assign({},n.serialize()),{merchant_name:null===(t=n.attributes)||void 0===t?void 0:t.merchant_name})),this.oldCurrency=n.currency,this.submitting=!1}),this.actions.pipe((0,K.l4)(a._vG.type),(0,a.sNL)(this)).subscribe(()=>{this.store.dispatch((0,a.Bv2)({}))})}save(){this.onSave(this.form)}onSave(n){const t=n.getRawValue(),{merchant_name:_}=t;let s=(0,d._T)(t,["merchant_name"]);s=Object.assign(Object.assign({},s),{attributes:Object.assign(Object.assign({},this.account.attributes||{}),{merchant_name:_})}),this.hasChangedCurrency(s.currency.code)?this.confirmDialog.confirm({title:"Update All Rentals",body:"We are about to update your account currency. Would you also like to update the currency of all existing rentals?"}).subscribe(()=>{this.submitting=!0,this.store.dispatch((0,a.sGo)({account:s,updateAll:!0}))}):(this.submitting=!0,this.store.dispatch((0,a.sGo)({account:s})))}onDelete(n){this.auth.login({email:this.auth.user.primaryEmail,password:this.deleteForm.get("password").value,keepAlive:!0},!0).pipe((0,se.b)(()=>this.confirmDialog.confirmDelete({title:"Delete this account?",body:"This action will delete your account and purge all of your data. Your subscriptions will be canceled and your email addresses will be immediately invalid. You will be logged out and unable to login again. This process is immediate and irreversible. Are you sure you want to delete your account?",confirmText:"Yes, purge my account"})),(0,Ce.K)(()=>ce.E)).subscribe(()=>{this.accountService.delete().subscribe(()=>{this.auth.logout(!0)})})}hasChangedCurrency(n){return this.oldCurrency&&this.oldCurrency.code!==n}}g.\u0275fac=function(n){return new(n||g)(e.\u0275\u0275directiveInject(m.yh),e.\u0275\u0275directiveInject(v.e8),e.\u0275\u0275directiveInject(K.eX),e.\u0275\u0275directiveInject(a.BRM),e.\u0275\u0275directiveInject(a.DNF),e.\u0275\u0275directiveInject(l.qu))},g.\u0275cmp=e.\u0275\u0275defineComponent({type:g,selectors:[["app-account-info"]],features:[e.\u0275\u0275InheritDefinitionFeature],decls:79,vars:24,consts:function(){let o,n,t,_,i,s,C,c,T,A,E,L,D,u,Z,W,ee,te,ne,oe,_e,ie,ae,le;return o="Account ID:",n="Created:",t="Company information",_="Name",i="Merchant Name",s="Email",C="Website",c="https://www.your-website.com",T="Default Currency",A="Phone",E="Company location",L="Address",D="City",u="State / Province / Region",Z="Postal Code",W="
1VAT / Tax ID",ee=" Name is required ",te=" Name must be at least 2 characters long ",ne=" Name must be at most 30 characters long ",oe=" Email is required ",_e=" Email must have valid format ",ie=" Website is invalid ",ae=" Phone is required ",le=" Address is required ",[[1,"row"],[1,"col-md-6"],[1,"container-box","d-flex","align-items-center","p-3","user-profile"],[1,"d-flex","align-items-center","gap-3"],[1,"position-relative"],[3,"text","size"],[1,"text-bold","text-xxl"],[1,"flex-fill"],[1,"d-flex","flex-column","gap-3"],[1,"d-flex","align-items-center","gap-2"],[1,"badge","badge-secondary-warning","badge-circle","text-sm"],[1,"cs-icon","cs-icon-user"],[1,"text-bold"],o,[1,"text-light"],[1,"text-light","text-xl",3,"content"],[1,"badge","badge-secondary-info","badge-circle","text-md"],[1,"cs-icon","cs-icon-calendar"],n,[3,"formGroup","formEditablePermission"],[1,"col-md-6","mt-4"],t,[1,"container-box","p-3"],[1,"mat-block"],["type","text","matInput","","required","","placeholder",_,"formControlName","name"],[4,"ngIf"],["align","end"],["type","text","matInput","","placeholder",i,"formControlName","merchant_name"],["type","email","matInput","","required","","placeholder",s,"formControlName","email"],["type","text","matInput","","placeholder",C,"formControlName","website"],c,[1,"col-sm-6"],["label",T,3,"ctrl"],["type","text","matInput","","required","","placeholder",A,"formControlName","phone"],E,["formGroupName","address"],["matInput","","required","","placeholder",L,"type","text","formControlName","address"],["matInput","","placeholder",D,"type","text","formControlName","city"],["matInput","","placeholder",u,"type","text","formControlName","state"],["matInput","","placeholder",Z,"type","text","formControlName","postal_code"],[3,"codeCtrl","nameCtrl"],["matInput","","placeholder",W,"type","text","formControlName","vat_tin"],ee,te,ne,oe,_e,ie,ae,le]},template:function(n,t){1&n&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),e.\u0275\u0275element(5,"app-avatar",5),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"div",6),e.\u0275\u0275text(7),e.\u0275\u0275pipe(8,"fullname"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(9,"div",7),e.\u0275\u0275elementStart(10,"div",8)(11,"div",9)(12,"span",10),e.\u0275\u0275element(13,"i",11),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(14,"span",12),e.\u0275\u0275i18n(15,13),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(16,"span",14),e.\u0275\u0275text(17),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(18,"app-copy-icon",15),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(19,"div",9)(20,"span",16),e.\u0275\u0275element(21,"i",17),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(22,"span",12),e.\u0275\u0275i18n(23,18),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(24,"span",14),e.\u0275\u0275text(25),e.\u0275\u0275pipe(26,"epoch"),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(27,"div",1),e.\u0275\u0275element(28,"app-account-domain"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerStart(29,19),e.\u0275\u0275elementStart(30,"div",20)(31,"h6"),e.\u0275\u0275i18n(32,21),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(33,"div",22)(34,"mat-form-field2",23),e.\u0275\u0275element(35,"input",24),e.\u0275\u0275template(36,Oe,2,0,"mat-error",25),e.\u0275\u0275template(37,ge,2,0,"mat-error",25),e.\u0275\u0275template(38,Pe,2,0,"mat-error",25),e.\u0275\u0275elementStart(39,"mat-hint",26),e.\u0275\u0275text(40),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(41,"mat-form-field2",23),e.\u0275\u0275element(42,"input",27),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(43,"mat-form-field2",23),e.\u0275\u0275element(44,"input",28),e.\u0275\u0275template(45,Ie,2,0,"mat-error",25),e.\u0275\u0275template(46,Me,2,0,"mat-error",25),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(47,"mat-form-field2",23),e.\u0275\u0275element(48,"input",29),e.\u0275\u0275elementStart(49,"mat-hint",26),e.\u0275\u0275i18n(50,30),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(51,Re,2,0,"mat-error",25),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(52,"div",0)(53,"div",31),e.\u0275\u0275element(54,"app-currency-select",32),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(55,"div",31)(56,"mat-form-field2",23),e.\u0275\u0275element(57,"input",33),e.\u0275\u0275template(58,he,2,0,"mat-error",25),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(59,"div",20)(60,"h6"),e.\u0275\u0275i18
1n(61,34),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(62,"div",22),e.\u0275\u0275elementContainerStart(63,35),e.\u0275\u0275elementStart(64,"mat-form-field2",23),e.\u0275\u0275element(65,"input",36),e.\u0275\u0275template(66,be,2,0,"mat-error",25),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(67,"mat-form-field2",23),e.\u0275\u0275element(68,"input",37),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(69,"mat-form-field2",23),e.\u0275\u0275element(70,"input",38),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(71,"mat-form-field2",23),e.\u0275\u0275element(72,"input",39),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementStart(73,"div",0)(74,"div",31),e.\u0275\u0275element(75,"app-country-select",40),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(76,"div",31)(77,"mat-form-field2",23),e.\u0275\u0275element(78,"input",41),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd()),2&n&&(e.\u0275\u0275advance(5),e.\u0275\u0275property("text",null==t.user?null:t.user.firstName)("size",87),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(8,20,t.user)),e.\u0275\u0275advance(10),e.\u0275\u0275textInterpolate(null==t.user?null:t.user.account),e.\u0275\u0275advance(1),e.\u0275\u0275property("content",null==t.user?null:t.user.account),e.\u0275\u0275advance(7),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(26,22,null==t.account?null:t.account.created)),e.\u0275\u0275advance(4),e.\u0275\u0275property("formGroup",t.form)("formEditablePermission",t.form),e.\u0275\u0275advance(7),e.\u0275\u0275property("ngIf",t.form.get("name").touched&&t.form.get("name").hasError("required")),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.form.get("name").touched&&t.form.get("name").hasError("minlength")),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.form.get("name").touched&&t.form.get("name").hasError("maxlength")),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1("",t.form.get("name").value.length||0,"/30"),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngIf",t.form.get("email").touched&&t.form.get("email").hasError("required")),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.form.get("email").touched&&t.form.get("email").hasError("email")),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngIf",t.form.get("website").hasError("url")),e.\u0275\u0275advance(3),e.\u0275\u0275property("ctrl",t.form.get("currency")),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngIf",t.form.get("phone").touched&&t.form.get("phone").hasError("required")),e.\u0275\u0275advance(8),e.\u0275\u0275property("ngIf",t.form.get("address").get("address").touched&&t.form.get("address").get("address").hasError("required")),e.\u0275\u0275advance(9),e.\u0275\u0275property("codeCtrl",t.form.get("address").get("country_code"))("nameCtrl",t.form.get("address").get("country")))},directives:[de.A,Ne.Q,I,l.JL,l.sg,S.VP,y.W,U.J,$.Nt,l.Fj,l.Q7,l.JJ,l.u,S.bc,S.YE,f.NgIf,O.TO,O.bx,Ee.M,l.x0,fe.$],pipes:[pe.J,F.Y],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%]   .user-profile[_ngcontent-%COMP%]{background:url(/assets/images/bg/bg-profile.svg) no-repeat;background-size:cover}[_nghost-%COMP%]   .image-edit-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:29px;height:29px;border-radius:50%;background-color:#f7f8fa;position:absolute;bottom:0;right:0;box-shadow:0 0 4px #0000001a;cursor:pointer}[_nghost-%COMP%]   .image-edit-icon[_ngcontent-%COMP%]:hover{background-color:#dfe3eb}"]}),(0,d.gn)([(0,a.CIN)(),(0,d.w6)("design:type",Function),(0,d.w6)("design:paramtypes",[l.cw]),(0,d.w6)("design:returntype",void 0)],g.prototype,"onSave",null),(0,d.gn)([(0,a.CIN)(),(0,d.w6)("design:type",Function),(0,d.w6)("design:paramtypes",[l.cw]),(0,d.w6)("design:returntype",void 0)],g.prototype,"onDelete",null);var ve=r(59095),ye=r(56916),Ue=r(41766);function $e(o,n){1&o&&(e.\u0275\u0275elementStart(0,"mat-error"),e.\u0275\u0275elementContainerStart(1),e.\u0275\u0275i18n(2,17),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd())}function Le(o,n){1&o&&(e.\u0275\u0275elementStart(0,"mat-error"),e.\u0275\u0275elementContainerStart(1),e.\u0275\u0275i18
1n(2,18),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd())}class M extends a.VZT{constructor(n,t,_,i,s,C,c,T){super(),this.fb=n,this.store=t,this.auth=_,this.confirmDialog=i,this.rentalSerice=s,this.accountService=C,this.amplitudeService=c,this.toaster=T,this.form=this.fb.group({checkin:[null,[l.kI.required]],checkout:[null,[l.kI.required]],timezone:[null,[l.kI.required]]})}ngOnInit(){this.store.pipe((0,m.Ys)((0,a.bkt)(this.auth.user.account)),(0,w.x)(),(0,G.b)(n=>{this.patchForm(n)}),(0,a.sNL)(this)).subscribe()}onSave(n){this.amplitudeService.logEvent("accounts-check-time-save");const t=n.getRawValue(),_=this.rentalSerice.toCheckTime(t.checkin,t.timezone),i=this.rentalSerice.toCheckTime(t.checkout,t.timezone);!_||!i||this.confirmDialog.openRegular({title:"Also update for all rentals?",body:"Do you want to update this check-in / check-out times for all rentals?"}).pipe((0,ve.w)(s=>{const C=s===a.anQ.Confirmed;return this.accountService.updateCheckTime({checkin:_,checkout:i}).pipe((0,G.b)(()=>{C?(this.amplitudeService.logEvent("accounts-check-time-update-all-rentals"),this.store.dispatch((0,a.QiF)({checkin:_,checkout:i}))):this.toaster.success("Check-in / check-out times updated successfully.")}),(0,G.b)(c=>{this.store.dispatch((0,a._vG)({update:{id:c.id,changes:c}}))}))})).subscribe()}patchForm(n){const t=n.attributes&&n.attributes.checkin,_=n.attributes&&n.attributes.checkout,i=t&&t.timezone||_&&_.timezone||null,s=a.uUU.formatTime(t),C=a.uUU.formatTime(_);this.form.patchValue({checkin:s,checkout:C,timezone:i})}}M.\u0275fac=function(n){return new(n||M)(e.\u0275\u0275directiveInject(l.qu),e.\u0275\u0275directiveInject(m.yh),e.\u0275\u0275directiveInject(v.e8),e.\u0275\u0275directiveInject(a.DNF),e.\u0275\u0275directiveInject(a.b32),e.\u0275\u0275directiveInject(a.BRM),e.\u0275\u0275directiveInject(Y.Q),e.\u0275\u0275directiveInject(a.x7r))},M.\u0275cmp=e.\u0275\u0275defineComponent({type:M,selectors:[["app-account-check-time"]],features:[e.\u0275\u0275InheritDefinitionFeature],decls:23,vars:9,consts:function(){let o,n,t,_,i,s;return o="Check-in / Check-out Times",n="Save",t="Check-in Time",_="Check-out Time",i="Check-in is required",s="Check-out is required",[[1,"d-flex","align-items-center","gap-3"],[1,"text-bold"],o,[1,"flex-fill"],["type","submit",1,"btn","btn-secondary-info","create-btn",3,"disabled","click"],[1,"cs-icon","cs-icon-save"],n,[1,"container-box","p-3","mt-3"],[3,"formGroup"],[1,"d-flex","gap-3",3,"formGroup","formEditablePermission"],[1,"flex-1"],["type","text","required","","matInput","","atp-time-picker","","changeToMinutes","true","formControlName","checkin","placeholder",t],["matPrefix",""],[1,"fal","fa-clock"],[4,"ngIf"],["type","text","required","","matInput","","atp-time-picker","","changeToMinutes","true","formControlName","checkout","placeholder",_],[1,"flex-2",3,"ctrl"],i,s]},template:function(n,t){1&n&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1),e.\u0275\u0275i18n(2,2),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"div",3),e.\u0275\u0275elementStart(4,"button",4),e.\u0275\u0275listener("click",function(){return t.onSave(t.form)}),e.\u0275\u0275pipe(5,"isReadonlyRole"),e.\u0275\u0275element(6,"span",5),e.\u0275\u0275elementContainerStart(7),e.\u0275\u0275i18n(8,6),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(9,"div",7)(10,"form",8)(11,"div",9)(12,"mat-form-field2",10),e.\u0275\u0275element(13,"input",11),e.\u0275\u0275elementStart(14,"span",12),e.\u0275\u0275element(15,"i",13),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(16,$e,3,0,"mat-error",14),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(17,"mat-form-field2",10),e.\u0275\u0275element(18,"input",15),e.\u0275\u0275elementStart(19,"span",12),e.\u0275\u0275element(20,"i",13),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(21,Le,3,0,"mat-error",14),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(22,"app-timezone-select",16),e.\u0275\u0275elementEnd()()()),2&n&&(e.\u0275\u0275advance(4),e.\u0275\u0275property("disabled",e.\u0275\u0275pipeBind1(5,7,1)),e.\u0275\u0275advance(6),e.\u0275\u0275property("formGroup",t.form),e.\u0275\u0275advance(1),e.\u0275\u0275property("formGroup",t.form)("formEditablePermission",t.form),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngIf",t.form.get("checkin").touched&&t.form.get("checkin").hasError("required")),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngIf",t.form.get("checkout").touched&&t.form.get("checkout").hasError("required")),e.\u0275\u0275advance(1),e.\u0275\u0275property("ctrl",t.form.get("timezone")))},directives:[l._Y,l.JL,l.sg,S.VP,y.W,U.J,$.Nt,ye.ye,l.Fj,l.Q7,l.JJ,l.u,S.bc,S.YE,O.qo,f.NgIf,O.TO,Ue.Q],pipes:[P.T],styles:[""],changeDetection:0}),(0,d.gn)([(0,a.CIN)(),(0,d.w6)("design:type",Function),(0,d.w6)("design:paramtypes",[l.cw]),(0,d.w6)("design:returntype",void 0)],M.prototype,"onSave",null);var De=r(80823),Ge=r(39273),xe=r(56967),Ve=r(92938),X=r(69715),Fe=r(61534);function Xe(o,n){1&o&&(e.\u0275\u0275elementStart(0,"mat-error"),e.\u0275\u0275text(1," Invoice prefix should be alphanumeric. "),e.\u0275\u0275elementEnd())}let j=(()=>
1{class o extends a.VZT{constructor(t,_){super(),this.fb=t,this.store=_,this.form=this.fb.group({invoicePrefix:["",i=>{const s=i.value;if(s&&!/^[0-9a-zA-Z-_]*$/g.test(s))return{invalid:!0}}],calClick:[],doubleBooking:[!1],invoice_uses_booking_taxes:[!1]})}ngOnInit(){this.store.pipe((0,a.KuC)(Ge.nZ),(0,a.sNL)(this)).subscribe(t=>{this.preference=t,this.form.patchValue(t,{onlySelf:!0,emitEvent:!1})}),this.form.valueChanges.pipe((0,De.b)(750),(0,V.h)(()=>this.form.valid),(0,a.sNL)(this)).subscribe(t=>{const _={invoice_prefix:Ve.trim(t.invoicePrefix),cal_click:t.calClick,double_booking:t.doubleBooking?1:0,invoice_uses_booking_taxes:t.invoice_uses_booking_taxes?1:0};this.store.dispatch((0,xe.V6)({id:this.preference.id,form:_}))})}}return o.\u0275fac=function(t){return new(t||o)(e.\u0275\u0275directiveInject(l.qu),e.\u0275\u0275directiveInject(m.yh))},o.\u0275cmp=e.\u0275\u0275defineComponent({type:o,selectors:[["app-account-preferences"]],features:[e.\u0275\u0275InheritDefinitionFeature],decls:26,vars:3,consts:function(){let n,t,_,i,s,C;return n="Booking & Invoicing Defaults",t="Changes are saved automatically",_="Invoice No. Prefix:",i="Only alphanumeric characters and dashes are allowed in this field",s="Allow overlapping bookings",C="Include Taxes in Auto Invoices",[[1,"d-flex","align-items-center","gap-3"],[1,"text-bold"],n,[1,"flex-fill"],[1,"text-light","text-sm"],t,[1,"container-box","p-3","mt-3"],[1,"preferences-content",3,"formGroup","formEditablePermission"],[1,"row"],[1,"col-sm-8"],["matTooltip","Value added here will be prefixed to your invoice number",1,"mat-block"],["matInput","","formControlName","invoicePrefix","placeholder",_,"type","text"],i,[4,"ngIf"],[1,"row","mt-3"],[1,"col-sm-4"],[1,""],["matTooltip","Allow the ability to manually create bookings that overlap with each other. This does not result in opening availability for bookings to be created on channel listing sites, but simply allows the manual creation of overlapping events.","matTooltipPosition","above","formControlName","doubleBooking",1,"mt-primary"],s,["formControlName","invoice_uses_booking_taxes","matTooltip","Selecting this checkbox will include rental taxes on Automatic Invoices",1,"mt-primary"],C]},template:function(t,_){1&t&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1),e.\u0275\u0275i18n(2,2),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"div",3),e.\u0275\u0275elementStart(4,"div",4),e.\u0275\u0275i18n(5,5),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(6,"div",6)(7,"form",7)(8,"div",8)(9,"div",9)(10,"mat-form-field2",10),e.\u0275\u0275element(11,"input",11),e.\u0275\u0275elementStart(12,"mat-hint"),e.\u0275\u0275i18n(13,12),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(14,Xe,2,0,"mat-error",13),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(15,"div",14)(16,"div",15)(17,"div",16)(18,"mat-checkbox",17),e.\u0275\u0275elementContainerStart(19),e.\u0275\u0275i18n(20,18),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(21,"div",15)(22,"div",16)(23,"mat-checkbox",19),e.\u0275\u0275elementContainerStart(24),e.\u0275\u0275i18n(25,20),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd()()()()()()),2&t&&(e.\u0275\u0275advance(7),e.\u0275\u0275property("formGroup",_.form)("formEditablePermission",_.form),e.\u0275\u0275advance(7),e.\u0275\u0275property("ngIf",_.form.get("invoicePrefix").hasError("invalid")))},directives:[l._Y,l.JL,l.sg,S.VP,y.W,U.J,X.gM,$.Nt,l.Fj,l.JJ,l.u,S.bc,S.YE,O.bx,f.NgIf,O.TO,Fe.oG],styles:["[_nghost-%COMP%]{display:block}"]}),o})();var ke=r(52159),x=r(91519),ze=r(61971);function Be(o,n){if(1&o){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",13)(1,"app-tax-form",14),e.\u0275\u0275listener("remove",function(i){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext().removeTax(i)}),e.\u0275\u0275elementEnd()()}if(2&o){const t=n.index,_=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("index",t)("taxes",_.taxes)("modalityEnabled",!1)}}class R extends a.VZT{constructor(n,t){super(),this.fb=n,this.store=t,this.form=this.fb.group({taxes:this.fb.array([this.createTax()])})}get taxes(){return this.form.get("taxes")}ngOnInit(){this.store.pipe((0,m.Ys)(a.ewB),(0,a.sNL)(this)).subscribe(n=>
1{this.taxes.clear(),null==n||n.forEach(t=>{this.addTax(t)}),(0,a.JG8)(n)||this.addTax()})}addTax(n){this.taxes.push(this.createTax(n))}removeTax(n){this.taxes.removeAt(n)}createTax(n){return this.fb.group({amount:[x.Z(void 0,["amount"],n),[l.kI.required]],name:[x.Z(void 0,["name"],n),[l.kI.required]],type:[x.Z("percent",["type"],n)],modality:[x.Z(ke.TaxModalities.PerStay,["modality"],n)]})}onSave(n){const{taxes:t}=n.getRawValue();this.store.dispatch((0,a.c2b)({taxes:t}))}}R.\u0275fac=function(n){return new(n||R)(e.\u0275\u0275directiveInject(l.qu),e.\u0275\u0275directiveInject(m.yh))},R.\u0275cmp=e.\u0275\u0275defineComponent({type:R,selectors:[["app-account-taxes"]],features:[e.\u0275\u0275InheritDefinitionFeature],decls:16,vars:5,consts:function(){let o,n,t;return o="Taxes",n="Save",t="Add Tax",[[1,"d-flex","align-items-center","gap-3"],[1,"text-bold"],o,[1,"flex-fill"],["type","button",1,"btn","btn-secondary-info","create-btn",3,"disabled","click"],[1,"cs-icon","cs-icon-save"],n,[1,"container-box","p-3","mt-3"],[3,"formGroup"],["formArrayName","taxes",4,"ngFor","ngForOf"],["type","button",1,"btn","btn-secondary-info",3,"click"],[1,"far","fa-plus"],t,["formArrayName","taxes"],[3,"index","taxes","modalityEnabled","remove"]]},template:function(n,t){1&n&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1),e.\u0275\u0275i18n(2,2),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"div",3),e.\u0275\u0275elementStart(4,"button",4),e.\u0275\u0275listener("click",function(){return t.onSave(t.form)}),e.\u0275\u0275pipe(5,"isReadonlyRole"),e.\u0275\u0275element(6,"span",5),e.\u0275\u0275elementContainerStart(7),e.\u0275\u0275i18n(8,6),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(9,"div",7)(10,"form",8),e.\u0275\u0275template(11,Be,2,3,"div",9),e.\u0275\u0275elementStart(12,"button",10),e.\u0275\u0275listener("click",function(){return t.addTax()}),e.\u0275\u0275element(13,"i",11),e.\u0275\u0275elementContainerStart(14),e.\u0275\u0275i18n(15,12),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd()()()),2&n&&(e.\u0275\u0275advance(4),e.\u0275\u0275property("disabled",e.\u0275\u0275pipeBind1(5,3,1)),e.\u0275\u0275advance(6),e.\u0275\u0275property("formGroup",t.form),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.taxes.controls))},directives:[l._Y,l.JL,l.sg,S.VP,f.NgForOf,l.CE,ze.x],pipes:[P.T],styles:[""]}),(0,d.gn)([(0,a.CIN)(),(0,d.w6)("design:type",Function),(0,d.w6)("design:paramtypes",[l.cw]),(0,d.w6)("design:returntype",void 0)],R.prototype,"onSave",null);var Ye=r(54787),Ke=r(95841);function we(o,n){if(1&o){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",8),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext();return i.onSave(i.addressesForm)}),e.\u0275\u0275pipe(1,"isReadonlyRole"),e.\u0275\u0275element(2,"i",9),e.\u0275\u0275elementContainerStart(3),e.\u0275\u0275i18n(4,10),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd()}2&o&&e.\u0275\u0275property("disabled",e.\u0275\u0275pipeBind1(1,1,1))}function je(o,n){if(1&o){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",23),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext().index;return e.\u0275\u0275nextContext(2).onRemove(i)}),e.\u0275\u0275element(1,"i",24),e.\u0275\u0275elementEnd()}}function He(o,n){1&o&&(e.\u0275\u0275elementStart(0,"mat-error"),e.\u0275\u0275elementContainerStart(1),e.\u0275\u0275i18n(2,25),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd())}function Je(o,n){if(1&o&&(e.\u0275\u0275elementStart(0,"div",14)(1,"div",0),e.\u0275\u0275elementContainerStart(2),e.\u0275\u0275i18n(3,15),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275text(4),e.\u0275\u0275element(5,"div",3),e.\u0275\u0275template(6,je,2,0,"button",16),e.\u0275\u0275pipe(7,"isReadonlyRole"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"mat-form-field2",17),e.\u0275\u0275element(9,"input",18),e.\u0275\u0275elementStart(10,"mat-hint"),e.\u0275\u0275i18
1n(11,19),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(12,He,3,0,"mat-error",20),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(13,"app-address-form",21),e.\u0275\u0275elementStart(14,"mat-form-field2",17),e.\u0275\u0275element(15,"input",22),e.\u0275\u0275elementEnd()()),2&o){const t=n.$implicit,_=n.index;e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",_<9?"0"+(_+1):_+1," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!e.\u0275\u0275pipeBind1(7,7,1)),e.\u0275\u0275advance(3),e.\u0275\u0275property("formControl",t.get("name")),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",t.get("name").touched&&t.get("name").hasError("allSpaces")),e.\u0275\u0275advance(1),e.\u0275\u0275property("form",t)("formEditablePermission",t),e.\u0275\u0275advance(2),e.\u0275\u0275property("formControl",t.get("vat_tin"))}}function Qe(o,n){if(1&o){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",26)(1,"button",27),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(2).onCreate()}),e.\u0275\u0275element(2,"i",28),e.\u0275\u0275elementContainerStart(3),e.\u0275\u0275i18n(4,29),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd()()}}function qe(o,n){if(1&o&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",11),e.\u0275\u0275template(2,Je,16,9,"div",12),e.\u0275\u0275template(3,Qe,5,0,"div",13),e.\u0275\u0275pipe(4,"isReadonlyRole"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&o){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",t.addressesForm.controls),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!e.\u0275\u0275pipeBind1(4,2,1))}}function Ze(o,n){if(1&o){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",35),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(2).onCreate()}),e.\u0275\u0275element(1,"i",28),e.\u0275\u0275elementContainerStart(2),e.\u0275\u0275i18n(3,36),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd()}}function We(o,n){1&o&&(e.\u0275\u0275elementStart(0,"app-empty-table"),e.\u0275\u0275element(1,"img",30),e.\u0275\u0275elementStart(2,"h6",31),e.\u0275\u0275i18n(3,32),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"p"),e.\u0275\u0275i18n(5,33),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(6,Ze,4,0,"button",34),e.\u0275\u0275pipe(7,"isReadonlyRole"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(6),e.\u0275\u0275property("ngIf",!e.\u0275\u0275pipeBind1(7,1,1)))}class h extends a.VZT{constructor(n,t,_,i){super(),this.fb=n,this.store=t,this.auth=_,this.confirmDialog=i,this.addressesForm=this.fb.array([]),this.addressPipe=new a.qiL}ngOnInit(){this.store.pipe((0,m.Ys)((0,a.bkt)(this.auth.user.account)),(0,a.sNL)(this)).subscribe(n=>{this.account=n;const t=n.invoiceBillingAddresses||[];this.addressesForm.clear(),t.forEach(_=>{this.addressesForm.push(this.newAddress(_))})})}newAddress(n){const t=(0,a.Kj$)(n);return t.addControl("status",new l.NI(!0)),t.addControl("key",new l.NI(null==n?void 0:n.key)),t.addControl("name",new l.NI(null==n?void 0:n.name,[a.h3m])),t.addControl("vat_tin",new l.NI(null==n?void 0:n.vat_tin)),t}onCreate(){this.addressesForm.push(this.newAddress())}onSave(n){const t=n.getRawValue();this.store.dispatch((0,a.ffB)({addresses:t}))}onRemove(n){this.confirmDialog.confirm({title:"Delete this address?",body:"Are you sure you want to delete this address?"}).subscribe(()=>{this.addressesForm.removeAt(n),this.onSave(this.addressesForm)})}}h.\u0275fac=function(n){return new(n||h)(e.\u0275\u0275directiveInject(l.qu),e.\u0275\u0275directiveInject(m.yh),e.\u0275\u0275directiveInject(v.e8),e.\u0275\u0275directiveInject(a.DNF))},h.\u0275cmp=e.\u0275\u0275defineComponent({type:h,selectors:[["app-billing-addresses"]],features:[e.\u0275\u0275InheritDefinitionFeature],decls:9,vars:3,consts:function(){let o,n,t,_,i,s,C,c,T,A,E,L,D;return o="Invoice Billing Address",n="Save",t="Address",_="Delete this address",i="Billing From",s="Defaults to your account name if left empty",C="VAT / Tax ID",c="Name cannot be spaces alone.",T="Manually create a new billing address.",A="New Billing Address",E="No Billing Addresses Yet",L="Add a billing address to control the name and address shown on your invoices.",D="Add Billing Address",[[1,"d-flex","align-items-center","gap-3"],[1,"text-bold"],o,[1,"flex-fill"],["class","btn btn-secondary-info",3,"disabled","click",4,"ngIf"],[1,"container-box","p-3","mt-3"],[4,"ngIf","ngIfElse"],["noAddresses",""],[1,"btn","btn-secondary-info",3,"disabled","click"],[1,"cs-icon","cs-icon-save"],n,[1,"d-grid","gap-3",2,"grid-template-columns","1fr 1fr"],["class","card p-3",4,"ngFor","ngForOf"],["class","d-flex align-items-start",4,"ngIf"],[1,"card","p-3"],t,["class","btn btn-light-danger","matTooltip",_,3,"click",4,"ngIf"],[1,"mat-block"],["matInput","","placeholder",i,"type","text",3,"formControl"],s,[4,"ngIf"],[3,"form","formEditablePermission"],["matInput","","placeholder",C,"type","text",3,"formControl"],["matTooltip",_,1,"btn","btn-light-danger",3,"click"],[1,"cs-icon","cs-icon-trash"],c,[1,"d-flex","align-items-start"],["matTooltip",T,1,"btn","btn-secondary-primary",3,"click"],[1,"far","fa-plus"],A,["src","/assets/images/empty_icons/invoices.svg","alt",""],[1,"empty-header"],E,L,["class","btn btn-secondary-primary",3,"click",4,"ngIf"],[1,"btn","btn-secondary-primary",3,"click"],D]},template:function(n,t){if(1&n&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1),e.\u0275\u0275i18
1n(2,2),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"div",3),e.\u0275\u0275template(4,we,5,3,"button",4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"div",5),e.\u0275\u0275template(6,qe,5,4,"ng-container",6),e.\u0275\u0275template(7,We,8,3,"ng-template",null,7,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()),2&n){const _=e.\u0275\u0275reference(8);e.\u0275\u0275advance(4),e.\u0275\u0275property("ngIf",t.addressesForm.controls.length),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.addressesForm.controls.length)("ngIfElse",_)}},directives:[f.NgIf,f.NgForOf,X.gM,U.J,$.Nt,l.Fj,l.JJ,l.oH,S.bc,S.YE,O.bx,O.TO,Ye.C,y.W,Ke.T],pipes:[P.T],styles:["[_nghost-%COMP%]{display:block}"]}),(0,d.gn)([(0,a.CIN)(),(0,d.w6)("design:type",Function),(0,d.w6)("design:paramtypes",[l.Oe]),(0,d.w6)("design:returntype",void 0)],h.prototype,"onSave",null);var et=r(10655),H=r(54975),tt=r(95758);let nt=(()=>{class o{constructor(t){this.dialog=t}open(){return this.dialog.open(et.i,{width:"500px",height:"auto",panelClass:["fixed-modal"]})}}return o.\u0275fac=function(t){return new(t||o)(e.\u0275\u0275inject(tt.uw))},o.\u0275prov=e.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac,providedIn:H.y}),o})();var k=r(64316),p=r(67939),ot=r(63955),_t=r(80711),it=r(10486),at=r(51340);const lt=["paginator"];function rt(o,n){1&o&&(e.\u0275\u0275elementStart(0,"mat-header-cell",24),e.\u0275\u0275i18n(1,25),e.\u0275\u0275elementEnd())}function st(o,n){if(1&o&&(e.\u0275\u0275elementStart(0,"mat-cell")(1,"span",26),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"truncate"),e.\u0275\u0275elementEnd()()),2&o){const t=n.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("matTooltip",t.name),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,t.name,35))}}function Ct(o,n){1&o&&(e.\u0275\u0275elementStart(0,"mat-header-cell"),e.\u0275\u0275i18n(1,27),e.\u0275\u0275elementEnd())}function ct(o,n){if(1&o&&(e.\u0275\u0275elementStart(0,"mat-cell")(1,"span",26),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"truncate"),e.\u0275\u0275elementEnd()()),2&o){const t=n.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("matTooltip",t.apikey),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(3,2,t.apikey,15))}}function dt(o,n){1&o&&(e.\u0275\u0275elementStart(0,"mat-header-cell",24),e.\u0275\u0275i18n(1,28),e.\u0275\u0275elementEnd())}function Nt(o,n){if(1&o&&(e.\u0275\u0275elementStart(0,"mat-cell"),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&o){const t=n.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",t.access,"")}}function Tt(o,n){1&o&&(e.\u0275\u0275elementStart(0,"mat-header-cell",24),e.\u0275\u0275i18n(1,29),e.\u0275\u0275elementEnd())}function St(o,n){if(1&o&&(e.\u0275\u0275elementStart(0,"mat-cell")(1,"span",26),e.\u0275\u0275pipe(2,"epoch"),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"epoch"),e.\u0275\u0275elementEnd()()),2&o){const t=n.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("matTooltip",e.\u0275\u0275pipeBind1(2,2,t.created)),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(4,4,t.created,"DD - MMM - YYYY"))}}function At(o,n){if(1&o){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"mat-header-cell")(1,"app-table-column-manager",30),e.\u0275\u0275listener("columnsChanged",function(i){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext().displayedColumns=i}),e.\u0275\u0275elementEnd()()}if(2&o){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("displayedColumns",t.displayedColumns)}}function mt(o,n){if(1&o){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",35),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(2).$implicit;return e.\u0275\u0275nextContext().onRemove(i)}),e.\u0275\u0275element(1,"i",36),e.\u0275\u0275elementEnd()}}function ut(o,n){1&o&&(e.\u0275\u0275elementStart(0,"button",37),e.\u0275\u0275element(1,"i",36),e.\u0275\u0275elementEnd())}function Et(o,n){if(1&o&&(e.\u0275\u0275elementStart(0,"div",32),e.\u0275\u0275template(1,mt,2,0,"button",33),e.\u0275\u0275template(2,ut,2,0,"button",34),e.\u0275\u0275elementEnd()),2&o){const t=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!t.internal),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.internal)}}function ft(o,n){1&o&&(e.\u0275\u0275elementStart(0,"mat-cell"),e.\u0275\u0275template(1,Et,3,2,"div",31),e.\u0275\u0275pipe(2,"isReadonlyRole"),e.\u0275\u0275elementEnd()),2&o&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!e.\u0275\u0275pipeBind1(2,1,1)))}function pt(o,n){1&o&&e.\u0275\u0275element(0,"mat-header-row")}function Ot(o,n){1&o&&e.\u0275\u0275element(0,"mat-row")}const gt=function(){return[5,10,20,50,75,100]};let J=(()=>
1{class o extends a.VZT{constructor(t,_,i){super(),this.store=t,this.confirmDialog=_,this.createApiKeyDialog=i,this.classes="clearfix api-keys",this.displayedColumns=["name","key","access","created","edit"],this.dataSource=new p.by}ngOnInit(){this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.sortData=a.l4y,this.store.pipe((0,m.Ys)(a.k8S),(0,a.sNL)(this)).subscribe(t=>{this.dataSource.data=t})}onSearch(t){this.dataSource.filter=(t+"").trim().toLowerCase()}onCreate(){this.createApiKeyDialog.open()}onRemove(t){this.confirmDialog.confirm({title:"Delete this API Key?",body:"Are you sure you want to delete this API Key?"}).subscribe(()=>{this.store.dispatch((0,a.dfZ)({key:t}))})}}return o.\u0275fac=function(t){return new(t||o)(e.\u0275\u0275directiveInject(m.yh),e.\u0275\u0275directiveInject(a.DNF),e.\u0275\u0275directiveInject(nt))},o.\u0275cmp=e.\u0275\u0275defineComponent({type:o,selectors:[["app-account-api-keys"]],viewQuery:function(t,_){if(1&t&&(e.\u0275\u0275viewQuery(lt,7),e.\u0275\u0275viewQuery(k.YE,7)),2&t){let i;e.\u0275\u0275queryRefresh(i=e.\u0275\u0275loadQuery())&&(_.paginator=i.first),e.\u0275\u0275queryRefresh(i=e.\u0275\u0275loadQuery())&&(_.sort=i.first)}},hostVars:2,hostBindings:function(t,_){2&t&&e.\u0275\u0275classMap(_.classes)},features:[e.\u0275\u0275InheritDefinitionFeature],decls:33,vars:11,consts:function(){let n,t,_,i,s,C,c,T,A;return n="API Keys",t="Manually create a new API Key.",_="Add API Keys",i="NAME",s="KEY",C="A
1CCESS",c="CREATED",T="Delete this key",A="Cannot delete internal API keys",[[1,"d-flex","align-items-center","gap-3"],[1,"text-bold"],n,[1,"flex-fill"],["matTooltip",t,"matTooltipPosition","left",1,"btn","btn-secondary-info","create-btn",3,"disabled","click"],[1,"far","fa-plus"],_,[1,"container-box","mt-3"],[1,"filters-box"],["matTooltip","Search by name, key or access",3,"search"],["matSort","","matSortActive","created","matSortDirection","desc",3,"dataSource"],["table",""],["matColumnDef","name"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","key"],[4,"matHeaderCellDef"],["matColumnDef","access"],["matColumnDef","created"],["matColumnDef","edit"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions","showFirstLastButtons"],["paginator",""],["mat-sort-header",""],i,["matTooltipPosition","above",3,"matTooltip"],s,C,c,["tableId","apikeys",3,"displayedColumns","columnsChanged"],["class","trash-btn-holder",4,"ngIf"],[1,"trash-btn-holder"],["matTooltip",T,"matTooltipPosition","left",3,"click",4,"ngIf"],["matTooltip",A,"matTooltipPosition","above","class","internal",4,"ngIf"],["matTooltip",T,"matTooltipPosition","left",3,"click"],[1,"cs-icon","cs-icon-trash"],["matTooltip",A,"matTooltipPosition","above",1,"internal"]]},template:function(t,_){1&t&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1),e.\u0275\u0275i18n(2,2),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"div",3),e.\u0275\u0275elementStart(4,"button",4),e.\u0275\u0275listener("click",function(){return _.onCreate()}),e.\u0275\u0275pipe(5,"isReadonlyRole"),e.\u0275\u0275element(6,"i",5),e.\u0275\u0275elementContainerStart(7),e.\u0275\u0275i18n(8,6),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(9,"div",7)(10,"div",8)(11,"app-table-search",9),e.\u0275\u0275listener("search",function(s){return _.onSearch(s)}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(12,"mat-table",10,11),e.\u0275\u0275elementContainerStart(14,12),e.\u0275\u0275template(15,rt,2,0,"mat-header-cell",13),e.\u0275\u0275template(16,st,4,5,"mat-cell",14),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementContainerStart(17,15),e.\u0275\u0275template(18,Ct,2,0,"mat-header-cell",16),e.\u0275\u0275template(19,ct,4,5,"mat-cell",14),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementContainerStart(20,17),e.\u0275\u0275template(21,dt,2,0,"mat-header-cell",13),e.\u0275\u0275template(22,Nt,2,1,"mat-cell",14),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementContainerStart(23,18),e.\u0275\u0275template(24,Tt,2,0,"mat-header-cell",13),e.\u0275\u0275template(25,St,5,7,"mat-cell",14),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementContainerStart(26,19),e.\u0275\u0275template(27,At,2,1,"mat-header-cell",16),e.\u0275\u0275template(28,ft,3,3,"mat-cell",14),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275template(29,pt,1,0,"mat-header-row",20),e.\u0275\u0275template(30,Ot,1,0,"mat-row",21),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(31,"mat-paginator2",22,23),e.\u0275\u0275elementEnd()),2&t&&(e.\u0275\u0275advance(4),e.\u0275\u0275property("disabled",e.\u0275\u0275pipeBind1(5,8,1)),e.\u0275\u0275advance(8),e.\u0275\u0275property("dataSource",_.dataSource),e.\u0275\u0275advance(17),e.\u0275\u0275property("matHeaderRowDef",_.displayedColumns),e.\u0275\u0275advance(1),e.\u0275\u0275property("matRowDefColumns",_.displayedColumns),e.\u0275\u0275advance(1),e.\u0275\u0275property("length",null==_.dataSource||null==_.dataSource.data?null:_.dataSource.data.length)("pageSize",10)("pageSizeOptions",e.\u0275\u0275pureFunction0(10,gt))("showFirstLastButtons",!0))},directives:[X.gM,ot.S,p.BZ,k.YE,p.w1,p.fO,p.ge,k.nU,p.Dz,p.ev,_t.J,f.NgIf,p.as,p.XQ,p.nj,p.Gk,it.o],pipes:[P.T,at.W,F.Y],styles:["[_nghost-%COMP%]{display:block}.trash-btn-holder[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{outline:none;border:none;background:transparent}.mat-column-edit[_ngcontent-%COMP%]{flex:0 0 60px;white-space:unset;padding-left:10px}.internal[_ngcontent-%COMP%]{cursor:not-allowed}.internal[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:#a7a7a7!important;cursor:not-allowed!important}"]}),o})();var Q=r(68390);
1class b extends a.VZT{constructor(n,t){super(),this.store=n,this.fb=t,this.mfaDeliveryMethodOptions=a.qZ,this.form=this.fb.group({enable_2fa:[0],mfa_delivery:[a.vK7.Email]})}ngOnInit(){this.store.pipe((0,m.Ys)(a.rYC),(0,V.h)(a.JG8),(0,a.sNL)(this)).subscribe(n=>{this.form.patchValue(n)})}onSave(n){const t=this.form.getRawValue();this.store.dispatch((0,a.qKp)(t))}}function Pt(o,n){1&o&&e.\u0275\u0275element(0,"span",23)}function It(o,n){1&o&&e.\u0275\u0275element(0,"span",24)}function Mt(o,n){1&o&&e.\u0275\u0275element(0,"app-account-security",13)}function Rt(o,n){if(1&o){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",25),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext().onRequestDataDelete()}),e.\u0275\u0275element(1,"i",26),e.\u0275\u0275elementContainerStart(2),e.\u0275\u0275i18n(3,27),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd()}}function ht(o,n){if(1&o){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",28),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext().onCancelRequestDataDelete()}),e.\u0275\u0275element(1,"i",29),e.\u0275\u0275elementContainerStart(2),e.\u0275\u0275i18n(3,30),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd()}}b.\u0275fac=function(n){return new(n||b)(e.\u0275\u0275directiveInject(m.yh),e.\u0275\u0275directiveInject(l.qu))},b.\u0275cmp=e.\u0275\u0275defineComponent({type:b,selectors:[["app-account-security"]],features:[e.\u0275\u0275InheritDefinitionFeature],decls:36,vars:6,consts:function(){let o,n,t,_,i,s,C,c,T;return o="Security",n="Save",t="Multi-Factor Authentication (MFA)",_="Select to disable/enable MFA for users in this account.",i="Disable MFA",s="Enable MFA",C="This is Account level MFA Configuration settings. Even if it is disabled, users can still enable MFA at user level in their account.",c="Multi-Factor Authentication (MFA) adds an extra layer of security to your AdvanceCM account by requiring not only your password but also a second form of verification, such as a code sent to your email, mobile device or generated by an authenticator app.",T="This ensures that even if your password is compromised, unauthorized access is prevented. Administrators can enforce MFA across the entire account, while individual users can choose their preferred method of verification. With MFA enabled, your account is better protected against fraudulent activities, ensuring your data and transactions remain secure.",[[1,"d-flex","align-items-center","gap-3"],[1,"text-bold"],o,[1,"flex-fill"],["type","button",1,"btn","btn-secondary-info","create-btn",3,"disabled","click"],[1,"cs-icon","cs-icon-save"],n,[1,"container-box","mt-3"],[1,"row",3,"formGroup"],[1,"col-md-6"],[1,"card","p-3","my-4","mr-2","ml-4","bg-card"],[1,"mb-3"],[1,"mb-0"],t,[1,"text-light","mb-2"],_,["formControlName","enable_2fa",1,"d-flex","gap-3"],[3,"value"],i,s,[1,"alert","alert-secondary-info","ml-4","mr-2"],[1,"fal","fa-info-circle","alert-icon"],[1,"alert-content"],C,[1,"col-md-6","border-left"],c,T]},template:function(n,t){1&n&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1),e.\u0275\u0275i18n(2,2),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"div",3),e.\u0275\u0275elementStart(4,"button",4),e.\u0275\u0275listener("click",function(){return t.onSave(t.form)}),e.\u0275\u0275pipe(5,"isReadonlyRole"),e.\u0275\u0275element(6,"span",5),e.\u0275\u0275elementContainerStart(7),e.\u0275\u0275i18n(8,6),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(9,"div",7)(10,"div",8)(11,"div",9)(12,"div",10)(13,"div",11)(14,"h6",12),e.\u0275\u0275i18n(15,13),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(16,"div",14),e.\u0275\u0275i18n(17,15),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(18,"mat-radio-group",16)(19,"mat-radio-button",17),e.\u0275\u0275i18n(20,18),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(21,"mat-radio-button",17),e.\u0275\u0275i18n(22,19),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(23,"div",20),e.\u0275\u0275element(24,"i",21),e.\u0275\u0275elementStart(25,"div",22),e.\u0275\u0275elementContainerStart(26),e.\u0275\u0275i18
1n(27,23),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(28,"div",24)(29,"div",10)(30,"p"),e.\u0275\u0275elementContainerStart(31),e.\u0275\u0275i18n(32,25),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(33,"p"),e.\u0275\u0275elementContainerStart(34),e.\u0275\u0275i18n(35,26),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd()()()()()),2&n&&(e.\u0275\u0275advance(4),e.\u0275\u0275property("disabled",e.\u0275\u0275pipeBind1(5,4,1)),e.\u0275\u0275advance(6),e.\u0275\u0275property("formGroup",t.form),e.\u0275\u0275advance(9),e.\u0275\u0275property("value",0),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",1))},directives:[l.JL,l.sg,S.VP,Q.VQ,l.JJ,l.u,S.bc,S.YE,Q.U0],pipes:[P.T],styles:[""]}),(0,d.gn)([(0,a.CIN)(),(0,d.w6)("design:type",Function),(0,d.w6)("design:paramtypes",[l.cw]),(0,d.w6)("design:returntype",void 0)],b.prototype,"onSave",null);let q=(()=>{class o{constructor(t,_,i,s){this.confirm=t,this.store=_,this.auth=i,this.amplitudeService=s,this.account$=this.store.select(a.rYC),this.isRequestingDataDeletion$=this.account$.pipe((0,B.U)(C=>!!C.request_data_deletion))}get isAdmin(){return this.auth.isAdmin()}onRequestDataDelete(){this.amplitudeService.logEvent("accounts-data-deletion-request"),this.confirm.confirm({title:"Request Data Deletion",body:"Are you sure you want to request data deletion?",confirmText:"Request",confirmBtnClass:"btn btn-secondary-danger",cancelBtnClass:"btn btn-secondary-info"}).subscribe(()=>{this.amplitudeService.logEvent("accounts-data-deletion-confirm"),this.store.dispatch((0,a.QI9)({confirm:!0}))})}onCancelRequestDataDelete(){this.amplitudeService.logEvent("accounts-data-deletion-cancel-request"),this.confirm.confirm({title:"Cancel Request Data Deletion",body:"Are you sure you want to cancel the request data deletion?"}).subscribe(()=>{this.amplitudeService.logEvent("accounts-data-deletion-cancel-confirm"),this.store.dispatch((0,a.QI9)({cancel:!0}))})}}return o.\u0275fac=function(t){return new(t||o)(e.\u0275\u0275directiveInject(a.DNF),e.\u0275\u0275directiveInject(m.yh),e.\u0275\u0275directiveInject(v.e8),e.\u0275\u0275directiveInject(Y.Q))},o.\u0275cmp=e.\u0275\u0275defineComponent({type:o,selectors:[["app-accounts"]],decls:33,vars:12,consts:function(){let n,t,_,i,s,C,c;return n="Account Info",t="Manage your company information, location, messaging domain and account-level defaults: check-in/checkout times, booking & invoicing preferences, taxes, invoice billing addresses, API keys & MFA.",_="Save",i="Data Deletion",s=" Request permanent deletion of this account and its data. This action cannot be undone once processed. ",C="Request Data Deletion",c="Cancel Request",[[1,"account-info-page"],[1,"d-flex","ali-items-center","gap-3"],[1,"d-flex","align-items-center","gap-2"],[1,"page-title","mb-0"],n,["articleId","8zzmy861p3","infoTooltip",t],[1,"flex-fill"],[1,"btn","btn-secondary-info",3,"disabled","click"],["class","cs-icon cs-icon-save",4,"ngIf"],["class","fas fa-spinner fa-spin",4,"ngIf"],_,[1,"main-content","mt-3"],["info",""],[1,"d-block","mt-4"],[1,"mt-4"],["class","d-block mt-4",4,"ngIf"],[1,"container-box","p-3","mt-4","d-flex","align-items-center","gap-3"],[1,"text-bold"],i,[1,"text-light","text-sm"],s,["class","btn btn-secondary-danger",3,"click",4,"ngIf"],["class","btn btn-secondary-info",3,"click",4,"ngIf"],[1,"cs-icon","cs-icon-save"],[1,"fas","fa-spinner","fa-spin"],[1,"btn","btn-secondary-danger",3,"click"],[1,"cs-icon","cs-icon-trash"],C,[1,"btn","btn-secondary-info",3,"click"],[1,"cs-icon","cs-icon-times"],c]},template:function(t,_){if(1&t){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"section",0)(1,"div",1)(2,"div",2)(3,"h6",3),e.\u0275\u0275i18n(4,4),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(5,"app-page-help",5),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(6,"div",6),e.\u0275\u0275elementStart(7,"button",7),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(i);const C=e.\u0275\u0275reference(15);return null==C?null:C.save()}),e.\u0275\u0275pipe(8,"isReadonlyRole"),e.\u0275\u0275template(9,Pt,1,0,"span",8),e.\u0275\u0275template(10,It,1,0,"span",9),e.\u0275\u0275elementContainerStart(11),e.\u0275\u0275i18
1n(12,10),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(13,"div",11),e.\u0275\u0275element(14,"app-account-info",null,12)(16,"app-account-check-time",13)(17,"app-account-preferences",13)(18,"app-account-taxes",13)(19,"app-billing-addresses",14)(20,"app-account-api-keys",13),e.\u0275\u0275template(21,Mt,1,0,"app-account-security",15),e.\u0275\u0275elementStart(22,"div",16)(23,"div")(24,"div",17),e.\u0275\u0275i18n(25,18),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(26,"div",19),e.\u0275\u0275i18n(27,20),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(28,"div",6),e.\u0275\u0275template(29,Rt,4,0,"button",21),e.\u0275\u0275pipe(30,"async"),e.\u0275\u0275template(31,ht,4,0,"button",22),e.\u0275\u0275pipe(32,"async"),e.\u0275\u0275elementEnd()()()}if(2&t){const i=e.\u0275\u0275reference(15);e.\u0275\u0275advance(7),e.\u0275\u0275property("disabled",e.\u0275\u0275pipeBind1(8,6,1)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!(null!=i&&i.submitting)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==i?null:i.submitting),e.\u0275\u0275advance(11),e.\u0275\u0275property("ngIf",_.isAdmin),e.\u0275\u0275advance(8),e.\u0275\u0275property("ngIf",!e.\u0275\u0275pipeBind1(30,8,_.isRequestingDataDeletion$)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(32,10,_.isRequestingDataDeletion$))}},directives:[re.G,f.NgIf,g,M,j,R,h,J,b],pipes:[P.T,f.AsyncPipe],styles:[""]}),o})();var bt=r(99552),vt=r(52816),yt=r(56535);const Ut=[{path:"",component:q,canActivate:[a.V8L,a.aXc,yt.J]}];let $t=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)}
1,o.\u0275mod=e.\u0275\u0275defineNgModule({type:o}),o.\u0275inj=e.\u0275\u0275defineInjector({imports:[[vt.Bz.forChild(Ut)]]}),o})();var Lt=r(88936);let Dt=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.\u0275\u0275defineNgModule({type:o}),o.\u0275inj=e.\u0275\u0275defineInjector({imports:[[f.CommonModule,bt.m,H.y,$t,Lt.kzf]]}),o})()}}]);
2//# sourceMappingURL=2769.07544d6b4b7f2450.js.map

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.