@isaiahiroko/tilmart-ngx-apps-buyer 0.2.13 → 0.2.14

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 (41) hide show
  1. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-account.module-BfucEuVe.mjs → isaiahiroko-tilmart-ngx-apps-buyer-account.module-BmC56YP6.mjs} +2 -2
  2. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-account.module-BfucEuVe.mjs.map → isaiahiroko-tilmart-ngx-apps-buyer-account.module-BmC56YP6.mjs.map} +1 -1
  3. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-brand.module-DTjEtViO.mjs → isaiahiroko-tilmart-ngx-apps-buyer-brand.module-LlAegvE9.mjs} +2 -2
  4. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-brand.module-DTjEtViO.mjs.map → isaiahiroko-tilmart-ngx-apps-buyer-brand.module-LlAegvE9.mjs.map} +1 -1
  5. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-calculator.module-CMLFMP2B.mjs → isaiahiroko-tilmart-ngx-apps-buyer-calculator.module-DWoAyVV-.mjs} +3 -3
  6. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-calculator.module-CMLFMP2B.mjs.map → isaiahiroko-tilmart-ngx-apps-buyer-calculator.module-DWoAyVV-.mjs.map} +1 -1
  7. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-cart-add.service-gg1oFz4k.mjs → isaiahiroko-tilmart-ngx-apps-buyer-cart-add.service-e5NkeCxP.mjs} +2 -2
  8. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-cart-add.service-gg1oFz4k.mjs.map → isaiahiroko-tilmart-ngx-apps-buyer-cart-add.service-e5NkeCxP.mjs.map} +1 -1
  9. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-cart-sync.service-CZ6Rtsh0.mjs → isaiahiroko-tilmart-ngx-apps-buyer-cart-sync.service-BVcHlkPY.mjs} +2 -2
  10. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-cart-sync.service-CZ6Rtsh0.mjs.map → isaiahiroko-tilmart-ngx-apps-buyer-cart-sync.service-BVcHlkPY.mjs.map} +1 -1
  11. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-cart.module-DDnLh35f.mjs → isaiahiroko-tilmart-ngx-apps-buyer-cart.module-CPQXtkQK.mjs} +3 -3
  12. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-cart.module-DDnLh35f.mjs.map → isaiahiroko-tilmart-ngx-apps-buyer-cart.module-CPQXtkQK.mjs.map} +1 -1
  13. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-category.module-psEv0gPI.mjs → isaiahiroko-tilmart-ngx-apps-buyer-category.module-DG22qDXY.mjs} +2 -2
  14. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-category.module-psEv0gPI.mjs.map → isaiahiroko-tilmart-ngx-apps-buyer-category.module-DG22qDXY.mjs.map} +1 -1
  15. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-checkout.module--MuhVcsn.mjs → isaiahiroko-tilmart-ngx-apps-buyer-checkout.module-BMmT7kp6.mjs} +7 -4
  16. package/fesm2022/isaiahiroko-tilmart-ngx-apps-buyer-checkout.module-BMmT7kp6.mjs.map +1 -0
  17. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-compare.module-CUuUCdSR.mjs → isaiahiroko-tilmart-ngx-apps-buyer-compare.module-CNjhyY6Y.mjs} +3 -3
  18. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-compare.module-CUuUCdSR.mjs.map → isaiahiroko-tilmart-ngx-apps-buyer-compare.module-CNjhyY6Y.mjs.map} +1 -1
  19. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-home.module-CIjMrFJs.mjs → isaiahiroko-tilmart-ngx-apps-buyer-home.module-4FDjlSIl.mjs} +3 -3
  20. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-home.module-CIjMrFJs.mjs.map → isaiahiroko-tilmart-ngx-apps-buyer-home.module-4FDjlSIl.mjs.map} +1 -1
  21. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-index-DClxHXBO.mjs → isaiahiroko-tilmart-ngx-apps-buyer-index-Di3Zkp8Q.mjs} +3 -3
  22. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-index-DClxHXBO.mjs.map → isaiahiroko-tilmart-ngx-apps-buyer-index-Di3Zkp8Q.mjs.map} +1 -1
  23. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-isaiahiroko-tilmart-ngx-apps-buyer-Dt-Pg7R6.mjs → isaiahiroko-tilmart-ngx-apps-buyer-isaiahiroko-tilmart-ngx-apps-buyer-BgHFD6-W.mjs} +31 -31
  24. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-isaiahiroko-tilmart-ngx-apps-buyer-Dt-Pg7R6.mjs.map → isaiahiroko-tilmart-ngx-apps-buyer-isaiahiroko-tilmart-ngx-apps-buyer-BgHFD6-W.mjs.map} +1 -1
  25. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-kit-builder.module-Byzv__uM.mjs → isaiahiroko-tilmart-ngx-apps-buyer-kit-builder.module-Cxl0Slgj.mjs} +2 -2
  26. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-kit-builder.module-Byzv__uM.mjs.map → isaiahiroko-tilmart-ngx-apps-buyer-kit-builder.module-Cxl0Slgj.mjs.map} +1 -1
  27. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-kits.module-b-NhXuyJ.mjs → isaiahiroko-tilmart-ngx-apps-buyer-kits.module-wpiSkEYy.mjs} +2 -2
  28. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-kits.module-b-NhXuyJ.mjs.map → isaiahiroko-tilmart-ngx-apps-buyer-kits.module-wpiSkEYy.mjs.map} +1 -1
  29. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-order-confirmation.module-BCHrY5o-.mjs → isaiahiroko-tilmart-ngx-apps-buyer-order-confirmation.module-DIkn_aeF.mjs} +2 -2
  30. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-order-confirmation.module-BCHrY5o-.mjs.map → isaiahiroko-tilmart-ngx-apps-buyer-order-confirmation.module-DIkn_aeF.mjs.map} +1 -1
  31. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-payment-return.module-Cv00Zcep.mjs → isaiahiroko-tilmart-ngx-apps-buyer-payment-return.module-BwXKD4wP.mjs} +2 -2
  32. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-payment-return.module-Cv00Zcep.mjs.map → isaiahiroko-tilmart-ngx-apps-buyer-payment-return.module-BwXKD4wP.mjs.map} +1 -1
  33. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-product.module-C-fb8hJJ.mjs → isaiahiroko-tilmart-ngx-apps-buyer-product.module-B_Fi6fPh.mjs} +3 -3
  34. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-product.module-C-fb8hJJ.mjs.map → isaiahiroko-tilmart-ngx-apps-buyer-product.module-B_Fi6fPh.mjs.map} +1 -1
  35. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-request-installer.module-CPp0vaAY.mjs → isaiahiroko-tilmart-ngx-apps-buyer-request-installer.module-C6iwjdCG.mjs} +2 -2
  36. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-request-installer.module-CPp0vaAY.mjs.map → isaiahiroko-tilmart-ngx-apps-buyer-request-installer.module-C6iwjdCG.mjs.map} +1 -1
  37. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-search.module-DlEjhdkd.mjs → isaiahiroko-tilmart-ngx-apps-buyer-search.module-C_Nj0-7b.mjs} +2 -2
  38. package/fesm2022/{isaiahiroko-tilmart-ngx-apps-buyer-search.module-DlEjhdkd.mjs.map → isaiahiroko-tilmart-ngx-apps-buyer-search.module-C_Nj0-7b.mjs.map} +1 -1
  39. package/fesm2022/isaiahiroko-tilmart-ngx-apps-buyer.mjs +1 -1
  40. package/package.json +1 -1
  41. package/fesm2022/isaiahiroko-tilmart-ngx-apps-buyer-checkout.module--MuhVcsn.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"isaiahiroko-tilmart-ngx-apps-buyer-account.module-BfucEuVe.mjs","sources":["../../../projects/buyer/src/lib/pages/account/account-store.service.ts","../../../projects/buyer/src/lib/pages/account/account.component.ts","../../../projects/buyer/src/lib/pages/account/account.component.html","../../../projects/buyer/src/lib/pages/account/addresses/addresses.component.ts","../../../projects/buyer/src/lib/pages/account/addresses/addresses.component.html","../../../projects/buyer/src/lib/pages/account/order-status.ts","../../../projects/buyer/src/lib/pages/account/dashboard/dashboard.component.ts","../../../projects/buyer/src/lib/pages/account/dashboard/dashboard.component.html","../../../projects/buyer/src/lib/pages/account/order-detail/order-detail.component.ts","../../../projects/buyer/src/lib/pages/account/order-detail/order-detail.component.html","../../../projects/buyer/src/lib/pages/account/orders/orders.component.ts","../../../projects/buyer/src/lib/pages/account/orders/orders.component.html","../../../projects/buyer/src/lib/pages/account/payments/payments.component.ts","../../../projects/buyer/src/lib/pages/account/payments/payments.component.html","../../../projects/buyer/src/lib/pages/account/privacy/privacy.component.ts","../../../projects/buyer/src/lib/pages/account/privacy/privacy.component.html","../../../projects/buyer/src/lib/pages/account/returns/return-detail.component.ts","../../../projects/buyer/src/lib/pages/account/returns/return-detail.component.html","../../../projects/buyer/src/lib/pages/account/returns/return-request.component.ts","../../../projects/buyer/src/lib/pages/account/returns/return-request.component.html","../../../projects/buyer/src/lib/pages/account/returns/returns.component.ts","../../../projects/buyer/src/lib/pages/account/returns/returns.component.html","../../../projects/buyer/src/lib/services/account-api.service.ts","../../../projects/buyer/src/lib/pages/account/settings/settings.component.ts","../../../projects/buyer/src/lib/pages/account/settings/settings.component.html","../../../projects/buyer/src/lib/pages/account/systems/system-detail.component.ts","../../../projects/buyer/src/lib/pages/account/systems/system-detail.component.html","../../../projects/buyer/src/lib/pages/account/systems/systems.component.ts","../../../projects/buyer/src/lib/pages/account/systems/systems.component.html","../../../projects/buyer/src/lib/pages/account/systems/warranty-claim.component.ts","../../../projects/buyer/src/lib/pages/account/systems/warranty-claim.component.html","../../../projects/buyer/src/lib/pages/account/wishlists/wishlists.component.ts","../../../projects/buyer/src/lib/pages/account/wishlists/wishlists.component.html","../../../projects/buyer/src/lib/pages/account/account.module.ts"],"sourcesContent":["import { Injectable, inject } from '@angular/core';\nimport { ApiService, ControlService } from '@thescaffold/ngx-core';\nimport { Observable, ReplaySubject, catchError, firstValueFrom, map, of } from 'rxjs';\n\nexport interface AccountCustomer {\n id: string;\n userId?: string;\n name?: string;\n email?: string;\n phone?: string;\n}\n\n// P5.3 — resolves the signed-in visitor's commerce `Customer` once and\n// shares it across the account sub-pages (each of orders / addresses /\n// payments / wishlists needs the `customerId` to filter its own list).\n// A guest has no `Customer` here — the shell shows a sign-in prompt\n// instead of the sub-pages.\n@Injectable()\nexport class AccountStoreService {\n private readonly apiService = inject(ApiService);\n private readonly controlService = inject(ControlService);\n\n private customer$ = new ReplaySubject<AccountCustomer | null>(1);\n private loaded = false;\n\n customer(): Observable<AccountCustomer | null> {\n if (!this.loaded) {\n this.loaded = true;\n this.load();\n }\n return this.customer$.asObservable();\n }\n\n async refreshCustomer(): Promise<AccountCustomer | null> {\n const c = await this.fetch();\n this.customer$.next(c);\n return c;\n }\n\n private load(): void {\n this.fetch().then((c) => this.customer$.next(c));\n }\n\n private async fetch(): Promise<AccountCustomer | null> {\n if (!this.controlService.isLoggedIn()) return null;\n const userId = this.controlService.getContext()?.userId;\n if (!userId) return null;\n return firstValueFrom(\n this.apiService\n .on('apps/commerce/customer')\n .getMany({ userId, perPage: 1 } as any)\n .pipe(\n map((res: any) => {\n const row = (res?.data ?? [])[0];\n return row ? (row as AccountCustomer) : null;\n }),\n catchError(() => of(null)),\n ),\n );\n }\n}\n","import { Component, ViewEncapsulation, inject } from '@angular/core';\nimport { BaseDirective, ControlService, using } from '@thescaffold/ngx-core';\nimport { takeUntil } from 'rxjs';\nimport { AccountStoreService } from './account-store.service';\n\ninterface AccountNavItem {\n path: string;\n label: string;\n icon: string;\n}\n\nconst NAV: AccountNavItem[] = [\n { path: 'dashboard', label: 'Overview', icon: 'fa-gauge' },\n { path: 'orders', label: 'Orders', icon: 'fa-box' },\n { path: 'systems', label: 'My Systems', icon: 'fa-solar-panel' },\n { path: 'returns', label: 'Returns', icon: 'fa-rotate-left' },\n { path: 'addresses', label: 'Addresses', icon: 'fa-location-dot' },\n { path: 'payments', label: 'Payments', icon: 'fa-credit-card' },\n { path: 'wishlists', label: 'Wishlists', icon: 'fa-heart' },\n { path: 'settings', label: 'Settings', icon: 'fa-gear' },\n { path: 'privacy', label: 'Privacy & data', icon: 'fa-shield-halved' },\n];\n\n// P5.3, ACC-02…ACC-10 — the storefront account area. A shell with a nav\n// rail + `<router-outlet>`; the signed-in `Customer` is resolved once\n// here (via `AccountStoreService`) and read by every sub-page. Guest-\n// first like the rest of the storefront: a signed-out visitor sees a\n// sign-in prompt, not a redirect.\n@Component({\n standalone: false,\n selector: 'x-account',\n templateUrl: './account.component.html',\n styleUrl: './account.component.scss',\n encapsulation: ViewEncapsulation.None,\n})\nexport class AccountComponent extends BaseDirective {\n private readonly controlService = inject(ControlService);\n private readonly store = inject(AccountStoreService);\n\n readonly nav = NAV;\n isLoggedIn = false;\n loading = true;\n customerName = '';\n\n override init = () => {\n this.isLoggedIn = this.controlService.isLoggedIn();\n if (!this.isLoggedIn) {\n this.loading = false;\n return;\n }\n this.store\n .customer()\n .pipe(takeUntil(this.$))\n .subscribe(\n using((customer) => {\n this.loading = false;\n this.customerName =\n customer?.name || customer?.email || customer?.phone || 'Your account';\n }),\n );\n };\n\n signIn(): void {\n this.router.navigate(['/start']);\n }\n}\n","<div class=\"x-acct\">\n @if (loading) {\n <div class=\"x-acct-note\">Loading your account…</div>\n } @else if (!isLoggedIn) {\n <div class=\"x-acct-signin\">\n <h1>Your account</h1>\n <p>Sign in to see your orders, saved systems, addresses and settings.</p>\n <button type=\"button\" class=\"x-acct-btn\" (click)=\"signIn()\">Sign in</button>\n <p class=\"x-acct-muted\">\n No account yet? You can still\n <a routerLink=\"/track\">track an order</a> with your order number.\n </p>\n </div>\n } @else {\n <header class=\"x-acct-head\">\n <h1>{{ customerName }}</h1>\n </header>\n <div class=\"x-acct-body\">\n <nav class=\"x-acct-nav\">\n @for (item of nav; track item.path) {\n <a\n [routerLink]=\"item.path\"\n routerLinkActive=\"x-acct-nav-on\"\n class=\"x-acct-nav-link\"\n >\n <i class=\"fa-solid\" [class]=\"item.icon\"></i>\n <span>{{ item.label }}</span>\n </a>\n }\n </nav>\n <main class=\"x-acct-main\">\n <router-outlet></router-outlet>\n </main>\n </div>\n }\n</div>\n","import { Component, inject } from '@angular/core';\nimport { BaseDirective, notify, using } from '@thescaffold/ngx-core';\nimport { catchError, firstValueFrom, of, takeUntil } from 'rxjs';\nimport { AccountStoreService } from '../account-store.service';\nimport { StaticListOption, StaticListService } from '../../../services/static-list.service';\n\ninterface AddressVm {\n id: string;\n label: string;\n state?: string;\n lga?: string;\n city?: string;\n street: string;\n area?: string;\n landmark?: string;\n buildingInfo?: string;\n notes?: string;\n isDefault: boolean;\n}\n\ntype AddressForm = Omit<AddressVm, 'id' | 'isDefault'> & { id?: string };\n\nfunction blankForm(): AddressForm {\n return {\n label: '',\n state: '',\n lga: '',\n city: '',\n street: '',\n area: '',\n landmark: '',\n buildingInfo: '',\n notes: '',\n };\n}\n\n// P5.3, ACC-04 — the address book. Labelled addresses with one default,\n// editable and deletable, shared with checkout + (R2) installation.\n@Component({\n standalone: false,\n selector: 'x-account-addresses',\n templateUrl: './addresses.component.html',\n})\nexport class AccountAddressesComponent extends BaseDirective {\n private readonly store = inject(AccountStoreService);\n private readonly staticList = inject(StaticListService);\n\n states: StaticListOption[] = [];\n lgas: StaticListOption[] = [];\n lgasLoading = false;\n\n loading = true;\n customerId = '';\n addresses: AddressVm[] = [];\n\n editing = false;\n saving = false;\n form: AddressForm = blankForm();\n formError = '';\n\n override init = () => {\n void this.staticList.getStates().then((states) => (this.states = states));\n this.store\n .customer()\n .pipe(takeUntil(this.$))\n .subscribe(\n using((customer) => {\n if (!customer) {\n this.loading = false;\n return;\n }\n this.customerId = customer.id;\n void this.load();\n }),\n );\n };\n\n async onFormStateChange(): Promise<void> {\n this.form.lga = '';\n await this.loadLgas(this.form.state);\n }\n\n private async loadLgas(state?: string): Promise<void> {\n if (!state) {\n this.lgas = [];\n return;\n }\n this.lgasLoading = true;\n try {\n this.lgas = await this.staticList.getLgas(state).catch(() => []);\n } finally {\n this.lgasLoading = false;\n }\n }\n\n private async load(): Promise<void> {\n const res: any = await firstValueFrom(\n this.apiService\n .on('apps/commerce/address')\n .getMany({ customerId: this.customerId, perPage: 100 } as any)\n .pipe(catchError(() => of({ data: [] }))),\n );\n this.addresses = (res?.data ?? []).map((a: any) => ({\n id: a.id,\n label: a.label,\n state: a.state,\n lga: a.lga,\n city: a.city,\n street: a.street,\n area: a.area,\n landmark: a.landmark,\n buildingInfo: a.buildingInfo,\n notes: a.notes,\n isDefault: !!a.isDefault,\n }));\n this.loading = false;\n }\n\n startAdd(): void {\n this.form = blankForm();\n this.formError = '';\n this.editing = true;\n this.lgas = [];\n }\n\n startEdit(a: AddressVm): void {\n this.form = { ...a };\n this.formError = '';\n this.editing = true;\n void this.loadLgas(this.form.state);\n }\n\n cancel(): void {\n this.editing = false;\n }\n\n async save(): Promise<void> {\n if (this.saving) return;\n if (!this.form.label.trim() || !this.form.state || !this.form.street.trim()) {\n this.formError = 'Label, state and street are required.';\n return;\n }\n this.saving = true;\n this.formError = '';\n\n const payload: any = {\n customerId: this.customerId,\n label: this.form.label.trim(),\n state: this.form.state,\n lga: this.form.lga || undefined,\n city: this.form.city || undefined,\n street: this.form.street.trim(),\n area: this.form.area || this.form.city || this.form.state,\n landmark: this.form.landmark || undefined,\n buildingInfo: this.form.buildingInfo || undefined,\n notes: this.form.notes || undefined,\n };\n\n try {\n if (this.form.id) {\n await firstValueFrom(\n this.apiService.on('apps/commerce/address').update(this.form.id, payload),\n );\n } else {\n payload.isDefault = this.addresses.length === 0;\n await firstValueFrom(this.apiService.on('apps/commerce/address').create(payload));\n }\n this.editing = false;\n await this.load();\n } catch (err: any) {\n this.formError = err?.error?.message ?? 'Could not save this address.';\n } finally {\n this.saving = false;\n }\n }\n\n async remove(a: AddressVm): Promise<void> {\n if (!confirm(`Delete \"${a.label}\"?`)) return;\n try {\n await firstValueFrom(\n this.apiService.on('apps/commerce/address').remove(a.id),\n );\n await this.load();\n } catch {\n notify('Could not delete that address.', undefined, 'error');\n }\n }\n\n async makeDefault(a: AddressVm): Promise<void> {\n if (a.isDefault) return;\n const current = this.addresses.find((x) => x.isDefault);\n try {\n await firstValueFrom(\n this.apiService.on('apps/commerce/address').update(a.id, { isDefault: true }),\n );\n if (current) {\n await firstValueFrom(\n this.apiService\n .on('apps/commerce/address')\n .update(current.id, { isDefault: false }),\n );\n }\n await this.load();\n } catch {\n notify('Could not update the default address.', undefined, 'error');\n }\n }\n}\n","<h2 class=\"x-acct-h2\">Addresses</h2>\n<p class=\"x-acct-sub\">Used for delivery and, later, installation visits.</p>\n\n@if (loading) {\n <div class=\"x-acct-empty\">Loading…</div>\n} @else {\n @if (editing) {\n <div class=\"x-acct-card\">\n <strong>{{ form.id ? 'Edit address' : 'New address' }}</strong>\n <div style=\"margin-top: 14px\">\n <div class=\"x-acct-field\">\n <label>Label</label>\n <input [(ngModel)]=\"form.label\" placeholder=\"Home, Office, Site…\" />\n </div>\n <div class=\"x-acct-field\">\n <label>State</label>\n <select aria-label=\"State\" data-testid=\"address-state\" [(ngModel)]=\"form.state\" (ngModelChange)=\"onFormStateChange()\">\n <option value=\"\">Select a state</option>\n @for (s of states; track s.value) {\n <option [value]=\"s.value\">{{ s.label }}</option>\n }\n </select>\n </div>\n <div class=\"x-acct-field\">\n <label>LGA / area</label>\n <select aria-label=\"LGA\" data-testid=\"address-lga\" [(ngModel)]=\"form.lga\" [disabled]=\"!form.state || lgasLoading\">\n <option value=\"\">{{ form.state ? 'Select an LGA' : 'Select a state first' }}</option>\n @for (l of lgas; track l.value) {\n <option [value]=\"l.value\">{{ l.label }}</option>\n }\n </select>\n </div>\n <div class=\"x-acct-field\">\n <label>Street</label>\n <input [(ngModel)]=\"form.street\" />\n </div>\n <div class=\"x-acct-field\">\n <label>Nearest landmark</label>\n <input [(ngModel)]=\"form.landmark\" placeholder=\"e.g. opposite Zenith Bank\" />\n </div>\n <div class=\"x-acct-field\">\n <label>Building / flat info</label>\n <input [(ngModel)]=\"form.buildingInfo\" />\n </div>\n <div class=\"x-acct-field\">\n <label>Delivery notes</label>\n <input [(ngModel)]=\"form.notes\" />\n </div>\n @if (formError) {\n <div class=\"x-acct-err\">{{ formError }}</div>\n }\n <button type=\"button\" class=\"x-acct-btn\" [disabled]=\"saving\" (click)=\"save()\">\n {{ saving ? 'Saving…' : 'Save address' }}\n </button>\n <button type=\"button\" class=\"x-acct-btn-ghost\" (click)=\"cancel()\" style=\"margin-left: 8px\">\n Cancel\n </button>\n </div>\n </div>\n } @else {\n <button type=\"button\" class=\"x-acct-btn\" (click)=\"startAdd()\">Add an address</button>\n }\n\n @for (a of addresses; track a.id) {\n <div class=\"x-acct-card\">\n <div class=\"x-acct-row\" style=\"border-bottom: 0; padding-top: 0\">\n <strong>\n {{ a.label }}\n @if (a.isDefault) {\n <span class=\"x-acct-pill x-acct-pill-ok\" style=\"margin-left: 6px\">Default</span>\n }\n </strong>\n <span>\n <button type=\"button\" class=\"x-acct-btn-ghost\" (click)=\"startEdit(a)\">Edit</button>\n <button type=\"button\" class=\"x-acct-btn-ghost\" (click)=\"remove(a)\" style=\"margin-left: 6px\">\n Delete\n </button>\n </span>\n </div>\n <p class=\"x-acct-sub\" style=\"margin: 0\">\n {{ a.street }}@if (a.landmark) {, near {{ a.landmark }}}<br />\n {{ a.lga ? a.lga + ', ' : '' }}{{ a.state }}\n </p>\n @if (!a.isDefault) {\n <button\n type=\"button\"\n class=\"x-acct-btn-ghost\"\n style=\"margin-top: 10px\"\n (click)=\"makeDefault(a)\"\n >\n Make default\n </button>\n }\n </div>\n } @empty {\n @if (!editing) {\n <div class=\"x-acct-empty\">No saved addresses yet.</div>\n }\n }\n}\n","// PRD Appendix B — the 17 order states, buyer-friendly labels. Shared by\n// the account dashboard / orders / order-detail pages (the guest `/track`\n// page keeps its own copy — it's a separate module tree).\nexport const ORDER_STATUS_LABELS: Record<string, string> = {\n pending_payment: 'Awaiting payment',\n payment_received: 'Payment received',\n on_hold: 'On hold',\n confirmed: 'Confirmed',\n processing: 'Being prepared',\n partially_fulfilled: 'Partly on the way',\n ready_to_ship: 'Ready to ship',\n ready_for_pickup: 'Ready for pickup',\n dispatched: 'Dispatched',\n out_for_delivery: 'Out for delivery',\n failed_delivery: 'Delivery attempt failed',\n delivered: 'Delivered',\n completed: 'Completed',\n cancelled: 'Cancelled',\n return_in_flight: 'Return in progress',\n returned: 'Returned',\n refunded: 'Refunded',\n};\n\nexport function orderStatusLabel(status: string): string {\n return ORDER_STATUS_LABELS[status] ?? status;\n}\n\nexport function orderStatusTone(status: string): 'ok' | 'warn' | 'bad' | '' {\n if (status === 'delivered' || status === 'completed') return 'ok';\n if (status === 'cancelled' || status === 'refunded' || status === 'failed_delivery')\n return 'bad';\n if (status === 'pending_payment' || status === 'on_hold' || status === 'return_in_flight')\n return 'warn';\n return '';\n}\n","import { Component, inject } from '@angular/core';\nimport { BaseDirective, using } from '@thescaffold/ngx-core';\nimport { catchError, firstValueFrom, of, switchMap, takeUntil } from 'rxjs';\nimport { AccountStoreService } from '../account-store.service';\nimport { orderStatusLabel } from '../order-status';\n\ninterface DashOrderVm {\n id: string;\n orderNumber: string;\n status: string;\n statusLabel: string;\n placedAt?: string;\n grandTotal: number;\n currency: string;\n}\n\ninterface DashWarrantyVm {\n id: string;\n label: string;\n expiresAt?: string;\n daysLeft: number;\n}\n\nconst OPEN_STATUSES = new Set([\n 'pending_payment',\n 'payment_received',\n 'on_hold',\n 'confirmed',\n 'processing',\n 'partially_fulfilled',\n 'ready_to_ship',\n 'ready_for_pickup',\n 'dispatched',\n 'out_for_delivery',\n 'failed_delivery',\n]);\n\n// P5.3, ACC-02 — the account overview. Open-order count, the three most\n// recent orders, warranties inside 60 days of expiry, and quick links.\n// Bookings / wallet balance are R2 / PAY-11 (not built) — deliberately\n// left off rather than stubbed.\n@Component({\n standalone: false,\n selector: 'x-account-dashboard',\n templateUrl: './dashboard.component.html',\n})\nexport class AccountDashboardComponent extends BaseDirective {\n private readonly store = inject(AccountStoreService);\n\n loading = true;\n customerId = '';\n openCount = 0;\n recentOrders: DashOrderVm[] = [];\n expiringWarranties: DashWarrantyVm[] = [];\n wishlistCount = 0;\n\n referralCode = '';\n referralConverted = 0;\n referralPending = 0;\n\n override init = () => {\n this.store\n .customer()\n .pipe(\n takeUntil(this.$),\n switchMap((customer) => {\n if (!customer) return of(null);\n this.customerId = customer.id;\n return of(customer);\n }),\n )\n .subscribe(\n using((customer) => {\n if (!customer) {\n this.loading = false;\n return;\n }\n void this.hydrate(customer.id);\n }),\n );\n };\n\n private async hydrate(customerId: string): Promise<void> {\n const [orders, warranties, wishlists, refCode, refs] = await Promise.all([\n firstValueFrom(\n this.apiService\n .on('apps/commerce/order')\n .getMany({ customerId, perPage: 100 } as any)\n .pipe(catchError(() => of({ data: [] } as any))),\n ),\n firstValueFrom(\n this.apiService\n .on('apps/commerce/warranty')\n .getMany({ customerId, perPage: 100 } as any)\n .pipe(catchError(() => of({ data: [] } as any))),\n ),\n firstValueFrom(\n this.apiService\n .on('apps/commerce/wishlist')\n .getMany({ customerId, perPage: 100 } as any)\n .pipe(catchError(() => of({ data: [] } as any))),\n ),\n firstValueFrom(\n this.apiService\n .get('apps/commerce/referral/my-code')\n .pipe(catchError(() => of(undefined))),\n ),\n firstValueFrom(\n this.apiService\n .get('apps/commerce/referral/mine')\n .pipe(catchError(() => of({ data: [] } as any))),\n ),\n ]);\n\n this.referralCode = (refCode as any)?.data?.code ?? '';\n const refRows: any[] = (refs as any)?.data ?? [];\n this.referralConverted = refRows.filter(\n (r) => r.status === 'converted' || r.status === 'rewarded',\n ).length;\n this.referralPending = refRows.filter(\n (r) => r.status === 'pending' && r.refereeCustomerId,\n ).length;\n\n const orderRows: any[] = orders?.data ?? [];\n this.openCount = orderRows.filter((o) => OPEN_STATUSES.has(o.status)).length;\n this.recentOrders = orderRows\n .slice()\n .sort((a, b) => this.ts(b.placedAt ?? b.createdAt) - this.ts(a.placedAt ?? a.createdAt))\n .slice(0, 3)\n .map((o) => ({\n id: o.id,\n orderNumber: o.orderNumber,\n status: o.status,\n statusLabel: orderStatusLabel(o.status),\n placedAt: o.placedAt ?? o.createdAt,\n grandTotal: Number(o.grandTotal ?? 0),\n currency: o.currency ?? 'NGN',\n }));\n\n const now = Date.now();\n this.expiringWarranties = (warranties?.data ?? [])\n .filter((w: any) => w.expiresAt)\n .map((w: any) => ({\n id: w.id,\n label: w.serialNumberId ? 'Registered unit' : 'Warranty',\n expiresAt: w.expiresAt,\n daysLeft: Math.round((this.ts(w.expiresAt) - now) / 86_400_000),\n }))\n .filter((w: DashWarrantyVm) => w.daysLeft >= 0 && w.daysLeft <= 60)\n .sort((a: DashWarrantyVm, b: DashWarrantyVm) => a.daysLeft - b.daysLeft);\n\n this.wishlistCount = (wishlists?.data ?? []).length;\n this.loading = false;\n }\n\n private ts(v?: string): number {\n const t = v ? Date.parse(v) : NaN;\n return Number.isNaN(t) ? 0 : t;\n }\n}\n","<h2 class=\"x-acct-h2\">Overview</h2>\n<p class=\"x-acct-sub\">A snapshot of your orders and cover.</p>\n\n@if (loading) {\n <div class=\"x-acct-empty\">Loading…</div>\n} @else {\n <div class=\"x-acct-card\">\n <div class=\"x-acct-row\">\n <span>Open orders</span>\n <strong>{{ openCount }}</strong>\n </div>\n <div class=\"x-acct-row\">\n <span>Saved wishlists</span>\n <a routerLink=\"../wishlists\">{{ wishlistCount }}</a>\n </div>\n </div>\n\n <div class=\"x-acct-card\">\n <div class=\"x-acct-row\" style=\"border-bottom: 0; padding-bottom: 4px\">\n <strong>Recent orders</strong>\n <a routerLink=\"../orders\" class=\"x-acct-btn-ghost\">All orders</a>\n </div>\n @for (order of recentOrders; track order.id) {\n <a class=\"x-acct-row\" [routerLink]=\"['../orders', order.id]\">\n <span>\n <strong>{{ order.orderNumber }}</strong>\n <br />\n <span class=\"x-acct-pill\">{{ order.statusLabel }}</span>\n </span>\n <span>{{ order.currency }} {{ order.grandTotal | number: '1.2-2' }}</span>\n </a>\n } @empty {\n <div class=\"x-acct-empty\">No orders yet.</div>\n }\n </div>\n\n @if (referralCode) {\n <div class=\"x-acct-card\">\n <div class=\"x-acct-row\" style=\"border-bottom: 0; padding-bottom: 4px\">\n <strong>Refer a friend</strong>\n </div>\n <p class=\"x-acct-sub\" style=\"margin: 0 0 8px\">\n Share your code — you both benefit when they complete their first order.\n </p>\n <div class=\"x-acct-row\">\n <span>Your code</span>\n <strong style=\"letter-spacing: 1px\">{{ referralCode }}</strong>\n </div>\n @if (referralConverted || referralPending) {\n <div class=\"x-acct-row\">\n <span>Referrals</span>\n <span>{{ referralConverted }} completed · {{ referralPending }} pending</span>\n </div>\n }\n </div>\n }\n\n @if (expiringWarranties.length) {\n <div class=\"x-acct-card\">\n <div class=\"x-acct-row\" style=\"border-bottom: 0; padding-bottom: 4px\">\n <strong>Warranties expiring soon</strong>\n <a routerLink=\"../systems\" class=\"x-acct-btn-ghost\">My Systems</a>\n </div>\n @for (w of expiringWarranties; track w.id) {\n <div class=\"x-acct-row\">\n <span>{{ w.label }}</span>\n <span class=\"x-acct-pill-warn x-acct-pill\">{{ w.daysLeft }} days left</span>\n </div>\n }\n </div>\n }\n}\n","import { Component, inject } from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\nimport { BaseDirective, notify, using } from '@thescaffold/ngx-core';\nimport { catchError, forkJoin, of, takeUntil } from 'rxjs';\nimport { CartStoreService } from '../../../services/cart-store.service';\nimport { orderStatusLabel, orderStatusTone } from '../order-status';\n\ninterface LineVm {\n variantId: string;\n name: string;\n quantity: number;\n unitPrice: number;\n lineTotal: number;\n fulfilmentStatus?: string;\n}\n\ninterface TimelineVm {\n toStatus: string;\n label: string;\n at?: string;\n reason?: string;\n}\n\ninterface PaymentVm {\n provider?: string;\n method?: string;\n status?: string;\n amount: number;\n}\n\n// P5.3, ACC-03 — one order in full: lines, totals, the transition\n// timeline, payments, and the context actions (reorder, invoice, track,\n// return). Return / review targets are P5.9 / P5.11 — linked when they\n// exist, absent otherwise rather than dead-ended.\n@Component({\n standalone: false,\n selector: 'x-account-order-detail',\n templateUrl: './order-detail.component.html',\n})\nexport class AccountOrderDetailComponent extends BaseDirective {\n private readonly route = inject(ActivatedRoute);\n private readonly cart = inject(CartStoreService);\n\n loading = true;\n found = false;\n\n orderId = '';\n orderNumber = '';\n status = '';\n statusLabel = '';\n tone = '';\n placedAt?: string;\n currency = 'NGN';\n recipientName = '';\n recipientPhone = '';\n\n lines: LineVm[] = [];\n subtotal = 0;\n deliveryTotal = 0;\n taxTotal = 0;\n discountTotal = 0;\n grandTotal = 0;\n amountPaid = 0;\n codAmountDue = 0;\n\n timeline: TimelineVm[] = [];\n payments: PaymentVm[] = [];\n\n override init = () => {\n this.orderId = this.route.snapshot.paramMap.get('id') ?? '';\n if (!this.orderId) {\n this.loading = false;\n return;\n }\n\n forkJoin({\n order: this.apiService\n .on('apps/commerce/order')\n .getOne(this.orderId)\n .pipe(catchError(() => of(undefined))),\n lines: this.apiService\n .on('apps/commerce/order-line')\n .getMany({ orderId: this.orderId, perPage: 200 } as any)\n .pipe(catchError(() => of(undefined))),\n history: this.apiService\n .on('apps/commerce/order-status-history')\n .getMany({ orderId: this.orderId, perPage: 200 } as any)\n .pipe(catchError(() => of(undefined))),\n payments: this.apiService\n .on('apps/commerce/payment')\n .getMany({ orderId: this.orderId, perPage: 50 } as any)\n .pipe(catchError(() => of(undefined))),\n })\n .pipe(takeUntil(this.$))\n .subscribe(\n using((res: any) => {\n this.loading = false;\n const order = res?.order?.data;\n if (!order) return;\n this.found = true;\n\n this.orderNumber = order.orderNumber;\n this.status = order.status;\n this.statusLabel = orderStatusLabel(order.status);\n this.tone = orderStatusTone(order.status);\n this.placedAt = order.placedAt ?? order.createdAt;\n this.currency = order.currency ?? 'NGN';\n this.recipientName = order.recipientName ?? '';\n this.recipientPhone = order.recipientPhone ?? '';\n this.subtotal = Number(order.subtotal ?? 0);\n this.deliveryTotal = Number(order.deliveryTotal ?? 0);\n this.taxTotal = Number(order.taxTotal ?? 0);\n this.discountTotal = Number(order.discountTotal ?? 0);\n this.grandTotal = Number(order.grandTotal ?? 0);\n this.amountPaid = Number(order.amountPaid ?? 0);\n this.codAmountDue = Number(order.codAmountDue ?? 0);\n\n this.lines = (res?.lines?.data ?? []).map((l: any) => ({\n variantId: l.variantId,\n name: l.nameSnapshot || 'Item',\n quantity: Number(l.quantity ?? 1),\n unitPrice: Number(l.unitPrice ?? 0),\n lineTotal: Number(l.unitPrice ?? 0) * Number(l.quantity ?? 1),\n fulfilmentStatus: l.fulfilmentStatus,\n }));\n\n this.timeline = (res?.history?.data ?? [])\n .slice()\n .sort((a: any, b: any) => this.ts(a.at ?? a.createdAt) - this.ts(b.at ?? b.createdAt))\n .map((h: any) => ({\n toStatus: h.toStatus,\n label: orderStatusLabel(h.toStatus),\n at: h.at ?? h.createdAt,\n reason: h.reason,\n }));\n\n this.payments = (res?.payments?.data ?? []).map((p: any) => ({\n provider: p.provider,\n method: p.method,\n status: p.status,\n amount: Number(p.amount ?? 0),\n }));\n }),\n );\n };\n\n reorder(): void {\n if (!this.lines.length) return;\n for (const line of this.lines) {\n this.cart.addLine({\n variantId: line.variantId,\n productId: '',\n name: line.name,\n quantity: line.quantity,\n unitPrice: line.unitPrice,\n currency: this.currency,\n });\n }\n notify('Added to your cart', undefined, 'success');\n this.router.navigate(['/cart']);\n }\n\n private ts(v?: string): number {\n const t = v ? Date.parse(v) : NaN;\n return Number.isNaN(t) ? 0 : t;\n }\n}\n","<a routerLink=\"../\" class=\"x-acct-btn-ghost\">‹ All orders</a>\n\n@if (loading) {\n <div class=\"x-acct-empty\" style=\"margin-top: 16px\">Loading…</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 order.</div>\n </div>\n} @else {\n <header style=\"margin: 16px 0 8px\">\n <h2 class=\"x-acct-h2\">{{ orderNumber }}</h2>\n <p class=\"x-acct-sub\">\n @if (placedAt) {\n Placed {{ placedAt | date: 'medium' }} ·\n }\n <span\n class=\"x-acct-pill\"\n [class.x-acct-pill-ok]=\"tone === 'ok'\"\n [class.x-acct-pill-warn]=\"tone === 'warn'\"\n [class.x-acct-pill-bad]=\"tone === 'bad'\"\n >{{ statusLabel }}</span\n >\n </p>\n </header>\n\n <div class=\"x-acct-card\" style=\"display: flex; flex-wrap: wrap; gap: 10px\">\n <button type=\"button\" class=\"x-acct-btn\" (click)=\"reorder()\">Buy these again</button>\n <a\n class=\"x-acct-btn-ghost\"\n [routerLink]=\"['/order/invoice']\"\n [queryParams]=\"{ orderId: orderId }\"\n >VAT invoice</a\n >\n <a\n class=\"x-acct-btn-ghost\"\n [routerLink]=\"['/track']\"\n [queryParams]=\"{ number: orderNumber }\"\n >Track delivery</a\n >\n <a class=\"x-acct-btn-ghost\" [routerLink]=\"['return']\">Request a return</a>\n <a class=\"x-acct-btn-ghost\" routerLink=\"/help\">Contact support</a>\n </div>\n\n <div class=\"x-acct-card\">\n <strong>Items</strong>\n @for (line of lines; track line.variantId) {\n <div class=\"x-acct-row\">\n <span>\n {{ line.name }}\n <span class=\"x-acct-sub\" style=\"display: block; margin-top: 2px\">\n Qty {{ line.quantity }} · {{ currency }} {{ line.unitPrice | number: '1.2-2' }} each\n @if (line.fulfilmentStatus) {\n · {{ line.fulfilmentStatus }}\n }\n </span>\n </span>\n <strong>{{ currency }} {{ line.lineTotal | number: '1.2-2' }}</strong>\n </div>\n }\n <div class=\"x-acct-row\"><span>Subtotal</span><span>{{ currency }} {{ subtotal | number: '1.2-2' }}</span></div>\n @if (discountTotal > 0) {\n <div class=\"x-acct-row\"><span>Discount</span><span>− {{ currency }} {{ discountTotal | number: '1.2-2' }}</span></div>\n }\n <div class=\"x-acct-row\"><span>Delivery</span><span>{{ currency }} {{ deliveryTotal | number: '1.2-2' }}</span></div>\n <div class=\"x-acct-row\"><span>VAT (incl.)</span><span>{{ currency }} {{ taxTotal | number: '1.2-2' }}</span></div>\n <div class=\"x-acct-row\"><strong>Total</strong><strong>{{ currency }} {{ grandTotal | number: '1.2-2' }}</strong></div>\n <div class=\"x-acct-row\"><span>Paid</span><span>{{ currency }} {{ amountPaid | number: '1.2-2' }}</span></div>\n @if (codAmountDue > 0) {\n <div class=\"x-acct-row\">\n <span>Due on delivery</span>\n <strong>{{ currency }} {{ codAmountDue | number: '1.2-2' }}</strong>\n </div>\n }\n </div>\n\n @if (recipientName || recipientPhone) {\n <div class=\"x-acct-card\">\n <strong>Delivery to</strong>\n <div class=\"x-acct-row\">\n <span>{{ recipientName }}</span>\n <span>{{ recipientPhone }}</span>\n </div>\n </div>\n }\n\n @if (payments.length) {\n <div class=\"x-acct-card\">\n <strong>Payments</strong>\n @for (p of payments; track $index) {\n <div class=\"x-acct-row\">\n <span>{{ p.method || p.provider || 'Payment' }}</span>\n <span class=\"x-acct-pill\">{{ p.status }}</span>\n <span>{{ currency }} {{ p.amount | number: '1.2-2' }}</span>\n </div>\n }\n </div>\n }\n\n @if (timeline.length) {\n <div class=\"x-acct-card\">\n <strong>Progress</strong>\n @for (step of timeline; track $index) {\n <div class=\"x-acct-row\">\n <span>\n {{ step.label }}\n @if (step.reason) {\n <span class=\"x-acct-sub\" style=\"display: block; margin-top: 2px\">{{ step.reason }}</span>\n }\n </span>\n <span class=\"x-acct-sub\">{{ step.at | date: 'short' }}</span>\n </div>\n }\n </div>\n }\n}\n","import { Component, inject } from '@angular/core';\nimport { BaseDirective, using } from '@thescaffold/ngx-core';\nimport { catchError, firstValueFrom, of, takeUntil } from 'rxjs';\nimport { AccountStoreService } from '../account-store.service';\nimport { orderStatusLabel, orderStatusTone } from '../order-status';\n\ninterface OrderRowVm {\n id: string;\n orderNumber: string;\n status: string;\n statusLabel: string;\n tone: string;\n placedAt?: string;\n lineCount: number;\n grandTotal: number;\n codAmountDue: number;\n currency: string;\n}\n\n// P5.3, ACC-03 — the buyer's order history. Every Order for their\n// Customer, newest first, each linking to the detail page (reorder /\n// invoice / track / return live there).\n@Component({\n standalone: false,\n selector: 'x-account-orders',\n templateUrl: './orders.component.html',\n})\nexport class AccountOrdersComponent extends BaseDirective {\n private readonly store = inject(AccountStoreService);\n\n loading = true;\n orders: OrderRowVm[] = [];\n\n override init = () => {\n this.store\n .customer()\n .pipe(takeUntil(this.$))\n .subscribe(\n using((customer) => {\n if (!customer) {\n this.loading = false;\n return;\n }\n void this.load(customer.id);\n }),\n );\n };\n\n private async load(customerId: string): Promise<void> {\n const res: any = await firstValueFrom(\n this.apiService\n .on('apps/commerce/order')\n .getMany({ customerId, perPage: 200 } as any)\n .pipe(catchError(() => of({ data: [] }))),\n );\n this.orders = (res?.data ?? [])\n .slice()\n .sort(\n (a: any, b: any) =>\n this.ts(b.placedAt ?? b.createdAt) - this.ts(a.placedAt ?? a.createdAt),\n )\n .map((o: any) => ({\n id: o.id,\n orderNumber: o.orderNumber,\n status: o.status,\n statusLabel: orderStatusLabel(o.status),\n tone: orderStatusTone(o.status),\n placedAt: o.placedAt ?? o.createdAt,\n lineCount: Number(o.lineCount ?? 0),\n grandTotal: Number(o.grandTotal ?? 0),\n codAmountDue: Number(o.codAmountDue ?? 0),\n currency: o.currency ?? 'NGN',\n }));\n this.loading = false;\n }\n\n private ts(v?: string): number {\n const t = v ? Date.parse(v) : NaN;\n return Number.isNaN(t) ? 0 : t;\n }\n}\n","<h2 class=\"x-acct-h2\">Orders</h2>\n<p class=\"x-acct-sub\">Track a delivery, download an invoice or start a return.</p>\n\n@if (loading) {\n <div class=\"x-acct-empty\">Loading your orders…</div>\n} @else if (!orders.length) {\n <div class=\"x-acct-card\">\n <div class=\"x-acct-empty\">\n No orders yet. When you place one it'll show up here.\n </div>\n </div>\n} @else {\n <div class=\"x-acct-card\">\n @for (order of orders; track order.id) {\n <a class=\"x-acct-row\" [routerLink]=\"[order.id]\">\n <span>\n <strong>{{ order.orderNumber }}</strong>\n @if (order.placedAt) {\n <span class=\"x-acct-sub\" style=\"margin: 2px 0 0; display: block\">\n {{ order.placedAt | date: 'mediumDate' }}\n </span>\n }\n </span>\n <span\n class=\"x-acct-pill\"\n [class.x-acct-pill-ok]=\"order.tone === 'ok'\"\n [class.x-acct-pill-warn]=\"order.tone === 'warn'\"\n [class.x-acct-pill-bad]=\"order.tone === 'bad'\"\n >{{ order.statusLabel }}</span\n >\n <span style=\"text-align: right\">\n <strong>{{ order.currency }} {{ order.grandTotal | number: '1.2-2' }}</strong>\n @if (order.codAmountDue > 0) {\n <span class=\"x-acct-sub\" style=\"margin: 2px 0 0; display: block\">\n {{ order.currency }} {{ order.codAmountDue | number: '1.2-2' }} on delivery\n </span>\n }\n </span>\n </a>\n @if (order.tone !== 'bad') {\n <div class=\"x-acct-row-actions\">\n <a\n class=\"x-acct-link\"\n routerLink=\"/order/invoice\"\n [queryParams]=\"{ orderId: order.id }\"\n >Invoice (PDF)</a\n >\n </div>\n }\n }\n </div>\n}\n","import { Component, inject } from '@angular/core';\nimport { BaseDirective, using } from '@thescaffold/ngx-core';\nimport { catchError, firstValueFrom, of, takeUntil } from 'rxjs';\nimport { AccountStoreService } from '../account-store.service';\n\ninterface PaymentRowVm {\n id: string;\n orderId?: string;\n orderNumber: string;\n provider?: string;\n method?: string;\n status?: string;\n amount: number;\n currency: string;\n paidAt?: string;\n createdAt?: string;\n}\n\n// P5.3, ACC-05 (the R1 slice) — a read-only payment history across the\n// buyer's orders. Saved / tokenised cards are P1 and not built.\n@Component({\n standalone: false,\n selector: 'x-account-payments',\n templateUrl: './payments.component.html',\n})\nexport class AccountPaymentsComponent extends BaseDirective {\n private readonly store = inject(AccountStoreService);\n\n loading = true;\n payments: PaymentRowVm[] = [];\n\n override init = () => {\n this.store\n .customer()\n .pipe(takeUntil(this.$))\n .subscribe(\n using((customer) => {\n if (!customer) {\n this.loading = false;\n return;\n }\n void this.load(customer.id);\n }),\n );\n };\n\n private async load(customerId: string): Promise<void> {\n const ordersRes: any = await firstValueFrom(\n this.apiService\n .on('apps/commerce/order')\n .getMany({ customerId, perPage: 200 } as any)\n .pipe(catchError(() => of({ data: [] }))),\n );\n const orders: any[] = ordersRes?.data ?? [];\n const numberById = new Map<string, string>(\n orders.map((o) => [o.id, o.orderNumber]),\n );\n\n const perOrder = await Promise.all(\n orders.map((o) =>\n firstValueFrom(\n this.apiService\n .on('apps/commerce/payment')\n .getMany({ orderId: o.id, perPage: 50 } as any)\n .pipe(catchError(() => of({ data: [] }))),\n ),\n ),\n );\n\n this.payments = perOrder\n .flatMap((res: any) => res?.data ?? [])\n .map((p: any) => ({\n id: p.id,\n orderId: p.orderId,\n orderNumber: numberById.get(p.orderId) ?? '',\n provider: p.provider,\n method: p.method,\n status: p.status,\n amount: Number(p.amount ?? 0),\n currency: p.currency ?? 'NGN',\n paidAt: p.paidAt,\n createdAt: p.createdAt,\n }))\n .sort((a, b) => this.ts(b.paidAt ?? b.createdAt) - this.ts(a.paidAt ?? a.createdAt));\n this.loading = false;\n }\n\n private ts(v?: string): number {\n const t = v ? Date.parse(v) : NaN;\n return Number.isNaN(t) ? 0 : t;\n }\n}\n","<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…</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 }} · {{ (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","import { Component, inject } from '@angular/core';\nimport { ApiService, BaseDirective, notify } from '@thescaffold/ngx-core';\nimport { firstValueFrom } from 'rxjs';\nimport { AccountStoreService } from '../account-store.service';\n\n// P7.7, SEC-04 / SEC-05 (NDPR) — the customer's data controls: export a\n// copy of everything held about them, and lodge an account-deletion\n// request. Cookie / tracking consent is the site-wide consent bar; this\n// page is the data-subject access + erasure surface.\n@Component({\n standalone: false,\n selector: 'x-account-privacy',\n templateUrl: './privacy.component.html',\n})\nexport class AccountPrivacyComponent extends BaseDirective {\n private readonly api = inject(ApiService);\n private readonly store = inject(AccountStoreService);\n\n customerId?: string;\n exporting = false;\n requesting = false;\n deletionLodged = false;\n deletionReason = '';\n\n override init = () => {\n this.store\n .customer()\n .subscribe((c) => (this.customerId = c?.id));\n };\n\n async downloadData(): Promise<void> {\n if (this.exporting) return;\n this.exporting = true;\n try {\n const res: any = await firstValueFrom(\n this.api.post('apps/commerce/data-request/export', {\n customerId: this.customerId,\n }),\n );\n const bundle = res?.data ?? res;\n const blob = new Blob([JSON.stringify(bundle, null, 2)], {\n type: 'application/json',\n });\n const url = URL.createObjectURL(blob);\n const a = document.createElement('a');\n a.href = url;\n a.download = `tilmart-data-${new Date().toISOString().slice(0, 10)}.json`;\n a.click();\n URL.revokeObjectURL(url);\n } catch {\n notify('We couldn’t prepare your data right now. Please try again.', undefined, 'error');\n } finally {\n this.exporting = false;\n }\n }\n\n async requestDeletion(): Promise<void> {\n if (this.requesting) return;\n this.requesting = true;\n try {\n await firstValueFrom(\n this.api.post('apps/commerce/data-request', {\n type: 'deletion',\n customerId: this.customerId,\n note: this.deletionReason || undefined,\n }),\n );\n this.deletionLodged = true;\n notify('Your deletion request has been lodged.', undefined, 'success');\n } catch {\n notify('We couldn’t lodge your request. Please try again.', undefined, 'error');\n } finally {\n this.requesting = false;\n }\n }\n}\n","<div class=\"x-pv\">\n <h1 class=\"x-pv-title\">Privacy &amp; your data</h1>\n <p class=\"x-pv-intro\">\n Under the Nigeria Data Protection Act you can get a copy of the personal\n data we hold about you, and ask us to delete your account.\n </p>\n\n <section class=\"x-pv-card\">\n <h2>Download my data</h2>\n <p>\n A machine-readable copy of your profile, addresses, orders, returns,\n warranties, reviews, questions, support messages, notification\n preferences and saved tools.\n </p>\n <button\n type=\"button\"\n class=\"x-pv-btn\"\n [disabled]=\"exporting || !customerId\"\n (click)=\"downloadData()\"\n >\n {{ exporting ? 'Preparing…' : 'Download my data (JSON)' }}\n </button>\n </section>\n\n <section class=\"x-pv-card\">\n <h2>Delete my account</h2>\n @if (deletionLodged) {\n <p class=\"x-pv-ok\">\n Your request is lodged. Our team will complete it within 30 days and\n email you when it’s done.\n </p>\n } @else {\n <p>\n We’ll remove your personal details. Some records are kept where the\n law requires — see below.\n </p>\n <textarea\n class=\"x-pv-reason\"\n rows=\"2\"\n placeholder=\"Anything you'd like us to know (optional)\"\n [(ngModel)]=\"deletionReason\"\n ></textarea>\n <button\n type=\"button\"\n class=\"x-pv-btn x-pv-btn-danger\"\n [disabled]=\"requesting || !customerId\"\n (click)=\"requestDeletion()\"\n >\n {{ requesting ? 'Sending…' : 'Request account deletion' }}\n </button>\n }\n </section>\n\n <section class=\"x-pv-card x-pv-retain\">\n <h2>What we keep, and why</h2>\n <ul>\n <li><strong>Order &amp; payment records</strong> — financial and tax law.</li>\n <li><strong>Warranty registrations &amp; claim outcomes</strong> — our ongoing warranty obligation to the product owner.</li>\n <li><strong>Audit-log entries</strong> — security and accountability.</li>\n </ul>\n <p class=\"x-pv-fine\">\n Kept records are stripped of contact details where possible and are not\n used for marketing.\n </p>\n </section>\n</div>\n\n<style>\n .x-pv { max-width: 640px; }\n .x-pv-title { font-size: 22px; font-weight: 800; color: var(--color-text); margin: 0 0 6px; }\n .x-pv-intro { font-size: 14px; color: var(--color-text-muted); line-height: 1.6; margin: 0 0 20px; }\n .x-pv-card { border: 1px solid var(--color-border); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; }\n .x-pv-card h2 { font-size: 15px; font-weight: 700; color: var(--color-text); margin: 0 0 6px; }\n .x-pv-card p { font-size: 13.5px; color: var(--color-text-muted); line-height: 1.6; margin: 0 0 12px; }\n .x-pv-btn { font: inherit; font-weight: 700; font-size: 13.5px; padding: 10px 18px; border: 0; border-radius: 8px; background: var(--color-brand); color: #fff; cursor: pointer; }\n .x-pv-btn:disabled { opacity: 0.5; cursor: not-allowed; }\n .x-pv-btn-danger { background: var(--color-danger, #c0392b); }\n .x-pv-reason { width: 100%; box-sizing: border-box; font: inherit; padding: 8px 10px; border: 1px solid var(--color-border); border-radius: 6px; background: var(--color-surface, #fff); color: var(--color-text); margin-bottom: 12px; }\n .x-pv-ok { color: var(--color-text); }\n .x-pv-retain ul { margin: 0 0 8px; padding-left: 18px; font-size: 13.5px; color: var(--color-text-muted); line-height: 1.7; }\n .x-pv-fine { font-size: 12.5px; }\n</style>\n","import { Component, inject } from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\nimport { BaseDirective, using } from '@thescaffold/ngx-core';\nimport { catchError, firstValueFrom, forkJoin, of, takeUntil } from 'rxjs';\n\ninterface ReturnLineVm {\n name: string;\n quantity: number;\n inspectionOutcome: string;\n acceptedQuantity?: number;\n disposition?: string;\n}\n\nconst STATUS_LABELS: Record<string, string> = {\n requested: 'Requested',\n approved: 'Approved',\n rejected: 'Rejected',\n awaiting_return: 'Awaiting your return',\n in_transit: 'On its way back',\n received: 'Received',\n inspecting: 'Being inspected',\n resolved: 'Resolved',\n cancelled: 'Cancelled',\n};\n\n// P5.9, RET-03 — one RMA in full: status, instructions, per-line\n// inspection outcome, the resolution and any refund amount.\n@Component({\n standalone: false,\n selector: 'x-account-return-detail',\n templateUrl: './return-detail.component.html',\n})\nexport class AccountReturnDetailComponent extends BaseDirective {\n private readonly route = inject(ActivatedRoute);\n\n loading = true;\n found = false;\n\n rmaNumber = '';\n status = '';\n statusLabel = '';\n reasonCode = '';\n method?: string;\n instructions?: string;\n whoPaysReturn?: string;\n resolution?: string;\n refundAmount?: number;\n createdAt?: string;\n resolvedAt?: string;\n orderId = '';\n lines: ReturnLineVm[] = [];\n\n override init = () => {\n const id = this.route.snapshot.paramMap.get('id') ?? '';\n if (!id) {\n this.loading = false;\n return;\n }\n\n forkJoin({\n request: this.apiService\n .on('apps/commerce/return-request')\n .getOne(id)\n .pipe(catchError(() => of(undefined))),\n lines: this.apiService\n .on('apps/commerce/return-line')\n .getMany({ returnRequestId: id, perPage: 100 } as any)\n .pipe(catchError(() => of({ data: [] }))),\n })\n .pipe(takeUntil(this.$))\n .subscribe(\n using((res: any) => {\n this.loading = false;\n const r = res?.request?.data;\n if (!r) return;\n this.found = true;\n this.rmaNumber = r.rmaNumber;\n this.status = r.status;\n this.statusLabel = STATUS_LABELS[r.status] ?? r.status;\n this.reasonCode = r.reasonCode;\n this.method = r.method;\n this.instructions = r.instructions;\n this.whoPaysReturn = r.whoPaysReturn;\n this.resolution = r.resolution;\n this.refundAmount = r.refundAmount != null ? Number(r.refundAmount) : undefined;\n this.createdAt = r.createdAt;\n this.resolvedAt = r.resolvedAt;\n this.orderId = r.orderId;\n const rawLines: any[] = res?.lines?.data ?? [];\n this.lines = rawLines.map((l: any) => ({\n name: 'Item',\n quantity: Number(l.quantity ?? 1),\n inspectionOutcome: l.inspectionOutcome,\n acceptedQuantity: l.acceptedQuantity,\n disposition: l.disposition,\n }));\n void this.nameLines(r.orderId, rawLines);\n }),\n );\n };\n\n private async nameLines(orderId: string, rawLines: any[]): Promise<void> {\n const orderLines: any = await firstValueFrom(\n this.apiService\n .on('apps/commerce/order-line')\n .getMany({ orderId, perPage: 200 } as any)\n .pipe(catchError(() => of({ data: [] }))),\n );\n const nameById = new Map<string, string>(\n (orderLines?.data ?? []).map((o: any) => [o.id, o.nameSnapshot || 'Item']),\n );\n this.lines = this.lines.map((vm, i) => ({\n ...vm,\n name: nameById.get(rawLines[i]?.orderLineId) ?? 'Item',\n }));\n }\n}\n","<a routerLink=\"../\" class=\"x-acct-btn-ghost\">‹ All returns</a>\n\n@if (loading) {\n <div class=\"x-acct-empty\" style=\"margin-top: 16px\">Loading…</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 return.</div>\n </div>\n} @else {\n <header style=\"margin: 16px 0 8px\">\n <h2 class=\"x-acct-h2\">{{ rmaNumber }}</h2>\n <p class=\"x-acct-sub\">\n <span class=\"x-acct-pill\">{{ statusLabel }}</span>\n · requested {{ createdAt | date: 'mediumDate' }}\n @if (orderId) {\n · <a [routerLink]=\"['/account/orders', orderId]\">view order</a>\n }\n </p>\n </header>\n\n @if (instructions) {\n <div class=\"x-acct-card\">\n <strong>What to do</strong>\n <p class=\"x-acct-sub\" style=\"margin: 6px 0 0\">{{ instructions }}</p>\n </div>\n }\n\n <div class=\"x-acct-card\">\n <strong>Items</strong>\n @for (line of lines; track $index) {\n <div class=\"x-acct-row\">\n <span>\n {{ line.name }}\n <span class=\"x-acct-sub\" style=\"display: block; margin-top: 2px\">\n Qty {{ line.quantity }}\n @if (line.inspectionOutcome !== 'pending') {\n · inspected: {{ line.inspectionOutcome }}\n @if (line.acceptedQuantity != null) {\n ({{ line.acceptedQuantity }} accepted)\n }\n }\n </span>\n </span>\n </div>\n }\n </div>\n\n @if (resolution) {\n <div class=\"x-acct-card\">\n <strong>Outcome</strong>\n <div class=\"x-acct-row\">\n <span>{{ resolution }}</span>\n @if (refundAmount != null) {\n <strong>Refund: {{ refundAmount | number: '1.2-2' }}</strong>\n }\n </div>\n @if (resolvedAt) {\n <p class=\"x-acct-sub\" style=\"margin: 0\">Resolved {{ resolvedAt | date: 'medium' }}</p>\n }\n </div>\n }\n}\n","import { Component, inject } from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\nimport { BaseDirective, notify } from '@thescaffold/ngx-core';\nimport { catchError, firstValueFrom, of } from 'rxjs';\nimport { AccountStoreService } from '../account-store.service';\n\ninterface ReturnableLineVm {\n orderLineId: string;\n name: string;\n orderedQty: number;\n selected: boolean;\n quantity: number;\n}\n\nconst REASONS: { code: string; label: string }[] = [\n { code: 'damaged_in_transit', label: 'Damaged in transit' },\n { code: 'wrong_item', label: 'Wrong item sent' },\n { code: 'not_as_described', label: 'Not as described' },\n { code: 'faulty_on_arrival', label: 'Faulty on arrival' },\n { code: 'changed_mind', label: 'Changed my mind' },\n { code: 'missing_parts', label: 'Missing parts' },\n];\n\nconst METHODS: { code: string; label: string }[] = [\n { code: 'pickup', label: 'Pickup from my address' },\n { code: 'drop_off', label: 'Drop off at a collection point' },\n { code: 'station', label: 'Drop at a pickup station' },\n];\n\n// P5.9, RET-02 — the self-serve return request. Pick items + a reason;\n// the eligibility check (window, who pays) runs before the RMA is minted.\n@Component({\n standalone: false,\n selector: 'x-account-return-request',\n templateUrl: './return-request.component.html',\n})\nexport class AccountReturnRequestComponent extends BaseDirective {\n private readonly route = inject(ActivatedRoute);\n private readonly store = inject(AccountStoreService);\n\n readonly reasons = REASONS;\n readonly methods = METHODS;\n\n loading = true;\n orderId = '';\n orderNumber = '';\n customerId = '';\n lines: ReturnableLineVm[] = [];\n\n reasonCode = '';\n method = 'pickup';\n notes = '';\n\n checking = false;\n eligibility: { eligible: boolean; reasons: string[]; windowDays: number; whoPaysReturn: string } | null = null;\n submitting = false;\n error = '';\n createdRma = '';\n\n override init = () => {\n this.orderId = this.route.snapshot.paramMap.get('id') ?? '';\n this.store.customer().subscribe((c) => (this.customerId = c?.id ?? ''));\n void this.load();\n };\n\n private async load(): Promise<void> {\n const [order, lines] = await Promise.all([\n firstValueFrom(\n this.apiService\n .on('apps/commerce/order')\n .getOne(this.orderId)\n .pipe(catchError(() => of(undefined))),\n ),\n firstValueFrom(\n this.apiService\n .on('apps/commerce/order-line')\n .getMany({ orderId: this.orderId, perPage: 200 } as any)\n .pipe(catchError(() => of({ data: [] }))),\n ),\n ]);\n this.orderNumber = (order as any)?.data?.orderNumber ?? '';\n this.lines = ((lines as any)?.data ?? []).map((l: any) => ({\n orderLineId: l.id,\n name: l.nameSnapshot || 'Item',\n orderedQty: Number(l.quantity ?? 1),\n selected: false,\n quantity: Number(l.quantity ?? 1),\n }));\n this.loading = false;\n }\n\n get selectedLines(): ReturnableLineVm[] {\n return this.lines.filter((l) => l.selected);\n }\n\n get canSubmit(): boolean {\n return (\n !!this.reasonCode &&\n this.selectedLines.length > 0 &&\n this.eligibility?.eligible === true\n );\n }\n\n async checkEligibility(): Promise<void> {\n if (!this.reasonCode) {\n this.eligibility = null;\n return;\n }\n this.checking = true;\n try {\n const res: any = await firstValueFrom(\n this.apiService.post('apps/commerce/return-request/eligibility', {\n orderId: this.orderId,\n reasonCode: this.reasonCode,\n }),\n );\n this.eligibility = res?.data ?? null;\n } catch {\n this.eligibility = null;\n } finally {\n this.checking = false;\n }\n }\n\n async submit(): Promise<void> {\n if (this.submitting || !this.canSubmit) return;\n this.submitting = true;\n this.error = '';\n try {\n const res: any = await firstValueFrom(\n this.apiService.post('apps/commerce/return-request/request', {\n orderId: this.orderId,\n customerId: this.customerId || undefined,\n reasonCode: this.reasonCode,\n method: this.method,\n notes: this.notes || undefined,\n lines: this.selectedLines.map((l) => ({\n orderLineId: l.orderLineId,\n quantity: Math.min(l.quantity, l.orderedQty),\n })),\n }),\n );\n if (res?.status === 'error') {\n this.error = res?.message ?? 'Could not create your return.';\n return;\n }\n this.createdRma = res?.data?.rmaNumber ?? '';\n notify('Return requested', undefined, 'success');\n } catch (err: any) {\n this.error = err?.error?.message ?? 'Could not create your return.';\n } finally {\n this.submitting = false;\n }\n }\n}\n","<a [routerLink]=\"['/account/orders', orderId]\" class=\"x-acct-btn-ghost\">‹ Back to order</a>\n\n@if (loading) {\n <div class=\"x-acct-empty\" style=\"margin-top: 16px\">Loading…</div>\n} @else if (createdRma) {\n <div class=\"x-acct-card\" style=\"margin-top: 16px\">\n <h2 class=\"x-acct-h2\">Return requested</h2>\n <p class=\"x-acct-sub\">\n Your RMA number is <strong>{{ createdRma }}</strong>. We've emailed the\n instructions — you can also see them on the returns page.\n </p>\n <a class=\"x-acct-btn\" routerLink=\"/account/returns\">View my returns</a>\n </div>\n} @else {\n <h2 class=\"x-acct-h2\" style=\"margin-top: 16px\">Return an item</h2>\n <p class=\"x-acct-sub\">Order {{ orderNumber }}</p>\n\n <div class=\"x-acct-card\">\n <strong>Which items?</strong>\n @for (line of lines; track line.orderLineId) {\n <div class=\"x-acct-row\">\n <label class=\"x-acct-checkline\" style=\"flex: 1\">\n <input type=\"checkbox\" [(ngModel)]=\"line.selected\" />\n {{ line.name }}\n </label>\n @if (line.selected && line.orderedQty > 1) {\n <input\n type=\"number\"\n min=\"1\"\n [max]=\"line.orderedQty\"\n [(ngModel)]=\"line.quantity\"\n style=\"width: 64px\"\n />\n }\n <span class=\"x-acct-sub\">of {{ line.orderedQty }}</span>\n </div>\n }\n </div>\n\n <div class=\"x-acct-card\">\n <div class=\"x-acct-field\">\n <label>Reason</label>\n <select aria-label=\"Reason\" [ngModel]=\"reasonCode\" (ngModelChange)=\"reasonCode = $event; checkEligibility()\">\n <option value=\"\">Choose a reason</option>\n @for (r of reasons; track r.code) {\n <option [value]=\"r.code\">{{ r.label }}</option>\n }\n </select>\n </div>\n\n @if (checking) {\n <div class=\"x-acct-empty\">Checking eligibility…</div>\n } @else if (eligibility) {\n @if (eligibility.eligible) {\n <div class=\"x-acct-ok\">\n Eligible — {{ eligibility.windowDays }}-day window.\n {{ eligibility.whoPaysReturn === 'customer' ? 'You cover return delivery for this reason.' : 'Return delivery is on us.' }}\n </div>\n } @else {\n <div class=\"x-acct-err\">\n @switch (eligibility.reasons[0]) {\n @case ('window-closed') { The return window for this order has closed. }\n @case ('change-of-mind-not-allowed') { Change-of-mind returns aren't accepted for these items. }\n @case ('returns-not-offered') { Returns aren't available for this order. }\n @default { This return isn't eligible. }\n }\n </div>\n }\n }\n\n <div class=\"x-acct-field\">\n <label>How will you return it?</label>\n <select aria-label=\"How will you return it?\" [(ngModel)]=\"method\">\n @for (m of methods; track m.code) {\n <option [value]=\"m.code\">{{ m.label }}</option>\n }\n </select>\n </div>\n\n <div class=\"x-acct-field\">\n <label>Anything else we should know? (optional)</label>\n <input [(ngModel)]=\"notes\" />\n </div>\n\n @if (error) {\n <div class=\"x-acct-err\">{{ error }}</div>\n }\n <button\n type=\"button\"\n class=\"x-acct-btn\"\n [disabled]=\"!canSubmit || submitting\"\n (click)=\"submit()\"\n >\n {{ submitting ? 'Submitting…' : 'Request return' }}\n </button>\n </div>\n}\n","import { Component, inject } from '@angular/core';\nimport { BaseDirective, using } from '@thescaffold/ngx-core';\nimport { catchError, firstValueFrom, of, takeUntil } from 'rxjs';\nimport { AccountStoreService } from '../account-store.service';\n\ninterface ReturnRowVm {\n id: string;\n rmaNumber: string;\n reasonCode: string;\n status: string;\n statusLabel: string;\n tone: string;\n resolution?: string;\n createdAt?: string;\n}\n\nconst STATUS_LABELS: Record<string, string> = {\n requested: 'Requested',\n approved: 'Approved',\n rejected: 'Rejected',\n awaiting_return: 'Awaiting your return',\n in_transit: 'On its way back',\n received: 'Received',\n inspecting: 'Being inspected',\n resolved: 'Resolved',\n cancelled: 'Cancelled',\n};\n\nconst REASON_LABELS: Record<string, string> = {\n damaged_in_transit: 'Damaged in transit',\n wrong_item: 'Wrong item',\n not_as_described: 'Not as described',\n faulty_on_arrival: 'Faulty on arrival',\n changed_mind: 'Changed mind',\n missing_parts: 'Missing parts',\n};\n\n// P5.9, RET-02/03 — the buyer's returns list. Each RMA links to its\n// detail (status timeline + resolution).\n@Component({\n standalone: false,\n selector: 'x-account-returns',\n templateUrl: './returns.component.html',\n})\nexport class AccountReturnsComponent extends BaseDirective {\n private readonly store = inject(AccountStoreService);\n\n loading = true;\n returns: ReturnRowVm[] = [];\n\n override init = () => {\n this.store\n .customer()\n .pipe(takeUntil(this.$))\n .subscribe(\n using((customer) => {\n if (!customer) {\n this.loading = false;\n return;\n }\n void this.load(customer.id);\n }),\n );\n };\n\n private async load(customerId: string): Promise<void> {\n const res: any = await firstValueFrom(\n this.apiService\n .on('apps/commerce/return-request')\n .getMany({ customerId, perPage: 100 } as any)\n .pipe(catchError(() => of({ data: [] }))),\n );\n this.returns = (res?.data ?? [])\n .slice()\n .sort((a: any, b: any) => this.ts(b.createdAt) - this.ts(a.createdAt))\n .map((r: any) => ({\n id: r.id,\n rmaNumber: r.rmaNumber,\n reasonCode: REASON_LABELS[r.reasonCode] ?? r.reasonCode,\n status: r.status,\n statusLabel: STATUS_LABELS[r.status] ?? r.status,\n tone:\n r.status === 'resolved'\n ? 'ok'\n : r.status === 'rejected' || r.status === 'cancelled'\n ? 'bad'\n : 'warn',\n resolution: r.resolution,\n createdAt: r.createdAt,\n }));\n this.loading = false;\n }\n\n private ts(v?: string): number {\n const t = v ? Date.parse(v) : NaN;\n return Number.isNaN(t) ? 0 : t;\n }\n}\n","<h2 class=\"x-acct-h2\">Returns</h2>\n<p class=\"x-acct-sub\">Start a return from any order — it'll show up here.</p>\n\n@if (loading) {\n <div class=\"x-acct-empty\">Loading…</div>\n} @else if (!returns.length) {\n <div class=\"x-acct-card\">\n <div class=\"x-acct-empty\">\n No returns yet. Open an order and choose \"Request a return\".\n </div>\n </div>\n} @else {\n <div class=\"x-acct-card\">\n @for (r of returns; track r.id) {\n <a class=\"x-acct-row\" [routerLink]=\"[r.id]\">\n <span>\n <strong>{{ r.rmaNumber }}</strong>\n <span class=\"x-acct-sub\" style=\"display: block; margin-top: 2px\">\n {{ r.reasonCode }} · {{ r.createdAt | date: 'mediumDate' }}\n </span>\n </span>\n <span\n class=\"x-acct-pill\"\n [class.x-acct-pill-ok]=\"r.tone === 'ok'\"\n [class.x-acct-pill-warn]=\"r.tone === 'warn'\"\n [class.x-acct-pill-bad]=\"r.tone === 'bad'\"\n >{{ r.statusLabel }}</span\n >\n @if (r.resolution) {\n <span class=\"x-acct-sub\">{{ r.resolution }}</span>\n }\n </a>\n }\n </div>\n}\n","import { Injectable, inject } from '@angular/core';\nimport { ApiService } from '@thescaffold/ngx-core';\nimport { firstValueFrom } from 'rxjs';\n\nexport interface AccountProfile {\n first_name?: string;\n last_name?: string;\n phone_number?: string;\n referral_code?: string;\n}\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AccountApiService {\n private readonly apiService = inject(ApiService);\n\n async getProfile(): Promise<AccountProfile> {\n const res: any = await firstValueFrom(\n this.apiService.get('apps/identity/attributes'),\n );\n return res?.data?.attributes?.user ?? {};\n }\n\n async updateProfile(payload: {\n phone_number?: string;\n referral_code?: string;\n }): Promise<void> {\n await firstValueFrom(\n this.apiService.patch('apps/identity/attributes/user', payload),\n );\n }\n\n async changePassword(payload: {\n currentSecret: string;\n newSecret: string;\n confirmNewSecret: string;\n }): Promise<void> {\n await firstValueFrom(\n this.apiService.post('apps/identity/reset-secret/change', payload),\n );\n }\n}\n","import { Component, inject } from '@angular/core';\nimport { ThemeService } from '@thescaffold/ngx-common';\nimport { BaseDirective, ControlService, notify } from '@thescaffold/ngx-core';\nimport { firstValueFrom } from 'rxjs';\nimport { AccountApiService } from '../../../services/account-api.service';\n\ntype ThemeChoice = 'light' | 'dark' | 'system';\n\nconst CATEGORIES: { key: string; label: string; locked?: boolean; consent?: boolean }[] = [\n { key: 'transactional', label: 'Order & payment updates', locked: true },\n { key: 'delivery', label: 'Delivery & dispatch' },\n { key: 'marketing', label: 'Offers & promotions', consent: true },\n { key: 'price_alert', label: 'Price drop alerts' },\n { key: 'back_in_stock', label: 'Back-in-stock alerts' },\n];\n\nconst CHANNELS: { key: string; label: string }[] = [\n { key: 'email', label: 'Email' },\n { key: 'sms', label: 'SMS' },\n { key: 'whatsapp', label: 'WhatsApp' },\n];\n\n// P5.3, ACC-01 / ACC-09 / ACC-10 — profile, password, theme and\n// notification preferences in one place. Theme rides the scaffold\n// PreferenceService (P5.2); notifications call `notification-preference/\n// mine` (P5.2's NotificationPreferenceWorkflow).\n@Component({\n standalone: false,\n selector: 'x-account-settings',\n templateUrl: './settings.component.html',\n})\nexport class AccountSettingsComponent extends BaseDirective {\n private readonly accountApi = inject(AccountApiService);\n private readonly themeService = inject(ThemeService);\n private readonly controlService = inject(ControlService);\n\n readonly categories = CATEGORIES;\n readonly channels = CHANNELS;\n\n loadingProfile = true;\n savingProfile = false;\n profileError = '';\n fullName = '';\n phoneNumber = '';\n\n currentSecret = '';\n newSecret = '';\n confirmNewSecret = '';\n showCurrentSecret = false;\n showNewSecret = false;\n showConfirmSecret = false;\n changingPassword = false;\n passwordError = '';\n passwordDone = false;\n\n theme: ThemeChoice = 'system';\n\n loadingPrefs = true;\n savingPrefs = false;\n prefsError = '';\n prefCategories: Record<string, string[]> = {};\n marketingConsent = false;\n quietHoursEnabled = false;\n quietHoursStart = '21:00';\n quietHoursEnd = '07:00';\n unsubscribedAll = false;\n\n get canChangePassword(): boolean {\n return (\n !!this.currentSecret &&\n !!this.newSecret &&\n this.newSecret === this.confirmNewSecret\n );\n }\n\n override init = () => {\n void this.loadProfile();\n void this.loadTheme();\n void this.loadPrefs();\n };\n\n private async loadProfile(): Promise<void> {\n try {\n const p = await this.accountApi.getProfile();\n this.fullName = [p.first_name, p.last_name].filter(Boolean).join(' ');\n this.phoneNumber = p.phone_number ?? '';\n } catch {\n this.profileError = 'Could not load your profile.';\n } finally {\n this.loadingProfile = false;\n }\n }\n\n private async loadTheme(): Promise<void> {\n try {\n const v = await firstValueFrom(this.themeService.get());\n if (v === 'light' || v === 'dark' || v === 'system') this.theme = v;\n } catch {\n // keep default\n }\n }\n\n private async loadPrefs(): Promise<void> {\n try {\n const res: any = await firstValueFrom(\n this.apiService.get('apps/commerce/notification-preference/mine'),\n );\n const pref = res?.data;\n if (pref) {\n this.prefCategories = pref.categories ?? {};\n this.marketingConsent = !!pref.marketingConsent;\n this.quietHoursEnabled = !!pref.quietHoursEnabled;\n this.quietHoursStart = pref.quietHoursStart ?? '21:00';\n this.quietHoursEnd = pref.quietHoursEnd ?? '07:00';\n this.unsubscribedAll = !!pref.unsubscribedAll;\n }\n } catch {\n this.prefsError = 'Could not load your notification preferences.';\n } finally {\n this.loadingPrefs = false;\n }\n }\n\n async saveProfile(): Promise<void> {\n if (this.savingProfile) return;\n this.savingProfile = true;\n this.profileError = '';\n try {\n await this.accountApi.updateProfile({ phone_number: this.phoneNumber });\n notify('Profile saved', undefined, 'success');\n } catch (err: any) {\n this.profileError = err?.error?.message ?? 'Could not save your profile.';\n } finally {\n this.savingProfile = false;\n }\n }\n\n async changePassword(): Promise<void> {\n if (this.changingPassword || !this.canChangePassword) return;\n this.changingPassword = true;\n this.passwordError = '';\n try {\n await this.accountApi.changePassword({\n currentSecret: this.currentSecret,\n newSecret: this.newSecret,\n confirmNewSecret: this.confirmNewSecret,\n });\n this.passwordDone = true;\n setTimeout(() => {\n this.controlService.logout();\n this.router.navigate(['/start']);\n }, 1500);\n } catch (err: any) {\n this.passwordError =\n err?.error?.message ?? 'Could not change your password.';\n } finally {\n this.changingPassword = false;\n }\n }\n\n setTheme(choice: ThemeChoice): void {\n this.theme = choice;\n this.themeService.set({ value: choice });\n }\n\n channelOn(category: string, channel: string): boolean {\n return (this.prefCategories[category] ?? []).includes(channel);\n }\n\n toggleChannel(category: string, channel: string): void {\n const set = new Set(this.prefCategories[category] ?? []);\n set.has(channel) ? set.delete(channel) : set.add(channel);\n this.prefCategories = { ...this.prefCategories, [category]: Array.from(set) };\n }\n\n async savePrefs(): Promise<void> {\n if (this.savingPrefs) return;\n this.savingPrefs = true;\n this.prefsError = '';\n try {\n await firstValueFrom(\n this.apiService.post('apps/commerce/notification-preference/mine', {\n categories: this.prefCategories,\n marketingConsent: this.marketingConsent,\n marketingConsentSource: 'account',\n quietHoursEnabled: this.quietHoursEnabled,\n quietHoursStart: this.quietHoursStart,\n quietHoursEnd: this.quietHoursEnd,\n unsubscribedAll: this.unsubscribedAll,\n }),\n );\n notify('Preferences saved', undefined, 'success');\n } catch (err: any) {\n this.prefsError = err?.error?.message ?? 'Could not save your preferences.';\n } finally {\n this.savingPrefs = false;\n }\n }\n}\n","<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…</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…\" />\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…' : '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…</div>\n }\n <button\n type=\"button\"\n class=\"x-acct-btn\"\n [disabled]=\"!canChangePassword || changingPassword\"\n (click)=\"changePassword()\"\n >\n {{ changingPassword ? 'Saving…' : '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…</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 — 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…' : 'Save preferences' }}\n </button>\n }\n</div>\n","import { Component, inject } from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\nimport { BaseDirective, using } from '@thescaffold/ngx-core';\nimport { catchError, firstValueFrom, of, takeUntil } from 'rxjs';\n\ninterface ClaimVm {\n id: string;\n status: string;\n faultDescription?: string;\n triageOutcome?: string;\n createdAt?: string;\n}\n\ninterface NoticeVm {\n id: string;\n severity: string;\n title: string;\n message: string;\n actionRequired?: string;\n}\n\n// P5.6, ACC-06 — one registered system: product, serial, dates,\n// certificate download (P4.18), any open safety notice for the variant,\n// and the claim history. \"Start a claim\" links to the claim form.\n@Component({\n standalone: false,\n selector: 'x-account-system-detail',\n templateUrl: './system-detail.component.html',\n})\nexport class AccountSystemDetailComponent extends BaseDirective {\n private readonly route = inject(ActivatedRoute);\n\n loading = true;\n found = false;\n\n warrantyId = '';\n productName = 'Registered unit';\n productSlug?: string;\n variantId = '';\n serial?: string;\n isVerified = false;\n startsAt?: string;\n expiresAt?: string;\n monthsLeft: number | null = null;\n status = '';\n orderLineId?: string;\n\n claims: ClaimVm[] = [];\n notices: NoticeVm[] = [];\n downloadingCert = false;\n\n override init = () => {\n this.warrantyId = this.route.snapshot.paramMap.get('id') ?? '';\n if (!this.warrantyId) {\n this.loading = false;\n return;\n }\n\n this.apiService\n .on('apps/commerce/warranty')\n .getOne(this.warrantyId)\n .pipe(\n takeUntil(this.$),\n catchError(() => of(undefined)),\n )\n .subscribe(\n using((res: any) => {\n const w = res?.data;\n if (!w) {\n this.loading = false;\n return;\n }\n this.found = true;\n this.variantId = w.variantId;\n this.isVerified = !!w.isVerified;\n this.startsAt = w.startsAt;\n this.expiresAt = w.expiresAt;\n this.status = w.status;\n this.orderLineId = w.orderLineId;\n this.monthsLeft = w.expiresAt\n ? Math.max(\n 0,\n Math.round(\n (Date.parse(w.expiresAt) - Date.now()) / (86_400_000 * 30.44),\n ),\n )\n : null;\n void this.hydrate(w);\n }),\n );\n };\n\n private async hydrate(w: any): Promise<void> {\n const [variant, claims, notices] = await Promise.all([\n firstValueFrom(\n this.apiService\n .on('apps/commerce/product-variant')\n .getOne(w.variantId)\n .pipe(catchError(() => of(undefined))),\n ),\n firstValueFrom(\n this.apiService\n .on('apps/commerce/warranty-claim')\n .getMany({ warrantyId: w.id, perPage: 50 } as any)\n .pipe(catchError(() => of({ data: [] }))),\n ),\n firstValueFrom(\n this.apiService\n .on('apps/commerce/safety-notice')\n .getMany({ variantId: w.variantId, status: 'published', perPage: 20 } as any)\n .pipe(catchError(() => of({ data: [] }))),\n ),\n ]);\n\n const v: any = variant;\n if (v?.data?.productId) {\n const p: any = await firstValueFrom(\n this.apiService\n .on('apps/commerce/product')\n .getOne(v.data.productId)\n .pipe(catchError(() => of(undefined))),\n );\n this.productName = p?.data?.name ?? v?.data?.sku ?? this.productName;\n this.productSlug = p?.data?.slug;\n }\n\n this.claims = ((claims as any)?.data ?? []).map((c: any) => ({\n id: c.id,\n status: c.status,\n faultDescription: c.faultDescription,\n triageOutcome: c.triageOutcome,\n createdAt: c.createdAt,\n }));\n this.notices = ((notices as any)?.data ?? []).map((n: any) => ({\n id: n.id,\n severity: n.severity,\n title: n.title,\n message: n.message,\n actionRequired: n.actionRequired,\n }));\n this.loading = false;\n }\n\n // The doc endpoint needs the session token (global AuthMiddleware), so a\n // plain <a href> won't do — fetch the print HTML through ApiService and\n // hand it to a new window (RET-06 \"certificates are downloadable\").\n async downloadCertificate(): Promise<void> {\n if (this.downloadingCert) return;\n this.downloadingCert = true;\n try {\n const res: any = await firstValueFrom(\n this.apiService.get(\n `apps/commerce/document/warranty/${this.warrantyId}/certificate`,\n { format: 'html' },\n ),\n );\n const html = typeof res === 'string' ? res : (res?.data ?? res?.html);\n const win = window.open('', '_blank');\n if (win && typeof html === 'string') {\n win.document.open();\n win.document.write(html);\n win.document.close();\n }\n } finally {\n this.downloadingCert = false;\n }\n }\n}\n","<a routerLink=\"../\" class=\"x-acct-btn-ghost\">‹ My Systems</a>\n\n@if (loading) {\n <div class=\"x-acct-empty\" style=\"margin-top: 16px\">Loading…</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>⚠ {{ 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 || '—' }}</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') : '—' }}\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…' : '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 · {{ c.triageOutcome }}\n }\n </span>\n </span>\n <span class=\"x-acct-pill\">{{ c.status }}</span>\n </div>\n }\n </div>\n }\n}\n","import { Component, inject } from '@angular/core';\nimport { BaseDirective, notify, using } from '@thescaffold/ngx-core';\nimport { catchError, firstValueFrom, of, takeUntil } from 'rxjs';\nimport { AccountStoreService } from '../account-store.service';\n\ninterface SystemVm {\n id: string;\n name: string;\n slug?: string;\n serial?: string;\n isVerified: boolean;\n expiresAt?: string;\n monthsLeft: number | null;\n status: string;\n}\n\n// P5.6, ACC-06 / RET-06 — \"My Systems\": every product the customer owns,\n// its serial, its warranty standing. Auto-populated by delivery (P4.15);\n// a unit bought elsewhere is added here as unverified.\n@Component({\n standalone: false,\n selector: 'x-account-systems',\n templateUrl: './systems.component.html',\n})\nexport class AccountSystemsComponent extends BaseDirective {\n private readonly store = inject(AccountStoreService);\n\n loading = true;\n customerId = '';\n clientId = '';\n workspaceId = '';\n systems: SystemVm[] = [];\n\n adding = false;\n savingExternal = false;\n externalError = '';\n ext = { variantSku: '', serial: '', startsAt: '', months: 12 };\n\n override init = () => {\n this.store\n .customer()\n .pipe(takeUntil(this.$))\n .subscribe(\n using((customer) => {\n if (!customer) {\n this.loading = false;\n return;\n }\n this.customerId = customer.id;\n void this.load();\n }),\n );\n };\n\n private async load(): Promise<void> {\n const res: any = await firstValueFrom(\n this.apiService\n .on('apps/commerce/warranty')\n .getMany({ customerId: this.customerId, perPage: 200 } as any)\n .pipe(catchError(() => of({ data: [] }))),\n );\n const rows: any[] = res?.data ?? [];\n this.systems = await Promise.all(\n rows.map(async (w) => {\n const { name, slug } = await this.resolveProduct(w.variantId);\n const monthsLeft = w.expiresAt\n ? Math.max(\n 0,\n Math.round(\n (Date.parse(w.expiresAt) - Date.now()) / (86_400_000 * 30.44),\n ),\n )\n : null;\n return {\n id: w.id,\n name,\n slug,\n serial: undefined as string | undefined,\n isVerified: !!w.isVerified,\n expiresAt: w.expiresAt,\n monthsLeft,\n status: w.status,\n };\n }),\n );\n this.loading = false;\n }\n\n private async resolveProduct(\n variantId: string,\n ): Promise<{ name: string; slug?: string }> {\n try {\n const v: any = await firstValueFrom(\n this.apiService.on('apps/commerce/product-variant').getOne(variantId),\n );\n const productId = v?.data?.productId;\n if (productId) {\n const p: any = await firstValueFrom(\n this.apiService.on('apps/commerce/product').getOne(productId),\n );\n return { name: p?.data?.name ?? v?.data?.sku ?? 'Registered unit', slug: p?.data?.slug };\n }\n return { name: v?.data?.sku ?? 'Registered unit' };\n } catch {\n return { name: 'Registered unit' };\n }\n }\n\n async addExternal(): Promise<void> {\n if (this.savingExternal) return;\n const sku = this.ext.variantSku.trim();\n if (!sku) {\n this.externalError = 'Enter the product SKU or model shown on the label.';\n return;\n }\n this.savingExternal = true;\n this.externalError = '';\n try {\n // Resolve the SKU to a variant id (the label carries the SKU/model).\n const found: any = await firstValueFrom(\n this.apiService\n .on('apps/commerce/product-variant')\n .getMany({ sku, perPage: 1 } as any)\n .pipe(catchError(() => of({ data: [] }))),\n );\n const variantId = (found?.data ?? [])[0]?.id;\n if (!variantId) {\n this.externalError = \"We couldn't match that SKU to a product we stock.\";\n return;\n }\n const res: any = await firstValueFrom(\n this.apiService.post('apps/commerce/warranty/external', {\n customerId: this.customerId,\n variantId,\n serial: this.ext.serial || undefined,\n startsAt: this.ext.startsAt || undefined,\n months: this.ext.months || undefined,\n }),\n );\n if (res?.status === 'error') {\n this.externalError = res?.message ?? 'Could not add that unit.';\n return;\n }\n this.adding = false;\n this.ext = { variantSku: '', serial: '', startsAt: '', months: 12 };\n notify('Added to My Systems', undefined, 'success');\n await this.load();\n } catch (err: any) {\n this.externalError = err?.error?.message ?? 'Could not add that unit.';\n } finally {\n this.savingExternal = false;\n }\n }\n}\n","<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…</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 — 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…' : '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 · claim in progress\n }\n </p>\n </a>\n } @empty {\n @if (!adding) {\n <div class=\"x-acct-empty\">\n Nothing here yet — a warranty is registered automatically when a\n serialised item is delivered.\n </div>\n }\n }\n}\n","import { Component, inject } from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\nimport { BaseDirective, notify } from '@thescaffold/ngx-core';\nimport { firstValueFrom } from 'rxjs';\nimport { AccountStoreService } from '../account-store.service';\n\nconst SYMPTOM_OPTIONS = [\n 'Not turning on',\n 'Shuts down under load',\n 'Overheating',\n 'Error code / warning light',\n 'Unusual noise',\n 'Not charging',\n 'Reduced runtime / output',\n 'Physical damage',\n];\n\n// P5.6, RET-07 — the warranty claim form. Fault description + a symptoms\n// checklist + whether a Tilmart installer fitted it. Photo/video upload\n// is a follow-up (needs the blobs pipeline) — noted, not blocking.\n@Component({\n standalone: false,\n selector: 'x-account-warranty-claim',\n templateUrl: './warranty-claim.component.html',\n})\nexport class AccountWarrantyClaimComponent extends BaseDirective {\n private readonly route = inject(ActivatedRoute);\n private readonly store = inject(AccountStoreService);\n\n readonly symptomOptions = SYMPTOM_OPTIONS;\n\n warrantyId = '';\n customerId = '';\n\n faultDescription = '';\n symptoms: Record<string, boolean> = {};\n installedByTilmart = false;\n\n submitting = false;\n error = '';\n done = false;\n\n override init = () => {\n this.warrantyId = this.route.snapshot.paramMap.get('id') ?? '';\n this.store.customer().subscribe((c) => (this.customerId = c?.id ?? ''));\n };\n\n get canSubmit(): boolean {\n return !!this.faultDescription.trim();\n }\n\n async submit(): Promise<void> {\n if (this.submitting || !this.canSubmit) return;\n this.submitting = true;\n this.error = '';\n try {\n const res: any = await firstValueFrom(\n this.apiService.post(\n `apps/commerce/warranty/${this.warrantyId}/claim`,\n {\n customerId: this.customerId || undefined,\n faultDescription: this.faultDescription.trim(),\n symptoms: Object.keys(this.symptoms).filter((k) => this.symptoms[k]),\n installedByTilmart: this.installedByTilmart,\n },\n ),\n );\n if (res?.status === 'error') {\n this.error = res?.message ?? 'Could not submit your claim.';\n return;\n }\n this.done = true;\n notify('Claim submitted', undefined, 'success');\n } catch (err: any) {\n this.error = err?.error?.message ?? 'Could not submit your claim.';\n } finally {\n this.submitting = false;\n }\n }\n}\n","<a routerLink=\"../\" class=\"x-acct-btn-ghost\">‹ Back to system</a>\n\n@if (done) {\n <div class=\"x-acct-card\" style=\"margin-top: 16px\">\n <h2 class=\"x-acct-h2\">Claim submitted</h2>\n <p class=\"x-acct-sub\">\n We'll review the details and get back to you with next steps. You can see\n the status on the system's page.\n </p>\n <a class=\"x-acct-btn\" routerLink=\"../\">Back to system</a>\n </div>\n} @else {\n <h2 class=\"x-acct-h2\" style=\"margin-top: 16px\">Start a warranty claim</h2>\n <p class=\"x-acct-sub\">Tell us what's wrong and we'll take it from there.</p>\n\n <div class=\"x-acct-card\">\n <div class=\"x-acct-field\">\n <label>What's the problem?</label>\n <input\n [(ngModel)]=\"faultDescription\"\n placeholder=\"Describe the fault in your own words\"\n />\n </div>\n\n <div style=\"margin: 8px 0 16px\">\n <div style=\"font-weight: 700; font-size: 13px; margin-bottom: 8px\">Symptoms</div>\n @for (s of symptomOptions; track s) {\n <label class=\"x-acct-checkline\">\n <input type=\"checkbox\" [(ngModel)]=\"symptoms[s]\" />\n {{ s }}\n </label>\n }\n </div>\n\n <label class=\"x-acct-checkline\">\n <input type=\"checkbox\" [(ngModel)]=\"installedByTilmart\" />\n A Tilmart installer fitted this unit\n </label>\n\n @if (error) {\n <div class=\"x-acct-err\" style=\"margin-top: 12px\">{{ error }}</div>\n }\n <button\n type=\"button\"\n class=\"x-acct-btn\"\n style=\"margin-top: 14px\"\n [disabled]=\"!canSubmit || submitting\"\n (click)=\"submit()\"\n >\n {{ submitting ? 'Submitting…' : 'Submit claim' }}\n </button>\n <p class=\"x-acct-sub\" style=\"margin-top: 12px\">\n Photos and video help us diagnose faster — you'll be able to add them once\n the claim is open.\n </p>\n </div>\n}\n","import { Component, inject } from '@angular/core';\nimport { BaseDirective, notify, using } from '@thescaffold/ngx-core';\nimport { catchError, firstValueFrom, of, takeUntil } from 'rxjs';\nimport { AccountStoreService } from '../account-store.service';\n\ninterface WishlistItemVm {\n id: string;\n variantId: string;\n name: string;\n slug?: string;\n}\n\ninterface WishlistVm {\n id: string;\n name: string;\n isPublic: boolean;\n shareToken?: string;\n items: WishlistItemVm[];\n renaming?: boolean;\n draftName?: string;\n}\n\n// P5.3, CART-06 — saved lists. View / rename / delete a list, toggle\n// public sharing, remove an item. Adding items happens on the product\n// pages (a wishlist button there, P2 PDP work).\n@Component({\n standalone: false,\n selector: 'x-account-wishlists',\n templateUrl: './wishlists.component.html',\n})\nexport class AccountWishlistsComponent extends BaseDirective {\n private readonly store = inject(AccountStoreService);\n\n loading = true;\n customerId = '';\n wishlists: WishlistVm[] = [];\n\n override init = () => {\n this.store\n .customer()\n .pipe(takeUntil(this.$))\n .subscribe(\n using((customer) => {\n if (!customer) {\n this.loading = false;\n return;\n }\n this.customerId = customer.id;\n void this.load();\n }),\n );\n };\n\n private async load(): Promise<void> {\n const listsRes: any = await firstValueFrom(\n this.apiService\n .on('apps/commerce/wishlist')\n .getMany({ customerId: this.customerId, perPage: 50 } as any)\n .pipe(catchError(() => of({ data: [] }))),\n );\n const lists: any[] = listsRes?.data ?? [];\n\n const withItems = await Promise.all(\n lists.map(async (list) => {\n const itemsRes: any = await firstValueFrom(\n this.apiService\n .on('apps/commerce/wishlist-item')\n .getMany({ wishlistId: list.id, perPage: 200 } as any)\n .pipe(catchError(() => of({ data: [] }))),\n );\n const items = await Promise.all(\n (itemsRes?.data ?? []).map((it: any) => this.resolveItem(it)),\n );\n return {\n id: list.id,\n name: list.name,\n isPublic: !!list.isPublic,\n shareToken: list.shareToken,\n items,\n } as WishlistVm;\n }),\n );\n this.wishlists = withItems;\n this.loading = false;\n }\n\n private async resolveItem(it: any): Promise<WishlistItemVm> {\n let name = 'Saved item';\n let slug: string | undefined;\n try {\n const v: any = await firstValueFrom(\n this.apiService.on('apps/commerce/product-variant').getOne(it.variantId),\n );\n const productId = v?.data?.productId;\n if (productId) {\n const p: any = await firstValueFrom(\n this.apiService.on('apps/commerce/product').getOne(productId),\n );\n name = p?.data?.name ?? v?.data?.sku ?? name;\n slug = p?.data?.slug;\n }\n } catch {\n // leave the fallback name\n }\n return { id: it.id, variantId: it.variantId, name, slug };\n }\n\n startRename(list: WishlistVm): void {\n list.renaming = true;\n list.draftName = list.name;\n }\n\n async saveName(list: WishlistVm): Promise<void> {\n const name = (list.draftName ?? '').trim();\n if (!name) return;\n try {\n await firstValueFrom(\n this.apiService.on('apps/commerce/wishlist').update(list.id, { name }),\n );\n list.name = name;\n list.renaming = false;\n } catch {\n notify('Could not rename that list.', undefined, 'error');\n }\n }\n\n async togglePublic(list: WishlistVm): Promise<void> {\n try {\n await firstValueFrom(\n this.apiService\n .on('apps/commerce/wishlist')\n .update(list.id, { isPublic: !list.isPublic }),\n );\n await this.load();\n } catch {\n notify('Could not update sharing.', undefined, 'error');\n }\n }\n\n async removeList(list: WishlistVm): Promise<void> {\n if (!confirm(`Delete \"${list.name}\"?`)) return;\n try {\n await firstValueFrom(this.apiService.on('apps/commerce/wishlist').remove(list.id));\n await this.load();\n } catch {\n notify('Could not delete that list.', undefined, 'error');\n }\n }\n\n async removeItem(list: WishlistVm, item: WishlistItemVm): Promise<void> {\n try {\n await firstValueFrom(\n this.apiService.on('apps/commerce/wishlist-item').remove(item.id),\n );\n list.items = list.items.filter((x) => x.id !== item.id);\n } catch {\n notify('Could not remove that item.', undefined, 'error');\n }\n }\n}\n","<h2 class=\"x-acct-h2\">Wishlists</h2>\n<p class=\"x-acct-sub\">Add items from any product page. Share a list with an installer or a colleague.</p>\n\n@if (loading) {\n <div class=\"x-acct-empty\">Loading…</div>\n} @else if (!wishlists.length) {\n <div class=\"x-acct-card\">\n <div class=\"x-acct-empty\">\n No saved lists yet — tap the heart on a product to start one.\n </div>\n </div>\n} @else {\n @for (list of wishlists; track list.id) {\n <div class=\"x-acct-card\">\n <div class=\"x-acct-row\" style=\"border-bottom: 0; padding-top: 0\">\n @if (list.renaming) {\n <input class=\"x-acct-field\" style=\"margin: 0; max-width: 240px\" [(ngModel)]=\"list.draftName\" />\n <span>\n <button type=\"button\" class=\"x-acct-btn-ghost\" (click)=\"saveName(list)\">Save</button>\n <button type=\"button\" class=\"x-acct-btn-ghost\" (click)=\"list.renaming = false\" style=\"margin-left: 6px\">\n Cancel\n </button>\n </span>\n } @else {\n <strong>\n {{ list.name }}\n @if (list.isPublic) {\n <span class=\"x-acct-pill x-acct-pill-ok\" style=\"margin-left: 6px\">Shared</span>\n }\n </strong>\n <span>\n <button type=\"button\" class=\"x-acct-btn-ghost\" (click)=\"startRename(list)\">Rename</button>\n <button type=\"button\" class=\"x-acct-btn-ghost\" (click)=\"togglePublic(list)\" style=\"margin-left: 6px\">\n {{ list.isPublic ? 'Make private' : 'Share' }}\n </button>\n <button type=\"button\" class=\"x-acct-btn-ghost\" (click)=\"removeList(list)\" style=\"margin-left: 6px\">\n Delete\n </button>\n </span>\n }\n </div>\n\n @for (item of list.items; track item.id) {\n <div class=\"x-acct-row\">\n @if (item.slug) {\n <a [routerLink]=\"['/p', item.slug]\">{{ item.name }}</a>\n } @else {\n <span>{{ item.name }}</span>\n }\n <button type=\"button\" class=\"x-acct-btn-ghost\" (click)=\"removeItem(list, item)\">Remove</button>\n </div>\n } @empty {\n <div class=\"x-acct-empty\">This list is empty.</div>\n }\n </div>\n }\n}\n","import { NgModule } from '@angular/core';\nimport { RouterModule } from '@angular/router';\nimport { SharedModule } from '@thescaffold/ngx-core';\nimport { TilmartElementsModule } from '@isaiahiroko/tilmart-ngx-ui';\nimport { AccountStoreService } from './account-store.service';\nimport { AccountComponent } from './account.component';\nimport { AccountAddressesComponent } from './addresses/addresses.component';\nimport { AccountDashboardComponent } from './dashboard/dashboard.component';\nimport { AccountOrderDetailComponent } from './order-detail/order-detail.component';\nimport { AccountOrdersComponent } from './orders/orders.component';\nimport { AccountPaymentsComponent } from './payments/payments.component';\nimport { AccountPrivacyComponent } from './privacy/privacy.component';\nimport { AccountReturnDetailComponent } from './returns/return-detail.component';\nimport { AccountReturnRequestComponent } from './returns/return-request.component';\nimport { AccountReturnsComponent } from './returns/returns.component';\nimport { AccountSettingsComponent } from './settings/settings.component';\nimport { AccountSystemDetailComponent } from './systems/system-detail.component';\nimport { AccountSystemsComponent } from './systems/systems.component';\nimport { AccountWarrantyClaimComponent } from './systems/warranty-claim.component';\nimport { AccountWishlistsComponent } from './wishlists/wishlists.component';\n\n@NgModule({\n declarations: [\n AccountComponent,\n AccountDashboardComponent,\n AccountOrdersComponent,\n AccountOrderDetailComponent,\n AccountAddressesComponent,\n AccountPaymentsComponent,\n AccountWishlistsComponent,\n AccountSettingsComponent,\n AccountSystemsComponent,\n AccountSystemDetailComponent,\n AccountWarrantyClaimComponent,\n AccountReturnsComponent,\n AccountReturnDetailComponent,\n AccountReturnRequestComponent,\n AccountPrivacyComponent,\n ],\n providers: [AccountStoreService],\n imports: [\n SharedModule,\n TilmartElementsModule,\n RouterModule.forChild([\n {\n path: '',\n component: AccountComponent,\n children: [\n { path: '', pathMatch: 'full', redirectTo: 'dashboard' },\n { path: 'dashboard', component: AccountDashboardComponent },\n { path: 'orders', component: AccountOrdersComponent },\n { path: 'orders/:id', component: AccountOrderDetailComponent },\n { path: 'orders/:id/return', component: AccountReturnRequestComponent },\n { path: 'returns', component: AccountReturnsComponent },\n { path: 'returns/:id', component: AccountReturnDetailComponent },\n { path: 'systems', component: AccountSystemsComponent },\n { path: 'systems/:id', component: AccountSystemDetailComponent },\n { path: 'systems/:id/claim', component: AccountWarrantyClaimComponent },\n { path: 'addresses', component: AccountAddressesComponent },\n { path: 'payments', component: AccountPaymentsComponent },\n { path: 'wishlists', component: AccountWishlistsComponent },\n { path: 'settings', component: AccountSettingsComponent },\n { path: 'privacy', component: AccountPrivacyComponent },\n ],\n },\n ]),\n ],\n})\nexport class AccountModule {}\n"],"names":["i1","STATUS_LABELS","i2"],"mappings":";;;;;;;;;;;;;AAYA;AACA;AACA;AACA;AACA;MAEa,mBAAmB,CAAA;AADhC,IAAA,WAAA,GAAA;AAEmB,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;AAC/B,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC;AAEhD,QAAA,IAAA,CAAA,SAAS,GAAG,IAAI,aAAa,CAAyB,CAAC,CAAC;QACxD,IAAA,CAAA,MAAM,GAAG,KAAK;AAqCvB,IAAA;IAnCC,QAAQ,GAAA;AACN,QAAA,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;AAChB,YAAA,IAAI,CAAC,MAAM,GAAG,IAAI;YAClB,IAAI,CAAC,IAAI,EAAE;QACb;AACA,QAAA,OAAO,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE;IACtC;AAEA,IAAA,MAAM,eAAe,GAAA;AACnB,QAAA,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,KA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B,EAAE;AAC3D,oCAAA,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,wBAAwB,EAAE;AACzD,oCAAA,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,uBAAuB,EAAE;AACxD,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA;;;;;"}
1
+ {"version":3,"file":"isaiahiroko-tilmart-ngx-apps-buyer-account.module-BmC56YP6.mjs","sources":["../../../projects/buyer/src/lib/pages/account/account-store.service.ts","../../../projects/buyer/src/lib/pages/account/account.component.ts","../../../projects/buyer/src/lib/pages/account/account.component.html","../../../projects/buyer/src/lib/pages/account/addresses/addresses.component.ts","../../../projects/buyer/src/lib/pages/account/addresses/addresses.component.html","../../../projects/buyer/src/lib/pages/account/order-status.ts","../../../projects/buyer/src/lib/pages/account/dashboard/dashboard.component.ts","../../../projects/buyer/src/lib/pages/account/dashboard/dashboard.component.html","../../../projects/buyer/src/lib/pages/account/order-detail/order-detail.component.ts","../../../projects/buyer/src/lib/pages/account/order-detail/order-detail.component.html","../../../projects/buyer/src/lib/pages/account/orders/orders.component.ts","../../../projects/buyer/src/lib/pages/account/orders/orders.component.html","../../../projects/buyer/src/lib/pages/account/payments/payments.component.ts","../../../projects/buyer/src/lib/pages/account/payments/payments.component.html","../../../projects/buyer/src/lib/pages/account/privacy/privacy.component.ts","../../../projects/buyer/src/lib/pages/account/privacy/privacy.component.html","../../../projects/buyer/src/lib/pages/account/returns/return-detail.component.ts","../../../projects/buyer/src/lib/pages/account/returns/return-detail.component.html","../../../projects/buyer/src/lib/pages/account/returns/return-request.component.ts","../../../projects/buyer/src/lib/pages/account/returns/return-request.component.html","../../../projects/buyer/src/lib/pages/account/returns/returns.component.ts","../../../projects/buyer/src/lib/pages/account/returns/returns.component.html","../../../projects/buyer/src/lib/services/account-api.service.ts","../../../projects/buyer/src/lib/pages/account/settings/settings.component.ts","../../../projects/buyer/src/lib/pages/account/settings/settings.component.html","../../../projects/buyer/src/lib/pages/account/systems/system-detail.component.ts","../../../projects/buyer/src/lib/pages/account/systems/system-detail.component.html","../../../projects/buyer/src/lib/pages/account/systems/systems.component.ts","../../../projects/buyer/src/lib/pages/account/systems/systems.component.html","../../../projects/buyer/src/lib/pages/account/systems/warranty-claim.component.ts","../../../projects/buyer/src/lib/pages/account/systems/warranty-claim.component.html","../../../projects/buyer/src/lib/pages/account/wishlists/wishlists.component.ts","../../../projects/buyer/src/lib/pages/account/wishlists/wishlists.component.html","../../../projects/buyer/src/lib/pages/account/account.module.ts"],"sourcesContent":["import { Injectable, inject } from '@angular/core';\nimport { ApiService, ControlService } from '@thescaffold/ngx-core';\nimport { Observable, ReplaySubject, catchError, firstValueFrom, map, of } from 'rxjs';\n\nexport interface AccountCustomer {\n id: string;\n userId?: string;\n name?: string;\n email?: string;\n phone?: string;\n}\n\n// P5.3 — resolves the signed-in visitor's commerce `Customer` once and\n// shares it across the account sub-pages (each of orders / addresses /\n// payments / wishlists needs the `customerId` to filter its own list).\n// A guest has no `Customer` here — the shell shows a sign-in prompt\n// instead of the sub-pages.\n@Injectable()\nexport class AccountStoreService {\n private readonly apiService = inject(ApiService);\n private readonly controlService = inject(ControlService);\n\n private customer$ = new ReplaySubject<AccountCustomer | null>(1);\n private loaded = false;\n\n customer(): Observable<AccountCustomer | null> {\n if (!this.loaded) {\n this.loaded = true;\n this.load();\n }\n return this.customer$.asObservable();\n }\n\n async refreshCustomer(): Promise<AccountCustomer | null> {\n const c = await this.fetch();\n this.customer$.next(c);\n return c;\n }\n\n private load(): void {\n this.fetch().then((c) => this.customer$.next(c));\n }\n\n private async fetch(): Promise<AccountCustomer | null> {\n if (!this.controlService.isLoggedIn()) return null;\n const userId = this.controlService.getContext()?.userId;\n if (!userId) return null;\n return firstValueFrom(\n this.apiService\n .on('apps/commerce/customer')\n .getMany({ userId, perPage: 1 } as any)\n .pipe(\n map((res: any) => {\n const row = (res?.data ?? [])[0];\n return row ? (row as AccountCustomer) : null;\n }),\n catchError(() => of(null)),\n ),\n );\n }\n}\n","import { Component, ViewEncapsulation, inject } from '@angular/core';\nimport { BaseDirective, ControlService, using } from '@thescaffold/ngx-core';\nimport { takeUntil } from 'rxjs';\nimport { AccountStoreService } from './account-store.service';\n\ninterface AccountNavItem {\n path: string;\n label: string;\n icon: string;\n}\n\nconst NAV: AccountNavItem[] = [\n { path: 'dashboard', label: 'Overview', icon: 'fa-gauge' },\n { path: 'orders', label: 'Orders', icon: 'fa-box' },\n { path: 'systems', label: 'My Systems', icon: 'fa-solar-panel' },\n { path: 'returns', label: 'Returns', icon: 'fa-rotate-left' },\n { path: 'addresses', label: 'Addresses', icon: 'fa-location-dot' },\n { path: 'payments', label: 'Payments', icon: 'fa-credit-card' },\n { path: 'wishlists', label: 'Wishlists', icon: 'fa-heart' },\n { path: 'settings', label: 'Settings', icon: 'fa-gear' },\n { path: 'privacy', label: 'Privacy & data', icon: 'fa-shield-halved' },\n];\n\n// P5.3, ACC-02…ACC-10 — the storefront account area. A shell with a nav\n// rail + `<router-outlet>`; the signed-in `Customer` is resolved once\n// here (via `AccountStoreService`) and read by every sub-page. Guest-\n// first like the rest of the storefront: a signed-out visitor sees a\n// sign-in prompt, not a redirect.\n@Component({\n standalone: false,\n selector: 'x-account',\n templateUrl: './account.component.html',\n styleUrl: './account.component.scss',\n encapsulation: ViewEncapsulation.None,\n})\nexport class AccountComponent extends BaseDirective {\n private readonly controlService = inject(ControlService);\n private readonly store = inject(AccountStoreService);\n\n readonly nav = NAV;\n isLoggedIn = false;\n loading = true;\n customerName = '';\n\n override init = () => {\n this.isLoggedIn = this.controlService.isLoggedIn();\n if (!this.isLoggedIn) {\n this.loading = false;\n return;\n }\n this.store\n .customer()\n .pipe(takeUntil(this.$))\n .subscribe(\n using((customer) => {\n this.loading = false;\n this.customerName =\n customer?.name || customer?.email || customer?.phone || 'Your account';\n }),\n );\n };\n\n signIn(): void {\n this.router.navigate(['/start']);\n }\n}\n","<div class=\"x-acct\">\n @if (loading) {\n <div class=\"x-acct-note\">Loading your account…</div>\n } @else if (!isLoggedIn) {\n <div class=\"x-acct-signin\">\n <h1>Your account</h1>\n <p>Sign in to see your orders, saved systems, addresses and settings.</p>\n <button type=\"button\" class=\"x-acct-btn\" (click)=\"signIn()\">Sign in</button>\n <p class=\"x-acct-muted\">\n No account yet? You can still\n <a routerLink=\"/track\">track an order</a> with your order number.\n </p>\n </div>\n } @else {\n <header class=\"x-acct-head\">\n <h1>{{ customerName }}</h1>\n </header>\n <div class=\"x-acct-body\">\n <nav class=\"x-acct-nav\">\n @for (item of nav; track item.path) {\n <a\n [routerLink]=\"item.path\"\n routerLinkActive=\"x-acct-nav-on\"\n class=\"x-acct-nav-link\"\n >\n <i class=\"fa-solid\" [class]=\"item.icon\"></i>\n <span>{{ item.label }}</span>\n </a>\n }\n </nav>\n <main class=\"x-acct-main\">\n <router-outlet></router-outlet>\n </main>\n </div>\n }\n</div>\n","import { Component, inject } from '@angular/core';\nimport { BaseDirective, notify, using } from '@thescaffold/ngx-core';\nimport { catchError, firstValueFrom, of, takeUntil } from 'rxjs';\nimport { AccountStoreService } from '../account-store.service';\nimport { StaticListOption, StaticListService } from '../../../services/static-list.service';\n\ninterface AddressVm {\n id: string;\n label: string;\n state?: string;\n lga?: string;\n city?: string;\n street: string;\n area?: string;\n landmark?: string;\n buildingInfo?: string;\n notes?: string;\n isDefault: boolean;\n}\n\ntype AddressForm = Omit<AddressVm, 'id' | 'isDefault'> & { id?: string };\n\nfunction blankForm(): AddressForm {\n return {\n label: '',\n state: '',\n lga: '',\n city: '',\n street: '',\n area: '',\n landmark: '',\n buildingInfo: '',\n notes: '',\n };\n}\n\n// P5.3, ACC-04 — the address book. Labelled addresses with one default,\n// editable and deletable, shared with checkout + (R2) installation.\n@Component({\n standalone: false,\n selector: 'x-account-addresses',\n templateUrl: './addresses.component.html',\n})\nexport class AccountAddressesComponent extends BaseDirective {\n private readonly store = inject(AccountStoreService);\n private readonly staticList = inject(StaticListService);\n\n states: StaticListOption[] = [];\n lgas: StaticListOption[] = [];\n lgasLoading = false;\n\n loading = true;\n customerId = '';\n addresses: AddressVm[] = [];\n\n editing = false;\n saving = false;\n form: AddressForm = blankForm();\n formError = '';\n\n override init = () => {\n void this.staticList.getStates().then((states) => (this.states = states));\n this.store\n .customer()\n .pipe(takeUntil(this.$))\n .subscribe(\n using((customer) => {\n if (!customer) {\n this.loading = false;\n return;\n }\n this.customerId = customer.id;\n void this.load();\n }),\n );\n };\n\n async onFormStateChange(): Promise<void> {\n this.form.lga = '';\n await this.loadLgas(this.form.state);\n }\n\n private async loadLgas(state?: string): Promise<void> {\n if (!state) {\n this.lgas = [];\n return;\n }\n this.lgasLoading = true;\n try {\n this.lgas = await this.staticList.getLgas(state).catch(() => []);\n } finally {\n this.lgasLoading = false;\n }\n }\n\n private async load(): Promise<void> {\n const res: any = await firstValueFrom(\n this.apiService\n .on('apps/commerce/address')\n .getMany({ customerId: this.customerId, perPage: 100 } as any)\n .pipe(catchError(() => of({ data: [] }))),\n );\n this.addresses = (res?.data ?? []).map((a: any) => ({\n id: a.id,\n label: a.label,\n state: a.state,\n lga: a.lga,\n city: a.city,\n street: a.street,\n area: a.area,\n landmark: a.landmark,\n buildingInfo: a.buildingInfo,\n notes: a.notes,\n isDefault: !!a.isDefault,\n }));\n this.loading = false;\n }\n\n startAdd(): void {\n this.form = blankForm();\n this.formError = '';\n this.editing = true;\n this.lgas = [];\n }\n\n startEdit(a: AddressVm): void {\n this.form = { ...a };\n this.formError = '';\n this.editing = true;\n void this.loadLgas(this.form.state);\n }\n\n cancel(): void {\n this.editing = false;\n }\n\n async save(): Promise<void> {\n if (this.saving) return;\n if (!this.form.label.trim() || !this.form.state || !this.form.street.trim()) {\n this.formError = 'Label, state and street are required.';\n return;\n }\n this.saving = true;\n this.formError = '';\n\n const payload: any = {\n customerId: this.customerId,\n label: this.form.label.trim(),\n state: this.form.state,\n lga: this.form.lga || undefined,\n city: this.form.city || undefined,\n street: this.form.street.trim(),\n area: this.form.area || this.form.city || this.form.state,\n landmark: this.form.landmark || undefined,\n buildingInfo: this.form.buildingInfo || undefined,\n notes: this.form.notes || undefined,\n };\n\n try {\n if (this.form.id) {\n await firstValueFrom(\n this.apiService.on('apps/commerce/address').update(this.form.id, payload),\n );\n } else {\n payload.isDefault = this.addresses.length === 0;\n await firstValueFrom(this.apiService.on('apps/commerce/address').create(payload));\n }\n this.editing = false;\n await this.load();\n } catch (err: any) {\n this.formError = err?.error?.message ?? 'Could not save this address.';\n } finally {\n this.saving = false;\n }\n }\n\n async remove(a: AddressVm): Promise<void> {\n if (!confirm(`Delete \"${a.label}\"?`)) return;\n try {\n await firstValueFrom(\n this.apiService.on('apps/commerce/address').remove(a.id),\n );\n await this.load();\n } catch {\n notify('Could not delete that address.', undefined, 'error');\n }\n }\n\n async makeDefault(a: AddressVm): Promise<void> {\n if (a.isDefault) return;\n const current = this.addresses.find((x) => x.isDefault);\n try {\n await firstValueFrom(\n this.apiService.on('apps/commerce/address').update(a.id, { isDefault: true }),\n );\n if (current) {\n await firstValueFrom(\n this.apiService\n .on('apps/commerce/address')\n .update(current.id, { isDefault: false }),\n );\n }\n await this.load();\n } catch {\n notify('Could not update the default address.', undefined, 'error');\n }\n }\n}\n","<h2 class=\"x-acct-h2\">Addresses</h2>\n<p class=\"x-acct-sub\">Used for delivery and, later, installation visits.</p>\n\n@if (loading) {\n <div class=\"x-acct-empty\">Loading…</div>\n} @else {\n @if (editing) {\n <div class=\"x-acct-card\">\n <strong>{{ form.id ? 'Edit address' : 'New address' }}</strong>\n <div style=\"margin-top: 14px\">\n <div class=\"x-acct-field\">\n <label>Label</label>\n <input [(ngModel)]=\"form.label\" placeholder=\"Home, Office, Site…\" />\n </div>\n <div class=\"x-acct-field\">\n <label>State</label>\n <select aria-label=\"State\" data-testid=\"address-state\" [(ngModel)]=\"form.state\" (ngModelChange)=\"onFormStateChange()\">\n <option value=\"\">Select a state</option>\n @for (s of states; track s.value) {\n <option [value]=\"s.value\">{{ s.label }}</option>\n }\n </select>\n </div>\n <div class=\"x-acct-field\">\n <label>LGA / area</label>\n <select aria-label=\"LGA\" data-testid=\"address-lga\" [(ngModel)]=\"form.lga\" [disabled]=\"!form.state || lgasLoading\">\n <option value=\"\">{{ form.state ? 'Select an LGA' : 'Select a state first' }}</option>\n @for (l of lgas; track l.value) {\n <option [value]=\"l.value\">{{ l.label }}</option>\n }\n </select>\n </div>\n <div class=\"x-acct-field\">\n <label>Street</label>\n <input [(ngModel)]=\"form.street\" />\n </div>\n <div class=\"x-acct-field\">\n <label>Nearest landmark</label>\n <input [(ngModel)]=\"form.landmark\" placeholder=\"e.g. opposite Zenith Bank\" />\n </div>\n <div class=\"x-acct-field\">\n <label>Building / flat info</label>\n <input [(ngModel)]=\"form.buildingInfo\" />\n </div>\n <div class=\"x-acct-field\">\n <label>Delivery notes</label>\n <input [(ngModel)]=\"form.notes\" />\n </div>\n @if (formError) {\n <div class=\"x-acct-err\">{{ formError }}</div>\n }\n <button type=\"button\" class=\"x-acct-btn\" [disabled]=\"saving\" (click)=\"save()\">\n {{ saving ? 'Saving…' : 'Save address' }}\n </button>\n <button type=\"button\" class=\"x-acct-btn-ghost\" (click)=\"cancel()\" style=\"margin-left: 8px\">\n Cancel\n </button>\n </div>\n </div>\n } @else {\n <button type=\"button\" class=\"x-acct-btn\" (click)=\"startAdd()\">Add an address</button>\n }\n\n @for (a of addresses; track a.id) {\n <div class=\"x-acct-card\">\n <div class=\"x-acct-row\" style=\"border-bottom: 0; padding-top: 0\">\n <strong>\n {{ a.label }}\n @if (a.isDefault) {\n <span class=\"x-acct-pill x-acct-pill-ok\" style=\"margin-left: 6px\">Default</span>\n }\n </strong>\n <span>\n <button type=\"button\" class=\"x-acct-btn-ghost\" (click)=\"startEdit(a)\">Edit</button>\n <button type=\"button\" class=\"x-acct-btn-ghost\" (click)=\"remove(a)\" style=\"margin-left: 6px\">\n Delete\n </button>\n </span>\n </div>\n <p class=\"x-acct-sub\" style=\"margin: 0\">\n {{ a.street }}@if (a.landmark) {, near {{ a.landmark }}}<br />\n {{ a.lga ? a.lga + ', ' : '' }}{{ a.state }}\n </p>\n @if (!a.isDefault) {\n <button\n type=\"button\"\n class=\"x-acct-btn-ghost\"\n style=\"margin-top: 10px\"\n (click)=\"makeDefault(a)\"\n >\n Make default\n </button>\n }\n </div>\n } @empty {\n @if (!editing) {\n <div class=\"x-acct-empty\">No saved addresses yet.</div>\n }\n }\n}\n","// PRD Appendix B — the 17 order states, buyer-friendly labels. Shared by\n// the account dashboard / orders / order-detail pages (the guest `/track`\n// page keeps its own copy — it's a separate module tree).\nexport const ORDER_STATUS_LABELS: Record<string, string> = {\n pending_payment: 'Awaiting payment',\n payment_received: 'Payment received',\n on_hold: 'On hold',\n confirmed: 'Confirmed',\n processing: 'Being prepared',\n partially_fulfilled: 'Partly on the way',\n ready_to_ship: 'Ready to ship',\n ready_for_pickup: 'Ready for pickup',\n dispatched: 'Dispatched',\n out_for_delivery: 'Out for delivery',\n failed_delivery: 'Delivery attempt failed',\n delivered: 'Delivered',\n completed: 'Completed',\n cancelled: 'Cancelled',\n return_in_flight: 'Return in progress',\n returned: 'Returned',\n refunded: 'Refunded',\n};\n\nexport function orderStatusLabel(status: string): string {\n return ORDER_STATUS_LABELS[status] ?? status;\n}\n\nexport function orderStatusTone(status: string): 'ok' | 'warn' | 'bad' | '' {\n if (status === 'delivered' || status === 'completed') return 'ok';\n if (status === 'cancelled' || status === 'refunded' || status === 'failed_delivery')\n return 'bad';\n if (status === 'pending_payment' || status === 'on_hold' || status === 'return_in_flight')\n return 'warn';\n return '';\n}\n","import { Component, inject } from '@angular/core';\nimport { BaseDirective, using } from '@thescaffold/ngx-core';\nimport { catchError, firstValueFrom, of, switchMap, takeUntil } from 'rxjs';\nimport { AccountStoreService } from '../account-store.service';\nimport { orderStatusLabel } from '../order-status';\n\ninterface DashOrderVm {\n id: string;\n orderNumber: string;\n status: string;\n statusLabel: string;\n placedAt?: string;\n grandTotal: number;\n currency: string;\n}\n\ninterface DashWarrantyVm {\n id: string;\n label: string;\n expiresAt?: string;\n daysLeft: number;\n}\n\nconst OPEN_STATUSES = new Set([\n 'pending_payment',\n 'payment_received',\n 'on_hold',\n 'confirmed',\n 'processing',\n 'partially_fulfilled',\n 'ready_to_ship',\n 'ready_for_pickup',\n 'dispatched',\n 'out_for_delivery',\n 'failed_delivery',\n]);\n\n// P5.3, ACC-02 — the account overview. Open-order count, the three most\n// recent orders, warranties inside 60 days of expiry, and quick links.\n// Bookings / wallet balance are R2 / PAY-11 (not built) — deliberately\n// left off rather than stubbed.\n@Component({\n standalone: false,\n selector: 'x-account-dashboard',\n templateUrl: './dashboard.component.html',\n})\nexport class AccountDashboardComponent extends BaseDirective {\n private readonly store = inject(AccountStoreService);\n\n loading = true;\n customerId = '';\n openCount = 0;\n recentOrders: DashOrderVm[] = [];\n expiringWarranties: DashWarrantyVm[] = [];\n wishlistCount = 0;\n\n referralCode = '';\n referralConverted = 0;\n referralPending = 0;\n\n override init = () => {\n this.store\n .customer()\n .pipe(\n takeUntil(this.$),\n switchMap((customer) => {\n if (!customer) return of(null);\n this.customerId = customer.id;\n return of(customer);\n }),\n )\n .subscribe(\n using((customer) => {\n if (!customer) {\n this.loading = false;\n return;\n }\n void this.hydrate(customer.id);\n }),\n );\n };\n\n private async hydrate(customerId: string): Promise<void> {\n const [orders, warranties, wishlists, refCode, refs] = await Promise.all([\n firstValueFrom(\n this.apiService\n .on('apps/commerce/order')\n .getMany({ customerId, perPage: 100 } as any)\n .pipe(catchError(() => of({ data: [] } as any))),\n ),\n firstValueFrom(\n this.apiService\n .on('apps/commerce/warranty')\n .getMany({ customerId, perPage: 100 } as any)\n .pipe(catchError(() => of({ data: [] } as any))),\n ),\n firstValueFrom(\n this.apiService\n .on('apps/commerce/wishlist')\n .getMany({ customerId, perPage: 100 } as any)\n .pipe(catchError(() => of({ data: [] } as any))),\n ),\n firstValueFrom(\n this.apiService\n .get('apps/commerce/referral/my-code')\n .pipe(catchError(() => of(undefined))),\n ),\n firstValueFrom(\n this.apiService\n .get('apps/commerce/referral/mine')\n .pipe(catchError(() => of({ data: [] } as any))),\n ),\n ]);\n\n this.referralCode = (refCode as any)?.data?.code ?? '';\n const refRows: any[] = (refs as any)?.data ?? [];\n this.referralConverted = refRows.filter(\n (r) => r.status === 'converted' || r.status === 'rewarded',\n ).length;\n this.referralPending = refRows.filter(\n (r) => r.status === 'pending' && r.refereeCustomerId,\n ).length;\n\n const orderRows: any[] = orders?.data ?? [];\n this.openCount = orderRows.filter((o) => OPEN_STATUSES.has(o.status)).length;\n this.recentOrders = orderRows\n .slice()\n .sort((a, b) => this.ts(b.placedAt ?? b.createdAt) - this.ts(a.placedAt ?? a.createdAt))\n .slice(0, 3)\n .map((o) => ({\n id: o.id,\n orderNumber: o.orderNumber,\n status: o.status,\n statusLabel: orderStatusLabel(o.status),\n placedAt: o.placedAt ?? o.createdAt,\n grandTotal: Number(o.grandTotal ?? 0),\n currency: o.currency ?? 'NGN',\n }));\n\n const now = Date.now();\n this.expiringWarranties = (warranties?.data ?? [])\n .filter((w: any) => w.expiresAt)\n .map((w: any) => ({\n id: w.id,\n label: w.serialNumberId ? 'Registered unit' : 'Warranty',\n expiresAt: w.expiresAt,\n daysLeft: Math.round((this.ts(w.expiresAt) - now) / 86_400_000),\n }))\n .filter((w: DashWarrantyVm) => w.daysLeft >= 0 && w.daysLeft <= 60)\n .sort((a: DashWarrantyVm, b: DashWarrantyVm) => a.daysLeft - b.daysLeft);\n\n this.wishlistCount = (wishlists?.data ?? []).length;\n this.loading = false;\n }\n\n private ts(v?: string): number {\n const t = v ? Date.parse(v) : NaN;\n return Number.isNaN(t) ? 0 : t;\n }\n}\n","<h2 class=\"x-acct-h2\">Overview</h2>\n<p class=\"x-acct-sub\">A snapshot of your orders and cover.</p>\n\n@if (loading) {\n <div class=\"x-acct-empty\">Loading…</div>\n} @else {\n <div class=\"x-acct-card\">\n <div class=\"x-acct-row\">\n <span>Open orders</span>\n <strong>{{ openCount }}</strong>\n </div>\n <div class=\"x-acct-row\">\n <span>Saved wishlists</span>\n <a routerLink=\"../wishlists\">{{ wishlistCount }}</a>\n </div>\n </div>\n\n <div class=\"x-acct-card\">\n <div class=\"x-acct-row\" style=\"border-bottom: 0; padding-bottom: 4px\">\n <strong>Recent orders</strong>\n <a routerLink=\"../orders\" class=\"x-acct-btn-ghost\">All orders</a>\n </div>\n @for (order of recentOrders; track order.id) {\n <a class=\"x-acct-row\" [routerLink]=\"['../orders', order.id]\">\n <span>\n <strong>{{ order.orderNumber }}</strong>\n <br />\n <span class=\"x-acct-pill\">{{ order.statusLabel }}</span>\n </span>\n <span>{{ order.currency }} {{ order.grandTotal | number: '1.2-2' }}</span>\n </a>\n } @empty {\n <div class=\"x-acct-empty\">No orders yet.</div>\n }\n </div>\n\n @if (referralCode) {\n <div class=\"x-acct-card\">\n <div class=\"x-acct-row\" style=\"border-bottom: 0; padding-bottom: 4px\">\n <strong>Refer a friend</strong>\n </div>\n <p class=\"x-acct-sub\" style=\"margin: 0 0 8px\">\n Share your code — you both benefit when they complete their first order.\n </p>\n <div class=\"x-acct-row\">\n <span>Your code</span>\n <strong style=\"letter-spacing: 1px\">{{ referralCode }}</strong>\n </div>\n @if (referralConverted || referralPending) {\n <div class=\"x-acct-row\">\n <span>Referrals</span>\n <span>{{ referralConverted }} completed · {{ referralPending }} pending</span>\n </div>\n }\n </div>\n }\n\n @if (expiringWarranties.length) {\n <div class=\"x-acct-card\">\n <div class=\"x-acct-row\" style=\"border-bottom: 0; padding-bottom: 4px\">\n <strong>Warranties expiring soon</strong>\n <a routerLink=\"../systems\" class=\"x-acct-btn-ghost\">My Systems</a>\n </div>\n @for (w of expiringWarranties; track w.id) {\n <div class=\"x-acct-row\">\n <span>{{ w.label }}</span>\n <span class=\"x-acct-pill-warn x-acct-pill\">{{ w.daysLeft }} days left</span>\n </div>\n }\n </div>\n }\n}\n","import { Component, inject } from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\nimport { BaseDirective, notify, using } from '@thescaffold/ngx-core';\nimport { catchError, forkJoin, of, takeUntil } from 'rxjs';\nimport { CartStoreService } from '../../../services/cart-store.service';\nimport { orderStatusLabel, orderStatusTone } from '../order-status';\n\ninterface LineVm {\n variantId: string;\n name: string;\n quantity: number;\n unitPrice: number;\n lineTotal: number;\n fulfilmentStatus?: string;\n}\n\ninterface TimelineVm {\n toStatus: string;\n label: string;\n at?: string;\n reason?: string;\n}\n\ninterface PaymentVm {\n provider?: string;\n method?: string;\n status?: string;\n amount: number;\n}\n\n// P5.3, ACC-03 — one order in full: lines, totals, the transition\n// timeline, payments, and the context actions (reorder, invoice, track,\n// return). Return / review targets are P5.9 / P5.11 — linked when they\n// exist, absent otherwise rather than dead-ended.\n@Component({\n standalone: false,\n selector: 'x-account-order-detail',\n templateUrl: './order-detail.component.html',\n})\nexport class AccountOrderDetailComponent extends BaseDirective {\n private readonly route = inject(ActivatedRoute);\n private readonly cart = inject(CartStoreService);\n\n loading = true;\n found = false;\n\n orderId = '';\n orderNumber = '';\n status = '';\n statusLabel = '';\n tone = '';\n placedAt?: string;\n currency = 'NGN';\n recipientName = '';\n recipientPhone = '';\n\n lines: LineVm[] = [];\n subtotal = 0;\n deliveryTotal = 0;\n taxTotal = 0;\n discountTotal = 0;\n grandTotal = 0;\n amountPaid = 0;\n codAmountDue = 0;\n\n timeline: TimelineVm[] = [];\n payments: PaymentVm[] = [];\n\n override init = () => {\n this.orderId = this.route.snapshot.paramMap.get('id') ?? '';\n if (!this.orderId) {\n this.loading = false;\n return;\n }\n\n forkJoin({\n order: this.apiService\n .on('apps/commerce/order')\n .getOne(this.orderId)\n .pipe(catchError(() => of(undefined))),\n lines: this.apiService\n .on('apps/commerce/order-line')\n .getMany({ orderId: this.orderId, perPage: 200 } as any)\n .pipe(catchError(() => of(undefined))),\n history: this.apiService\n .on('apps/commerce/order-status-history')\n .getMany({ orderId: this.orderId, perPage: 200 } as any)\n .pipe(catchError(() => of(undefined))),\n payments: this.apiService\n .on('apps/commerce/payment')\n .getMany({ orderId: this.orderId, perPage: 50 } as any)\n .pipe(catchError(() => of(undefined))),\n })\n .pipe(takeUntil(this.$))\n .subscribe(\n using((res: any) => {\n this.loading = false;\n const order = res?.order?.data;\n if (!order) return;\n this.found = true;\n\n this.orderNumber = order.orderNumber;\n this.status = order.status;\n this.statusLabel = orderStatusLabel(order.status);\n this.tone = orderStatusTone(order.status);\n this.placedAt = order.placedAt ?? order.createdAt;\n this.currency = order.currency ?? 'NGN';\n this.recipientName = order.recipientName ?? '';\n this.recipientPhone = order.recipientPhone ?? '';\n this.subtotal = Number(order.subtotal ?? 0);\n this.deliveryTotal = Number(order.deliveryTotal ?? 0);\n this.taxTotal = Number(order.taxTotal ?? 0);\n this.discountTotal = Number(order.discountTotal ?? 0);\n this.grandTotal = Number(order.grandTotal ?? 0);\n this.amountPaid = Number(order.amountPaid ?? 0);\n this.codAmountDue = Number(order.codAmountDue ?? 0);\n\n this.lines = (res?.lines?.data ?? []).map((l: any) => ({\n variantId: l.variantId,\n name: l.nameSnapshot || 'Item',\n quantity: Number(l.quantity ?? 1),\n unitPrice: Number(l.unitPrice ?? 0),\n lineTotal: Number(l.unitPrice ?? 0) * Number(l.quantity ?? 1),\n fulfilmentStatus: l.fulfilmentStatus,\n }));\n\n this.timeline = (res?.history?.data ?? [])\n .slice()\n .sort((a: any, b: any) => this.ts(a.at ?? a.createdAt) - this.ts(b.at ?? b.createdAt))\n .map((h: any) => ({\n toStatus: h.toStatus,\n label: orderStatusLabel(h.toStatus),\n at: h.at ?? h.createdAt,\n reason: h.reason,\n }));\n\n this.payments = (res?.payments?.data ?? []).map((p: any) => ({\n provider: p.provider,\n method: p.method,\n status: p.status,\n amount: Number(p.amount ?? 0),\n }));\n }),\n );\n };\n\n reorder(): void {\n if (!this.lines.length) return;\n for (const line of this.lines) {\n this.cart.addLine({\n variantId: line.variantId,\n productId: '',\n name: line.name,\n quantity: line.quantity,\n unitPrice: line.unitPrice,\n currency: this.currency,\n });\n }\n notify('Added to your cart', undefined, 'success');\n this.router.navigate(['/cart']);\n }\n\n private ts(v?: string): number {\n const t = v ? Date.parse(v) : NaN;\n return Number.isNaN(t) ? 0 : t;\n }\n}\n","<a routerLink=\"../\" class=\"x-acct-btn-ghost\">‹ All orders</a>\n\n@if (loading) {\n <div class=\"x-acct-empty\" style=\"margin-top: 16px\">Loading…</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 order.</div>\n </div>\n} @else {\n <header style=\"margin: 16px 0 8px\">\n <h2 class=\"x-acct-h2\">{{ orderNumber }}</h2>\n <p class=\"x-acct-sub\">\n @if (placedAt) {\n Placed {{ placedAt | date: 'medium' }} ·\n }\n <span\n class=\"x-acct-pill\"\n [class.x-acct-pill-ok]=\"tone === 'ok'\"\n [class.x-acct-pill-warn]=\"tone === 'warn'\"\n [class.x-acct-pill-bad]=\"tone === 'bad'\"\n >{{ statusLabel }}</span\n >\n </p>\n </header>\n\n <div class=\"x-acct-card\" style=\"display: flex; flex-wrap: wrap; gap: 10px\">\n <button type=\"button\" class=\"x-acct-btn\" (click)=\"reorder()\">Buy these again</button>\n <a\n class=\"x-acct-btn-ghost\"\n [routerLink]=\"['/order/invoice']\"\n [queryParams]=\"{ orderId: orderId }\"\n >VAT invoice</a\n >\n <a\n class=\"x-acct-btn-ghost\"\n [routerLink]=\"['/track']\"\n [queryParams]=\"{ number: orderNumber }\"\n >Track delivery</a\n >\n <a class=\"x-acct-btn-ghost\" [routerLink]=\"['return']\">Request a return</a>\n <a class=\"x-acct-btn-ghost\" routerLink=\"/help\">Contact support</a>\n </div>\n\n <div class=\"x-acct-card\">\n <strong>Items</strong>\n @for (line of lines; track line.variantId) {\n <div class=\"x-acct-row\">\n <span>\n {{ line.name }}\n <span class=\"x-acct-sub\" style=\"display: block; margin-top: 2px\">\n Qty {{ line.quantity }} · {{ currency }} {{ line.unitPrice | number: '1.2-2' }} each\n @if (line.fulfilmentStatus) {\n · {{ line.fulfilmentStatus }}\n }\n </span>\n </span>\n <strong>{{ currency }} {{ line.lineTotal | number: '1.2-2' }}</strong>\n </div>\n }\n <div class=\"x-acct-row\"><span>Subtotal</span><span>{{ currency }} {{ subtotal | number: '1.2-2' }}</span></div>\n @if (discountTotal > 0) {\n <div class=\"x-acct-row\"><span>Discount</span><span>− {{ currency }} {{ discountTotal | number: '1.2-2' }}</span></div>\n }\n <div class=\"x-acct-row\"><span>Delivery</span><span>{{ currency }} {{ deliveryTotal | number: '1.2-2' }}</span></div>\n <div class=\"x-acct-row\"><span>VAT (incl.)</span><span>{{ currency }} {{ taxTotal | number: '1.2-2' }}</span></div>\n <div class=\"x-acct-row\"><strong>Total</strong><strong>{{ currency }} {{ grandTotal | number: '1.2-2' }}</strong></div>\n <div class=\"x-acct-row\"><span>Paid</span><span>{{ currency }} {{ amountPaid | number: '1.2-2' }}</span></div>\n @if (codAmountDue > 0) {\n <div class=\"x-acct-row\">\n <span>Due on delivery</span>\n <strong>{{ currency }} {{ codAmountDue | number: '1.2-2' }}</strong>\n </div>\n }\n </div>\n\n @if (recipientName || recipientPhone) {\n <div class=\"x-acct-card\">\n <strong>Delivery to</strong>\n <div class=\"x-acct-row\">\n <span>{{ recipientName }}</span>\n <span>{{ recipientPhone }}</span>\n </div>\n </div>\n }\n\n @if (payments.length) {\n <div class=\"x-acct-card\">\n <strong>Payments</strong>\n @for (p of payments; track $index) {\n <div class=\"x-acct-row\">\n <span>{{ p.method || p.provider || 'Payment' }}</span>\n <span class=\"x-acct-pill\">{{ p.status }}</span>\n <span>{{ currency }} {{ p.amount | number: '1.2-2' }}</span>\n </div>\n }\n </div>\n }\n\n @if (timeline.length) {\n <div class=\"x-acct-card\">\n <strong>Progress</strong>\n @for (step of timeline; track $index) {\n <div class=\"x-acct-row\">\n <span>\n {{ step.label }}\n @if (step.reason) {\n <span class=\"x-acct-sub\" style=\"display: block; margin-top: 2px\">{{ step.reason }}</span>\n }\n </span>\n <span class=\"x-acct-sub\">{{ step.at | date: 'short' }}</span>\n </div>\n }\n </div>\n }\n}\n","import { Component, inject } from '@angular/core';\nimport { BaseDirective, using } from '@thescaffold/ngx-core';\nimport { catchError, firstValueFrom, of, takeUntil } from 'rxjs';\nimport { AccountStoreService } from '../account-store.service';\nimport { orderStatusLabel, orderStatusTone } from '../order-status';\n\ninterface OrderRowVm {\n id: string;\n orderNumber: string;\n status: string;\n statusLabel: string;\n tone: string;\n placedAt?: string;\n lineCount: number;\n grandTotal: number;\n codAmountDue: number;\n currency: string;\n}\n\n// P5.3, ACC-03 — the buyer's order history. Every Order for their\n// Customer, newest first, each linking to the detail page (reorder /\n// invoice / track / return live there).\n@Component({\n standalone: false,\n selector: 'x-account-orders',\n templateUrl: './orders.component.html',\n})\nexport class AccountOrdersComponent extends BaseDirective {\n private readonly store = inject(AccountStoreService);\n\n loading = true;\n orders: OrderRowVm[] = [];\n\n override init = () => {\n this.store\n .customer()\n .pipe(takeUntil(this.$))\n .subscribe(\n using((customer) => {\n if (!customer) {\n this.loading = false;\n return;\n }\n void this.load(customer.id);\n }),\n );\n };\n\n private async load(customerId: string): Promise<void> {\n const res: any = await firstValueFrom(\n this.apiService\n .on('apps/commerce/order')\n .getMany({ customerId, perPage: 200 } as any)\n .pipe(catchError(() => of({ data: [] }))),\n );\n this.orders = (res?.data ?? [])\n .slice()\n .sort(\n (a: any, b: any) =>\n this.ts(b.placedAt ?? b.createdAt) - this.ts(a.placedAt ?? a.createdAt),\n )\n .map((o: any) => ({\n id: o.id,\n orderNumber: o.orderNumber,\n status: o.status,\n statusLabel: orderStatusLabel(o.status),\n tone: orderStatusTone(o.status),\n placedAt: o.placedAt ?? o.createdAt,\n lineCount: Number(o.lineCount ?? 0),\n grandTotal: Number(o.grandTotal ?? 0),\n codAmountDue: Number(o.codAmountDue ?? 0),\n currency: o.currency ?? 'NGN',\n }));\n this.loading = false;\n }\n\n private ts(v?: string): number {\n const t = v ? Date.parse(v) : NaN;\n return Number.isNaN(t) ? 0 : t;\n }\n}\n","<h2 class=\"x-acct-h2\">Orders</h2>\n<p class=\"x-acct-sub\">Track a delivery, download an invoice or start a return.</p>\n\n@if (loading) {\n <div class=\"x-acct-empty\">Loading your orders…</div>\n} @else if (!orders.length) {\n <div class=\"x-acct-card\">\n <div class=\"x-acct-empty\">\n No orders yet. When you place one it'll show up here.\n </div>\n </div>\n} @else {\n <div class=\"x-acct-card\">\n @for (order of orders; track order.id) {\n <a class=\"x-acct-row\" [routerLink]=\"[order.id]\">\n <span>\n <strong>{{ order.orderNumber }}</strong>\n @if (order.placedAt) {\n <span class=\"x-acct-sub\" style=\"margin: 2px 0 0; display: block\">\n {{ order.placedAt | date: 'mediumDate' }}\n </span>\n }\n </span>\n <span\n class=\"x-acct-pill\"\n [class.x-acct-pill-ok]=\"order.tone === 'ok'\"\n [class.x-acct-pill-warn]=\"order.tone === 'warn'\"\n [class.x-acct-pill-bad]=\"order.tone === 'bad'\"\n >{{ order.statusLabel }}</span\n >\n <span style=\"text-align: right\">\n <strong>{{ order.currency }} {{ order.grandTotal | number: '1.2-2' }}</strong>\n @if (order.codAmountDue > 0) {\n <span class=\"x-acct-sub\" style=\"margin: 2px 0 0; display: block\">\n {{ order.currency }} {{ order.codAmountDue | number: '1.2-2' }} on delivery\n </span>\n }\n </span>\n </a>\n @if (order.tone !== 'bad') {\n <div class=\"x-acct-row-actions\">\n <a\n class=\"x-acct-link\"\n routerLink=\"/order/invoice\"\n [queryParams]=\"{ orderId: order.id }\"\n >Invoice (PDF)</a\n >\n </div>\n }\n }\n </div>\n}\n","import { Component, inject } from '@angular/core';\nimport { BaseDirective, using } from '@thescaffold/ngx-core';\nimport { catchError, firstValueFrom, of, takeUntil } from 'rxjs';\nimport { AccountStoreService } from '../account-store.service';\n\ninterface PaymentRowVm {\n id: string;\n orderId?: string;\n orderNumber: string;\n provider?: string;\n method?: string;\n status?: string;\n amount: number;\n currency: string;\n paidAt?: string;\n createdAt?: string;\n}\n\n// P5.3, ACC-05 (the R1 slice) — a read-only payment history across the\n// buyer's orders. Saved / tokenised cards are P1 and not built.\n@Component({\n standalone: false,\n selector: 'x-account-payments',\n templateUrl: './payments.component.html',\n})\nexport class AccountPaymentsComponent extends BaseDirective {\n private readonly store = inject(AccountStoreService);\n\n loading = true;\n payments: PaymentRowVm[] = [];\n\n override init = () => {\n this.store\n .customer()\n .pipe(takeUntil(this.$))\n .subscribe(\n using((customer) => {\n if (!customer) {\n this.loading = false;\n return;\n }\n void this.load(customer.id);\n }),\n );\n };\n\n private async load(customerId: string): Promise<void> {\n const ordersRes: any = await firstValueFrom(\n this.apiService\n .on('apps/commerce/order')\n .getMany({ customerId, perPage: 200 } as any)\n .pipe(catchError(() => of({ data: [] }))),\n );\n const orders: any[] = ordersRes?.data ?? [];\n const numberById = new Map<string, string>(\n orders.map((o) => [o.id, o.orderNumber]),\n );\n\n const perOrder = await Promise.all(\n orders.map((o) =>\n firstValueFrom(\n this.apiService\n .on('apps/commerce/payment')\n .getMany({ orderId: o.id, perPage: 50 } as any)\n .pipe(catchError(() => of({ data: [] }))),\n ),\n ),\n );\n\n this.payments = perOrder\n .flatMap((res: any) => res?.data ?? [])\n .map((p: any) => ({\n id: p.id,\n orderId: p.orderId,\n orderNumber: numberById.get(p.orderId) ?? '',\n provider: p.provider,\n method: p.method,\n status: p.status,\n amount: Number(p.amount ?? 0),\n currency: p.currency ?? 'NGN',\n paidAt: p.paidAt,\n createdAt: p.createdAt,\n }))\n .sort((a, b) => this.ts(b.paidAt ?? b.createdAt) - this.ts(a.paidAt ?? a.createdAt));\n this.loading = false;\n }\n\n private ts(v?: string): number {\n const t = v ? Date.parse(v) : NaN;\n return Number.isNaN(t) ? 0 : t;\n }\n}\n","<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…</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 }} · {{ (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","import { Component, inject } from '@angular/core';\nimport { ApiService, BaseDirective, notify } from '@thescaffold/ngx-core';\nimport { firstValueFrom } from 'rxjs';\nimport { AccountStoreService } from '../account-store.service';\n\n// P7.7, SEC-04 / SEC-05 (NDPR) — the customer's data controls: export a\n// copy of everything held about them, and lodge an account-deletion\n// request. Cookie / tracking consent is the site-wide consent bar; this\n// page is the data-subject access + erasure surface.\n@Component({\n standalone: false,\n selector: 'x-account-privacy',\n templateUrl: './privacy.component.html',\n})\nexport class AccountPrivacyComponent extends BaseDirective {\n private readonly api = inject(ApiService);\n private readonly store = inject(AccountStoreService);\n\n customerId?: string;\n exporting = false;\n requesting = false;\n deletionLodged = false;\n deletionReason = '';\n\n override init = () => {\n this.store\n .customer()\n .subscribe((c) => (this.customerId = c?.id));\n };\n\n async downloadData(): Promise<void> {\n if (this.exporting) return;\n this.exporting = true;\n try {\n const res: any = await firstValueFrom(\n this.api.post('apps/commerce/data-request/export', {\n customerId: this.customerId,\n }),\n );\n const bundle = res?.data ?? res;\n const blob = new Blob([JSON.stringify(bundle, null, 2)], {\n type: 'application/json',\n });\n const url = URL.createObjectURL(blob);\n const a = document.createElement('a');\n a.href = url;\n a.download = `tilmart-data-${new Date().toISOString().slice(0, 10)}.json`;\n a.click();\n URL.revokeObjectURL(url);\n } catch {\n notify('We couldn’t prepare your data right now. Please try again.', undefined, 'error');\n } finally {\n this.exporting = false;\n }\n }\n\n async requestDeletion(): Promise<void> {\n if (this.requesting) return;\n this.requesting = true;\n try {\n await firstValueFrom(\n this.api.post('apps/commerce/data-request', {\n type: 'deletion',\n customerId: this.customerId,\n note: this.deletionReason || undefined,\n }),\n );\n this.deletionLodged = true;\n notify('Your deletion request has been lodged.', undefined, 'success');\n } catch {\n notify('We couldn’t lodge your request. Please try again.', undefined, 'error');\n } finally {\n this.requesting = false;\n }\n }\n}\n","<div class=\"x-pv\">\n <h1 class=\"x-pv-title\">Privacy &amp; your data</h1>\n <p class=\"x-pv-intro\">\n Under the Nigeria Data Protection Act you can get a copy of the personal\n data we hold about you, and ask us to delete your account.\n </p>\n\n <section class=\"x-pv-card\">\n <h2>Download my data</h2>\n <p>\n A machine-readable copy of your profile, addresses, orders, returns,\n warranties, reviews, questions, support messages, notification\n preferences and saved tools.\n </p>\n <button\n type=\"button\"\n class=\"x-pv-btn\"\n [disabled]=\"exporting || !customerId\"\n (click)=\"downloadData()\"\n >\n {{ exporting ? 'Preparing…' : 'Download my data (JSON)' }}\n </button>\n </section>\n\n <section class=\"x-pv-card\">\n <h2>Delete my account</h2>\n @if (deletionLodged) {\n <p class=\"x-pv-ok\">\n Your request is lodged. Our team will complete it within 30 days and\n email you when it’s done.\n </p>\n } @else {\n <p>\n We’ll remove your personal details. Some records are kept where the\n law requires — see below.\n </p>\n <textarea\n class=\"x-pv-reason\"\n rows=\"2\"\n placeholder=\"Anything you'd like us to know (optional)\"\n [(ngModel)]=\"deletionReason\"\n ></textarea>\n <button\n type=\"button\"\n class=\"x-pv-btn x-pv-btn-danger\"\n [disabled]=\"requesting || !customerId\"\n (click)=\"requestDeletion()\"\n >\n {{ requesting ? 'Sending…' : 'Request account deletion' }}\n </button>\n }\n </section>\n\n <section class=\"x-pv-card x-pv-retain\">\n <h2>What we keep, and why</h2>\n <ul>\n <li><strong>Order &amp; payment records</strong> — financial and tax law.</li>\n <li><strong>Warranty registrations &amp; claim outcomes</strong> — our ongoing warranty obligation to the product owner.</li>\n <li><strong>Audit-log entries</strong> — security and accountability.</li>\n </ul>\n <p class=\"x-pv-fine\">\n Kept records are stripped of contact details where possible and are not\n used for marketing.\n </p>\n </section>\n</div>\n\n<style>\n .x-pv { max-width: 640px; }\n .x-pv-title { font-size: 22px; font-weight: 800; color: var(--color-text); margin: 0 0 6px; }\n .x-pv-intro { font-size: 14px; color: var(--color-text-muted); line-height: 1.6; margin: 0 0 20px; }\n .x-pv-card { border: 1px solid var(--color-border); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; }\n .x-pv-card h2 { font-size: 15px; font-weight: 700; color: var(--color-text); margin: 0 0 6px; }\n .x-pv-card p { font-size: 13.5px; color: var(--color-text-muted); line-height: 1.6; margin: 0 0 12px; }\n .x-pv-btn { font: inherit; font-weight: 700; font-size: 13.5px; padding: 10px 18px; border: 0; border-radius: 8px; background: var(--color-brand); color: #fff; cursor: pointer; }\n .x-pv-btn:disabled { opacity: 0.5; cursor: not-allowed; }\n .x-pv-btn-danger { background: var(--color-danger, #c0392b); }\n .x-pv-reason { width: 100%; box-sizing: border-box; font: inherit; padding: 8px 10px; border: 1px solid var(--color-border); border-radius: 6px; background: var(--color-surface, #fff); color: var(--color-text); margin-bottom: 12px; }\n .x-pv-ok { color: var(--color-text); }\n .x-pv-retain ul { margin: 0 0 8px; padding-left: 18px; font-size: 13.5px; color: var(--color-text-muted); line-height: 1.7; }\n .x-pv-fine { font-size: 12.5px; }\n</style>\n","import { Component, inject } from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\nimport { BaseDirective, using } from '@thescaffold/ngx-core';\nimport { catchError, firstValueFrom, forkJoin, of, takeUntil } from 'rxjs';\n\ninterface ReturnLineVm {\n name: string;\n quantity: number;\n inspectionOutcome: string;\n acceptedQuantity?: number;\n disposition?: string;\n}\n\nconst STATUS_LABELS: Record<string, string> = {\n requested: 'Requested',\n approved: 'Approved',\n rejected: 'Rejected',\n awaiting_return: 'Awaiting your return',\n in_transit: 'On its way back',\n received: 'Received',\n inspecting: 'Being inspected',\n resolved: 'Resolved',\n cancelled: 'Cancelled',\n};\n\n// P5.9, RET-03 — one RMA in full: status, instructions, per-line\n// inspection outcome, the resolution and any refund amount.\n@Component({\n standalone: false,\n selector: 'x-account-return-detail',\n templateUrl: './return-detail.component.html',\n})\nexport class AccountReturnDetailComponent extends BaseDirective {\n private readonly route = inject(ActivatedRoute);\n\n loading = true;\n found = false;\n\n rmaNumber = '';\n status = '';\n statusLabel = '';\n reasonCode = '';\n method?: string;\n instructions?: string;\n whoPaysReturn?: string;\n resolution?: string;\n refundAmount?: number;\n createdAt?: string;\n resolvedAt?: string;\n orderId = '';\n lines: ReturnLineVm[] = [];\n\n override init = () => {\n const id = this.route.snapshot.paramMap.get('id') ?? '';\n if (!id) {\n this.loading = false;\n return;\n }\n\n forkJoin({\n request: this.apiService\n .on('apps/commerce/return-request')\n .getOne(id)\n .pipe(catchError(() => of(undefined))),\n lines: this.apiService\n .on('apps/commerce/return-line')\n .getMany({ returnRequestId: id, perPage: 100 } as any)\n .pipe(catchError(() => of({ data: [] }))),\n })\n .pipe(takeUntil(this.$))\n .subscribe(\n using((res: any) => {\n this.loading = false;\n const r = res?.request?.data;\n if (!r) return;\n this.found = true;\n this.rmaNumber = r.rmaNumber;\n this.status = r.status;\n this.statusLabel = STATUS_LABELS[r.status] ?? r.status;\n this.reasonCode = r.reasonCode;\n this.method = r.method;\n this.instructions = r.instructions;\n this.whoPaysReturn = r.whoPaysReturn;\n this.resolution = r.resolution;\n this.refundAmount = r.refundAmount != null ? Number(r.refundAmount) : undefined;\n this.createdAt = r.createdAt;\n this.resolvedAt = r.resolvedAt;\n this.orderId = r.orderId;\n const rawLines: any[] = res?.lines?.data ?? [];\n this.lines = rawLines.map((l: any) => ({\n name: 'Item',\n quantity: Number(l.quantity ?? 1),\n inspectionOutcome: l.inspectionOutcome,\n acceptedQuantity: l.acceptedQuantity,\n disposition: l.disposition,\n }));\n void this.nameLines(r.orderId, rawLines);\n }),\n );\n };\n\n private async nameLines(orderId: string, rawLines: any[]): Promise<void> {\n const orderLines: any = await firstValueFrom(\n this.apiService\n .on('apps/commerce/order-line')\n .getMany({ orderId, perPage: 200 } as any)\n .pipe(catchError(() => of({ data: [] }))),\n );\n const nameById = new Map<string, string>(\n (orderLines?.data ?? []).map((o: any) => [o.id, o.nameSnapshot || 'Item']),\n );\n this.lines = this.lines.map((vm, i) => ({\n ...vm,\n name: nameById.get(rawLines[i]?.orderLineId) ?? 'Item',\n }));\n }\n}\n","<a routerLink=\"../\" class=\"x-acct-btn-ghost\">‹ All returns</a>\n\n@if (loading) {\n <div class=\"x-acct-empty\" style=\"margin-top: 16px\">Loading…</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 return.</div>\n </div>\n} @else {\n <header style=\"margin: 16px 0 8px\">\n <h2 class=\"x-acct-h2\">{{ rmaNumber }}</h2>\n <p class=\"x-acct-sub\">\n <span class=\"x-acct-pill\">{{ statusLabel }}</span>\n · requested {{ createdAt | date: 'mediumDate' }}\n @if (orderId) {\n · <a [routerLink]=\"['/account/orders', orderId]\">view order</a>\n }\n </p>\n </header>\n\n @if (instructions) {\n <div class=\"x-acct-card\">\n <strong>What to do</strong>\n <p class=\"x-acct-sub\" style=\"margin: 6px 0 0\">{{ instructions }}</p>\n </div>\n }\n\n <div class=\"x-acct-card\">\n <strong>Items</strong>\n @for (line of lines; track $index) {\n <div class=\"x-acct-row\">\n <span>\n {{ line.name }}\n <span class=\"x-acct-sub\" style=\"display: block; margin-top: 2px\">\n Qty {{ line.quantity }}\n @if (line.inspectionOutcome !== 'pending') {\n · inspected: {{ line.inspectionOutcome }}\n @if (line.acceptedQuantity != null) {\n ({{ line.acceptedQuantity }} accepted)\n }\n }\n </span>\n </span>\n </div>\n }\n </div>\n\n @if (resolution) {\n <div class=\"x-acct-card\">\n <strong>Outcome</strong>\n <div class=\"x-acct-row\">\n <span>{{ resolution }}</span>\n @if (refundAmount != null) {\n <strong>Refund: {{ refundAmount | number: '1.2-2' }}</strong>\n }\n </div>\n @if (resolvedAt) {\n <p class=\"x-acct-sub\" style=\"margin: 0\">Resolved {{ resolvedAt | date: 'medium' }}</p>\n }\n </div>\n }\n}\n","import { Component, inject } from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\nimport { BaseDirective, notify } from '@thescaffold/ngx-core';\nimport { catchError, firstValueFrom, of } from 'rxjs';\nimport { AccountStoreService } from '../account-store.service';\n\ninterface ReturnableLineVm {\n orderLineId: string;\n name: string;\n orderedQty: number;\n selected: boolean;\n quantity: number;\n}\n\nconst REASONS: { code: string; label: string }[] = [\n { code: 'damaged_in_transit', label: 'Damaged in transit' },\n { code: 'wrong_item', label: 'Wrong item sent' },\n { code: 'not_as_described', label: 'Not as described' },\n { code: 'faulty_on_arrival', label: 'Faulty on arrival' },\n { code: 'changed_mind', label: 'Changed my mind' },\n { code: 'missing_parts', label: 'Missing parts' },\n];\n\nconst METHODS: { code: string; label: string }[] = [\n { code: 'pickup', label: 'Pickup from my address' },\n { code: 'drop_off', label: 'Drop off at a collection point' },\n { code: 'station', label: 'Drop at a pickup station' },\n];\n\n// P5.9, RET-02 — the self-serve return request. Pick items + a reason;\n// the eligibility check (window, who pays) runs before the RMA is minted.\n@Component({\n standalone: false,\n selector: 'x-account-return-request',\n templateUrl: './return-request.component.html',\n})\nexport class AccountReturnRequestComponent extends BaseDirective {\n private readonly route = inject(ActivatedRoute);\n private readonly store = inject(AccountStoreService);\n\n readonly reasons = REASONS;\n readonly methods = METHODS;\n\n loading = true;\n orderId = '';\n orderNumber = '';\n customerId = '';\n lines: ReturnableLineVm[] = [];\n\n reasonCode = '';\n method = 'pickup';\n notes = '';\n\n checking = false;\n eligibility: { eligible: boolean; reasons: string[]; windowDays: number; whoPaysReturn: string } | null = null;\n submitting = false;\n error = '';\n createdRma = '';\n\n override init = () => {\n this.orderId = this.route.snapshot.paramMap.get('id') ?? '';\n this.store.customer().subscribe((c) => (this.customerId = c?.id ?? ''));\n void this.load();\n };\n\n private async load(): Promise<void> {\n const [order, lines] = await Promise.all([\n firstValueFrom(\n this.apiService\n .on('apps/commerce/order')\n .getOne(this.orderId)\n .pipe(catchError(() => of(undefined))),\n ),\n firstValueFrom(\n this.apiService\n .on('apps/commerce/order-line')\n .getMany({ orderId: this.orderId, perPage: 200 } as any)\n .pipe(catchError(() => of({ data: [] }))),\n ),\n ]);\n this.orderNumber = (order as any)?.data?.orderNumber ?? '';\n this.lines = ((lines as any)?.data ?? []).map((l: any) => ({\n orderLineId: l.id,\n name: l.nameSnapshot || 'Item',\n orderedQty: Number(l.quantity ?? 1),\n selected: false,\n quantity: Number(l.quantity ?? 1),\n }));\n this.loading = false;\n }\n\n get selectedLines(): ReturnableLineVm[] {\n return this.lines.filter((l) => l.selected);\n }\n\n get canSubmit(): boolean {\n return (\n !!this.reasonCode &&\n this.selectedLines.length > 0 &&\n this.eligibility?.eligible === true\n );\n }\n\n async checkEligibility(): Promise<void> {\n if (!this.reasonCode) {\n this.eligibility = null;\n return;\n }\n this.checking = true;\n try {\n const res: any = await firstValueFrom(\n this.apiService.post('apps/commerce/return-request/eligibility', {\n orderId: this.orderId,\n reasonCode: this.reasonCode,\n }),\n );\n this.eligibility = res?.data ?? null;\n } catch {\n this.eligibility = null;\n } finally {\n this.checking = false;\n }\n }\n\n async submit(): Promise<void> {\n if (this.submitting || !this.canSubmit) return;\n this.submitting = true;\n this.error = '';\n try {\n const res: any = await firstValueFrom(\n this.apiService.post('apps/commerce/return-request/request', {\n orderId: this.orderId,\n customerId: this.customerId || undefined,\n reasonCode: this.reasonCode,\n method: this.method,\n notes: this.notes || undefined,\n lines: this.selectedLines.map((l) => ({\n orderLineId: l.orderLineId,\n quantity: Math.min(l.quantity, l.orderedQty),\n })),\n }),\n );\n if (res?.status === 'error') {\n this.error = res?.message ?? 'Could not create your return.';\n return;\n }\n this.createdRma = res?.data?.rmaNumber ?? '';\n notify('Return requested', undefined, 'success');\n } catch (err: any) {\n this.error = err?.error?.message ?? 'Could not create your return.';\n } finally {\n this.submitting = false;\n }\n }\n}\n","<a [routerLink]=\"['/account/orders', orderId]\" class=\"x-acct-btn-ghost\">‹ Back to order</a>\n\n@if (loading) {\n <div class=\"x-acct-empty\" style=\"margin-top: 16px\">Loading…</div>\n} @else if (createdRma) {\n <div class=\"x-acct-card\" style=\"margin-top: 16px\">\n <h2 class=\"x-acct-h2\">Return requested</h2>\n <p class=\"x-acct-sub\">\n Your RMA number is <strong>{{ createdRma }}</strong>. We've emailed the\n instructions — you can also see them on the returns page.\n </p>\n <a class=\"x-acct-btn\" routerLink=\"/account/returns\">View my returns</a>\n </div>\n} @else {\n <h2 class=\"x-acct-h2\" style=\"margin-top: 16px\">Return an item</h2>\n <p class=\"x-acct-sub\">Order {{ orderNumber }}</p>\n\n <div class=\"x-acct-card\">\n <strong>Which items?</strong>\n @for (line of lines; track line.orderLineId) {\n <div class=\"x-acct-row\">\n <label class=\"x-acct-checkline\" style=\"flex: 1\">\n <input type=\"checkbox\" [(ngModel)]=\"line.selected\" />\n {{ line.name }}\n </label>\n @if (line.selected && line.orderedQty > 1) {\n <input\n type=\"number\"\n min=\"1\"\n [max]=\"line.orderedQty\"\n [(ngModel)]=\"line.quantity\"\n style=\"width: 64px\"\n />\n }\n <span class=\"x-acct-sub\">of {{ line.orderedQty }}</span>\n </div>\n }\n </div>\n\n <div class=\"x-acct-card\">\n <div class=\"x-acct-field\">\n <label>Reason</label>\n <select aria-label=\"Reason\" [ngModel]=\"reasonCode\" (ngModelChange)=\"reasonCode = $event; checkEligibility()\">\n <option value=\"\">Choose a reason</option>\n @for (r of reasons; track r.code) {\n <option [value]=\"r.code\">{{ r.label }}</option>\n }\n </select>\n </div>\n\n @if (checking) {\n <div class=\"x-acct-empty\">Checking eligibility…</div>\n } @else if (eligibility) {\n @if (eligibility.eligible) {\n <div class=\"x-acct-ok\">\n Eligible — {{ eligibility.windowDays }}-day window.\n {{ eligibility.whoPaysReturn === 'customer' ? 'You cover return delivery for this reason.' : 'Return delivery is on us.' }}\n </div>\n } @else {\n <div class=\"x-acct-err\">\n @switch (eligibility.reasons[0]) {\n @case ('window-closed') { The return window for this order has closed. }\n @case ('change-of-mind-not-allowed') { Change-of-mind returns aren't accepted for these items. }\n @case ('returns-not-offered') { Returns aren't available for this order. }\n @default { This return isn't eligible. }\n }\n </div>\n }\n }\n\n <div class=\"x-acct-field\">\n <label>How will you return it?</label>\n <select aria-label=\"How will you return it?\" [(ngModel)]=\"method\">\n @for (m of methods; track m.code) {\n <option [value]=\"m.code\">{{ m.label }}</option>\n }\n </select>\n </div>\n\n <div class=\"x-acct-field\">\n <label>Anything else we should know? (optional)</label>\n <input [(ngModel)]=\"notes\" />\n </div>\n\n @if (error) {\n <div class=\"x-acct-err\">{{ error }}</div>\n }\n <button\n type=\"button\"\n class=\"x-acct-btn\"\n [disabled]=\"!canSubmit || submitting\"\n (click)=\"submit()\"\n >\n {{ submitting ? 'Submitting…' : 'Request return' }}\n </button>\n </div>\n}\n","import { Component, inject } from '@angular/core';\nimport { BaseDirective, using } from '@thescaffold/ngx-core';\nimport { catchError, firstValueFrom, of, takeUntil } from 'rxjs';\nimport { AccountStoreService } from '../account-store.service';\n\ninterface ReturnRowVm {\n id: string;\n rmaNumber: string;\n reasonCode: string;\n status: string;\n statusLabel: string;\n tone: string;\n resolution?: string;\n createdAt?: string;\n}\n\nconst STATUS_LABELS: Record<string, string> = {\n requested: 'Requested',\n approved: 'Approved',\n rejected: 'Rejected',\n awaiting_return: 'Awaiting your return',\n in_transit: 'On its way back',\n received: 'Received',\n inspecting: 'Being inspected',\n resolved: 'Resolved',\n cancelled: 'Cancelled',\n};\n\nconst REASON_LABELS: Record<string, string> = {\n damaged_in_transit: 'Damaged in transit',\n wrong_item: 'Wrong item',\n not_as_described: 'Not as described',\n faulty_on_arrival: 'Faulty on arrival',\n changed_mind: 'Changed mind',\n missing_parts: 'Missing parts',\n};\n\n// P5.9, RET-02/03 — the buyer's returns list. Each RMA links to its\n// detail (status timeline + resolution).\n@Component({\n standalone: false,\n selector: 'x-account-returns',\n templateUrl: './returns.component.html',\n})\nexport class AccountReturnsComponent extends BaseDirective {\n private readonly store = inject(AccountStoreService);\n\n loading = true;\n returns: ReturnRowVm[] = [];\n\n override init = () => {\n this.store\n .customer()\n .pipe(takeUntil(this.$))\n .subscribe(\n using((customer) => {\n if (!customer) {\n this.loading = false;\n return;\n }\n void this.load(customer.id);\n }),\n );\n };\n\n private async load(customerId: string): Promise<void> {\n const res: any = await firstValueFrom(\n this.apiService\n .on('apps/commerce/return-request')\n .getMany({ customerId, perPage: 100 } as any)\n .pipe(catchError(() => of({ data: [] }))),\n );\n this.returns = (res?.data ?? [])\n .slice()\n .sort((a: any, b: any) => this.ts(b.createdAt) - this.ts(a.createdAt))\n .map((r: any) => ({\n id: r.id,\n rmaNumber: r.rmaNumber,\n reasonCode: REASON_LABELS[r.reasonCode] ?? r.reasonCode,\n status: r.status,\n statusLabel: STATUS_LABELS[r.status] ?? r.status,\n tone:\n r.status === 'resolved'\n ? 'ok'\n : r.status === 'rejected' || r.status === 'cancelled'\n ? 'bad'\n : 'warn',\n resolution: r.resolution,\n createdAt: r.createdAt,\n }));\n this.loading = false;\n }\n\n private ts(v?: string): number {\n const t = v ? Date.parse(v) : NaN;\n return Number.isNaN(t) ? 0 : t;\n }\n}\n","<h2 class=\"x-acct-h2\">Returns</h2>\n<p class=\"x-acct-sub\">Start a return from any order — it'll show up here.</p>\n\n@if (loading) {\n <div class=\"x-acct-empty\">Loading…</div>\n} @else if (!returns.length) {\n <div class=\"x-acct-card\">\n <div class=\"x-acct-empty\">\n No returns yet. Open an order and choose \"Request a return\".\n </div>\n </div>\n} @else {\n <div class=\"x-acct-card\">\n @for (r of returns; track r.id) {\n <a class=\"x-acct-row\" [routerLink]=\"[r.id]\">\n <span>\n <strong>{{ r.rmaNumber }}</strong>\n <span class=\"x-acct-sub\" style=\"display: block; margin-top: 2px\">\n {{ r.reasonCode }} · {{ r.createdAt | date: 'mediumDate' }}\n </span>\n </span>\n <span\n class=\"x-acct-pill\"\n [class.x-acct-pill-ok]=\"r.tone === 'ok'\"\n [class.x-acct-pill-warn]=\"r.tone === 'warn'\"\n [class.x-acct-pill-bad]=\"r.tone === 'bad'\"\n >{{ r.statusLabel }}</span\n >\n @if (r.resolution) {\n <span class=\"x-acct-sub\">{{ r.resolution }}</span>\n }\n </a>\n }\n </div>\n}\n","import { Injectable, inject } from '@angular/core';\nimport { ApiService } from '@thescaffold/ngx-core';\nimport { firstValueFrom } from 'rxjs';\n\nexport interface AccountProfile {\n first_name?: string;\n last_name?: string;\n phone_number?: string;\n referral_code?: string;\n}\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AccountApiService {\n private readonly apiService = inject(ApiService);\n\n async getProfile(): Promise<AccountProfile> {\n const res: any = await firstValueFrom(\n this.apiService.get('apps/identity/attributes'),\n );\n return res?.data?.attributes?.user ?? {};\n }\n\n async updateProfile(payload: {\n phone_number?: string;\n referral_code?: string;\n }): Promise<void> {\n await firstValueFrom(\n this.apiService.patch('apps/identity/attributes/user', payload),\n );\n }\n\n async changePassword(payload: {\n currentSecret: string;\n newSecret: string;\n confirmNewSecret: string;\n }): Promise<void> {\n await firstValueFrom(\n this.apiService.post('apps/identity/reset-secret/change', payload),\n );\n }\n}\n","import { Component, inject } from '@angular/core';\nimport { ThemeService } from '@thescaffold/ngx-common';\nimport { BaseDirective, ControlService, notify } from '@thescaffold/ngx-core';\nimport { firstValueFrom } from 'rxjs';\nimport { AccountApiService } from '../../../services/account-api.service';\n\ntype ThemeChoice = 'light' | 'dark' | 'system';\n\nconst CATEGORIES: { key: string; label: string; locked?: boolean; consent?: boolean }[] = [\n { key: 'transactional', label: 'Order & payment updates', locked: true },\n { key: 'delivery', label: 'Delivery & dispatch' },\n { key: 'marketing', label: 'Offers & promotions', consent: true },\n { key: 'price_alert', label: 'Price drop alerts' },\n { key: 'back_in_stock', label: 'Back-in-stock alerts' },\n];\n\nconst CHANNELS: { key: string; label: string }[] = [\n { key: 'email', label: 'Email' },\n { key: 'sms', label: 'SMS' },\n { key: 'whatsapp', label: 'WhatsApp' },\n];\n\n// P5.3, ACC-01 / ACC-09 / ACC-10 — profile, password, theme and\n// notification preferences in one place. Theme rides the scaffold\n// PreferenceService (P5.2); notifications call `notification-preference/\n// mine` (P5.2's NotificationPreferenceWorkflow).\n@Component({\n standalone: false,\n selector: 'x-account-settings',\n templateUrl: './settings.component.html',\n})\nexport class AccountSettingsComponent extends BaseDirective {\n private readonly accountApi = inject(AccountApiService);\n private readonly themeService = inject(ThemeService);\n private readonly controlService = inject(ControlService);\n\n readonly categories = CATEGORIES;\n readonly channels = CHANNELS;\n\n loadingProfile = true;\n savingProfile = false;\n profileError = '';\n fullName = '';\n phoneNumber = '';\n\n currentSecret = '';\n newSecret = '';\n confirmNewSecret = '';\n showCurrentSecret = false;\n showNewSecret = false;\n showConfirmSecret = false;\n changingPassword = false;\n passwordError = '';\n passwordDone = false;\n\n theme: ThemeChoice = 'system';\n\n loadingPrefs = true;\n savingPrefs = false;\n prefsError = '';\n prefCategories: Record<string, string[]> = {};\n marketingConsent = false;\n quietHoursEnabled = false;\n quietHoursStart = '21:00';\n quietHoursEnd = '07:00';\n unsubscribedAll = false;\n\n get canChangePassword(): boolean {\n return (\n !!this.currentSecret &&\n !!this.newSecret &&\n this.newSecret === this.confirmNewSecret\n );\n }\n\n override init = () => {\n void this.loadProfile();\n void this.loadTheme();\n void this.loadPrefs();\n };\n\n private async loadProfile(): Promise<void> {\n try {\n const p = await this.accountApi.getProfile();\n this.fullName = [p.first_name, p.last_name].filter(Boolean).join(' ');\n this.phoneNumber = p.phone_number ?? '';\n } catch {\n this.profileError = 'Could not load your profile.';\n } finally {\n this.loadingProfile = false;\n }\n }\n\n private async loadTheme(): Promise<void> {\n try {\n const v = await firstValueFrom(this.themeService.get());\n if (v === 'light' || v === 'dark' || v === 'system') this.theme = v;\n } catch {\n // keep default\n }\n }\n\n private async loadPrefs(): Promise<void> {\n try {\n const res: any = await firstValueFrom(\n this.apiService.get('apps/commerce/notification-preference/mine'),\n );\n const pref = res?.data;\n if (pref) {\n this.prefCategories = pref.categories ?? {};\n this.marketingConsent = !!pref.marketingConsent;\n this.quietHoursEnabled = !!pref.quietHoursEnabled;\n this.quietHoursStart = pref.quietHoursStart ?? '21:00';\n this.quietHoursEnd = pref.quietHoursEnd ?? '07:00';\n this.unsubscribedAll = !!pref.unsubscribedAll;\n }\n } catch {\n this.prefsError = 'Could not load your notification preferences.';\n } finally {\n this.loadingPrefs = false;\n }\n }\n\n async saveProfile(): Promise<void> {\n if (this.savingProfile) return;\n this.savingProfile = true;\n this.profileError = '';\n try {\n await this.accountApi.updateProfile({ phone_number: this.phoneNumber });\n notify('Profile saved', undefined, 'success');\n } catch (err: any) {\n this.profileError = err?.error?.message ?? 'Could not save your profile.';\n } finally {\n this.savingProfile = false;\n }\n }\n\n async changePassword(): Promise<void> {\n if (this.changingPassword || !this.canChangePassword) return;\n this.changingPassword = true;\n this.passwordError = '';\n try {\n await this.accountApi.changePassword({\n currentSecret: this.currentSecret,\n newSecret: this.newSecret,\n confirmNewSecret: this.confirmNewSecret,\n });\n this.passwordDone = true;\n setTimeout(() => {\n this.controlService.logout();\n this.router.navigate(['/start']);\n }, 1500);\n } catch (err: any) {\n this.passwordError =\n err?.error?.message ?? 'Could not change your password.';\n } finally {\n this.changingPassword = false;\n }\n }\n\n setTheme(choice: ThemeChoice): void {\n this.theme = choice;\n this.themeService.set({ value: choice });\n }\n\n channelOn(category: string, channel: string): boolean {\n return (this.prefCategories[category] ?? []).includes(channel);\n }\n\n toggleChannel(category: string, channel: string): void {\n const set = new Set(this.prefCategories[category] ?? []);\n set.has(channel) ? set.delete(channel) : set.add(channel);\n this.prefCategories = { ...this.prefCategories, [category]: Array.from(set) };\n }\n\n async savePrefs(): Promise<void> {\n if (this.savingPrefs) return;\n this.savingPrefs = true;\n this.prefsError = '';\n try {\n await firstValueFrom(\n this.apiService.post('apps/commerce/notification-preference/mine', {\n categories: this.prefCategories,\n marketingConsent: this.marketingConsent,\n marketingConsentSource: 'account',\n quietHoursEnabled: this.quietHoursEnabled,\n quietHoursStart: this.quietHoursStart,\n quietHoursEnd: this.quietHoursEnd,\n unsubscribedAll: this.unsubscribedAll,\n }),\n );\n notify('Preferences saved', undefined, 'success');\n } catch (err: any) {\n this.prefsError = err?.error?.message ?? 'Could not save your preferences.';\n } finally {\n this.savingPrefs = false;\n }\n }\n}\n","<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…</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…\" />\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…' : '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…</div>\n }\n <button\n type=\"button\"\n class=\"x-acct-btn\"\n [disabled]=\"!canChangePassword || changingPassword\"\n (click)=\"changePassword()\"\n >\n {{ changingPassword ? 'Saving…' : '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…</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 — 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…' : 'Save preferences' }}\n </button>\n }\n</div>\n","import { Component, inject } from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\nimport { BaseDirective, using } from '@thescaffold/ngx-core';\nimport { catchError, firstValueFrom, of, takeUntil } from 'rxjs';\n\ninterface ClaimVm {\n id: string;\n status: string;\n faultDescription?: string;\n triageOutcome?: string;\n createdAt?: string;\n}\n\ninterface NoticeVm {\n id: string;\n severity: string;\n title: string;\n message: string;\n actionRequired?: string;\n}\n\n// P5.6, ACC-06 — one registered system: product, serial, dates,\n// certificate download (P4.18), any open safety notice for the variant,\n// and the claim history. \"Start a claim\" links to the claim form.\n@Component({\n standalone: false,\n selector: 'x-account-system-detail',\n templateUrl: './system-detail.component.html',\n})\nexport class AccountSystemDetailComponent extends BaseDirective {\n private readonly route = inject(ActivatedRoute);\n\n loading = true;\n found = false;\n\n warrantyId = '';\n productName = 'Registered unit';\n productSlug?: string;\n variantId = '';\n serial?: string;\n isVerified = false;\n startsAt?: string;\n expiresAt?: string;\n monthsLeft: number | null = null;\n status = '';\n orderLineId?: string;\n\n claims: ClaimVm[] = [];\n notices: NoticeVm[] = [];\n downloadingCert = false;\n\n override init = () => {\n this.warrantyId = this.route.snapshot.paramMap.get('id') ?? '';\n if (!this.warrantyId) {\n this.loading = false;\n return;\n }\n\n this.apiService\n .on('apps/commerce/warranty')\n .getOne(this.warrantyId)\n .pipe(\n takeUntil(this.$),\n catchError(() => of(undefined)),\n )\n .subscribe(\n using((res: any) => {\n const w = res?.data;\n if (!w) {\n this.loading = false;\n return;\n }\n this.found = true;\n this.variantId = w.variantId;\n this.isVerified = !!w.isVerified;\n this.startsAt = w.startsAt;\n this.expiresAt = w.expiresAt;\n this.status = w.status;\n this.orderLineId = w.orderLineId;\n this.monthsLeft = w.expiresAt\n ? Math.max(\n 0,\n Math.round(\n (Date.parse(w.expiresAt) - Date.now()) / (86_400_000 * 30.44),\n ),\n )\n : null;\n void this.hydrate(w);\n }),\n );\n };\n\n private async hydrate(w: any): Promise<void> {\n const [variant, claims, notices] = await Promise.all([\n firstValueFrom(\n this.apiService\n .on('apps/commerce/product-variant')\n .getOne(w.variantId)\n .pipe(catchError(() => of(undefined))),\n ),\n firstValueFrom(\n this.apiService\n .on('apps/commerce/warranty-claim')\n .getMany({ warrantyId: w.id, perPage: 50 } as any)\n .pipe(catchError(() => of({ data: [] }))),\n ),\n firstValueFrom(\n this.apiService\n .on('apps/commerce/safety-notice')\n .getMany({ variantId: w.variantId, status: 'published', perPage: 20 } as any)\n .pipe(catchError(() => of({ data: [] }))),\n ),\n ]);\n\n const v: any = variant;\n if (v?.data?.productId) {\n const p: any = await firstValueFrom(\n this.apiService\n .on('apps/commerce/product')\n .getOne(v.data.productId)\n .pipe(catchError(() => of(undefined))),\n );\n this.productName = p?.data?.name ?? v?.data?.sku ?? this.productName;\n this.productSlug = p?.data?.slug;\n }\n\n this.claims = ((claims as any)?.data ?? []).map((c: any) => ({\n id: c.id,\n status: c.status,\n faultDescription: c.faultDescription,\n triageOutcome: c.triageOutcome,\n createdAt: c.createdAt,\n }));\n this.notices = ((notices as any)?.data ?? []).map((n: any) => ({\n id: n.id,\n severity: n.severity,\n title: n.title,\n message: n.message,\n actionRequired: n.actionRequired,\n }));\n this.loading = false;\n }\n\n // The doc endpoint needs the session token (global AuthMiddleware), so a\n // plain <a href> won't do — fetch the print HTML through ApiService and\n // hand it to a new window (RET-06 \"certificates are downloadable\").\n async downloadCertificate(): Promise<void> {\n if (this.downloadingCert) return;\n this.downloadingCert = true;\n try {\n const res: any = await firstValueFrom(\n this.apiService.get(\n `apps/commerce/document/warranty/${this.warrantyId}/certificate`,\n { format: 'html' },\n ),\n );\n const html = typeof res === 'string' ? res : (res?.data ?? res?.html);\n const win = window.open('', '_blank');\n if (win && typeof html === 'string') {\n win.document.open();\n win.document.write(html);\n win.document.close();\n }\n } finally {\n this.downloadingCert = false;\n }\n }\n}\n","<a routerLink=\"../\" class=\"x-acct-btn-ghost\">‹ My Systems</a>\n\n@if (loading) {\n <div class=\"x-acct-empty\" style=\"margin-top: 16px\">Loading…</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>⚠ {{ 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 || '—' }}</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') : '—' }}\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…' : '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 · {{ c.triageOutcome }}\n }\n </span>\n </span>\n <span class=\"x-acct-pill\">{{ c.status }}</span>\n </div>\n }\n </div>\n }\n}\n","import { Component, inject } from '@angular/core';\nimport { BaseDirective, notify, using } from '@thescaffold/ngx-core';\nimport { catchError, firstValueFrom, of, takeUntil } from 'rxjs';\nimport { AccountStoreService } from '../account-store.service';\n\ninterface SystemVm {\n id: string;\n name: string;\n slug?: string;\n serial?: string;\n isVerified: boolean;\n expiresAt?: string;\n monthsLeft: number | null;\n status: string;\n}\n\n// P5.6, ACC-06 / RET-06 — \"My Systems\": every product the customer owns,\n// its serial, its warranty standing. Auto-populated by delivery (P4.15);\n// a unit bought elsewhere is added here as unverified.\n@Component({\n standalone: false,\n selector: 'x-account-systems',\n templateUrl: './systems.component.html',\n})\nexport class AccountSystemsComponent extends BaseDirective {\n private readonly store = inject(AccountStoreService);\n\n loading = true;\n customerId = '';\n clientId = '';\n workspaceId = '';\n systems: SystemVm[] = [];\n\n adding = false;\n savingExternal = false;\n externalError = '';\n ext = { variantSku: '', serial: '', startsAt: '', months: 12 };\n\n override init = () => {\n this.store\n .customer()\n .pipe(takeUntil(this.$))\n .subscribe(\n using((customer) => {\n if (!customer) {\n this.loading = false;\n return;\n }\n this.customerId = customer.id;\n void this.load();\n }),\n );\n };\n\n private async load(): Promise<void> {\n const res: any = await firstValueFrom(\n this.apiService\n .on('apps/commerce/warranty')\n .getMany({ customerId: this.customerId, perPage: 200 } as any)\n .pipe(catchError(() => of({ data: [] }))),\n );\n const rows: any[] = res?.data ?? [];\n this.systems = await Promise.all(\n rows.map(async (w) => {\n const { name, slug } = await this.resolveProduct(w.variantId);\n const monthsLeft = w.expiresAt\n ? Math.max(\n 0,\n Math.round(\n (Date.parse(w.expiresAt) - Date.now()) / (86_400_000 * 30.44),\n ),\n )\n : null;\n return {\n id: w.id,\n name,\n slug,\n serial: undefined as string | undefined,\n isVerified: !!w.isVerified,\n expiresAt: w.expiresAt,\n monthsLeft,\n status: w.status,\n };\n }),\n );\n this.loading = false;\n }\n\n private async resolveProduct(\n variantId: string,\n ): Promise<{ name: string; slug?: string }> {\n try {\n const v: any = await firstValueFrom(\n this.apiService.on('apps/commerce/product-variant').getOne(variantId),\n );\n const productId = v?.data?.productId;\n if (productId) {\n const p: any = await firstValueFrom(\n this.apiService.on('apps/commerce/product').getOne(productId),\n );\n return { name: p?.data?.name ?? v?.data?.sku ?? 'Registered unit', slug: p?.data?.slug };\n }\n return { name: v?.data?.sku ?? 'Registered unit' };\n } catch {\n return { name: 'Registered unit' };\n }\n }\n\n async addExternal(): Promise<void> {\n if (this.savingExternal) return;\n const sku = this.ext.variantSku.trim();\n if (!sku) {\n this.externalError = 'Enter the product SKU or model shown on the label.';\n return;\n }\n this.savingExternal = true;\n this.externalError = '';\n try {\n // Resolve the SKU to a variant id (the label carries the SKU/model).\n const found: any = await firstValueFrom(\n this.apiService\n .on('apps/commerce/product-variant')\n .getMany({ sku, perPage: 1 } as any)\n .pipe(catchError(() => of({ data: [] }))),\n );\n const variantId = (found?.data ?? [])[0]?.id;\n if (!variantId) {\n this.externalError = \"We couldn't match that SKU to a product we stock.\";\n return;\n }\n const res: any = await firstValueFrom(\n this.apiService.post('apps/commerce/warranty/external', {\n customerId: this.customerId,\n variantId,\n serial: this.ext.serial || undefined,\n startsAt: this.ext.startsAt || undefined,\n months: this.ext.months || undefined,\n }),\n );\n if (res?.status === 'error') {\n this.externalError = res?.message ?? 'Could not add that unit.';\n return;\n }\n this.adding = false;\n this.ext = { variantSku: '', serial: '', startsAt: '', months: 12 };\n notify('Added to My Systems', undefined, 'success');\n await this.load();\n } catch (err: any) {\n this.externalError = err?.error?.message ?? 'Could not add that unit.';\n } finally {\n this.savingExternal = false;\n }\n }\n}\n","<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…</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 — 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…' : '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 · claim in progress\n }\n </p>\n </a>\n } @empty {\n @if (!adding) {\n <div class=\"x-acct-empty\">\n Nothing here yet — a warranty is registered automatically when a\n serialised item is delivered.\n </div>\n }\n }\n}\n","import { Component, inject } from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\nimport { BaseDirective, notify } from '@thescaffold/ngx-core';\nimport { firstValueFrom } from 'rxjs';\nimport { AccountStoreService } from '../account-store.service';\n\nconst SYMPTOM_OPTIONS = [\n 'Not turning on',\n 'Shuts down under load',\n 'Overheating',\n 'Error code / warning light',\n 'Unusual noise',\n 'Not charging',\n 'Reduced runtime / output',\n 'Physical damage',\n];\n\n// P5.6, RET-07 — the warranty claim form. Fault description + a symptoms\n// checklist + whether a Tilmart installer fitted it. Photo/video upload\n// is a follow-up (needs the blobs pipeline) — noted, not blocking.\n@Component({\n standalone: false,\n selector: 'x-account-warranty-claim',\n templateUrl: './warranty-claim.component.html',\n})\nexport class AccountWarrantyClaimComponent extends BaseDirective {\n private readonly route = inject(ActivatedRoute);\n private readonly store = inject(AccountStoreService);\n\n readonly symptomOptions = SYMPTOM_OPTIONS;\n\n warrantyId = '';\n customerId = '';\n\n faultDescription = '';\n symptoms: Record<string, boolean> = {};\n installedByTilmart = false;\n\n submitting = false;\n error = '';\n done = false;\n\n override init = () => {\n this.warrantyId = this.route.snapshot.paramMap.get('id') ?? '';\n this.store.customer().subscribe((c) => (this.customerId = c?.id ?? ''));\n };\n\n get canSubmit(): boolean {\n return !!this.faultDescription.trim();\n }\n\n async submit(): Promise<void> {\n if (this.submitting || !this.canSubmit) return;\n this.submitting = true;\n this.error = '';\n try {\n const res: any = await firstValueFrom(\n this.apiService.post(\n `apps/commerce/warranty/${this.warrantyId}/claim`,\n {\n customerId: this.customerId || undefined,\n faultDescription: this.faultDescription.trim(),\n symptoms: Object.keys(this.symptoms).filter((k) => this.symptoms[k]),\n installedByTilmart: this.installedByTilmart,\n },\n ),\n );\n if (res?.status === 'error') {\n this.error = res?.message ?? 'Could not submit your claim.';\n return;\n }\n this.done = true;\n notify('Claim submitted', undefined, 'success');\n } catch (err: any) {\n this.error = err?.error?.message ?? 'Could not submit your claim.';\n } finally {\n this.submitting = false;\n }\n }\n}\n","<a routerLink=\"../\" class=\"x-acct-btn-ghost\">‹ Back to system</a>\n\n@if (done) {\n <div class=\"x-acct-card\" style=\"margin-top: 16px\">\n <h2 class=\"x-acct-h2\">Claim submitted</h2>\n <p class=\"x-acct-sub\">\n We'll review the details and get back to you with next steps. You can see\n the status on the system's page.\n </p>\n <a class=\"x-acct-btn\" routerLink=\"../\">Back to system</a>\n </div>\n} @else {\n <h2 class=\"x-acct-h2\" style=\"margin-top: 16px\">Start a warranty claim</h2>\n <p class=\"x-acct-sub\">Tell us what's wrong and we'll take it from there.</p>\n\n <div class=\"x-acct-card\">\n <div class=\"x-acct-field\">\n <label>What's the problem?</label>\n <input\n [(ngModel)]=\"faultDescription\"\n placeholder=\"Describe the fault in your own words\"\n />\n </div>\n\n <div style=\"margin: 8px 0 16px\">\n <div style=\"font-weight: 700; font-size: 13px; margin-bottom: 8px\">Symptoms</div>\n @for (s of symptomOptions; track s) {\n <label class=\"x-acct-checkline\">\n <input type=\"checkbox\" [(ngModel)]=\"symptoms[s]\" />\n {{ s }}\n </label>\n }\n </div>\n\n <label class=\"x-acct-checkline\">\n <input type=\"checkbox\" [(ngModel)]=\"installedByTilmart\" />\n A Tilmart installer fitted this unit\n </label>\n\n @if (error) {\n <div class=\"x-acct-err\" style=\"margin-top: 12px\">{{ error }}</div>\n }\n <button\n type=\"button\"\n class=\"x-acct-btn\"\n style=\"margin-top: 14px\"\n [disabled]=\"!canSubmit || submitting\"\n (click)=\"submit()\"\n >\n {{ submitting ? 'Submitting…' : 'Submit claim' }}\n </button>\n <p class=\"x-acct-sub\" style=\"margin-top: 12px\">\n Photos and video help us diagnose faster — you'll be able to add them once\n the claim is open.\n </p>\n </div>\n}\n","import { Component, inject } from '@angular/core';\nimport { BaseDirective, notify, using } from '@thescaffold/ngx-core';\nimport { catchError, firstValueFrom, of, takeUntil } from 'rxjs';\nimport { AccountStoreService } from '../account-store.service';\n\ninterface WishlistItemVm {\n id: string;\n variantId: string;\n name: string;\n slug?: string;\n}\n\ninterface WishlistVm {\n id: string;\n name: string;\n isPublic: boolean;\n shareToken?: string;\n items: WishlistItemVm[];\n renaming?: boolean;\n draftName?: string;\n}\n\n// P5.3, CART-06 — saved lists. View / rename / delete a list, toggle\n// public sharing, remove an item. Adding items happens on the product\n// pages (a wishlist button there, P2 PDP work).\n@Component({\n standalone: false,\n selector: 'x-account-wishlists',\n templateUrl: './wishlists.component.html',\n})\nexport class AccountWishlistsComponent extends BaseDirective {\n private readonly store = inject(AccountStoreService);\n\n loading = true;\n customerId = '';\n wishlists: WishlistVm[] = [];\n\n override init = () => {\n this.store\n .customer()\n .pipe(takeUntil(this.$))\n .subscribe(\n using((customer) => {\n if (!customer) {\n this.loading = false;\n return;\n }\n this.customerId = customer.id;\n void this.load();\n }),\n );\n };\n\n private async load(): Promise<void> {\n const listsRes: any = await firstValueFrom(\n this.apiService\n .on('apps/commerce/wishlist')\n .getMany({ customerId: this.customerId, perPage: 50 } as any)\n .pipe(catchError(() => of({ data: [] }))),\n );\n const lists: any[] = listsRes?.data ?? [];\n\n const withItems = await Promise.all(\n lists.map(async (list) => {\n const itemsRes: any = await firstValueFrom(\n this.apiService\n .on('apps/commerce/wishlist-item')\n .getMany({ wishlistId: list.id, perPage: 200 } as any)\n .pipe(catchError(() => of({ data: [] }))),\n );\n const items = await Promise.all(\n (itemsRes?.data ?? []).map((it: any) => this.resolveItem(it)),\n );\n return {\n id: list.id,\n name: list.name,\n isPublic: !!list.isPublic,\n shareToken: list.shareToken,\n items,\n } as WishlistVm;\n }),\n );\n this.wishlists = withItems;\n this.loading = false;\n }\n\n private async resolveItem(it: any): Promise<WishlistItemVm> {\n let name = 'Saved item';\n let slug: string | undefined;\n try {\n const v: any = await firstValueFrom(\n this.apiService.on('apps/commerce/product-variant').getOne(it.variantId),\n );\n const productId = v?.data?.productId;\n if (productId) {\n const p: any = await firstValueFrom(\n this.apiService.on('apps/commerce/product').getOne(productId),\n );\n name = p?.data?.name ?? v?.data?.sku ?? name;\n slug = p?.data?.slug;\n }\n } catch {\n // leave the fallback name\n }\n return { id: it.id, variantId: it.variantId, name, slug };\n }\n\n startRename(list: WishlistVm): void {\n list.renaming = true;\n list.draftName = list.name;\n }\n\n async saveName(list: WishlistVm): Promise<void> {\n const name = (list.draftName ?? '').trim();\n if (!name) return;\n try {\n await firstValueFrom(\n this.apiService.on('apps/commerce/wishlist').update(list.id, { name }),\n );\n list.name = name;\n list.renaming = false;\n } catch {\n notify('Could not rename that list.', undefined, 'error');\n }\n }\n\n async togglePublic(list: WishlistVm): Promise<void> {\n try {\n await firstValueFrom(\n this.apiService\n .on('apps/commerce/wishlist')\n .update(list.id, { isPublic: !list.isPublic }),\n );\n await this.load();\n } catch {\n notify('Could not update sharing.', undefined, 'error');\n }\n }\n\n async removeList(list: WishlistVm): Promise<void> {\n if (!confirm(`Delete \"${list.name}\"?`)) return;\n try {\n await firstValueFrom(this.apiService.on('apps/commerce/wishlist').remove(list.id));\n await this.load();\n } catch {\n notify('Could not delete that list.', undefined, 'error');\n }\n }\n\n async removeItem(list: WishlistVm, item: WishlistItemVm): Promise<void> {\n try {\n await firstValueFrom(\n this.apiService.on('apps/commerce/wishlist-item').remove(item.id),\n );\n list.items = list.items.filter((x) => x.id !== item.id);\n } catch {\n notify('Could not remove that item.', undefined, 'error');\n }\n }\n}\n","<h2 class=\"x-acct-h2\">Wishlists</h2>\n<p class=\"x-acct-sub\">Add items from any product page. Share a list with an installer or a colleague.</p>\n\n@if (loading) {\n <div class=\"x-acct-empty\">Loading…</div>\n} @else if (!wishlists.length) {\n <div class=\"x-acct-card\">\n <div class=\"x-acct-empty\">\n No saved lists yet — tap the heart on a product to start one.\n </div>\n </div>\n} @else {\n @for (list of wishlists; track list.id) {\n <div class=\"x-acct-card\">\n <div class=\"x-acct-row\" style=\"border-bottom: 0; padding-top: 0\">\n @if (list.renaming) {\n <input class=\"x-acct-field\" style=\"margin: 0; max-width: 240px\" [(ngModel)]=\"list.draftName\" />\n <span>\n <button type=\"button\" class=\"x-acct-btn-ghost\" (click)=\"saveName(list)\">Save</button>\n <button type=\"button\" class=\"x-acct-btn-ghost\" (click)=\"list.renaming = false\" style=\"margin-left: 6px\">\n Cancel\n </button>\n </span>\n } @else {\n <strong>\n {{ list.name }}\n @if (list.isPublic) {\n <span class=\"x-acct-pill x-acct-pill-ok\" style=\"margin-left: 6px\">Shared</span>\n }\n </strong>\n <span>\n <button type=\"button\" class=\"x-acct-btn-ghost\" (click)=\"startRename(list)\">Rename</button>\n <button type=\"button\" class=\"x-acct-btn-ghost\" (click)=\"togglePublic(list)\" style=\"margin-left: 6px\">\n {{ list.isPublic ? 'Make private' : 'Share' }}\n </button>\n <button type=\"button\" class=\"x-acct-btn-ghost\" (click)=\"removeList(list)\" style=\"margin-left: 6px\">\n Delete\n </button>\n </span>\n }\n </div>\n\n @for (item of list.items; track item.id) {\n <div class=\"x-acct-row\">\n @if (item.slug) {\n <a [routerLink]=\"['/p', item.slug]\">{{ item.name }}</a>\n } @else {\n <span>{{ item.name }}</span>\n }\n <button type=\"button\" class=\"x-acct-btn-ghost\" (click)=\"removeItem(list, item)\">Remove</button>\n </div>\n } @empty {\n <div class=\"x-acct-empty\">This list is empty.</div>\n }\n </div>\n }\n}\n","import { NgModule } from '@angular/core';\nimport { RouterModule } from '@angular/router';\nimport { SharedModule } from '@thescaffold/ngx-core';\nimport { TilmartElementsModule } from '@isaiahiroko/tilmart-ngx-ui';\nimport { AccountStoreService } from './account-store.service';\nimport { AccountComponent } from './account.component';\nimport { AccountAddressesComponent } from './addresses/addresses.component';\nimport { AccountDashboardComponent } from './dashboard/dashboard.component';\nimport { AccountOrderDetailComponent } from './order-detail/order-detail.component';\nimport { AccountOrdersComponent } from './orders/orders.component';\nimport { AccountPaymentsComponent } from './payments/payments.component';\nimport { AccountPrivacyComponent } from './privacy/privacy.component';\nimport { AccountReturnDetailComponent } from './returns/return-detail.component';\nimport { AccountReturnRequestComponent } from './returns/return-request.component';\nimport { AccountReturnsComponent } from './returns/returns.component';\nimport { AccountSettingsComponent } from './settings/settings.component';\nimport { AccountSystemDetailComponent } from './systems/system-detail.component';\nimport { AccountSystemsComponent } from './systems/systems.component';\nimport { AccountWarrantyClaimComponent } from './systems/warranty-claim.component';\nimport { AccountWishlistsComponent } from './wishlists/wishlists.component';\n\n@NgModule({\n declarations: [\n AccountComponent,\n AccountDashboardComponent,\n AccountOrdersComponent,\n AccountOrderDetailComponent,\n AccountAddressesComponent,\n AccountPaymentsComponent,\n AccountWishlistsComponent,\n AccountSettingsComponent,\n AccountSystemsComponent,\n AccountSystemDetailComponent,\n AccountWarrantyClaimComponent,\n AccountReturnsComponent,\n AccountReturnDetailComponent,\n AccountReturnRequestComponent,\n AccountPrivacyComponent,\n ],\n providers: [AccountStoreService],\n imports: [\n SharedModule,\n TilmartElementsModule,\n RouterModule.forChild([\n {\n path: '',\n component: AccountComponent,\n children: [\n { path: '', pathMatch: 'full', redirectTo: 'dashboard' },\n { path: 'dashboard', component: AccountDashboardComponent },\n { path: 'orders', component: AccountOrdersComponent },\n { path: 'orders/:id', component: AccountOrderDetailComponent },\n { path: 'orders/:id/return', component: AccountReturnRequestComponent },\n { path: 'returns', component: AccountReturnsComponent },\n { path: 'returns/:id', component: AccountReturnDetailComponent },\n { path: 'systems', component: AccountSystemsComponent },\n { path: 'systems/:id', component: AccountSystemDetailComponent },\n { path: 'systems/:id/claim', component: AccountWarrantyClaimComponent },\n { path: 'addresses', component: AccountAddressesComponent },\n { path: 'payments', component: AccountPaymentsComponent },\n { path: 'wishlists', component: AccountWishlistsComponent },\n { path: 'settings', component: AccountSettingsComponent },\n { path: 'privacy', component: AccountPrivacyComponent },\n ],\n },\n ]),\n ],\n})\nexport class AccountModule {}\n"],"names":["i1","STATUS_LABELS","i2"],"mappings":";;;;;;;;;;;;;AAYA;AACA;AACA;AACA;AACA;MAEa,mBAAmB,CAAA;AADhC,IAAA,WAAA,GAAA;AAEmB,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;AAC/B,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC;AAEhD,QAAA,IAAA,CAAA,SAAS,GAAG,IAAI,aAAa,CAAyB,CAAC,CAAC;QACxD,IAAA,CAAA,MAAM,GAAG,KAAK;AAqCvB,IAAA;IAnCC,QAAQ,GAAA;AACN,QAAA,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;AAChB,YAAA,IAAI,CAAC,MAAM,GAAG,IAAI;YAClB,IAAI,CAAC,IAAI,EAAE;QACb;AACA,QAAA,OAAO,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE;IACtC;AAEA,IAAA,MAAM,eAAe,GAAA;AACnB,QAAA,MAAM,CAAC,GAAG,MAAM,IAAI,CAA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