@mohasinac/appkit 4.70.0 → 4.71.2

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 (2242) hide show
  1. package/PROVIDERS.md +190 -0
  2. package/dist/.build-stamp.json +4 -4
  3. package/dist/_internal/client/edit-mode/EditModeProvider.d.ts +32 -0
  4. package/dist/_internal/client/edit-mode/EditModeProvider.js +33 -0
  5. package/dist/_internal/client/edit-mode/index.d.ts +2 -0
  6. package/dist/_internal/client/edit-mode/index.js +1 -0
  7. package/dist/_internal/client/features/giveaway/ClearanceGiveawayDetailView.d.ts +32 -0
  8. package/dist/_internal/client/features/giveaway/ClearanceGiveawayDetailView.js +29 -0
  9. package/dist/_internal/client/features/giveaway/GiveawayAdminEditView.d.ts +66 -0
  10. package/dist/_internal/client/features/giveaway/GiveawayAdminEditView.js +187 -0
  11. package/dist/_internal/client/features/giveaway/GiveawayAdminSlotView.d.ts +18 -0
  12. package/dist/_internal/client/features/giveaway/GiveawayAdminSlotView.js +52 -0
  13. package/dist/_internal/client/features/giveaway/GiveawayDetailView.d.ts +40 -0
  14. package/dist/_internal/client/features/giveaway/GiveawayDetailView.js +49 -0
  15. package/dist/_internal/client/features/giveaway/GiveawayEntriesView.d.ts +34 -0
  16. package/dist/_internal/client/features/giveaway/GiveawayEntriesView.js +64 -0
  17. package/dist/_internal/client/features/giveaway/GiveawayListView.d.ts +39 -0
  18. package/dist/_internal/client/features/giveaway/GiveawayListView.js +45 -0
  19. package/dist/_internal/client/features/giveaway/GiveawayPullForm.d.ts +31 -0
  20. package/dist/_internal/client/features/giveaway/GiveawayPullForm.js +94 -0
  21. package/dist/_internal/client/features/giveaway/GiveawaySlotGrid.d.ts +14 -0
  22. package/dist/_internal/client/features/giveaway/GiveawaySlotGrid.js +23 -0
  23. package/dist/_internal/client/features/giveaway/slot-collage-items.d.ts +15 -0
  24. package/dist/_internal/client/features/giveaway/slot-collage-items.js +13 -0
  25. package/dist/_internal/client/features/layout/DashboardLayoutClient.d.ts +34 -1
  26. package/dist/_internal/client/features/layout/DashboardLayoutClient.js +79 -9
  27. package/dist/_internal/client/features/layout/PortalBackLink.d.ts +15 -0
  28. package/dist/_internal/client/features/layout/PortalBackLink.js +58 -0
  29. package/dist/_internal/client/features/layout/SidebarCollapseToggle.js +37 -1
  30. package/dist/_internal/client/features/layout/filterNavItems.d.ts +11 -6
  31. package/dist/_internal/client/features/layout/filterNavItems.js +36 -4
  32. package/dist/_internal/client/features/layout/sidebarPositionClasses.js +10 -2
  33. package/dist/_internal/client/features/maintenance/views/AnalysisRunnerView.d.ts +6 -1
  34. package/dist/_internal/client/features/maintenance/views/AnalysisRunnerView.js +4 -3
  35. package/dist/_internal/client/features/maintenance/views/CacheInvalidationPanel.js +1 -1
  36. package/dist/_internal/client/features/maintenance/views/CloudLogsListView.d.ts +4 -1
  37. package/dist/_internal/client/features/maintenance/views/CloudLogsListView.js +4 -3
  38. package/dist/_internal/client/features/maintenance/views/MaintenanceDashboardView.d.ts +4 -1
  39. package/dist/_internal/client/features/maintenance/views/MaintenanceDashboardView.js +4 -2
  40. package/dist/_internal/client/features/maintenance/views/RepositoryCacheStatusPanel.d.ts +15 -0
  41. package/dist/_internal/client/features/maintenance/views/RepositoryCacheStatusPanel.js +161 -0
  42. package/dist/_internal/client/features/maintenance/views/ServerErrorDetailView.d.ts +4 -1
  43. package/dist/_internal/client/features/maintenance/views/ServerErrorDetailView.js +3 -2
  44. package/dist/_internal/client/features/maintenance/views/ServerErrorsListView.d.ts +11 -1
  45. package/dist/_internal/client/features/maintenance/views/ServerErrorsListView.js +3 -2
  46. package/dist/_internal/server/features/ads/booking.d.ts +1 -1
  47. package/dist/_internal/server/features/ads/booking.js +1 -1
  48. package/dist/_internal/server/features/assistant/actions.d.ts +29 -0
  49. package/dist/_internal/server/features/assistant/actions.js +170 -0
  50. package/dist/_internal/server/features/assistant/budget.d.ts +28 -0
  51. package/dist/_internal/server/features/assistant/budget.js +132 -0
  52. package/dist/_internal/server/features/assistant/escalate.d.ts +25 -0
  53. package/dist/_internal/server/features/assistant/escalate.js +108 -0
  54. package/dist/_internal/server/features/assistant/guard.d.ts +10 -0
  55. package/dist/_internal/server/features/assistant/guard.js +110 -0
  56. package/dist/_internal/server/features/assistant/handles.d.ts +42 -0
  57. package/dist/_internal/server/features/assistant/handles.js +172 -0
  58. package/dist/_internal/server/features/assistant/history-store.d.ts +16 -0
  59. package/dist/_internal/server/features/assistant/history-store.js +63 -0
  60. package/dist/_internal/server/features/assistant/model-routing.d.ts +70 -0
  61. package/dist/_internal/server/features/assistant/model-routing.js +80 -0
  62. package/dist/_internal/server/features/assistant/quorum.d.ts +32 -0
  63. package/dist/_internal/server/features/assistant/quorum.js +128 -0
  64. package/dist/_internal/server/features/assistant/redaction.d.ts +68 -0
  65. package/dist/_internal/server/features/assistant/redaction.js +69 -0
  66. package/dist/_internal/server/features/assistant/severity.d.ts +41 -0
  67. package/dist/_internal/server/features/assistant/severity.js +93 -0
  68. package/dist/_internal/server/features/assistant/tools/admin/search-nav.d.ts +39 -0
  69. package/dist/_internal/server/features/assistant/tools/admin/search-nav.js +27 -0
  70. package/dist/_internal/server/features/assistant/tools/builtin/get-my-orders.d.ts +15 -0
  71. package/dist/_internal/server/features/assistant/tools/builtin/get-my-orders.js +116 -0
  72. package/dist/_internal/server/features/assistant/tools/builtin/get-toggle-state.d.ts +8 -0
  73. package/dist/_internal/server/features/assistant/tools/builtin/get-toggle-state.js +64 -0
  74. package/dist/_internal/server/features/assistant/tools/builtin/index.d.ts +38 -0
  75. package/dist/_internal/server/features/assistant/tools/builtin/index.js +29 -0
  76. package/dist/_internal/server/features/assistant/tools/builtin/search-faqs.d.ts +8 -0
  77. package/dist/_internal/server/features/assistant/tools/builtin/search-faqs.js +62 -0
  78. package/dist/_internal/server/features/assistant/tools/builtin/search-products.d.ts +16 -0
  79. package/dist/_internal/server/features/assistant/tools/builtin/search-products.js +79 -0
  80. package/dist/_internal/server/features/assistant/tools/define.d.ts +85 -0
  81. package/dist/_internal/server/features/assistant/tools/define.js +8 -0
  82. package/dist/_internal/server/features/assistant/tools/json-schema.d.ts +34 -0
  83. package/dist/_internal/server/features/assistant/tools/json-schema.js +79 -0
  84. package/dist/_internal/server/features/assistant/tools/manifest.d.ts +22 -0
  85. package/dist/_internal/server/features/assistant/tools/manifest.js +27 -0
  86. package/dist/_internal/server/features/assistant/tools/registry.d.ts +22 -0
  87. package/dist/_internal/server/features/assistant/tools/registry.js +43 -0
  88. package/dist/_internal/server/features/assistant/turn.d.ts +43 -0
  89. package/dist/_internal/server/features/assistant/turn.js +281 -0
  90. package/dist/_internal/server/features/auth/permissions.d.ts +65 -10
  91. package/dist/_internal/server/features/auth/permissions.js +74 -15
  92. package/dist/_internal/server/features/brands/actions.js +3 -3
  93. package/dist/_internal/server/features/bundles/actions.js +3 -3
  94. package/dist/_internal/server/features/categories/adapters.d.ts +2 -2
  95. package/dist/_internal/server/features/categories/adapters.js +17 -8
  96. package/dist/_internal/server/features/checkout/actions.d.ts +142 -15
  97. package/dist/_internal/server/features/checkout/actions.js +1031 -150
  98. package/dist/_internal/server/features/checkout/gateway-selection.d.ts +68 -0
  99. package/dist/_internal/server/features/checkout/gateway-selection.js +124 -0
  100. package/dist/_internal/server/features/checkout/index.d.ts +5 -0
  101. package/dist/_internal/server/features/checkout/index.js +18 -0
  102. package/dist/_internal/server/features/checkout/locked-lines.d.ts +10 -10
  103. package/dist/_internal/server/features/checkout/locked-lines.js +37 -37
  104. package/dist/_internal/server/features/checkout/prize-bundle-gates.d.ts +1 -1
  105. package/dist/_internal/server/features/checkout/prize-bundle-gates.js +1 -1
  106. package/dist/_internal/server/features/checkout/source-context.js +17 -17
  107. package/dist/_internal/server/features/checkout/split-settlement.d.ts +100 -0
  108. package/dist/_internal/server/features/checkout/split-settlement.js +205 -0
  109. package/dist/_internal/server/features/checkout/upi-resolution.js +8 -1
  110. package/dist/_internal/server/features/clearance/actions.d.ts +2 -0
  111. package/dist/_internal/server/features/clearance/actions.js +33 -0
  112. package/dist/_internal/server/features/clearance/data.d.ts +1 -0
  113. package/dist/_internal/server/features/clearance/data.js +2 -0
  114. package/dist/_internal/server/features/clearance/index.d.ts +4 -0
  115. package/dist/_internal/server/features/clearance/index.js +4 -0
  116. package/dist/_internal/server/features/clearance/og.d.ts +32 -0
  117. package/dist/_internal/server/features/clearance/og.js +47 -0
  118. package/dist/_internal/server/features/clearance/service.d.ts +3 -0
  119. package/dist/_internal/server/features/clearance/service.js +19 -0
  120. package/dist/_internal/server/features/collector-drops/actions.js +76 -0
  121. package/dist/_internal/server/features/collector-drops/data.d.ts +2 -0
  122. package/dist/_internal/server/features/collector-drops/data.js +3 -0
  123. package/dist/_internal/server/features/collector-drops/index.d.ts +5 -0
  124. package/dist/_internal/server/features/collector-drops/index.js +5 -0
  125. package/dist/_internal/server/features/collector-drops/og.d.ts +22 -0
  126. package/dist/_internal/server/features/collector-drops/og.js +30 -0
  127. package/dist/_internal/server/features/collector-drops/service.d.ts +20 -0
  128. package/dist/_internal/server/features/collector-drops/service.js +65 -0
  129. package/dist/_internal/server/features/dashboard/page-regions.d.ts +33 -0
  130. package/dist/_internal/server/features/dashboard/page-regions.js +53 -0
  131. package/dist/_internal/server/features/digital-code/pool.d.ts +14 -1
  132. package/dist/_internal/server/features/digital-code/pool.js +21 -2
  133. package/dist/_internal/server/features/digital-code/release.d.ts +79 -0
  134. package/dist/_internal/server/features/digital-code/release.js +176 -0
  135. package/dist/_internal/server/features/events/adapters.d.ts +7 -7
  136. package/dist/_internal/server/features/events/adapters.js +6 -6
  137. package/dist/_internal/server/features/events/data.d.ts +17 -1
  138. package/dist/_internal/server/features/events/data.js +51 -0
  139. package/dist/_internal/server/features/events/service.d.ts +2 -2
  140. package/dist/_internal/server/features/forms/field-visibility.d.ts +35 -0
  141. package/dist/_internal/server/features/forms/field-visibility.js +89 -0
  142. package/dist/_internal/server/features/giveaway/actions.d.ts +43 -0
  143. package/dist/_internal/server/features/giveaway/actions.js +369 -0
  144. package/dist/_internal/server/features/giveaway/adapters.d.ts +15 -0
  145. package/dist/_internal/server/features/giveaway/adapters.js +31 -0
  146. package/dist/_internal/server/features/giveaway/data.d.ts +19 -0
  147. package/dist/_internal/server/features/giveaway/data.js +56 -0
  148. package/dist/_internal/server/features/giveaway/metadata.d.ts +6 -0
  149. package/dist/_internal/server/features/giveaway/metadata.js +31 -0
  150. package/dist/_internal/server/features/giveaway/og.d.ts +40 -0
  151. package/dist/_internal/server/features/giveaway/og.js +79 -0
  152. package/dist/_internal/server/features/homepage/index.js +1 -1
  153. package/dist/_internal/server/features/inventory/reservations.d.ts +1 -1
  154. package/dist/_internal/server/features/inventory/reservations.js +1 -1
  155. package/dist/_internal/server/features/maintenance/cache-admin.d.ts +44 -0
  156. package/dist/_internal/server/features/maintenance/cache-admin.js +85 -0
  157. package/dist/_internal/server/features/media/contextGuards.d.ts +2 -2
  158. package/dist/_internal/server/features/media/contextGuards.js +4 -4
  159. package/dist/_internal/server/features/messages/actions.js +11 -0
  160. package/dist/_internal/server/features/order-completion/actions.js +1 -1
  161. package/dist/_internal/server/features/orders/actions.d.ts +3 -2
  162. package/dist/_internal/server/features/orders/actions.js +69 -17
  163. package/dist/_internal/server/features/orders/adapters.js +38 -3
  164. package/dist/_internal/server/features/orders/balance.d.ts +5 -2
  165. package/dist/_internal/server/features/orders/balance.js +14 -3
  166. package/dist/_internal/server/features/orders/cancellation-refund.d.ts +0 -89
  167. package/dist/_internal/server/features/orders/cancellation-refund.js +3 -2
  168. package/dist/_internal/server/features/payouts/actions.js +2 -1
  169. package/dist/_internal/server/features/points/award.js +3 -2
  170. package/dist/_internal/server/features/products/actions.d.ts +1 -1
  171. package/dist/_internal/server/features/products/actions.js +8 -8
  172. package/dist/_internal/server/features/products/data.js +5 -4
  173. package/dist/_internal/server/features/products/index.d.ts +1 -1
  174. package/dist/_internal/server/features/products/index.js +1 -1
  175. package/dist/_internal/server/features/products/list-public.js +18 -12
  176. package/dist/_internal/server/features/products/listing-tab-counts.d.ts +1 -1
  177. package/dist/_internal/server/features/products/listing-tab-counts.js +8 -8
  178. package/dist/_internal/server/features/products/og.js +1 -1
  179. package/dist/_internal/server/features/products/service.d.ts +51 -14
  180. package/dist/_internal/server/features/products/service.js +95 -29
  181. package/dist/_internal/server/features/protection-claims/actions.js +2 -1
  182. package/dist/_internal/server/features/refunds/actions.js +3 -2
  183. package/dist/_internal/server/features/scams/og.d.ts +1 -1
  184. package/dist/_internal/server/features/search/entity-index.d.ts +14 -0
  185. package/dist/_internal/server/features/search/entity-index.js +87 -0
  186. package/dist/_internal/server/features/search/index-build/build.js +13 -4
  187. package/dist/_internal/server/features/search/index-build/sources.d.ts +2 -0
  188. package/dist/_internal/server/features/search/index-build/sources.js +4 -2
  189. package/dist/_internal/server/features/search/search-everything.d.ts +2 -0
  190. package/dist/_internal/server/features/search/search-sources.js +5 -3
  191. package/dist/_internal/server/features/seo/index.d.ts +1 -1
  192. package/dist/_internal/server/features/seo/index.js +1 -1
  193. package/dist/_internal/server/features/seo/manifest.js +3 -3
  194. package/dist/_internal/server/features/seo/product-detail-types.js +2 -1
  195. package/dist/_internal/server/features/seo/robots.js +19 -4
  196. package/dist/_internal/server/features/seo/sitemap.js +62 -94
  197. package/dist/_internal/server/features/seo/static-params.d.ts +0 -18
  198. package/dist/_internal/server/features/seo/static-params.js +0 -55
  199. package/dist/_internal/server/features/shared/listing-data-factory.js +3 -3
  200. package/dist/_internal/server/features/shipping/courier-block.js +5 -2
  201. package/dist/_internal/server/features/shipping/reconcile.js +3 -2
  202. package/dist/_internal/server/features/shipping/reimbursement.js +3 -2
  203. package/dist/_internal/server/features/site-settings/actions.d.ts +36 -0
  204. package/dist/_internal/server/features/site-settings/actions.js +57 -1
  205. package/dist/_internal/server/features/site-settings/adapters.d.ts +3 -3
  206. package/dist/_internal/server/features/site-settings/adapters.js +39 -4
  207. package/dist/_internal/server/features/sticker-trace/promote-to-listings.js +2 -2
  208. package/dist/_internal/server/features/sticker-trace/sweep.d.ts +13 -0
  209. package/dist/_internal/server/features/sticker-trace/sweep.js +49 -0
  210. package/dist/_internal/server/features/stores/activation.d.ts +22 -0
  211. package/dist/_internal/server/features/stores/activation.js +73 -0
  212. package/dist/_internal/server/features/stores/adapters.d.ts +1 -1
  213. package/dist/_internal/server/features/stores/adapters.js +34 -2
  214. package/dist/_internal/server/features/stores/data.d.ts +1 -1
  215. package/dist/_internal/server/features/stores/data.js +1 -1
  216. package/dist/_internal/server/features/stores/index.d.ts +2 -1
  217. package/dist/_internal/server/features/stores/index.js +7 -1
  218. package/dist/_internal/server/features/stores/tabs.js +6 -11
  219. package/dist/_internal/server/features/widgets/widget-instances.d.ts +34 -0
  220. package/dist/_internal/server/features/widgets/widget-instances.js +169 -0
  221. package/dist/_internal/server/functions/define.d.ts +4 -4
  222. package/dist/_internal/server/functions/define.js +4 -4
  223. package/dist/_internal/server/functions/firestore.d.ts +3 -3
  224. package/dist/_internal/server/functions/firestore.js +18 -9
  225. package/dist/_internal/server/functions/https.js +1 -1
  226. package/dist/_internal/server/functions/scheduled.d.ts +26 -3
  227. package/dist/_internal/server/functions/scheduled.js +49 -12
  228. package/dist/_internal/server/jobs/core/assignSpinPrize.js +5 -1
  229. package/dist/_internal/server/jobs/core/autoPayoutEligibility.js +13 -11
  230. package/dist/_internal/server/jobs/core/bundleStockSync.js +1 -1
  231. package/dist/_internal/server/jobs/core/cleanupRtdbEvents.js +2 -2
  232. package/dist/_internal/server/jobs/core/clearanceAssignWinner.d.ts +60 -0
  233. package/dist/_internal/server/jobs/core/clearanceAssignWinner.js +227 -0
  234. package/dist/_internal/server/jobs/core/clearanceExpiryReveal.d.ts +14 -0
  235. package/dist/_internal/server/jobs/core/clearanceExpiryReveal.js +71 -0
  236. package/dist/_internal/server/jobs/core/clearanceSoldOutReveal.d.ts +22 -0
  237. package/dist/_internal/server/jobs/core/clearanceSoldOutReveal.js +67 -0
  238. package/dist/_internal/server/jobs/core/collectorDropSettlement.d.ts +2 -0
  239. package/dist/_internal/server/jobs/core/collectorDropSettlement.js +240 -0
  240. package/dist/_internal/server/jobs/core/countersReconcile.js +21 -21
  241. package/dist/_internal/server/jobs/core/dailyStatusDigest.js +7 -3
  242. package/dist/_internal/server/jobs/core/emiInstallmentReminder.js +2 -1
  243. package/dist/_internal/server/jobs/core/event-draw-reasons.d.ts +4 -2
  244. package/dist/_internal/server/jobs/core/event-draw-reasons.js +6 -4
  245. package/dist/_internal/server/jobs/core/index.d.ts +5 -5
  246. package/dist/_internal/server/jobs/core/index.js +5 -5
  247. package/dist/_internal/server/jobs/core/jobRunners.d.ts +1 -1
  248. package/dist/_internal/server/jobs/core/jobRunners.js +25 -0
  249. package/dist/_internal/server/jobs/core/obligationSweep.js +5 -4
  250. package/dist/_internal/server/jobs/core/offerExpiry.js +23 -23
  251. package/dist/_internal/server/jobs/core/onCategoryWrite.d.ts +1 -1
  252. package/dist/_internal/server/jobs/core/onClearancePaymentConfirmed.d.ts +19 -0
  253. package/dist/_internal/server/jobs/core/onClearancePaymentConfirmed.js +32 -0
  254. package/dist/_internal/server/jobs/core/onProductWrite.d.ts +1 -1
  255. package/dist/_internal/server/jobs/core/onProductWrite.js +23 -23
  256. package/dist/_internal/server/jobs/core/onReviewWrite.d.ts +1 -1
  257. package/dist/_internal/server/jobs/core/onScamReportCreate.js +2 -1
  258. package/dist/_internal/server/jobs/core/onStoreWrite.d.ts +1 -1
  259. package/dist/_internal/server/jobs/core/paymentReconcile.js +5 -4
  260. package/dist/_internal/server/jobs/core/paymentReviewAutoApprove.js +1 -1
  261. package/dist/_internal/server/jobs/core/paymentWindowTimeout.d.ts +1 -1
  262. package/dist/_internal/server/jobs/core/paymentWindowTimeout.js +1 -1
  263. package/dist/_internal/server/jobs/core/priceIndexRollup.d.ts +1 -1
  264. package/dist/_internal/server/jobs/core/priceIndexRollup.js +5 -5
  265. package/dist/_internal/server/jobs/core/promotions.js +1 -1
  266. package/dist/_internal/server/jobs/core/revalidateNotify.d.ts +1 -1
  267. package/dist/_internal/server/jobs/core/revalidateNotify.js +2 -2
  268. package/dist/_internal/server/jobs/core/settlementVendorRegister.d.ts +47 -0
  269. package/dist/_internal/server/jobs/core/settlementVendorRegister.js +414 -0
  270. package/dist/_internal/server/jobs/core/stickerTraceSweep.d.ts +9 -0
  271. package/dist/_internal/server/jobs/core/stickerTraceSweep.js +25 -0
  272. package/dist/_internal/server/jobs/core/surfaceCountsRollup.js +47 -7
  273. package/dist/_internal/server/jobs/core/testDataCleanup.js +1 -1
  274. package/dist/_internal/server/jobs/core/triggerEventRaffle.d.ts +2 -2
  275. package/dist/_internal/server/jobs/core/triggerEventRaffle.js +17 -12
  276. package/dist/_internal/server/jobs/core/weeklyPayoutEligibility.js +10 -8
  277. package/dist/_internal/server/jobs/handlers/clearanceExpiryReveal.d.ts +2 -0
  278. package/dist/_internal/server/jobs/handlers/clearanceExpiryReveal.js +2 -0
  279. package/dist/_internal/server/jobs/handlers/clearanceSoldOutReveal.d.ts +3 -0
  280. package/dist/_internal/server/jobs/handlers/clearanceSoldOutReveal.js +4 -0
  281. package/dist/_internal/server/jobs/handlers/collectorDropSettlement.d.ts +2 -0
  282. package/dist/_internal/server/jobs/handlers/collectorDropSettlement.js +2 -0
  283. package/dist/_internal/server/jobs/handlers/index.d.ts +6 -5
  284. package/dist/_internal/server/jobs/handlers/index.js +11 -9
  285. package/dist/_internal/server/jobs/handlers/messages.d.ts +4 -4
  286. package/dist/_internal/server/jobs/handlers/messages.js +13 -13
  287. package/dist/_internal/server/jobs/handlers/onCatalogueSubmittedForApproval.d.ts +1 -1
  288. package/dist/_internal/server/jobs/handlers/onClearancePaymentConfirmed.d.ts +3 -0
  289. package/dist/_internal/server/jobs/handlers/onClearancePaymentConfirmed.js +11 -0
  290. package/dist/_internal/server/jobs/handlers/onProductStockChange.d.ts +1 -1
  291. package/dist/_internal/server/jobs/handlers/onReviewWrite.d.ts +1 -1
  292. package/dist/_internal/server/jobs/handlers/onScamReportCreate.d.ts +1 -1
  293. package/dist/_internal/server/jobs/handlers/onScamReportUpdate.d.ts +1 -1
  294. package/dist/_internal/server/jobs/handlers/onShipmentAllocationSync.d.ts +1 -1
  295. package/dist/_internal/server/jobs/handlers/onShipmentDeleted.d.ts +1 -1
  296. package/dist/_internal/server/jobs/handlers/onShipmentItemWrite.d.ts +1 -1
  297. package/dist/_internal/server/jobs/handlers/onSiteSettingsWrite.d.ts +2 -2
  298. package/dist/_internal/server/jobs/handlers/onSiteSettingsWrite.js +1 -1
  299. package/dist/_internal/server/jobs/handlers/onSupportTicketCreate.d.ts +1 -1
  300. package/dist/_internal/server/jobs/handlers/onSupportTicketUpdate.d.ts +1 -1
  301. package/dist/_internal/server/jobs/handlers/onUserBanChange.d.ts +1 -1
  302. package/dist/_internal/server/jobs/handlers/stickerTraceSweep.d.ts +2 -0
  303. package/dist/_internal/server/jobs/handlers/stickerTraceSweep.js +2 -0
  304. package/dist/_internal/server/jobs/handlers/triggerEventRaffle.d.ts +1 -1
  305. package/dist/_internal/server/jobs/handlers/triggerEventRaffle.js +1 -1
  306. package/dist/_internal/server/jobs/runtime/adapters/firebase.d.ts +1 -1
  307. package/dist/_internal/server/jobs/runtime/adapters/firebase.js +1 -1
  308. package/dist/_internal/server/jobs/runtime/types.d.ts +1 -1
  309. package/dist/_internal/server/payments/policy-consent.d.ts +170 -0
  310. package/dist/_internal/server/payments/policy-consent.js +287 -0
  311. package/dist/_internal/server/payments/webhook-registry.d.ts +162 -0
  312. package/dist/_internal/server/payments/webhook-registry.js +228 -0
  313. package/dist/_internal/shared/actions/action-registry.d.ts +40 -6
  314. package/dist/_internal/shared/actions/action-registry.js +318 -312
  315. package/dist/_internal/shared/cache/revalidate-targets.d.ts +2 -2
  316. package/dist/_internal/shared/cache/revalidate-targets.js +8 -8
  317. package/dist/_internal/shared/checkout/lanes.d.ts +25 -25
  318. package/dist/_internal/shared/checkout/lanes.js +35 -35
  319. package/dist/_internal/shared/checkout/order-math.d.ts +50 -50
  320. package/dist/_internal/shared/checkout/order-math.js +108 -50
  321. package/dist/_internal/shared/checkout/payout-base.d.ts +51 -0
  322. package/dist/_internal/shared/checkout/payout-base.js +84 -0
  323. package/dist/_internal/shared/checkout/policy-consent.d.ts +182 -0
  324. package/dist/_internal/shared/checkout/policy-consent.js +214 -0
  325. package/dist/_internal/shared/checkout/rules/_limits.d.ts +35 -4
  326. package/dist/_internal/shared/checkout/rules/_limits.js +35 -4
  327. package/dist/_internal/shared/checkout/rules/_registry.js +6 -8
  328. package/dist/_internal/shared/checkout/rules/art-and-stickers.rule.d.ts +13 -0
  329. package/dist/_internal/shared/checkout/rules/art-and-stickers.rule.js +5 -0
  330. package/dist/_internal/shared/checkout/rules/bundle.rule.d.ts +24 -6
  331. package/dist/_internal/shared/checkout/rules/bundle.rule.js +4 -1
  332. package/dist/_internal/shared/checkout/rules/clearance.rule.d.ts +2 -0
  333. package/dist/_internal/shared/checkout/rules/clearance.rule.js +148 -0
  334. package/dist/_internal/shared/checkout/rules/collector-drop.rule.d.ts +2 -0
  335. package/dist/_internal/shared/checkout/rules/collector-drop.rule.js +50 -0
  336. package/dist/_internal/shared/checkout/rules/index.d.ts +4 -5
  337. package/dist/_internal/shared/checkout/rules/index.js +4 -5
  338. package/dist/_internal/shared/checkout/rules/payment-gate.d.ts +24 -3
  339. package/dist/_internal/shared/checkout/rules/payment-gate.js +24 -6
  340. package/dist/_internal/shared/checkout/rules/preorder.rule.js +39 -0
  341. package/dist/_internal/shared/checkout/rules/types.d.ts +26 -5
  342. package/dist/_internal/shared/checkout/settlement-split.d.ts +136 -0
  343. package/dist/_internal/shared/checkout/settlement-split.js +198 -0
  344. package/dist/_internal/shared/checkout/settlement.d.ts +186 -0
  345. package/dist/_internal/shared/checkout/settlement.js +0 -0
  346. package/dist/_internal/shared/config/index.d.ts +1 -1
  347. package/dist/_internal/shared/config/schema.d.ts +50 -1
  348. package/dist/_internal/shared/content/composite-sentences/en.d.ts +31 -0
  349. package/dist/_internal/shared/content/composite-sentences/en.js +173 -0
  350. package/dist/_internal/shared/content/composite-sentences/index.d.ts +21 -0
  351. package/dist/_internal/shared/content/composite-sentences/index.js +26 -0
  352. package/dist/_internal/shared/content/composite-sentences/registry.d.ts +41 -0
  353. package/dist/_internal/shared/content/composite-sentences/registry.js +50 -0
  354. package/dist/_internal/shared/content/disclaimers.d.ts +4 -4
  355. package/dist/_internal/shared/content/disclaimers.js +32 -10
  356. package/dist/_internal/shared/content/fragmented-paragraphs/en.d.ts +20 -0
  357. package/dist/_internal/shared/content/fragmented-paragraphs/en.js +16 -0
  358. package/dist/_internal/shared/content/fragmented-paragraphs/index.d.ts +16 -0
  359. package/dist/_internal/shared/content/fragmented-paragraphs/index.js +22 -0
  360. package/dist/_internal/shared/content/fragments.d.ts +114 -0
  361. package/dist/_internal/shared/content/fragments.js +88 -0
  362. package/dist/_internal/shared/content/published-values.d.ts +2 -2
  363. package/dist/_internal/shared/content/published-values.js +33 -12
  364. package/dist/_internal/shared/features/admin/integrations.d.ts +2 -1
  365. package/dist/_internal/shared/features/admin/integrations.js +34 -16
  366. package/dist/_internal/shared/features/admin/row-widget-resources.d.ts +4 -0
  367. package/dist/_internal/shared/features/admin/row-widget-resources.js +29 -0
  368. package/dist/_internal/shared/features/blog/schema.d.ts +7 -7
  369. package/dist/_internal/shared/features/cart/schema.d.ts +8 -8
  370. package/dist/_internal/shared/features/cart/schema.js +3 -4
  371. package/dist/_internal/shared/features/categories/bundle-config.d.ts +3 -3
  372. package/dist/_internal/shared/features/categories/bundle-config.js +3 -3
  373. package/dist/_internal/shared/features/categories/bundle-copy.d.ts +1 -1
  374. package/dist/_internal/shared/features/categories/bundle-copy.js +1 -1
  375. package/dist/_internal/shared/features/categories/bundle-schemas.d.ts +49 -49
  376. package/dist/_internal/shared/features/categories/bundle-schemas.js +1 -1
  377. package/dist/_internal/shared/features/checkout/config.d.ts +2 -0
  378. package/dist/_internal/shared/features/checkout/config.js +23 -0
  379. package/dist/_internal/shared/features/collector-drops/config.d.ts +100 -0
  380. package/dist/_internal/shared/features/collector-drops/config.js +136 -0
  381. package/dist/_internal/shared/features/collector-drops/errors.d.ts +16 -0
  382. package/dist/_internal/shared/features/collector-drops/errors.js +32 -0
  383. package/dist/_internal/shared/features/collector-drops/schema.d.ts +42 -0
  384. package/dist/_internal/shared/features/collector-drops/schema.js +24 -0
  385. package/dist/_internal/shared/features/content-tags/registry.d.ts +55 -0
  386. package/dist/_internal/shared/features/content-tags/registry.js +54 -0
  387. package/dist/_internal/shared/features/dashboard/recent-entry.d.ts +466 -0
  388. package/dist/_internal/shared/features/dashboard/recent-entry.js +132 -0
  389. package/dist/_internal/shared/features/events/config.d.ts +1 -1
  390. package/dist/_internal/shared/features/events/config.js +1 -1
  391. package/dist/_internal/shared/features/events/schema.d.ts +4 -4
  392. package/dist/_internal/shared/features/layout/config.d.ts +9 -1
  393. package/dist/_internal/shared/features/layout/config.js +23 -3
  394. package/dist/_internal/shared/features/notifications/action-url.js +1 -1
  395. package/dist/_internal/shared/features/notifications/email-eligibility.d.ts +4 -4
  396. package/dist/_internal/shared/features/notifications/email-eligibility.js +9 -9
  397. package/dist/_internal/shared/features/offers/config.js +1 -1
  398. package/dist/_internal/shared/features/orders/refund-copy.js +3 -2
  399. package/dist/_internal/shared/features/orders/schema.d.ts +2 -2
  400. package/dist/_internal/shared/features/orders/workflow-registry.d.ts +145 -0
  401. package/dist/_internal/shared/features/orders/workflow-registry.js +197 -0
  402. package/dist/_internal/shared/features/payouts/destination.d.ts +101 -0
  403. package/dist/_internal/shared/features/payouts/destination.js +221 -0
  404. package/dist/_internal/shared/features/print/label-profiles.d.ts +1 -1
  405. package/dist/_internal/shared/features/print/label-profiles.js +1 -1
  406. package/dist/_internal/shared/features/products/composite.d.ts +104 -0
  407. package/dist/_internal/shared/features/products/composite.js +188 -0
  408. package/dist/_internal/shared/features/products/group-rules.d.ts +28 -2
  409. package/dist/_internal/shared/features/products/group-rules.js +29 -0
  410. package/dist/_internal/shared/features/products/pdp-section-ids.d.ts +13 -0
  411. package/dist/_internal/shared/features/products/pdp-section-ids.js +14 -0
  412. package/dist/_internal/shared/features/products/schema.d.ts +31 -13
  413. package/dist/_internal/shared/features/products/schema.js +75 -10
  414. package/dist/_internal/shared/features/products/to-product-item.js +1 -1
  415. package/dist/_internal/shared/features/products/types.d.ts +1 -1
  416. package/dist/_internal/shared/features/promotions/errors.js +2 -1
  417. package/dist/_internal/shared/features/promotions/schema.d.ts +4 -4
  418. package/dist/_internal/shared/features/shipping/offer.d.ts +408 -0
  419. package/dist/_internal/shared/features/shipping/offer.js +440 -0
  420. package/dist/_internal/shared/features/site-settings/fees.d.ts +32 -3
  421. package/dist/_internal/shared/features/site-settings/fees.js +1 -1
  422. package/dist/_internal/shared/features/site-settings/settings-preview-registry.d.ts +17 -0
  423. package/dist/_internal/shared/features/site-settings/settings-preview-registry.js +56 -0
  424. package/dist/_internal/shared/features/site-settings/toggle-catalog.d.ts +68 -0
  425. package/dist/_internal/shared/features/site-settings/toggle-catalog.js +204 -0
  426. package/dist/_internal/shared/features/site-settings/types.d.ts +27 -1
  427. package/dist/_internal/shared/fees/calculator.d.ts +256 -21
  428. package/dist/_internal/shared/fees/calculator.js +269 -26
  429. package/dist/_internal/shared/fees/explain.d.ts +20 -5
  430. package/dist/_internal/shared/fees/explain.js +38 -18
  431. package/dist/_internal/shared/listing-types/_registry.d.ts +30 -15
  432. package/dist/_internal/shared/listing-types/_registry.js +39 -16
  433. package/dist/_internal/shared/listing-types/action-tracker.d.ts +1 -1
  434. package/dist/_internal/shared/listing-types/art-and-stickers/config.d.ts +94 -0
  435. package/dist/_internal/shared/listing-types/art-and-stickers/config.js +57 -0
  436. package/dist/_internal/shared/listing-types/art-and-stickers/ctas.js +3 -0
  437. package/dist/_internal/shared/listing-types/art-and-stickers/schema.d.ts +2 -0
  438. package/dist/_internal/shared/listing-types/art-and-stickers/schema.js +3 -0
  439. package/dist/_internal/shared/listing-types/availability.js +2 -2
  440. package/dist/_internal/shared/listing-types/capabilities.d.ts +77 -1
  441. package/dist/_internal/shared/listing-types/capabilities.js +72 -13
  442. package/dist/_internal/shared/listing-types/classified/config.d.ts +1 -0
  443. package/dist/_internal/shared/listing-types/classified/config.js +1 -0
  444. package/dist/_internal/shared/listing-types/clearance/config.d.ts +74 -0
  445. package/dist/_internal/shared/listing-types/clearance/config.js +46 -0
  446. package/dist/_internal/shared/listing-types/clearance/schema.d.ts +3 -0
  447. package/dist/_internal/shared/listing-types/clearance/schema.js +13 -0
  448. package/dist/_internal/shared/listing-types/collector-drop/config.d.ts +85 -0
  449. package/dist/_internal/shared/listing-types/collector-drop/config.js +59 -0
  450. package/dist/_internal/shared/listing-types/collector-drop/schema.d.ts +3 -0
  451. package/dist/_internal/shared/listing-types/collector-drop/schema.js +11 -0
  452. package/dist/_internal/shared/listing-types/digital-code/config.d.ts +1 -0
  453. package/dist/_internal/shared/listing-types/digital-code/config.js +1 -0
  454. package/dist/_internal/shared/listing-types/feature-flags.d.ts +125 -8
  455. package/dist/_internal/shared/listing-types/feature-flags.js +149 -12
  456. package/dist/_internal/shared/listing-types/hidden-surfaces.d.ts +19 -10
  457. package/dist/_internal/shared/listing-types/hidden-surfaces.js +6 -5
  458. package/dist/_internal/shared/listing-types/live/config.d.ts +1 -0
  459. package/dist/_internal/shared/listing-types/live/config.js +1 -0
  460. package/dist/_internal/shared/listing-types/pre-order/config.d.ts +1 -0
  461. package/dist/_internal/shared/listing-types/pre-order/config.js +20 -5
  462. package/dist/_internal/shared/listing-types/pre-order/schema.d.ts +45 -0
  463. package/dist/_internal/shared/listing-types/pre-order/schema.js +60 -2
  464. package/dist/_internal/shared/listing-types/route-gating.d.ts +11 -11
  465. package/dist/_internal/shared/listing-types/route-gating.js +15 -14
  466. package/dist/_internal/shared/listing-types/spares/config.d.ts +1 -0
  467. package/dist/_internal/shared/listing-types/spares/config.js +1 -0
  468. package/dist/_internal/shared/listing-types/standard/config.d.ts +1 -0
  469. package/dist/_internal/shared/listing-types/standard/config.js +1 -0
  470. package/dist/_internal/shared/listing-types/tiers.d.ts +2 -2
  471. package/dist/_internal/shared/listing-types/tiers.js +6 -7
  472. package/dist/_internal/shared/search/index-record.d.ts +10 -4
  473. package/dist/_internal/shared/search/index-record.js +18 -1
  474. package/dist/_internal/shared/search/match.d.ts +3 -1
  475. package/dist/_internal/shared/search/match.js +2 -1
  476. package/dist/_internal/shared/search/to-groups.js +1 -0
  477. package/dist/_internal/shared/templating/placeholders.d.ts +18 -0
  478. package/dist/_internal/shared/templating/placeholders.js +24 -0
  479. package/dist/_internal/shared/tester/window.d.ts +1 -1
  480. package/dist/_internal/shared/tester/window.js +5 -5
  481. package/dist/_internal/shared/tokens/index.d.ts +1 -1
  482. package/dist/_internal/shared/tokens/index.js +1 -1
  483. package/dist/cli/index.d.ts +1 -1
  484. package/dist/cli/index.js +2 -2
  485. package/dist/client-entry.d.ts +1 -1
  486. package/dist/client.d.ts +49 -40
  487. package/dist/client.js +97 -32
  488. package/dist/configs/next.d.ts +1 -1
  489. package/dist/configs/tailwind.d.ts +12 -0
  490. package/dist/configs/tailwind.js +14 -0
  491. package/dist/constants/api-endpoints.d.ts +93 -51
  492. package/dist/constants/api-endpoints.js +53 -28
  493. package/dist/constants/field-names.d.ts +63 -20
  494. package/dist/constants/field-names.js +64 -21
  495. package/dist/constants/index.d.ts +2 -2
  496. package/dist/constants/index.js +2 -2
  497. package/dist/constants/notification-types.d.ts +1 -1
  498. package/dist/constants/pagination-presets.d.ts +2 -2
  499. package/dist/constants/pagination-presets.js +2 -2
  500. package/dist/constants/seed-meta.d.ts +1 -1
  501. package/dist/constants/storage-keys.d.ts +96 -0
  502. package/dist/constants/storage-keys.js +131 -0
  503. package/dist/constants/table-keys.d.ts +3 -2
  504. package/dist/constants/table-keys.js +3 -2
  505. package/dist/contracts/ai.d.ts +183 -0
  506. package/dist/contracts/ai.js +2 -0
  507. package/dist/contracts/auth.d.ts +16 -1
  508. package/dist/contracts/client-live-edit.d.ts +29 -0
  509. package/dist/contracts/client-live-edit.js +23 -0
  510. package/dist/contracts/feature.d.ts +1 -1
  511. package/dist/contracts/index.d.ts +1 -1
  512. package/dist/contracts/payment.d.ts +280 -0
  513. package/dist/contracts/payment.js +125 -0
  514. package/dist/contracts/registry.d.ts +37 -1
  515. package/dist/contracts/tax.d.ts +118 -0
  516. package/dist/contracts/tax.js +3 -0
  517. package/dist/core/CacheManager.d.ts +21 -0
  518. package/dist/core/CacheManager.js +38 -0
  519. package/dist/core/brand-resolver.d.ts +92 -0
  520. package/dist/core/brand-resolver.js +120 -0
  521. package/dist/core/brand-text.d.ts +15 -0
  522. package/dist/core/brand-text.js +73 -0
  523. package/dist/core/hooks/useNewsletterSubscribe.d.ts +30 -0
  524. package/dist/core/hooks/useNewsletterSubscribe.js +121 -0
  525. package/dist/core/integration-keys.d.ts +6 -0
  526. package/dist/core/integration-keys.js +14 -0
  527. package/dist/core/mutation-events.d.ts +3 -3
  528. package/dist/core/mutation-events.js +7 -5
  529. package/dist/core/site-config.js +1 -1
  530. package/dist/core/unit-of-work.d.ts +1 -2
  531. package/dist/core/unit-of-work.js +1 -5
  532. package/dist/edit-mode/index.d.ts +11 -0
  533. package/dist/edit-mode/index.js +10 -0
  534. package/dist/errors/error-codes.d.ts +7 -7
  535. package/dist/errors/error-codes.js +7 -7
  536. package/dist/errors/error-display-map.js +8 -8
  537. package/dist/errors/messages.d.ts +8 -8
  538. package/dist/errors/messages.js +8 -8
  539. package/dist/features/_guide-cls.d.ts +1 -0
  540. package/dist/features/_guide-cls.js +10 -1
  541. package/dist/features/about/components/DeveloperView.d.ts +4 -1
  542. package/dist/features/about/components/DeveloperView.js +4 -2
  543. package/dist/features/about/components/FeesView.d.ts +4 -1
  544. package/dist/features/about/components/FeesView.js +3 -2
  545. package/dist/features/about/components/GstExplainerView.d.ts +4 -1
  546. package/dist/features/about/components/GstExplainerView.js +3 -2
  547. package/dist/features/about/components/GuidesHubView.d.ts +5 -2
  548. package/dist/features/about/components/GuidesHubView.js +7 -6
  549. package/dist/features/about/components/HelpPageView.d.ts +10 -1
  550. package/dist/features/about/components/HelpPageView.js +6 -5
  551. package/dist/features/about/components/HowCheckoutWorksView.d.ts +4 -1
  552. package/dist/features/about/components/HowCheckoutWorksView.js +4 -14
  553. package/dist/features/about/components/HowCollectorDropsWorkView.d.ts +6 -0
  554. package/dist/features/about/components/HowCollectorDropsWorkView.js +105 -0
  555. package/dist/features/about/components/HowEmiWorksView.d.ts +4 -1
  556. package/dist/features/about/components/HowEmiWorksView.js +4 -14
  557. package/dist/features/about/components/HowOffersWorkView.d.ts +4 -1
  558. package/dist/features/about/components/HowOffersWorkView.js +3 -16
  559. package/dist/features/about/components/HowOrdersWorkView.d.ts +4 -1
  560. package/dist/features/about/components/HowOrdersWorkView.js +3 -10
  561. package/dist/features/about/components/HowPayoutsWorkView.d.ts +4 -1
  562. package/dist/features/about/components/HowPayoutsWorkView.js +5 -15
  563. package/dist/features/about/components/HowPreOrdersWorkView.d.ts +4 -1
  564. package/dist/features/about/components/HowPreOrdersWorkView.js +5 -15
  565. package/dist/features/about/components/HowReviewsWorkView.d.ts +4 -1
  566. package/dist/features/about/components/HowReviewsWorkView.js +5 -15
  567. package/dist/features/about/components/PolicyPageView.d.ts +79 -3
  568. package/dist/features/about/components/PolicyPageView.js +63 -4
  569. package/dist/features/about/components/PublicProfileView.d.ts +11 -1
  570. package/dist/features/about/components/PublicProfileView.js +9 -8
  571. package/dist/features/about/components/SecurityPrivacyView.d.ts +4 -1
  572. package/dist/features/about/components/SecurityPrivacyView.js +3 -2
  573. package/dist/features/about/components/ShippingPolicyView.d.ts +4 -1
  574. package/dist/features/about/components/ShippingPolicyView.js +4 -3
  575. package/dist/features/about/components/SpotAFakeView.d.ts +4 -1
  576. package/dist/features/about/components/SpotAFakeView.js +3 -2
  577. package/dist/features/about/components/TrackOrderView.d.ts +4 -1
  578. package/dist/features/about/components/TrackOrderView.js +3 -2
  579. package/dist/features/about/index.d.ts +2 -2
  580. package/dist/features/about/index.js +1 -1
  581. package/dist/features/about/schemas/index.d.ts +18 -18
  582. package/dist/features/account/components/AddressBook.d.ts +1 -1
  583. package/dist/features/account/components/AddressForm.js +25 -1
  584. package/dist/features/account/components/BecomeSellerView.d.ts +4 -1
  585. package/dist/features/account/components/BecomeSellerView.js +3 -2
  586. package/dist/features/account/components/BuyerAccountGuideView.d.ts +6 -1
  587. package/dist/features/account/components/BuyerAccountGuideView.js +5 -4
  588. package/dist/features/account/components/BuyerCollectorDropsGuideView.d.ts +7 -0
  589. package/dist/features/account/components/BuyerCollectorDropsGuideView.js +46 -0
  590. package/dist/features/account/components/BuyerOrdersGuideView.d.ts +6 -1
  591. package/dist/features/account/components/BuyerOrdersGuideView.js +8 -7
  592. package/dist/features/account/components/BuyerShoppingGuideView.d.ts +6 -1
  593. package/dist/features/account/components/BuyerShoppingGuideView.js +7 -6
  594. package/dist/features/account/components/NotificationBell.js +1 -1
  595. package/dist/features/account/components/NotificationPreferencesPanel.js +1 -1
  596. package/dist/features/account/components/OrderDetailView.d.ts +4 -1
  597. package/dist/features/account/components/OrderDetailView.js +3 -1
  598. package/dist/features/account/components/UserAccountHubView.d.ts +4 -1
  599. package/dist/features/account/components/UserAccountHubView.js +8 -2
  600. package/dist/features/account/components/UserBidsView.d.ts +6 -1
  601. package/dist/features/account/components/UserBidsView.js +17 -8
  602. package/dist/features/account/components/UserOffersPanel.js +2 -1
  603. package/dist/features/account/components/UserOrderTrackView.d.ts +4 -1
  604. package/dist/features/account/components/UserOrderTrackView.js +3 -1
  605. package/dist/features/account/components/UserOrdersView.d.ts +4 -1
  606. package/dist/features/account/components/UserOrdersView.js +6 -5
  607. package/dist/features/account/components/UserReturnsView.d.ts +4 -1
  608. package/dist/features/account/components/UserReturnsView.js +4 -3
  609. package/dist/features/account/components/UserSidebar.js +14 -4
  610. package/dist/features/account/hooks/useCollapsedSections.js +5 -3
  611. package/dist/features/account/hooks/useNotifications.d.ts +1 -1
  612. package/dist/features/account/hooks/useProfile.d.ts +13 -0
  613. package/dist/features/account/hooks/usePublicProfile.d.ts +11 -1
  614. package/dist/features/account/hooks/usePublicProfile.js +6 -1
  615. package/dist/features/account/schemas/index.d.ts +4 -4
  616. package/dist/features/account/schemas/index.js +1 -1
  617. package/dist/features/addresses/schemas/address-form.d.ts +12 -12
  618. package/dist/features/addresses/schemas/index.d.ts +2 -2
  619. package/dist/features/admin/actions/admin-actions.js +4 -4
  620. package/dist/features/admin/actions/admin-read-actions.d.ts +1 -1
  621. package/dist/features/admin/actions/admin-read-actions.js +1 -1
  622. package/dist/features/admin/actions/notification-actions.js +13 -6
  623. package/dist/features/admin/actions/site-settings-actions.d.ts +1 -1
  624. package/dist/features/admin/api/bids/route.js +7 -1
  625. package/dist/features/admin/api/coupons/route.js +7 -1
  626. package/dist/features/admin/api/products/route.js +7 -1
  627. package/dist/features/admin/api/reviews/route.js +7 -1
  628. package/dist/features/admin/components/AdminActionIndexView.d.ts +4 -1
  629. package/dist/features/admin/components/AdminActionIndexView.js +3 -2
  630. package/dist/features/admin/components/AdminAdEditorView.d.ts +6 -1
  631. package/dist/features/admin/components/AdminAdEditorView.js +3 -1
  632. package/dist/features/admin/components/AdminAddressBookView.d.ts +4 -1
  633. package/dist/features/admin/components/AdminAddressBookView.js +3 -2
  634. package/dist/features/admin/components/AdminAddressClustersView.d.ts +4 -1
  635. package/dist/features/admin/components/AdminAddressClustersView.js +3 -2
  636. package/dist/features/admin/components/AdminAddressEditorView.d.ts +6 -1
  637. package/dist/features/admin/components/AdminAddressEditorView.js +13 -2
  638. package/dist/features/admin/components/AdminAddressesView.d.ts +4 -1
  639. package/dist/features/admin/components/AdminAddressesView.js +3 -2
  640. package/dist/features/admin/components/AdminAdsView.d.ts +4 -1
  641. package/dist/features/admin/components/AdminAdsView.js +3 -2
  642. package/dist/features/admin/components/AdminAllEventEntriesView.d.ts +6 -2
  643. package/dist/features/admin/components/AdminAllEventEntriesView.js +3 -2
  644. package/dist/features/admin/components/AdminAnalyticsGuideView.d.ts +6 -1
  645. package/dist/features/admin/components/AdminAnalyticsGuideView.js +4 -2
  646. package/dist/features/admin/components/AdminArtAndStickersView.d.ts +20 -0
  647. package/dist/features/admin/components/AdminArtAndStickersView.js +39 -0
  648. package/dist/features/admin/components/AdminAuditLogView.d.ts +6 -2
  649. package/dist/features/admin/components/AdminAuditLogView.js +5 -1
  650. package/dist/features/admin/components/AdminBidsView.d.ts +6 -2
  651. package/dist/features/admin/components/AdminBidsView.js +5 -3
  652. package/dist/features/admin/components/AdminBlogEditorView.d.ts +6 -1
  653. package/dist/features/admin/components/AdminBlogEditorView.js +5 -2
  654. package/dist/features/admin/components/AdminBlogView.d.ts +6 -2
  655. package/dist/features/admin/components/AdminBlogView.js +4 -2
  656. package/dist/features/admin/components/AdminBrandEditorView.d.ts +6 -1
  657. package/dist/features/admin/components/AdminBrandEditorView.js +6 -2
  658. package/dist/features/admin/components/AdminBrandsView.d.ts +6 -2
  659. package/dist/features/admin/components/AdminBrandsView.js +7 -3
  660. package/dist/features/admin/components/AdminBundleEditorView.d.ts +10 -1
  661. package/dist/features/admin/components/AdminBundleEditorView.js +6 -2
  662. package/dist/features/admin/components/AdminBundlesView.d.ts +4 -1
  663. package/dist/features/admin/components/AdminBundlesView.js +12 -4
  664. package/dist/features/admin/components/AdminCartsView.d.ts +6 -2
  665. package/dist/features/admin/components/AdminCartsView.js +7 -2
  666. package/dist/features/admin/components/AdminCatalogGuideView.d.ts +6 -1
  667. package/dist/features/admin/components/AdminCatalogGuideView.js +5 -3
  668. package/dist/features/admin/components/AdminCategoriesView.d.ts +6 -2
  669. package/dist/features/admin/components/AdminCategoriesView.js +7 -3
  670. package/dist/features/admin/components/AdminCategoryEditorView.d.ts +6 -1
  671. package/dist/features/admin/components/AdminCategoryEditorView.js +13 -9
  672. package/dist/features/admin/components/AdminClassifiedView.d.ts +6 -2
  673. package/dist/features/admin/components/AdminClassifiedView.js +8 -3
  674. package/dist/features/admin/components/AdminClearanceView.d.ts +8 -0
  675. package/dist/features/admin/components/AdminClearanceView.js +156 -0
  676. package/dist/features/admin/components/AdminContactView.d.ts +4 -1
  677. package/dist/features/admin/components/AdminContactView.js +3 -1
  678. package/dist/features/admin/components/AdminContentGuideView.d.ts +6 -1
  679. package/dist/features/admin/components/AdminContentGuideView.js +5 -3
  680. package/dist/features/admin/components/AdminCouponEditorView.d.ts +6 -1
  681. package/dist/features/admin/components/AdminCouponEditorView.js +9 -5
  682. package/dist/features/admin/components/AdminCouponsView.d.ts +4 -1
  683. package/dist/features/admin/components/AdminCouponsView.js +4 -2
  684. package/dist/features/admin/components/AdminDashboardView.d.ts +4 -1
  685. package/dist/features/admin/components/AdminDashboardView.js +3 -1
  686. package/dist/features/admin/components/AdminDigitalCodesView.d.ts +6 -2
  687. package/dist/features/admin/components/AdminDigitalCodesView.js +4 -3
  688. package/dist/features/admin/components/AdminEmployeeEditorView.d.ts +36 -1
  689. package/dist/features/admin/components/AdminEmployeeEditorView.js +15 -7
  690. package/dist/features/admin/components/AdminFaqEditorView.d.ts +6 -1
  691. package/dist/features/admin/components/AdminFaqEditorView.js +84 -5
  692. package/dist/features/admin/components/AdminFaqsView.d.ts +4 -1
  693. package/dist/features/admin/components/AdminFaqsView.js +5 -4
  694. package/dist/features/admin/components/AdminFeatureEditorView.d.ts +6 -1
  695. package/dist/features/admin/components/AdminFeatureEditorView.js +6 -2
  696. package/dist/features/admin/components/AdminFeaturesView.d.ts +6 -2
  697. package/dist/features/admin/components/AdminFeaturesView.js +10 -4
  698. package/dist/features/admin/components/AdminFulfillmentView.d.ts +4 -1
  699. package/dist/features/admin/components/AdminFulfillmentView.js +3 -2
  700. package/dist/features/admin/components/AdminGatewayEventsView.d.ts +6 -2
  701. package/dist/features/admin/components/AdminGatewayEventsView.js +5 -3
  702. package/dist/features/admin/components/AdminGroupedListingsView.d.ts +6 -2
  703. package/dist/features/admin/components/AdminGroupedListingsView.js +3 -2
  704. package/dist/features/admin/components/AdminGuideHubView.d.ts +7 -1
  705. package/dist/features/admin/components/AdminGuideHubView.js +6 -3
  706. package/dist/features/admin/components/AdminHistoryView.d.ts +6 -2
  707. package/dist/features/admin/components/AdminHistoryView.js +7 -6
  708. package/dist/features/admin/components/AdminInvoicingView.d.ts +6 -1
  709. package/dist/features/admin/components/AdminInvoicingView.js +3 -2
  710. package/dist/features/admin/components/AdminLiveView.d.ts +6 -2
  711. package/dist/features/admin/components/AdminLiveView.js +4 -3
  712. package/dist/features/admin/components/AdminMediaView.d.ts +4 -1
  713. package/dist/features/admin/components/AdminMediaView.js +15 -3
  714. package/dist/features/admin/components/AdminMoneyCasesView.d.ts +6 -2
  715. package/dist/features/admin/components/AdminMoneyCasesView.js +5 -3
  716. package/dist/features/admin/components/AdminNavEditorView.d.ts +12 -1
  717. package/dist/features/admin/components/AdminNavEditorView.js +4 -3
  718. package/dist/features/admin/components/AdminNavigationView.d.ts +4 -1
  719. package/dist/features/admin/components/AdminNavigationView.js +3 -1
  720. package/dist/features/admin/components/AdminNewsletterView.d.ts +4 -1
  721. package/dist/features/admin/components/AdminNewsletterView.js +3 -2
  722. package/dist/features/admin/components/AdminNotificationsView.d.ts +6 -2
  723. package/dist/features/admin/components/AdminNotificationsView.js +19 -7
  724. package/dist/features/admin/components/AdminOffersView.d.ts +6 -2
  725. package/dist/features/admin/components/AdminOffersView.js +4 -3
  726. package/dist/features/admin/components/AdminOrderEditorView.d.ts +1 -1
  727. package/dist/features/admin/components/AdminOrderEditorView.js +1 -1
  728. package/dist/features/admin/components/AdminOrdersGuideView.d.ts +6 -1
  729. package/dist/features/admin/components/AdminOrdersGuideView.js +6 -4
  730. package/dist/features/admin/components/AdminOrdersView.d.ts +6 -2
  731. package/dist/features/admin/components/AdminOrdersView.js +46 -5
  732. package/dist/features/admin/components/AdminPaymentClustersView.d.ts +4 -1
  733. package/dist/features/admin/components/AdminPaymentClustersView.js +3 -2
  734. package/dist/features/admin/components/AdminPaymentMethodsView.d.ts +4 -1
  735. package/dist/features/admin/components/AdminPaymentMethodsView.js +3 -2
  736. package/dist/features/admin/components/AdminPaymentsGuideView.d.ts +6 -1
  737. package/dist/features/admin/components/AdminPaymentsGuideView.js +3 -2
  738. package/dist/features/admin/components/AdminPayoutsView.d.ts +6 -2
  739. package/dist/features/admin/components/AdminPayoutsView.js +3 -2
  740. package/dist/features/admin/components/AdminProductEditorView.d.ts +6 -1
  741. package/dist/features/admin/components/AdminProductEditorView.js +7 -3
  742. package/dist/features/admin/components/AdminProductsView.d.ts +4 -1
  743. package/dist/features/admin/components/AdminProductsView.js +80 -48
  744. package/dist/features/admin/components/AdminReturnRequestsView.d.ts +4 -1
  745. package/dist/features/admin/components/AdminReturnRequestsView.js +3 -2
  746. package/dist/features/admin/components/AdminReviewsView.d.ts +6 -2
  747. package/dist/features/admin/components/AdminReviewsView.js +3 -2
  748. package/dist/features/admin/components/AdminScammersView.d.ts +6 -2
  749. package/dist/features/admin/components/AdminScammersView.js +3 -2
  750. package/dist/features/admin/components/AdminSectionsView.d.ts +4 -1
  751. package/dist/features/admin/components/AdminSectionsView.js +42 -40
  752. package/dist/features/admin/components/AdminSessionsView.d.ts +6 -2
  753. package/dist/features/admin/components/AdminSessionsView.js +3 -2
  754. package/dist/features/admin/components/AdminSidebar.js +19 -5
  755. package/dist/features/admin/components/AdminSiteConfigGuideView.d.ts +6 -1
  756. package/dist/features/admin/components/AdminSiteConfigGuideView.js +4 -3
  757. package/dist/features/admin/components/AdminSiteSettingsView.d.ts +4 -1
  758. package/dist/features/admin/components/AdminSiteSettingsView.js +1161 -646
  759. package/dist/features/admin/components/AdminSparesView.d.ts +7 -3
  760. package/dist/features/admin/components/AdminSparesView.js +5 -4
  761. package/dist/features/admin/components/AdminStoreAddressesView.d.ts +4 -1
  762. package/dist/features/admin/components/AdminStoreAddressesView.js +3 -2
  763. package/dist/features/admin/components/AdminStoreEditorView.js +4 -3
  764. package/dist/features/admin/components/AdminStoresGuideView.d.ts +6 -1
  765. package/dist/features/admin/components/AdminStoresGuideView.js +4 -2
  766. package/dist/features/admin/components/AdminStoresView.d.ts +6 -2
  767. package/dist/features/admin/components/AdminStoresView.js +3 -2
  768. package/dist/features/admin/components/AdminSublistingCategoriesView.d.ts +4 -1
  769. package/dist/features/admin/components/AdminSublistingCategoriesView.js +4 -3
  770. package/dist/features/admin/components/AdminSublistingCategoryEditorView.d.ts +6 -1
  771. package/dist/features/admin/components/AdminSublistingCategoryEditorView.js +3 -1
  772. package/dist/features/admin/components/AdminSupportTicketDetailView.js +2 -1
  773. package/dist/features/admin/components/AdminSupportTicketsView.d.ts +6 -2
  774. package/dist/features/admin/components/AdminSupportTicketsView.js +3 -2
  775. package/dist/features/admin/components/AdminTaxCodesView.d.ts +6 -2
  776. package/dist/features/admin/components/AdminTaxCodesView.js +4 -3
  777. package/dist/features/admin/components/AdminTeamGuideView.d.ts +6 -1
  778. package/dist/features/admin/components/AdminTeamGuideView.js +5 -2
  779. package/dist/features/admin/components/AdminTeamView.d.ts +4 -1
  780. package/dist/features/admin/components/AdminTeamView.js +22 -28
  781. package/dist/features/admin/components/AdminTesterChecklistItemEditorView.d.ts +6 -1
  782. package/dist/features/admin/components/AdminTesterChecklistItemEditorView.js +6 -2
  783. package/dist/features/admin/components/AdminTesterChecklistView.d.ts +4 -1
  784. package/dist/features/admin/components/AdminTesterChecklistView.js +5 -4
  785. package/dist/features/admin/components/AdminTrustGuideView.d.ts +6 -1
  786. package/dist/features/admin/components/AdminTrustGuideView.js +5 -3
  787. package/dist/features/admin/components/AdminUserEditorView.js +2 -1
  788. package/dist/features/admin/components/AdminUsersGuideView.d.ts +6 -1
  789. package/dist/features/admin/components/AdminUsersGuideView.js +4 -2
  790. package/dist/features/admin/components/AdminUsersView.d.ts +6 -2
  791. package/dist/features/admin/components/AdminUsersView.js +38 -6
  792. package/dist/features/admin/components/AdminViewCards.js +1 -1
  793. package/dist/features/admin/components/AdminWishlistsView.d.ts +6 -2
  794. package/dist/features/admin/components/AdminWishlistsView.js +7 -6
  795. package/dist/features/admin/components/DashboardStats.js +20 -23
  796. package/dist/features/admin/components/DataListingView.js +16 -2
  797. package/dist/features/admin/components/OwnerQuickActions.d.ts +1 -1
  798. package/dist/features/admin/components/OwnerQuickActions.js +18 -2
  799. package/dist/features/admin/components/QuickEditMenu.js +1 -1
  800. package/dist/features/admin/components/ViewNotificationModal.js +1 -1
  801. package/dist/features/admin/components/analytics/AdminStatCard.d.ts +1 -5
  802. package/dist/features/admin/components/analytics/AdminStatCard.js +2 -14
  803. package/dist/features/admin/components/index.d.ts +4 -12
  804. package/dist/features/admin/components/index.js +4 -8
  805. package/dist/features/admin/components/sections/adminSectionsBuildParse.d.ts +5 -5
  806. package/dist/features/admin/components/sections/adminSectionsBuildParse.js +22 -22
  807. package/dist/features/admin/components/sections/adminSectionsTypes.d.ts +8 -7
  808. package/dist/features/admin/components/sections/adminSectionsTypes.js +14 -14
  809. package/dist/features/admin/constants/filter-tabs.d.ts +27 -17
  810. package/dist/features/admin/constants/filter-tabs.js +40 -12
  811. package/dist/features/admin/constants/site-settings-tabs.d.ts +4 -4
  812. package/dist/features/admin/constants/site-settings-tabs.js +3 -3
  813. package/dist/features/admin/hooks/build-filter-panel.d.ts +50 -0
  814. package/dist/features/admin/hooks/build-filter-panel.js +55 -0
  815. package/dist/features/admin/hooks/useAdminListing.d.ts +1 -1
  816. package/dist/features/admin/hooks/useAdminListingData.js +14 -1
  817. package/dist/features/admin/hooks/useAdminSiteSettingsPreview.d.ts +6 -0
  818. package/dist/features/admin/hooks/useAdminSiteSettingsPreview.js +46 -0
  819. package/dist/features/admin/repository/site-settings.repository.d.ts +26 -25
  820. package/dist/features/admin/repository/site-settings.repository.js +73 -21
  821. package/dist/features/admin/schemas/admin-editor-forms.d.ts +2 -2
  822. package/dist/features/admin/schemas/admin-user-form.d.ts +7 -7
  823. package/dist/features/admin/schemas/admin-user-form.js +6 -6
  824. package/dist/features/admin/schemas/firestore.d.ts +265 -41
  825. package/dist/features/admin/schemas/firestore.js +10 -10
  826. package/dist/features/admin/schemas/nav-item-form.d.ts +2 -2
  827. package/dist/features/admin/schemas/site-settings-about-form.d.ts +162 -0
  828. package/dist/features/admin/schemas/site-settings-about-form.js +142 -0
  829. package/dist/features/admin/schemas/site-settings-announcement-form.d.ts +18 -0
  830. package/dist/features/admin/schemas/site-settings-announcement-form.js +53 -0
  831. package/dist/features/admin/schemas/site-settings-appearance-form.d.ts +93 -0
  832. package/dist/features/admin/schemas/site-settings-appearance-form.js +75 -0
  833. package/dist/features/admin/schemas/site-settings-branding-form.d.ts +30 -0
  834. package/dist/features/admin/schemas/site-settings-branding-form.js +77 -0
  835. package/dist/features/admin/schemas/site-settings-collector-drop-form.d.ts +30 -0
  836. package/dist/features/admin/schemas/site-settings-collector-drop-form.js +63 -0
  837. package/dist/features/admin/schemas/site-settings-contact-form.d.ts +42 -0
  838. package/dist/features/admin/schemas/site-settings-contact-form.js +85 -0
  839. package/dist/features/admin/schemas/site-settings-emi-form.d.ts +27 -0
  840. package/dist/features/admin/schemas/site-settings-emi-form.js +68 -0
  841. package/dist/features/admin/schemas/site-settings-fees-form.d.ts +78 -0
  842. package/dist/features/admin/schemas/site-settings-fees-form.js +161 -0
  843. package/dist/features/admin/schemas/site-settings-form.d.ts +3 -3
  844. package/dist/features/admin/schemas/site-settings-form.js +1 -1
  845. package/dist/features/admin/schemas/site-settings-gst-form.d.ts +18 -0
  846. package/dist/features/admin/schemas/site-settings-gst-form.js +57 -0
  847. package/dist/features/admin/schemas/site-settings-integrations-form.d.ts +99 -0
  848. package/dist/features/admin/schemas/site-settings-integrations-form.js +172 -0
  849. package/dist/features/admin/schemas/site-settings-legal-form.d.ts +38 -0
  850. package/dist/features/admin/schemas/site-settings-legal-form.js +76 -0
  851. package/dist/features/admin/schemas/site-settings-limits-form.d.ts +15 -0
  852. package/dist/features/admin/schemas/site-settings-limits-form.js +48 -0
  853. package/dist/features/admin/schemas/site-settings-listings-form.d.ts +15 -0
  854. package/dist/features/admin/schemas/site-settings-listings-form.js +78 -0
  855. package/dist/features/admin/schemas/site-settings-notifications-form.d.ts +60 -0
  856. package/dist/features/admin/schemas/site-settings-notifications-form.js +160 -0
  857. package/dist/features/admin/schemas/site-settings-procurement-form.d.ts +12 -0
  858. package/dist/features/admin/schemas/site-settings-procurement-form.js +48 -0
  859. package/dist/features/admin/schemas/site-settings-seo-form.d.ts +21 -0
  860. package/dist/features/admin/schemas/site-settings-seo-form.js +42 -0
  861. package/dist/features/admin/schemas/site-settings-shipping-form.d.ts +48 -0
  862. package/dist/features/admin/schemas/site-settings-shipping-form.js +132 -0
  863. package/dist/features/admin/schemas/site-settings-watermark-form.d.ts +34 -0
  864. package/dist/features/admin/schemas/site-settings-watermark-form.js +68 -0
  865. package/dist/features/admin/schemas/site-settings-whatsapp-form.d.ts +36 -0
  866. package/dist/features/admin/schemas/site-settings-whatsapp-form.js +62 -0
  867. package/dist/features/admin/types/product.types.d.ts +6 -6
  868. package/dist/features/admin/types/product.types.js +1 -1
  869. package/dist/features/analytics/types.d.ts +1 -1
  870. package/dist/features/analytics/types.js +3 -3
  871. package/dist/features/assistant/components/AdminAssistantWidget.d.ts +1 -0
  872. package/dist/features/assistant/components/AdminAssistantWidget.js +84 -0
  873. package/dist/features/assistant/components/AssistantPageView.d.ts +6 -0
  874. package/dist/features/assistant/components/AssistantPageView.js +54 -0
  875. package/dist/features/assistant/components/AssistantWidget.d.ts +5 -0
  876. package/dist/features/assistant/components/AssistantWidget.js +127 -0
  877. package/dist/features/assistant/schemas/ask.d.ts +15 -0
  878. package/dist/features/assistant/schemas/ask.js +10 -0
  879. package/dist/features/audit-log/schemas/firestore.d.ts +94 -0
  880. package/dist/features/audit-log/schemas/firestore.js +51 -0
  881. package/dist/features/auth/actions/profile-actions.d.ts +8 -6
  882. package/dist/features/auth/actions/profile-actions.js +17 -8
  883. package/dist/features/auth/actions/user-slug.js +21 -2
  884. package/dist/features/auth/auth-helpers.d.ts +186 -2
  885. package/dist/features/auth/auth-helpers.js +320 -4
  886. package/dist/features/auth/components/Guards.d.ts +10 -0
  887. package/dist/features/auth/components/Guards.js +30 -6
  888. package/dist/features/auth/components/OAuthLoadingView.d.ts +6 -1
  889. package/dist/features/auth/components/OAuthLoadingView.js +3 -2
  890. package/dist/features/auth/hooks/useAuth.js +11 -4
  891. package/dist/features/auth/hooks/useRBAC.d.ts +29 -1
  892. package/dist/features/auth/hooks/useRBAC.js +46 -12
  893. package/dist/features/auth/permissions/constants.d.ts +130 -5
  894. package/dist/features/auth/permissions/constants.js +176 -2
  895. package/dist/features/auth/repository/user.repository.d.ts +89 -29
  896. package/dist/features/auth/repository/user.repository.js +218 -79
  897. package/dist/features/auth/role-predicates.d.ts +64 -8
  898. package/dist/features/auth/role-predicates.js +104 -12
  899. package/dist/features/auth/schemas/firestore.d.ts +107 -8
  900. package/dist/features/auth/schemas/firestore.js +19 -2
  901. package/dist/features/auth/schemas/index.d.ts +26 -6
  902. package/dist/features/auth/schemas/index.js +17 -0
  903. package/dist/features/auth/types/index.d.ts +23 -1
  904. package/dist/features/before-after/schemas/index.d.ts +2 -2
  905. package/dist/features/blog/actions/blog-actions.d.ts +31 -31
  906. package/dist/features/blog/actions/blog-actions.js +1 -1
  907. package/dist/features/blog/components/BlogFeaturedCard.js +1 -1
  908. package/dist/features/blog/components/BlogIndexListing.js +2 -1
  909. package/dist/features/blog/components/BlogIndexPageView.d.ts +4 -1
  910. package/dist/features/blog/components/BlogIndexPageView.js +3 -2
  911. package/dist/features/blog/components/BlogListView.js +1 -1
  912. package/dist/features/blog/components/BlogPostView.js +33 -2
  913. package/dist/features/blog/schemas/blog-category.schema.d.ts +2 -0
  914. package/dist/features/blog/schemas/blog-category.schema.js +8 -0
  915. package/dist/features/blog/schemas/blog-form.d.ts +4 -4
  916. package/dist/features/blog/schemas/blog-form.js +1 -1
  917. package/dist/features/blog/schemas/index.d.ts +67 -67
  918. package/dist/features/blog/schemas/index.js +3 -7
  919. package/dist/features/cart/actions/cart-actions.d.ts +5 -5
  920. package/dist/features/cart/actions/cart-actions.js +7 -7
  921. package/dist/features/cart/components/CartDrawer.js +1 -1
  922. package/dist/features/cart/components/CartGroupLineRow.js +1 -1
  923. package/dist/features/cart/components/CartView.d.ts +1 -1
  924. package/dist/features/cart/hooks/useCartQuery.d.ts +1 -1
  925. package/dist/features/cart/hooks/useCheckoutReadQueries.d.ts +1 -1
  926. package/dist/features/cart/repository/cart.repository.d.ts +3 -3
  927. package/dist/features/cart/repository/cart.repository.js +6 -6
  928. package/dist/features/cart/schemas/firestore.d.ts +21 -21
  929. package/dist/features/cart/schemas/firestore.js +2 -2
  930. package/dist/features/cart/schemas/index.d.ts +15 -15
  931. package/dist/features/cart/utils/pending-ops.d.ts +1 -1
  932. package/dist/features/cart/utils/pending-ops.js +16 -3
  933. package/dist/features/catalogue/components/AdminCatalogueApprovalsView.d.ts +6 -1
  934. package/dist/features/catalogue/components/AdminCatalogueApprovalsView.js +3 -1
  935. package/dist/features/catalogue/components/CatalogueItemEditorView.d.ts +6 -1
  936. package/dist/features/catalogue/components/CatalogueItemEditorView.js +3 -2
  937. package/dist/features/catalogue/components/PublicCatalogueItemDetailView.d.ts +4 -1
  938. package/dist/features/catalogue/components/PublicCatalogueItemDetailView.js +4 -3
  939. package/dist/features/catalogue/components/PublicCatalogueView.js +1 -1
  940. package/dist/features/catalogue/components/UserCatalogueView.d.ts +4 -1
  941. package/dist/features/catalogue/components/UserCatalogueView.js +4 -3
  942. package/dist/features/catalogue/utils/product-from-item.d.ts +18 -2
  943. package/dist/features/catalogue/utils/product-from-item.js +23 -4
  944. package/dist/features/categories/api/[id]/description-template/route.js +1 -24
  945. package/dist/features/categories/api/[id]/price-guidance/route.js +6 -1
  946. package/dist/features/categories/api/[id]/route.js +20 -3
  947. package/dist/features/categories/api/route.js +1 -1
  948. package/dist/features/categories/components/BrandDetailPageView.d.ts +4 -1
  949. package/dist/features/categories/components/BrandDetailPageView.js +50 -10
  950. package/dist/features/categories/components/BrandDetailTabs.d.ts +12 -3
  951. package/dist/features/categories/components/BrandDetailTabs.js +10 -9
  952. package/dist/features/categories/components/BundleCollage.d.ts +1 -1
  953. package/dist/features/categories/components/BundleCollage.js +2 -2
  954. package/dist/features/categories/components/BundleDetailView.d.ts +4 -1
  955. package/dist/features/categories/components/BundleDetailView.js +4 -3
  956. package/dist/features/categories/components/BundleDynamicRuleEditor.d.ts +1 -1
  957. package/dist/features/categories/components/BundleDynamicRuleEditor.js +1 -1
  958. package/dist/features/categories/components/BundleItemsPicker.js +2 -1
  959. package/dist/features/categories/components/BundlesListView.d.ts +4 -1
  960. package/dist/features/categories/components/BundlesListView.js +3 -2
  961. package/dist/features/categories/components/CategoriesIndexListing.js +10 -3
  962. package/dist/features/categories/components/CategoriesIndexPageView.d.ts +4 -1
  963. package/dist/features/categories/components/CategoriesIndexPageView.js +3 -2
  964. package/dist/features/categories/components/CategoryBundlesListing.js +7 -3
  965. package/dist/features/categories/components/CategoryDetailPageView.d.ts +4 -1
  966. package/dist/features/categories/components/CategoryDetailPageView.js +135 -101
  967. package/dist/features/categories/components/CategoryDetailTabs.d.ts +12 -3
  968. package/dist/features/categories/components/CategoryDetailTabs.js +10 -10
  969. package/dist/features/categories/components/CategoryForm.js +2 -1
  970. package/dist/features/categories/components/CategoryGrid.js +1 -1
  971. package/dist/features/categories/components/CategoryProductsListing.d.ts +1 -1
  972. package/dist/features/categories/components/CategoryProductsListing.js +6 -5
  973. package/dist/features/categories/components/CategoryTableColumns.js +1 -1
  974. package/dist/features/categories/components/ConcernCard.js +1 -1
  975. package/dist/features/categories/components/ContextualTrail.d.ts +9 -2
  976. package/dist/features/categories/components/ContextualTrail.js +11 -3
  977. package/dist/features/categories/components/FranchiseDetailPageView.d.ts +4 -1
  978. package/dist/features/categories/components/FranchiseDetailPageView.js +24 -5
  979. package/dist/features/categories/components/FranchisesIndexView.d.ts +6 -1
  980. package/dist/features/categories/components/FranchisesIndexView.js +4 -3
  981. package/dist/features/categories/components/LastCategoryBeacon.js +2 -2
  982. package/dist/features/categories/components/SubcategoryCardRow.js +1 -1
  983. package/dist/features/categories/hooks/useCategorySelector.d.ts +1 -1
  984. package/dist/features/categories/hooks/useCategoryTree.js +1 -1
  985. package/dist/features/categories/repository/categories.repository.d.ts +43 -6
  986. package/dist/features/categories/repository/categories.repository.js +75 -22
  987. package/dist/features/categories/repository/price-index.repository.d.ts +2 -2
  988. package/dist/features/categories/schemas/bundle-form.d.ts +21 -21
  989. package/dist/features/categories/schemas/bundle-form.js +1 -1
  990. package/dist/features/categories/schemas/category-content.d.ts +3 -3
  991. package/dist/features/categories/schemas/category-counts.d.ts +5 -5
  992. package/dist/features/categories/schemas/category-counts.js +4 -4
  993. package/dist/features/categories/schemas/firestore.d.ts +36 -18
  994. package/dist/features/categories/schemas/firestore.js +9 -9
  995. package/dist/features/categories/schemas/index.d.ts +122 -116
  996. package/dist/features/categories/schemas/index.js +10 -6
  997. package/dist/features/categories/types/index.d.ts +13 -10
  998. package/dist/features/checkout/actions/checkout-value-otp-actions.js +9 -1
  999. package/dist/features/checkout/manifest.js +15 -6
  1000. package/dist/features/checkout/repository/buyer-policy-consent.repository.d.ts +44 -0
  1001. package/dist/features/checkout/repository/buyer-policy-consent.repository.js +66 -0
  1002. package/dist/features/checkout/schemas/firestore.d.ts +37 -0
  1003. package/dist/features/checkout/schemas/firestore.js +1 -0
  1004. package/dist/features/classified/components/ClassifiedDetailPageView.d.ts +4 -1
  1005. package/dist/features/classified/components/ClassifiedDetailPageView.js +35 -21
  1006. package/dist/features/collections/components/CollectionCard.js +1 -1
  1007. package/dist/features/collections/schemas/index.d.ts +4 -4
  1008. package/dist/features/collector-drops/actions/bid-actions.d.ts +50 -0
  1009. package/dist/features/collector-drops/actions/bid-actions.js +454 -0
  1010. package/dist/features/collector-drops/api/route.d.ts +14 -0
  1011. package/dist/features/collector-drops/api/route.js +62 -0
  1012. package/dist/features/collector-drops/columns/index.d.ts +14 -0
  1013. package/dist/features/collector-drops/columns/index.js +63 -0
  1014. package/dist/features/collector-drops/components/CollapsibleBidHistory.js +41 -0
  1015. package/dist/features/collector-drops/components/CollectorDropBidsTable.d.ts +27 -0
  1016. package/dist/features/collector-drops/components/CollectorDropBidsTable.js +96 -0
  1017. package/dist/features/collector-drops/components/CollectorDropBottomActions.d.ts +23 -0
  1018. package/dist/features/collector-drops/components/CollectorDropBottomActions.js +89 -0
  1019. package/dist/features/collector-drops/components/CollectorDropDetailPageView.d.ts +25 -0
  1020. package/dist/features/collector-drops/components/CollectorDropDetailPageView.js +314 -0
  1021. package/dist/features/collector-drops/components/CollectorDropFilters.d.ts +16 -0
  1022. package/dist/features/collector-drops/components/CollectorDropFilters.js +18 -0
  1023. package/dist/features/collector-drops/components/CollectorDropLiveStatusBadge.d.ts +20 -0
  1024. package/dist/features/collector-drops/components/CollectorDropLiveStatusBadge.js +21 -0
  1025. package/dist/features/collector-drops/components/CollectorDropsListView.d.ts +9 -0
  1026. package/dist/features/collector-drops/components/CollectorDropsListView.js +23 -0
  1027. package/dist/features/collector-drops/components/LiveBidPrice.d.ts +19 -0
  1028. package/dist/features/collector-drops/components/LiveBidPrice.js +19 -0
  1029. package/dist/features/collector-drops/components/LiveMinIncrement.d.ts +18 -0
  1030. package/dist/features/collector-drops/components/LiveMinIncrement.js +25 -0
  1031. package/dist/features/collector-drops/components/MarketplaceCollectorDropCard.d.ts +99 -0
  1032. package/dist/features/collector-drops/components/MarketplaceCollectorDropCard.js +212 -0
  1033. package/dist/features/collector-drops/components/MarketplaceCollectorDropGrid.d.ts +21 -0
  1034. package/dist/features/collector-drops/components/MarketplaceCollectorDropGrid.js +47 -0
  1035. package/dist/features/collector-drops/components/PlaceBidFormClient.d.ts +65 -0
  1036. package/dist/features/collector-drops/components/PlaceBidFormClient.js +306 -0
  1037. package/dist/features/collector-drops/components/bid-detail-fields.js +103 -0
  1038. package/dist/features/collector-drops/components/index.d.ts +7 -0
  1039. package/dist/features/collector-drops/components/index.js +5 -0
  1040. package/dist/features/collector-drops/hooks/useBids.d.ts +33 -0
  1041. package/dist/features/collector-drops/hooks/useBids.js +32 -0
  1042. package/dist/features/collector-drops/hooks/useCollectorDrops.d.ts +51 -0
  1043. package/dist/features/collector-drops/hooks/useCollectorDrops.js +105 -0
  1044. package/dist/features/collector-drops/hooks/useIsCollectorDropEnded.d.ts +41 -0
  1045. package/dist/features/collector-drops/hooks/useIsCollectorDropEnded.js +76 -0
  1046. package/dist/features/collector-drops/hooks/useLiveCollectorDropBid.d.ts +20 -0
  1047. package/dist/features/collector-drops/hooks/useLiveCollectorDropBid.js +23 -0
  1048. package/dist/features/collector-drops/hooks/usePlaceBid.d.ts +25 -0
  1049. package/dist/features/collector-drops/hooks/usePlaceBid.js +28 -0
  1050. package/dist/features/collector-drops/hooks/useRealtimeBids.d.ts +41 -0
  1051. package/dist/features/collector-drops/hooks/useRealtimeBids.js +170 -0
  1052. package/dist/features/collector-drops/index.d.ts +8 -0
  1053. package/dist/features/collector-drops/index.js +8 -0
  1054. package/dist/features/collector-drops/manifest.js +17 -0
  1055. package/dist/features/collector-drops/messages/en.json +18 -0
  1056. package/dist/features/collector-drops/repository/bid.repository.d.ts +256 -0
  1057. package/dist/features/collector-drops/repository/bid.repository.js +575 -0
  1058. package/dist/features/collector-drops/schemas/bid-input.d.ts +30 -0
  1059. package/dist/features/collector-drops/schemas/bid-input.js +28 -0
  1060. package/dist/features/collector-drops/schemas/firestore.d.ts +120 -0
  1061. package/dist/features/collector-drops/schemas/firestore.js +73 -0
  1062. package/dist/features/collector-drops/schemas/index.d.ts +170 -0
  1063. package/dist/features/collector-drops/schemas/index.js +64 -0
  1064. package/dist/features/collector-drops/server.d.ts +8 -0
  1065. package/dist/features/collector-drops/server.js +8 -0
  1066. package/dist/features/collector-drops/types/index.d.ts +74 -0
  1067. package/dist/features/consultation/schemas/index.d.ts +6 -6
  1068. package/dist/features/contact/components/ContactInfoSidebar.d.ts +3 -1
  1069. package/dist/features/contact/components/ContactInfoSidebar.js +3 -2
  1070. package/dist/features/contact/components/ContactPageView.d.ts +4 -1
  1071. package/dist/features/contact/components/ContactPageView.js +7 -6
  1072. package/dist/features/contact/email.d.ts +1 -1
  1073. package/dist/features/contact/email.js +11 -12
  1074. package/dist/features/contact/schemas/inquiry-forms.js +2 -2
  1075. package/dist/features/corporate/schemas/index.d.ts +5 -5
  1076. package/dist/features/cron/firebase-adapters.d.ts +3 -3
  1077. package/dist/features/cron/firebase-adapters.js +3 -3
  1078. package/dist/features/cron/index.d.ts +0 -1
  1079. package/dist/features/cron/index.js +9 -1
  1080. package/dist/features/cron/jobs/preorder-reminder.job.d.ts +1 -1
  1081. package/dist/features/cron/jobs/preorder-reminder.job.js +1 -1
  1082. package/dist/features/cron/registry.d.ts +4 -4
  1083. package/dist/features/cron/registry.js +4 -4
  1084. package/dist/features/dashboard/components/AdminComposableRegion.d.ts +49 -0
  1085. package/dist/features/dashboard/components/AdminComposableRegion.js +42 -0
  1086. package/dist/features/dashboard/components/DashboardCardRenderer.d.ts +73 -0
  1087. package/dist/features/dashboard/components/DashboardCardRenderer.js +434 -0
  1088. package/dist/features/dashboard/components/DashboardHubView.d.ts +19 -1
  1089. package/dist/features/dashboard/components/DashboardHubView.js +11 -6
  1090. package/dist/features/dashboard/components/DashboardQuickJump.d.ts +90 -0
  1091. package/dist/features/dashboard/components/DashboardQuickJump.js +255 -0
  1092. package/dist/features/dashboard/components/DashboardSectionsClient.js +7 -0
  1093. package/dist/features/dashboard/components/EditableWidget.d.ts +51 -0
  1094. package/dist/features/dashboard/components/EditableWidget.js +44 -0
  1095. package/dist/features/dashboard/components/HiddenHubCardGate.d.ts +25 -0
  1096. package/dist/features/dashboard/components/HiddenHubCardGate.js +44 -0
  1097. package/dist/features/dashboard/components/RecentVisitTracker.d.ts +35 -0
  1098. package/dist/features/dashboard/components/RecentVisitTracker.js +33 -0
  1099. package/dist/features/dashboard/components/WidgetInstanceEditor.d.ts +91 -0
  1100. package/dist/features/dashboard/components/WidgetInstanceEditor.js +91 -0
  1101. package/dist/features/dashboard/hooks/useHiddenHubCards.d.ts +9 -0
  1102. package/dist/features/dashboard/hooks/useHiddenHubCards.js +101 -0
  1103. package/dist/features/dashboard/hooks/usePageRegion.d.ts +27 -0
  1104. package/dist/features/dashboard/hooks/usePageRegion.js +106 -0
  1105. package/dist/features/dashboard/hooks/useRecentlyVisited.d.ts +9 -0
  1106. package/dist/features/dashboard/hooks/useRecentlyVisited.js +127 -0
  1107. package/dist/features/dashboard/hooks/useSavedCards.d.ts +23 -0
  1108. package/dist/features/dashboard/hooks/useSavedCards.js +147 -0
  1109. package/dist/features/digital-codes/components/DigitalCodeDetailPageView.d.ts +4 -1
  1110. package/dist/features/digital-codes/components/DigitalCodeDetailPageView.js +29 -13
  1111. package/dist/features/email/notification-templates.js +7 -8
  1112. package/dist/features/email/render-static-markup.d.ts +34 -0
  1113. package/dist/features/email/render-static-markup.js +4 -0
  1114. package/dist/features/events/actions/event-actions.d.ts +11 -3
  1115. package/dist/features/events/actions/event-actions.js +21 -11
  1116. package/dist/features/events/api/[id]/route.js +1 -1
  1117. package/dist/features/events/components/AdminEventEditorView.d.ts +6 -1
  1118. package/dist/features/events/components/AdminEventEditorView.js +81 -21
  1119. package/dist/features/events/components/AdminEventEntriesView.d.ts +4 -1
  1120. package/dist/features/events/components/AdminEventEntriesView.js +3 -2
  1121. package/dist/features/events/components/AdminEventsView.d.ts +6 -2
  1122. package/dist/features/events/components/AdminEventsView.js +5 -4
  1123. package/dist/features/events/components/BonusSpinView.d.ts +27 -0
  1124. package/dist/features/events/components/BonusSpinView.js +151 -0
  1125. package/dist/features/events/components/EventCard.js +1 -1
  1126. package/dist/features/events/components/EventFilters.js +13 -5
  1127. package/dist/features/events/components/EventGiveawayEntryForm.d.ts +24 -0
  1128. package/dist/features/events/components/EventGiveawayEntryForm.js +46 -0
  1129. package/dist/features/events/components/EventGiveawayWinnerView.d.ts +38 -0
  1130. package/dist/features/events/components/EventGiveawayWinnerView.js +40 -0
  1131. package/dist/features/events/components/EventGiveawaysSection.d.ts +48 -0
  1132. package/dist/features/events/components/EventGiveawaysSection.js +102 -0
  1133. package/dist/features/events/components/EventsIndexListing.js +7 -3
  1134. package/dist/features/events/components/EventsListPageView.d.ts +4 -1
  1135. package/dist/features/events/components/EventsListPageView.js +4 -2
  1136. package/dist/features/events/components/RelatedEventsCarousel.js +1 -1
  1137. package/dist/features/events/components/event-entry-detail-fields.d.ts +1 -1
  1138. package/dist/features/events/components/event-entry-detail-fields.js +1 -1
  1139. package/dist/features/events/components/index.d.ts +8 -8
  1140. package/dist/features/events/components/index.js +4 -4
  1141. package/dist/features/events/constants/event-type-meta.d.ts +14 -6
  1142. package/dist/features/events/constants/event-type-meta.js +40 -14
  1143. package/dist/features/events/manifest.js +31 -0
  1144. package/dist/features/events/repository/events.repository.js +1 -1
  1145. package/dist/features/events/schemas/event-form.d.ts +40 -10
  1146. package/dist/features/events/schemas/event-form.js +32 -1
  1147. package/dist/features/events/schemas/firestore.d.ts +55 -13
  1148. package/dist/features/events/schemas/firestore.js +15 -10
  1149. package/dist/features/events/schemas/index.d.ts +144 -133
  1150. package/dist/features/events/schemas/index.js +24 -11
  1151. package/dist/features/events/types/index.d.ts +32 -7
  1152. package/dist/features/events/types/index.js +45 -8
  1153. package/dist/features/events/utils/carousel-slide.d.ts +12 -14
  1154. package/dist/features/events/utils/carousel-slide.js +23 -26
  1155. package/dist/features/events/utils/event-charts.js +2 -1
  1156. package/dist/features/faq/actions/faq-actions.d.ts +197 -6
  1157. package/dist/features/faq/actions/faq-actions.js +79 -2
  1158. package/dist/features/faq/components/FAQAccordion.js +2 -1
  1159. package/dist/features/faq/manifest.js +9 -1
  1160. package/dist/features/faq/schemas/firestore.d.ts +26 -1
  1161. package/dist/features/faq/schemas/firestore.js +1 -0
  1162. package/dist/features/faq/schemas/index.d.ts +2 -2
  1163. package/dist/features/faq/utils/getHomepageFaqsCached.d.ts +9 -0
  1164. package/dist/features/faq/utils/getHomepageFaqsCached.js +21 -1
  1165. package/dist/features/faq/utils/resolveFaqAnswer.d.ts +9 -0
  1166. package/dist/features/faq/utils/resolveFaqAnswer.js +18 -0
  1167. package/dist/features/gateway-events/schemas/index.d.ts +2 -2
  1168. package/dist/features/giveaway/repository/giveaway-entry.repository.d.ts +48 -0
  1169. package/dist/features/giveaway/repository/giveaway-entry.repository.js +172 -0
  1170. package/dist/features/giveaway/schemas/config-write.d.ts +145 -0
  1171. package/dist/features/giveaway/schemas/config-write.js +199 -0
  1172. package/dist/features/giveaway/schemas/firestore.d.ts +77 -0
  1173. package/dist/features/giveaway/schemas/firestore.js +42 -0
  1174. package/dist/features/giveaway/schemas/zod.d.ts +113 -0
  1175. package/dist/features/giveaway/schemas/zod.js +39 -0
  1176. package/dist/features/giveaway/types/index.d.ts +72 -0
  1177. package/dist/features/giveaway/types/index.js +68 -0
  1178. package/dist/features/grouped/components/GroupedListingDetailView.d.ts +4 -1
  1179. package/dist/features/grouped/components/GroupedListingDetailView.js +4 -3
  1180. package/dist/features/grouped/components/GroupedListingEditorView.d.ts +10 -1
  1181. package/dist/features/grouped/components/GroupedListingEditorView.js +3 -2
  1182. package/dist/features/grouped/schemas/index.d.ts +2 -2
  1183. package/dist/features/history/repository/user-history.repository.d.ts +1 -1
  1184. package/dist/features/history/utils/guest-history.d.ts +1 -1
  1185. package/dist/features/homepage/actions/index.d.ts +0 -1
  1186. package/dist/features/homepage/actions/index.js +0 -1
  1187. package/dist/features/homepage/api/carousel/route.d.ts +12 -6
  1188. package/dist/features/homepage/api/carousel/route.js +15 -137
  1189. package/dist/features/homepage/components/AdSlot.js +1 -1
  1190. package/dist/features/homepage/components/AnnouncementBar.js +5 -3
  1191. package/dist/features/homepage/components/CTABannerSection.js +2 -2
  1192. package/dist/features/homepage/components/CollectionCardsSection.d.ts +2 -2
  1193. package/dist/features/homepage/components/CollectionCardsSection.js +4 -4
  1194. package/dist/features/homepage/components/CustomCardsSection.js +1 -1
  1195. package/dist/features/homepage/components/FeaturedCollectorDropsSection.d.ts +18 -0
  1196. package/dist/features/homepage/components/FeaturedCollectorDropsSection.js +12 -0
  1197. package/dist/features/homepage/components/GoogleReviewsSection.js +1 -1
  1198. package/dist/features/homepage/components/HeroCarousel.js +7 -6
  1199. package/dist/features/homepage/components/HomepageSectionBoundary.d.ts +1 -1
  1200. package/dist/features/homepage/components/HomepageSectionBoundary.js +1 -1
  1201. package/dist/features/homepage/components/MarketplaceHomepageView.d.ts +4 -1
  1202. package/dist/features/homepage/components/MarketplaceHomepageView.js +23 -32
  1203. package/dist/features/homepage/components/SectionCarousel.js +1 -1
  1204. package/dist/features/homepage/components/ShopByCategorySection.js +12 -2
  1205. package/dist/features/homepage/components/SocialPostCard.js +1 -1
  1206. package/dist/features/homepage/components/TrustFeaturesSection.js +11 -1
  1207. package/dist/features/homepage/components/WelcomeSection.d.ts +3 -1
  1208. package/dist/features/homepage/components/WelcomeSection.js +2 -2
  1209. package/dist/features/homepage/components/index.d.ts +2 -2
  1210. package/dist/features/homepage/components/index.js +1 -1
  1211. package/dist/features/homepage/constants/carousel.d.ts +8 -0
  1212. package/dist/features/homepage/constants/carousel.js +8 -0
  1213. package/dist/features/homepage/constants/section-copy.d.ts +2 -2
  1214. package/dist/features/homepage/constants/section-copy.js +5 -5
  1215. package/dist/features/homepage/hooks/homepage-query.js +2 -2
  1216. package/dist/features/homepage/hooks/useActiveAd.d.ts +1 -1
  1217. package/dist/features/homepage/hooks/useActiveAd.js +1 -1
  1218. package/dist/features/homepage/hooks/useFeaturedCollectorDrops.d.ts +15 -0
  1219. package/dist/features/homepage/hooks/useFeaturedCollectorDrops.js +49 -0
  1220. package/dist/features/homepage/index.d.ts +1 -1
  1221. package/dist/features/homepage/index.js +1 -1
  1222. package/dist/features/homepage/lib/section-gating.d.ts +1 -1
  1223. package/dist/features/homepage/lib/section-gating.js +1 -1
  1224. package/dist/features/homepage/lib/section-renderer.d.ts +11 -2
  1225. package/dist/features/homepage/lib/section-renderer.js +24 -13
  1226. package/dist/features/homepage/lib/slide-gating.d.ts +5 -5
  1227. package/dist/features/homepage/lib/slide-gating.js +6 -6
  1228. package/dist/features/homepage/repository/homepage-sections.repository.d.ts +1 -1
  1229. package/dist/features/homepage/schemas/firestore.d.ts +48 -169
  1230. package/dist/features/homepage/schemas/firestore.js +12 -57
  1231. package/dist/features/homepage/schemas/index.d.ts +2 -885
  1232. package/dist/features/homepage/schemas/index.js +7 -112
  1233. package/dist/features/homepage/server.d.ts +1 -3
  1234. package/dist/features/homepage/server.js +1 -3
  1235. package/dist/features/inventory/components/AdminMoveLedgerView.d.ts +6 -1
  1236. package/dist/features/inventory/components/AdminMoveLedgerView.js +3 -2
  1237. package/dist/features/inventory/components/AdminStorageBoxesView.d.ts +6 -1
  1238. package/dist/features/inventory/components/AdminStorageBoxesView.js +4 -3
  1239. package/dist/features/inventory/components/ReceiveStationView.d.ts +4 -1
  1240. package/dist/features/inventory/components/ReceiveStationView.js +3 -2
  1241. package/dist/features/jobs/actions/enqueue-job.d.ts +1 -1
  1242. package/dist/features/jobs/schemas/firestore.d.ts +1 -1
  1243. package/dist/features/layout/AppLayoutShell.d.ts +32 -1
  1244. package/dist/features/layout/AppLayoutShell.js +44 -14
  1245. package/dist/features/layout/AutoBreadcrumbs.js +6 -7
  1246. package/dist/features/layout/BottomActions.js +1 -1
  1247. package/dist/features/layout/BottomNavbar.d.ts +1 -1
  1248. package/dist/features/layout/BottomNavbar.js +1 -1
  1249. package/dist/features/layout/EditModeToggle.d.ts +8 -0
  1250. package/dist/features/layout/EditModeToggle.js +17 -0
  1251. package/dist/features/layout/LanguageSwitcher.d.ts +27 -0
  1252. package/dist/features/layout/LanguageSwitcher.js +28 -0
  1253. package/dist/features/layout/NavbarLayout.js +2 -2
  1254. package/dist/features/layout/SideActionDock.js +2 -2
  1255. package/dist/features/layout/SidebarLayout.js +11 -1
  1256. package/dist/features/layout/TitleBarLayout.d.ts +21 -1
  1257. package/dist/features/layout/TitleBarLayout.js +2 -2
  1258. package/dist/features/layout/index.d.ts +6 -6
  1259. package/dist/features/layout/index.js +3 -3
  1260. package/dist/features/live/components/LiveItemDetailPageView.d.ts +4 -1
  1261. package/dist/features/live/components/LiveItemDetailPageView.js +21 -3
  1262. package/dist/features/media/MediaPickerModal.js +1 -1
  1263. package/dist/features/media/hooks/useMedia.d.ts +1 -1
  1264. package/dist/features/media/index.d.ts +0 -8
  1265. package/dist/features/media/index.js +2 -5
  1266. package/dist/features/media/modals/ImageCropModal.d.ts +2 -8
  1267. package/dist/features/media/types/index.d.ts +4 -4
  1268. package/dist/features/media/upload/ImageUpload.js +1 -1
  1269. package/dist/features/media/upload/MediaUploadField.js +2 -2
  1270. package/dist/features/media/upload/MediaUploadList.js +2 -2
  1271. package/dist/features/media/upload/register-form-field-renderers.d.ts +1 -0
  1272. package/dist/features/media/upload/register-form-field-renderers.js +34 -0
  1273. package/dist/features/messages/components/ConversationThreadView.d.ts +4 -1
  1274. package/dist/features/messages/components/ConversationThreadView.js +4 -3
  1275. package/dist/features/messages/components/ConversationsInboxView.d.ts +6 -1
  1276. package/dist/features/messages/components/ConversationsInboxView.js +26 -3
  1277. package/dist/features/messages/schemas/firestore.d.ts +26 -3
  1278. package/dist/features/messages/schemas/firestore.js +10 -0
  1279. package/dist/features/obligations/constants/policies.js +71 -2
  1280. package/dist/features/obligations/schemas/firestore.d.ts +17 -1
  1281. package/dist/features/obligations/schemas/firestore.js +1 -0
  1282. package/dist/features/orders/actions/order-actions.js +39 -0
  1283. package/dist/features/orders/actions/refund-actions.js +3 -2
  1284. package/dist/features/orders/components/OrderPaymentSummary.js +1 -0
  1285. package/dist/features/orders/components/OrderProvenanceCard.js +11 -11
  1286. package/dist/features/orders/components/OrdersList.js +6 -4
  1287. package/dist/features/orders/components/RefundRequestView.d.ts +4 -1
  1288. package/dist/features/orders/components/RefundRequestView.js +18 -4
  1289. package/dist/features/orders/constants/order-lane-tabs.d.ts +3 -3
  1290. package/dist/features/orders/constants/order-lane-tabs.js +8 -8
  1291. package/dist/features/orders/hooks/useOrders.d.ts +2 -0
  1292. package/dist/features/orders/hooks/useOrders.js +7 -1
  1293. package/dist/features/orders/repository/orders.repository.js +4 -3
  1294. package/dist/features/orders/schemas/firestore.d.ts +197 -26
  1295. package/dist/features/orders/schemas/firestore.js +1 -1
  1296. package/dist/features/orders/schemas/index.d.ts +69 -29
  1297. package/dist/features/orders/schemas/index.js +19 -1
  1298. package/dist/features/orders/types/index.d.ts +45 -4
  1299. package/dist/features/orders/utils/order-splitter.d.ts +3 -3
  1300. package/dist/features/orders/utils/order-splitter.js +8 -8
  1301. package/dist/features/orders/utils/payment-proof-message.js +5 -2
  1302. package/dist/features/payments/repository/payout.repository.d.ts +80 -0
  1303. package/dist/features/payments/repository/payout.repository.js +116 -0
  1304. package/dist/features/payments/schemas/firestore.d.ts +29 -0
  1305. package/dist/features/payments/schemas/firestore.js +15 -0
  1306. package/dist/features/payments/schemas/index.d.ts +2 -2
  1307. package/dist/features/payments/types/index.d.ts +1 -1
  1308. package/dist/features/pre-orders/components/MarketplacePreorderCard.js +1 -1
  1309. package/dist/features/pre-orders/components/PreOrderActionsClient.d.ts +5 -0
  1310. package/dist/features/pre-orders/components/PreOrderActionsClient.js +8 -5
  1311. package/dist/features/pre-orders/components/PreOrderDetailPageView.d.ts +4 -1
  1312. package/dist/features/pre-orders/components/PreOrderDetailPageView.js +30 -10
  1313. package/dist/features/pre-orders/components/PreOrdersIndexListing.js +1 -1
  1314. package/dist/features/pre-orders/components/PreOrdersListView.d.ts +4 -1
  1315. package/dist/features/pre-orders/components/PreOrdersListView.js +3 -2
  1316. package/dist/features/pre-orders/schemas/index.d.ts +8 -8
  1317. package/dist/features/price-index/components/PriceIndexToolView.d.ts +4 -1
  1318. package/dist/features/price-index/components/PriceIndexToolView.js +12 -11
  1319. package/dist/features/price-index/lookup-target.js +1 -1
  1320. package/dist/features/pricing/components/AdminPricingView.js +2 -1
  1321. package/dist/features/print/components/BoxLabelPrintView.d.ts +4 -1
  1322. package/dist/features/print/components/BoxLabelPrintView.js +3 -2
  1323. package/dist/features/print/components/labels.js +2 -1
  1324. package/dist/features/products/actions/product-actions.d.ts +9 -9
  1325. package/dist/features/products/actions/product-actions.js +19 -19
  1326. package/dist/features/products/api/[id]/route.js +31 -10
  1327. package/dist/features/products/api/route.d.ts +2 -2
  1328. package/dist/features/products/api/route.js +11 -4
  1329. package/dist/features/products/columns/productTableColumns.js +1 -1
  1330. package/dist/features/products/components/ArtStickersListView.d.ts +4 -1
  1331. package/dist/features/products/components/ArtStickersListView.js +7 -6
  1332. package/dist/features/products/components/AvailabilityTabs.js +2 -2
  1333. package/dist/features/products/components/BidHistory.d.ts +3 -0
  1334. package/dist/features/products/components/BidHistory.js +3 -1
  1335. package/dist/features/products/components/CardStoreLine.d.ts +2 -2
  1336. package/dist/features/products/components/CardStoreLine.js +1 -1
  1337. package/dist/features/products/components/CityCollectiblesView.d.ts +4 -1
  1338. package/dist/features/products/components/CityCollectiblesView.js +4 -2
  1339. package/dist/features/products/components/ClearanceBottomActions.d.ts +6 -0
  1340. package/dist/features/products/components/ClearanceBottomActions.js +6 -0
  1341. package/dist/features/products/components/ClearanceCollage.d.ts +35 -0
  1342. package/dist/features/products/components/ClearanceCollage.js +91 -0
  1343. package/dist/features/products/components/ClearanceDetailPageView.d.ts +37 -0
  1344. package/dist/features/products/components/ClearanceDetailPageView.js +156 -0
  1345. package/dist/features/products/components/ClearanceEntryActions.d.ts +32 -0
  1346. package/dist/features/products/components/ClearanceEntryActions.js +104 -0
  1347. package/dist/features/products/components/ClearanceIndexListing.d.ts +8 -0
  1348. package/dist/features/products/components/ClearanceIndexListing.js +108 -0
  1349. package/dist/features/products/components/ClearanceItemsEditor.d.ts +13 -0
  1350. package/dist/features/products/components/ClearanceItemsEditor.js +101 -0
  1351. package/dist/features/products/components/ClearanceListingView.d.ts +18 -0
  1352. package/dist/features/products/components/ClearanceListingView.js +38 -0
  1353. package/dist/features/products/components/ClearanceSection.d.ts +15 -0
  1354. package/dist/features/products/components/ClearanceSection.js +49 -0
  1355. package/dist/features/products/components/ClearanceWinnerMappingView.d.ts +14 -0
  1356. package/dist/features/products/components/ClearanceWinnerMappingView.js +43 -0
  1357. package/dist/features/products/components/CollectorDropDetailView.d.ts +16 -0
  1358. package/dist/features/products/components/CollectorDropDetailView.js +13 -0
  1359. package/dist/features/products/components/CollectorDropsIndexListing.d.ts +8 -0
  1360. package/dist/features/products/components/CollectorDropsIndexListing.js +170 -0
  1361. package/dist/features/products/components/CompareOverlay.d.ts +2 -2
  1362. package/dist/features/products/components/CompareOverlay.js +5 -5
  1363. package/dist/features/products/components/CustomSectionTabContent.d.ts +1 -1
  1364. package/dist/features/products/components/CustomSectionTabContent.js +1 -1
  1365. package/dist/features/products/components/GroupMemberPicker.js +1 -1
  1366. package/dist/features/products/components/GroupSettingsPanel.d.ts +2 -2
  1367. package/dist/features/products/components/GroupSettingsPanel.js +4 -4
  1368. package/dist/features/products/components/ListingBottomActions.d.ts +4 -4
  1369. package/dist/features/products/components/ListingBottomActions.js +1 -1
  1370. package/dist/features/products/components/MakeOfferButton.js +2 -1
  1371. package/dist/features/products/components/MarketplaceBundleCard.js +1 -1
  1372. package/dist/features/products/components/MarketplaceClearanceCard.d.ts +34 -0
  1373. package/dist/features/products/components/MarketplaceClearanceCard.js +129 -0
  1374. package/dist/features/products/components/NonRefundableConsentModal.d.ts +1 -1
  1375. package/dist/features/products/components/NonRefundableConsentModal.js +2 -2
  1376. package/dist/features/products/components/PdpSectionJumpNav.d.ts +4 -0
  1377. package/dist/features/products/components/PdpSectionJumpNav.js +41 -0
  1378. package/dist/features/products/components/PlaceBidForm.d.ts +1 -1
  1379. package/dist/features/products/components/PrizeRevealModal.js +32 -8
  1380. package/dist/features/products/components/ProductDetailActions.js +1 -1
  1381. package/dist/features/products/components/ProductDetailPageView.d.ts +4 -1
  1382. package/dist/features/products/components/ProductDetailPageView.js +128 -98
  1383. package/dist/features/products/components/ProductFeatureBadges.js +10 -7
  1384. package/dist/features/products/components/ProductFilters.js +1 -1
  1385. package/dist/features/products/components/ProductForm.d.ts +1 -1
  1386. package/dist/features/products/components/ProductForm.js +20 -21
  1387. package/dist/features/products/components/ProductGalleryClient.js +1 -1
  1388. package/dist/features/products/components/ProductGradingTab.js +1 -1
  1389. package/dist/features/products/components/ProductGrid.d.ts +18 -1
  1390. package/dist/features/products/components/ProductGrid.js +91 -22
  1391. package/dist/features/products/components/ProductsIndexListing.d.ts +1 -1
  1392. package/dist/features/products/components/ProductsIndexListing.js +85 -18
  1393. package/dist/features/products/components/ProductsIndexPageView.d.ts +4 -1
  1394. package/dist/features/products/components/ProductsIndexPageView.js +12 -11
  1395. package/dist/features/products/components/RelatedItemsSection.d.ts +82 -2
  1396. package/dist/features/products/components/RelatedItemsSection.js +152 -9
  1397. package/dist/features/products/components/ShowGroupSection.js +30 -2
  1398. package/dist/features/products/components/SparesListView.d.ts +4 -1
  1399. package/dist/features/products/components/SparesListView.js +3 -2
  1400. package/dist/features/products/components/SublistingCarouselSection.js +1 -1
  1401. package/dist/features/products/components/TrustBadgeRow.d.ts +15 -0
  1402. package/dist/features/products/components/TrustBadgeRow.js +13 -0
  1403. package/dist/features/products/components/index.d.ts +16 -16
  1404. package/dist/features/products/components/index.js +9 -9
  1405. package/dist/features/products/config/listing-type-listing-config.js +1 -1
  1406. package/dist/features/products/constants/action-defs.d.ts +24 -25
  1407. package/dist/features/products/constants/action-defs.js +35 -36
  1408. package/dist/features/products/constants/card-badges.d.ts +3 -3
  1409. package/dist/features/products/constants/card-badges.js +3 -3
  1410. package/dist/features/products/constants/listing-tabs.d.ts +11 -5
  1411. package/dist/features/products/constants/listing-tabs.js +21 -22
  1412. package/dist/features/products/constants/preorder-window.d.ts +101 -0
  1413. package/dist/features/products/constants/preorder-window.js +172 -0
  1414. package/dist/features/products/constants/product-features.constants.js +3 -3
  1415. package/dist/features/products/constants/sieve.d.ts +4 -4
  1416. package/dist/features/products/constants/sieve.js +14 -14
  1417. package/dist/features/products/hooks/useProducts.js +1 -1
  1418. package/dist/features/products/hooks/useRelatedProducts.d.ts +2 -2
  1419. package/dist/features/products/hooks/useRelatedProducts.js +5 -5
  1420. package/dist/features/products/index.d.ts +1 -1
  1421. package/dist/features/products/index.js +3 -3
  1422. package/dist/features/products/messages/en.json +1 -1
  1423. package/dist/features/products/repository/category-assignment.js +2 -2
  1424. package/dist/features/products/repository/products.repository.d.ts +9 -6
  1425. package/dist/features/products/repository/products.repository.js +56 -30
  1426. package/dist/features/products/schemas/firestore.d.ts +81 -29
  1427. package/dist/features/products/schemas/firestore.js +84 -14
  1428. package/dist/features/products/schemas/index.d.ts +61 -40
  1429. package/dist/features/products/schemas/index.js +26 -10
  1430. package/dist/features/products/schemas/part-slots.d.ts +84 -0
  1431. package/dist/features/products/schemas/part-slots.js +231 -0
  1432. package/dist/features/products/schemas/product-features.d.ts +3 -3
  1433. package/dist/features/products/schemas/product-features.validators.d.ts +40 -40
  1434. package/dist/features/products/schemas/product-features.validators.js +3 -3
  1435. package/dist/features/products/schemas/surface-counts.d.ts +1 -1
  1436. package/dist/features/products/schemas/surface-counts.js +1 -1
  1437. package/dist/features/products/types/index.d.ts +7 -7
  1438. package/dist/features/products/utils/listing-badge-variant.d.ts +1 -1
  1439. package/dist/features/products/utils/listing-badge-variant.js +5 -6
  1440. package/dist/features/products/utils/listing-type.d.ts +6 -9
  1441. package/dist/features/products/utils/listing-type.js +30 -9
  1442. package/dist/features/promotions/actions/seller-coupon-actions.d.ts +2 -2
  1443. package/dist/features/promotions/actions/seller-coupon-actions.js +2 -2
  1444. package/dist/features/promotions/components/CouponCard.d.ts +1 -1
  1445. package/dist/features/promotions/components/CouponCard.js +3 -2
  1446. package/dist/features/promotions/components/CouponHelpDetails.js +2 -1
  1447. package/dist/features/promotions/components/CouponsIndexListing.js +3 -1
  1448. package/dist/features/promotions/constants/coupon-help.d.ts +1 -1
  1449. package/dist/features/promotions/constants/coupon-help.js +8 -1
  1450. package/dist/features/promotions/hooks/useCouponValidate.d.ts +1 -1
  1451. package/dist/features/promotions/repository/coupons.repository.d.ts +2 -5
  1452. package/dist/features/promotions/repository/coupons.repository.js +22 -11
  1453. package/dist/features/promotions/schemas/firestore.d.ts +11 -3
  1454. package/dist/features/promotions/schemas/index.d.ts +23 -23
  1455. package/dist/features/promotions/schemas/index.js +3 -3
  1456. package/dist/features/reviews/actions/review-actions.js +1 -1
  1457. package/dist/features/reviews/api/[id]/route.js +34 -10
  1458. package/dist/features/reviews/components/ReviewDetailPageView.d.ts +4 -1
  1459. package/dist/features/reviews/components/ReviewDetailPageView.js +29 -2
  1460. package/dist/features/reviews/components/ReviewDetailShell.js +2 -2
  1461. package/dist/features/reviews/components/ReviewModal.js +1 -1
  1462. package/dist/features/reviews/components/ReviewsIndexPageView.d.ts +4 -1
  1463. package/dist/features/reviews/components/ReviewsIndexPageView.js +4 -3
  1464. package/dist/features/reviews/components/ReviewsList.js +1 -1
  1465. package/dist/features/reviews/components/ReviewsListingPanel.d.ts +1 -1
  1466. package/dist/features/reviews/schemas/firestore.d.ts +1 -1
  1467. package/dist/features/reviews/schemas/index.d.ts +20 -20
  1468. package/dist/features/scams/actions/scam-actions.js +1 -1
  1469. package/dist/features/scams/components/ScamAwarenessModal.js +2 -1
  1470. package/dist/features/scams/components/ScamProfileView.d.ts +4 -1
  1471. package/dist/features/scams/components/ScamProfileView.js +9 -6
  1472. package/dist/features/scams/components/ScamRegistryView.d.ts +4 -1
  1473. package/dist/features/scams/components/ScamRegistryView.js +7 -4
  1474. package/dist/features/scams/constants/scam-types.d.ts +13 -1
  1475. package/dist/features/scams/constants/scam-types.js +67 -23
  1476. package/dist/features/scams/schemas/firestore.js +1 -1
  1477. package/dist/features/scams/schemas/index.d.ts +8 -8
  1478. package/dist/features/scams/schemas/report-form.d.ts +4 -4
  1479. package/dist/features/search/action-index/repository.d.ts +1 -1
  1480. package/dist/features/search/action-index/repository.js +1 -1
  1481. package/dist/features/search/action-index/settings-entries.js +6 -6
  1482. package/dist/features/search/components/Search.d.ts +1 -1
  1483. package/dist/features/search/components/Search.js +5 -1
  1484. package/dist/features/search/components/SearchFacetRail.js +2 -2
  1485. package/dist/features/search/components/SearchResultsPageView.js +2 -1
  1486. package/dist/features/search/hooks/useNavSuggestions.d.ts +1 -1
  1487. package/dist/features/search/hooks/useNavSuggestions.js +1 -1
  1488. package/dist/features/search/hooks/useSiteSearch.js +1 -1
  1489. package/dist/features/seller/actions/offer-actions.js +50 -12
  1490. package/dist/features/seller/actions/seller-actions.d.ts +19 -0
  1491. package/dist/features/seller/actions/seller-actions.js +163 -44
  1492. package/dist/features/seller/api/coupons/route.js +6 -1
  1493. package/dist/features/seller/api/products/route.js +6 -1
  1494. package/dist/features/seller/api/store/route.js +6 -1
  1495. package/dist/features/seller/components/DispatchForm.js +3 -2
  1496. package/dist/features/seller/components/FulfillmentView.d.ts +4 -1
  1497. package/dist/features/seller/components/FulfillmentView.js +3 -2
  1498. package/dist/features/seller/components/PrintCenterView.d.ts +4 -1
  1499. package/dist/features/seller/components/PrintCenterView.js +6 -3
  1500. package/dist/features/seller/components/SellerAddressesView.d.ts +4 -1
  1501. package/dist/features/seller/components/SellerAddressesView.js +3 -2
  1502. package/dist/features/seller/components/SellerAnalyticsAlertsView.d.ts +4 -1
  1503. package/dist/features/seller/components/SellerAnalyticsAlertsView.js +3 -2
  1504. package/dist/features/seller/components/SellerAnalyticsView.d.ts +4 -1
  1505. package/dist/features/seller/components/SellerAnalyticsView.js +3 -1
  1506. package/dist/features/seller/components/SellerArtAndStickersView.d.ts +18 -0
  1507. package/dist/features/seller/components/SellerArtAndStickersView.js +7 -0
  1508. package/dist/features/seller/components/SellerBidsView.d.ts +4 -1
  1509. package/dist/features/seller/components/SellerBidsView.js +9 -8
  1510. package/dist/features/seller/components/SellerBundlesView.d.ts +4 -1
  1511. package/dist/features/seller/components/SellerBundlesView.js +5 -3
  1512. package/dist/features/seller/components/SellerClassifiedView.d.ts +6 -2
  1513. package/dist/features/seller/components/SellerClassifiedView.js +4 -3
  1514. package/dist/features/seller/components/SellerCouponEditorView.d.ts +4 -1
  1515. package/dist/features/seller/components/SellerCouponEditorView.js +3 -2
  1516. package/dist/features/seller/components/SellerDigitalCodesView.d.ts +6 -2
  1517. package/dist/features/seller/components/SellerDigitalCodesView.js +4 -3
  1518. package/dist/features/seller/components/SellerFeaturesView.d.ts +6 -1
  1519. package/dist/features/seller/components/SellerFeaturesView.js +8 -3
  1520. package/dist/features/seller/components/SellerGoogleReviewsView.d.ts +4 -1
  1521. package/dist/features/seller/components/SellerGoogleReviewsView.js +3 -2
  1522. package/dist/features/seller/components/SellerGuideView.d.ts +11 -1
  1523. package/dist/features/seller/components/SellerGuideView.js +7 -2
  1524. package/dist/features/seller/components/SellerListingTypeView.d.ts +2 -2
  1525. package/dist/features/seller/components/SellerListingTypeView.js +14 -20
  1526. package/dist/features/seller/components/SellerLiveView.d.ts +6 -2
  1527. package/dist/features/seller/components/SellerLiveView.js +4 -3
  1528. package/dist/features/seller/components/SellerOffersView.d.ts +4 -1
  1529. package/dist/features/seller/components/SellerOffersView.js +4 -3
  1530. package/dist/features/seller/components/SellerOrdersView.d.ts +4 -1
  1531. package/dist/features/seller/components/SellerOrdersView.js +44 -47
  1532. package/dist/features/seller/components/SellerPayoutRequestView.d.ts +4 -1
  1533. package/dist/features/seller/components/SellerPayoutRequestView.js +3 -2
  1534. package/dist/features/seller/components/SellerPayoutSettingsView.js +127 -14
  1535. package/dist/features/seller/components/SellerProductShell.d.ts +3 -3
  1536. package/dist/features/seller/components/SellerProductShell.js +77 -28
  1537. package/dist/features/seller/components/SellerProductsCards.js +3 -3
  1538. package/dist/features/seller/components/SellerProductsView.js +24 -123
  1539. package/dist/features/seller/components/SellerReviewsView.d.ts +10 -1
  1540. package/dist/features/seller/components/SellerReviewsView.js +3 -2
  1541. package/dist/features/seller/components/SellerShippingOfferView.d.ts +5 -0
  1542. package/dist/features/seller/components/SellerShippingOfferView.js +164 -0
  1543. package/dist/features/seller/components/SellerShippingView.d.ts +4 -1
  1544. package/dist/features/seller/components/SellerShippingView.js +6 -5
  1545. package/dist/features/seller/components/SellerSidebar.js +29 -5
  1546. package/dist/features/seller/components/SellerSparesView.d.ts +6 -2
  1547. package/dist/features/seller/components/SellerSparesView.js +4 -3
  1548. package/dist/features/seller/components/SellerStoreCategoriesView.d.ts +4 -1
  1549. package/dist/features/seller/components/SellerStoreCategoriesView.js +3 -2
  1550. package/dist/features/seller/components/SellerStorefrontView.d.ts +4 -1
  1551. package/dist/features/seller/components/SellerStorefrontView.js +6 -5
  1552. package/dist/features/seller/components/SellerSupportView.d.ts +4 -1
  1553. package/dist/features/seller/components/SellerSupportView.js +3 -2
  1554. package/dist/features/seller/components/analytics/SellerAnalyticsStats.d.ts +8 -1
  1555. package/dist/features/seller/components/analytics/SellerAnalyticsStats.js +1 -1
  1556. package/dist/features/seller/components/index.d.ts +2 -4
  1557. package/dist/features/seller/components/index.js +1 -2
  1558. package/dist/features/seller/constants/store-tabs.d.ts +4 -0
  1559. package/dist/features/seller/constants/store-tabs.js +12 -0
  1560. package/dist/features/seller/hooks/useSellerStorefront.js +18 -1
  1561. package/dist/features/seller/repository/seller-profile.repository.d.ts +32 -0
  1562. package/dist/features/seller/repository/seller-profile.repository.js +98 -0
  1563. package/dist/features/seller/schemas/coupon-form.d.ts +15 -15
  1564. package/dist/features/seller/schemas/coupon-form.js +2 -2
  1565. package/dist/features/seller/schemas/index.d.ts +6 -6
  1566. package/dist/features/seller/schemas/product-form.d.ts +9 -9
  1567. package/dist/features/seller/schemas/product-form.js +4 -4
  1568. package/dist/features/seller/schemas/seller-profile-firestore.d.ts +48 -0
  1569. package/dist/features/seller/schemas/seller-profile-firestore.js +38 -0
  1570. package/dist/features/server-errors/schemas/index.d.ts +4 -4
  1571. package/dist/features/shell/CommandPalette.d.ts +53 -4
  1572. package/dist/features/shell/CommandPalette.js +144 -11
  1573. package/dist/features/shell/QuickFormDrawer.d.ts +2 -14
  1574. package/dist/features/shell/SectionForm.js +1 -1
  1575. package/dist/features/shell/SectionVisibilityGate.d.ts +36 -0
  1576. package/dist/features/shell/SectionVisibilityGate.js +46 -0
  1577. package/dist/features/shell/WizardFormSteps.d.ts +7 -0
  1578. package/dist/features/shell/WizardFormSteps.js +53 -0
  1579. package/dist/features/shell/build-sections.d.ts +95 -2
  1580. package/dist/features/shell/build-sections.js +177 -6
  1581. package/dist/features/shell/field-ui-meta.d.ts +69 -0
  1582. package/dist/features/shell/field-ui-meta.js +56 -0
  1583. package/dist/features/shell/index.d.ts +2 -0
  1584. package/dist/features/shell/index.js +1 -0
  1585. package/dist/features/shell/searchNavItems.d.ts +22 -0
  1586. package/dist/features/shell/searchNavItems.js +61 -0
  1587. package/dist/features/shell/useFieldVisibility.d.ts +43 -0
  1588. package/dist/features/shell/useFieldVisibility.js +126 -0
  1589. package/dist/features/shipments/components/AdminShipmentEditorView.d.ts +6 -1
  1590. package/dist/features/shipments/components/AdminShipmentEditorView.js +3 -2
  1591. package/dist/features/shipments/components/AdminShipmentLotItemsView.d.ts +4 -1
  1592. package/dist/features/shipments/components/AdminShipmentLotItemsView.js +3 -2
  1593. package/dist/features/shipments/components/AdminShipmentProjectionsView.d.ts +6 -1
  1594. package/dist/features/shipments/components/AdminShipmentProjectionsView.js +3 -9
  1595. package/dist/features/shipments/components/AdminShipmentsView.d.ts +6 -2
  1596. package/dist/features/shipments/components/AdminShipmentsView.js +5 -4
  1597. package/dist/features/shipments/schemas/validation.d.ts +19 -19
  1598. package/dist/features/shipments/schemas/validation.js +3 -4
  1599. package/dist/features/site-settings/components/ActionPermissionsManager.js +21 -9
  1600. package/dist/features/site-settings/components/NavPermissionsManager.d.ts +20 -1
  1601. package/dist/features/site-settings/components/NavPermissionsManager.js +82 -6
  1602. package/dist/features/site-settings/components/ThemeManagerView.js +22 -2
  1603. package/dist/features/sticker-trace/components/StickerRunHistoryPanel.d.ts +8 -1
  1604. package/dist/features/sticker-trace/components/StickerRunHistoryPanel.js +43 -11
  1605. package/dist/features/sticker-trace/components/StickerTraceStudio.js +34 -13
  1606. package/dist/features/sticker-trace/repository/sticker-sheets.repository.d.ts +1 -1
  1607. package/dist/features/sticker-trace/repository/sticker-sheets.repository.js +1 -1
  1608. package/dist/features/sticker-trace/repository/sticker-trace-runs.repository.d.ts +8 -0
  1609. package/dist/features/sticker-trace/repository/sticker-trace-runs.repository.js +15 -0
  1610. package/dist/features/store-extensions/repository/store-extensions.repositories.d.ts +32 -5
  1611. package/dist/features/store-extensions/repository/store-extensions.repositories.js +62 -7
  1612. package/dist/features/store-extensions/schemas/admin-notification-form.d.ts +2 -2
  1613. package/dist/features/store-extensions/schemas/analytics-forms.d.ts +2 -2
  1614. package/dist/features/store-extensions/schemas/firestore.d.ts +34 -5
  1615. package/dist/features/store-extensions/schemas/firestore.js +23 -4
  1616. package/dist/features/store-extensions/schemas/listing-template-form.d.ts +10 -10
  1617. package/dist/features/store-extensions/schemas/listing-template-form.js +3 -4
  1618. package/dist/features/store-extensions/schemas/payout-method-form.d.ts +10 -10
  1619. package/dist/features/store-extensions/schemas/report-create-form.d.ts +2 -2
  1620. package/dist/features/store-extensions/schemas/shipping-config-form.d.ts +33 -20
  1621. package/dist/features/store-extensions/schemas/shipping-config-form.js +11 -0
  1622. package/dist/features/store-extensions/schemas/store-category-form.d.ts +6 -6
  1623. package/dist/features/stores/actions/store-query-actions.d.ts +2 -2
  1624. package/dist/features/stores/actions/store-query-actions.js +5 -5
  1625. package/dist/features/stores/api/[storeSlug]/collector-drops/route.d.ts +23 -0
  1626. package/dist/features/stores/api/[storeSlug]/collector-drops/route.js +83 -0
  1627. package/dist/features/stores/api/[storeSlug]/products/route.d.ts +1 -1
  1628. package/dist/features/stores/api/[storeSlug]/products/route.js +1 -1
  1629. package/dist/features/stores/components/InteractiveStoreCard.js +1 -1
  1630. package/dist/features/stores/components/StoreArtStickersPageView.d.ts +4 -1
  1631. package/dist/features/stores/components/StoreArtStickersPageView.js +6 -5
  1632. package/dist/features/stores/components/StoreBundlesPageView.d.ts +5 -2
  1633. package/dist/features/stores/components/StoreBundlesPageView.js +5 -4
  1634. package/dist/features/stores/components/StoreCapabilitiesGuideView.d.ts +6 -2
  1635. package/dist/features/stores/components/StoreCapabilitiesGuideView.js +13 -11
  1636. package/dist/features/stores/components/StoreClassifiedsPageView.d.ts +4 -1
  1637. package/dist/features/stores/components/StoreClassifiedsPageView.js +4 -3
  1638. package/dist/features/stores/components/StoreClearancePageView.d.ts +11 -0
  1639. package/dist/features/stores/components/StoreClearancePageView.js +25 -0
  1640. package/dist/features/stores/components/StoreCollectorDropsListing.d.ts +7 -0
  1641. package/dist/features/stores/components/StoreCollectorDropsListing.js +138 -0
  1642. package/dist/features/stores/components/StoreCollectorDropsPageView.d.ts +11 -0
  1643. package/dist/features/stores/components/StoreCollectorDropsPageView.js +25 -0
  1644. package/dist/features/stores/components/StoreCollectorDropsView.d.ts +17 -0
  1645. package/dist/features/stores/components/StoreCollectorDropsView.js +5 -0
  1646. package/dist/features/stores/components/StoreCreateForm.js +16 -2
  1647. package/dist/features/stores/components/StoreDetailLayoutView.d.ts +1 -1
  1648. package/dist/features/stores/components/StoreDetailLayoutView.js +7 -1
  1649. package/dist/features/stores/components/StoreDigitalCodesPageView.d.ts +4 -1
  1650. package/dist/features/stores/components/StoreDigitalCodesPageView.js +4 -3
  1651. package/dist/features/stores/components/StoreFinanceGuideView.d.ts +6 -2
  1652. package/dist/features/stores/components/StoreFinanceGuideView.js +9 -7
  1653. package/dist/features/stores/components/StoreGuideHubView.d.ts +4 -1
  1654. package/dist/features/stores/components/StoreGuideHubView.js +7 -4
  1655. package/dist/features/stores/components/StoreHeader.js +1 -1
  1656. package/dist/features/stores/components/StoreListingsGuideView.d.ts +6 -2
  1657. package/dist/features/stores/components/StoreListingsGuideView.js +14 -12
  1658. package/dist/features/stores/components/StoreLiveItemsPageView.d.ts +4 -1
  1659. package/dist/features/stores/components/StoreLiveItemsPageView.js +4 -3
  1660. package/dist/features/stores/components/StoreNavTabs.d.ts +1 -1
  1661. package/dist/features/stores/components/StoreOrdersGuideView.d.ts +6 -2
  1662. package/dist/features/stores/components/StoreOrdersGuideView.js +11 -9
  1663. package/dist/features/stores/components/StorePreOrdersPageView.d.ts +4 -1
  1664. package/dist/features/stores/components/StorePreOrdersPageView.js +4 -3
  1665. package/dist/features/stores/components/StoreProductsPageView.d.ts +12 -1
  1666. package/dist/features/stores/components/StoreProductsPageView.js +4 -3
  1667. package/dist/features/stores/components/StoreReviewsPageView.d.ts +4 -1
  1668. package/dist/features/stores/components/StoreReviewsPageView.js +4 -3
  1669. package/dist/features/stores/components/StoreSettingsGuideView.d.ts +6 -2
  1670. package/dist/features/stores/components/StoreSettingsGuideView.js +5 -3
  1671. package/dist/features/stores/components/StoreSparesPageView.d.ts +4 -1
  1672. package/dist/features/stores/components/StoreSparesPageView.js +10 -9
  1673. package/dist/features/stores/components/StoresIndexListing.js +16 -11
  1674. package/dist/features/stores/components/StoresIndexPageView.d.ts +10 -1
  1675. package/dist/features/stores/components/StoresIndexPageView.js +3 -2
  1676. package/dist/features/stores/components/index.d.ts +5 -5
  1677. package/dist/features/stores/components/index.js +2 -2
  1678. package/dist/features/stores/hooks/useStores.d.ts +4 -4
  1679. package/dist/features/stores/hooks/useStores.js +4 -4
  1680. package/dist/features/stores/manifest.js +3 -3
  1681. package/dist/features/stores/messages/en.json +1 -1
  1682. package/dist/features/stores/repository/store.repository.d.ts +80 -0
  1683. package/dist/features/stores/repository/store.repository.js +98 -0
  1684. package/dist/features/stores/schemas/firestore.d.ts +193 -1
  1685. package/dist/features/stores/schemas/firestore.js +66 -0
  1686. package/dist/features/stores/schemas/index.d.ts +16 -16
  1687. package/dist/features/stores/server.d.ts +1 -1
  1688. package/dist/features/stores/server.js +1 -1
  1689. package/dist/features/stores/types/index.d.ts +5 -5
  1690. package/dist/features/support/schemas/firestore.d.ts +1 -1
  1691. package/dist/features/support/schemas/firestore.js +1 -1
  1692. package/dist/features/support/schemas/index.d.ts +12 -12
  1693. package/dist/features/support/schemas/index.js +1 -1
  1694. package/dist/features/tax-codes/schemas/tax-code-form.d.ts +4 -4
  1695. package/dist/features/tax-codes/schemas/tax-codes.validators.d.ts +4 -4
  1696. package/dist/features/tax-codes/schemas/tax-codes.validators.js +1 -1
  1697. package/dist/features/tester/actions/checklist-item-actions.d.ts +3 -3
  1698. package/dist/features/tester/components/AdminTesterFeedbackIssuesView.js +1 -1
  1699. package/dist/features/tester/components/AdminTesterFeedbackView.d.ts +6 -1
  1700. package/dist/features/tester/components/AdminTesterFeedbackView.js +3 -2
  1701. package/dist/features/tester/schemas/checklist-item-form.d.ts +2 -2
  1702. package/dist/features/whatsapp-bot/components/SellerWhatsAppSettingsView.d.ts +5 -2
  1703. package/dist/features/whatsapp-bot/components/SellerWhatsAppSettingsView.js +5 -3
  1704. package/dist/features/whatsapp-bot/helpers/whatsapp.js +5 -2
  1705. package/dist/features/wishlist/components/WishlistHeartButton.d.ts +2 -2
  1706. package/dist/features/wishlist/components/WishlistHeartButton.js +2 -2
  1707. package/dist/features/wishlist/components/WishlistPage.js +1 -1
  1708. package/dist/features/wishlist/components/WishlistView.d.ts +1 -1
  1709. package/dist/features/wishlist/hooks/useGuestWishlist.d.ts +6 -6
  1710. package/dist/features/wishlist/hooks/useUserWishlist.d.ts +1 -1
  1711. package/dist/features/wishlist/hooks/useWishlistCount.js +1 -1
  1712. package/dist/features/wishlist/hooks/useWishlistWithGuest.d.ts +6 -6
  1713. package/dist/features/wishlist/repository/user-wishlist.repository.d.ts +1 -1
  1714. package/dist/features/wishlist/utils/guest-wishlist.d.ts +14 -5
  1715. package/dist/index.d.ts +182 -202
  1716. package/dist/index.js +284 -232
  1717. package/dist/jobs.d.ts +1 -1
  1718. package/dist/jobs.js +3 -3
  1719. package/dist/next/api/api-response.d.ts +1 -1
  1720. package/dist/next/api/parseJsonBody.d.ts +1 -1
  1721. package/dist/next/api/routeHandler.d.ts +5 -0
  1722. package/dist/next/api/routeHandler.js +24 -2
  1723. package/dist/next/components/UnauthorizedView.d.ts +4 -1
  1724. package/dist/next/components/UnauthorizedView.js +3 -2
  1725. package/dist/next/index.d.ts +3 -1
  1726. package/dist/next/index.js +5 -1
  1727. package/dist/next/routing/portals.d.ts +266 -0
  1728. package/dist/next/routing/portals.js +379 -0
  1729. package/dist/next/routing/route-map.d.ts +114 -71
  1730. package/dist/next/routing/route-map.js +137 -45
  1731. package/dist/providers/ai-groq/index.d.ts +18 -0
  1732. package/dist/providers/ai-groq/index.js +241 -0
  1733. package/dist/providers/auth-firebase/claims.d.ts +85 -0
  1734. package/dist/providers/auth-firebase/claims.js +116 -0
  1735. package/dist/providers/auth-firebase/helpers.d.ts +6 -1
  1736. package/dist/providers/auth-firebase/helpers.js +26 -2
  1737. package/dist/providers/auth-firebase/provider.js +9 -4
  1738. package/dist/providers/auth-firebase/session.js +32 -1
  1739. package/dist/providers/db-firebase/admin.d.ts +24 -1
  1740. package/dist/providers/db-firebase/admin.js +29 -5
  1741. package/dist/providers/db-firebase/base.repository.d.ts +1 -1
  1742. package/dist/providers/db-firebase/filter-aliases.d.ts +2 -2
  1743. package/dist/providers/db-firebase/rtdb-url.js +1 -1
  1744. package/dist/providers/db-firebase/sieve.js +2 -2
  1745. package/dist/providers/payment-cashfree/easy-split.d.ts +119 -0
  1746. package/dist/providers/payment-cashfree/easy-split.js +206 -0
  1747. package/dist/providers/payment-cashfree/index.d.ts +341 -0
  1748. package/dist/providers/payment-cashfree/index.js +714 -0
  1749. package/dist/providers/payment-manual/index.d.ts +11 -0
  1750. package/dist/providers/payment-manual/index.js +13 -0
  1751. package/dist/providers/payment-phonepe/index.d.ts +24 -8
  1752. package/dist/providers/payment-phonepe/index.js +29 -1
  1753. package/dist/providers/payment-razorpay/index.d.ts +14 -1
  1754. package/dist/providers/payment-razorpay/index.js +21 -1
  1755. package/dist/providers/shipping-shiprocket/index.d.ts +40 -5
  1756. package/dist/providers/shipping-shiprocket/index.js +49 -5
  1757. package/dist/providers/tax-india-gst/index.d.ts +45 -0
  1758. package/dist/providers/tax-india-gst/index.js +78 -0
  1759. package/dist/providers.d.ts +3 -0
  1760. package/dist/providers.js +5 -0
  1761. package/dist/react/contexts/SessionContext.d.ts +18 -2
  1762. package/dist/react/contexts/SessionContext.js +23 -1
  1763. package/dist/react/hooks/useBrowsePageFlags.d.ts +2 -2
  1764. package/dist/react/hooks/useBrowsePageFlags.js +11 -5
  1765. package/dist/react/hooks/useCanSeePrices.js +1 -1
  1766. package/dist/react/hooks/useCountdown.d.ts +1 -1
  1767. package/dist/react/hooks/useCountdown.js +1 -1
  1768. package/dist/react/hooks/useListingSurfaceVisibility.js +12 -2
  1769. package/dist/react/hooks/useListingTypeFlags.d.ts +62 -8
  1770. package/dist/react/hooks/useListingTypeFlags.js +14 -7
  1771. package/dist/react/hooks/useScrollToTop.d.ts +5 -0
  1772. package/dist/react/hooks/useScrollToTop.js +70 -0
  1773. package/dist/repositories/index.d.ts +3 -4
  1774. package/dist/repositories/index.js +4 -5
  1775. package/dist/schemas/registry.d.ts +320 -899
  1776. package/dist/schemas/registry.js +7 -7
  1777. package/dist/schemas/sieve.d.ts +2 -2
  1778. package/dist/schemas/webhooks/google-oauth.d.ts +4 -4
  1779. package/dist/security/authorization.d.ts +27 -5
  1780. package/dist/security/authorization.js +53 -13
  1781. package/dist/security/index.d.ts +1 -1
  1782. package/dist/security/index.js +1 -1
  1783. package/dist/security/pii-mask.d.ts +1 -1
  1784. package/dist/security/pii-mask.js +1 -1
  1785. package/dist/security/pii-schemas.d.ts +26 -2
  1786. package/dist/security/pii-schemas.js +26 -2
  1787. package/dist/seo/json-ld.d.ts +6 -6
  1788. package/dist/seo/json-ld.js +32 -11
  1789. package/dist/seo/metadata.d.ts +3 -3
  1790. package/dist/seo/metadata.js +7 -7
  1791. package/dist/server-entry.d.ts +13 -13
  1792. package/dist/server-entry.js +54 -15
  1793. package/dist/server.d.ts +79 -46
  1794. package/dist/server.js +158 -74
  1795. package/dist/stores/panel-store.d.ts +1 -1
  1796. package/dist/styles.css +380 -183
  1797. package/dist/tailwind-utilities.css +1 -1
  1798. package/dist/tokens/contrast.d.ts +61 -0
  1799. package/dist/tokens/contrast.js +128 -0
  1800. package/dist/tokens/themes/cobalt-night.js +10 -3
  1801. package/dist/tokens/themes/default-dark.d.ts +5 -4
  1802. package/dist/tokens/themes/default-dark.js +48 -40
  1803. package/dist/tokens/themes/default-light.d.ts +5 -5
  1804. package/dist/tokens/themes/default-light.js +64 -36
  1805. package/dist/tokens/themes/required.d.ts +1 -1
  1806. package/dist/tokens/themes/required.js +40 -0
  1807. package/dist/tokens/themes/sunset.js +14 -2
  1808. package/dist/tokens/tokens.css +117 -85
  1809. package/dist/ui/chrome/BottomActionsContext.d.ts +190 -0
  1810. package/dist/ui/chrome/BottomActionsContext.js +198 -0
  1811. package/dist/ui/chrome/useBottomActions.d.ts +37 -0
  1812. package/dist/ui/chrome/useBottomActions.js +86 -0
  1813. package/dist/ui/columns/cell-renderers.d.ts +10 -5
  1814. package/dist/ui/columns/cell-renderers.js +9 -7
  1815. package/dist/ui/columns/column-renderers.js +13 -4
  1816. package/dist/ui/components/AdminFilterFacets.d.ts +37 -0
  1817. package/dist/ui/components/AdminFilterFacets.js +126 -0
  1818. package/dist/ui/components/Avatar.js +1 -1
  1819. package/dist/ui/components/AvatarDisplay.d.ts +1 -1
  1820. package/dist/ui/components/BaseListingCard.js +1 -1
  1821. package/dist/ui/components/Button.js +2 -13
  1822. package/dist/ui/components/Button.style.css +91 -0
  1823. package/dist/ui/components/Card.d.ts +1 -1
  1824. package/dist/ui/components/Card.js +0 -9
  1825. package/dist/ui/components/Card.style.css +0 -70
  1826. package/dist/ui/components/ClaimCouponButton.d.ts +1 -1
  1827. package/dist/ui/components/ConfirmDeleteModal.d.ts +1 -1
  1828. package/dist/ui/components/ConfirmDeleteModal.js +2 -18
  1829. package/dist/ui/components/ConfirmDeleteModal.style.css +53 -1
  1830. package/dist/ui/components/DetailPageGallery.d.ts +1 -1
  1831. package/dist/ui/components/DetailPageGallery.js +2 -2
  1832. package/dist/ui/components/DetailPageHero.d.ts +1 -1
  1833. package/dist/ui/components/DetailPageHero.js +1 -1
  1834. package/dist/ui/components/DetailPageTabs.d.ts +1 -1
  1835. package/dist/ui/components/DetailPageTabs.js +1 -1
  1836. package/dist/ui/components/DetailViewShell.d.ts +27 -2
  1837. package/dist/ui/components/DetailViewShell.js +5 -1
  1838. package/dist/ui/components/Disclaimer.js +11 -2
  1839. package/dist/ui/components/Drawer.js +19 -2
  1840. package/dist/ui/components/FilterChipGroup.d.ts +2 -2
  1841. package/dist/ui/components/Form.js +1 -1
  1842. package/dist/ui/components/FormField.d.ts +19 -2
  1843. package/dist/ui/components/FormField.js +88 -21
  1844. package/dist/ui/components/GatedPrice.d.ts +1 -1
  1845. package/dist/ui/components/GatedPrice.js +1 -1
  1846. package/dist/ui/components/ImageGallery.js +1 -1
  1847. package/dist/ui/components/ImageLightbox.js +5 -2
  1848. package/dist/ui/components/ImageMosaic.js +1 -1
  1849. package/dist/ui/components/ListingToolbar.d.ts +56 -1
  1850. package/dist/ui/components/ListingToolbar.js +54 -4
  1851. package/dist/ui/components/LiveEditableRegion.d.ts +29 -0
  1852. package/dist/ui/components/LiveEditableRegion.js +54 -0
  1853. package/dist/ui/components/MediaAvatar.js +13 -0
  1854. package/dist/ui/components/MediaImage.d.ts +116 -0
  1855. package/dist/ui/components/MediaImage.js +194 -0
  1856. package/dist/ui/components/MediaLightbox.js +246 -0
  1857. package/dist/ui/components/MediaVideo.js +141 -0
  1858. package/dist/ui/components/Modal.d.ts +1 -1
  1859. package/dist/ui/components/Modal.js +18 -47
  1860. package/dist/ui/components/Modal.style.css +43 -0
  1861. package/dist/ui/components/PaginatedSelect.d.ts +1 -1
  1862. package/dist/ui/components/QuickCreateModal.js +4 -1
  1863. package/dist/ui/components/RecordDetailModal.js +1 -1
  1864. package/dist/ui/components/RowActionMenu.js +11 -51
  1865. package/dist/ui/components/RowActionMenu.style.css +64 -10
  1866. package/dist/ui/components/SideDrawer.style.css +11 -16
  1867. package/dist/ui/components/SiteLogo.d.ts +20 -2
  1868. package/dist/ui/components/SiteLogo.js +29 -7
  1869. package/dist/ui/components/SiteMark.d.ts +1 -1
  1870. package/dist/ui/components/SiteMark.js +22 -7
  1871. package/dist/ui/components/SpecTable.d.ts +1 -1
  1872. package/dist/ui/components/SplitTile.js +1 -1
  1873. package/dist/ui/components/dialog-shell.d.ts +32 -0
  1874. package/dist/ui/components/dialog-shell.js +23 -0
  1875. package/dist/ui/components/form-field-registry.d.ts +43 -0
  1876. package/dist/ui/components/form-field-registry.js +7 -0
  1877. package/dist/ui/components/surface-tokens.d.ts +6 -2
  1878. package/dist/ui/components/surface-tokens.js +3 -1
  1879. package/dist/ui/design-pack.d.ts +21 -0
  1880. package/dist/ui/design-pack.js +47 -0
  1881. package/dist/ui/forms/FormShell.js +14 -1
  1882. package/dist/ui/forms/useFormBottomActions.d.ts +78 -0
  1883. package/dist/ui/forms/useFormBottomActions.js +128 -0
  1884. package/dist/ui/icons/icon-registry.d.ts +6 -1
  1885. package/dist/ui/icons/icon-registry.js +12 -3
  1886. package/dist/ui/rich-text/RichText.js +35 -8
  1887. package/dist/ui/types/image-crop.d.ts +8 -0
  1888. package/dist/ui/types/quick-field.d.ts +33 -0
  1889. package/dist/ui/widgets/index.d.ts +7 -0
  1890. package/dist/ui/widgets/index.js +3 -0
  1891. package/dist/ui/widgets/merge.d.ts +85 -0
  1892. package/dist/ui/widgets/merge.js +162 -0
  1893. package/dist/ui/widgets/pilot-registry.d.ts +104 -0
  1894. package/dist/ui/widgets/pilot-registry.js +305 -0
  1895. package/dist/ui/widgets/resolve.d.ts +109 -0
  1896. package/dist/ui/widgets/resolve.js +442 -0
  1897. package/dist/ui/widgets/types.d.ts +252 -0
  1898. package/dist/ui/widgets/types.js +45 -0
  1899. package/dist/utils/date.formatter.d.ts +20 -0
  1900. package/dist/utils/date.formatter.js +25 -0
  1901. package/dist/utils/id-generators.d.ts +5 -5
  1902. package/dist/utils/id-generators.js +14 -10
  1903. package/dist/utils/listing-params.d.ts +1 -1
  1904. package/dist/utils/listing-params.js +1 -1
  1905. package/dist/utils/number.formatter.d.ts +47 -0
  1906. package/dist/utils/number.formatter.js +79 -1
  1907. package/dist/utils/pack-by-span.d.ts +21 -0
  1908. package/dist/utils/pack-by-span.js +84 -0
  1909. package/dist/utils/search-txt-builders.d.ts +2 -2
  1910. package/dist/utils/search-txt-builders.js +1 -1
  1911. package/dist/validation/phone.validator.d.ts +0 -1
  1912. package/dist/validation/phone.validator.js +17 -3
  1913. package/dist/validation/schemas.d.ts +17 -17
  1914. package/package.json +86 -10
  1915. package/scripts/dedupe-peer-deps.mjs +17 -0
  1916. package/scripts/seed-cli.mjs +33 -16
  1917. package/scripts/sieve-audit.mjs +14 -14
  1918. package/dist/_internal/client/features/lottery/LotteryAdminEditView.d.ts +0 -66
  1919. package/dist/_internal/client/features/lottery/LotteryAdminEditView.js +0 -187
  1920. package/dist/_internal/client/features/lottery/LotteryAdminSlotView.d.ts +0 -15
  1921. package/dist/_internal/client/features/lottery/LotteryAdminSlotView.js +0 -50
  1922. package/dist/_internal/client/features/lottery/LotteryDetailView.d.ts +0 -37
  1923. package/dist/_internal/client/features/lottery/LotteryDetailView.js +0 -48
  1924. package/dist/_internal/client/features/lottery/LotteryEntriesView.d.ts +0 -24
  1925. package/dist/_internal/client/features/lottery/LotteryEntriesView.js +0 -63
  1926. package/dist/_internal/client/features/lottery/LotteryListView.d.ts +0 -29
  1927. package/dist/_internal/client/features/lottery/LotteryListView.js +0 -44
  1928. package/dist/_internal/client/features/lottery/LotteryPullForm.d.ts +0 -31
  1929. package/dist/_internal/client/features/lottery/LotteryPullForm.js +0 -94
  1930. package/dist/_internal/client/features/lottery/LotterySlotGrid.d.ts +0 -14
  1931. package/dist/_internal/client/features/lottery/LotterySlotGrid.js +0 -23
  1932. package/dist/_internal/client/features/lottery/PrizeDrawLotteryDetailView.d.ts +0 -29
  1933. package/dist/_internal/client/features/lottery/PrizeDrawLotteryDetailView.js +0 -28
  1934. package/dist/_internal/client/features/lottery/slot-collage-items.d.ts +0 -15
  1935. package/dist/_internal/client/features/lottery/slot-collage-items.js +0 -13
  1936. package/dist/_internal/server/features/auctions/actions.js +0 -76
  1937. package/dist/_internal/server/features/auctions/data.d.ts +0 -2
  1938. package/dist/_internal/server/features/auctions/data.js +0 -3
  1939. package/dist/_internal/server/features/auctions/index.d.ts +0 -5
  1940. package/dist/_internal/server/features/auctions/index.js +0 -5
  1941. package/dist/_internal/server/features/auctions/og.d.ts +0 -22
  1942. package/dist/_internal/server/features/auctions/og.js +0 -30
  1943. package/dist/_internal/server/features/auctions/service.d.ts +0 -20
  1944. package/dist/_internal/server/features/auctions/service.js +0 -65
  1945. package/dist/_internal/server/features/beys/data.d.ts +0 -44
  1946. package/dist/_internal/server/features/beys/data.js +0 -107
  1947. package/dist/_internal/server/features/beys/og.d.ts +0 -42
  1948. package/dist/_internal/server/features/beys/og.js +0 -89
  1949. package/dist/_internal/server/features/checkout/freeze-parts.d.ts +0 -50
  1950. package/dist/_internal/server/features/checkout/freeze-parts.js +0 -94
  1951. package/dist/_internal/server/features/lottery/actions.d.ts +0 -43
  1952. package/dist/_internal/server/features/lottery/actions.js +0 -365
  1953. package/dist/_internal/server/features/lottery/adapters.d.ts +0 -15
  1954. package/dist/_internal/server/features/lottery/adapters.js +0 -31
  1955. package/dist/_internal/server/features/lottery/data.d.ts +0 -19
  1956. package/dist/_internal/server/features/lottery/data.js +0 -41
  1957. package/dist/_internal/server/features/lottery/metadata.d.ts +0 -6
  1958. package/dist/_internal/server/features/lottery/metadata.js +0 -31
  1959. package/dist/_internal/server/features/lottery/og.d.ts +0 -40
  1960. package/dist/_internal/server/features/lottery/og.js +0 -79
  1961. package/dist/_internal/server/features/parts/assembly.d.ts +0 -126
  1962. package/dist/_internal/server/features/parts/assembly.js +0 -246
  1963. package/dist/_internal/server/features/parts/buildable.d.ts +0 -47
  1964. package/dist/_internal/server/features/parts/buildable.js +0 -159
  1965. package/dist/_internal/server/features/parts/data.d.ts +0 -65
  1966. package/dist/_internal/server/features/parts/data.js +0 -171
  1967. package/dist/_internal/server/features/parts/og.d.ts +0 -34
  1968. package/dist/_internal/server/features/parts/og.js +0 -66
  1969. package/dist/_internal/server/features/prize-draws/actions.d.ts +0 -2
  1970. package/dist/_internal/server/features/prize-draws/actions.js +0 -33
  1971. package/dist/_internal/server/features/prize-draws/data.d.ts +0 -1
  1972. package/dist/_internal/server/features/prize-draws/data.js +0 -2
  1973. package/dist/_internal/server/features/prize-draws/index.d.ts +0 -4
  1974. package/dist/_internal/server/features/prize-draws/index.js +0 -4
  1975. package/dist/_internal/server/features/prize-draws/og.d.ts +0 -32
  1976. package/dist/_internal/server/features/prize-draws/og.js +0 -47
  1977. package/dist/_internal/server/features/prize-draws/service.d.ts +0 -3
  1978. package/dist/_internal/server/features/prize-draws/service.js +0 -19
  1979. package/dist/_internal/server/jobs/core/auctionSettlement.d.ts +0 -2
  1980. package/dist/_internal/server/jobs/core/auctionSettlement.js +0 -240
  1981. package/dist/_internal/server/jobs/core/onPrizeDrawPaymentConfirmed.d.ts +0 -19
  1982. package/dist/_internal/server/jobs/core/onPrizeDrawPaymentConfirmed.js +0 -30
  1983. package/dist/_internal/server/jobs/core/prizeDrawAssignWinner.d.ts +0 -20
  1984. package/dist/_internal/server/jobs/core/prizeDrawAssignWinner.js +0 -114
  1985. package/dist/_internal/server/jobs/core/prizeDrawExpiryReveal.d.ts +0 -14
  1986. package/dist/_internal/server/jobs/core/prizeDrawExpiryReveal.js +0 -71
  1987. package/dist/_internal/server/jobs/core/prizeDrawSoldOutReveal.d.ts +0 -22
  1988. package/dist/_internal/server/jobs/core/prizeDrawSoldOutReveal.js +0 -67
  1989. package/dist/_internal/server/jobs/handlers/auctionSettlement.d.ts +0 -2
  1990. package/dist/_internal/server/jobs/handlers/auctionSettlement.js +0 -2
  1991. package/dist/_internal/server/jobs/handlers/onPrizeDrawPaymentConfirmed.d.ts +0 -3
  1992. package/dist/_internal/server/jobs/handlers/onPrizeDrawPaymentConfirmed.js +0 -11
  1993. package/dist/_internal/server/jobs/handlers/prizeDrawExpiryReveal.d.ts +0 -2
  1994. package/dist/_internal/server/jobs/handlers/prizeDrawExpiryReveal.js +0 -2
  1995. package/dist/_internal/server/jobs/handlers/prizeDrawSoldOutReveal.d.ts +0 -3
  1996. package/dist/_internal/server/jobs/handlers/prizeDrawSoldOutReveal.js +0 -4
  1997. package/dist/_internal/shared/checkout/rules/art.rule.d.ts +0 -9
  1998. package/dist/_internal/shared/checkout/rules/art.rule.js +0 -5
  1999. package/dist/_internal/shared/checkout/rules/auction.rule.d.ts +0 -2
  2000. package/dist/_internal/shared/checkout/rules/auction.rule.js +0 -19
  2001. package/dist/_internal/shared/checkout/rules/prize-draw.rule.d.ts +0 -2
  2002. package/dist/_internal/shared/checkout/rules/prize-draw.rule.js +0 -112
  2003. package/dist/_internal/shared/checkout/rules/stickers.rule.d.ts +0 -9
  2004. package/dist/_internal/shared/checkout/rules/stickers.rule.js +0 -5
  2005. package/dist/_internal/shared/features/auctions/config.d.ts +0 -100
  2006. package/dist/_internal/shared/features/auctions/config.js +0 -136
  2007. package/dist/_internal/shared/features/auctions/errors.d.ts +0 -16
  2008. package/dist/_internal/shared/features/auctions/errors.js +0 -31
  2009. package/dist/_internal/shared/features/auctions/schema.d.ts +0 -42
  2010. package/dist/_internal/shared/features/auctions/schema.js +0 -24
  2011. package/dist/_internal/shared/listing-types/art/config.d.ts +0 -74
  2012. package/dist/_internal/shared/listing-types/art/config.js +0 -36
  2013. package/dist/_internal/shared/listing-types/art/ctas.js +0 -3
  2014. package/dist/_internal/shared/listing-types/art/schema.d.ts +0 -2
  2015. package/dist/_internal/shared/listing-types/art/schema.js +0 -3
  2016. package/dist/_internal/shared/listing-types/auction/config.d.ts +0 -84
  2017. package/dist/_internal/shared/listing-types/auction/config.js +0 -58
  2018. package/dist/_internal/shared/listing-types/auction/schema.d.ts +0 -3
  2019. package/dist/_internal/shared/listing-types/auction/schema.js +0 -7
  2020. package/dist/_internal/shared/listing-types/prize-draw/config.d.ts +0 -73
  2021. package/dist/_internal/shared/listing-types/prize-draw/config.js +0 -45
  2022. package/dist/_internal/shared/listing-types/prize-draw/schema.d.ts +0 -3
  2023. package/dist/_internal/shared/listing-types/prize-draw/schema.js +0 -13
  2024. package/dist/_internal/shared/listing-types/stickers/config.d.ts +0 -74
  2025. package/dist/_internal/shared/listing-types/stickers/config.js +0 -36
  2026. package/dist/_internal/shared/listing-types/stickers/ctas.d.ts +0 -1
  2027. package/dist/_internal/shared/listing-types/stickers/ctas.js +0 -3
  2028. package/dist/_internal/shared/listing-types/stickers/schema.d.ts +0 -2
  2029. package/dist/_internal/shared/listing-types/stickers/schema.js +0 -3
  2030. package/dist/_internal/shared/listing-types/stickers/seed-factory.d.ts +0 -1
  2031. package/dist/_internal/shared/listing-types/stickers/seed-factory.js +0 -1
  2032. package/dist/features/about/components/HowAuctionsWorkView.d.ts +0 -3
  2033. package/dist/features/about/components/HowAuctionsWorkView.js +0 -104
  2034. package/dist/features/account/components/BuyerAuctionsGuideView.d.ts +0 -2
  2035. package/dist/features/account/components/BuyerAuctionsGuideView.js +0 -45
  2036. package/dist/features/admin/components/AdminArtView.d.ts +0 -13
  2037. package/dist/features/admin/components/AdminArtView.js +0 -31
  2038. package/dist/features/admin/components/AdminBeysView.d.ts +0 -27
  2039. package/dist/features/admin/components/AdminBeysView.js +0 -180
  2040. package/dist/features/admin/components/AdminCarouselEditorView.d.ts +0 -9
  2041. package/dist/features/admin/components/AdminCarouselEditorView.js +0 -299
  2042. package/dist/features/admin/components/AdminCarouselGroupEditorView.d.ts +0 -14
  2043. package/dist/features/admin/components/AdminCarouselGroupEditorView.js +0 -96
  2044. package/dist/features/admin/components/AdminCarouselView.d.ts +0 -6
  2045. package/dist/features/admin/components/AdminCarouselView.js +0 -273
  2046. package/dist/features/admin/components/AdminPartsView.d.ts +0 -27
  2047. package/dist/features/admin/components/AdminPartsView.js +0 -162
  2048. package/dist/features/admin/components/AdminPrizeDrawsView.d.ts +0 -4
  2049. package/dist/features/admin/components/AdminPrizeDrawsView.js +0 -155
  2050. package/dist/features/admin/components/AdminStickersView.d.ts +0 -13
  2051. package/dist/features/admin/components/AdminStickersView.js +0 -31
  2052. package/dist/features/auctions/actions/bid-actions.d.ts +0 -50
  2053. package/dist/features/auctions/actions/bid-actions.js +0 -454
  2054. package/dist/features/auctions/api/route.d.ts +0 -14
  2055. package/dist/features/auctions/api/route.js +0 -62
  2056. package/dist/features/auctions/columns/index.d.ts +0 -14
  2057. package/dist/features/auctions/columns/index.js +0 -63
  2058. package/dist/features/auctions/components/AuctionBidsTable.d.ts +0 -27
  2059. package/dist/features/auctions/components/AuctionBidsTable.js +0 -96
  2060. package/dist/features/auctions/components/AuctionBottomActions.d.ts +0 -23
  2061. package/dist/features/auctions/components/AuctionBottomActions.js +0 -89
  2062. package/dist/features/auctions/components/AuctionDetailPageView.d.ts +0 -22
  2063. package/dist/features/auctions/components/AuctionDetailPageView.js +0 -246
  2064. package/dist/features/auctions/components/AuctionFilters.d.ts +0 -16
  2065. package/dist/features/auctions/components/AuctionFilters.js +0 -18
  2066. package/dist/features/auctions/components/AuctionLiveStatusBadge.d.ts +0 -20
  2067. package/dist/features/auctions/components/AuctionLiveStatusBadge.js +0 -21
  2068. package/dist/features/auctions/components/AuctionsListView.d.ts +0 -6
  2069. package/dist/features/auctions/components/AuctionsListView.js +0 -22
  2070. package/dist/features/auctions/components/CollapsibleBidHistory.js +0 -34
  2071. package/dist/features/auctions/components/LiveBidPrice.d.ts +0 -19
  2072. package/dist/features/auctions/components/LiveBidPrice.js +0 -19
  2073. package/dist/features/auctions/components/LiveMinIncrement.d.ts +0 -18
  2074. package/dist/features/auctions/components/LiveMinIncrement.js +0 -25
  2075. package/dist/features/auctions/components/MarketplaceAuctionCard.d.ts +0 -99
  2076. package/dist/features/auctions/components/MarketplaceAuctionCard.js +0 -212
  2077. package/dist/features/auctions/components/MarketplaceAuctionGrid.d.ts +0 -21
  2078. package/dist/features/auctions/components/MarketplaceAuctionGrid.js +0 -47
  2079. package/dist/features/auctions/components/PlaceBidFormClient.d.ts +0 -65
  2080. package/dist/features/auctions/components/PlaceBidFormClient.js +0 -306
  2081. package/dist/features/auctions/components/bid-detail-fields.js +0 -103
  2082. package/dist/features/auctions/components/index.d.ts +0 -7
  2083. package/dist/features/auctions/components/index.js +0 -5
  2084. package/dist/features/auctions/hooks/useAuctions.d.ts +0 -51
  2085. package/dist/features/auctions/hooks/useAuctions.js +0 -105
  2086. package/dist/features/auctions/hooks/useBids.d.ts +0 -33
  2087. package/dist/features/auctions/hooks/useBids.js +0 -32
  2088. package/dist/features/auctions/hooks/useIsAuctionEnded.d.ts +0 -41
  2089. package/dist/features/auctions/hooks/useIsAuctionEnded.js +0 -76
  2090. package/dist/features/auctions/hooks/useLiveAuctionBid.d.ts +0 -20
  2091. package/dist/features/auctions/hooks/useLiveAuctionBid.js +0 -23
  2092. package/dist/features/auctions/hooks/usePlaceBid.d.ts +0 -25
  2093. package/dist/features/auctions/hooks/usePlaceBid.js +0 -28
  2094. package/dist/features/auctions/hooks/useRealtimeBids.d.ts +0 -41
  2095. package/dist/features/auctions/hooks/useRealtimeBids.js +0 -170
  2096. package/dist/features/auctions/index.d.ts +0 -8
  2097. package/dist/features/auctions/index.js +0 -8
  2098. package/dist/features/auctions/manifest.js +0 -17
  2099. package/dist/features/auctions/messages/en.json +0 -18
  2100. package/dist/features/auctions/repository/bid.repository.d.ts +0 -256
  2101. package/dist/features/auctions/repository/bid.repository.js +0 -575
  2102. package/dist/features/auctions/schemas/bid-input.d.ts +0 -30
  2103. package/dist/features/auctions/schemas/bid-input.js +0 -28
  2104. package/dist/features/auctions/schemas/firestore.d.ts +0 -120
  2105. package/dist/features/auctions/schemas/firestore.js +0 -73
  2106. package/dist/features/auctions/schemas/index.d.ts +0 -170
  2107. package/dist/features/auctions/schemas/index.js +0 -64
  2108. package/dist/features/auctions/server.d.ts +0 -8
  2109. package/dist/features/auctions/server.js +0 -8
  2110. package/dist/features/auctions/types/index.d.ts +0 -74
  2111. package/dist/features/beys/components/BeyDetailPageView.d.ts +0 -50
  2112. package/dist/features/beys/components/BeyDetailPageView.js +0 -104
  2113. package/dist/features/beys/schemas/firestore.d.ts +0 -417
  2114. package/dist/features/beys/schemas/firestore.js +0 -65
  2115. package/dist/features/cron/jobs/auction-expiry.job.d.ts +0 -27
  2116. package/dist/features/cron/jobs/auction-expiry.job.js +0 -43
  2117. package/dist/features/events/components/EventRaffleEntryForm.d.ts +0 -24
  2118. package/dist/features/events/components/EventRaffleEntryForm.js +0 -46
  2119. package/dist/features/events/components/EventRaffleWinnerView.d.ts +0 -35
  2120. package/dist/features/events/components/EventRaffleWinnerView.js +0 -39
  2121. package/dist/features/events/components/EventRafflesSection.d.ts +0 -42
  2122. package/dist/features/events/components/EventRafflesSection.js +0 -96
  2123. package/dist/features/events/components/SpinWheelView.d.ts +0 -27
  2124. package/dist/features/events/components/SpinWheelView.js +0 -151
  2125. package/dist/features/homepage/actions/carousel-actions.d.ts +0 -38
  2126. package/dist/features/homepage/actions/carousel-actions.js +0 -54
  2127. package/dist/features/homepage/api/carousel/[id]/route.d.ts +0 -23
  2128. package/dist/features/homepage/api/carousel/[id]/route.js +0 -125
  2129. package/dist/features/homepage/components/FeaturedAuctionsSection.d.ts +0 -18
  2130. package/dist/features/homepage/components/FeaturedAuctionsSection.js +0 -12
  2131. package/dist/features/homepage/hooks/useFeaturedAuctions.d.ts +0 -15
  2132. package/dist/features/homepage/hooks/useFeaturedAuctions.js +0 -49
  2133. package/dist/features/homepage/repository/carousel.repository.d.ts +0 -100
  2134. package/dist/features/homepage/repository/carousel.repository.js +0 -258
  2135. package/dist/features/homepage/repository/carousels.repository.d.ts +0 -38
  2136. package/dist/features/homepage/repository/carousels.repository.js +0 -149
  2137. package/dist/features/layout/BottomActionsContext.d.ts +0 -173
  2138. package/dist/features/layout/BottomActionsContext.js +0 -175
  2139. package/dist/features/layout/hooks/useBottomActions.d.ts +0 -37
  2140. package/dist/features/layout/hooks/useBottomActions.js +0 -86
  2141. package/dist/features/layout/hooks/useFormBottomActions.d.ts +0 -78
  2142. package/dist/features/layout/hooks/useFormBottomActions.js +0 -128
  2143. package/dist/features/lottery/repository/lottery-entry.repository.d.ts +0 -48
  2144. package/dist/features/lottery/repository/lottery-entry.repository.js +0 -172
  2145. package/dist/features/lottery/schemas/config-write.d.ts +0 -145
  2146. package/dist/features/lottery/schemas/config-write.js +0 -199
  2147. package/dist/features/lottery/schemas/firestore.d.ts +0 -77
  2148. package/dist/features/lottery/schemas/firestore.js +0 -25
  2149. package/dist/features/lottery/schemas/zod.d.ts +0 -113
  2150. package/dist/features/lottery/schemas/zod.js +0 -39
  2151. package/dist/features/lottery/types/index.d.ts +0 -72
  2152. package/dist/features/lottery/types/index.js +0 -68
  2153. package/dist/features/media/MediaAvatar.js +0 -13
  2154. package/dist/features/media/MediaImage.d.ts +0 -116
  2155. package/dist/features/media/MediaImage.js +0 -194
  2156. package/dist/features/media/MediaLightbox.js +0 -246
  2157. package/dist/features/media/MediaVideo.js +0 -140
  2158. package/dist/features/parts/components/AssemblyDrawer.d.ts +0 -107
  2159. package/dist/features/parts/components/AssemblyDrawer.js +0 -257
  2160. package/dist/features/parts/components/ModelCompositionPanel.d.ts +0 -37
  2161. package/dist/features/parts/components/ModelCompositionPanel.js +0 -38
  2162. package/dist/features/parts/components/PartDetailPageView.d.ts +0 -61
  2163. package/dist/features/parts/components/PartDetailPageView.js +0 -123
  2164. package/dist/features/parts/components/PartsIndexPageView.d.ts +0 -42
  2165. package/dist/features/parts/components/PartsIndexPageView.js +0 -29
  2166. package/dist/features/parts/components/PartsSearchBox.d.ts +0 -9
  2167. package/dist/features/parts/components/PartsSearchBox.js +0 -136
  2168. package/dist/features/parts/schemas/admin-edit.d.ts +0 -81
  2169. package/dist/features/parts/schemas/admin-edit.js +0 -89
  2170. package/dist/features/parts/schemas/firestore.d.ts +0 -925
  2171. package/dist/features/parts/schemas/firestore.js +0 -384
  2172. package/dist/features/parts/utils/colourway-match.d.ts +0 -62
  2173. package/dist/features/parts/utils/colourway-match.js +0 -98
  2174. package/dist/features/parts/utils/part-breakdown.d.ts +0 -53
  2175. package/dist/features/parts/utils/part-breakdown.js +0 -77
  2176. package/dist/features/products/components/AuctionDetailView.d.ts +0 -16
  2177. package/dist/features/products/components/AuctionDetailView.js +0 -13
  2178. package/dist/features/products/components/AuctionsIndexListing.d.ts +0 -8
  2179. package/dist/features/products/components/AuctionsIndexListing.js +0 -170
  2180. package/dist/features/products/components/MarketplacePrizeDrawCard.d.ts +0 -34
  2181. package/dist/features/products/components/MarketplacePrizeDrawCard.js +0 -129
  2182. package/dist/features/products/components/PrizeDrawBottomActions.d.ts +0 -6
  2183. package/dist/features/products/components/PrizeDrawBottomActions.js +0 -6
  2184. package/dist/features/products/components/PrizeDrawCollage.d.ts +0 -35
  2185. package/dist/features/products/components/PrizeDrawCollage.js +0 -90
  2186. package/dist/features/products/components/PrizeDrawDetailPageView.d.ts +0 -27
  2187. package/dist/features/products/components/PrizeDrawDetailPageView.js +0 -136
  2188. package/dist/features/products/components/PrizeDrawEntryActions.d.ts +0 -32
  2189. package/dist/features/products/components/PrizeDrawEntryActions.js +0 -104
  2190. package/dist/features/products/components/PrizeDrawItemsEditor.d.ts +0 -13
  2191. package/dist/features/products/components/PrizeDrawItemsEditor.js +0 -101
  2192. package/dist/features/products/components/PrizeDrawWinnerMappingView.d.ts +0 -14
  2193. package/dist/features/products/components/PrizeDrawWinnerMappingView.js +0 -43
  2194. package/dist/features/products/components/PrizeDrawsIndexListing.d.ts +0 -8
  2195. package/dist/features/products/components/PrizeDrawsIndexListing.js +0 -108
  2196. package/dist/features/products/components/PrizeDrawsListingView.d.ts +0 -15
  2197. package/dist/features/products/components/PrizeDrawsListingView.js +0 -37
  2198. package/dist/features/products/components/PrizeDrawsSection.d.ts +0 -15
  2199. package/dist/features/products/components/PrizeDrawsSection.js +0 -49
  2200. package/dist/features/seller/components/SellerArtView.d.ts +0 -15
  2201. package/dist/features/seller/components/SellerArtView.js +0 -6
  2202. package/dist/features/seller/components/SellerStickersView.d.ts +0 -15
  2203. package/dist/features/seller/components/SellerStickersView.js +0 -6
  2204. package/dist/features/stores/api/[storeSlug]/auctions/route.d.ts +0 -23
  2205. package/dist/features/stores/api/[storeSlug]/auctions/route.js +0 -83
  2206. package/dist/features/stores/components/StoreAuctionsListing.d.ts +0 -7
  2207. package/dist/features/stores/components/StoreAuctionsListing.js +0 -138
  2208. package/dist/features/stores/components/StoreAuctionsPageView.d.ts +0 -8
  2209. package/dist/features/stores/components/StoreAuctionsPageView.js +0 -24
  2210. package/dist/features/stores/components/StoreAuctionsView.d.ts +0 -17
  2211. package/dist/features/stores/components/StoreAuctionsView.js +0 -5
  2212. package/dist/features/stores/components/StorePrizeDrawsPageView.d.ts +0 -8
  2213. package/dist/features/stores/components/StorePrizeDrawsPageView.js +0 -24
  2214. /package/dist/_internal/server/features/{auctions → collector-drops}/actions.d.ts +0 -0
  2215. /package/dist/_internal/shared/listing-types/{art → art-and-stickers}/ctas.d.ts +0 -0
  2216. /package/dist/_internal/shared/listing-types/{art → art-and-stickers}/og.d.ts +0 -0
  2217. /package/dist/_internal/shared/listing-types/{art → art-and-stickers}/og.js +0 -0
  2218. /package/dist/_internal/shared/listing-types/{art → art-and-stickers}/seed-factory.d.ts +0 -0
  2219. /package/dist/_internal/shared/listing-types/{art → art-and-stickers}/seed-factory.js +0 -0
  2220. /package/dist/_internal/shared/listing-types/{auction → clearance}/ctas.d.ts +0 -0
  2221. /package/dist/_internal/shared/listing-types/{auction → clearance}/ctas.js +0 -0
  2222. /package/dist/_internal/shared/listing-types/{auction → clearance}/og.d.ts +0 -0
  2223. /package/dist/_internal/shared/listing-types/{auction → clearance}/og.js +0 -0
  2224. /package/dist/_internal/shared/listing-types/{auction → clearance}/seed-factory.d.ts +0 -0
  2225. /package/dist/_internal/shared/listing-types/{auction → clearance}/seed-factory.js +0 -0
  2226. /package/dist/_internal/shared/listing-types/{prize-draw → collector-drop}/ctas.d.ts +0 -0
  2227. /package/dist/_internal/shared/listing-types/{prize-draw → collector-drop}/ctas.js +0 -0
  2228. /package/dist/_internal/shared/listing-types/{prize-draw → collector-drop}/og.d.ts +0 -0
  2229. /package/dist/_internal/shared/listing-types/{prize-draw → collector-drop}/og.js +0 -0
  2230. /package/dist/_internal/shared/listing-types/{prize-draw → collector-drop}/seed-factory.d.ts +0 -0
  2231. /package/dist/_internal/shared/listing-types/{prize-draw → collector-drop}/seed-factory.js +0 -0
  2232. /package/dist/features/{auctions → collector-drops}/actions/index.d.ts +0 -0
  2233. /package/dist/features/{auctions → collector-drops}/actions/index.js +0 -0
  2234. /package/dist/features/{auctions → collector-drops}/components/CollapsibleBidHistory.d.ts +0 -0
  2235. /package/dist/features/{auctions → collector-drops}/components/bid-detail-fields.d.ts +0 -0
  2236. /package/dist/features/{auctions → collector-drops}/manifest.d.ts +0 -0
  2237. /package/dist/features/{auctions → collector-drops}/types/index.js +0 -0
  2238. /package/dist/{features/media → ui/components}/MediaAvatar.d.ts +0 -0
  2239. /package/dist/{features/media → ui/components}/MediaLightbox.d.ts +0 -0
  2240. /package/dist/{features/media → ui/components}/MediaVideo.d.ts +0 -0
  2241. /package/dist/{_internal/shared/listing-types/stickers/og.d.ts → ui/types/image-crop.js} +0 -0
  2242. /package/dist/{_internal/shared/listing-types/stickers/og.js → ui/types/quick-field.js} +0 -0
@@ -25,8 +25,6 @@ const CLS_BUNDLE_LABEL = "text-[length:var(--appkit-text-xs)] text-success dark:
25
25
  const CLS_BUNDLE_CTA = "flex-shrink-0 rounded-lg bg-success-solid hover:brightness-110 px-[var(--appkit-space-3)] py-[var(--appkit-space-1-5)] text-[length:var(--appkit-text-xs)] font-semibold text-success-on-solid transition-colors";
26
26
  import { ROUTES } from "../../../next/routing/route-map.js";
27
27
  import { productImageUrls } from "../schemas/firestore.js";
28
- import { PART_SLOT_LABEL } from "../../parts/schemas/firestore.js";
29
- import { getModelsUsingPart } from "../../../_internal/server/features/parts/data.js";
30
28
  import { ctaAnchorProps } from "../../layout/cta-anchor.js";
31
29
  import { ContextualTrail } from "../../categories/components/ContextualTrail.js";
32
30
  import { productCrumbs, withTrailHead } from "../../categories/utils/breadcrumb-chain.js";
@@ -52,6 +50,8 @@ import { ProductFeatureBadges } from "./ProductFeatureBadges.js";
52
50
  import { isFinalSale } from "../constants/final-sale.js";
53
51
  import { FeatureBadgeList } from "./FeatureBadge.js";
54
52
  import { ShareButton } from "./ShareButton.js";
53
+ import { TrustBadgeRow } from "./TrustBadgeRow.js";
54
+ import { PdpSectionJumpNav } from "./PdpSectionJumpNav.js";
55
55
  import { toCustomSectionTabs } from "./CustomSectionTabContent.js";
56
56
  import { SublistingCarouselSection } from "./SublistingCarouselSection.js";
57
57
  import { ShowGroupSection } from "./ShowGroupSection.js";
@@ -61,12 +61,15 @@ import { computeRelatedItems, getReviewPageForProduct } from "../../../_internal
61
61
  import { GroupedListingsCarousel } from "../../grouped/components/GroupedListingsCarousel.js";
62
62
  import { getGroupsWithItemsForProduct } from "../../../_internal/server/features/grouped/data.js";
63
63
  import { getSiteSettingsGlobal } from "../../admin/utils/getSiteSettingsGlobal.js";
64
+ import { getFieldVisibility } from "../../../_internal/server/features/forms/field-visibility.js";
65
+ import { SectionVisibilityGate } from "../../shell/SectionVisibilityGate.js";
64
66
  import { safeRead } from "../../../errors/safe-read.js";
65
67
  import { canMakeOffer } from "../../../_internal/shared/listing-types/capabilities.js";
66
68
  import { closedSurfaceContext, isClosedHref, } from "../../../_internal/shared/listing-types/route-gating.js";
67
69
  import { MessageSellerButton } from "../../messages/components/MessageSellerButton.js";
68
70
  import { normalizeListingType } from "../utils/listing-type.js";
69
71
  import { DEFAULT_MIN_OFFER_PERCENT, resolveOfferBounds, } from "../../../_internal/shared/features/offers/config.js";
72
+ import { AdminComposableRegion } from "../../dashboard/components/AdminComposableRegion.js";
70
73
  // ---------------------------------------------------------------------------
71
74
  // Helpers
72
75
  // ---------------------------------------------------------------------------
@@ -82,7 +85,7 @@ function StarRating({ value }) {
82
85
  // ---------------------------------------------------------------------------
83
86
  // Component
84
87
  // ---------------------------------------------------------------------------
85
- export async function ProductDetailPageView({ slug, initialProduct, renderOfferAction, renderPrimaryActions, compositionContent, productFeatures, codEnabled, emiEnabled, returnsEnabled = true, }) {
88
+ export async function ProductDetailPageView({ slug, initialProduct, renderOfferAction, renderPrimaryActions, compositionContent, productFeatures, codEnabled, emiEnabled, returnsEnabled = true, pageRegionCards = [], }) {
86
89
  // Use pre-fetched data when available to avoid a redundant repository call.
87
90
  // The page layer wraps getProductForDetail in React.cache(), so both
88
91
  // generateMetadata() and this component share the same in-flight promise.
@@ -97,26 +100,7 @@ export async function ProductDetailPageView({ slug, initialProduct, renderOfferA
97
100
  }
98
101
  const p = product;
99
102
  const currency = p.currency || getDefaultCurrency();
100
- /*
101
- * The REVERSE link: a spare names a glossary entry, so the glossary entry's
102
- * page should name it back. Fetched only when both conditions hold — most
103
- * listings carry no `partGlossaryId` at all, and this must not become an
104
- * extra read on every product page in the catalogue.
105
- *
106
- * `getModelsUsingPart` does its own `safeRead`-equivalent internally
107
- * (catches and logs, returns `[]`), and this wraps it in `safeRead` again
108
- * anyway — belt-and-braces costs nothing against a function that is already
109
- * `cache()`-wrapped and this page is the only caller that would ever see a
110
- * throw from a future change to it.
111
- */
112
103
  const partGlossaryId = typeof p.partGlossaryId === "string" ? p.partGlossaryId : undefined;
113
- const fitsModels = partGlossaryId
114
- ? await safeRead(() => getModelsUsingPart(partGlossaryId), {
115
- route: "/products/[slug]",
116
- key: "products.fitsModels",
117
- fallback: [],
118
- })
119
- : [];
120
104
  /*
121
105
  * `(slot, tail)` from the id's OWN composition, `${slot}--${tail}` —
122
106
  * mirrors `ModelCompositionPanel`'s private `tailOf`, duplicated rather than
@@ -134,9 +118,7 @@ export async function ProductDetailPageView({ slug, initialProduct, renderOfferA
134
118
  const tail = partGlossaryId.slice(i + 2);
135
119
  return String(ROUTES.PUBLIC.PART_DETAIL(slot, tail));
136
120
  })();
137
- const partSlotLabel = partGlossaryId
138
- ? PART_SLOT_LABEL[partGlossaryId.slice(0, partGlossaryId.indexOf("--"))]
139
- : undefined;
121
+ const partSlotLabel = undefined;
140
122
  // -- Derived values ---------------------------------------------------------
141
123
  const title = String(p.title ?? p.name ?? "");
142
124
  const price = typeof p.price === "number" ? p.price : null;
@@ -299,6 +281,62 @@ export async function ProductDetailPageView({ slug, initialProduct, renderOfferA
299
281
  const minOfferPercent = typeof p.minOfferPercent === "number"
300
282
  ? p.minOfferPercent
301
283
  : DEFAULT_MIN_OFFER_PERCENT;
284
+ /*
285
+ * `functionalSlot` (2026-11-05) — hoisted OUTSIDE both the fixed-position
286
+ * render below and the `AdminComposableRegion` mount, since an admin can
287
+ * now compose a `{kind:"functionalSlot", slotId:"pdp-offer-action"}` card
288
+ * that takes over this position instead. Computed once, consumed twice:
289
+ * the fixed slot renders it only when NOT overridden (so the control never
290
+ * doubles up), and the composed region always receives it so a
291
+ * `functionalSlot` card has something real to resolve to. `pageRegionCards`
292
+ * is template-wide for this listing type (see `recent-entry.ts`'s
293
+ * `functionalSlot` doc comment) — this check and this render use the same
294
+ * eligibility condition the fixed position always has, so an admin cannot
295
+ * surface an offer control for a product that isn't actually offer-eligible.
296
+ */
297
+ const offerActionNode = allowOffers && offerableType && price !== null
298
+ ? renderOfferAction?.({
299
+ productId: product.id,
300
+ price,
301
+ currency,
302
+ minOfferPercent,
303
+ listingStoreId: typeof p.storeId === "string" ? p.storeId : undefined,
304
+ bounds: resolveOfferBounds({
305
+ listingType: normalizeListingType(p),
306
+ listedPrice: price,
307
+ minOfferPercent,
308
+ allowOffers,
309
+ }),
310
+ })
311
+ : undefined;
312
+ const hasOfferSlotOverride = pageRegionCards.some((card) => card.elements.some((el) => el.kind === "functionalSlot" && el.slotId === "pdp-offer-action"));
313
+ /*
314
+ * `functionalSlot` (2026-11-05) — same hoisting pattern as `offerActionNode`
315
+ * above, for the DESKTOP position only. Unlike offer-action, this slot
316
+ * always renders SOMETHING (real buttons from `renderPrimaryActions`, or
317
+ * `ACTION_NOT_WIRED`-disabled placeholders when the caller omitted the
318
+ * prop) — there is no "not eligible" case, since this is the PRIMARY
319
+ * purchase path. The SECOND `renderPrimaryActions` call site below
320
+ * (`variant: "mobile"`) is a `useBottomActions()` REGISTRATION side
321
+ * effect, not a duplicable visible slot — it always fires regardless of
322
+ * any composed override; suppressing it would break the mobile buy bar
323
+ * site-wide for what is meant to be a purely additive widget feature.
324
+ */
325
+ const primaryActionsNode = renderPrimaryActions
326
+ ? renderPrimaryActions({
327
+ productId: product.id,
328
+ productSlug: product.slug ?? slug,
329
+ productTitle: product.title,
330
+ productImage: product.mainImage,
331
+ price,
332
+ currency,
333
+ storeId: typeof p.storeId === "string" ? p.storeId : undefined,
334
+ storeName: typeof p.storeName === "string" ? p.storeName : undefined,
335
+ inStock,
336
+ variant: "desktop",
337
+ })
338
+ : (_jsxs(_Fragment, { children: [_jsx(Button, { variant: "primary", size: "md", className: "w-full", disabled: true, title: ACTION_NOT_WIRED, children: inStock ? "Buy Now" : "Out of Stock" }), _jsx(Button, { variant: "secondary", size: "md", className: "w-full", disabled: true, title: ACTION_NOT_WIRED, children: inStock ? "Add to Cart" : "Out of Stock" }), _jsxs(Button, { variant: "ghost", size: "md", className: "w-full", disabled: true, title: ACTION_NOT_WIRED, children: [_jsx(Icon, { name: "wishlist", size: "md" }), "Add to Wishlist"] })] }));
339
+ const hasPrimaryActionsSlotOverride = pageRegionCards.some((card) => card.elements.some((el) => el.kind === "functionalSlot" && el.slotId === "pdp-primary-actions"));
302
340
  const shippingInfo = typeof p.shippingInfo === "string" ? p.shippingInfo : null;
303
341
  const returnPolicy = typeof p.returnPolicy === "string" ? p.returnPolicy : null;
304
342
  /*
@@ -324,7 +362,7 @@ export async function ProductDetailPageView({ slug, initialProduct, renderOfferA
324
362
  const storeId = typeof p.storeId === "string" ? p.storeId : null;
325
363
  // -- Fetch reviews + the shared 4-signal related-items computation + grouped listings in parallel --
326
364
  // Only page 1 of reviews is fetched here; <ReviewsListingPanel> pages the rest client-side.
327
- const [initialReviews, related, groups, siteSettings, priceBand] = await Promise.all([
365
+ const [initialReviews, related, groups, siteSettings, priceBand, pdpSectionVisibility] = await Promise.all([
328
366
  getReviewPageForProduct(product.id),
329
367
  computeRelatedItems(product),
330
368
  getGroupsWithItemsForProduct(product.id),
@@ -347,6 +385,17 @@ export async function ProductDetailPageView({ slug, initialProduct, renderOfferA
347
385
  fallback: null,
348
386
  })
349
387
  : Promise.resolve(null),
388
+ /*
389
+ * A sixth parallel read, same reasoning as the price-band comment above
390
+ * — the admin field-visibility override for this page's own sections
391
+ * (gallery/info/actions/tabs/related), one SHARED `"pdp-sections"`
392
+ * surface applying to every product (a site-wide template decision,
393
+ * not per-product — same granularity the owner's own examples implied:
394
+ * "if I wish for detail screen cta buttons that is a widget"). Degrades
395
+ * to `{}` (= show everything) on any failure via `getFieldVisibility`'s
396
+ * own `safeRead`, so a visibility-store outage never blanks the page.
397
+ */
398
+ getFieldVisibility("pdp-sections"),
350
399
  ]);
351
400
  const { relatedItems, relatedByBrand, relatedByTags, relatedByStore } = related;
352
401
  /*
@@ -395,82 +444,63 @@ export async function ProductDetailPageView({ slug, initialProduct, renderOfferA
395
444
  price: product.price,
396
445
  storeId: product.storeId,
397
446
  storeName: product.storeName,
398
- } }), _jsxs(Container, { size: "xl", padding: "y-lg", children: [_jsx(ProductDetailView, { renderBreadcrumb: () => (_jsxs(Row, { className: "mb-4", align: "center", justify: "between", gap: "sm", wrap: true, children: [_jsx(ContextualTrail, { trails: trails, alternates: { ids: categoryIds, names: categoryIdNames } }), _jsx(ShareButton, { title: title || undefined })] })), renderGallery: () => (_jsx(ProductGalleryClient, { images: images, video: productVideo, productName: title || undefined })), renderInfo: () => (_jsxs(Stack, { gap: "md", children: [_jsx(RecordOwnerQuickActions, { resource: "PRODUCT", recordId: String(product.id), recordLabel: title || String(product.slug ?? product.id), storeId: product.storeId ? String(product.storeId) : undefined }), _jsxs(Div, { children: [condition && (_jsx(Span, { size: "xs", weight: "medium", className: "mb-2 inline-block", padding: "pill-sm", rounded: "full", surface: "subtle", color: "muted", transform: "capitalize", children: condition === "new"
399
- ? "Brand New"
400
- : condition === "like_new"
401
- ? "Like New"
402
- : condition === "refurbished"
403
- ? "Refurbished"
404
- : condition === "used"
405
- ? "Used"
406
- : condition })), _jsx(Heading, { level: 1, className: "leading-snug", smSize: "2xl", color: "primary", size: "xl", weight: "bold", children: title || "Untitled Product" })] }), avgRating !== null && (reviewCount ?? 0) > 0 ? (_jsxs(Row, { align: "center", gap: "sm", children: [_jsx(StarRating, { value: avgRating }), _jsxs(Span, { size: "sm", color: "muted", children: [avgRating.toFixed(1), reviewCount ? ` (${reviewCount} reviews)` : ""] }), showViews && (_jsxs(Span, { size: "sm", color: "muted", children: ["\u00B7 ", views7d.toLocaleString(), " viewed this week"] })), _jsxs(Span, { size: "xs", weight: "medium", surface: inStock ? "success-surface" : "danger-surface", className: `ml-auto ${inStock ? "text-success" : "text-error"}`, padding: "pill-sm", rounded: "full", children: [madeToOrder
407
- ? "✓ Made to order"
408
- : inStock
409
- ? "✓ In Stock"
410
- : "✗ Out of Stock", inStock && effectiveStock !== null && effectiveStock <= 10
411
- ? ` — only ${effectiveStock} left`
412
- : ""] })] })) : (_jsxs(Span, { layout: "inline-flex", gap: "xs", className: `w-fit .5 ${inStock ? CLS_STOCK_IN : CLS_STOCK_OUT}`, rounded: "full", padding: "pill-md", size: "xs", weight: "medium", children: [madeToOrder
413
- ? "✓ Made to order"
414
- : inStock
415
- ? "✓ In Stock"
416
- : "✗ Out of Stock", inStock && effectiveStock !== null && effectiveStock <= 10
417
- ? ` — only ${effectiveStock} left`
418
- : ""] })), (categorySlugs.length > 0 || subcategory || brand) && (_jsxs(Row, { gap: "sm", wrap: true, children: [categorySlugs.map((slug, i) => (_jsx(Link, { href: String(ROUTES.PUBLIC.CATEGORY_DETAIL(slug)), className: "inline-flex items-center rounded-full border border-[var(--appkit-color-border)] bg-[var(--appkit-color-surface)] px-[var(--appkit-space-2-5)] py-[var(--appkit-space-1)] text-[length:var(--appkit-text-xs)] font-medium text-[var(--appkit-color-text-muted)] transition-colors hover:border-primary-300 hover:bg-primary-surface hover:text-primary-700 dark:hover:border-primary-700/60 dark:hover:text-primary-400", children: categoryNames[i] ?? slug }, slug))), subcategory && (_jsx(Span, { layout: "inline-flex", size: "xs", weight: "medium", border: "subtle", rounded: "full", padding: "pill-sm-tall", surface: "muted", color: "muted", transform: "capitalize", children: subcategory })), brand && brandSlug && (_jsx(Link, { href: String(ROUTES.PUBLIC.BRAND_DETAIL(brandSlug)), className: "inline-flex items-center rounded-full border border-[var(--appkit-color-border)] bg-[var(--appkit-color-surface)] px-[var(--appkit-space-2-5)] py-[var(--appkit-space-1)] text-[length:var(--appkit-text-xs)] font-medium text-[var(--appkit-color-text-muted)] transition-colors hover:border-primary-300 hover:bg-primary-surface hover:text-primary-700 dark:hover:border-primary-700/60 dark:hover:text-primary-400", children: brand })), brand && !brandSlug && (_jsx(Span, { layout: "inline-flex", size: "xs", weight: "medium", border: "subtle", rounded: "full", padding: "pill-sm-tall", surface: "muted", color: "muted", children: brand }))] })), bundleMemberships.length > 0 && (_jsx(Row, { gap: "sm", wrap: true, children: bundleMemberships.map((b) => (_jsxs(Link, { href: String(ROUTES.PUBLIC.BUNDLE_DETAIL(b.id)), className: CLS_BUNDLE_PILL, children: [_jsx(Span, { "aria-hidden": "true", children: "\uD83D\uDCE6" }), "In bundle: ", b.title] }, b.id))) })), _jsx(ProductFeatureBadges, { featured: featured, freeShipping: freeShipping, codAvailable: codEnabled === true, codHref: String(ROUTES.PUBLIC.HOW_CHECKOUT_WORKS), emiAvailable: emiEnabled === true, emiHref: String(ROUTES.PUBLIC.HOW_EMI_WORKS), condition: condition ?? undefined, returnable: !finalSale && returnsEnabled, finalSale: finalSale, labels: {
419
- featured: "Featured",
420
- fasterDelivery: "Faster Delivery",
421
- ratedSeller: "Rated Seller",
422
- condition: "Condition",
423
- conditionNew: "New",
424
- conditionUsed: "Used",
425
- conditionBroken: "For Parts",
426
- conditionRefurbished: "Refurbished",
427
- returnable: "Returnable",
428
- finalSale: "Final Sale",
429
- freeShipping: "Free Shipping",
430
- codAvailable: "Cash on Delivery",
431
- emiAvailable: "EMI Available",
432
- wishlistCount: (n) => `${n} wishlisted`,
433
- categoryProductCount: (n, cat) => `${n} in ${cat}`,
434
- } }), productFeatures && features.length > 0 && (_jsx(FeatureBadgeList, { productFeatureIds: features, features: productFeatures })), !productFeatures && features.length > 0 && (_jsxs(Div, { border: "subtle", surface: "muted", padding: "inline", rounded: "xl", children: [_jsx(Text, { className: "mb-2 tracking-wide", color: "muted", size: "xs", weight: "semibold", transform: "uppercase", children: "About this product" }), _jsx(Ul, { spacing: "comfortable", size: "sm", color: "primary", children: features.map((f, i) => (_jsxs(Li, { layout: "flex-start", gap: "2", children: [_jsx(Span, { className: "mt-0.5 flex-shrink-0 text-primary-500", children: "\u2022" }), f] }, i))) })] })), descriptionHtml && (_jsx(RichText, { html: descriptionHtml, proseClass: "prose prose-sm max-w-none dark:prose-invert prose-p:my-0", className: "text-[length:var(--appkit-text-sm)] leading-relaxed text-[var(--appkit-color-text-muted)] line-clamp-4" })), sellerName && (_jsx(Div, { className: `${__P.p3}`, border: "subtle", rounded: "xl", surface: "muted", children: _jsxs(Row, { justify: "between", align: "center", children: [_jsxs(Div, { children: [_jsx(Text, { className: "text-[10px] tracking-wide mb-0.5", color: "faint", transform: "uppercase", children: "Sold by" }), _jsx(Text, { size: "sm", weight: "semibold", color: "primary", children: sellerName }), typeof p.storeRating === "number" && p.storeRating > 0 && (_jsx(Row, { gap: "xs", align: "center", className: "mt-0.5", children: _jsxs(Text, { size: "xs", color: "muted", children: [_jsx(Span, { className: "text-warning", "aria-hidden": "true", children: "\u2605" }), " ", p.storeRating.toFixed(1), typeof p.storeReviewCount === "number" &&
435
- p.storeReviewCount > 0 &&
436
- ` · ${p.storeReviewCount} reviews`] }) }))] }), _jsxs(Row, { gap: "xs", align: "center", className: "shrink-0", children: [sellerName && storeId && (_jsx(MessageSellerButton, { storeId: storeId, productId: product.id })), sellerHref && (_jsx(Link, { href: sellerHref, className: "rounded-lg bg-primary/10 dark:bg-primary/20 px-[var(--appkit-space-3)] py-[var(--appkit-space-1-5)] text-[length:var(--appkit-text-xs)] font-semibold text-primary-700 dark:text-primary-300 hover:bg-primary/20 dark:hover:bg-primary/30 transition-colors", children: "Visit Store \u2192" }))] })] }) }))] })), renderActions: () => (_jsxs(Stack, { className: `${__P.p5}`, border: "subtle", gap: "md", rounded: "xl", surface: "muted", children: [price !== null && (_jsxs(Div, { children: [_jsx(PriceDisplay, { amount: price, originalAmount: originalPrice ?? undefined, currency: currency, variant: "detail" }), siteSettings?.gst?.enabled === true &&
437
- typeof p.gstRate === "number" &&
438
- p.gstRate > 0 && (_jsxs(Text, { size: "xs", color: "muted", children: ["Incl. ", p.gstRate, "% GST"] })), _jsx(MarketPriceAnchor, { band: priceBand?.byListingType?.[normalizeListingType(p)] ?? null, windowDays: priceBand?.windowDays ?? null, currency: currency, price: price }), inStock && effectiveStock !== null && effectiveStock <= 3 && (_jsxs(Text, { className: "mt-1 text-warning", size: "xs", children: ["Only ", effectiveStock, " left \u2014 order soon!"] })), inStock && effectiveStock !== null && effectiveStock > 3 && effectiveStock <= 10 && (_jsxs(Text, { className: "mt-1", color: "muted", size: "xs", children: [effectiveStock, " in stock"] })), madeToOrder && (_jsx(Text, { className: "mt-1", color: "muted", size: "xs", children: "Made to order \u2014 printed when you order, so it never runs out." })), partHref && (_jsxs(Text, { className: "mt-1", color: "muted", size: "xs", children: [partSlotLabel ?? "Part", ".", " ", _jsx(Link, { href: partHref, className: "text-primary-600 hover:underline", children: "See what else fits \u2192" }), fitsModels.length > 0 && (_jsxs(_Fragment, { children: [" ", "Fits:", " ", fitsModels.slice(0, 6).map((m, i) => (_jsxs(Text, { as: "span", children: [i > 0 ? ", " : "", m.categoryId ? (_jsx(Link, { href: String(ROUTES.PUBLIC.CATEGORY_DETAIL(m.categoryId)), className: "text-primary-600 hover:underline", children: m.name })) : (m.name)] }, m.id)))] }))] }))] })), _jsxs(Stack, { gap: "sm", ...ctaAnchorProps(), children: [renderPrimaryActions ? (renderPrimaryActions({
439
- productId: product.id,
440
- productSlug: product.slug ?? slug,
441
- productTitle: product.title,
442
- productImage: product.mainImage,
443
- price,
444
- currency,
445
- storeId: typeof p.storeId === "string" ? p.storeId : undefined,
446
- storeName: typeof p.storeName === "string" ? p.storeName : undefined,
447
- inStock,
448
- variant: "desktop",
449
- })) : (_jsxs(_Fragment, { children: [_jsx(Button, { variant: "primary", size: "md", className: "w-full", disabled: true, title: ACTION_NOT_WIRED, children: inStock ? "Buy Now" : "Out of Stock" }), _jsx(Button, { variant: "secondary", size: "md", className: "w-full", disabled: true, title: ACTION_NOT_WIRED, children: inStock ? "Add to Cart" : "Out of Stock" }), _jsxs(Button, { variant: "ghost", size: "md", className: "w-full", disabled: true, title: ACTION_NOT_WIRED, children: [_jsx(Icon, { name: "wishlist", size: "md" }), "Add to Wishlist"] })] })), allowOffers && offerableType && price !== null && renderOfferAction?.({
450
- productId: product.id,
451
- price,
452
- currency,
453
- minOfferPercent,
454
- listingStoreId: typeof p.storeId === "string" ? p.storeId : undefined,
455
- bounds: resolveOfferBounds({
456
- listingType: normalizeListingType(p),
457
- listedPrice: price,
458
- minOfferPercent,
459
- allowOffers,
460
- }),
461
- })] }), (shippingInfo || returnPolicy || freeShipping || finalSale) && (_jsxs(Stack, { gap: "sm", border: "default", className: "border-t", padding: "t-md", children: [freeShipping && (_jsxs(Row, { align: "start", gap: "sm", children: [_jsx(Span, { className: CLS_FREE_SHIPPING_ICON, children: "\uD83D\uDE9A" }), _jsxs(Div, { children: [_jsx(Text, { size: "xs", weight: "medium", color: "muted", children: "Free Delivery" }), shippingInfo && (_jsx(Text, { size: "xs", color: "muted", children: shippingInfo }))] })] })), !freeShipping && shippingInfo && (_jsxs(Row, { align: "start", gap: "sm", children: [_jsx(Span, { className: CLS_POLICY_ROW_ICON, color: "faint", children: "\uD83D\uDCE6" }), _jsx(Text, { size: "xs", color: "muted", children: shippingInfo })] })), _jsxs(Row, { align: "start", gap: "sm", children: [_jsx(Span, { className: CLS_POLICY_ROW_ICON, color: "faint", children: "\u21BA" }), _jsxs(Div, { children: [_jsx(Text, { size: "xs", weight: "medium", color: finalSale ? "warning" : "muted", children: finalSale ? "Final sale — no change-of-mind returns" : "Returns accepted" }), _jsx(Text, { size: "xs", color: "muted", children: finalSale
462
- ? "You can still claim if it never arrives, arrives damaged, is the wrong item, is not as described, or is counterfeit."
463
- : "Return this item within the platform return window for any reason." })] })] }), returnPolicy && (_jsxs(Row, { align: "start", gap: "sm", children: [_jsx(Span, { className: CLS_POLICY_ROW_ICON, color: "faint", children: "\uD83D\uDCC4" }), _jsx(Text, { size: "xs", color: "muted", children: returnPolicy })] }))] })), tags.length > 0 && (_jsxs(Div, { border: "default", className: "border-t", padding: "t-md", children: [_jsx(Text, { className: "mb-2", color: "muted", size: "xs", weight: "medium", children: "Tags" }), _jsx(Row, { wrap: true, gap: "xs", children: tags.map((tag) => (_jsx(Span, { rounded: "full", padding: "pill-sm-tall", surface: "subtle", color: "muted", size: "xs", children: tag }, tag))) })] })), _jsx(Div, { border: "default", className: "border-t", padding: "t-md", children: _jsx(Row, { wrap: true, gap: "sm", justify: "center", className: "text-center", children: [
464
- { icon: "🔒", label: "Secure\nPayment" },
465
- { icon: "✓", label: "Verified\nSeller" },
466
- { icon: "⭐", label: "Quality\nGuarantee" },
467
- ].map(({ icon, label }) => (_jsxs(Stack, { color: "muted", textSize: "xs", className: "min-w-[60px]", align: "center", gap: "xs", children: [_jsx(Span, { size: "base", children: icon }), _jsx(Span, { className: "whitespace-pre-line leading-tight", children: label })] }, label))) }) })] })), renderSublistingSection: sublistingCategoryId
447
+ } }), _jsxs(Container, { size: "xl", padding: "y-lg", children: [_jsx(ProductDetailView, { renderBreadcrumb: () => (_jsxs(_Fragment, { children: [_jsxs(Row, { className: "mb-4", align: "center", justify: "between", gap: "sm", wrap: true, children: [_jsx(ContextualTrail, { trails: trails, alternates: { ids: categoryIds, names: categoryIdNames } }), _jsx(ShareButton, { title: title || undefined })] }), _jsx(PdpSectionJumpNav, { productId: String(product.id), title: title || "this product" })] })), renderGallery: () => (
448
+ // Phase 10 ("widget descriptors") — id anchor for the PDP "jump to
449
+ // section" nav + pdpSection RecentEntry href resolution. Mirrors
450
+ // PdpSectionId's "gallery" 1:1 (appkit/.../dashboard/recent-entry.ts).
451
+ _jsx(Div, { id: "section-gallery", children: _jsx(SectionVisibilityGate, { surfaceId: "pdp-sections", sectionKey: "gallery", initialVisible: pdpSectionVisibility.gallery !== false, children: _jsx(ProductGalleryClient, { images: images, video: productVideo, productName: title || undefined }) }) })), renderInfo: () => (_jsx(SectionVisibilityGate, { surfaceId: "pdp-sections", sectionKey: "info", initialVisible: pdpSectionVisibility.info !== false, children: _jsxs(Stack, { gap: "md", id: "section-info", children: [_jsx(RecordOwnerQuickActions, { resource: "PRODUCT", recordId: String(product.id), recordLabel: title || String(product.slug ?? product.id), storeId: product.storeId ? String(product.storeId) : undefined }), _jsxs(Div, { children: [condition && (_jsx(Span, { size: "xs", weight: "medium", className: "mb-2 inline-block", padding: "pill-sm", rounded: "full", surface: "subtle", color: "muted", transform: "capitalize", children: condition === "new"
452
+ ? "Brand New"
453
+ : condition === "like_new"
454
+ ? "Like New"
455
+ : condition === "refurbished"
456
+ ? "Refurbished"
457
+ : condition === "used"
458
+ ? "Used"
459
+ : condition })), _jsx(Heading, { level: 1, className: "leading-snug", smSize: "2xl", color: "primary", size: "xl", weight: "bold", children: title || "Untitled Product" })] }), avgRating !== null && (reviewCount ?? 0) > 0 ? (_jsxs(Row, { align: "center", gap: "sm", children: [_jsx(StarRating, { value: avgRating }), _jsxs(Span, { size: "sm", color: "muted", children: [avgRating.toFixed(1), reviewCount ? ` (${reviewCount} reviews)` : ""] }), showViews && (_jsxs(Span, { size: "sm", color: "muted", children: ["\u00B7 ", views7d.toLocaleString(), " viewed this week"] })), _jsxs(Span, { size: "xs", weight: "medium", surface: inStock ? "success-surface" : "danger-surface", className: `ml-auto ${inStock ? "text-success" : "text-error"}`, padding: "pill-sm", rounded: "full", children: [madeToOrder
460
+ ? "✓ Made to order"
461
+ : inStock
462
+ ? "✓ In Stock"
463
+ : "✗ Out of Stock", inStock && effectiveStock !== null && effectiveStock <= 10
464
+ ? ` — only ${effectiveStock} left`
465
+ : ""] })] })) : (_jsxs(Span, { layout: "inline-flex", gap: "xs", className: `w-fit .5 ${inStock ? CLS_STOCK_IN : CLS_STOCK_OUT}`, rounded: "full", padding: "pill-md", size: "xs", weight: "medium", children: [madeToOrder
466
+ ? "✓ Made to order"
467
+ : inStock
468
+ ? "✓ In Stock"
469
+ : "✗ Out of Stock", inStock && effectiveStock !== null && effectiveStock <= 10
470
+ ? ` — only ${effectiveStock} left`
471
+ : ""] })), (categorySlugs.length > 0 || subcategory || brand) && (_jsxs(Row, { gap: "sm", wrap: true, children: [categorySlugs.map((slug, i) => (_jsx(Link, { href: String(ROUTES.PUBLIC.CATEGORY_DETAIL(slug)), className: "inline-flex items-center rounded-full border border-[var(--appkit-color-border)] bg-[var(--appkit-color-surface)] px-[var(--appkit-space-2-5)] py-[var(--appkit-space-1)] text-[length:var(--appkit-text-xs)] font-medium text-[var(--appkit-color-text-muted)] transition-colors hover:border-primary-300 hover:bg-primary-surface hover:text-primary-700 dark:hover:border-primary-700/60 dark:hover:text-primary-400", children: categoryNames[i] ?? slug }, slug))), subcategory && (_jsx(Span, { layout: "inline-flex", size: "xs", weight: "medium", border: "subtle", rounded: "full", padding: "pill-sm-tall", surface: "muted", color: "muted", transform: "capitalize", children: subcategory })), brand && brandSlug && (_jsx(Link, { href: String(ROUTES.PUBLIC.BRAND_DETAIL(brandSlug)), className: "inline-flex items-center rounded-full border border-[var(--appkit-color-border)] bg-[var(--appkit-color-surface)] px-[var(--appkit-space-2-5)] py-[var(--appkit-space-1)] text-[length:var(--appkit-text-xs)] font-medium text-[var(--appkit-color-text-muted)] transition-colors hover:border-primary-300 hover:bg-primary-surface hover:text-primary-700 dark:hover:border-primary-700/60 dark:hover:text-primary-400", children: brand })), brand && !brandSlug && (_jsx(Span, { layout: "inline-flex", size: "xs", weight: "medium", border: "subtle", rounded: "full", padding: "pill-sm-tall", surface: "muted", color: "muted", children: brand }))] })), bundleMemberships.length > 0 && (_jsx(Row, { gap: "sm", wrap: true, children: bundleMemberships.map((b) => (_jsxs(Link, { href: String(ROUTES.PUBLIC.BUNDLE_DETAIL(b.id)), className: CLS_BUNDLE_PILL, children: [_jsx(Span, { "aria-hidden": "true", children: "\uD83D\uDCE6" }), "In bundle: ", b.title] }, b.id))) })), _jsx(ProductFeatureBadges, { featured: featured, freeShipping: freeShipping, codAvailable: codEnabled === true, codHref: String(ROUTES.PUBLIC.HOW_CHECKOUT_WORKS), emiAvailable: emiEnabled === true, emiHref: String(ROUTES.PUBLIC.HOW_EMI_WORKS), condition: condition ?? undefined, returnable: !finalSale && returnsEnabled, finalSale: finalSale, labels: {
472
+ featured: "Featured",
473
+ fasterDelivery: "Faster Delivery",
474
+ ratedSeller: "Rated Seller",
475
+ condition: "Condition",
476
+ conditionNew: "New",
477
+ conditionUsed: "Used",
478
+ conditionBroken: "For Parts",
479
+ conditionRefurbished: "Refurbished",
480
+ returnable: "Returnable",
481
+ finalSale: "Final Sale",
482
+ freeShipping: "Free Shipping",
483
+ codAvailable: "Cash on Delivery",
484
+ emiAvailable: "EMI Available",
485
+ wishlistCount: (n) => `${n} wishlisted`,
486
+ categoryProductCount: (n, cat) => `${n} in ${cat}`,
487
+ } }), productFeatures && features.length > 0 && (_jsx(FeatureBadgeList, { productFeatureIds: features, features: productFeatures })), !productFeatures && features.length > 0 && (_jsxs(Div, { border: "subtle", surface: "muted", padding: "inline", rounded: "xl", children: [_jsx(Text, { className: "mb-2 tracking-wide", color: "muted", size: "xs", weight: "semibold", transform: "uppercase", children: "About this product" }), _jsx(Ul, { spacing: "comfortable", size: "sm", color: "primary", children: features.map((f, i) => (_jsxs(Li, { layout: "flex-start", gap: "2", children: [_jsx(Span, { className: "mt-0.5 flex-shrink-0 text-primary-500", children: "\u2022" }), f] }, i))) })] })), descriptionHtml && (_jsx(RichText, { html: descriptionHtml, proseClass: "prose prose-sm max-w-none dark:prose-invert prose-p:my-0", className: "text-[length:var(--appkit-text-sm)] leading-relaxed text-[var(--appkit-color-text-muted)] line-clamp-4" })), sellerName && (_jsx(Div, { className: `${__P.p3}`, border: "subtle", rounded: "xl", surface: "muted", children: _jsxs(Row, { justify: "between", align: "center", children: [_jsxs(Div, { children: [_jsx(Text, { className: "text-[10px] tracking-wide mb-0.5", color: "faint", transform: "uppercase", children: "Sold by" }), _jsx(Text, { size: "sm", weight: "semibold", color: "primary", children: sellerName }), typeof p.storeRating === "number" && p.storeRating > 0 && (_jsx(Row, { gap: "xs", align: "center", className: "mt-0.5", children: _jsxs(Text, { size: "xs", color: "muted", children: [_jsx(Span, { className: "text-warning", "aria-hidden": "true", children: "\u2605" }), " ", p.storeRating.toFixed(1), typeof p.storeReviewCount === "number" &&
488
+ p.storeReviewCount > 0 &&
489
+ ` · ${p.storeReviewCount} reviews`] }) }))] }), _jsxs(Row, { gap: "xs", align: "center", className: "shrink-0", children: [sellerName && storeId && (_jsx(MessageSellerButton, { storeId: storeId, productId: product.id })), sellerHref && (_jsx(Link, { href: sellerHref, className: "rounded-lg bg-primary/10 dark:bg-primary/20 px-[var(--appkit-space-3)] py-[var(--appkit-space-1-5)] text-[length:var(--appkit-text-xs)] font-semibold text-primary-700 dark:text-primary-300 hover:bg-primary/20 dark:hover:bg-primary/30 transition-colors", children: "Visit Store \u2192" }))] })] }) }))] }) })), renderActions: () => (_jsx(SectionVisibilityGate, { surfaceId: "pdp-sections", sectionKey: "actions", initialVisible: pdpSectionVisibility.actions !== false, children: _jsxs(Stack, { id: "section-actions", className: `${__P.p5}`, border: "subtle", gap: "md", rounded: "xl", surface: "muted", children: [price !== null && (_jsxs(Div, { children: [_jsx(PriceDisplay, { amount: price, originalAmount: originalPrice ?? undefined, currency: currency, variant: "detail" }), siteSettings?.gst?.enabled === true &&
490
+ typeof p.gstRate === "number" &&
491
+ p.gstRate > 0 && (_jsxs(Text, { size: "xs", color: "muted", children: ["Incl. ", p.gstRate, "% GST"] })), _jsx(MarketPriceAnchor, { band: priceBand?.byListingType?.[normalizeListingType(p)] ?? null, windowDays: priceBand?.windowDays ?? null, currency: currency, price: price }), inStock && effectiveStock !== null && effectiveStock <= 3 && (_jsxs(Text, { className: "mt-1 text-warning", size: "xs", children: ["Only ", effectiveStock, " left \u2014 order soon!"] })), inStock && effectiveStock !== null && effectiveStock > 3 && effectiveStock <= 10 && (_jsxs(Text, { className: "mt-1", color: "muted", size: "xs", children: [effectiveStock, " in stock"] })), madeToOrder && (_jsx(Text, { className: "mt-1", color: "muted", size: "xs", children: "Made to order \u2014 printed when you order, so it never runs out." })), partHref && (_jsxs(Text, { className: "mt-1", color: "muted", size: "xs", children: [partSlotLabel ?? "Part", ".", " ", _jsx(Link, { href: partHref, className: "text-primary-600 hover:underline", children: "See what else fits \u2192" })] }))] })), _jsxs(Stack, { gap: "sm", ...ctaAnchorProps(), children: [!hasPrimaryActionsSlotOverride && primaryActionsNode, !hasOfferSlotOverride && offerActionNode] }), (shippingInfo || returnPolicy || freeShipping || finalSale) && (_jsxs(Stack, { gap: "sm", border: "default", className: "border-t", padding: "t-md", children: [freeShipping && (_jsxs(Row, { align: "start", gap: "sm", children: [_jsx(Span, { className: CLS_FREE_SHIPPING_ICON, children: "\uD83D\uDE9A" }), _jsxs(Div, { children: [_jsx(Text, { size: "xs", weight: "medium", color: "muted", children: "Free Delivery" }), shippingInfo && (_jsx(Text, { size: "xs", color: "muted", children: shippingInfo }))] })] })), !freeShipping && shippingInfo && (_jsxs(Row, { align: "start", gap: "sm", children: [_jsx(Span, { className: CLS_POLICY_ROW_ICON, color: "faint", children: "\uD83D\uDCE6" }), _jsx(Text, { size: "xs", color: "muted", children: shippingInfo })] })), _jsxs(Row, { align: "start", gap: "sm", children: [_jsx(Span, { className: CLS_POLICY_ROW_ICON, color: "faint", children: "\u21BA" }), _jsxs(Div, { children: [_jsx(Text, { size: "xs", weight: "medium", color: finalSale ? "warning" : "muted", children: finalSale ? "Final sale — no change-of-mind returns" : "Returns accepted" }), _jsx(Text, { size: "xs", color: "muted", children: finalSale
492
+ ? "You can still claim if it never arrives, arrives damaged, is the wrong item, is not as described, or is counterfeit."
493
+ : "Return this item within the platform return window for any reason." })] })] }), returnPolicy && (_jsxs(Row, { align: "start", gap: "sm", children: [_jsx(Span, { className: CLS_POLICY_ROW_ICON, color: "faint", children: "\uD83D\uDCC4" }), _jsx(Text, { size: "xs", color: "muted", children: returnPolicy })] }))] })), tags.length > 0 && (_jsxs(Div, { border: "default", className: "border-t", padding: "t-md", children: [_jsx(Text, { className: "mb-2", color: "muted", size: "xs", weight: "medium", children: "Tags" }), _jsx(Row, { wrap: true, gap: "xs", children: tags.map((tag) => (_jsx(Span, { rounded: "full", padding: "pill-sm-tall", surface: "subtle", color: "muted", size: "xs", children: tag }, tag))) })] })), _jsx(Div, { border: "default", className: "border-t", padding: "t-md", children: _jsx(TrustBadgeRow, { badges: [
494
+ { icon: "🔒", label: "Secure\nPayment" },
495
+ { icon: "✓", label: "Verified\nSeller" },
496
+ { icon: "⭐", label: "Quality\nGuarantee" },
497
+ ] }) })] }) })), renderSublistingSection: sublistingCategoryId
468
498
  ? () => (_jsx(SublistingCarouselSection, { sublistingCategoryId: sublistingCategoryId, currentListingId: String(product.id) }))
469
499
  : undefined, renderGroupSection: groupId
470
500
  ? () => (_jsx(ShowGroupSection, { groupId: groupId, currentSlug: String(p.slug ?? product.id), isParent: isGroupParent, groupTitle: groupTitle }))
471
- : undefined, renderTabs: () => (_jsx(ProductTabsShell, { partsContent: compositionContent, descriptionContent: descriptionHtml ? (_jsx(RichText, { html: descriptionHtml, proseClass: "prose prose-sm sm:prose max-w-none dark:prose-invert", className: "text-[var(--appkit-color-text-muted)]" })) : undefined, specsContent: allSpecs.length > 0 ? (_jsx(SpecTable, { rows: allSpecs })) : undefined, ingredientsContent: ingredients.length > 0 ? (_jsx(Ul, { spacing: "comfortable", children: ingredients.map((item, i) => (_jsxs(Li, { layout: "flex-start", gap: "2", children: [_jsx(Span, { className: "mt-1 flex-shrink-0 h-1.5 w-1.5 bg-primary-400", rounded: "full" }), item] }, i))) })) : undefined, howToUseContent: howToUse.length > 0 ? (_jsx(Ol, { spacing: "loose", children: howToUse.map((step, i) => (_jsxs(Li, { layout: "flex-start", gap: "3", textSize: "sm", color: "muted", children: [_jsx(Span, { layout: "flex-center", size: "xs", weight: "bold", className: "flex-shrink-0 h-6 w-6 bg-primary-100 dark:bg-primary-900/30 text-primary-700 dark:text-primary-300", rounded: "full", children: i + 1 }), step] }, i))) })) : undefined, reviewsContent: _jsxs(Stack, { gap: "md", children: [_jsx(PurchaseReviewAffordance, { productId: String(product.id), storeId: product.storeId ? String(product.storeId) : undefined }), _jsx(ReviewsListingPanel, { source: { kind: "product", productId: product.id }, stateMode: "local", context: "listing", initialData: initialReviews, emptyLabel: "No reviews yet \u2014 be the first to review this product." })] }), customTabs: toCustomSectionTabs(p.customSections) })), renderBundleSection: bundleMemberships.length > 0
501
+ : undefined, renderTabs: () => (_jsx(SectionVisibilityGate, { surfaceId: "pdp-sections", sectionKey: "tabs", initialVisible: pdpSectionVisibility.tabs !== false, children: _jsx(Div, { id: "section-tabs", children: _jsx(ProductTabsShell, { partsContent: compositionContent, descriptionContent: descriptionHtml ? (_jsx(RichText, { html: descriptionHtml, proseClass: "prose prose-sm sm:prose max-w-none dark:prose-invert", className: "text-[var(--appkit-color-text-muted)]" })) : undefined, specsContent: allSpecs.length > 0 ? (_jsx(SpecTable, { rows: allSpecs })) : undefined, ingredientsContent: ingredients.length > 0 ? (_jsx(Ul, { spacing: "comfortable", children: ingredients.map((item, i) => (_jsxs(Li, { layout: "flex-start", gap: "2", children: [_jsx(Span, { className: "mt-1 flex-shrink-0 h-1.5 w-1.5 bg-primary-400", rounded: "full" }), item] }, i))) })) : undefined, howToUseContent: howToUse.length > 0 ? (_jsx(Ol, { spacing: "loose", children: howToUse.map((step, i) => (_jsxs(Li, { layout: "flex-start", gap: "3", textSize: "sm", color: "muted", children: [_jsx(Span, { layout: "flex-center", size: "xs", weight: "bold", className: "flex-shrink-0 h-6 w-6 bg-primary-100 dark:bg-primary-900/30 text-primary-700 dark:text-primary-300", rounded: "full", children: i + 1 }), step] }, i))) })) : undefined, reviewsContent: _jsxs(Stack, { gap: "md", children: [_jsx(PurchaseReviewAffordance, { productId: String(product.id), storeId: product.storeId ? String(product.storeId) : undefined }), _jsx(ReviewsListingPanel, { source: { kind: "product", productId: product.id }, stateMode: "local", context: "listing", initialData: initialReviews, emptyLabel: "No reviews yet \u2014 be the first to review this product." })] }), customTabs: toCustomSectionTabs(p.customSections) }) }) })), renderBundleSection: bundleMemberships.length > 0
472
502
  ? () => (_jsxs(Div, { className: CLS_BUNDLE_BOX, children: [_jsxs(Row, { className: "mb-3", align: "center", gap: "sm", children: [_jsx(Span, { size: "base", className: CLS_BUNDLE_ICON, "aria-hidden": "true", children: "\uD83D\uDCE6" }), _jsxs(Text, { className: CLS_BUNDLE_TITLE, children: ["Part of ", bundleMemberships.length === 1 ? "a bundle" : `${bundleMemberships.length} bundles`] })] }), _jsx(Stack, { gap: "3", children: bundleMemberships.map((b) => (_jsxs(Div, { className: CLS_BUNDLE_ROW, children: [_jsxs(Div, { className: "min-w-0", children: [_jsx(Text, { className: CLS_BUNDLE_LABEL, children: "Included in bundle" }), _jsx(Text, { className: "truncate", color: "primary", size: "sm", weight: "semibold", children: b.title })] }), _jsx(Link, { href: String(ROUTES.PUBLIC.BUNDLE_DETAIL(b.id)), className: CLS_BUNDLE_CTA, children: "View Bundle \u2192" })] }, b.id))) })] }))
473
- : undefined, renderRelated: () => (_jsxs(Stack, { gap: "xl", children: [_jsx(GroupedListingsCarousel, { groups: groups }), _jsx(RelatedItemsSection, { relatedItems: relatedItems, relatedByBrand: relatedByBrand, relatedByTags: relatedByTags, relatedByStore: relatedByStore, categoryLabel: categoryNames[0] || categoryName || category || undefined, brandLabel: brand || undefined, storeLabel: sellerName ? storeName || undefined : undefined })] })) }), renderPrimaryActions
503
+ : undefined, renderRelated: () => (_jsxs(Stack, { gap: "xl", id: "section-related", children: [_jsx(SectionVisibilityGate, { surfaceId: "pdp-sections", sectionKey: "grouped-listings", initialVisible: pdpSectionVisibility["grouped-listings"] !== false, children: _jsx(GroupedListingsCarousel, { groups: groups }) }), _jsx(SectionVisibilityGate, { surfaceId: "pdp-sections", sectionKey: "related", initialVisible: pdpSectionVisibility.related !== false, children: _jsx(RelatedItemsSection, { relatedItems: relatedItems, relatedByBrand: relatedByBrand, relatedByTags: relatedByTags, relatedByStore: relatedByStore, categoryLabel: categoryNames[0] || categoryName || category || undefined, brandLabel: brand || undefined, storeLabel: sellerName ? storeName || undefined : undefined }) })] })) }), _jsx(AdminComposableRegion, { pageId: "products-slug", initialCards: pageRegionCards, functionalSlots: { "pdp-offer-action": offerActionNode, "pdp-primary-actions": primaryActionsNode } }), renderPrimaryActions
474
504
  ? renderPrimaryActions({
475
505
  productId: product.id,
476
506
  productSlug: product.slug ?? slug,
@@ -90,8 +90,11 @@ export function ProductFeatureBadges({ featured, fasterDelivery, ratedSeller, co
90
90
  key: "cod",
91
91
  icon: _jsx(Span, { size: "xs", children: "\u20B9" }),
92
92
  label: labels.codAvailable,
93
- colorClass: "text-purple-700 dark:text-purple-300",
94
- bgClass: "bg-purple-50 dark:bg-purple-900/30 border-purple-200 dark:border-purple-800",
93
+ // Generic accent token (2A/Phase 11), not a status color — COD/EMI/
94
+ // wishlist exist purely to differentiate from each other, same
95
+ // convention the success/warning/error/info badges above use.
96
+ colorClass: "text-accent-c dark:text-accent-c",
97
+ bgClass: "bg-accent-c-surface dark:bg-accent-c-surface border-accent-c dark:border-accent-c",
95
98
  href: codHref,
96
99
  });
97
100
  }
@@ -100,8 +103,8 @@ export function ProductFeatureBadges({ featured, fasterDelivery, ratedSeller, co
100
103
  key: "emi",
101
104
  icon: _jsx(Span, { size: "xs", children: "\uD83D\uDCC5" }),
102
105
  label: labels.emiAvailable,
103
- colorClass: "text-indigo-700 dark:text-indigo-300",
104
- bgClass: "bg-indigo-50 dark:bg-indigo-900/30 border-indigo-200 dark:border-indigo-800",
106
+ colorClass: "text-accent-a dark:text-accent-a",
107
+ bgClass: "bg-accent-a-surface dark:bg-accent-a-surface border-accent-a dark:border-accent-a",
105
108
  href: emiHref,
106
109
  });
107
110
  }
@@ -110,8 +113,8 @@ export function ProductFeatureBadges({ featured, fasterDelivery, ratedSeller, co
110
113
  key: "wishlist",
111
114
  icon: _jsx(Icon, { name: "wishlist", size: "xs", filled: true }),
112
115
  label: labels.wishlistCount(wishlistCount),
113
- colorClass: "text-pink-700 dark:text-pink-300",
114
- bgClass: "bg-pink-50 dark:bg-pink-900/30 border-pink-200 dark:border-pink-800",
116
+ colorClass: "text-accent-b dark:text-accent-b",
117
+ bgClass: "bg-accent-b-surface dark:bg-accent-b-surface border-accent-b dark:border-accent-b",
115
118
  });
116
119
  }
117
120
  if (categoryProductCount && categoryProductCount > 0 && categoryName) {
@@ -129,6 +132,6 @@ export function ProductFeatureBadges({ featured, fasterDelivery, ratedSeller, co
129
132
  }
130
133
  if (badges.length === 0)
131
134
  return null;
132
- const renderPill = (badge) => (_jsxs(Span, { layout: "inline-flex", gap: "xs", className: `.5 border py-[0.375rem] ${badge.bgClass} ${badge.colorClass}`, rounded: "lg", padding: "x-sm", size: "xs", weight: "medium", children: [_jsx(Span, { "aria-hidden": "true", children: badge.icon }), badge.label] }));
135
+ const renderPill = (badge) => (_jsxs(Span, { layout: "inline-flex", gap: "xs", className: `border py-[0.375rem] ${badge.bgClass} ${badge.colorClass}`, rounded: "lg", padding: "x-sm", size: "xs", weight: "medium", children: [_jsx(Span, { "aria-hidden": "true", children: badge.icon }), badge.label] }));
133
136
  return (_jsx(Row, { wrap: true, gap: "sm", children: badges.map((badge) => badge.href ? (_jsx(TextLink, { href: badge.href, className: "no-underline", children: renderPill(badge) }, badge.key)) : (_jsx(Fragment, { children: renderPill(badge) }, badge.key))) }));
134
137
  }
@@ -103,7 +103,7 @@ export function ProductFilters({ table, categoryOptions = [], brandOptions = [],
103
103
  const selectedListingTypes = splitPipe(TABLE_KEYS.LISTING_TYPE);
104
104
  return (_jsxs(Div, { children: [listingTypeOptions.length > 0 && (_jsxs(_Fragment, { children: [_jsx(FilterFacetSection, { title: "Listing type", options: listingTypeOptions, selected: selectedListingTypes, onChange: (vals) =>
105
105
  // Serialise in the OPTIONS' order, not the order the boxes were
106
- // ticked — `auction|art` and `art|auction` are the same result
106
+ // ticked — `collector drop|art` and `art|collector drop` are the same result
107
107
  // set but two different React Query keys and two different URLs.
108
108
  table.set(TABLE_KEYS.LISTING_TYPE, listingTypeOptions
109
109
  .filter((o) => vals.includes(o.value))
@@ -100,7 +100,7 @@ export interface ProductFormProps {
100
100
  currencyPrefix?: string;
101
101
  /**
102
102
  * Render a Group Settings panel (GP2). Only passed when editing an existing
103
- * non-auction product. Returns null/undefined to omit.
103
+ * non-collectorDrop product. Returns null/undefined to omit.
104
104
  */
105
105
  renderGroupSettings?: (product: ProductFormValue) => React.ReactNode;
106
106
  /**
@@ -21,9 +21,9 @@ import { formatPhysicalLocation } from "../../../utils/physical-location.js";
21
21
  import { DEFAULT_MIN_OFFER_PERCENT } from "../../../_internal/shared/features/offers/config.js";
22
22
  import { normalizeRichTextHtml } from "../../../utils/string.formatter.js";
23
23
  import { useListingTypeFlags } from "../../../react/hooks/useListingTypeFlags.js";
24
- import { isAuctionListing, isPreOrderListing, isPrizeDrawListing, normalizeListingType, } from "../utils/listing-type.js";
25
- import { PrizeDrawItemsEditor } from "./PrizeDrawItemsEditor.js";
26
- import { PRIZE_DRAW_DURATION_DAYS_MIN, PRIZE_DRAW_DURATION_DAYS_MAX, } from "../../../_internal/shared/checkout/rules/_limits.js";
24
+ import { isCollectorDropListing, isPreOrderListing, isClearanceListing, normalizeListingType, } from "../utils/listing-type.js";
25
+ import { ClearanceItemsEditor } from "./ClearanceItemsEditor.js";
26
+ import { CLEARANCE_DURATION_DAYS_MIN, CLEARANCE_DURATION_DAYS_MAX, } from "../../../_internal/shared/checkout/rules/_limits.js";
27
27
  const PRIZE_REVEAL_MODE_OPTIONS = [
28
28
  { value: "instant", label: "Reveal immediately on purchase" },
29
29
  { value: "scheduled", label: "Reveal at expiry or sellout" },
@@ -31,7 +31,7 @@ const PRIZE_REVEAL_MODE_OPTIONS = [
31
31
  // ListingType uses the canonical SB1-G spellings ("standard", "pre-order");
32
32
  // ProductFeatureProductType predates it with legacy spellings for 2 values.
33
33
  // Replaces the old 2-case ternary that silently mapped every other type
34
- // (classified/digital-code/live/prize-draw/art/stickers) to "product".
34
+ // (classified/digital-code/live/clearance/art/stickers) to "product".
35
35
  const LISTING_TYPE_TO_FEATURE_PRODUCT_TYPE = {
36
36
  standard: "product",
37
37
  /*
@@ -42,14 +42,13 @@ const LISTING_TYPE_TO_FEATURE_PRODUCT_TYPE = {
42
42
  * i.e. a brand-new type with no features at all, which reads as a bug.
43
43
  */
44
44
  spares: "product",
45
- auction: "auction",
45
+ "collector-drop": "collector-drop",
46
46
  "pre-order": "preorder",
47
- "prize-draw": "prize-draw",
47
+ "clearance": "clearance",
48
48
  classified: "classified",
49
49
  "digital-code": "digital-code",
50
50
  live: "live",
51
- art: "art",
52
- stickers: "stickers",
51
+ "art-and-stickers": "art-and-stickers",
53
52
  };
54
53
  export const PRODUCT_STATUS_OPTIONS = [
55
54
  { value: "draft", label: "Draft" },
@@ -259,29 +258,29 @@ canEditTax = false, renderDescriptionEditor, renderCategorySelector, renderPrice
259
258
  ] })] }), _jsx(Checkbox, { label: t("formInsurance"), checked: !!product.insurance, onChange: (e) => update({
260
259
  insurance: e.target.checked,
261
260
  insuranceCost: e.target.checked ? product.insuranceCost || 0 : undefined,
262
- }), disabled: isReadonly }), product.insurance && (_jsxs(_Fragment, { children: [_jsx(Alert, { variant: "info", title: t("formInsuranceHelp"), children: t("formInsuranceHelp") }), _jsx(FormField, { name: "insuranceCost", label: t("formInsuranceCost"), type: "number", value: String(product.insuranceCost ?? ""), onChange: (value) => update({ insuranceCost: Number(value) }), disabled: isReadonly, placeholder: `${currencyPrefix}0` })] })), listingTypeFlags.auction && (_jsxs(_Fragment, { children: [_jsx(Heading, { level: 4, className: "mt-4", children: t("sectionAuctionSettings") }), _jsx(Checkbox, { label: t("formIsAuction"), checked: isAuctionListing(product), onChange: (e) => update({ listingType: e.target.checked ? "auction" : "standard" }), disabled: isReadonly })] })), isAuctionListing(product) && (_jsxs(_Fragment, { children: [_jsxs(FormGroup, { columns: 2, children: [_jsx(FormField, { name: "startingBid", label: t("formStartingBid"), type: "number", value: String(product.startingBid ?? ""), onChange: (value) => update({ startingBid: Number(value) }), disabled: isReadonly, placeholder: "0" }), _jsx(FormField, { name: "auctionEndDate", label: t("formAuctionEndDate"), type: "datetime-local", value: (() => {
263
- const d = resolveDate(product.auctionEndDate);
261
+ }), disabled: isReadonly }), product.insurance && (_jsxs(_Fragment, { children: [_jsx(Alert, { variant: "info", title: t("formInsuranceHelp"), children: t("formInsuranceHelp") }), _jsx(FormField, { name: "insuranceCost", label: t("formInsuranceCost"), type: "number", value: String(product.insuranceCost ?? ""), onChange: (value) => update({ insuranceCost: Number(value) }), disabled: isReadonly, placeholder: `${currencyPrefix}0` })] })), listingTypeFlags["collector-drop"] && (_jsxs(_Fragment, { children: [_jsx(Heading, { level: 4, className: "mt-4", children: t("sectionCollectorDropSettings") }), _jsx(Checkbox, { label: t("formIsCollectorDrop"), checked: isCollectorDropListing(product), onChange: (e) => update({ listingType: e.target.checked ? "collector-drop" : "standard" }), disabled: isReadonly })] })), isCollectorDropListing(product) && (_jsxs(_Fragment, { children: [_jsxs(FormGroup, { columns: 2, children: [_jsx(FormField, { name: "startingBid", label: t("formStartingBid"), type: "number", value: String(product.startingBid ?? ""), onChange: (value) => update({ startingBid: Number(value) }), disabled: isReadonly, placeholder: "0" }), _jsx(FormField, { name: "collectorDropEndDate", label: t("formCollectorDropEndDate"), type: "datetime-local", value: (() => {
262
+ const d = resolveDate(product.collectorDropEndDate);
264
263
  if (!d)
265
264
  return "";
266
265
  return d.toISOString().slice(0, 16);
267
- })(), onChange: (value) => update({ auctionEndDate: value }), disabled: isReadonly })] }), _jsxs(FormGroup, { columns: 2, children: [_jsx(FormField, { name: "reservePrice", label: t("formReservePrice"), type: "number", value: String(product.reservePrice ?? ""), onChange: (value) => update({ reservePrice: Number(value) || undefined }), disabled: isReadonly, placeholder: "0", helpText: t("formReservePriceHelp") }), _jsx(FormField, { name: "buyNowPrice", label: t("formBuyNowPrice"), type: "number", value: String(product.buyNowPrice ?? ""), onChange: (value) => update({ buyNowPrice: Number(value) || undefined }), disabled: isReadonly, placeholder: "0", helpText: t("formBuyNowPriceHelp") })] }), _jsx(FormField, { name: "minBidIncrement", label: t("formMinBidIncrement"), type: "number", value: String(product.minBidIncrement ?? ""), onChange: (value) => update({ minBidIncrement: Number(value) || undefined }), disabled: isReadonly, placeholder: "0", helpText: t("formMinBidIncrementHelp") }), _jsx(FormField, { name: "auctionShippingPaidBy", label: t("formAuctionShippingPaidBy"), type: "select", value: product.auctionShippingPaidBy || "winner", onChange: (value) => update({
268
- auctionShippingPaidBy: value,
266
+ })(), onChange: (value) => update({ collectorDropEndDate: value }), disabled: isReadonly })] }), _jsxs(FormGroup, { columns: 2, children: [_jsx(FormField, { name: "reservePrice", label: t("formReservePrice"), type: "number", value: String(product.reservePrice ?? ""), onChange: (value) => update({ reservePrice: Number(value) || undefined }), disabled: isReadonly, placeholder: "0", helpText: t("formReservePriceHelp") }), _jsx(FormField, { name: "buyNowPrice", label: t("formBuyNowPrice"), type: "number", value: String(product.buyNowPrice ?? ""), onChange: (value) => update({ buyNowPrice: Number(value) || undefined }), disabled: isReadonly, placeholder: "0", helpText: t("formBuyNowPriceHelp") })] }), _jsx(FormField, { name: "minBidIncrement", label: t("formMinBidIncrement"), type: "number", value: String(product.minBidIncrement ?? ""), onChange: (value) => update({ minBidIncrement: Number(value) || undefined }), disabled: isReadonly, placeholder: "0", helpText: t("formMinBidIncrementHelp") }), _jsx(FormField, { name: "collectorDropShippingPaidBy", label: t("formCollectorDropShippingPaidBy"), type: "select", value: product.collectorDropShippingPaidBy || "winner", onChange: (value) => update({
267
+ collectorDropShippingPaidBy: value,
269
268
  }), disabled: isReadonly, options: [
270
- { value: "winner", label: t("formAuctionShippingPaidByWinner") },
271
- { value: "seller", label: t("formAuctionShippingPaidBySeller") },
272
- ] }), _jsx(Text, { variant: "secondary", weight: "semibold", className: "mt-2", children: t("sectionAuctionAdvanced") }), _jsx(Checkbox, { label: t("formAutoExtendable"), checked: !!product.autoExtendable, onChange: (e) => update({ autoExtendable: e.target.checked }), disabled: isReadonly }), product.autoExtendable && (_jsxs(_Fragment, { children: [_jsx(Alert, { variant: "info", title: t("formAutoExtendableHelp"), children: t("formAutoExtendableHelp") }), _jsx(FormField, { name: "auctionExtensionMinutes", label: t("formAuctionExtensionMinutes"), type: "number", value: String(product.auctionExtensionMinutes ?? 5), onChange: (value) => update({ auctionExtensionMinutes: Number(value) || 5 }), disabled: isReadonly, placeholder: "5", helpText: t("formAuctionExtensionMinutesHelp") })] }))] })), listingTypeFlags["pre-order"] && (_jsxs(_Fragment, { children: [_jsx(Heading, { level: 4, className: "mt-4", children: t("sectionPreOrderSettings") }), _jsx(Checkbox, { label: t("formIsPreOrder"), checked: isPreOrderListing(product), onChange: (e) => update({ listingType: e.target.checked ? "pre-order" : "standard" }), disabled: isReadonly })] })), listingTypeFlags["prize-draw"] && (_jsxs(_Fragment, { children: [_jsx(Heading, { level: 4, className: "mt-4", children: "Prize Draw Settings" }), _jsx(Checkbox, { label: "This is a prize-draw listing", checked: isPrizeDrawListing(product), onChange: (e) => update({ listingType: e.target.checked ? "prize-draw" : "standard" }), disabled: isReadonly ||
273
- (product.prizeDrawItems ?? []).some((it) => it.isWon) })] })), isPrizeDrawListing(product) && ((() => {
269
+ { value: "winner", label: t("formCollectorDropShippingPaidByWinner") },
270
+ { value: "seller", label: t("formCollectorDropShippingPaidBySeller") },
271
+ ] }), _jsx(Text, { variant: "secondary", weight: "semibold", className: "mt-2", children: t("sectionCollectorDropAdvanced") }), _jsx(Checkbox, { label: t("formAutoExtendable"), checked: !!product.autoExtendable, onChange: (e) => update({ autoExtendable: e.target.checked }), disabled: isReadonly }), product.autoExtendable && (_jsxs(_Fragment, { children: [_jsx(Alert, { variant: "info", title: t("formAutoExtendableHelp"), children: t("formAutoExtendableHelp") }), _jsx(FormField, { name: "collectorDropExtensionMinutes", label: t("formCollectorDropExtensionMinutes"), type: "number", value: String(product.collectorDropExtensionMinutes ?? 5), onChange: (value) => update({ collectorDropExtensionMinutes: Number(value) || 5 }), disabled: isReadonly, placeholder: "5", helpText: t("formCollectorDropExtensionMinutesHelp") })] }))] })), listingTypeFlags["pre-order"] && (_jsxs(_Fragment, { children: [_jsx(Heading, { level: 4, className: "mt-4", children: t("sectionPreOrderSettings") }), _jsx(Checkbox, { label: t("formIsPreOrder"), checked: isPreOrderListing(product), onChange: (e) => update({ listingType: e.target.checked ? "pre-order" : "standard" }), disabled: isReadonly })] })), listingTypeFlags["clearance"] && (_jsxs(_Fragment, { children: [_jsx(Heading, { level: 4, className: "mt-4", children: "Clearance Settings" }), _jsx(Checkbox, { label: "This is a clearance listing", checked: isClearanceListing(product), onChange: (e) => update({ listingType: e.target.checked ? "clearance" : "standard" }), disabled: isReadonly ||
272
+ (product.prizeDrawItems ?? []).some((it) => it.isWon) })] })), isClearanceListing(product) && ((() => {
274
273
  const prizeItems = (product.prizeDrawItems ?? []);
275
274
  const anyWon = prizeItems.some((it) => it.isWon);
276
275
  const lockedForReveal = anyWon;
277
276
  const fieldDisabled = isReadonly || lockedForReveal;
278
- return (_jsxs(_Fragment, { children: [lockedForReveal ? (_jsx(Alert, { variant: "error", title: "Listing locked", children: "At least one prize has been revealed for this draw \u2014 the listing and its fields are now frozen. To rerun a similar draw, clone it into a new prize-draw listing." })) : null, _jsx(Alert, { variant: "warning", title: "Non-refundable", children: "Prize-draw entries are non-refundable once purchased. Buyers see and must accept this notice before paying." }), _jsxs(FormGroup, { columns: 2, children: [_jsx(FormField, { name: "pricePerEntry", label: "Price per entry (\u20B9)", type: "number", value: product.pricePerEntry != null
277
+ return (_jsxs(_Fragment, { children: [lockedForReveal ? (_jsx(Alert, { variant: "error", title: "Listing locked", children: "At least one prize has been revealed for this draw \u2014 the listing and its fields are now frozen. To rerun a similar draw, clone it into a new clearance listing." })) : null, _jsx(Alert, { variant: "warning", title: "Non-refundable", children: "Clearance entries are non-refundable once purchased. Buyers see and must accept this notice before paying." }), _jsxs(FormGroup, { columns: 2, children: [_jsx(FormField, { name: "pricePerEntry", label: "Price per entry (\u20B9)", type: "number", value: product.pricePerEntry != null
279
278
  ? String(product.pricePerEntry)
280
279
  : "", onChange: (value) => update({
281
280
  pricePerEntry: Math.round((parseFloat(value) || 0) * 100) / 100,
282
- }), disabled: fieldDisabled, placeholder: "299" }), _jsx(FormField, { name: "prizeMaxEntries", label: "Max entries (pool size)", type: "number", value: String(product.prizeMaxEntries ?? ""), onChange: (value) => update({ prizeMaxEntries: Number(value) || undefined }), disabled: fieldDisabled, placeholder: "100" })] }), _jsxs(FormGroup, { columns: 2, children: [_jsx(FormField, { name: "prizeDrawDurationDays", label: "Draw duration (days)", type: "number", value: String(product.prizeDrawDurationDays ?? ""), onChange: (value) => update({ prizeDrawDurationDays: Number(value) || undefined }), disabled: fieldDisabled, placeholder: "7", helpText: `Draw runs this many days from publish, or until sold out — whichever comes first. ${PRIZE_DRAW_DURATION_DAYS_MIN}–${PRIZE_DRAW_DURATION_DAYS_MAX} days.` }), _jsx(FormField, { name: "prizeRevealMode", label: "Reveal mode", type: "select", value: product.prizeRevealMode ?? "scheduled", onChange: (value) => update({ prizeRevealMode: value }), disabled: fieldDisabled, options: PRIZE_REVEAL_MODE_OPTIONS })] }), _jsxs(FormGroup, { columns: 2, children: [_jsx(FormField, { name: "maxPerUser", label: "Max entries per customer (blank = unlimited)", type: "number", value: String(product.maxPerUser ?? ""), onChange: (value) => update({ maxPerUser: Number(value) || undefined }), disabled: fieldDisabled, placeholder: "" }), _jsx(Div, {})] }), product.prizeGithubFileUrl ? (_jsx(FormField, { name: "prizeGithubFileUrl", label: "RNG Source Code URL (read-only)", type: "text", value: product.prizeGithubFileUrl, onChange: () => { }, disabled: true, helpText: "Auto-set on first save. Public proof-of-fairness link." })) : null, _jsx(PrizeDrawItemsEditor, { items: (product.prizeDrawItems ?? []), onChange: (items) => update({ prizeDrawItems: items }), onUploadImage: (file) =>
281
+ }), disabled: fieldDisabled, placeholder: "299" }), _jsx(FormField, { name: "prizeMaxEntries", label: "Max entries (pool size)", type: "number", value: String(product.prizeMaxEntries ?? ""), onChange: (value) => update({ prizeMaxEntries: Number(value) || undefined }), disabled: fieldDisabled, placeholder: "100" })] }), _jsxs(FormGroup, { columns: 2, children: [_jsx(FormField, { name: "prizeDrawDurationDays", label: "Draw duration (days)", type: "number", value: String(product.prizeDrawDurationDays ?? ""), onChange: (value) => update({ prizeDrawDurationDays: Number(value) || undefined }), disabled: fieldDisabled, placeholder: "7", helpText: `Draw runs this many days from publish, or until sold out — whichever comes first. ${CLEARANCE_DURATION_DAYS_MIN}–${CLEARANCE_DURATION_DAYS_MAX} days.` }), _jsx(FormField, { name: "prizeRevealMode", label: "Reveal mode", type: "select", value: product.prizeRevealMode ?? "scheduled", onChange: (value) => update({ prizeRevealMode: value }), disabled: fieldDisabled, options: PRIZE_REVEAL_MODE_OPTIONS })] }), _jsxs(FormGroup, { columns: 2, children: [_jsx(FormField, { name: "maxPerUser", label: "Max entries per customer (blank = unlimited)", type: "number", value: String(product.maxPerUser ?? ""), onChange: (value) => update({ maxPerUser: Number(value) || undefined }), disabled: fieldDisabled, placeholder: "" }), _jsx(Div, {})] }), product.prizeGithubFileUrl ? (_jsx(FormField, { name: "prizeGithubFileUrl", label: "RNG Source Code URL (read-only)", type: "text", value: product.prizeGithubFileUrl, onChange: () => { }, disabled: true, helpText: "Auto-set on first save. Public proof-of-fairness link." })) : null, _jsx(ClearanceItemsEditor, { items: (product.prizeDrawItems ?? []), onChange: (items) => update({ prizeDrawItems: items }), onUploadImage: (file) =>
283
282
  // Caller is expected to wire a real uploader by overriding
284
- // renderPrizeDrawImageUpload — fall back to data URL preview
283
+ // renderClearanceImageUpload — fall back to data URL preview
285
284
  // so the editor still functions in unwired admin contexts.
286
285
  readFileAsDataUrl(file) })] }));
287
286
  })()), isPreOrderListing(product) && (_jsxs(_Fragment, { children: [_jsxs(FormGroup, { columns: 2, children: [_jsx(FormField, { name: "preOrderDeliveryDate", label: t("formPreOrderDeliveryDate"), type: "datetime-local", value: (() => {
@@ -306,12 +305,12 @@ canEditTax = false, renderDescriptionEditor, renderCategorySelector, renderPrice
306
305
  value: product.pickupAddressId || "",
307
306
  onChange: (value) => update({ pickupAddressId: value }),
308
307
  disabled: isReadonly,
309
- }) })) : (_jsx(FormField, { name: "pickupAddressId", label: t("formPickupAddress"), type: "text", value: product.pickupAddressId || "", onChange: (value) => update({ pickupAddressId: value }), disabled: isReadonly })), _jsx(SublistingCategorySelect, { value: product.sublistingCategoryId ?? "", onChange: (id) => update({ sublistingCategoryId: id || undefined }), disabled: isReadonly, allowCreate: true }), !isAuctionListing(product) && renderGroupJoinField?.({
308
+ }) })) : (_jsx(FormField, { name: "pickupAddressId", label: t("formPickupAddress"), type: "text", value: product.pickupAddressId || "", onChange: (value) => update({ pickupAddressId: value }), disabled: isReadonly })), _jsx(SublistingCategorySelect, { value: product.sublistingCategoryId ?? "", onChange: (id) => update({ sublistingCategoryId: id || undefined }), disabled: isReadonly, allowCreate: true }), !isCollectorDropListing(product) && renderGroupJoinField?.({
310
309
  label: "Group (optional)",
311
310
  value: product.groupId,
312
311
  onChange: (id) => update({ groupId: id || undefined }),
313
312
  disabled: isReadonly,
314
- }), !isAuctionListing(product) && renderGroupSettings?.(product), _jsx(ProductFeaturesSelector, { value: product.features ?? [], onChange: (features) => update({ features }), productType: LISTING_TYPE_TO_FEATURE_PRODUCT_TYPE[normalizeListingType(product)], storeId: product.storeId, disabled: isReadonly }), _jsxs(Div, { children: [_jsx(Heading, { level: 3, className: "mb-1", color: "muted", size: "sm", weight: "semibold", children: "Custom Sections" }), _jsx(Text, { className: "mb-3", color: "muted", size: "xs", children: "Add up to 3 custom tabs to your product page \u2014 e.g. \"Box Contents\", \"Compatibility\", \"Grading Details\"." }), _jsx(CustomSectionsEditor, { sections: product.customSections ?? [], onChange: (sections) => update({ customSections: sections }) })] }), _jsx(FormField, { name: "shippingInfo", label: t("formShipping"), type: "textarea", value: product.shippingInfo || "", onChange: (value) => update({ shippingInfo: value }), disabled: isReadonly, placeholder: "Shipping information..." }), _jsxs(Div, { children: [_jsx(Toggle, { checked: !isFinalSale(product), onChange: (checked) => update({ finalSale: !checked }), disabled: isReadonly, label: "Accept change-of-mind returns" }), _jsx(Text, { className: "mt-1", size: "xs", color: "muted", children: isFinalSale(product)
313
+ }), !isCollectorDropListing(product) && renderGroupSettings?.(product), _jsx(ProductFeaturesSelector, { value: product.features ?? [], onChange: (features) => update({ features }), productType: LISTING_TYPE_TO_FEATURE_PRODUCT_TYPE[normalizeListingType(product)], storeId: product.storeId, disabled: isReadonly }), _jsxs(Div, { children: [_jsx(Heading, { level: 3, className: "mb-1", color: "muted", size: "sm", weight: "semibold", children: "Custom Sections" }), _jsx(Text, { className: "mb-3", color: "muted", size: "xs", children: "Add up to 3 custom tabs to your product page \u2014 e.g. \"Box Contents\", \"Compatibility\", \"Grading Details\"." }), _jsx(CustomSectionsEditor, { sections: product.customSections ?? [], onChange: (sections) => update({ customSections: sections }) })] }), _jsx(FormField, { name: "shippingInfo", label: t("formShipping"), type: "textarea", value: product.shippingInfo || "", onChange: (value) => update({ shippingInfo: value }), disabled: isReadonly, placeholder: "Shipping information..." }), _jsxs(Div, { children: [_jsx(Toggle, { checked: !isFinalSale(product), onChange: (checked) => update({ finalSale: !checked }), disabled: isReadonly, label: "Accept change-of-mind returns" }), _jsx(Text, { className: "mt-1", size: "xs", color: "muted", children: isFinalSale(product)
315
314
  ? "Final sale (default). Not-received, damaged, wrong-item, not-as-described and counterfeit claims are still accepted."
316
315
  : "Buyers can return this listing within the platform return window for any reason." })] }), _jsx(FormField, { name: "returnPolicy", label: t("formReturnPolicy"), type: "textarea", value: product.returnPolicy || "", onChange: (value) => update({ returnPolicy: value }), disabled: isReadonly, placeholder: "Return policy details..." }), _jsxs(Div, { children: [_jsx(Heading, { level: 3, className: "mb-1", color: "muted", size: "sm", weight: "semibold", children: "Physical Inventory" }), existingLocation ? (_jsxs(Text, { className: "mb-3", color: "muted", size: "xs", children: ["Legacy location on this listing: ", _jsx(Span, { weight: "semibold", children: existingLocation }), ". It is still printed on labels, but it is free text with no box behind it \u2014 place this item in a storage box to replace it."] })) : (_jsx(Text, { className: "mb-3", color: "muted", size: "xs", children: "Where this item is stored is recorded by placing it in a storage box, not typed here \u2014 a placement has a quantity, and one product can sit in two boxes. Use the receive station or the box's own page." }))] }), product.storeName && (_jsx(FormField, { name: "storeName", label: t("formSeller"), type: "text", value: product.storeName, onChange: () => { }, disabled: true }))] }));
317
316
  }