@isaiahiroko/tilmart-ngx-apps-buyer 0.2.15 → 0.2.17

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 (64) hide show
  1. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-account.module-k8cM5aPL.mjs → isaiahiroko-tilmart-ngx-apps-buyer-account.module-BC4Hmgp5.mjs} +27 -69
  2. package/fesm2022/isaiahiroko-tilmart-ngx-apps-buyer-account.module-BC4Hmgp5.mjs.map +1 -0
  3. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-brand.module-VHeeOcee.mjs → isaiahiroko-tilmart-ngx-apps-buyer-brand.module-C_X_hP11.mjs} +4 -4
  4. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-brand.module-VHeeOcee.mjs.map → isaiahiroko-tilmart-ngx-apps-buyer-brand.module-C_X_hP11.mjs.map} +1 -1
  5. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-calculator.module-CTyA_L2L.mjs → isaiahiroko-tilmart-ngx-apps-buyer-calculator.module-gHA68KzT.mjs} +5 -5
  6. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-calculator.module-CTyA_L2L.mjs.map → isaiahiroko-tilmart-ngx-apps-buyer-calculator.module-gHA68KzT.mjs.map} +1 -1
  7. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-cart-add.service-i0yyMvg3.mjs → isaiahiroko-tilmart-ngx-apps-buyer-cart-add.service-BqvxqrPG.mjs} +2 -2
  8. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-cart-add.service-i0yyMvg3.mjs.map → isaiahiroko-tilmart-ngx-apps-buyer-cart-add.service-BqvxqrPG.mjs.map} +1 -1
  9. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-cart-sync.service-D5g8irSs.mjs → isaiahiroko-tilmart-ngx-apps-buyer-cart-sync.service-Cwl64mfr.mjs} +2 -2
  10. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-cart-sync.service-D5g8irSs.mjs.map → isaiahiroko-tilmart-ngx-apps-buyer-cart-sync.service-Cwl64mfr.mjs.map} +1 -1
  11. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-cart.module-Dgu95D1F.mjs → isaiahiroko-tilmart-ngx-apps-buyer-cart.module-D3XhJV_W.mjs} +5 -5
  12. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-cart.module-Dgu95D1F.mjs.map → isaiahiroko-tilmart-ngx-apps-buyer-cart.module-D3XhJV_W.mjs.map} +1 -1
  13. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-category.module-C1sJKoYB.mjs → isaiahiroko-tilmart-ngx-apps-buyer-category.module-B3znIgDi.mjs} +4 -4
  14. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-category.module-C1sJKoYB.mjs.map → isaiahiroko-tilmart-ngx-apps-buyer-category.module-B3znIgDi.mjs.map} +1 -1
  15. package/fesm2022/isaiahiroko-tilmart-ngx-apps-buyer-checkout.module-BHWh5rp9.mjs +530 -0
  16. package/fesm2022/isaiahiroko-tilmart-ngx-apps-buyer-checkout.module-BHWh5rp9.mjs.map +1 -0
  17. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-compare.module-Dxo12Kzv.mjs → isaiahiroko-tilmart-ngx-apps-buyer-compare.module-C2NcY6Zi.mjs} +5 -5
  18. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-compare.module-Dxo12Kzv.mjs.map → isaiahiroko-tilmart-ngx-apps-buyer-compare.module-C2NcY6Zi.mjs.map} +1 -1
  19. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-compatibility.module-8PhscfP7.mjs → isaiahiroko-tilmart-ngx-apps-buyer-compatibility.module-UQzXTxJa.mjs} +3 -3
  20. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-compatibility.module-8PhscfP7.mjs.map → isaiahiroko-tilmart-ngx-apps-buyer-compatibility.module-UQzXTxJa.mjs.map} +1 -1
  21. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-help.module-jxrOAl3E.mjs → isaiahiroko-tilmart-ngx-apps-buyer-help.module-BJ0XAk0M.mjs} +28 -5
  22. package/fesm2022/isaiahiroko-tilmart-ngx-apps-buyer-help.module-BJ0XAk0M.mjs.map +1 -0
  23. package/fesm2022/isaiahiroko-tilmart-ngx-apps-buyer-home.module-DKOjLmjH.mjs +432 -0
  24. package/fesm2022/isaiahiroko-tilmart-ngx-apps-buyer-home.module-DKOjLmjH.mjs.map +1 -0
  25. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-index-Dw3XN-Wc.mjs → isaiahiroko-tilmart-ngx-apps-buyer-index-DDfNKbJq.mjs} +5 -5
  26. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-index-Dw3XN-Wc.mjs.map → isaiahiroko-tilmart-ngx-apps-buyer-index-DDfNKbJq.mjs.map} +1 -1
  27. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-isaiahiroko-tilmart-ngx-apps-buyer-C3sJcUlM.mjs → isaiahiroko-tilmart-ngx-apps-buyer-isaiahiroko-tilmart-ngx-apps-buyer-DLOEtHph.mjs} +49 -50
  28. package/fesm2022/isaiahiroko-tilmart-ngx-apps-buyer-isaiahiroko-tilmart-ngx-apps-buyer-DLOEtHph.mjs.map +1 -0
  29. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-kit-builder.module-CR0ntbcX.mjs → isaiahiroko-tilmart-ngx-apps-buyer-kit-builder.module-B2DlRXcN.mjs} +4 -4
  30. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-kit-builder.module-CR0ntbcX.mjs.map → isaiahiroko-tilmart-ngx-apps-buyer-kit-builder.module-B2DlRXcN.mjs.map} +1 -1
  31. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-kits.module-BD7LDkk0.mjs → isaiahiroko-tilmart-ngx-apps-buyer-kits.module-BM-AaySi.mjs} +4 -4
  32. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-kits.module-BD7LDkk0.mjs.map → isaiahiroko-tilmart-ngx-apps-buyer-kits.module-BM-AaySi.mjs.map} +1 -1
  33. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-order-confirmation.module-B9zRkReI.mjs → isaiahiroko-tilmart-ngx-apps-buyer-order-confirmation.module-BP0PpD6u.mjs} +4 -4
  34. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-order-confirmation.module-B9zRkReI.mjs.map → isaiahiroko-tilmart-ngx-apps-buyer-order-confirmation.module-BP0PpD6u.mjs.map} +1 -1
  35. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-payment-return.module-gjfDj0So.mjs → isaiahiroko-tilmart-ngx-apps-buyer-payment-return.module-CQqGYuNk.mjs} +2 -2
  36. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-payment-return.module-gjfDj0So.mjs.map → isaiahiroko-tilmart-ngx-apps-buyer-payment-return.module-CQqGYuNk.mjs.map} +1 -1
  37. package/fesm2022/isaiahiroko-tilmart-ngx-apps-buyer-phone-Cd4T5QVc.mjs +55 -0
  38. package/fesm2022/isaiahiroko-tilmart-ngx-apps-buyer-phone-Cd4T5QVc.mjs.map +1 -0
  39. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-product.module-BPo7Gz-X.mjs → isaiahiroko-tilmart-ngx-apps-buyer-product.module-DXfHEkY_.mjs} +22 -22
  40. package/fesm2022/isaiahiroko-tilmart-ngx-apps-buyer-product.module-DXfHEkY_.mjs.map +1 -0
  41. package/fesm2022/isaiahiroko-tilmart-ngx-apps-buyer-request-installer.module-D-P8mWaN.mjs +277 -0
  42. package/fesm2022/isaiahiroko-tilmart-ngx-apps-buyer-request-installer.module-D-P8mWaN.mjs.map +1 -0
  43. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-runtime.module-BCxVBmUd.mjs → isaiahiroko-tilmart-ngx-apps-buyer-runtime.module-Cjh7V6NV.mjs} +3 -3
  44. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-runtime.module-BCxVBmUd.mjs.map → isaiahiroko-tilmart-ngx-apps-buyer-runtime.module-Cjh7V6NV.mjs.map} +1 -1
  45. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-savings.module-Br_FGJJM.mjs → isaiahiroko-tilmart-ngx-apps-buyer-savings.module-BHtxabJQ.mjs} +3 -3
  46. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-savings.module-Br_FGJJM.mjs.map → isaiahiroko-tilmart-ngx-apps-buyer-savings.module-BHtxabJQ.mjs.map} +1 -1
  47. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-search.module-JwPFFdbg.mjs → isaiahiroko-tilmart-ngx-apps-buyer-search.module-BjC0rJhU.mjs} +4 -4
  48. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-search.module-JwPFFdbg.mjs.map → isaiahiroko-tilmart-ngx-apps-buyer-search.module-BjC0rJhU.mjs.map} +1 -1
  49. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-track.module-CS1VlsPu.mjs → isaiahiroko-tilmart-ngx-apps-buyer-track.module-CXz-OUkV.mjs} +3 -3
  50. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-track.module-CS1VlsPu.mjs.map → isaiahiroko-tilmart-ngx-apps-buyer-track.module-CXz-OUkV.mjs.map} +1 -1
  51. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-use-case.module-DtapiWBx.mjs → isaiahiroko-tilmart-ngx-apps-buyer-use-case.module-XSGao1Jc.mjs} +3 -3
  52. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-use-case.module-DtapiWBx.mjs.map → isaiahiroko-tilmart-ngx-apps-buyer-use-case.module-XSGao1Jc.mjs.map} +1 -1
  53. package/fesm2022/isaiahiroko-tilmart-ngx-apps-buyer.mjs +1 -1
  54. package/package.json +1 -1
  55. package/fesm2022/isaiahiroko-tilmart-ngx-apps-buyer-account.module-k8cM5aPL.mjs.map +0 -1
  56. package/fesm2022/isaiahiroko-tilmart-ngx-apps-buyer-checkout.module-Bcg5jh3U.mjs +0 -518
  57. package/fesm2022/isaiahiroko-tilmart-ngx-apps-buyer-checkout.module-Bcg5jh3U.mjs.map +0 -1
  58. package/fesm2022/isaiahiroko-tilmart-ngx-apps-buyer-help.module-jxrOAl3E.mjs.map +0 -1
  59. package/fesm2022/isaiahiroko-tilmart-ngx-apps-buyer-home.module-BA7yLE_d.mjs +0 -408
  60. package/fesm2022/isaiahiroko-tilmart-ngx-apps-buyer-home.module-BA7yLE_d.mjs.map +0 -1
  61. package/fesm2022/isaiahiroko-tilmart-ngx-apps-buyer-isaiahiroko-tilmart-ngx-apps-buyer-C3sJcUlM.mjs.map +0 -1
  62. package/fesm2022/isaiahiroko-tilmart-ngx-apps-buyer-product.module-BPo7Gz-X.mjs.map +0 -1
  63. package/fesm2022/isaiahiroko-tilmart-ngx-apps-buyer-request-installer.module-BgZFUWdR.mjs +0 -256
  64. package/fesm2022/isaiahiroko-tilmart-ngx-apps-buyer-request-installer.module-BgZFUWdR.mjs.map +0 -1
@@ -3,13 +3,14 @@ import { inject, Injectable, ViewEncapsulation, Component, NgModule } from '@ang
3
3
  import * as i1 from '@angular/router';
4
4
  import { ActivatedRoute, RouterModule } from '@angular/router';
5
5
  import { ApiService, ControlService, BaseDirective, using, notify, SharedModule } from '@thescaffold/ngx-core';
6
- import * as i3 from '@isaiahiroko/tilmart-ngx-ui';
6
+ import * as i4 from '@isaiahiroko/tilmart-ngx-ui';
7
7
  import { TilmartElementsModule } from '@isaiahiroko/tilmart-ngx-ui';
8
8
  import { ReplaySubject, firstValueFrom, map, catchError, of, takeUntil, switchMap, forkJoin } from 'rxjs';
9
- import { S as StaticListService, a as CartStoreService } from './isaiahiroko-tilmart-ngx-apps-buyer-isaiahiroko-tilmart-ngx-apps-buyer-C3sJcUlM.mjs';
9
+ import { S as StaticListService, a as CartStoreService } from './isaiahiroko-tilmart-ngx-apps-buyer-isaiahiroko-tilmart-ngx-apps-buyer-DLOEtHph.mjs';
10
10
  import * as i1$1 from '@angular/forms';
11
11
  import * as i2 from '@angular/common';
12
12
  import { ThemeService } from '@thescaffold/ngx-common';
13
+ import { i as isValidPhone, P as PHONE_HINT, a as PhoneInputDirective } from './isaiahiroko-tilmart-ngx-apps-buyer-phone-Cd4T5QVc.mjs';
13
14
 
14
15
  // P5.3 — resolves the signed-in visitor's commerce `Customer` once and
15
16
  // shares it across the account sub-pages (each of orders / addresses /
@@ -41,16 +42,13 @@ class AccountStoreService {
41
42
  async fetch() {
42
43
  if (!this.controlService.isLoggedIn())
43
44
  return null;
44
- const userId = this.controlService.getContext()?.userId;
45
- if (!userId)
45
+ if (!this.controlService.getContext()?.userId)
46
46
  return null;
47
- return firstValueFrom(this.apiService
48
- .on('apps/commerce/customer')
49
- .getMany({ userId, perPage: 1 })
50
- .pipe(map((res) => {
51
- const row = (res?.data ?? [])[0];
52
- return row ? row : null;
53
- }), catchError(() => of(null))));
47
+ // `customer/mine` finds — or, before their first order, creates — the
48
+ // signed-in buyer's own Customer. A `customer?userId=` list came back
49
+ // empty for anyone who hadn't ordered, and every account sub-page then
50
+ // failed (addresses wouldn't save).
51
+ return firstValueFrom(this.apiService.get('apps/commerce/customer/mine').pipe(map((res) => (res?.data?.id ? res.data : null)), catchError(() => of(null))));
54
52
  }
55
53
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: AccountStoreService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
56
54
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: AccountStoreService }); }
@@ -671,7 +669,7 @@ class AccountPaymentsComponent extends BaseDirective {
671
669
  return Number.isNaN(t) ? 0 : t;
672
670
  }
673
671
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: AccountPaymentsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
674
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: AccountPaymentsComponent, isStandalone: false, selector: "x-account-payments", usesInheritance: true, ngImport: i0, template: "<h2 class=\"x-acct-h2\">Payments</h2>\n<p class=\"x-acct-sub\">Every payment across your orders.</p>\n\n@if (loading) {\n <div class=\"x-acct-empty\">Loading\u2026</div>\n} @else if (!payments.length) {\n <div class=\"x-acct-card\"><div class=\"x-acct-empty\">No payments yet.</div></div>\n} @else {\n <div class=\"x-acct-card\">\n @for (p of payments; track p.id) {\n <div class=\"x-acct-row\">\n <span>\n @if (p.orderId) {\n <a [routerLink]=\"['../orders', p.orderId]\"><strong>{{ p.orderNumber }}</strong></a>\n } @else {\n <strong>{{ p.orderNumber || 'Payment' }}</strong>\n }\n <span class=\"x-acct-sub\" style=\"display: block; margin-top: 2px\">\n {{ p.method || p.provider }} \u00B7 {{ (p.paidAt || p.createdAt) | date: 'mediumDate' }}\n </span>\n </span>\n <span class=\"x-acct-pill\" [class.x-acct-pill-ok]=\"p.status === 'success'\">\n {{ p.status }}\n </span>\n <strong>{{ p.amount | tmMoney: p.currency }}</strong>\n </div>\n }\n </div>\n}\n", dependencies: [{ kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "pipe", type: i2.DatePipe, name: "date" }, { kind: "pipe", type: i3.MoneyPipe, name: "tmMoney" }] }); }
672
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: AccountPaymentsComponent, isStandalone: false, selector: "x-account-payments", usesInheritance: true, ngImport: i0, template: "<h2 class=\"x-acct-h2\">Payments</h2>\n<p class=\"x-acct-sub\">Every payment across your orders.</p>\n\n@if (loading) {\n <div class=\"x-acct-empty\">Loading\u2026</div>\n} @else if (!payments.length) {\n <div class=\"x-acct-card\"><div class=\"x-acct-empty\">No payments yet.</div></div>\n} @else {\n <div class=\"x-acct-card\">\n @for (p of payments; track p.id) {\n <div class=\"x-acct-row\">\n <span>\n @if (p.orderId) {\n <a [routerLink]=\"['../orders', p.orderId]\"><strong>{{ p.orderNumber }}</strong></a>\n } @else {\n <strong>{{ p.orderNumber || 'Payment' }}</strong>\n }\n <span class=\"x-acct-sub\" style=\"display: block; margin-top: 2px\">\n {{ p.method || p.provider }} \u00B7 {{ (p.paidAt || p.createdAt) | date: 'mediumDate' }}\n </span>\n </span>\n <span class=\"x-acct-pill\" [class.x-acct-pill-ok]=\"p.status === 'success'\">\n {{ p.status }}\n </span>\n <strong>{{ p.amount | tmMoney: p.currency }}</strong>\n </div>\n }\n </div>\n}\n", dependencies: [{ kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "pipe", type: i2.DatePipe, name: "date" }, { kind: "pipe", type: i4.MoneyPipe, name: "tmMoney" }] }); }
675
673
  }
676
674
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: AccountPaymentsComponent, decorators: [{
677
675
  type: Component,
@@ -1176,6 +1174,10 @@ class AccountSettingsComponent extends BaseDirective {
1176
1174
  async saveProfile() {
1177
1175
  if (this.savingProfile)
1178
1176
  return;
1177
+ if (this.phoneNumber.trim() && !isValidPhone(this.phoneNumber)) {
1178
+ this.profileError = PHONE_HINT;
1179
+ return;
1180
+ }
1179
1181
  this.savingProfile = true;
1180
1182
  this.profileError = '';
1181
1183
  try {
@@ -1251,11 +1253,11 @@ class AccountSettingsComponent extends BaseDirective {
1251
1253
  }
1252
1254
  }
1253
1255
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: AccountSettingsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
1254
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: AccountSettingsComponent, isStandalone: false, selector: "x-account-settings", usesInheritance: true, ngImport: i0, template: "<h2 class=\"x-acct-h2\">Settings</h2>\n<p class=\"x-acct-sub\">Profile, security, appearance and how we reach you.</p>\n\n<div class=\"x-acct-card\">\n <strong>Profile</strong>\n @if (loadingProfile) {\n <div class=\"x-acct-empty\">Loading\u2026</div>\n } @else {\n <div style=\"margin-top: 14px\">\n <div class=\"x-acct-field\">\n <label>Name</label>\n <input [value]=\"fullName\" disabled />\n </div>\n <div class=\"x-acct-field\">\n <label>Phone number</label>\n <input type=\"tel\" [(ngModel)]=\"phoneNumber\" placeholder=\"+234\u2026\" />\n </div>\n @if (profileError) {\n <div class=\"x-acct-err\">{{ profileError }}</div>\n }\n <button type=\"button\" class=\"x-acct-btn\" [disabled]=\"savingProfile\" (click)=\"saveProfile()\">\n {{ savingProfile ? 'Saving\u2026' : 'Save profile' }}\n </button>\n </div>\n }\n</div>\n\n<div class=\"x-acct-card\">\n <strong>Change password</strong>\n <div style=\"margin-top: 14px\">\n <div class=\"x-acct-field\">\n <label>Current password</label>\n <div class=\"x-acct-pwd\">\n <input [type]=\"showCurrentSecret ? 'text' : 'password'\" [(ngModel)]=\"currentSecret\" />\n <button\n type=\"button\"\n class=\"x-acct-pwd-toggle\"\n [title]=\"showCurrentSecret ? 'Hide password' : 'Show password'\"\n [attr.aria-label]=\"showCurrentSecret ? 'Hide password' : 'Show password'\"\n (click)=\"showCurrentSecret = !showCurrentSecret\"\n >\n <i class=\"fa-solid\" [ngClass]=\"showCurrentSecret ? 'fa-eye' : 'fa-eye-slash'\"></i>\n </button>\n </div>\n </div>\n <div class=\"x-acct-field\">\n <label>New password</label>\n <div class=\"x-acct-pwd\">\n <input [type]=\"showNewSecret ? 'text' : 'password'\" [(ngModel)]=\"newSecret\" />\n <button\n type=\"button\"\n class=\"x-acct-pwd-toggle\"\n [title]=\"showNewSecret ? 'Hide password' : 'Show password'\"\n [attr.aria-label]=\"showNewSecret ? 'Hide password' : 'Show password'\"\n (click)=\"showNewSecret = !showNewSecret\"\n >\n <i class=\"fa-solid\" [ngClass]=\"showNewSecret ? 'fa-eye' : 'fa-eye-slash'\"></i>\n </button>\n </div>\n </div>\n <div class=\"x-acct-field\">\n <label>Confirm new password</label>\n <div class=\"x-acct-pwd\">\n <input [type]=\"showConfirmSecret ? 'text' : 'password'\" [(ngModel)]=\"confirmNewSecret\" />\n <button\n type=\"button\"\n class=\"x-acct-pwd-toggle\"\n [title]=\"showConfirmSecret ? 'Hide password' : 'Show password'\"\n [attr.aria-label]=\"showConfirmSecret ? 'Hide password' : 'Show password'\"\n (click)=\"showConfirmSecret = !showConfirmSecret\"\n >\n <i class=\"fa-solid\" [ngClass]=\"showConfirmSecret ? 'fa-eye' : 'fa-eye-slash'\"></i>\n </button>\n </div>\n </div>\n @if (passwordError) {\n <div class=\"x-acct-err\">{{ passwordError }}</div>\n }\n @if (passwordDone) {\n <div class=\"x-acct-ok\">Password changed. Signing you out\u2026</div>\n }\n <button\n type=\"button\"\n class=\"x-acct-btn\"\n [disabled]=\"!canChangePassword || changingPassword\"\n (click)=\"changePassword()\"\n >\n {{ changingPassword ? 'Saving\u2026' : 'Change password' }}\n </button>\n </div>\n</div>\n\n<div class=\"x-acct-card\">\n <strong>Appearance</strong>\n <div class=\"x-acct-field\" style=\"margin-top: 14px; max-width: 240px\">\n <label>Theme</label>\n <select aria-label=\"Theme\" [ngModel]=\"theme\" (ngModelChange)=\"setTheme($event)\">\n <option value=\"system\">Match my device</option>\n <option value=\"light\">Light</option>\n <option value=\"dark\">Dark</option>\n </select>\n </div>\n</div>\n\n<div class=\"x-acct-card\">\n <strong>Notifications</strong>\n @if (loadingPrefs) {\n <div class=\"x-acct-empty\">Loading\u2026</div>\n } @else {\n <p class=\"x-acct-sub\" style=\"margin: 8px 0 16px\">\n Order and payment updates are always sent. Everything else is up to you.\n </p>\n\n @for (cat of categories; track cat.key) {\n <div style=\"padding: 10px 0; border-bottom: 1px solid var(--color-border-muted)\">\n <div style=\"font-weight: 700; font-size: 13.5px; margin-bottom: 8px\">\n {{ cat.label }}\n @if (cat.locked) {\n <span class=\"x-acct-pill\" style=\"margin-left: 6px\">Always on</span>\n }\n </div>\n @if (cat.consent && !marketingConsent) {\n <label class=\"x-acct-checkline\">\n <input type=\"checkbox\" [(ngModel)]=\"marketingConsent\" />\n Opt in to offers and promotions\n </label>\n } @else {\n <div style=\"display: flex; gap: 16px; flex-wrap: wrap\">\n @for (ch of channels; track ch.key) {\n <label class=\"x-acct-checkline\">\n <input\n type=\"checkbox\"\n [disabled]=\"cat.locked || unsubscribedAll || (cat.consent && !marketingConsent)\"\n [checked]=\"channelOn(cat.key, ch.key)\"\n (change)=\"toggleChannel(cat.key, ch.key)\"\n />\n {{ ch.label }}\n </label>\n }\n </div>\n @if (cat.consent && marketingConsent) {\n <label class=\"x-acct-checkline\" style=\"margin-top: 4px\">\n <input type=\"checkbox\" [(ngModel)]=\"marketingConsent\" />\n Keep me opted in to offers\n </label>\n }\n }\n </div>\n }\n\n <div style=\"padding: 14px 0\">\n <label class=\"x-acct-checkline\">\n <input type=\"checkbox\" [(ngModel)]=\"quietHoursEnabled\" />\n Quiet hours \u2014 hold non-urgent messages overnight\n </label>\n @if (quietHoursEnabled) {\n <div style=\"display: flex; gap: 12px; margin-top: 8px\">\n <div class=\"x-acct-field\" style=\"margin: 0\">\n <label>From</label>\n <input type=\"time\" [(ngModel)]=\"quietHoursStart\" />\n </div>\n <div class=\"x-acct-field\" style=\"margin: 0\">\n <label>To</label>\n <input type=\"time\" [(ngModel)]=\"quietHoursEnd\" />\n </div>\n </div>\n }\n </div>\n\n <label class=\"x-acct-checkline\">\n <input type=\"checkbox\" [(ngModel)]=\"unsubscribedAll\" />\n Unsubscribe from everything except order &amp; payment updates\n </label>\n\n @if (prefsError) {\n <div class=\"x-acct-err\" style=\"margin-top: 12px\">{{ prefsError }}</div>\n }\n <button\n type=\"button\"\n class=\"x-acct-btn\"\n style=\"margin-top: 14px\"\n [disabled]=\"savingPrefs\"\n (click)=\"savePrefs()\"\n >\n {{ savingPrefs ? 'Saving\u2026' : 'Save preferences' }}\n </button>\n }\n</div>\n", dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$1.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$1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i1$1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); }
1256
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: AccountSettingsComponent, isStandalone: false, selector: "x-account-settings", usesInheritance: true, ngImport: i0, template: "<h2 class=\"x-acct-h2\">Settings</h2>\n<p class=\"x-acct-sub\">Profile, security, appearance and how we reach you.</p>\n\n<div class=\"x-acct-card\">\n <strong>Profile</strong>\n @if (loadingProfile) {\n <div class=\"x-acct-empty\">Loading\u2026</div>\n } @else {\n <div style=\"margin-top: 14px\">\n <div class=\"x-acct-field\">\n <label>Name</label>\n <input [value]=\"fullName\" disabled />\n </div>\n <div class=\"x-acct-field\">\n <label>Phone number</label>\n <input type=\"tel\" xPhoneInput autocomplete=\"tel\" [(ngModel)]=\"phoneNumber\" placeholder=\"0803 000 0000\" />\n </div>\n @if (profileError) {\n <div class=\"x-acct-err\">{{ profileError }}</div>\n }\n <button type=\"button\" class=\"x-acct-btn\" [disabled]=\"savingProfile\" (click)=\"saveProfile()\">\n {{ savingProfile ? 'Saving\u2026' : 'Save profile' }}\n </button>\n </div>\n }\n</div>\n\n<div class=\"x-acct-card\">\n <strong>Change password</strong>\n <div style=\"margin-top: 14px\">\n <div class=\"x-acct-field\">\n <label>Current password</label>\n <div class=\"x-acct-pwd\">\n <input [type]=\"showCurrentSecret ? 'text' : 'password'\" [(ngModel)]=\"currentSecret\" />\n <button\n type=\"button\"\n class=\"x-acct-pwd-toggle\"\n [title]=\"showCurrentSecret ? 'Hide password' : 'Show password'\"\n [attr.aria-label]=\"showCurrentSecret ? 'Hide password' : 'Show password'\"\n (click)=\"showCurrentSecret = !showCurrentSecret\"\n >\n <i class=\"fa-solid\" [ngClass]=\"showCurrentSecret ? 'fa-eye' : 'fa-eye-slash'\"></i>\n </button>\n </div>\n </div>\n <div class=\"x-acct-field\">\n <label>New password</label>\n <div class=\"x-acct-pwd\">\n <input [type]=\"showNewSecret ? 'text' : 'password'\" [(ngModel)]=\"newSecret\" />\n <button\n type=\"button\"\n class=\"x-acct-pwd-toggle\"\n [title]=\"showNewSecret ? 'Hide password' : 'Show password'\"\n [attr.aria-label]=\"showNewSecret ? 'Hide password' : 'Show password'\"\n (click)=\"showNewSecret = !showNewSecret\"\n >\n <i class=\"fa-solid\" [ngClass]=\"showNewSecret ? 'fa-eye' : 'fa-eye-slash'\"></i>\n </button>\n </div>\n </div>\n <div class=\"x-acct-field\">\n <label>Confirm new password</label>\n <div class=\"x-acct-pwd\">\n <input [type]=\"showConfirmSecret ? 'text' : 'password'\" [(ngModel)]=\"confirmNewSecret\" />\n <button\n type=\"button\"\n class=\"x-acct-pwd-toggle\"\n [title]=\"showConfirmSecret ? 'Hide password' : 'Show password'\"\n [attr.aria-label]=\"showConfirmSecret ? 'Hide password' : 'Show password'\"\n (click)=\"showConfirmSecret = !showConfirmSecret\"\n >\n <i class=\"fa-solid\" [ngClass]=\"showConfirmSecret ? 'fa-eye' : 'fa-eye-slash'\"></i>\n </button>\n </div>\n </div>\n @if (passwordError) {\n <div class=\"x-acct-err\">{{ passwordError }}</div>\n }\n @if (passwordDone) {\n <div class=\"x-acct-ok\">Password changed. Signing you out\u2026</div>\n }\n <button\n type=\"button\"\n class=\"x-acct-btn\"\n [disabled]=\"!canChangePassword || changingPassword\"\n (click)=\"changePassword()\"\n >\n {{ changingPassword ? 'Saving\u2026' : 'Change password' }}\n </button>\n </div>\n</div>\n\n<div class=\"x-acct-card\">\n <strong>Appearance</strong>\n <div class=\"x-acct-field\" style=\"margin-top: 14px; max-width: 240px\">\n <label>Theme</label>\n <select aria-label=\"Theme\" [ngModel]=\"theme\" (ngModelChange)=\"setTheme($event)\">\n <option value=\"system\">Match my device</option>\n <option value=\"light\">Light</option>\n <option value=\"dark\">Dark</option>\n </select>\n </div>\n</div>\n\n<div class=\"x-acct-card\">\n <strong>Notifications</strong>\n @if (loadingPrefs) {\n <div class=\"x-acct-empty\">Loading\u2026</div>\n } @else {\n <p class=\"x-acct-sub\" style=\"margin: 8px 0 16px\">\n Order and payment updates are always sent. Everything else is up to you.\n </p>\n\n @for (cat of categories; track cat.key) {\n <div style=\"padding: 10px 0; border-bottom: 1px solid var(--color-border-muted)\">\n <div style=\"font-weight: 700; font-size: 13.5px; margin-bottom: 8px\">\n {{ cat.label }}\n @if (cat.locked) {\n <span class=\"x-acct-pill\" style=\"margin-left: 6px\">Always on</span>\n }\n </div>\n @if (cat.consent && !marketingConsent) {\n <label class=\"x-acct-checkline\">\n <input type=\"checkbox\" [(ngModel)]=\"marketingConsent\" />\n Opt in to offers and promotions\n </label>\n } @else {\n <div style=\"display: flex; gap: 16px; flex-wrap: wrap\">\n @for (ch of channels; track ch.key) {\n <label class=\"x-acct-checkline\">\n <input\n type=\"checkbox\"\n [disabled]=\"cat.locked || unsubscribedAll || (cat.consent && !marketingConsent)\"\n [checked]=\"channelOn(cat.key, ch.key)\"\n (change)=\"toggleChannel(cat.key, ch.key)\"\n />\n {{ ch.label }}\n </label>\n }\n </div>\n @if (cat.consent && marketingConsent) {\n <label class=\"x-acct-checkline\" style=\"margin-top: 4px\">\n <input type=\"checkbox\" [(ngModel)]=\"marketingConsent\" />\n Keep me opted in to offers\n </label>\n }\n }\n </div>\n }\n\n <div style=\"padding: 14px 0\">\n <label class=\"x-acct-checkline\">\n <input type=\"checkbox\" [(ngModel)]=\"quietHoursEnabled\" />\n Quiet hours \u2014 hold non-urgent messages overnight\n </label>\n @if (quietHoursEnabled) {\n <div style=\"display: flex; gap: 12px; margin-top: 8px\">\n <div class=\"x-acct-field\" style=\"margin: 0\">\n <label>From</label>\n <input type=\"time\" [(ngModel)]=\"quietHoursStart\" />\n </div>\n <div class=\"x-acct-field\" style=\"margin: 0\">\n <label>To</label>\n <input type=\"time\" [(ngModel)]=\"quietHoursEnd\" />\n </div>\n </div>\n }\n </div>\n\n <label class=\"x-acct-checkline\">\n <input type=\"checkbox\" [(ngModel)]=\"unsubscribedAll\" />\n Unsubscribe from everything except order &amp; payment updates\n </label>\n\n @if (prefsError) {\n <div class=\"x-acct-err\" style=\"margin-top: 12px\">{{ prefsError }}</div>\n }\n <button\n type=\"button\"\n class=\"x-acct-btn\"\n style=\"margin-top: 14px\"\n [disabled]=\"savingPrefs\"\n (click)=\"savePrefs()\"\n >\n {{ savingPrefs ? 'Saving\u2026' : 'Save preferences' }}\n </button>\n }\n</div>\n", dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$1.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$1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i1$1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: PhoneInputDirective, selector: "input[xPhoneInput]" }] }); }
1255
1257
  }
1256
1258
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: AccountSettingsComponent, decorators: [{
1257
1259
  type: Component,
1258
- args: [{ standalone: false, selector: 'x-account-settings', template: "<h2 class=\"x-acct-h2\">Settings</h2>\n<p class=\"x-acct-sub\">Profile, security, appearance and how we reach you.</p>\n\n<div class=\"x-acct-card\">\n <strong>Profile</strong>\n @if (loadingProfile) {\n <div class=\"x-acct-empty\">Loading\u2026</div>\n } @else {\n <div style=\"margin-top: 14px\">\n <div class=\"x-acct-field\">\n <label>Name</label>\n <input [value]=\"fullName\" disabled />\n </div>\n <div class=\"x-acct-field\">\n <label>Phone number</label>\n <input type=\"tel\" [(ngModel)]=\"phoneNumber\" placeholder=\"+234\u2026\" />\n </div>\n @if (profileError) {\n <div class=\"x-acct-err\">{{ profileError }}</div>\n }\n <button type=\"button\" class=\"x-acct-btn\" [disabled]=\"savingProfile\" (click)=\"saveProfile()\">\n {{ savingProfile ? 'Saving\u2026' : 'Save profile' }}\n </button>\n </div>\n }\n</div>\n\n<div class=\"x-acct-card\">\n <strong>Change password</strong>\n <div style=\"margin-top: 14px\">\n <div class=\"x-acct-field\">\n <label>Current password</label>\n <div class=\"x-acct-pwd\">\n <input [type]=\"showCurrentSecret ? 'text' : 'password'\" [(ngModel)]=\"currentSecret\" />\n <button\n type=\"button\"\n class=\"x-acct-pwd-toggle\"\n [title]=\"showCurrentSecret ? 'Hide password' : 'Show password'\"\n [attr.aria-label]=\"showCurrentSecret ? 'Hide password' : 'Show password'\"\n (click)=\"showCurrentSecret = !showCurrentSecret\"\n >\n <i class=\"fa-solid\" [ngClass]=\"showCurrentSecret ? 'fa-eye' : 'fa-eye-slash'\"></i>\n </button>\n </div>\n </div>\n <div class=\"x-acct-field\">\n <label>New password</label>\n <div class=\"x-acct-pwd\">\n <input [type]=\"showNewSecret ? 'text' : 'password'\" [(ngModel)]=\"newSecret\" />\n <button\n type=\"button\"\n class=\"x-acct-pwd-toggle\"\n [title]=\"showNewSecret ? 'Hide password' : 'Show password'\"\n [attr.aria-label]=\"showNewSecret ? 'Hide password' : 'Show password'\"\n (click)=\"showNewSecret = !showNewSecret\"\n >\n <i class=\"fa-solid\" [ngClass]=\"showNewSecret ? 'fa-eye' : 'fa-eye-slash'\"></i>\n </button>\n </div>\n </div>\n <div class=\"x-acct-field\">\n <label>Confirm new password</label>\n <div class=\"x-acct-pwd\">\n <input [type]=\"showConfirmSecret ? 'text' : 'password'\" [(ngModel)]=\"confirmNewSecret\" />\n <button\n type=\"button\"\n class=\"x-acct-pwd-toggle\"\n [title]=\"showConfirmSecret ? 'Hide password' : 'Show password'\"\n [attr.aria-label]=\"showConfirmSecret ? 'Hide password' : 'Show password'\"\n (click)=\"showConfirmSecret = !showConfirmSecret\"\n >\n <i class=\"fa-solid\" [ngClass]=\"showConfirmSecret ? 'fa-eye' : 'fa-eye-slash'\"></i>\n </button>\n </div>\n </div>\n @if (passwordError) {\n <div class=\"x-acct-err\">{{ passwordError }}</div>\n }\n @if (passwordDone) {\n <div class=\"x-acct-ok\">Password changed. Signing you out\u2026</div>\n }\n <button\n type=\"button\"\n class=\"x-acct-btn\"\n [disabled]=\"!canChangePassword || changingPassword\"\n (click)=\"changePassword()\"\n >\n {{ changingPassword ? 'Saving\u2026' : 'Change password' }}\n </button>\n </div>\n</div>\n\n<div class=\"x-acct-card\">\n <strong>Appearance</strong>\n <div class=\"x-acct-field\" style=\"margin-top: 14px; max-width: 240px\">\n <label>Theme</label>\n <select aria-label=\"Theme\" [ngModel]=\"theme\" (ngModelChange)=\"setTheme($event)\">\n <option value=\"system\">Match my device</option>\n <option value=\"light\">Light</option>\n <option value=\"dark\">Dark</option>\n </select>\n </div>\n</div>\n\n<div class=\"x-acct-card\">\n <strong>Notifications</strong>\n @if (loadingPrefs) {\n <div class=\"x-acct-empty\">Loading\u2026</div>\n } @else {\n <p class=\"x-acct-sub\" style=\"margin: 8px 0 16px\">\n Order and payment updates are always sent. Everything else is up to you.\n </p>\n\n @for (cat of categories; track cat.key) {\n <div style=\"padding: 10px 0; border-bottom: 1px solid var(--color-border-muted)\">\n <div style=\"font-weight: 700; font-size: 13.5px; margin-bottom: 8px\">\n {{ cat.label }}\n @if (cat.locked) {\n <span class=\"x-acct-pill\" style=\"margin-left: 6px\">Always on</span>\n }\n </div>\n @if (cat.consent && !marketingConsent) {\n <label class=\"x-acct-checkline\">\n <input type=\"checkbox\" [(ngModel)]=\"marketingConsent\" />\n Opt in to offers and promotions\n </label>\n } @else {\n <div style=\"display: flex; gap: 16px; flex-wrap: wrap\">\n @for (ch of channels; track ch.key) {\n <label class=\"x-acct-checkline\">\n <input\n type=\"checkbox\"\n [disabled]=\"cat.locked || unsubscribedAll || (cat.consent && !marketingConsent)\"\n [checked]=\"channelOn(cat.key, ch.key)\"\n (change)=\"toggleChannel(cat.key, ch.key)\"\n />\n {{ ch.label }}\n </label>\n }\n </div>\n @if (cat.consent && marketingConsent) {\n <label class=\"x-acct-checkline\" style=\"margin-top: 4px\">\n <input type=\"checkbox\" [(ngModel)]=\"marketingConsent\" />\n Keep me opted in to offers\n </label>\n }\n }\n </div>\n }\n\n <div style=\"padding: 14px 0\">\n <label class=\"x-acct-checkline\">\n <input type=\"checkbox\" [(ngModel)]=\"quietHoursEnabled\" />\n Quiet hours \u2014 hold non-urgent messages overnight\n </label>\n @if (quietHoursEnabled) {\n <div style=\"display: flex; gap: 12px; margin-top: 8px\">\n <div class=\"x-acct-field\" style=\"margin: 0\">\n <label>From</label>\n <input type=\"time\" [(ngModel)]=\"quietHoursStart\" />\n </div>\n <div class=\"x-acct-field\" style=\"margin: 0\">\n <label>To</label>\n <input type=\"time\" [(ngModel)]=\"quietHoursEnd\" />\n </div>\n </div>\n }\n </div>\n\n <label class=\"x-acct-checkline\">\n <input type=\"checkbox\" [(ngModel)]=\"unsubscribedAll\" />\n Unsubscribe from everything except order &amp; payment updates\n </label>\n\n @if (prefsError) {\n <div class=\"x-acct-err\" style=\"margin-top: 12px\">{{ prefsError }}</div>\n }\n <button\n type=\"button\"\n class=\"x-acct-btn\"\n style=\"margin-top: 14px\"\n [disabled]=\"savingPrefs\"\n (click)=\"savePrefs()\"\n >\n {{ savingPrefs ? 'Saving\u2026' : 'Save preferences' }}\n </button>\n }\n</div>\n" }]
1260
+ args: [{ standalone: false, selector: 'x-account-settings', template: "<h2 class=\"x-acct-h2\">Settings</h2>\n<p class=\"x-acct-sub\">Profile, security, appearance and how we reach you.</p>\n\n<div class=\"x-acct-card\">\n <strong>Profile</strong>\n @if (loadingProfile) {\n <div class=\"x-acct-empty\">Loading\u2026</div>\n } @else {\n <div style=\"margin-top: 14px\">\n <div class=\"x-acct-field\">\n <label>Name</label>\n <input [value]=\"fullName\" disabled />\n </div>\n <div class=\"x-acct-field\">\n <label>Phone number</label>\n <input type=\"tel\" xPhoneInput autocomplete=\"tel\" [(ngModel)]=\"phoneNumber\" placeholder=\"0803 000 0000\" />\n </div>\n @if (profileError) {\n <div class=\"x-acct-err\">{{ profileError }}</div>\n }\n <button type=\"button\" class=\"x-acct-btn\" [disabled]=\"savingProfile\" (click)=\"saveProfile()\">\n {{ savingProfile ? 'Saving\u2026' : 'Save profile' }}\n </button>\n </div>\n }\n</div>\n\n<div class=\"x-acct-card\">\n <strong>Change password</strong>\n <div style=\"margin-top: 14px\">\n <div class=\"x-acct-field\">\n <label>Current password</label>\n <div class=\"x-acct-pwd\">\n <input [type]=\"showCurrentSecret ? 'text' : 'password'\" [(ngModel)]=\"currentSecret\" />\n <button\n type=\"button\"\n class=\"x-acct-pwd-toggle\"\n [title]=\"showCurrentSecret ? 'Hide password' : 'Show password'\"\n [attr.aria-label]=\"showCurrentSecret ? 'Hide password' : 'Show password'\"\n (click)=\"showCurrentSecret = !showCurrentSecret\"\n >\n <i class=\"fa-solid\" [ngClass]=\"showCurrentSecret ? 'fa-eye' : 'fa-eye-slash'\"></i>\n </button>\n </div>\n </div>\n <div class=\"x-acct-field\">\n <label>New password</label>\n <div class=\"x-acct-pwd\">\n <input [type]=\"showNewSecret ? 'text' : 'password'\" [(ngModel)]=\"newSecret\" />\n <button\n type=\"button\"\n class=\"x-acct-pwd-toggle\"\n [title]=\"showNewSecret ? 'Hide password' : 'Show password'\"\n [attr.aria-label]=\"showNewSecret ? 'Hide password' : 'Show password'\"\n (click)=\"showNewSecret = !showNewSecret\"\n >\n <i class=\"fa-solid\" [ngClass]=\"showNewSecret ? 'fa-eye' : 'fa-eye-slash'\"></i>\n </button>\n </div>\n </div>\n <div class=\"x-acct-field\">\n <label>Confirm new password</label>\n <div class=\"x-acct-pwd\">\n <input [type]=\"showConfirmSecret ? 'text' : 'password'\" [(ngModel)]=\"confirmNewSecret\" />\n <button\n type=\"button\"\n class=\"x-acct-pwd-toggle\"\n [title]=\"showConfirmSecret ? 'Hide password' : 'Show password'\"\n [attr.aria-label]=\"showConfirmSecret ? 'Hide password' : 'Show password'\"\n (click)=\"showConfirmSecret = !showConfirmSecret\"\n >\n <i class=\"fa-solid\" [ngClass]=\"showConfirmSecret ? 'fa-eye' : 'fa-eye-slash'\"></i>\n </button>\n </div>\n </div>\n @if (passwordError) {\n <div class=\"x-acct-err\">{{ passwordError }}</div>\n }\n @if (passwordDone) {\n <div class=\"x-acct-ok\">Password changed. Signing you out\u2026</div>\n }\n <button\n type=\"button\"\n class=\"x-acct-btn\"\n [disabled]=\"!canChangePassword || changingPassword\"\n (click)=\"changePassword()\"\n >\n {{ changingPassword ? 'Saving\u2026' : 'Change password' }}\n </button>\n </div>\n</div>\n\n<div class=\"x-acct-card\">\n <strong>Appearance</strong>\n <div class=\"x-acct-field\" style=\"margin-top: 14px; max-width: 240px\">\n <label>Theme</label>\n <select aria-label=\"Theme\" [ngModel]=\"theme\" (ngModelChange)=\"setTheme($event)\">\n <option value=\"system\">Match my device</option>\n <option value=\"light\">Light</option>\n <option value=\"dark\">Dark</option>\n </select>\n </div>\n</div>\n\n<div class=\"x-acct-card\">\n <strong>Notifications</strong>\n @if (loadingPrefs) {\n <div class=\"x-acct-empty\">Loading\u2026</div>\n } @else {\n <p class=\"x-acct-sub\" style=\"margin: 8px 0 16px\">\n Order and payment updates are always sent. Everything else is up to you.\n </p>\n\n @for (cat of categories; track cat.key) {\n <div style=\"padding: 10px 0; border-bottom: 1px solid var(--color-border-muted)\">\n <div style=\"font-weight: 700; font-size: 13.5px; margin-bottom: 8px\">\n {{ cat.label }}\n @if (cat.locked) {\n <span class=\"x-acct-pill\" style=\"margin-left: 6px\">Always on</span>\n }\n </div>\n @if (cat.consent && !marketingConsent) {\n <label class=\"x-acct-checkline\">\n <input type=\"checkbox\" [(ngModel)]=\"marketingConsent\" />\n Opt in to offers and promotions\n </label>\n } @else {\n <div style=\"display: flex; gap: 16px; flex-wrap: wrap\">\n @for (ch of channels; track ch.key) {\n <label class=\"x-acct-checkline\">\n <input\n type=\"checkbox\"\n [disabled]=\"cat.locked || unsubscribedAll || (cat.consent && !marketingConsent)\"\n [checked]=\"channelOn(cat.key, ch.key)\"\n (change)=\"toggleChannel(cat.key, ch.key)\"\n />\n {{ ch.label }}\n </label>\n }\n </div>\n @if (cat.consent && marketingConsent) {\n <label class=\"x-acct-checkline\" style=\"margin-top: 4px\">\n <input type=\"checkbox\" [(ngModel)]=\"marketingConsent\" />\n Keep me opted in to offers\n </label>\n }\n }\n </div>\n }\n\n <div style=\"padding: 14px 0\">\n <label class=\"x-acct-checkline\">\n <input type=\"checkbox\" [(ngModel)]=\"quietHoursEnabled\" />\n Quiet hours \u2014 hold non-urgent messages overnight\n </label>\n @if (quietHoursEnabled) {\n <div style=\"display: flex; gap: 12px; margin-top: 8px\">\n <div class=\"x-acct-field\" style=\"margin: 0\">\n <label>From</label>\n <input type=\"time\" [(ngModel)]=\"quietHoursStart\" />\n </div>\n <div class=\"x-acct-field\" style=\"margin: 0\">\n <label>To</label>\n <input type=\"time\" [(ngModel)]=\"quietHoursEnd\" />\n </div>\n </div>\n }\n </div>\n\n <label class=\"x-acct-checkline\">\n <input type=\"checkbox\" [(ngModel)]=\"unsubscribedAll\" />\n Unsubscribe from everything except order &amp; payment updates\n </label>\n\n @if (prefsError) {\n <div class=\"x-acct-err\" style=\"margin-top: 12px\">{{ prefsError }}</div>\n }\n <button\n type=\"button\"\n class=\"x-acct-btn\"\n style=\"margin-top: 14px\"\n [disabled]=\"savingPrefs\"\n (click)=\"savePrefs()\"\n >\n {{ savingPrefs ? 'Saving\u2026' : 'Save preferences' }}\n </button>\n }\n</div>\n" }]
1259
1261
  }] });
1260
1262
 
1261
1263
  // P5.6, ACC-06 — one registered system: product, serial, dates,
@@ -1375,9 +1377,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
1375
1377
  args: [{ standalone: false, selector: 'x-account-system-detail', template: "<a routerLink=\"../\" class=\"x-acct-btn-ghost\">\u2039 My Systems</a>\n\n@if (loading) {\n <div class=\"x-acct-empty\" style=\"margin-top: 16px\">Loading\u2026</div>\n} @else if (!found) {\n <div class=\"x-acct-card\" style=\"margin-top: 16px\">\n <div class=\"x-acct-empty\">We couldn't find that record.</div>\n </div>\n} @else {\n <header style=\"margin: 16px 0 8px\">\n <h2 class=\"x-acct-h2\">\n @if (productSlug) {\n <a [routerLink]=\"['/p', productSlug]\">{{ productName }}</a>\n } @else {\n {{ productName }}\n }\n </h2>\n <p class=\"x-acct-sub\">\n @if (isVerified) {\n <span class=\"x-acct-pill x-acct-pill-ok\">Verified</span>\n } @else {\n <span class=\"x-acct-pill\">Self-added</span>\n }\n @if (status === 'claimed') {\n <span class=\"x-acct-pill x-acct-pill-warn\" style=\"margin-left: 6px\">Claim in progress</span>\n }\n </p>\n </header>\n\n @for (n of notices; track n.id) {\n <div\n class=\"x-acct-card\"\n [class.x-acct-pill-bad]=\"n.severity === 'recall'\"\n style=\"border-color: var(--color-warn)\"\n >\n <strong>\u26A0 {{ n.title }}</strong>\n <p class=\"x-acct-sub\" style=\"margin: 6px 0 0\">{{ n.message }}</p>\n @if (n.actionRequired) {\n <p style=\"margin: 8px 0 0; font-weight: 700; font-size: 13px\">\n What to do: {{ n.actionRequired }}\n </p>\n }\n </div>\n }\n\n <div class=\"x-acct-card\">\n <div class=\"x-acct-row\"><span>Serial</span><span>{{ serial || '\u2014' }}</span></div>\n <div class=\"x-acct-row\"><span>Registered</span><span>{{ startsAt | date: 'mediumDate' }}</span></div>\n <div class=\"x-acct-row\">\n <span>Warranty until</span>\n <span>\n {{ expiresAt ? (expiresAt | date: 'mediumDate') : '\u2014' }}\n @if (monthsLeft !== null) {\n ({{ monthsLeft > 0 ? monthsLeft + ' months left' : 'expired' }})\n }\n </span>\n </div>\n </div>\n\n <div class=\"x-acct-card\" style=\"display: flex; gap: 10px; flex-wrap: wrap\">\n @if (isVerified) {\n <button\n type=\"button\"\n class=\"x-acct-btn-ghost\"\n [disabled]=\"downloadingCert\"\n (click)=\"downloadCertificate()\"\n >\n {{ downloadingCert ? 'Opening\u2026' : 'View / print certificate' }}\n </button>\n }\n <a class=\"x-acct-btn\" routerLink=\"claim\">Start a claim</a>\n </div>\n\n @if (claims.length) {\n <div class=\"x-acct-card\">\n <strong>Claims</strong>\n @for (c of claims; track c.id) {\n <div class=\"x-acct-row\">\n <span>\n {{ c.faultDescription || 'Claim' }}\n <span class=\"x-acct-sub\" style=\"display: block; margin-top: 2px\">\n {{ c.createdAt | date: 'mediumDate' }}\n @if (c.triageOutcome) {\n \u00B7 {{ c.triageOutcome }}\n }\n </span>\n </span>\n <span class=\"x-acct-pill\">{{ c.status }}</span>\n </div>\n }\n </div>\n }\n}\n" }]
1376
1378
  }] });
1377
1379
 
1378
- // P5.6, ACC-06 / RET-06 — "My Systems": every product the customer owns,
1379
- // its serial, its warranty standing. Auto-populated by delivery (P4.15);
1380
- // a unit bought elsewhere is added here as unverified.
1380
+ // P5.6, ACC-06 / RET-06 — "My Systems": every product the customer bought
1381
+ // from TILmart, its serial, its warranty standing. Auto-populated by delivery
1382
+ // (P4.15). Client review 25 Nov 2026: units bought elsewhere can no longer be
1383
+ // added (serials are verified, and suppliers don't cover outside purchases),
1384
+ // and any added before are not listed.
1381
1385
  class AccountSystemsComponent extends BaseDirective {
1382
1386
  constructor() {
1383
1387
  super(...arguments);
@@ -1387,10 +1391,6 @@ class AccountSystemsComponent extends BaseDirective {
1387
1391
  this.clientId = '';
1388
1392
  this.workspaceId = '';
1389
1393
  this.systems = [];
1390
- this.adding = false;
1391
- this.savingExternal = false;
1392
- this.externalError = '';
1393
- this.ext = { variantSku: '', serial: '', startsAt: '', months: 12 };
1394
1394
  this.init = () => {
1395
1395
  this.store
1396
1396
  .customer()
@@ -1410,7 +1410,7 @@ class AccountSystemsComponent extends BaseDirective {
1410
1410
  .on('apps/commerce/warranty')
1411
1411
  .getMany({ customerId: this.customerId, perPage: 200 })
1412
1412
  .pipe(catchError(() => of({ data: [] }))));
1413
- const rows = res?.data ?? [];
1413
+ const rows = (res?.data ?? []).filter((w) => w.isVerified !== false);
1414
1414
  this.systems = await Promise.all(rows.map(async (w) => {
1415
1415
  const { name, slug } = await this.resolveProduct(w.variantId);
1416
1416
  const monthsLeft = w.expiresAt
@@ -1443,56 +1443,12 @@ class AccountSystemsComponent extends BaseDirective {
1443
1443
  return { name: 'Registered unit' };
1444
1444
  }
1445
1445
  }
1446
- async addExternal() {
1447
- if (this.savingExternal)
1448
- return;
1449
- const sku = this.ext.variantSku.trim();
1450
- if (!sku) {
1451
- this.externalError = 'Enter the product SKU or model shown on the label.';
1452
- return;
1453
- }
1454
- this.savingExternal = true;
1455
- this.externalError = '';
1456
- try {
1457
- // Resolve the SKU to a variant id (the label carries the SKU/model).
1458
- const found = await firstValueFrom(this.apiService
1459
- .on('apps/commerce/product-variant')
1460
- .getMany({ sku, perPage: 1 })
1461
- .pipe(catchError(() => of({ data: [] }))));
1462
- const variantId = (found?.data ?? [])[0]?.id;
1463
- if (!variantId) {
1464
- this.externalError = "We couldn't match that SKU to a product we stock.";
1465
- return;
1466
- }
1467
- const res = await firstValueFrom(this.apiService.post('apps/commerce/warranty/external', {
1468
- customerId: this.customerId,
1469
- variantId,
1470
- serial: this.ext.serial || undefined,
1471
- startsAt: this.ext.startsAt || undefined,
1472
- months: this.ext.months || undefined,
1473
- }));
1474
- if (res?.status === 'error') {
1475
- this.externalError = res?.message ?? 'Could not add that unit.';
1476
- return;
1477
- }
1478
- this.adding = false;
1479
- this.ext = { variantSku: '', serial: '', startsAt: '', months: 12 };
1480
- notify('Added to My Systems', undefined, 'success');
1481
- await this.load();
1482
- }
1483
- catch (err) {
1484
- this.externalError = err?.error?.message ?? 'Could not add that unit.';
1485
- }
1486
- finally {
1487
- this.savingExternal = false;
1488
- }
1489
- }
1490
1446
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: AccountSystemsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
1491
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: AccountSystemsComponent, isStandalone: false, selector: "x-account-systems", usesInheritance: true, ngImport: i0, template: "<h2 class=\"x-acct-h2\">My Systems</h2>\n<p class=\"x-acct-sub\">\n Every product you've bought from us, with its serial and warranty. Units bought\n elsewhere can be added for context.\n</p>\n\n@if (loading) {\n <div class=\"x-acct-empty\">Loading\u2026</div>\n} @else {\n @if (adding) {\n <div class=\"x-acct-card\">\n <strong>Add a unit bought elsewhere</strong>\n <p class=\"x-acct-sub\" style=\"margin: 6px 0 14px\">\n Unverified \u2014 it won't have a Tilmart certificate, but the compatibility\n checker and support can use it.\n </p>\n <div class=\"x-acct-field\">\n <label>Product SKU / model (on the label)</label>\n <input [(ngModel)]=\"ext.variantSku\" />\n </div>\n <div class=\"x-acct-field\">\n <label>Serial number (optional)</label>\n <input [(ngModel)]=\"ext.serial\" />\n </div>\n <div class=\"x-acct-field\">\n <label>Purchase date (optional)</label>\n <input type=\"date\" [(ngModel)]=\"ext.startsAt\" />\n </div>\n <div class=\"x-acct-field\" style=\"max-width: 160px\">\n <label>Warranty months</label>\n <input type=\"number\" [(ngModel)]=\"ext.months\" />\n </div>\n @if (externalError) {\n <div class=\"x-acct-err\">{{ externalError }}</div>\n }\n <button type=\"button\" class=\"x-acct-btn\" [disabled]=\"savingExternal\" (click)=\"addExternal()\">\n {{ savingExternal ? 'Adding\u2026' : 'Add unit' }}\n </button>\n <button type=\"button\" class=\"x-acct-btn-ghost\" (click)=\"adding = false\" style=\"margin-left: 8px\">\n Cancel\n </button>\n </div>\n } @else {\n <button type=\"button\" class=\"x-acct-btn\" (click)=\"adding = true\">Add external unit</button>\n }\n\n @for (sys of systems; track sys.id) {\n <a class=\"x-acct-card\" [routerLink]=\"[sys.id]\" style=\"display: block; text-decoration: none\">\n <div class=\"x-acct-row\" style=\"border-bottom: 0; padding-top: 0\">\n <strong style=\"color: var(--color-text)\">{{ sys.name }}</strong>\n @if (sys.isVerified) {\n <span class=\"x-acct-pill x-acct-pill-ok\">Verified</span>\n } @else {\n <span class=\"x-acct-pill\">Self-added</span>\n }\n </div>\n <p class=\"x-acct-sub\" style=\"margin: 0\">\n @if (sys.monthsLeft !== null) {\n @if (sys.monthsLeft > 0) {\n {{ sys.monthsLeft }} months of warranty left\n } @else {\n Warranty expired\n }\n } @else {\n Warranty length not set\n }\n @if (sys.status === 'claimed') {\n \u00B7 claim in progress\n }\n </p>\n </a>\n } @empty {\n @if (!adding) {\n <div class=\"x-acct-empty\">\n Nothing here yet \u2014 a warranty is registered automatically when a\n serialised item is delivered.\n </div>\n }\n }\n}\n", dependencies: [{ kind: "directive", type: i1$1.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$1.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] }); }
1447
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: AccountSystemsComponent, isStandalone: false, selector: "x-account-systems", usesInheritance: true, ngImport: i0, template: "<h2 class=\"x-acct-h2\">My Systems</h2>\n<p class=\"x-acct-sub\">\n Every product you've bought from TILmart, with its serial and warranty.\n</p>\n\n@if (loading) {\n <div class=\"x-acct-empty\">Loading\u2026</div>\n} @else {\n @for (sys of systems; track sys.id) {\n <a class=\"x-acct-card\" [routerLink]=\"[sys.id]\" style=\"display: block; text-decoration: none\">\n <div class=\"x-acct-row\" style=\"border-bottom: 0; padding-top: 0\">\n <strong style=\"color: var(--color-text)\">{{ sys.name }}</strong>\n <span class=\"x-acct-pill x-acct-pill-ok\">Verified</span>\n </div>\n <p class=\"x-acct-sub\" style=\"margin: 0\">\n @if (sys.monthsLeft !== null) {\n @if (sys.monthsLeft > 0) {\n {{ sys.monthsLeft }} months of warranty left\n } @else {\n Warranty expired\n }\n } @else {\n Warranty length not set\n }\n @if (sys.status === 'claimed') {\n \u00B7 claim in progress\n }\n </p>\n </a>\n } @empty {\n <div class=\"x-acct-empty\">\n Nothing here yet \u2014 a warranty is registered automatically when a\n serialised item is delivered.\n </div>\n }\n}\n", dependencies: [{ kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] }); }
1492
1448
  }
1493
1449
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: AccountSystemsComponent, decorators: [{
1494
1450
  type: Component,
1495
- args: [{ standalone: false, selector: 'x-account-systems', template: "<h2 class=\"x-acct-h2\">My Systems</h2>\n<p class=\"x-acct-sub\">\n Every product you've bought from us, with its serial and warranty. Units bought\n elsewhere can be added for context.\n</p>\n\n@if (loading) {\n <div class=\"x-acct-empty\">Loading\u2026</div>\n} @else {\n @if (adding) {\n <div class=\"x-acct-card\">\n <strong>Add a unit bought elsewhere</strong>\n <p class=\"x-acct-sub\" style=\"margin: 6px 0 14px\">\n Unverified \u2014 it won't have a Tilmart certificate, but the compatibility\n checker and support can use it.\n </p>\n <div class=\"x-acct-field\">\n <label>Product SKU / model (on the label)</label>\n <input [(ngModel)]=\"ext.variantSku\" />\n </div>\n <div class=\"x-acct-field\">\n <label>Serial number (optional)</label>\n <input [(ngModel)]=\"ext.serial\" />\n </div>\n <div class=\"x-acct-field\">\n <label>Purchase date (optional)</label>\n <input type=\"date\" [(ngModel)]=\"ext.startsAt\" />\n </div>\n <div class=\"x-acct-field\" style=\"max-width: 160px\">\n <label>Warranty months</label>\n <input type=\"number\" [(ngModel)]=\"ext.months\" />\n </div>\n @if (externalError) {\n <div class=\"x-acct-err\">{{ externalError }}</div>\n }\n <button type=\"button\" class=\"x-acct-btn\" [disabled]=\"savingExternal\" (click)=\"addExternal()\">\n {{ savingExternal ? 'Adding\u2026' : 'Add unit' }}\n </button>\n <button type=\"button\" class=\"x-acct-btn-ghost\" (click)=\"adding = false\" style=\"margin-left: 8px\">\n Cancel\n </button>\n </div>\n } @else {\n <button type=\"button\" class=\"x-acct-btn\" (click)=\"adding = true\">Add external unit</button>\n }\n\n @for (sys of systems; track sys.id) {\n <a class=\"x-acct-card\" [routerLink]=\"[sys.id]\" style=\"display: block; text-decoration: none\">\n <div class=\"x-acct-row\" style=\"border-bottom: 0; padding-top: 0\">\n <strong style=\"color: var(--color-text)\">{{ sys.name }}</strong>\n @if (sys.isVerified) {\n <span class=\"x-acct-pill x-acct-pill-ok\">Verified</span>\n } @else {\n <span class=\"x-acct-pill\">Self-added</span>\n }\n </div>\n <p class=\"x-acct-sub\" style=\"margin: 0\">\n @if (sys.monthsLeft !== null) {\n @if (sys.monthsLeft > 0) {\n {{ sys.monthsLeft }} months of warranty left\n } @else {\n Warranty expired\n }\n } @else {\n Warranty length not set\n }\n @if (sys.status === 'claimed') {\n \u00B7 claim in progress\n }\n </p>\n </a>\n } @empty {\n @if (!adding) {\n <div class=\"x-acct-empty\">\n Nothing here yet \u2014 a warranty is registered automatically when a\n serialised item is delivered.\n </div>\n }\n }\n}\n" }]
1451
+ args: [{ standalone: false, selector: 'x-account-systems', template: "<h2 class=\"x-acct-h2\">My Systems</h2>\n<p class=\"x-acct-sub\">\n Every product you've bought from TILmart, with its serial and warranty.\n</p>\n\n@if (loading) {\n <div class=\"x-acct-empty\">Loading\u2026</div>\n} @else {\n @for (sys of systems; track sys.id) {\n <a class=\"x-acct-card\" [routerLink]=\"[sys.id]\" style=\"display: block; text-decoration: none\">\n <div class=\"x-acct-row\" style=\"border-bottom: 0; padding-top: 0\">\n <strong style=\"color: var(--color-text)\">{{ sys.name }}</strong>\n <span class=\"x-acct-pill x-acct-pill-ok\">Verified</span>\n </div>\n <p class=\"x-acct-sub\" style=\"margin: 0\">\n @if (sys.monthsLeft !== null) {\n @if (sys.monthsLeft > 0) {\n {{ sys.monthsLeft }} months of warranty left\n } @else {\n Warranty expired\n }\n } @else {\n Warranty length not set\n }\n @if (sys.status === 'claimed') {\n \u00B7 claim in progress\n }\n </p>\n </a>\n } @empty {\n <div class=\"x-acct-empty\">\n Nothing here yet \u2014 a warranty is registered automatically when a\n serialised item is delivered.\n </div>\n }\n}\n" }]
1496
1452
  }] });
1497
1453
 
1498
1454
  const SYMPTOM_OPTIONS = [
@@ -1701,6 +1657,7 @@ class AccountModule {
1701
1657
  AccountReturnDetailComponent,
1702
1658
  AccountReturnRequestComponent,
1703
1659
  AccountPrivacyComponent], imports: [SharedModule,
1660
+ PhoneInputDirective,
1704
1661
  TilmartElementsModule, i1.RouterModule] }); }
1705
1662
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: AccountModule, providers: [AccountStoreService], imports: [SharedModule,
1706
1663
  TilmartElementsModule,
@@ -1751,6 +1708,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
1751
1708
  providers: [AccountStoreService],
1752
1709
  imports: [
1753
1710
  SharedModule,
1711
+ PhoneInputDirective,
1754
1712
  TilmartElementsModule,
1755
1713
  RouterModule.forChild([
1756
1714
  {
@@ -1780,4 +1738,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
1780
1738
  }] });
1781
1739
 
1782
1740
  export { AccountModule };
1783
- //# sourceMappingURL=isaiahiroko-tilmart-ngx-apps-buyer-account.module-k8cM5aPL.mjs.map
1741
+ //# sourceMappingURL=isaiahiroko-tilmart-ngx-apps-buyer-account.module-BC4Hmgp5.mjs.map