@rolatech/angular-account 20.1.6-beta.9 → 20.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/fesm2022/{rolatech-angular-account-address-add.component-B9SKEKyt.mjs → rolatech-angular-account-address-add.component-CbT9H3P_.mjs} +4 -4
  2. package/fesm2022/{rolatech-angular-account-address-add.component-B9SKEKyt.mjs.map → rolatech-angular-account-address-add.component-CbT9H3P_.mjs.map} +1 -1
  3. package/fesm2022/{rolatech-angular-account-address-billing.component-C215WphF.mjs → rolatech-angular-account-address-billing.component-Dhe_S6nC.mjs} +4 -4
  4. package/fesm2022/{rolatech-angular-account-address-billing.component-C215WphF.mjs.map → rolatech-angular-account-address-billing.component-Dhe_S6nC.mjs.map} +1 -1
  5. package/fesm2022/{rolatech-angular-account-address-detail.component-C9Mk-YUq.mjs → rolatech-angular-account-address-detail.component-BOhVYiNE.mjs} +4 -4
  6. package/fesm2022/{rolatech-angular-account-address-detail.component-C9Mk-YUq.mjs.map → rolatech-angular-account-address-detail.component-BOhVYiNE.mjs.map} +1 -1
  7. package/fesm2022/{rolatech-angular-account-address-home.component-43Ji9YSt.mjs → rolatech-angular-account-address-home.component-BSZNuGEJ.mjs} +4 -4
  8. package/fesm2022/{rolatech-angular-account-address-home.component-43Ji9YSt.mjs.map → rolatech-angular-account-address-home.component-BSZNuGEJ.mjs.map} +1 -1
  9. package/fesm2022/rolatech-angular-account-address-shipping.component-LJGkiIt4.mjs +40 -0
  10. package/fesm2022/{rolatech-angular-account-address-shipping.component-Ca7S6fCE.mjs.map → rolatech-angular-account-address-shipping.component-LJGkiIt4.mjs.map} +1 -1
  11. package/fesm2022/{rolatech-angular-account-address-work.component-VqNDFGIN.mjs → rolatech-angular-account-address-work.component-IX2zTWxc.mjs} +4 -4
  12. package/fesm2022/{rolatech-angular-account-address-work.component-VqNDFGIN.mjs.map → rolatech-angular-account-address-work.component-IX2zTWxc.mjs.map} +1 -1
  13. package/fesm2022/{rolatech-angular-account-address.routes-Cu4mkO2W.mjs → rolatech-angular-account-address.routes-fnshCuFj.mjs} +7 -7
  14. package/fesm2022/{rolatech-angular-account-address.routes-Cu4mkO2W.mjs.map → rolatech-angular-account-address.routes-fnshCuFj.mjs.map} +1 -1
  15. package/fesm2022/{rolatech-angular-account-email-verification.component-DxiQzxW3.mjs → rolatech-angular-account-email-verification.component-Bsy6ZdCU.mjs} +4 -4
  16. package/fesm2022/{rolatech-angular-account-email-verification.component-DxiQzxW3.mjs.map → rolatech-angular-account-email-verification.component-Bsy6ZdCU.mjs.map} +1 -1
  17. package/fesm2022/rolatech-angular-account-email.component-cAEhB6ZQ.mjs +44 -0
  18. package/fesm2022/{rolatech-angular-account-email.component-BynqqKKU.mjs.map → rolatech-angular-account-email.component-cAEhB6ZQ.mjs.map} +1 -1
  19. package/fesm2022/{rolatech-angular-account-gender.component-FNEDW0nR.mjs → rolatech-angular-account-gender.component-C-0x9sI0.mjs} +4 -4
  20. package/fesm2022/{rolatech-angular-account-gender.component-FNEDW0nR.mjs.map → rolatech-angular-account-gender.component-C-0x9sI0.mjs.map} +1 -1
  21. package/fesm2022/{rolatech-angular-account-home.component-BpIaDfkX.mjs → rolatech-angular-account-home.component-B1YNtE-j.mjs} +4 -4
  22. package/fesm2022/{rolatech-angular-account-home.component-BpIaDfkX.mjs.map → rolatech-angular-account-home.component-B1YNtE-j.mjs.map} +1 -1
  23. package/fesm2022/{rolatech-angular-account-info.component-CQJCmE6-.mjs → rolatech-angular-account-info.component-1s2Ab1r_.mjs} +7 -7
  24. package/fesm2022/{rolatech-angular-account-info.component-CQJCmE6-.mjs.map → rolatech-angular-account-info.component-1s2Ab1r_.mjs.map} +1 -1
  25. package/fesm2022/{rolatech-angular-account-phone.component-BJNSuDg7.mjs → rolatech-angular-account-phone.component-BCi_YLwF.mjs} +4 -4
  26. package/fesm2022/{rolatech-angular-account-phone.component-BJNSuDg7.mjs.map → rolatech-angular-account-phone.component-BCi_YLwF.mjs.map} +1 -1
  27. package/fesm2022/rolatech-angular-account-profile.component-CWvjxZ94.mjs +43 -0
  28. package/fesm2022/{rolatech-angular-account-profile.component-DnayEoq7.mjs.map → rolatech-angular-account-profile.component-CWvjxZ94.mjs.map} +1 -1
  29. package/fesm2022/{rolatech-angular-account-security.routes-B1JSrouK.mjs → rolatech-angular-account-security.routes-AVoRPb_g.mjs} +10 -10
  30. package/fesm2022/{rolatech-angular-account-security.routes-B1JSrouK.mjs.map → rolatech-angular-account-security.routes-AVoRPb_g.mjs.map} +1 -1
  31. package/fesm2022/rolatech-angular-account-username.component-B2ZnicXO.mjs +42 -0
  32. package/fesm2022/{rolatech-angular-account-username.component-DpNlhAWc.mjs.map → rolatech-angular-account-username.component-B2ZnicXO.mjs.map} +1 -1
  33. package/fesm2022/rolatech-angular-account.mjs +36 -36
  34. package/fesm2022/rolatech-angular-account.mjs.map +1 -1
  35. package/package.json +8 -8
  36. package/fesm2022/rolatech-angular-account-address-shipping.component-Ca7S6fCE.mjs +0 -40
  37. package/fesm2022/rolatech-angular-account-email.component-BynqqKKU.mjs +0 -44
  38. package/fesm2022/rolatech-angular-account-profile.component-DnayEoq7.mjs +0 -43
  39. package/fesm2022/rolatech-angular-account-username.component-DpNlhAWc.mjs +0 -42
  40. /package/{index.d.ts → types/rolatech-angular-account.d.ts} +0 -0
@@ -17,10 +17,10 @@ class AddressAddComponent {
17
17
  next: (res) => { },
18
18
  });
19
19
  }
20
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AddressAddComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
21
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.12", type: AddressAddComponent, isStandalone: true, selector: "rolatech-account-address-add", ngImport: i0, template: "<rolatech-container>\n <rolatech-toolbar title=\"Add address\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <div class=\"mb-3\">\n <p class=\"text-md\" i18n>Manage addresses associated with your Account.</p>\n </div>\n <rolatech-address [(address)]=\"address\"></rolatech-address>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\" i18n>Save</button>\n </div>\n </div>\n</rolatech-container>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: AngularCommonModule }, { kind: "ngmodule", type: AngularComponentsModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: BackButtonDirective, selector: "[rolatechBackButton]" }, { kind: "component", type: ContainerComponent, selector: "rolatech-container" }, { kind: "component", type: ToolbarComponent, selector: "rolatech-toolbar", inputs: ["title", "subtitle", "back", "link", "large", "divider"] }, { kind: "component", type: AddressComponent, selector: "rolatech-address", inputs: ["address"], outputs: ["addressChange", "output"] }] }); }
20
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: AddressAddComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
21
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.0", type: AddressAddComponent, isStandalone: true, selector: "rolatech-account-address-add", ngImport: i0, template: "<rolatech-container>\n <rolatech-toolbar title=\"Add address\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <div class=\"mb-3\">\n <p class=\"text-md\" i18n>Manage addresses associated with your Account.</p>\n </div>\n <rolatech-address [(address)]=\"address\"></rolatech-address>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\" i18n>Save</button>\n </div>\n </div>\n</rolatech-container>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: AngularCommonModule }, { kind: "ngmodule", type: AngularComponentsModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: BackButtonDirective, selector: "[rolatechBackButton]" }, { kind: "component", type: ContainerComponent, selector: "rolatech-container" }, { kind: "component", type: ToolbarComponent, selector: "rolatech-toolbar", inputs: ["title", "subtitle", "back", "link", "large", "divider"] }, { kind: "component", type: AddressComponent, selector: "rolatech-address", inputs: ["address"], outputs: ["addressChange", "output"] }] }); }
22
22
  }
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AddressAddComponent, decorators: [{
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: AddressAddComponent, decorators: [{
24
24
  type: Component,
25
25
  args: [{ selector: 'rolatech-account-address-add', imports: [
26
26
  AngularCommonModule,
@@ -33,4 +33,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImpo
33
33
  }] });
34
34
 
35
35
  export { AddressAddComponent };
36
- //# sourceMappingURL=rolatech-angular-account-address-add.component-B9SKEKyt.mjs.map
36
+ //# sourceMappingURL=rolatech-angular-account-address-add.component-CbT9H3P_.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"rolatech-angular-account-address-add.component-B9SKEKyt.mjs","sources":["../../../../packages/angular-account/src/lib/pages/myaccount/address/address-add/address-add.component.ts","../../../../packages/angular-account/src/lib/pages/myaccount/address/address-add/address-add.component.html"],"sourcesContent":["import { Component, inject, OnInit } from '@angular/core';\nimport { AddressComponent, AuthUserService } from '@rolatech/angular-auth';\nimport { AngularCommonModule } from '@rolatech/angular-common';\nimport { AngularComponentsModule, ContainerComponent, ToolbarComponent } from '@rolatech/angular-components';\nimport { BackButtonDirective } from '@rolatech/angular-services';\n\n@Component({\n selector: 'rolatech-account-address-add',\n imports: [\n AngularCommonModule,\n AngularComponentsModule,\n BackButtonDirective,\n ContainerComponent,\n ToolbarComponent,\n AddressComponent,\n ],\n templateUrl: './address-add.component.html',\n styleUrl: './address-add.component.scss',\n})\nexport class AddressAddComponent implements OnInit {\n authUserService = inject(AuthUserService);\n address: any = { type: 'SHIPPING' };\n\n ngOnInit(): void {}\n\n save() {\n this.authUserService.addAddress(this.address).subscribe({\n next: (res) => {},\n });\n }\n}\n","<rolatech-container>\n <rolatech-toolbar title=\"Add address\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <div class=\"mb-3\">\n <p class=\"text-md\" i18n>Manage addresses associated with your Account.</p>\n </div>\n <rolatech-address [(address)]=\"address\"></rolatech-address>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\" i18n>Save</button>\n </div>\n </div>\n</rolatech-container>\n"],"names":["i1"],"mappings":";;;;;;;;MAmBa,mBAAmB,CAAA;AAbhC,IAAA,WAAA,GAAA;AAcE,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;AACzC,QAAA,IAAA,CAAA,OAAO,GAAQ,EAAE,IAAI,EAAE,UAAU,EAAE;AASpC,IAAA;AAPC,IAAA,QAAQ,KAAU;IAElB,IAAI,GAAA;QACF,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC;AACtD,YAAA,IAAI,EAAE,CAAC,GAAG,OAAM,CAAC;AAClB,SAAA,CAAC;IACJ;+GAVW,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CA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,qBAAA,EAAA,QAAA,EAAA,4kBAAA,EAAA;;;;;"}
1
+ {"version":3,"file":"rolatech-angular-account-address-add.component-CbT9H3P_.mjs","sources":["../../../../packages/angular-account/src/lib/pages/myaccount/address/address-add/address-add.component.ts","../../../../packages/angular-account/src/lib/pages/myaccount/address/address-add/address-add.component.html"],"sourcesContent":["import { Component, inject, OnInit } from '@angular/core';\nimport { AddressComponent, AuthUserService } from '@rolatech/angular-auth';\nimport { AngularCommonModule } from '@rolatech/angular-common';\nimport { AngularComponentsModule, ContainerComponent, ToolbarComponent } from '@rolatech/angular-components';\nimport { BackButtonDirective } from '@rolatech/angular-services';\n\n@Component({\n selector: 'rolatech-account-address-add',\n imports: [\n AngularCommonModule,\n AngularComponentsModule,\n BackButtonDirective,\n ContainerComponent,\n ToolbarComponent,\n AddressComponent,\n ],\n templateUrl: './address-add.component.html',\n styleUrl: './address-add.component.scss',\n})\nexport class AddressAddComponent implements OnInit {\n authUserService = inject(AuthUserService);\n address: any = { type: 'SHIPPING' };\n\n ngOnInit(): void {}\n\n save() {\n this.authUserService.addAddress(this.address).subscribe({\n next: (res) => {},\n });\n }\n}\n","<rolatech-container>\n <rolatech-toolbar title=\"Add address\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <div class=\"mb-3\">\n <p class=\"text-md\" i18n>Manage addresses associated with your Account.</p>\n </div>\n <rolatech-address [(address)]=\"address\"></rolatech-address>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\" i18n>Save</button>\n </div>\n </div>\n</rolatech-container>\n"],"names":["i1"],"mappings":";;;;;;;;MAmBa,mBAAmB,CAAA;AAbhC,IAAA,WAAA,GAAA;AAcE,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;AACzC,QAAA,IAAA,CAAA,OAAO,GAAQ,EAAE,IAAI,EAAE,UAAU,EAAE;AASp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AA,OAAA,EAAA,CAAA,eAAA,EAAA,QAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAKP,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAb/B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,8BAA8B,EAAA,OAAA,EAC/B;wBACP,mBAAmB;wBACnB,uBAAuB;wBACvB,mBAAmB;wBACnB,kBAAkB;wBAClB,gBAAgB;wBAChB,gBAAgB;AACjB,qBAAA,EAAA,QAAA,EAAA,4kBAAA,EAAA;;;;;"}
@@ -16,10 +16,10 @@ class AddressBillingComponent {
16
16
  }
17
17
  find() { }
18
18
  save() { }
19
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AddressBillingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
20
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.12", type: AddressBillingComponent, isStandalone: true, selector: "rolatech-account-address-billing", ngImport: i0, template: "<rolatech-container>\n <rolatech-toolbar title=\"Billing address\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <p class=\"text-md mb-3\" i18n>Manage addresses associated with your Account.</p>\n <rolatech-address [(address)]=\"address\"></rolatech-address>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\" i18n>Save</button>\n </div>\n </div>\n</rolatech-container>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: AngularCommonModule }, { kind: "ngmodule", type: AngularComponentsModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: BackButtonDirective, selector: "[rolatechBackButton]" }, { kind: "component", type: ContainerComponent, selector: "rolatech-container" }, { kind: "component", type: ToolbarComponent, selector: "rolatech-toolbar", inputs: ["title", "subtitle", "back", "link", "large", "divider"] }, { kind: "component", type: AddressComponent, selector: "rolatech-address", inputs: ["address"], outputs: ["addressChange", "output"] }] }); }
19
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: AddressBillingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
20
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.0", type: AddressBillingComponent, isStandalone: true, selector: "rolatech-account-address-billing", ngImport: i0, template: "<rolatech-container>\n <rolatech-toolbar title=\"Billing address\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <p class=\"text-md mb-3\" i18n>Manage addresses associated with your Account.</p>\n <rolatech-address [(address)]=\"address\"></rolatech-address>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\" i18n>Save</button>\n </div>\n </div>\n</rolatech-container>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: AngularCommonModule }, { kind: "ngmodule", type: AngularComponentsModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: BackButtonDirective, selector: "[rolatechBackButton]" }, { kind: "component", type: ContainerComponent, selector: "rolatech-container" }, { kind: "component", type: ToolbarComponent, selector: "rolatech-toolbar", inputs: ["title", "subtitle", "back", "link", "large", "divider"] }, { kind: "component", type: AddressComponent, selector: "rolatech-address", inputs: ["address"], outputs: ["addressChange", "output"] }] }); }
21
21
  }
22
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AddressBillingComponent, decorators: [{
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: AddressBillingComponent, decorators: [{
23
23
  type: Component,
24
24
  args: [{ selector: 'rolatech-account-address-billing', imports: [
25
25
  AngularCommonModule,
@@ -32,4 +32,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImpo
32
32
  }] });
33
33
 
34
34
  export { AddressBillingComponent };
35
- //# sourceMappingURL=rolatech-angular-account-address-billing.component-C215WphF.mjs.map
35
+ //# sourceMappingURL=rolatech-angular-account-address-billing.component-Dhe_S6nC.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"rolatech-angular-account-address-billing.component-C215WphF.mjs","sources":["../../../../packages/angular-account/src/lib/pages/myaccount/address/address-billing/address-billing.component.ts","../../../../packages/angular-account/src/lib/pages/myaccount/address/address-billing/address-billing.component.html"],"sourcesContent":["import { Component, inject, OnInit } from '@angular/core';\nimport { AddressComponent, AuthUserService } from '@rolatech/angular-auth';\nimport { AngularCommonModule } from '@rolatech/angular-common';\nimport { AngularComponentsModule, ContainerComponent, ToolbarComponent } from '@rolatech/angular-components';\nimport { BackButtonDirective } from '@rolatech/angular-services';\n\n@Component({\n selector: 'rolatech-account-address-billing',\n imports: [\n AngularCommonModule,\n AngularComponentsModule,\n BackButtonDirective,\n ContainerComponent,\n ToolbarComponent,\n AddressComponent,\n ],\n templateUrl: './address-billing.component.html',\n styleUrl: './address-billing.component.scss',\n})\nexport class AddressBillingComponent implements OnInit {\n authUserService = inject(AuthUserService);\n address: any = { type: 'BILLING' };\n\n ngOnInit(): void {\n this.find();\n }\n find() {}\n save() {}\n}\n","<rolatech-container>\n <rolatech-toolbar title=\"Billing address\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <p class=\"text-md mb-3\" i18n>Manage addresses associated with your Account.</p>\n <rolatech-address [(address)]=\"address\"></rolatech-address>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\" i18n>Save</button>\n </div>\n </div>\n</rolatech-container>\n"],"names":["i1"],"mappings":";;;;;;;;MAmBa,uBAAuB,CAAA;AAbpC,IAAA,WAAA,GAAA;AAcE,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;AACzC,QAAA,IAAA,CAAA,OAAO,GAAQ,EAAE,IAAI,EAAE,SAAS,EAAE;AAOnC,IAAA;IALC,QAAQ,GAAA;QACN,IAAI,CAAC,IAAI,EAAE;IACb;AACA,IAAA,IAAI,KAAI;AACR,IAAA,IAAI,KAAI;+GARG,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAvB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kCAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECnBpC,6iBAWA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDFI,mBAAmB,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACnB,uBAAuB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAA,EAAA,CAAA,SAAA,EAAA,QAAA,EAAA,iOAAA,EAAA,MAAA,EAAA,CAAA,WAAA,CAAA,EAAA,QAAA,EAAA,CAAA,WAAA,EAAA,WAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACvB,mBAAmB,EAAA,QAAA,EAAA,sBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACnB,kBAAkB,EAAA,QAAA,EAAA,oBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAClB,gBAAgB,gIAChB,gBAAgB,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,EAAA,QAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAKP,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAbnC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kCAAkC,EAAA,OAAA,EACnC;wBACP,mBAAmB;wBACnB,uBAAuB;wBACvB,mBAAmB;wBACnB,kBAAkB;wBAClB,gBAAgB;wBAChB,gBAAgB;AACjB,qBAAA,EAAA,QAAA,EAAA,6iBAAA,EAAA;;;;;"}
1
+ {"version":3,"file":"rolatech-angular-account-address-billing.component-Dhe_S6nC.mjs","sources":["../../../../packages/angular-account/src/lib/pages/myaccount/address/address-billing/address-billing.component.ts","../../../../packages/angular-account/src/lib/pages/myaccount/address/address-billing/address-billing.component.html"],"sourcesContent":["import { Component, inject, OnInit } from '@angular/core';\nimport { AddressComponent, AuthUserService } from '@rolatech/angular-auth';\nimport { AngularCommonModule } from '@rolatech/angular-common';\nimport { AngularComponentsModule, ContainerComponent, ToolbarComponent } from '@rolatech/angular-components';\nimport { BackButtonDirective } from '@rolatech/angular-services';\n\n@Component({\n selector: 'rolatech-account-address-billing',\n imports: [\n AngularCommonModule,\n AngularComponentsModule,\n BackButtonDirective,\n ContainerComponent,\n ToolbarComponent,\n AddressComponent,\n ],\n templateUrl: './address-billing.component.html',\n styleUrl: './address-billing.component.scss',\n})\nexport class AddressBillingComponent implements OnInit {\n authUserService = inject(AuthUserService);\n address: any = { type: 'BILLING' };\n\n ngOnInit(): void {\n this.find();\n }\n find() {}\n save() {}\n}\n","<rolatech-container>\n <rolatech-toolbar title=\"Billing address\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <p class=\"text-md mb-3\" i18n>Manage addresses associated with your Account.</p>\n <rolatech-address [(address)]=\"address\"></rolatech-address>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\" i18n>Save</button>\n </div>\n </div>\n</rolatech-container>\n"],"names":["i1"],"mappings":";;;;;;;;MAmBa,uBAAuB,CAAA;AAbpC,IAAA,WAAA,GAAA;AAcE,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;AACzC,QAAA,IAAA,CAAA,OAAO,GAAQ,EAAE,IAAI,EAAE,SAAS,EAAE;AAOnC,IAAA;IALC,QAAQ,GAAA;QACN,IAAI,CAAC,IAAI,EAAE;IACb;AACA,IAAA,IAAI,KAAI;AACR,IAAA,IAAI,KAAI;8GARG,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAvB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kCAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECnBpC,6iBAWA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDFI,mBAAmB,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACnB,uBAAuB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAA,EAAA,CAAA,SAAA,EAAA,QAAA,EAAA,iOAAA,EAAA,MAAA,EAAA,CAAA,WAAA,CAAA,EAAA,QAAA,EAAA,CAAA,WAAA,EAAA,WAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACvB,mBAAmB,EAAA,QAAA,EAAA,sBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACnB,kBAAkB,EAAA,QAAA,EAAA,oBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAClB,gBAAgB,gIAChB,gBAAgB,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,EAAA,QAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAKP,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAbnC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kCAAkC,EAAA,OAAA,EACnC;wBACP,mBAAmB;wBACnB,uBAAuB;wBACvB,mBAAmB;wBACnB,kBAAkB;wBAClB,gBAAgB;wBAChB,gBAAgB;AACjB,qBAAA,EAAA,QAAA,EAAA,6iBAAA,EAAA;;;;;"}
@@ -53,10 +53,10 @@ class AddressDetailComponent extends BaseComponent {
53
53
  },
54
54
  });
55
55
  }
56
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AddressDetailComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
57
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.12", type: AddressDetailComponent, isStandalone: true, selector: "rolatech-account-address-detail", usesInheritance: true, ngImport: i0, template: "<rolatech-container>\n <rolatech-toolbar title=\"Edit address\" link=\"/personal-info\" divider>\n <button mat-stroked-button (click)=\"delete()\" i18n>Delete</button>\n </rolatech-toolbar>\n <div class=\"py-3\">\n <rolatech-address [(address)]=\"address\"></rolatech-address>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\" i18n>Save</button>\n </div>\n </div>\n</rolatech-container>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: AngularCommonModule }, { kind: "ngmodule", type: AngularComponentsModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: BackButtonDirective, selector: "[rolatechBackButton]" }, { kind: "component", type: ContainerComponent, selector: "rolatech-container" }, { kind: "component", type: ToolbarComponent, selector: "rolatech-toolbar", inputs: ["title", "subtitle", "back", "link", "large", "divider"] }, { kind: "component", type: AddressComponent, selector: "rolatech-address", inputs: ["address"], outputs: ["addressChange", "output"] }] }); }
56
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: AddressDetailComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
57
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.0", type: AddressDetailComponent, isStandalone: true, selector: "rolatech-account-address-detail", usesInheritance: true, ngImport: i0, template: "<rolatech-container>\n <rolatech-toolbar title=\"Edit address\" link=\"/personal-info\" divider>\n <button mat-stroked-button (click)=\"delete()\" i18n>Delete</button>\n </rolatech-toolbar>\n <div class=\"py-3\">\n <rolatech-address [(address)]=\"address\"></rolatech-address>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\" i18n>Save</button>\n </div>\n </div>\n</rolatech-container>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: AngularCommonModule }, { kind: "ngmodule", type: AngularComponentsModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: BackButtonDirective, selector: "[rolatechBackButton]" }, { kind: "component", type: ContainerComponent, selector: "rolatech-container" }, { kind: "component", type: ToolbarComponent, selector: "rolatech-toolbar", inputs: ["title", "subtitle", "back", "link", "large", "divider"] }, { kind: "component", type: AddressComponent, selector: "rolatech-address", inputs: ["address"], outputs: ["addressChange", "output"] }] }); }
58
58
  }
59
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AddressDetailComponent, decorators: [{
59
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: AddressDetailComponent, decorators: [{
60
60
  type: Component,
61
61
  args: [{ selector: 'rolatech-account-address-detail', imports: [
62
62
  AngularCommonModule,
@@ -69,4 +69,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImpo
69
69
  }] });
70
70
 
71
71
  export { AddressDetailComponent };
72
- //# sourceMappingURL=rolatech-angular-account-address-detail.component-C9Mk-YUq.mjs.map
72
+ //# sourceMappingURL=rolatech-angular-account-address-detail.component-BOhVYiNE.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"rolatech-angular-account-address-detail.component-C9Mk-YUq.mjs","sources":["../../../../packages/angular-account/src/lib/pages/myaccount/address/address-detail/address-detail.component.ts","../../../../packages/angular-account/src/lib/pages/myaccount/address/address-detail/address-detail.component.html"],"sourcesContent":["import { Component, inject, OnInit } from '@angular/core';\nimport { AddressComponent, AuthUserService } from '@rolatech/angular-auth';\nimport { AngularCommonModule } from '@rolatech/angular-common';\nimport { AngularComponentsModule, BaseComponent, ContainerComponent, ToolbarComponent } from '@rolatech/angular-components';\nimport { BackButtonDirective } from '@rolatech/angular-services';\n\n@Component({\n selector: 'rolatech-account-address-detail',\n imports: [\n AngularCommonModule,\n AngularComponentsModule,\n BackButtonDirective,\n ContainerComponent,\n ToolbarComponent,\n AddressComponent,\n ],\n templateUrl: './address-detail.component.html',\n styleUrl: './address-detail.component.scss',\n})\nexport class AddressDetailComponent extends BaseComponent implements OnInit {\n authUserService = inject(AuthUserService);\n address: any = {};\n\n ngOnInit(): void {\n this.find();\n }\n find() {\n this.authUserService.getAddress(this.id).subscribe({\n next: (res) => {\n this.address = res.data;\n },\n });\n }\n save() {\n this.authUserService.updateAddress(this.address.id, this.address).subscribe({\n next: (res) => {},\n });\n }\n delete() {\n const options = {\n title: '确认删除吗',\n message: '删除这个地址吗?',\n cancelText: 'Cancel',\n confirmText: '确认',\n };\n this.dialogService.open(options);\n this.dialogService.confirmed().subscribe({\n next: (res) => {\n if (res) {\n const data = {\n name: res,\n };\n this.authUserService.deleteAddressById(this.id).subscribe({\n next: (res) => {\n this.snackBarService.open(res.data);\n },\n error: (error) => {\n this.snackBarService.open(error.message);\n },\n });\n }\n },\n });\n }\n}\n","<rolatech-container>\n <rolatech-toolbar title=\"Edit address\" link=\"/personal-info\" divider>\n <button mat-stroked-button (click)=\"delete()\" i18n>Delete</button>\n </rolatech-toolbar>\n <div class=\"py-3\">\n <rolatech-address [(address)]=\"address\"></rolatech-address>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\" i18n>Save</button>\n </div>\n </div>\n</rolatech-container>\n"],"names":["i1"],"mappings":";;;;;;;;AAmBM,MAAO,sBAAuB,SAAQ,aAAa,CAAA;AAbzD,IAAA,WAAA,GAAA;;AAcE,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;QACzC,IAAA,CAAA,OAAO,GAAQ,EAAE;AA2ClB,IAAA;I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B,EAAA,UAAA,EAAA,CAAA;kBAblC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,iCAAiC,EAAA,OAAA,EAClC;wBACP,mBAAmB;wBACnB,uBAAuB;wBACvB,mBAAmB;wBACnB,kBAAkB;wBAClB,gBAAgB;wBAChB,gBAAgB;AACjB,qBAAA,EAAA,QAAA,EAAA,iiBAAA,EAAA;;;;;"}
1
+ {"version":3,"file":"rolatech-angular-account-address-detail.component-BOhVYiNE.mjs","sources":["../../../../packages/angular-account/src/lib/pages/myaccount/address/address-detail/address-detail.component.ts","../../../../packages/angular-account/src/lib/pages/myaccount/address/address-detail/address-detail.component.html"],"sourcesContent":["import { Component, inject, OnInit } from '@angular/core';\nimport { AddressComponent, AuthUserService } from '@rolatech/angular-auth';\nimport { AngularCommonModule } from '@rolatech/angular-common';\nimport { AngularComponentsModule, BaseComponent, ContainerComponent, ToolbarComponent } from '@rolatech/angular-components';\nimport { BackButtonDirective } from '@rolatech/angular-services';\n\n@Component({\n selector: 'rolatech-account-address-detail',\n imports: [\n AngularCommonModule,\n AngularComponentsModule,\n BackButtonDirective,\n ContainerComponent,\n ToolbarComponent,\n AddressComponent,\n ],\n templateUrl: './address-detail.component.html',\n styleUrl: './address-detail.component.scss',\n})\nexport class AddressDetailComponent extends BaseComponent implements OnInit {\n authUserService = inject(AuthUserService);\n address: any = {};\n\n ngOnInit(): void {\n this.find();\n }\n find() {\n this.authUserService.getAddress(this.id).subscribe({\n next: (res) => {\n this.address = res.data;\n },\n });\n }\n save() {\n this.authUserService.updateAddress(this.address.id, this.address).subscribe({\n next: (res) => {},\n });\n }\n delete() {\n const options = {\n title: '确认删除吗',\n message: '删除这个地址吗?',\n cancelText: 'Cancel',\n confirmText: '确认',\n };\n this.dialogService.open(options);\n this.dialogService.confirmed().subscribe({\n next: (res) => {\n if (res) {\n const data = {\n name: res,\n };\n this.authUserService.deleteAddressById(this.id).subscribe({\n next: (res) => {\n this.snackBarService.open(res.data);\n },\n error: (error) => {\n this.snackBarService.open(error.message);\n },\n });\n }\n },\n });\n }\n}\n","<rolatech-container>\n <rolatech-toolbar title=\"Edit address\" link=\"/personal-info\" divider>\n <button mat-stroked-button (click)=\"delete()\" i18n>Delete</button>\n </rolatech-toolbar>\n <div class=\"py-3\">\n <rolatech-address [(address)]=\"address\"></rolatech-address>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\" i18n>Save</button>\n </div>\n </div>\n</rolatech-container>\n"],"names":["i1"],"mappings":";;;;;;;;AAmBM,MAAO,sBAAuB,SAAQ,aAAa,CAAA;AAbzD,IAAA,WAAA,GAAA;;AAcE,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;QACzC,IAAA,CAAA,OAAO,GAAQ,EAAE;AA2ClB,IAAA;IAzCC,QAAQ,GAAA;QACN,IAAI,CAAC,IAAI,EAAE;IACb;IACA,IAAI,GAAA;QACF,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC;AACjD,YAAA,IAAI,EAAE,CAAC,GAAG,KAAI;AACZ,gBAAA,IAAI,CAAC,OAAO,GAAG,GAAG,CAAC,IAAI;YACzB,CAAC;AACF,SAAA,CAAC;IACJ;IACA,IAAI,GAAA;AACF,QAAA,IAAI,CAAC,eAAe,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC;AAC1E,YAAA,IAAI,EAAE,CAAC,GAAG,OAAM,CAAC;AAClB,SAAA,CAAC;IACJ;IACA,MAAM,GAAA;AACJ,QAAA,MAAM,OAAO,GAAG;AACd,YAAA,KAAK,EAAE,OAAO;AACd,YAAA,OAAO,EAAE,UAAU;AACnB,YAAA,UAAU,EAAE,QAAQ;AACpB,YAAA,WAAW,EAAE,IAAI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EAAA,WAAA,EAAA,IAAA,EAAAA,EAAA,CAAA,SAAA,EAAA,QAAA,EAAA,iOAAA,EAAA,MAAA,EAAA,CAAA,WAAA,CAAA,EAAA,QAAA,EAAA,CAAA,WAAA,EAAA,WAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACvB,mBAAmB,EAAA,QAAA,EAAA,sBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACnB,kBAAkB,EAAA,QAAA,EAAA,oBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAClB,gBAAgB,gIAChB,gBAAgB,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,EAAA,QAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAKP,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAblC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,iCAAiC,EAAA,OAAA,EAClC;wBACP,mBAAmB;wBACnB,uBAAuB;wBACvB,mBAAmB;wBACnB,kBAAkB;wBAClB,gBAAgB;wBAChB,gBAAgB;AACjB,qBAAA,EAAA,QAAA,EAAA,iiBAAA,EAAA;;;;;"}
@@ -36,10 +36,10 @@ class AddressHomeComponent {
36
36
  });
37
37
  }
38
38
  }
39
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AddressHomeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
40
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.12", type: AddressHomeComponent, isStandalone: true, selector: "rolatech-account-address-home", ngImport: i0, template: "<rolatech-container>\n <rolatech-toolbar title=\"Home\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <p class=\"text-md mb-3\" i18n>Manage addresses associated with your Account.</p>\n <rolatech-address [(address)]=\"address\"></rolatech-address>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\" i18n>Cancel</button>\n </div>\n </div>\n</rolatech-container>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: AngularCommonModule }, { kind: "ngmodule", type: AngularComponentsModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: BackButtonDirective, selector: "[rolatechBackButton]" }, { kind: "component", type: ContainerComponent, selector: "rolatech-container" }, { kind: "component", type: ToolbarComponent, selector: "rolatech-toolbar", inputs: ["title", "subtitle", "back", "link", "large", "divider"] }, { kind: "component", type: AddressComponent, selector: "rolatech-address", inputs: ["address"], outputs: ["addressChange", "output"] }] }); }
39
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: AddressHomeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
40
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.0", type: AddressHomeComponent, isStandalone: true, selector: "rolatech-account-address-home", ngImport: i0, template: "<rolatech-container>\n <rolatech-toolbar title=\"Home\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <p class=\"text-md mb-3\" i18n>Manage addresses associated with your Account.</p>\n <rolatech-address [(address)]=\"address\"></rolatech-address>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\" i18n>Cancel</button>\n </div>\n </div>\n</rolatech-container>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: AngularCommonModule }, { kind: "ngmodule", type: AngularComponentsModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: BackButtonDirective, selector: "[rolatechBackButton]" }, { kind: "component", type: ContainerComponent, selector: "rolatech-container" }, { kind: "component", type: ToolbarComponent, selector: "rolatech-toolbar", inputs: ["title", "subtitle", "back", "link", "large", "divider"] }, { kind: "component", type: AddressComponent, selector: "rolatech-address", inputs: ["address"], outputs: ["addressChange", "output"] }] }); }
41
41
  }
42
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AddressHomeComponent, decorators: [{
42
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: AddressHomeComponent, decorators: [{
43
43
  type: Component,
44
44
  args: [{ selector: 'rolatech-account-address-home', imports: [
45
45
  AngularCommonModule,
@@ -52,4 +52,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImpo
52
52
  }] });
53
53
 
54
54
  export { AddressHomeComponent };
55
- //# sourceMappingURL=rolatech-angular-account-address-home.component-43Ji9YSt.mjs.map
55
+ //# sourceMappingURL=rolatech-angular-account-address-home.component-BSZNuGEJ.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"rolatech-angular-account-address-home.component-43Ji9YSt.mjs","sources":["../../../../packages/angular-account/src/lib/pages/myaccount/address/address-home/address-home.component.ts","../../../../packages/angular-account/src/lib/pages/myaccount/address/address-home/address-home.component.html"],"sourcesContent":["import { Component, inject, OnInit } from '@angular/core';\nimport { AddressComponent, AuthUserService } from '@rolatech/angular-auth';\nimport { AngularCommonModule } from '@rolatech/angular-common';\nimport { AngularComponentsModule, ContainerComponent, ToolbarComponent } from '@rolatech/angular-components';\nimport { BackButtonDirective } from '@rolatech/angular-services';\n\n@Component({\n selector: 'rolatech-account-address-home',\n imports: [\n AngularCommonModule,\n AngularComponentsModule,\n BackButtonDirective,\n ContainerComponent,\n ToolbarComponent,\n AddressComponent,\n ],\n templateUrl: './address-home.component.html',\n styleUrl: './address-home.component.scss',\n})\nexport class AddressHomeComponent implements OnInit {\n authUserService = inject(AuthUserService);\n address: any = { type: 'HOME' };\n\n ngOnInit(): void {\n this.find();\n }\n find() {\n const options = {\n filter: 'type:HOME',\n };\n this.authUserService.findAllAddress(options).subscribe({\n next: (res) => {\n this.address = res.data[0];\n },\n });\n }\n save() {\n if (this.address.id) {\n this.authUserService.updateAddress(this.address.id, this.address).subscribe({\n next: (res) => {},\n });\n } else {\n this.authUserService.addAddress(this.address).subscribe({\n next: (res) => {},\n });\n }\n }\n}\n","<rolatech-container>\n <rolatech-toolbar title=\"Home\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <p class=\"text-md mb-3\" i18n>Manage addresses associated with your Account.</p>\n <rolatech-address [(address)]=\"address\"></rolatech-address>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\" i18n>Cancel</button>\n </div>\n </div>\n</rolatech-container>\n"],"names":["i1"],"mappings":";;;;;;;;MAmBa,oBAAoB,CAAA;AAbjC,IAAA,WAAA,GAAA;AAcE,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;AACzC,QAAA,IAAA,CAAA,OAAO,GAAQ,EAAE,IAAI,EAAE,MAAM,EAAE;AA0BhC,IAAA;IAxBC,QAAQ,GAAA;QACN,IAAI,CAAC,IAAI,EAAE;IACb;IACA,IAAI,GAAA;AACF,QAAA,MAAM,OAAO,GAAG;AACd,YAAA,MAAM,EAAE,WAAW;SACpB;QACD,IAAI,CAAC,eAAe,CAAC,cAAc,CAAC,OAAO,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AAA,MAAA,EAAA,CAAA,WAAA,CAAA,EAAA,QAAA,EAAA,CAAA,WAAA,EAAA,WAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACvB,mBAAmB,EAAA,QAAA,EAAA,sBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACnB,kBAAkB,EAAA,QAAA,EAAA,oBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAClB,gBAAgB,gIAChB,gBAAgB,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,EAAA,QAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAKP,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAbhC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,+BAA+B,EAAA,OAAA,EAChC;wBACP,mBAAmB;wBACnB,uBAAuB;wBACvB,mBAAmB;wBACnB,kBAAkB;wBAClB,gBAAgB;wBAChB,gBAAgB;AACjB,qBAAA,EAAA,QAAA,EAAA,oiBAAA,EAAA;;;;;"}
1
+ {"version":3,"file":"rolatech-angular-account-address-home.component-BSZNuGEJ.mjs","sources":["../../../../packages/angular-account/src/lib/pages/myaccount/address/address-home/address-home.component.ts","../../../../packages/angular-account/src/lib/pages/myaccount/address/address-home/address-home.component.html"],"sourcesContent":["import { Component, inject, OnInit } from '@angular/core';\nimport { AddressComponent, AuthUserService } from '@rolatech/angular-auth';\nimport { AngularCommonModule } from '@rolatech/angular-common';\nimport { AngularComponentsModule, ContainerComponent, ToolbarComponent } from '@rolatech/angular-components';\nimport { BackButtonDirective } from '@rolatech/angular-services';\n\n@Component({\n selector: 'rolatech-account-address-home',\n imports: [\n AngularCommonModule,\n AngularComponentsModule,\n BackButtonDirective,\n ContainerComponent,\n ToolbarComponent,\n AddressComponent,\n ],\n templateUrl: './address-home.component.html',\n styleUrl: './address-home.component.scss',\n})\nexport class AddressHomeComponent implements OnInit {\n authUserService = inject(AuthUserService);\n address: any = { type: 'HOME' };\n\n ngOnInit(): void {\n this.find();\n }\n find() {\n const options = {\n filter: 'type:HOME',\n };\n this.authUserService.findAllAddress(options).subscribe({\n next: (res) => {\n this.address = res.data[0];\n },\n });\n }\n save() {\n if (this.address.id) {\n this.authUserService.updateAddress(this.address.id, this.address).subscribe({\n next: (res) => {},\n });\n } else {\n this.authUserService.addAddress(this.address).subscribe({\n next: (res) => {},\n });\n }\n }\n}\n","<rolatech-container>\n <rolatech-toolbar title=\"Home\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <p class=\"text-md mb-3\" i18n>Manage addresses associated with your Account.</p>\n <rolatech-address [(address)]=\"address\"></rolatech-address>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\" i18n>Cancel</button>\n </div>\n </div>\n</rolatech-container>\n"],"names":["i1"],"mappings":";;;;;;;;MAmBa,oBAAoB,CAAA;AAbjC,IAAA,WAAA,GAAA;AAcE,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;AACzC,QAAA,IAAA,CAAA,OAAO,GAAQ,EAAE,IAAI,EAAE,MAAM,EAAE;AA0BhC,IAAA;IAxBC,QAAQ,GAAA;QACN,IAAI,CAAC,IAAI,EAAE;IACb;IACA,IAAI,GAAA;AACF,QAAA,MAAM,OAAO,GAAG;AACd,YAAA,MAAM,EAAE,WAAW;SACpB;QACD,IAAI,CAAC,eAAe,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC;AACrD,YAAA,IAAI,EAAE,CAAC,GAAG,KAAI;gBACZ,IAAI,CAAC,OAAO,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;YAC5B,CAAC;AACF,SAAA,CAAC;IACJ;IACA,IA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EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACnB,kBAAkB,EAAA,QAAA,EAAA,oBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAClB,gBAAgB,gIAChB,gBAAgB,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,EAAA,QAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAKP,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAbhC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,+BAA+B,EAAA,OAAA,EAChC;wBACP,mBAAmB;wBACnB,uBAAuB;wBACvB,mBAAmB;wBACnB,kBAAkB;wBAClB,gBAAgB;wBAChB,gBAAgB;AACjB,qBAAA,EAAA,QAAA,EAAA,oiBAAA,EAAA;;;;;"}
@@ -0,0 +1,40 @@
1
+ import * as i0 from '@angular/core';
2
+ import { inject, Component } from '@angular/core';
3
+ import { AuthUserService } from '@rolatech/angular-auth';
4
+ import { AngularCommonModule, AddressFormatPipe } from '@rolatech/angular-common';
5
+ import { AngularComponentsModule, ContainerComponent, ToolbarComponent } from '@rolatech/angular-components';
6
+ import * as i1 from '@angular/router';
7
+ import * as i2 from '@angular/material/button';
8
+ import * as i2$1 from '@angular/material/divider';
9
+ import * as i3 from '@angular/material/icon';
10
+ import * as i4 from '@angular/material/list';
11
+
12
+ class AddressShippingComponent {
13
+ constructor() {
14
+ this.authUserService = inject(AuthUserService);
15
+ this.addresses = [];
16
+ }
17
+ ngOnInit() {
18
+ this.find();
19
+ }
20
+ find() {
21
+ const options = {
22
+ filter: 'type:SHIPPING',
23
+ };
24
+ this.authUserService.findAllAddress(options).subscribe({
25
+ next: (res) => {
26
+ this.addresses = res.data;
27
+ },
28
+ });
29
+ }
30
+ save() { }
31
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: AddressShippingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
32
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.0", type: AddressShippingComponent, isStandalone: true, selector: "rolatech-account-address-shipping", ngImport: i0, template: "<rolatech-container>\n <rolatech-toolbar title=\"Shipping address\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <button mat-stroked-button routerLink=\"../add\">\n <mat-icon>add</mat-icon>\n <span i18n>Add Address</span>\n </button>\n <mat-nav-list>\n @for (item of addresses; track $index) {\n <mat-list-item [routerLink]=\"['../', item.id]\">\n <div class=\"flex items-center justify-between\">\n <div class=\"flex flex-1 items-center\">\n <span>{{ item | address }}</span>\n </div>\n <!-- <mat-icon mat-list-icon>arrow_drop_down</mat-icon> -->\n <span>\n <mat-icon> navigate_next </mat-icon>\n </span>\n </div>\n </mat-list-item>\n <mat-divider></mat-divider>\n }\n </mat-nav-list>\n </div>\n</rolatech-container>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: AngularCommonModule }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: AngularComponentsModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2$1.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i4.MatNavList, selector: "mat-nav-list", exportAs: ["matNavList"] }, { kind: "component", type: i4.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "component", type: ContainerComponent, selector: "rolatech-container" }, { kind: "component", type: ToolbarComponent, selector: "rolatech-toolbar", inputs: ["title", "subtitle", "back", "link", "large", "divider"] }, { kind: "pipe", type: AddressFormatPipe, name: "address" }] }); }
33
+ }
34
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: AddressShippingComponent, decorators: [{
35
+ type: Component,
36
+ args: [{ selector: 'rolatech-account-address-shipping', imports: [AngularCommonModule, AngularComponentsModule, ContainerComponent, ToolbarComponent, AddressFormatPipe], template: "<rolatech-container>\n <rolatech-toolbar title=\"Shipping address\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <button mat-stroked-button routerLink=\"../add\">\n <mat-icon>add</mat-icon>\n <span i18n>Add Address</span>\n </button>\n <mat-nav-list>\n @for (item of addresses; track $index) {\n <mat-list-item [routerLink]=\"['../', item.id]\">\n <div class=\"flex items-center justify-between\">\n <div class=\"flex flex-1 items-center\">\n <span>{{ item | address }}</span>\n </div>\n <!-- <mat-icon mat-list-icon>arrow_drop_down</mat-icon> -->\n <span>\n <mat-icon> navigate_next </mat-icon>\n </span>\n </div>\n </mat-list-item>\n <mat-divider></mat-divider>\n }\n </mat-nav-list>\n </div>\n</rolatech-container>\n" }]
37
+ }] });
38
+
39
+ export { AddressShippingComponent };
40
+ //# sourceMappingURL=rolatech-angular-account-address-shipping.component-LJGkiIt4.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"rolatech-angular-account-address-shipping.component-Ca7S6fCE.mjs","sources":["../../../../packages/angular-account/src/lib/pages/myaccount/address/address-shipping/address-shipping.component.ts","../../../../packages/angular-account/src/lib/pages/myaccount/address/address-shipping/address-shipping.component.html"],"sourcesContent":["import { Component, inject, OnInit } from '@angular/core';\nimport { AuthUserService } from '@rolatech/angular-auth';\nimport { AddressFormatPipe, AngularCommonModule } from '@rolatech/angular-common';\nimport { AngularComponentsModule, ContainerComponent, ToolbarComponent } from '@rolatech/angular-components';\n\n@Component({\n selector: 'rolatech-account-address-shipping',\n imports: [AngularCommonModule, AngularComponentsModule, ContainerComponent, ToolbarComponent, AddressFormatPipe],\n templateUrl: './address-shipping.component.html',\n styleUrl: './address-shipping.component.scss',\n})\nexport class AddressShippingComponent implements OnInit {\n authUserService = inject(AuthUserService);\n addresses: any = [];\n\n ngOnInit(): void {\n this.find();\n }\n find() {\n const options = {\n filter: 'type:SHIPPING',\n };\n this.authUserService.findAllAddress(options).subscribe({\n next: (res) => {\n this.addresses = res.data;\n },\n });\n }\n save() {}\n}\n","<rolatech-container>\n <rolatech-toolbar title=\"Shipping address\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <button mat-stroked-button routerLink=\"../add\">\n <mat-icon>add</mat-icon>\n <span i18n>Add Address</span>\n </button>\n <mat-nav-list>\n @for (item of addresses; track $index) {\n <mat-list-item [routerLink]=\"['../', item.id]\">\n <div class=\"flex items-center justify-between\">\n <div class=\"flex flex-1 items-center\">\n <span>{{ item | address }}</span>\n </div>\n <!-- <mat-icon mat-list-icon>arrow_drop_down</mat-icon> -->\n <span>\n <mat-icon> navigate_next </mat-icon>\n </span>\n </div>\n </mat-list-item>\n <mat-divider></mat-divider>\n }\n </mat-nav-list>\n </div>\n</rolatech-container>\n"],"names":["i3","i4","i5"],"mappings":";;;;;;;;;;;MAWa,wBAAwB,CAAA;AANrC,IAAA,WAAA,GAAA;AAOE,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;QACzC,IAAA,CAAA,SAAS,GAAQ,EAAE;AAgBpB,IAAA;IAdC,QAAQ,GAAA;QACN,IAAI,CAAC,IAAI,EAAE;IACb;IACA,IAAI,GAAA;AACF,QAAA,MAAM,OAAO,GAAG;AACd,YAAA,MAAM,EAAE,eAAe;SACxB;QACD,IAAI,CAAC,eAAe,CAAC,cAAc,C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AA,CAAA,OAAA,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,SAAA,EAAA,SAAA,EAAA,UAAA,CAAA,EAAA,QAAA,EAAA,CAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAC,EAAA,CAAA,UAAA,EAAA,QAAA,EAAA,cAAA,EAAA,QAAA,EAAA,CAAA,YAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAA,EAAA,CAAA,WAAA,EAAA,QAAA,EAAA,wDAAA,EAAA,MAAA,EAAA,CAAA,WAAA,CAAA,EAAA,QAAA,EAAA,CAAA,aAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,kBAAkB,EAAA,QAAA,EAAA,oBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,gBAAgB,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,UAAA,EAAA,MAAA,EAAA,MAAA,EAAA,OAAA,EAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAE,iBAAiB,EAAA,IAAA,EAAA,SAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAIpG,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBANpC,SAAS;+BACE,mCAAmC,EAAA,OAAA,EACpC,CAAC,mBAAmB,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,iBAAiB,CAAC,EAAA,QAAA,EAAA,44BAAA,EAAA;;;;;"}
1
+ {"version":3,"file":"rolatech-angular-account-address-shipping.component-LJGkiIt4.mjs","sources":["../../../../packages/angular-account/src/lib/pages/myaccount/address/address-shipping/address-shipping.component.ts","../../../../packages/angular-account/src/lib/pages/myaccount/address/address-shipping/address-shipping.component.html"],"sourcesContent":["import { Component, inject, OnInit } from '@angular/core';\nimport { AuthUserService } from '@rolatech/angular-auth';\nimport { AddressFormatPipe, AngularCommonModule } from '@rolatech/angular-common';\nimport { AngularComponentsModule, ContainerComponent, ToolbarComponent } from '@rolatech/angular-components';\n\n@Component({\n selector: 'rolatech-account-address-shipping',\n imports: [AngularCommonModule, AngularComponentsModule, ContainerComponent, ToolbarComponent, AddressFormatPipe],\n templateUrl: './address-shipping.component.html',\n styleUrl: './address-shipping.component.scss',\n})\nexport class AddressShippingComponent implements OnInit {\n authUserService = inject(AuthUserService);\n addresses: any = [];\n\n ngOnInit(): void {\n this.find();\n }\n find() {\n const options = {\n filter: 'type:SHIPPING',\n };\n this.authUserService.findAllAddress(options).subscribe({\n next: (res) => {\n this.addresses = res.data;\n },\n });\n }\n save() {}\n}\n","<rolatech-container>\n <rolatech-toolbar title=\"Shipping address\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <button mat-stroked-button routerLink=\"../add\">\n <mat-icon>add</mat-icon>\n <span i18n>Add Address</span>\n </button>\n <mat-nav-list>\n @for (item of addresses; track $index) {\n <mat-list-item [routerLink]=\"['../', item.id]\">\n <div class=\"flex items-center justify-between\">\n <div class=\"flex flex-1 items-center\">\n <span>{{ item | address }}</span>\n </div>\n <!-- <mat-icon mat-list-icon>arrow_drop_down</mat-icon> -->\n <span>\n <mat-icon> navigate_next </mat-icon>\n </span>\n </div>\n </mat-list-item>\n <mat-divider></mat-divider>\n }\n </mat-nav-list>\n </div>\n</rolatech-container>\n"],"names":["i3","i4","i5"],"mappings":";;;;;;;;;;;MAWa,wBAAwB,CAAA;AANrC,IAAA,WAAA,GAAA;AAOE,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;QACzC,IAAA,CAAA,SAAS,GAAQ,EAAE;AAgBpB,IAAA;IAdC,QAAQ,GAAA;QACN,IAAI,CAAC,IAAI,EAAE;IACb;IACA,IAAI,GAAA;AACF,QAAA,MAAM,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ngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AddressWorkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
20
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.12", type: AddressWorkComponent, isStandalone: true, selector: "rolatech-account-address-work", ngImport: i0, template: "<rolatech-container>\n <rolatech-toolbar title=\"Work address\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <p class=\"text-md mb-3\" i18n>Manage addresses associated with your Account.</p>\n <rolatech-address [(address)]=\"address\"></rolatech-address>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\" i18n>Save</button>\n </div>\n </div>\n</rolatech-container>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: AngularCommonModule }, { kind: "ngmodule", type: AngularComponentsModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: BackButtonDirective, selector: "[rolatechBackButton]" }, { kind: "component", type: ContainerComponent, selector: "rolatech-container" }, { kind: "component", type: ToolbarComponent, selector: "rolatech-toolbar", inputs: ["title", "subtitle", "back", "link", "large", "divider"] }, { kind: "component", type: AddressComponent, selector: "rolatech-address", inputs: ["address"], outputs: ["addressChange", "output"] }] }); }
19
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: AddressWorkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
20
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.0", type: AddressWorkComponent, isStandalone: true, selector: "rolatech-account-address-work", ngImport: i0, template: "<rolatech-container>\n <rolatech-toolbar title=\"Work address\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <p class=\"text-md mb-3\" i18n>Manage addresses associated with your Account.</p>\n <rolatech-address [(address)]=\"address\"></rolatech-address>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\" i18n>Save</button>\n </div>\n </div>\n</rolatech-container>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: AngularCommonModule }, { kind: "ngmodule", type: AngularComponentsModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: BackButtonDirective, selector: "[rolatechBackButton]" }, { kind: "component", type: ContainerComponent, selector: "rolatech-container" }, { kind: "component", type: ToolbarComponent, selector: "rolatech-toolbar", inputs: ["title", "subtitle", "back", "link", "large", "divider"] }, { kind: "component", type: AddressComponent, selector: "rolatech-address", inputs: ["address"], outputs: ["addressChange", "output"] }] }); }
21
21
  }
22
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AddressWorkComponent, decorators: [{
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: AddressWorkComponent, decorators: [{
23
23
  type: Component,
24
24
  args: [{ selector: 'rolatech-account-address-work', imports: [
25
25
  AngularCommonModule,
@@ -32,4 +32,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImpo
32
32
  }] });
33
33
 
34
34
  export { AddressWorkComponent };
35
- //# sourceMappingURL=rolatech-angular-account-address-work.component-VqNDFGIN.mjs.map
35
+ //# sourceMappingURL=rolatech-angular-account-address-work.component-IX2zTWxc.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"rolatech-angular-account-address-work.component-VqNDFGIN.mjs","sources":["../../../../packages/angular-account/src/lib/pages/myaccount/address/address-work/address-work.component.ts","../../../../packages/angular-account/src/lib/pages/myaccount/address/address-work/address-work.component.html"],"sourcesContent":["import { Component, inject, OnInit } from '@angular/core';\nimport { AddressComponent, AuthUserService } from '@rolatech/angular-auth';\nimport { AngularCommonModule } from '@rolatech/angular-common';\nimport { AngularComponentsModule, ContainerComponent, ToolbarComponent } from '@rolatech/angular-components';\nimport { BackButtonDirective } from '@rolatech/angular-services';\n\n@Component({\n selector: 'rolatech-account-address-work',\n imports: [\n AngularCommonModule,\n AngularComponentsModule,\n BackButtonDirective,\n ContainerComponent,\n ToolbarComponent,\n AddressComponent,\n ],\n templateUrl: './address-work.component.html',\n styleUrl: './address-work.component.scss',\n})\nexport class AddressWorkComponent implements OnInit {\n authUserService = inject(AuthUserService);\n address: any = { type: 'WORK' };\n ngOnInit(): void {\n this.find();\n }\n find() {}\n save() {}\n}\n","<rolatech-container>\n <rolatech-toolbar title=\"Work address\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <p class=\"text-md mb-3\" i18n>Manage addresses associated with your Account.</p>\n <rolatech-address [(address)]=\"address\"></rolatech-address>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\" i18n>Save</button>\n </div>\n </div>\n</rolatech-container>\n"],"names":["i1"],"mappings":";;;;;;;;MAmBa,oBAAoB,CAAA;AAbjC,IAAA,WAAA,GAAA;AAcE,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;AACzC,QAAA,IAAA,CAAA,OAAO,GAAQ,EAAE,IAAI,EAAE,MAAM,EAAE;AAMhC,IAAA;IALC,QAAQ,GAAA;QACN,IAAI,CAAC,IAAI,EAAE;IACb;AACA,IAAA,IAAI,KAAI;AAC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AAA,OAAA,EAChC;wBACP,mBAAmB;wBACnB,uBAAuB;wBACvB,mBAAmB;wBACnB,kBAAkB;wBAClB,gBAAgB;wBAChB,gBAAgB;AACjB,qBAAA,EAAA,QAAA,EAAA,0iBAAA,EAAA;;;;;"}
1
+ {"version":3,"file":"rolatech-angular-account-address-work.component-IX2zTWxc.mjs","sources":["../../../../packages/angular-account/src/lib/pages/myaccount/address/address-work/address-work.component.ts","../../../../packages/angular-account/src/lib/pages/myaccount/address/address-work/address-work.component.html"],"sourcesContent":["import { Component, inject, OnInit } from '@angular/core';\nimport { AddressComponent, AuthUserService } from '@rolatech/angular-auth';\nimport { AngularCommonModule } from '@rolatech/angular-common';\nimport { AngularComponentsModule, ContainerComponent, ToolbarComponent } from '@rolatech/angular-components';\nimport { BackButtonDirective } from '@rolatech/angular-services';\n\n@Component({\n selector: 'rolatech-account-address-work',\n imports: [\n AngularCommonModule,\n AngularComponentsModule,\n BackButtonDirective,\n ContainerComponent,\n ToolbarComponent,\n AddressComponent,\n ],\n templateUrl: './address-work.component.html',\n styleUrl: './address-work.component.scss',\n})\nexport class AddressWorkComponent implements OnInit {\n authUserService = inject(AuthUserService);\n address: any = { type: 'WORK' };\n ngOnInit(): void {\n this.find();\n }\n find() {}\n save() {}\n}\n","<rolatech-container>\n <rolatech-toolbar title=\"Work address\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <p class=\"text-md mb-3\" i18n>Manage addresses associated with your Account.</p>\n <rolatech-address [(address)]=\"address\"></rolatech-address>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\" i18n>Save</button>\n </div>\n </div>\n</rolatech-container>\n"],"names":["i1"],"mappings":";;;;;;;;MAmBa,oBAAoB,CAAA;AAbjC,IAAA,WAAA,GAAA;AAcE,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;AACzC,QAAA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AAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAKP,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAbhC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,+BAA+B,EAAA,OAAA,EAChC;wBACP,mBAAmB;wBACnB,uBAAuB;wBACvB,mBAAmB;wBACnB,kBAAkB;wBAClB,gBAAgB;wBAChB,gBAAgB;AACjB,qBAAA,EAAA,QAAA,EAAA,0iBAAA,EAAA;;;;;"}
@@ -1,29 +1,29 @@
1
1
  const addressRoutes = [
2
2
  {
3
3
  path: 'home',
4
- loadComponent: () => import('./rolatech-angular-account-address-home.component-43Ji9YSt.mjs').then((c) => c.AddressHomeComponent),
4
+ loadComponent: () => import('./rolatech-angular-account-address-home.component-BSZNuGEJ.mjs').then((c) => c.AddressHomeComponent),
5
5
  },
6
6
  {
7
7
  path: 'work',
8
- loadComponent: () => import('./rolatech-angular-account-address-work.component-VqNDFGIN.mjs').then((c) => c.AddressWorkComponent),
8
+ loadComponent: () => import('./rolatech-angular-account-address-work.component-IX2zTWxc.mjs').then((c) => c.AddressWorkComponent),
9
9
  },
10
10
  {
11
11
  path: 'billing',
12
- loadComponent: () => import('./rolatech-angular-account-address-billing.component-C215WphF.mjs').then((c) => c.AddressBillingComponent),
12
+ loadComponent: () => import('./rolatech-angular-account-address-billing.component-Dhe_S6nC.mjs').then((c) => c.AddressBillingComponent),
13
13
  },
14
14
  {
15
15
  path: 'shipping',
16
- loadComponent: () => import('./rolatech-angular-account-address-shipping.component-Ca7S6fCE.mjs').then((c) => c.AddressShippingComponent),
16
+ loadComponent: () => import('./rolatech-angular-account-address-shipping.component-LJGkiIt4.mjs').then((c) => c.AddressShippingComponent),
17
17
  },
18
18
  {
19
19
  path: 'add',
20
- loadComponent: () => import('./rolatech-angular-account-address-add.component-B9SKEKyt.mjs').then((c) => c.AddressAddComponent),
20
+ loadComponent: () => import('./rolatech-angular-account-address-add.component-CbT9H3P_.mjs').then((c) => c.AddressAddComponent),
21
21
  },
22
22
  {
23
23
  path: ':id',
24
- loadComponent: () => import('./rolatech-angular-account-address-detail.component-C9Mk-YUq.mjs').then((c) => c.AddressDetailComponent),
24
+ loadComponent: () => import('./rolatech-angular-account-address-detail.component-BOhVYiNE.mjs').then((c) => c.AddressDetailComponent),
25
25
  },
26
26
  ];
27
27
 
28
28
  export { addressRoutes };
29
- //# sourceMappingURL=rolatech-angular-account-address.routes-Cu4mkO2W.mjs.map
29
+ //# sourceMappingURL=rolatech-angular-account-address.routes-fnshCuFj.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"rolatech-angular-account-address.routes-Cu4mkO2W.mjs","sources":["../../../../packages/angular-account/src/lib/pages/myaccount/address/address.routes.ts"],"sourcesContent":["import { Route } from '@angular/router';\n\nexport const addressRoutes: Route[] = [\n {\n path: 'home',\n loadComponent: () => import('./address-home/address-home.component').then((c) => c.AddressHomeComponent),\n },\n {\n path: 'work',\n loadComponent: () => import('./address-work/address-work.component').then((c) => c.AddressWorkComponent),\n },\n {\n path: 'billing',\n loadComponent: () => import('./address-billing/address-billing.component').then((c) => c.AddressBillingComponent),\n },\n {\n path: 'shipping',\n loadComponent: () => import('./address-shipping/address-shipping.component').then((c) => c.AddressShippingComponent),\n },\n {\n path: 'add',\n loadComponent: () => import('./address-add/address-add.component').then((c) => c.AddressAddComponent),\n },\n {\n path: ':id',\n loadComponent: () => import('./address-detail/address-detail.component').then((c) => c.AddressDetailComponent),\n },\n];\n"],"names":[],"mappings":"AAEO,MAAM,aAAa,GAAY;AACpC,IAAA;AACE,QAAA,IAAI,EAAE,MAAM;AACZ,QAAA,aAAa,EAAE,MAAM,OAAO,gEAAuC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,oBAAoB,CAAC;AACzG,KAAA;AACD,IAAA;AACE,QAAA,IAAI,EAAE,MAAM;AACZ,QAAA,aAAa,EAAE,MAAM,OAAO,gEAAuC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,oBAAoB,CAAC;AACzG,KAAA;AACD,IAAA;AACE,QAAA,IAAI,EAAE,SAAS;AACf,QAAA,aAAa,EAAE,MAAM,OAAO,mEAA6C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,uBAAuB,CAAC;AAClH,KAAA;AACD,IAAA;AACE,QAAA,IAAI,EAAE,UAAU;AAChB,QAAA,aAAa,EAAE,MAAM,OAAO,oEAA+C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,wBAAwB,CAAC;AACrH,KAAA;AACD,IAAA;AACE,QAAA,IAAI,EAAE,KAAK;AACX,QAAA,aAAa,EAAE,MAAM,OAAO,+DAAqC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,mBAAmB,CAAC;AACtG,KAAA;AACD,IAAA;AACE,QAAA,IAAI,EAAE,KAAK;AACX,QAAA,aAAa,EAAE,MAAM,OAAO,kEAA2C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,sBAAsB,CAAC;AAC/G,KAAA;;;;;"}
1
+ {"version":3,"file":"rolatech-angular-account-address.routes-fnshCuFj.mjs","sources":["../../../../packages/angular-account/src/lib/pages/myaccount/address/address.routes.ts"],"sourcesContent":["import { Route } from '@angular/router';\n\nexport const addressRoutes: Route[] = [\n {\n path: 'home',\n loadComponent: () => import('./address-home/address-home.component').then((c) => c.AddressHomeComponent),\n },\n {\n path: 'work',\n loadComponent: () => import('./address-work/address-work.component').then((c) => c.AddressWorkComponent),\n },\n {\n path: 'billing',\n loadComponent: () => import('./address-billing/address-billing.component').then((c) => c.AddressBillingComponent),\n },\n {\n path: 'shipping',\n loadComponent: () => import('./address-shipping/address-shipping.component').then((c) => c.AddressShippingComponent),\n },\n {\n path: 'add',\n loadComponent: () => import('./address-add/address-add.component').then((c) => c.AddressAddComponent),\n },\n {\n path: ':id',\n loadComponent: () => import('./address-detail/address-detail.component').then((c) => c.AddressDetailComponent),\n },\n];\n"],"names":[],"mappings":"AAEO,MAAM,aAAa,GAAY;AACpC,IAAA;AACE,QAAA,IAAI,EAAE,MAAM;AACZ,QAAA,aAAa,EAAE,MAAM,OAAO,gEAAuC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,oBAAoB,CAAC;AACzG,KAAA;AACD,IAAA;AACE,QAAA,IAAI,EAAE,MAAM;AACZ,QAAA,aAAa,EAAE,MAAM,OAAO,gEAAuC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,oBAAoB,CAAC;AACzG,KAAA;AACD,IAAA;AACE,QAAA,IAAI,EAAE,SAAS;AACf,QAAA,aAAa,EAAE,MAAM,OAAO,mEAA6C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,uBAAuB,CAAC;AAClH,KAAA;AACD,IAAA;AACE,QAAA,IAAI,EAAE,UAAU;AAChB,QAAA,aAAa,EAAE,MAAM,OAAO,oEAA+C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,wBAAwB,CAAC;AACrH,KAAA;AACD,IAAA;AACE,QAAA,IAAI,EAAE,KAAK;AACX,QAAA,aAAa,EAAE,MAAM,OAAO,+DAAqC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,mBAAmB,CAAC;AACtG,KAAA;AACD,IAAA;AACE,QAAA,IAAI,EAAE,KAAK;AACX,QAAA,aAAa,EAAE,MAAM,OAAO,kEAA2C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,sBAAsB,CAAC;AAC/G,KAAA;;;;;"}
@@ -17,13 +17,13 @@ class EmailVerificationComponent extends BaseComponent {
17
17
  this.dialogService.open(options);
18
18
  this.dialogService.confirmed().subscribe((confirmed) => { });
19
19
  }
20
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: EmailVerificationComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
21
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.12", type: EmailVerificationComponent, isStandalone: true, selector: "rolatech-account-email-verification", usesInheritance: true, ngImport: i0, template: "<div class=\"p-3\">Email verification</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: AngularCommonModule }, { kind: "ngmodule", type: AngularComponentsModule }] }); }
20
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: EmailVerificationComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
21
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.0", type: EmailVerificationComponent, isStandalone: true, selector: "rolatech-account-email-verification", usesInheritance: true, ngImport: i0, template: "<div class=\"p-3\">Email verification</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: AngularCommonModule }, { kind: "ngmodule", type: AngularComponentsModule }] }); }
22
22
  }
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: EmailVerificationComponent, decorators: [{
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: EmailVerificationComponent, decorators: [{
24
24
  type: Component,
25
25
  args: [{ imports: [AngularCommonModule, AngularComponentsModule], selector: 'rolatech-account-email-verification', template: "<div class=\"p-3\">Email verification</div>\n" }]
26
26
  }] });
27
27
 
28
28
  export { EmailVerificationComponent };
29
- //# sourceMappingURL=rolatech-angular-account-email-verification.component-DxiQzxW3.mjs.map
29
+ //# sourceMappingURL=rolatech-angular-account-email-verification.component-Bsy6ZdCU.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"rolatech-angular-account-email-verification.component-DxiQzxW3.mjs","sources":["../../../../packages/angular-account/src/lib/pages/myaccount/email-verification/email-verification.component.ts","../../../../packages/angular-account/src/lib/pages/myaccount/email-verification/email-verification.component.html"],"sourcesContent":["import { Component, inject, OnInit } from '@angular/core';\nimport { AngularCommonModule } from '@rolatech/angular-common';\nimport { AngularComponentsModule, BaseComponent } from '@rolatech/angular-components';\n\n@Component({\n imports: [AngularCommonModule, AngularComponentsModule],\n selector: 'rolatech-account-email-verification',\n templateUrl: './email-verification.component.html',\n styleUrls: ['./email-verification.component.scss'],\n})\nexport class EmailVerificationComponent extends BaseComponent implements OnInit {\n ngOnInit(): void {\n this.show();\n }\n show() {\n const options = {\n title: '确认删除吗',\n message: 'CONFIRM.DOWNLOAD.JOB.MESSAGE',\n cancelText: 'Cancel',\n confirmText: '确认',\n };\n this.dialogService.open(options);\n this.dialogService.confirmed().subscribe((confirmed) => {});\n }\n}\n","<div class=\"p-3\">Email verification</div>\n"],"names":[],"mappings":";;;;;AAUM,MAAO,0BAA2B,SAAQ,aAAa,CAAA;IAC3D,QAAQ,GAAA;QACN,IAAI,CAAC,IAAI,EAAE;IACb;IACA,IAAI,GAAA;AACF,QAAA,MAAM,OAAO,GAAG;AACd,YAAA,KAAK,EAAE,OAAO;AACd,YAAA,OAAO,EAAE,8BAA8B;AACvC,YAAA,UAAU,EAAE,QAAQ;AACpB,YAAA,WAAW,EAAE,IAAI;SAClB;AACD,QAAA,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC;AAChC,QAAA,IAAI,CAAC,aAAa,CAAC,SAAS,EAAE,CAAC,SAAS,CAAC,CAAC,SAAS,KAAI,EAAE,CAAC,CAAC;IAC7D;+GAbW,0BAA0B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA1B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,0BAA0B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qCAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECVvC,+CACA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDIY,mBAAmB,8BAAE,uBAAuB,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAK3C,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBANtC,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAC,mBAAmB,EAAE,uBAAuB,CAAC,YAC7C,qCAAqC,EAAA,QAAA,EAAA,+CAAA,EAAA;;;;;"}
1
+ {"version":3,"file":"rolatech-angular-account-email-verification.component-Bsy6ZdCU.mjs","sources":["../../../../packages/angular-account/src/lib/pages/myaccount/email-verification/email-verification.component.ts","../../../../packages/angular-account/src/lib/pages/myaccount/email-verification/email-verification.component.html"],"sourcesContent":["import { Component, inject, OnInit } from '@angular/core';\nimport { AngularCommonModule } from '@rolatech/angular-common';\nimport { AngularComponentsModule, BaseComponent } from '@rolatech/angular-components';\n\n@Component({\n imports: [AngularCommonModule, AngularComponentsModule],\n selector: 'rolatech-account-email-verification',\n templateUrl: './email-verification.component.html',\n styleUrls: ['./email-verification.component.scss'],\n})\nexport class EmailVerificationComponent extends BaseComponent implements OnInit {\n ngOnInit(): void {\n this.show();\n }\n show() {\n const options = {\n title: '确认删除吗',\n message: 'CONFIRM.DOWNLOAD.JOB.MESSAGE',\n cancelText: 'Cancel',\n confirmText: '确认',\n };\n this.dialogService.open(options);\n this.dialogService.confirmed().subscribe((confirmed) => {});\n }\n}\n","<div class=\"p-3\">Email verification</div>\n"],"names":[],"mappings":";;;;;AAUM,MAAO,0BAA2B,SAAQ,aAAa,CAAA;IAC3D,QAAQ,GAAA;QACN,IAAI,CAAC,IAAI,EAAE;IACb;IACA,IAAI,GAAA;AACF,QAAA,MAAM,OAAO,GAAG;AACd,YAAA,KAAK,EAAE,OAAO;AACd,YAAA,OAAO,EAAE,8BAA8B;AACvC,YAAA,UAAU,EAAE,QAAQ;AACpB,YAAA,WAAW,EAAE,IAAI;SAClB;AACD,QAAA,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC;AAChC,QAAA,IAAI,CAAC,aAAa,CAAC,SAAS,EAAE,CAAC,SAAS,CAAC,CAAC,SAAS,KAAI,EAAE,CAAC,CAAC;IAC7D;8GAbW,0BAA0B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA1B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,0BAA0B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qCAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECVvC,+CACA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDIY,mBAAmB,8BAAE,uBAAuB,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAK3C,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBANtC,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAC,mBAAmB,EAAE,uBAAuB,CAAC,YAC7C,qCAAqC,EAAA,QAAA,EAAA,+CAAA,EAAA;;;;;"}
@@ -0,0 +1,44 @@
1
+ import * as i0 from '@angular/core';
2
+ import { inject, effect, Component } from '@angular/core';
3
+ import { AuthUserService, AuthStore } from '@rolatech/angular-auth';
4
+ import { AngularCommonModule } from '@rolatech/angular-common';
5
+ import { BaseComponent, AngularComponentsModule, ContainerComponent, ToolbarComponent } from '@rolatech/angular-components';
6
+ import { BackButtonDirective } from '@rolatech/angular-services';
7
+ import * as i1 from '@angular/forms';
8
+ import * as i2 from '@angular/material/button';
9
+ import * as i3 from '@angular/material/form-field';
10
+ import * as i4 from '@angular/material/input';
11
+
12
+ class EmailComponent extends BaseComponent {
13
+ constructor() {
14
+ super();
15
+ this.authUserService = inject(AuthUserService);
16
+ this.authStore = inject(AuthStore);
17
+ this.user = this.authStore.user;
18
+ this.email = '';
19
+ effect(() => {
20
+ this.email = this.user()?.email;
21
+ });
22
+ }
23
+ ngOnInit() { }
24
+ save() {
25
+ this.authUserService.update({ email: this.email }).subscribe({
26
+ next: (res) => {
27
+ this.snackBarService.open('Update successfully');
28
+ this.authStore.updateEmail(this.email);
29
+ },
30
+ error: (error) => {
31
+ this.snackBarService.open(error.message);
32
+ },
33
+ });
34
+ }
35
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: EmailComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
36
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.0", type: EmailComponent, isStandalone: true, selector: "rolatech-account-email", usesInheritance: true, ngImport: i0, template: "<rolatech-container>\n <rolatech-toolbar title=\"Update email\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <p class=\"text-md\" i18n>You can get more information about our services by email</p>\n <div class=\"flex flex-col mt-6\">\n <mat-form-field appearance=\"fill\">\n <input matInput [(ngModel)]=\"email\" />\n </mat-form-field>\n </div>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\" i18n>Save</button>\n </div>\n </div>\n</rolatech-container>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: AngularCommonModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AngularComponentsModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "directive", type: BackButtonDirective, selector: "[rolatechBackButton]" }, { kind: "component", type: ContainerComponent, selector: "rolatech-container" }, { kind: "component", type: ToolbarComponent, selector: "rolatech-toolbar", inputs: ["title", "subtitle", "back", "link", "large", "divider"] }] }); }
37
+ }
38
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: EmailComponent, decorators: [{
39
+ type: Component,
40
+ args: [{ imports: [AngularCommonModule, AngularComponentsModule, BackButtonDirective, ContainerComponent, ToolbarComponent], selector: 'rolatech-account-email', template: "<rolatech-container>\n <rolatech-toolbar title=\"Update email\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <p class=\"text-md\" i18n>You can get more information about our services by email</p>\n <div class=\"flex flex-col mt-6\">\n <mat-form-field appearance=\"fill\">\n <input matInput [(ngModel)]=\"email\" />\n </mat-form-field>\n </div>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\" i18n>Save</button>\n </div>\n </div>\n</rolatech-container>\n" }]
41
+ }], ctorParameters: () => [] });
42
+
43
+ export { EmailComponent };
44
+ //# sourceMappingURL=rolatech-angular-account-email.component-cAEhB6ZQ.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"rolatech-angular-account-email.component-BynqqKKU.mjs","sources":["../../../../packages/angular-account/src/lib/pages/myaccount/email/email.component.ts","../../../../packages/angular-account/src/lib/pages/myaccount/email/email.component.html"],"sourcesContent":["import { Component, OnInit, PLATFORM_ID, computed, effect, inject, model, signal } from '@angular/core';\nimport { AuthService, AuthStore, AuthUserService } from '@rolatech/angular-auth';\nimport { AngularCommonModule } from '@rolatech/angular-common';\nimport { AngularComponentsModule, ContainerComponent, BaseComponent, ToolbarComponent } from '@rolatech/angular-components';\nimport { BackButtonDirective } from '@rolatech/angular-services';\n\n@Component({\n imports: [AngularCommonModule, AngularComponentsModule, BackButtonDirective, ContainerComponent, ToolbarComponent],\n selector: 'rolatech-account-email',\n templateUrl: './email.component.html',\n styleUrls: ['./email.component.scss'],\n})\nexport class EmailComponent extends BaseComponent implements OnInit {\n authUserService = inject(AuthUserService);\n authStore = inject(AuthStore);\n protected user = this.authStore.user;\n email: string | undefined = '';\n constructor() {\n super();\n effect(() => {\n this.email = this.user()?.email;\n });\n }\n ngOnInit(): void {}\n\n save() {\n this.authUserService.update({ email: this.email }).subscribe({\n next: (res) => {\n this.snackBarService.open('Update successfully');\n this.authStore.updateEmail(this.email!);\n },\n error: (error) => {\n this.snackBarService.open(error.message);\n },\n });\n }\n}\n","<rolatech-container>\n <rolatech-toolbar title=\"Update email\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <p class=\"text-md\" i18n>You can get more information about our services by email</p>\n <div class=\"flex flex-col mt-6\">\n <mat-form-field appearance=\"fill\">\n <input matInput [(ngModel)]=\"email\" />\n </mat-form-field>\n </div>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\" i18n>Save</button>\n </div>\n </div>\n</rolatech-container>\n"],"names":[],"mappings":";;;;;;;;;;;AAYM,MAAO,cAAe,SAAQ,aAAa,CAAA;AAK/C,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;AALT,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;AACzC,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;AACnB,QAAA,IAAA,CAAA,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI;QACpC,IAAA,CAAA,KAAK,GAAuB,EAAE;QAG5B,MAAM,CAAC,MAAK;YACV,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,EAAE,EAAE,KAAK;AACjC,QAAA,CAAC,CAAC;IACJ;AACA,IAAA,QAAQ,KAAU;IAElB,IAAI,GAAA;AACF,QAAA,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,SAAS,CAAC;AAC3D,YAAA,IAAI,EAAE,CAAC,GAAG,KAAI;AACZ,gBAAA,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,qBAAqB,CAAC;gBAChD,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,KAAM,CAAC;YACzC,CAAC;AACD,YAAA,KAAK,EAAE,CAAC,KAAK,KAAI;gBACf,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC;YAC1C,CAAC;AACF,SAAA,CAAC;IACJ;+GAvBW,cAAc,EAAA,IAAA,EAAA,EAAA,EA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A,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,QAAA,EAAA,QAAA,EAAA,yHAAA,EAAA,MAAA,EAAA,CAAA,UAAA,EAAA,IAAA,EAAA,aAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,mBAAA,EAAA,kBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,qBAAA,CAAA,EAAA,QAAA,EAAA,CAAA,UAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,mBAAmB,EAAA,QAAA,EAAA,sBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,kBAAkB,EAAA,QAAA,EAAA,oBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,gBAAgB,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,UAAA,EAAA,MAAA,EAAA,MAAA,EAAA,OAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAKtG,cAAc,EAAA,UAAA,EAAA,CAAA;kBAN1B,SAAS;8BACC,CAAC,mBAAmB,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,gBAAgB,CAAC,EAAA,QAAA,EACxG,wBAAwB,EAAA,QAAA,EAAA,upBAAA,EAAA;;;;;"}
1
+ {"version":3,"file":"rolatech-angular-account-email.component-cAEhB6ZQ.mjs","sources":["../../../../packages/angular-account/src/lib/pages/myaccount/email/email.component.ts","../../../../packages/angular-account/src/lib/pages/myaccount/email/email.component.html"],"sourcesContent":["import { Component, OnInit, PLATFORM_ID, computed, effect, inject, model, signal } from '@angular/core';\nimport { AuthService, AuthStore, AuthUserService } from '@rolatech/angular-auth';\nimport { AngularCommonModule } from '@rolatech/angular-common';\nimport { AngularComponentsModule, ContainerComponent, BaseComponent, ToolbarComponent } from '@rolatech/angular-components';\nimport { BackButtonDirective } from '@rolatech/angular-services';\n\n@Component({\n imports: [AngularCommonModule, AngularComponentsModule, BackButtonDirective, ContainerComponent, ToolbarComponent],\n selector: 'rolatech-account-email',\n templateUrl: './email.component.html',\n styleUrls: ['./email.component.scss'],\n})\nexport class EmailComponent extends BaseComponent implements OnInit {\n authUserService = inject(AuthUserService);\n authStore = inject(AuthStore);\n protected user = this.authStore.user;\n email: string | undefined = '';\n constructor() {\n super();\n effect(() => {\n this.email = this.user()?.email;\n });\n }\n ngOnInit(): void {}\n\n save() {\n this.authUserService.update({ email: this.email }).subscribe({\n next: (res) => {\n this.snackBarService.open('Update successfully');\n this.authStore.updateEmail(this.email!);\n },\n error: (error) => {\n this.snackBarService.open(error.message);\n },\n });\n }\n}\n","<rolatech-container>\n <rolatech-toolbar title=\"Update email\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <p class=\"text-md\" i18n>You can get more information about our services by email</p>\n <div class=\"flex flex-col mt-6\">\n <mat-form-field appearance=\"fill\">\n <input matInput [(ngModel)]=\"email\" />\n </mat-form-field>\n </div>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 ml-3\" (click)=\"save()\" i18n>Save</button>\n </div>\n </div>\n</rolatech-container>\n"],"names":[],"mappings":";;;;;;;;;;;AAYM,MAAO,cAAe,SAAQ,aAAa,CAAA;AAK/C,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;AALT,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;AACzC,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;AACnB,QAAA,IAAA,CAAA,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI;QACpC,IAAA,CAAA,KAAK,GAAuB,EAAE;QAG5B,MAAM,CAAC,MAAK;YACV,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,EAAE,EAAE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AAA,CAAA;;2FAKtG,cAAc,EAAA,UAAA,EAAA,CAAA;kBAN1B,SAAS;8BACC,CAAC,mBAAmB,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,gBAAgB,CAAC,EAAA,QAAA,EACxG,wBAAwB,EAAA,QAAA,EAAA,upBAAA,EAAA;;;;;"}
@@ -35,10 +35,10 @@ class GenderComponent extends BaseComponent {
35
35
  },
36
36
  });
37
37
  }
38
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: GenderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
39
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.12", type: GenderComponent, isStandalone: true, selector: "rolatech-account-gender", usesInheritance: true, ngImport: i0, template: "<rolatech-container>\n <rolatech-toolbar title=\"Gender\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <span class=\"px-2\" i18n>Your gender may be used for personalizations, including how we refer to you.</span>\n <mat-radio-group class=\"flex flex-col\" [(ngModel)]=\"selectedGender\">\n @for (gender of GENDERS; track gender) {\n <mat-radio-button [value]=\"gender\">{{ gender }}</mat-radio-button>\n }\n </mat-radio-group>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 p-2 ml-3\" (click)=\"save()\" i18n>Save</button>\n </div>\n </div>\n</rolatech-container>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: AngularCommonModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AngularComponentsModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: i3.MatRadioGroup, selector: "mat-radio-group", inputs: ["color", "name", "labelPosition", "value", "selected", "disabled", "required", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioGroup"] }, { kind: "component", type: i3.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "ngmodule", type: MatRadioModule }, { kind: "directive", type: BackButtonDirective, selector: "[rolatechBackButton]" }, { kind: "component", type: ContainerComponent, selector: "rolatech-container" }, { kind: "component", type: ToolbarComponent, selector: "rolatech-toolbar", inputs: ["title", "subtitle", "back", "link", "large", "divider"] }, { kind: "ngmodule", type: MatButtonModule }] }); }
38
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: GenderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
39
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.0", type: GenderComponent, isStandalone: true, selector: "rolatech-account-gender", usesInheritance: true, ngImport: i0, template: "<rolatech-container>\n <rolatech-toolbar title=\"Gender\" link=\"/personal-info\" divider></rolatech-toolbar>\n <div class=\"py-3\">\n <span class=\"px-2\" i18n>Your gender may be used for personalizations, including how we refer to you.</span>\n <mat-radio-group class=\"flex flex-col\" [(ngModel)]=\"selectedGender\">\n @for (gender of GENDERS; track gender) {\n <mat-radio-button [value]=\"gender\">{{ gender }}</mat-radio-button>\n }\n </mat-radio-group>\n <div class=\"flex justify-end items-center mt-3\">\n <button mat-button rolatechBackButton i18n>Cancel</button>\n <button mat-flat-button class=\"w-20 p-2 ml-3\" (click)=\"save()\" i18n>Save</button>\n </div>\n </div>\n</rolatech-container>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: AngularCommonModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AngularComponentsModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: i3.MatRadioGroup, selector: "mat-radio-group", inputs: ["color", "name", "labelPosition", "value", "selected", "disabled", "required", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioGroup"] }, { kind: "component", type: i3.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "ngmodule", type: MatRadioModule }, { kind: "directive", type: BackButtonDirective, selector: "[rolatechBackButton]" }, { kind: "component", type: ContainerComponent, selector: "rolatech-container" }, { kind: "component", type: ToolbarComponent, selector: "rolatech-toolbar", inputs: ["title", "subtitle", "back", "link", "large", "divider"] }, { kind: "ngmodule", type: MatButtonModule }] }); }
40
40
  }
41
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: GenderComponent, decorators: [{
41
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: GenderComponent, decorators: [{
42
42
  type: Component,
43
43
  args: [{ imports: [
44
44
  AngularCommonModule,
@@ -52,4 +52,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImpo
52
52
  }], ctorParameters: () => [] });
53
53
 
54
54
  export { GenderComponent };
55
- //# sourceMappingURL=rolatech-angular-account-gender.component-FNEDW0nR.mjs.map
55
+ //# sourceMappingURL=rolatech-angular-account-gender.component-C-0x9sI0.mjs.map