@mohasinac/appkit 2.6.3 → 2.6.5

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 (615) hide show
  1. package/dist/_internal/server/features/account/data.js +2 -2
  2. package/dist/_internal/server/features/bundles/data.d.ts +26 -6
  3. package/dist/_internal/server/features/bundles/data.js +41 -6
  4. package/dist/_internal/server/features/bundles/index.d.ts +3 -2
  5. package/dist/_internal/server/features/bundles/index.js +4 -2
  6. package/dist/_internal/server/features/bundles/metadata.d.ts +20 -0
  7. package/dist/_internal/server/features/bundles/metadata.js +46 -0
  8. package/dist/_internal/server/features/bundles/og.d.ts +38 -0
  9. package/dist/_internal/server/features/bundles/og.js +122 -0
  10. package/dist/_internal/server/features/checkout/actions.js +192 -133
  11. package/dist/_internal/server/features/checkout/bundle-expansion.d.ts +57 -0
  12. package/dist/_internal/server/features/checkout/bundle-expansion.js +70 -0
  13. package/dist/_internal/server/features/checkout/prize-bundle-gates.d.ts +5 -15
  14. package/dist/_internal/server/features/checkout/prize-bundle-gates.js +5 -21
  15. package/dist/_internal/server/features/media/contextGuards.js +15 -1
  16. package/dist/_internal/server/features/payouts/actions.d.ts +19 -0
  17. package/dist/_internal/server/features/payouts/actions.js +38 -0
  18. package/dist/_internal/server/features/products/data.js +1 -2
  19. package/dist/_internal/server/features/raffle/actions.d.ts +11 -0
  20. package/dist/_internal/server/features/raffle/actions.js +31 -0
  21. package/dist/_internal/server/features/refunds/actions.d.ts +31 -0
  22. package/dist/_internal/server/features/refunds/actions.js +77 -0
  23. package/dist/_internal/server/jobs/core/adminAnalytics.d.ts +28 -0
  24. package/dist/_internal/server/jobs/core/adminAnalytics.js +98 -0
  25. package/dist/_internal/server/jobs/core/assignSpinPrize.d.ts +19 -0
  26. package/dist/_internal/server/jobs/core/assignSpinPrize.js +81 -0
  27. package/dist/_internal/server/jobs/core/auctionSettlement.d.ts +2 -0
  28. package/dist/_internal/server/jobs/core/auctionSettlement.js +70 -0
  29. package/dist/_internal/server/jobs/core/autoPayoutEligibility.d.ts +2 -0
  30. package/dist/_internal/server/jobs/core/autoPayoutEligibility.js +109 -0
  31. package/dist/_internal/server/jobs/core/bundleStockSync.d.ts +10 -0
  32. package/dist/_internal/server/jobs/core/bundleStockSync.js +71 -0
  33. package/dist/_internal/server/jobs/core/cartPrune.d.ts +2 -0
  34. package/dist/_internal/server/jobs/core/cartPrune.js +13 -0
  35. package/dist/_internal/server/jobs/core/cleanupRtdbEvents.d.ts +2 -0
  36. package/dist/_internal/server/jobs/core/cleanupRtdbEvents.js +45 -0
  37. package/dist/_internal/server/jobs/core/countersReconcile.d.ts +2 -0
  38. package/dist/_internal/server/jobs/core/countersReconcile.js +107 -0
  39. package/dist/_internal/server/jobs/core/couponExpiry.d.ts +2 -0
  40. package/dist/_internal/server/jobs/core/couponExpiry.js +13 -0
  41. package/dist/_internal/server/jobs/core/dailyDataCleanup.d.ts +2 -0
  42. package/dist/_internal/server/jobs/core/dailyDataCleanup.js +20 -0
  43. package/dist/_internal/server/jobs/core/index.d.ts +44 -0
  44. package/dist/_internal/server/jobs/core/index.js +47 -0
  45. package/dist/_internal/server/jobs/core/listingProcessor.d.ts +30 -0
  46. package/dist/_internal/server/jobs/core/listingProcessor.js +138 -0
  47. package/dist/_internal/server/jobs/core/mediaTmpCleanup.d.ts +14 -0
  48. package/dist/_internal/server/jobs/core/mediaTmpCleanup.js +68 -0
  49. package/dist/_internal/server/jobs/core/notificationPrune.d.ts +2 -0
  50. package/dist/_internal/server/jobs/core/notificationPrune.js +13 -0
  51. package/dist/_internal/server/jobs/core/offerExpiry.d.ts +2 -0
  52. package/dist/_internal/server/jobs/core/offerExpiry.js +50 -0
  53. package/dist/_internal/server/jobs/core/onBidPlaced.d.ts +15 -0
  54. package/dist/_internal/server/jobs/core/onBidPlaced.js +59 -0
  55. package/dist/_internal/server/jobs/core/onCategoryWrite.d.ts +14 -0
  56. package/dist/_internal/server/jobs/core/onCategoryWrite.js +134 -0
  57. package/dist/_internal/server/jobs/core/onOrderCreate.d.ts +18 -0
  58. package/dist/_internal/server/jobs/core/onOrderCreate.js +78 -0
  59. package/dist/_internal/server/jobs/core/onOrderStatusChange.d.ts +19 -0
  60. package/dist/_internal/server/jobs/core/onOrderStatusChange.js +139 -0
  61. package/dist/_internal/server/jobs/core/onProductStockChange.d.ts +23 -0
  62. package/dist/_internal/server/jobs/core/onProductStockChange.js +130 -0
  63. package/dist/_internal/server/jobs/core/onProductWrite.d.ts +12 -0
  64. package/dist/_internal/server/jobs/core/onProductWrite.js +94 -0
  65. package/dist/_internal/server/jobs/core/onReviewWrite.d.ts +7 -0
  66. package/dist/_internal/server/jobs/core/onReviewWrite.js +49 -0
  67. package/dist/_internal/server/jobs/core/onStoreWrite.d.ts +12 -0
  68. package/dist/_internal/server/jobs/core/onStoreWrite.js +7 -0
  69. package/dist/_internal/server/jobs/core/payoutBatch.d.ts +8 -0
  70. package/dist/_internal/server/jobs/core/payoutBatch.js +102 -0
  71. package/dist/_internal/server/jobs/core/pendingOrderTimeout.d.ts +2 -0
  72. package/dist/_internal/server/jobs/core/pendingOrderTimeout.js +27 -0
  73. package/dist/_internal/server/jobs/core/positionsReconcile.d.ts +7 -0
  74. package/dist/_internal/server/jobs/core/positionsReconcile.js +87 -0
  75. package/dist/_internal/server/jobs/core/prizeRevealClose.d.ts +2 -0
  76. package/dist/_internal/server/jobs/core/prizeRevealClose.js +22 -0
  77. package/dist/_internal/server/jobs/core/prizeRevealExpiry.d.ts +2 -0
  78. package/dist/_internal/server/jobs/core/prizeRevealExpiry.js +50 -0
  79. package/dist/_internal/server/jobs/core/prizeRevealOpen.d.ts +2 -0
  80. package/dist/_internal/server/jobs/core/prizeRevealOpen.js +56 -0
  81. package/dist/_internal/server/jobs/core/prizeRevealReminder.d.ts +2 -0
  82. package/dist/_internal/server/jobs/core/prizeRevealReminder.js +38 -0
  83. package/dist/_internal/server/jobs/core/productStatsSync.d.ts +8 -0
  84. package/dist/_internal/server/jobs/core/productStatsSync.js +36 -0
  85. package/dist/_internal/server/jobs/core/promotions.d.ts +12 -0
  86. package/dist/_internal/server/jobs/core/promotions.js +43 -0
  87. package/dist/_internal/server/jobs/core/storeAnalytics.d.ts +30 -0
  88. package/dist/_internal/server/jobs/core/storeAnalytics.js +109 -0
  89. package/dist/_internal/server/jobs/core/triggerEventRaffle.d.ts +19 -0
  90. package/dist/_internal/server/jobs/core/triggerEventRaffle.js +86 -0
  91. package/dist/_internal/server/jobs/core/weeklyPayoutEligibility.d.ts +6 -0
  92. package/dist/_internal/server/jobs/core/weeklyPayoutEligibility.js +85 -0
  93. package/dist/_internal/server/jobs/handlers/adminAnalytics.d.ts +2 -26
  94. package/dist/_internal/server/jobs/handlers/adminAnalytics.js +2 -98
  95. package/dist/_internal/server/jobs/handlers/assignSpinPrize.d.ts +1 -22
  96. package/dist/_internal/server/jobs/handlers/assignSpinPrize.js +2 -86
  97. package/dist/_internal/server/jobs/handlers/auctionSettlement.js +2 -70
  98. package/dist/_internal/server/jobs/handlers/autoPayoutEligibility.js +2 -110
  99. package/dist/_internal/server/jobs/handlers/bundleStockSync.d.ts +0 -16
  100. package/dist/_internal/server/jobs/handlers/bundleStockSync.js +2 -80
  101. package/dist/_internal/server/jobs/handlers/cartPrune.js +2 -13
  102. package/dist/_internal/server/jobs/handlers/cleanupRtdbEvents.js +2 -45
  103. package/dist/_internal/server/jobs/handlers/countersReconcile.js +2 -109
  104. package/dist/_internal/server/jobs/handlers/couponExpiry.js +2 -13
  105. package/dist/_internal/server/jobs/handlers/dailyDataCleanup.js +2 -20
  106. package/dist/_internal/server/jobs/handlers/listingProcessor.d.ts +3 -28
  107. package/dist/_internal/server/jobs/handlers/listingProcessor.js +3 -138
  108. package/dist/_internal/server/jobs/handlers/mediaTmpCleanup.d.ts +0 -12
  109. package/dist/_internal/server/jobs/handlers/mediaTmpCleanup.js +2 -69
  110. package/dist/_internal/server/jobs/handlers/notificationPrune.js +2 -13
  111. package/dist/_internal/server/jobs/handlers/offerExpiry.js +2 -50
  112. package/dist/_internal/server/jobs/handlers/onBidPlaced.d.ts +1 -10
  113. package/dist/_internal/server/jobs/handlers/onBidPlaced.js +2 -56
  114. package/dist/_internal/server/jobs/handlers/onCategoryWrite.d.ts +1 -8
  115. package/dist/_internal/server/jobs/handlers/onCategoryWrite.js +6 -134
  116. package/dist/_internal/server/jobs/handlers/onOrderCreate.d.ts +1 -12
  117. package/dist/_internal/server/jobs/handlers/onOrderCreate.js +2 -76
  118. package/dist/_internal/server/jobs/handlers/onOrderStatusChange.d.ts +1 -12
  119. package/dist/_internal/server/jobs/handlers/onOrderStatusChange.js +2 -139
  120. package/dist/_internal/server/jobs/handlers/onProductStockChange.d.ts +0 -13
  121. package/dist/_internal/server/jobs/handlers/onProductStockChange.js +7 -134
  122. package/dist/_internal/server/jobs/handlers/onProductWrite.d.ts +1 -6
  123. package/dist/_internal/server/jobs/handlers/onProductWrite.js +6 -106
  124. package/dist/_internal/server/jobs/handlers/onReviewWrite.js +2 -49
  125. package/dist/_internal/server/jobs/handlers/onStoreWrite.d.ts +1 -8
  126. package/dist/_internal/server/jobs/handlers/onStoreWrite.js +7 -8
  127. package/dist/_internal/server/jobs/handlers/payoutBatch.d.ts +0 -9
  128. package/dist/_internal/server/jobs/handlers/payoutBatch.js +2 -104
  129. package/dist/_internal/server/jobs/handlers/pendingOrderTimeout.d.ts +0 -6
  130. package/dist/_internal/server/jobs/handlers/pendingOrderTimeout.js +2 -33
  131. package/dist/_internal/server/jobs/handlers/positionsReconcile.d.ts +0 -5
  132. package/dist/_internal/server/jobs/handlers/positionsReconcile.js +2 -87
  133. package/dist/_internal/server/jobs/handlers/prizeRevealClose.d.ts +0 -7
  134. package/dist/_internal/server/jobs/handlers/prizeRevealClose.js +2 -29
  135. package/dist/_internal/server/jobs/handlers/prizeRevealExpiry.d.ts +0 -8
  136. package/dist/_internal/server/jobs/handlers/prizeRevealExpiry.js +2 -58
  137. package/dist/_internal/server/jobs/handlers/prizeRevealOpen.d.ts +0 -8
  138. package/dist/_internal/server/jobs/handlers/prizeRevealOpen.js +2 -65
  139. package/dist/_internal/server/jobs/handlers/prizeRevealReminder.d.ts +0 -7
  140. package/dist/_internal/server/jobs/handlers/prizeRevealReminder.js +2 -45
  141. package/dist/_internal/server/jobs/handlers/productStatsSync.d.ts +0 -6
  142. package/dist/_internal/server/jobs/handlers/productStatsSync.js +2 -36
  143. package/dist/_internal/server/jobs/handlers/promotions.d.ts +2 -10
  144. package/dist/_internal/server/jobs/handlers/promotions.js +2 -43
  145. package/dist/_internal/server/jobs/handlers/storeAnalytics.d.ts +2 -28
  146. package/dist/_internal/server/jobs/handlers/storeAnalytics.js +2 -109
  147. package/dist/_internal/server/jobs/handlers/triggerEventRaffle.d.ts +1 -28
  148. package/dist/_internal/server/jobs/handlers/triggerEventRaffle.js +2 -94
  149. package/dist/_internal/server/jobs/handlers/weeklyPayoutEligibility.d.ts +0 -6
  150. package/dist/_internal/server/jobs/handlers/weeklyPayoutEligibility.js +2 -87
  151. package/dist/_internal/server/jobs/index.d.ts +1 -0
  152. package/dist/_internal/server/jobs/index.js +1 -0
  153. package/dist/_internal/server/jobs/runtime/adapters/firebase.js +21 -0
  154. package/dist/_internal/shared/actions/action-registry.d.ts +84 -0
  155. package/dist/_internal/shared/actions/action-registry.js +160 -0
  156. package/dist/_internal/shared/checkout/rules/_defaults.d.ts +3 -0
  157. package/dist/_internal/shared/checkout/rules/_defaults.js +22 -0
  158. package/dist/_internal/shared/checkout/rules/_limits.d.ts +19 -0
  159. package/dist/_internal/shared/checkout/rules/_limits.js +19 -0
  160. package/dist/_internal/shared/checkout/rules/_registry.d.ts +44 -0
  161. package/dist/_internal/shared/checkout/rules/_registry.js +87 -0
  162. package/dist/_internal/shared/checkout/rules/auction.rule.d.ts +2 -0
  163. package/dist/_internal/shared/checkout/rules/auction.rule.js +10 -0
  164. package/dist/_internal/shared/checkout/rules/bundle.rule.d.ts +11 -0
  165. package/dist/_internal/shared/checkout/rules/bundle.rule.js +6 -0
  166. package/dist/_internal/shared/checkout/rules/classified.rule.d.ts +9 -0
  167. package/dist/_internal/shared/checkout/rules/classified.rule.js +9 -0
  168. package/dist/_internal/shared/checkout/rules/digital-code.rule.d.ts +8 -0
  169. package/dist/_internal/shared/checkout/rules/digital-code.rule.js +6 -0
  170. package/dist/_internal/shared/checkout/rules/index.d.ts +12 -0
  171. package/dist/_internal/shared/checkout/rules/index.js +12 -0
  172. package/dist/_internal/shared/checkout/rules/live.rule.d.ts +10 -0
  173. package/dist/_internal/shared/checkout/rules/live.rule.js +6 -0
  174. package/dist/_internal/shared/checkout/rules/offer.rule.d.ts +2 -0
  175. package/dist/_internal/shared/checkout/rules/offer.rule.js +9 -0
  176. package/dist/_internal/shared/checkout/rules/preorder.rule.d.ts +2 -0
  177. package/dist/_internal/shared/checkout/rules/preorder.rule.js +28 -0
  178. package/dist/_internal/shared/checkout/rules/prize-draw.rule.d.ts +2 -0
  179. package/dist/_internal/shared/checkout/rules/prize-draw.rule.js +65 -0
  180. package/dist/_internal/shared/checkout/rules/standard.rule.d.ts +2 -0
  181. package/dist/_internal/shared/checkout/rules/standard.rule.js +5 -0
  182. package/dist/_internal/shared/checkout/rules/types.d.ts +125 -0
  183. package/dist/_internal/shared/checkout/rules/types.js +13 -0
  184. package/dist/_internal/shared/features/cart/schema.d.ts +6 -6
  185. package/dist/_internal/shared/features/categories/bundle-copy.d.ts +123 -0
  186. package/dist/_internal/shared/features/categories/bundle-copy.js +134 -0
  187. package/dist/_internal/shared/features/categories/bundle-schemas.d.ts +318 -0
  188. package/dist/_internal/shared/features/categories/bundle-schemas.js +55 -0
  189. package/dist/_internal/shared/features/events/schema.d.ts +4 -4
  190. package/dist/_internal/shared/features/orders/refund-copy.d.ts +36 -0
  191. package/dist/_internal/shared/features/orders/refund-copy.js +40 -0
  192. package/dist/_internal/shared/features/orders/schema.d.ts +4 -4
  193. package/dist/_internal/shared/features/products/schema.d.ts +8 -8
  194. package/dist/_internal/shared/listing-types/_registry.d.ts +27 -0
  195. package/dist/_internal/shared/listing-types/_registry.js +8 -0
  196. package/dist/_internal/shared/listing-types/action-tracker.d.ts +41 -0
  197. package/dist/_internal/shared/listing-types/action-tracker.js +70 -0
  198. package/dist/_internal/shared/listing-types/capabilities.js +25 -0
  199. package/dist/_internal/shared/listing-types/cart-shipping.d.ts +37 -0
  200. package/dist/_internal/shared/listing-types/cart-shipping.js +46 -0
  201. package/dist/_internal/shared/listing-types/classified/config.d.ts +7 -0
  202. package/dist/_internal/shared/listing-types/classified/config.js +8 -0
  203. package/dist/_internal/shared/listing-types/classified/ctas.d.ts +1 -0
  204. package/dist/_internal/shared/listing-types/classified/ctas.js +3 -0
  205. package/dist/_internal/shared/listing-types/classified/og.d.ts +1 -0
  206. package/dist/_internal/shared/listing-types/classified/og.js +1 -0
  207. package/dist/_internal/shared/listing-types/classified/schema.d.ts +1 -0
  208. package/dist/_internal/shared/listing-types/classified/schema.js +1 -0
  209. package/dist/_internal/shared/listing-types/classified/seed-factory.d.ts +1 -0
  210. package/dist/_internal/shared/listing-types/classified/seed-factory.js +1 -0
  211. package/dist/_internal/shared/listing-types/digital-code/config.d.ts +7 -0
  212. package/dist/_internal/shared/listing-types/digital-code/config.js +8 -0
  213. package/dist/_internal/shared/listing-types/digital-code/ctas.d.ts +1 -0
  214. package/dist/_internal/shared/listing-types/digital-code/ctas.js +3 -0
  215. package/dist/_internal/shared/listing-types/digital-code/og.d.ts +1 -0
  216. package/dist/_internal/shared/listing-types/digital-code/og.js +1 -0
  217. package/dist/_internal/shared/listing-types/digital-code/schema.d.ts +1 -0
  218. package/dist/_internal/shared/listing-types/digital-code/schema.js +1 -0
  219. package/dist/_internal/shared/listing-types/digital-code/seed-factory.d.ts +1 -0
  220. package/dist/_internal/shared/listing-types/digital-code/seed-factory.js +1 -0
  221. package/dist/_internal/shared/listing-types/feature-flags.d.ts +34 -0
  222. package/dist/_internal/shared/listing-types/feature-flags.js +45 -0
  223. package/dist/_internal/shared/listing-types/live/config.d.ts +7 -0
  224. package/dist/_internal/shared/listing-types/live/config.js +8 -0
  225. package/dist/_internal/shared/listing-types/live/ctas.d.ts +1 -0
  226. package/dist/_internal/shared/listing-types/live/ctas.js +3 -0
  227. package/dist/_internal/shared/listing-types/live/og.d.ts +1 -0
  228. package/dist/_internal/shared/listing-types/live/og.js +1 -0
  229. package/dist/_internal/shared/listing-types/live/schema.d.ts +1 -0
  230. package/dist/_internal/shared/listing-types/live/schema.js +1 -0
  231. package/dist/_internal/shared/listing-types/live/seed-factory.d.ts +1 -0
  232. package/dist/_internal/shared/listing-types/live/seed-factory.js +1 -0
  233. package/dist/_internal/shared/media/limits.js +8 -0
  234. package/dist/client.d.ts +10 -5
  235. package/dist/client.js +16 -3
  236. package/dist/configs/next.js +7 -0
  237. package/dist/constants/api-endpoints.d.ts +6 -0
  238. package/dist/constants/api-endpoints.js +4 -0
  239. package/dist/core/hooks/useSyncManager.js +13 -1
  240. package/dist/core/unit-of-work.d.ts +1 -1
  241. package/dist/core/unit-of-work.js +2 -2
  242. package/dist/features/account/actions/address-actions.d.ts +1 -1
  243. package/dist/features/account/actions/address-actions.js +15 -7
  244. package/dist/features/account/schemas/firestore.d.ts +8 -43
  245. package/dist/features/account/schemas/firestore.js +8 -54
  246. package/dist/features/account/schemas/index.d.ts +6 -6
  247. package/dist/features/account/server.d.ts +1 -1
  248. package/dist/features/account/server.js +3 -1
  249. package/dist/features/addresses/index.d.ts +2 -0
  250. package/dist/features/addresses/index.js +2 -0
  251. package/dist/features/addresses/repository/addresses.repository.d.ts +29 -0
  252. package/dist/features/addresses/repository/addresses.repository.js +157 -0
  253. package/dist/features/addresses/schemas/firestore.d.ts +53 -0
  254. package/dist/features/addresses/schemas/firestore.js +68 -0
  255. package/dist/features/{bundles → addresses}/schemas/index.d.ts +0 -1
  256. package/dist/features/{bundles → addresses}/schemas/index.js +0 -1
  257. package/dist/features/addresses/server.d.ts +2 -0
  258. package/dist/features/addresses/server.js +2 -0
  259. package/dist/features/admin/components/AdminAllEventEntriesView.js +4 -3
  260. package/dist/features/admin/components/AdminBidsView.js +4 -3
  261. package/dist/features/admin/components/AdminBlogView.js +8 -3
  262. package/dist/features/admin/components/AdminBundleEditorView.d.ts +9 -0
  263. package/dist/features/admin/components/AdminBundleEditorView.js +209 -0
  264. package/dist/features/admin/components/AdminBundlesView.d.ts +9 -0
  265. package/dist/features/admin/components/AdminBundlesView.js +59 -0
  266. package/dist/features/admin/components/AdminCartsView.js +13 -3
  267. package/dist/features/admin/components/AdminContactView.js +4 -3
  268. package/dist/features/admin/components/AdminCouponsView.js +32 -13
  269. package/dist/features/admin/components/AdminNewsletterView.js +4 -3
  270. package/dist/features/admin/components/AdminOrdersView.js +15 -7
  271. package/dist/features/admin/components/AdminPayoutsView.js +4 -3
  272. package/dist/features/admin/components/AdminPrizeDrawsView.d.ts +4 -0
  273. package/dist/features/admin/components/AdminPrizeDrawsView.js +135 -0
  274. package/dist/features/admin/components/AdminProductsView.js +6 -5
  275. package/dist/features/admin/components/AdminReviewsView.js +5 -4
  276. package/dist/features/admin/components/AdminStoresView.js +4 -3
  277. package/dist/features/admin/components/AdminUsersView.js +15 -5
  278. package/dist/features/admin/components/AdminWishlistsView.js +10 -1
  279. package/dist/features/admin/components/DataTable.d.ts +5 -1
  280. package/dist/features/admin/components/DataTable.js +24 -20
  281. package/dist/features/admin/components/index.d.ts +6 -0
  282. package/dist/features/admin/components/index.js +5 -0
  283. package/dist/features/admin/constants/filter-tabs.d.ts +435 -0
  284. package/dist/features/admin/constants/filter-tabs.js +216 -0
  285. package/dist/features/admin/hooks/useAdminListingData.d.ts +1 -0
  286. package/dist/features/admin/hooks/useAdminListingData.js +1 -0
  287. package/dist/features/admin/schemas/firestore.d.ts +15 -0
  288. package/dist/features/admin/schemas/firestore.js +18 -0
  289. package/dist/features/admin/types/product.types.d.ts +2 -2
  290. package/dist/features/auctions/components/AuctionCard.d.ts +4 -1
  291. package/dist/features/auctions/components/AuctionCard.js +5 -3
  292. package/dist/features/auctions/components/AuctionDetailPageView.js +1 -1
  293. package/dist/features/auctions/components/MarketplaceAuctionCard.d.ts +2 -2
  294. package/dist/features/auctions/components/PlaceBidFormClient.js +12 -2
  295. package/dist/features/auctions/schemas/index.d.ts +2 -2
  296. package/dist/features/auth/index.d.ts +1 -0
  297. package/dist/features/auth/index.js +1 -0
  298. package/dist/features/auth/role-predicates.d.ts +16 -0
  299. package/dist/features/auth/role-predicates.js +15 -0
  300. package/dist/features/blog/components/BlogFeaturedCard.d.ts +4 -1
  301. package/dist/features/blog/components/BlogFeaturedCard.js +5 -3
  302. package/dist/features/cart/actions/cart-actions.d.ts +1 -0
  303. package/dist/features/cart/actions/cart-actions.js +16 -0
  304. package/dist/features/cart/components/CartView.d.ts +19 -1
  305. package/dist/features/cart/components/CartView.js +2 -2
  306. package/dist/features/cart/components/ShippingPicker.d.ts +13 -0
  307. package/dist/features/cart/components/ShippingPicker.js +48 -0
  308. package/dist/features/cart/components/index.d.ts +3 -1
  309. package/dist/features/cart/components/index.js +1 -0
  310. package/dist/features/cart/hooks/useCartCount.js +7 -1
  311. package/dist/features/cart/repository/cart.repository.d.ts +1 -0
  312. package/dist/features/cart/repository/cart.repository.js +35 -0
  313. package/dist/features/cart/schemas/firestore.d.ts +27 -2
  314. package/dist/features/categories/components/BundleAddToCartCta.d.ts +16 -0
  315. package/dist/features/categories/components/BundleAddToCartCta.js +54 -0
  316. package/dist/features/categories/components/BundleBuyNowCta.d.ts +8 -0
  317. package/dist/features/categories/components/BundleBuyNowCta.js +37 -0
  318. package/dist/features/categories/components/BundleDetailView.d.ts +22 -0
  319. package/dist/features/categories/components/BundleDetailView.js +31 -0
  320. package/dist/features/categories/components/BundleDynamicRuleEditor.d.ts +18 -0
  321. package/dist/features/categories/components/BundleDynamicRuleEditor.js +60 -0
  322. package/dist/features/categories/components/BundleItemsPicker.d.ts +26 -0
  323. package/dist/features/categories/components/BundleItemsPicker.js +135 -0
  324. package/dist/features/categories/components/BundlesListView.d.ts +13 -0
  325. package/dist/features/categories/components/BundlesListView.js +27 -0
  326. package/dist/features/categories/components/index.d.ts +12 -0
  327. package/dist/features/categories/components/index.js +9 -0
  328. package/dist/features/checkout/actions/checkout-actions.js +10 -3
  329. package/dist/features/events/components/AdminEventEditorView.js +108 -2
  330. package/dist/features/events/components/AdminEventsView.js +16 -4
  331. package/dist/features/events/components/EventCard.d.ts +4 -1
  332. package/dist/features/events/components/EventCard.js +7 -3
  333. package/dist/features/events/components/EventRaffleWinnerView.d.ts +21 -0
  334. package/dist/features/events/components/EventRaffleWinnerView.js +18 -0
  335. package/dist/features/events/components/SpinWheelView.d.ts +27 -0
  336. package/dist/features/events/components/SpinWheelView.js +64 -0
  337. package/dist/features/events/components/index.d.ts +4 -0
  338. package/dist/features/events/components/index.js +2 -0
  339. package/dist/features/events/schemas/firestore.d.ts +27 -1
  340. package/dist/features/events/schemas/firestore.js +7 -0
  341. package/dist/features/events/types/index.d.ts +27 -1
  342. package/dist/features/homepage/components/FeaturedBundlesSection.d.ts +16 -0
  343. package/dist/features/homepage/components/FeaturedBundlesSection.js +24 -0
  344. package/dist/features/homepage/components/MarketplaceHomepageView.js +4 -1
  345. package/dist/features/homepage/components/WhatsAppCommunitySection.js +2 -2
  346. package/dist/features/homepage/lib/section-renderer.d.ts +2 -0
  347. package/dist/features/homepage/lib/section-renderer.js +5 -5
  348. package/dist/features/layout/NavbarLayout.d.ts +3 -1
  349. package/dist/features/layout/NavbarLayout.js +32 -3
  350. package/dist/features/layout/TitleBarLayout.d.ts +6 -3
  351. package/dist/features/layout/TitleBarLayout.js +22 -7
  352. package/dist/features/media/upload/MediaUploadField.d.ts +15 -1
  353. package/dist/features/media/upload/MediaUploadField.js +22 -1
  354. package/dist/features/orders/components/MarketplaceOrderCard.js +4 -2
  355. package/dist/features/orders/components/OrderSiblingPayments.d.ts +8 -0
  356. package/dist/features/orders/components/OrderSiblingPayments.js +16 -0
  357. package/dist/features/orders/components/RefundHistoryTable.d.ts +6 -0
  358. package/dist/features/orders/components/RefundHistoryTable.js +23 -0
  359. package/dist/features/orders/components/RefundRequestView.d.ts +8 -0
  360. package/dist/features/orders/components/RefundRequestView.js +42 -0
  361. package/dist/features/orders/components/index.d.ts +6 -0
  362. package/dist/features/orders/components/index.js +3 -0
  363. package/dist/features/orders/index.d.ts +1 -0
  364. package/dist/features/orders/index.js +2 -0
  365. package/dist/features/orders/repository/orders.repository.d.ts +20 -1
  366. package/dist/features/orders/repository/orders.repository.js +30 -1
  367. package/dist/features/orders/schemas/firestore.d.ts +63 -13
  368. package/dist/features/orders/schemas/firestore.js +5 -5
  369. package/dist/features/orders/schemas/index.d.ts +4 -4
  370. package/dist/features/orders/types/index.d.ts +12 -2
  371. package/dist/features/orders/utils/bundle-grouping.d.ts +48 -0
  372. package/dist/features/orders/utils/bundle-grouping.js +54 -0
  373. package/dist/features/orders/utils/order-splitter.d.ts +9 -10
  374. package/dist/features/orders/utils/order-splitter.js +24 -30
  375. package/dist/features/payments/repository/payout.repository.d.ts +17 -1
  376. package/dist/features/payments/repository/payout.repository.js +47 -0
  377. package/dist/features/payments/schemas/firestore.d.ts +26 -0
  378. package/dist/features/pre-orders/components/PreorderCard.d.ts +4 -1
  379. package/dist/features/pre-orders/components/PreorderCard.js +8 -6
  380. package/dist/features/products/actions/product-actions.d.ts +1 -1
  381. package/dist/features/products/actions/product-actions.js +1 -1
  382. package/dist/features/products/components/CompareOverlay.d.ts +2 -2
  383. package/dist/features/products/components/CompareOverlay.js +4 -4
  384. package/dist/features/products/components/InteractiveProductCard.js +7 -12
  385. package/dist/features/products/components/NonRefundableConsentModal.d.ts +1 -1
  386. package/dist/features/products/components/NonRefundableConsentModal.js +0 -10
  387. package/dist/features/products/components/ProductGrid.js +28 -12
  388. package/dist/features/products/components/ShowGroupSection.js +3 -3
  389. package/dist/features/products/components/SublistingCarouselSection.js +2 -2
  390. package/dist/features/products/components/index.d.ts +0 -4
  391. package/dist/features/products/components/index.js +5 -2
  392. package/dist/features/products/index.d.ts +1 -1
  393. package/dist/features/products/index.js +3 -1
  394. package/dist/features/products/repository/products.repository.js +4 -0
  395. package/dist/features/products/schemas/catalog-product.d.ts +70 -0
  396. package/dist/features/products/schemas/catalog-product.js +50 -0
  397. package/dist/features/products/schemas/firestore.d.ts +110 -2
  398. package/dist/features/products/schemas/firestore.js +30 -0
  399. package/dist/features/products/schemas/index.d.ts +8 -8
  400. package/dist/features/products/types/index.d.ts +1 -1
  401. package/dist/features/products/utils/listing-type.d.ts +9 -0
  402. package/dist/features/products/utils/listing-type.js +4 -0
  403. package/dist/features/promotions/actions/coupon-actions.d.ts +2 -2
  404. package/dist/features/promotions/actions/coupon-actions.js +1 -1
  405. package/dist/features/promotions/components/CouponCard.d.ts +28 -10
  406. package/dist/features/promotions/components/CouponCard.js +116 -14
  407. package/dist/features/promotions/hooks/useCouponValidate.d.ts +1 -1
  408. package/dist/features/promotions/repository/coupons.repository.d.ts +1 -1
  409. package/dist/features/reviews/schemas/index.d.ts +2 -2
  410. package/dist/features/search/schemas/index.d.ts +2 -2
  411. package/dist/features/search/types/index.d.ts +2 -2
  412. package/dist/features/seller/components/SellerAuctionsView.js +4 -5
  413. package/dist/features/seller/components/SellerBidsView.js +5 -13
  414. package/dist/features/seller/components/SellerCouponsView.js +31 -67
  415. package/dist/features/seller/components/SellerOffersView.js +4 -5
  416. package/dist/features/seller/components/SellerOrdersView.js +4 -5
  417. package/dist/features/seller/components/SellerPayoutsView.js +4 -5
  418. package/dist/features/seller/components/SellerPreOrdersView.d.ts +4 -0
  419. package/dist/features/seller/components/SellerPreOrdersView.js +141 -0
  420. package/dist/features/seller/components/SellerPrizeDrawsView.d.ts +4 -0
  421. package/dist/features/seller/components/SellerPrizeDrawsView.js +138 -0
  422. package/dist/features/seller/components/SellerProductsView.js +4 -8
  423. package/dist/features/seller/components/index.d.ts +4 -0
  424. package/dist/features/seller/components/index.js +2 -0
  425. package/dist/features/seller/schemas/index.d.ts +2 -2
  426. package/dist/features/stores/actions/store-address-actions.d.ts +10 -6
  427. package/dist/features/stores/actions/store-address-actions.js +8 -7
  428. package/dist/features/stores/components/InteractiveStoreCard.js +3 -10
  429. package/dist/features/stores/components/StoreDetailLayoutView.js +20 -5
  430. package/dist/features/stores/schemas/firestore.d.ts +45 -38
  431. package/dist/features/stores/schemas/firestore.js +2 -49
  432. package/dist/features/stores/server.d.ts +0 -1
  433. package/dist/features/stores/server.js +2 -1
  434. package/dist/features/wishlist/hooks/useWishlistCount.d.ts +7 -9
  435. package/dist/features/wishlist/hooks/useWishlistCount.js +67 -86
  436. package/dist/features/wishlist/types/index.d.ts +1 -1
  437. package/dist/index.d.ts +56 -9
  438. package/dist/index.js +66 -11
  439. package/dist/next/routing/route-map.d.ts +6 -0
  440. package/dist/next/routing/route-map.js +4 -0
  441. package/dist/providers/db-firebase/admin.d.ts +6 -2
  442. package/dist/providers/db-firebase/admin.js +23 -0
  443. package/dist/repositories/index.d.ts +1 -2
  444. package/dist/repositories/index.js +5 -2
  445. package/dist/security/authorization.d.ts +2 -1
  446. package/dist/security/authorization.js +3 -2
  447. package/dist/seed/actions/demo-seed-actions.d.ts +1 -1
  448. package/dist/seed/bids-seed-data.d.ts +2 -2
  449. package/dist/seed/bids-seed-data.js +77 -2
  450. package/dist/seed/cart-seed-data.d.ts +10 -10
  451. package/dist/seed/cart-seed-data.js +15 -15
  452. package/dist/seed/events-seed-data.js +77 -0
  453. package/dist/seed/manifest.js +16 -8
  454. package/dist/seed/orders-seed-data.js +41 -2
  455. package/dist/seed/payouts-seed-data.js +18 -2
  456. package/dist/seed/stores-seed-data.js +55 -0
  457. package/dist/server-entry.d.ts +1 -0
  458. package/dist/server-entry.js +2 -0
  459. package/dist/server.d.ts +4 -0
  460. package/dist/server.js +8 -0
  461. package/dist/tailwind-utilities.css +1 -1
  462. package/dist/ui/components/FilterChipGroup.d.ts +39 -0
  463. package/dist/ui/components/FilterChipGroup.js +15 -0
  464. package/dist/ui/components/HorizontalScroller.js +32 -7
  465. package/dist/ui/components/HorizontalScroller.style.css +6 -0
  466. package/dist/ui/components/SiteLogo.js +1 -1
  467. package/dist/ui/index.d.ts +2 -0
  468. package/dist/ui/index.js +2 -0
  469. package/dist/utils/id-generators.d.ts +11 -0
  470. package/dist/utils/id-generators.js +16 -0
  471. package/package.json +1 -1
  472. package/dist/_internal/shared/features/bundles/config.d.ts +0 -6
  473. package/dist/_internal/shared/features/bundles/config.js +0 -6
  474. package/dist/_internal/shared/schema-versions.d.ts +0 -76
  475. package/dist/_internal/shared/schema-versions.js +0 -82
  476. package/dist/features/account/migrations.d.ts +0 -2
  477. package/dist/features/account/migrations.js +0 -10
  478. package/dist/features/admin/migrations.d.ts +0 -2
  479. package/dist/features/admin/migrations.js +0 -10
  480. package/dist/features/auctions/migrations.d.ts +0 -2
  481. package/dist/features/auctions/migrations.js +0 -10
  482. package/dist/features/auth/migrations.d.ts +0 -2
  483. package/dist/features/auth/migrations.js +0 -10
  484. package/dist/features/blog/migrations.d.ts +0 -2
  485. package/dist/features/blog/migrations.js +0 -10
  486. package/dist/features/brands/actions/brand-actions.d.ts +0 -2
  487. package/dist/features/brands/actions/brand-actions.js +0 -5
  488. package/dist/features/brands/index.d.ts +0 -3
  489. package/dist/features/brands/index.js +0 -3
  490. package/dist/features/brands/migrations.d.ts +0 -2
  491. package/dist/features/brands/migrations.js +0 -10
  492. package/dist/features/brands/repository/brands.repository.d.ts +0 -13
  493. package/dist/features/brands/repository/brands.repository.js +0 -60
  494. package/dist/features/brands/schemas/index.d.ts +0 -33
  495. package/dist/features/brands/schemas/index.js +0 -15
  496. package/dist/features/brands/server.d.ts +0 -7
  497. package/dist/features/brands/server.js +0 -7
  498. package/dist/features/bundles/components/AdminBundleEditorView.d.ts +0 -8
  499. package/dist/features/bundles/components/AdminBundleEditorView.js +0 -7
  500. package/dist/features/bundles/components/BundleDetailPageView.d.ts +0 -9
  501. package/dist/features/bundles/components/BundleDetailPageView.js +0 -45
  502. package/dist/features/bundles/components/BundleForm.d.ts +0 -12
  503. package/dist/features/bundles/components/BundleForm.js +0 -126
  504. package/dist/features/bundles/components/BundleItemsPicker.d.ts +0 -9
  505. package/dist/features/bundles/components/BundleItemsPicker.js +0 -77
  506. package/dist/features/bundles/components/BundlesByCategoryListing.d.ts +0 -6
  507. package/dist/features/bundles/components/BundlesByCategoryListing.js +0 -50
  508. package/dist/features/bundles/components/BundlesListingView.d.ts +0 -17
  509. package/dist/features/bundles/components/BundlesListingView.js +0 -50
  510. package/dist/features/bundles/components/FeaturedBundlesSection.d.ts +0 -5
  511. package/dist/features/bundles/components/FeaturedBundlesSection.js +0 -55
  512. package/dist/features/bundles/components/SellerBundleCreateView.d.ts +0 -8
  513. package/dist/features/bundles/components/SellerBundleCreateView.js +0 -7
  514. package/dist/features/bundles/components/SellerBundleEditView.d.ts +0 -9
  515. package/dist/features/bundles/components/SellerBundleEditView.js +0 -7
  516. package/dist/features/bundles/components/index.d.ts +0 -18
  517. package/dist/features/bundles/components/index.js +0 -9
  518. package/dist/features/bundles/constants/index.d.ts +0 -32
  519. package/dist/features/bundles/constants/index.js +0 -35
  520. package/dist/features/bundles/index.d.ts +0 -2
  521. package/dist/features/bundles/index.js +0 -2
  522. package/dist/features/bundles/migrations.d.ts +0 -2
  523. package/dist/features/bundles/migrations.js +0 -10
  524. package/dist/features/bundles/repository/bundles.repository.d.ts +0 -36
  525. package/dist/features/bundles/repository/bundles.repository.js +0 -148
  526. package/dist/features/bundles/repository/index.d.ts +0 -1
  527. package/dist/features/bundles/repository/index.js +0 -1
  528. package/dist/features/bundles/schemas/firestore.d.ts +0 -88
  529. package/dist/features/bundles/schemas/firestore.js +0 -29
  530. package/dist/features/bundles/schemas/zod.d.ts +0 -377
  531. package/dist/features/bundles/schemas/zod.js +0 -71
  532. package/dist/features/cart/migrations.d.ts +0 -2
  533. package/dist/features/cart/migrations.js +0 -10
  534. package/dist/features/categories/migrations.d.ts +0 -2
  535. package/dist/features/categories/migrations.js +0 -10
  536. package/dist/features/events/migrations.d.ts +0 -2
  537. package/dist/features/events/migrations.js +0 -10
  538. package/dist/features/faq/migrations.d.ts +0 -2
  539. package/dist/features/faq/migrations.js +0 -10
  540. package/dist/features/grouped/migrations.d.ts +0 -2
  541. package/dist/features/grouped/migrations.js +0 -10
  542. package/dist/features/history/migrations.d.ts +0 -2
  543. package/dist/features/history/migrations.js +0 -10
  544. package/dist/features/messages/migrations.d.ts +0 -2
  545. package/dist/features/messages/migrations.js +0 -10
  546. package/dist/features/orders/migrations.d.ts +0 -2
  547. package/dist/features/orders/migrations.js +0 -10
  548. package/dist/features/payments/migrations.d.ts +0 -2
  549. package/dist/features/payments/migrations.js +0 -10
  550. package/dist/features/products/migrations.d.ts +0 -2
  551. package/dist/features/products/migrations.js +0 -10
  552. package/dist/features/products/repository/sublisting-categories.repository.d.ts +0 -16
  553. package/dist/features/products/repository/sublisting-categories.repository.js +0 -126
  554. package/dist/features/products/schemas/sublisting-categories.d.ts +0 -45
  555. package/dist/features/products/schemas/sublisting-categories.js +0 -16
  556. package/dist/features/promotions/migrations.d.ts +0 -2
  557. package/dist/features/promotions/migrations.js +0 -10
  558. package/dist/features/reviews/migrations.d.ts +0 -2
  559. package/dist/features/reviews/migrations.js +0 -10
  560. package/dist/features/scams/migrations.d.ts +0 -2
  561. package/dist/features/scams/migrations.js +0 -10
  562. package/dist/features/seller/migrations.d.ts +0 -2
  563. package/dist/features/seller/migrations.js +0 -10
  564. package/dist/features/stores/migrations.d.ts +0 -2
  565. package/dist/features/stores/migrations.js +0 -10
  566. package/dist/features/sublisting/migrations.d.ts +0 -2
  567. package/dist/features/sublisting/migrations.js +0 -10
  568. package/dist/features/sublisting/schemas/firestore.d.ts +0 -32
  569. package/dist/features/sublisting/schemas/firestore.js +0 -19
  570. package/dist/features/support/migrations.d.ts +0 -2
  571. package/dist/features/support/migrations.js +0 -10
  572. package/dist/features/wishlist/migrations.d.ts +0 -2
  573. package/dist/features/wishlist/migrations.js +0 -10
  574. package/dist/seed/_bundle-constants.d.ts +0 -14
  575. package/dist/seed/_bundle-constants.js +0 -14
  576. package/dist/seed/anime-figures-seed-data.d.ts +0 -8
  577. package/dist/seed/anime-figures-seed-data.js +0 -1033
  578. package/dist/seed/beyblade-seed-data.d.ts +0 -7
  579. package/dist/seed/beyblade-seed-data.js +0 -1129
  580. package/dist/seed/brands-seed-data.d.ts +0 -7
  581. package/dist/seed/brands-seed-data.js +0 -410
  582. package/dist/seed/bundles-seed-data.d.ts +0 -13
  583. package/dist/seed/bundles-seed-data.js +0 -229
  584. package/dist/seed/cosplay-accessories-seed-data.d.ts +0 -8
  585. package/dist/seed/cosplay-accessories-seed-data.js +0 -647
  586. package/dist/seed/hot-wheels-seed-data.d.ts +0 -7
  587. package/dist/seed/hot-wheels-seed-data.js +0 -1612
  588. package/dist/seed/letitrip-official-seed-data.d.ts +0 -8
  589. package/dist/seed/letitrip-official-seed-data.js +0 -399
  590. package/dist/seed/pokemon-carousel-slides-seed-data.d.ts +0 -8
  591. package/dist/seed/pokemon-carousel-slides-seed-data.js +0 -322
  592. package/dist/seed/pokemon-categories-seed-data.d.ts +0 -24
  593. package/dist/seed/pokemon-categories-seed-data.js +0 -547
  594. package/dist/seed/pokemon-coupons-seed-data.d.ts +0 -6
  595. package/dist/seed/pokemon-coupons-seed-data.js +0 -465
  596. package/dist/seed/pokemon-homepage-sections-seed-data.d.ts +0 -7
  597. package/dist/seed/pokemon-homepage-sections-seed-data.js +0 -241
  598. package/dist/seed/pokemon-products-seed-data.d.ts +0 -9
  599. package/dist/seed/pokemon-products-seed-data.js +0 -1791
  600. package/dist/seed/pokemon-seed-bundle.d.ts +0 -47
  601. package/dist/seed/pokemon-seed-bundle.js +0 -71
  602. package/dist/seed/pokemon-stores-seed-data.d.ts +0 -6
  603. package/dist/seed/pokemon-stores-seed-data.js +0 -179
  604. package/dist/seed/pokemon-users-seed-data.d.ts +0 -6
  605. package/dist/seed/pokemon-users-seed-data.js +0 -521
  606. package/dist/seed/products-seed-data.d.ts +0 -6
  607. package/dist/seed/products-seed-data.js +0 -2530
  608. package/dist/seed/retro-gaming-seed-data.d.ts +0 -8
  609. package/dist/seed/retro-gaming-seed-data.js +0 -801
  610. package/dist/seed/server.d.ts +0 -2
  611. package/dist/seed/server.js +0 -7
  612. package/dist/seed/sublisting-categories-seed-data.d.ts +0 -7
  613. package/dist/seed/sublisting-categories-seed-data.js +0 -159
  614. package/dist/seed/transformers-seed-data.d.ts +0 -7
  615. package/dist/seed/transformers-seed-data.js +0 -530
@@ -1,15 +0,0 @@
1
- export const BRANDS_COLLECTION = "brands";
2
- export const BRAND_FIELDS = {
3
- ID: "id",
4
- NAME: "name",
5
- SLUG: "slug",
6
- DESCRIPTION: "description",
7
- LOGO_URL: "logoURL",
8
- BANNER_URL: "bannerURL",
9
- WEBSITE: "website",
10
- IS_ACTIVE: "isActive",
11
- DISPLAY_ORDER: "displayOrder",
12
- PRODUCT_COUNT: "productCount",
13
- CREATED_AT: "createdAt",
14
- UPDATED_AT: "updatedAt",
15
- };
@@ -1,7 +0,0 @@
1
- /**
2
- * @mohasinac/appkit/features/brands/server
3
- *
4
- * Server-only entry point — repositories and actions.
5
- */
6
- export * from "./actions/brand-actions";
7
- export { BrandsRepository } from "./repository/brands.repository";
@@ -1,7 +0,0 @@
1
- /**
2
- * @mohasinac/appkit/features/brands/server
3
- *
4
- * Server-only entry point — repositories and actions.
5
- */
6
- export * from "./actions/brand-actions";
7
- export { BrandsRepository } from "./repository/brands.repository";
@@ -1,8 +0,0 @@
1
- import { type BundleFormValue } from "./BundleForm";
2
- import type { BundleDocument } from "../schemas/firestore";
3
- export interface AdminBundleEditorViewProps {
4
- bundle: BundleDocument;
5
- onSubmit: (value: BundleFormValue) => Promise<void> | void;
6
- onCancel?: () => void;
7
- }
8
- export declare function AdminBundleEditorView({ bundle, onSubmit, onCancel, }: AdminBundleEditorViewProps): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { Container, Heading, Section, Stack, Text } from "../../../ui";
4
- import { BundleForm } from "./BundleForm";
5
- export function AdminBundleEditorView({ bundle, onSubmit, onCancel, }) {
6
- return (_jsx(Section, { children: _jsx(Container, { children: _jsxs(Stack, { className: "gap-6", children: [_jsx(Heading, { level: 1, children: "Edit bundle (admin)" }), _jsxs(Text, { className: "text-[var(--appkit-color-text-muted,#6b7280)]", children: ["Store: ", bundle.storeName, " \u00B7 ", bundle.storeId] }), _jsx(BundleForm, { storeId: bundle.storeId, storeName: bundle.storeName, initial: bundle, onSubmit: onSubmit, onCancel: onCancel, submitLabel: "Save changes" })] }) }) }));
7
- }
@@ -1,9 +0,0 @@
1
- import type { BundleDocument } from "../schemas/firestore";
2
- export interface BundleDetailPageViewProps {
3
- bundle: BundleDocument;
4
- /** Fires after the user accepts the non-refundable consent modal. */
5
- onBuy: (bundle: BundleDocument) => Promise<void> | void;
6
- /** Optional override for the buy CTA (e.g. "Sign in to buy"). */
7
- buyDisabledReason?: string;
8
- }
9
- export declare function BundleDetailPageView({ bundle, onBuy, buyDisabledReason, }: BundleDetailPageViewProps): import("react/jsx-runtime").JSX.Element;
@@ -1,45 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- /**
4
- * BundleDetailPageView — SB3-I. Public detail page for a single bundle.
5
- */
6
- import { useState } from "react";
7
- import Link from "next/link";
8
- import { Alert, Badge, Button, Container, Div, Heading, Row, Section, Stack, Text, } from "../../../ui";
9
- import { NonRefundableConsentModal } from "../../products/components/NonRefundableConsentModal";
10
- import { ROUTES } from "../../../next/routing/route-map";
11
- function formatRupees(paise) {
12
- return `₹${(paise / 100).toLocaleString("en-IN")}`;
13
- }
14
- function savingsPct(b) {
15
- if (!b.bundleOriginalTotal)
16
- return 0;
17
- const off = Math.max(0, b.bundleOriginalTotal - b.bundlePrice);
18
- return Math.round((off / b.bundleOriginalTotal) * 100);
19
- }
20
- export function BundleDetailPageView({ bundle, onBuy, buyDisabledReason, }) {
21
- const [consentOpen, setConsentOpen] = useState(false);
22
- const [busy, setBusy] = useState(false);
23
- const oos = bundle.status === "out_of_stock";
24
- const off = savingsPct(bundle);
25
- const handleBuyClick = () => {
26
- if (oos || buyDisabledReason)
27
- return;
28
- setConsentOpen(true);
29
- };
30
- const handleConfirm = async () => {
31
- setConsentOpen(false);
32
- setBusy(true);
33
- try {
34
- await onBuy(bundle);
35
- }
36
- finally {
37
- setBusy(false);
38
- }
39
- };
40
- return (_jsx(Section, { children: _jsxs(Container, { children: [_jsxs(Stack, { className: "gap-6", children: [_jsxs(Stack, { className: "gap-1", children: [_jsxs(Row, { className: "text-sm text-[var(--appkit-color-text-muted,#6b7280)] gap-2", children: [_jsx(Link, { href: String(ROUTES.PUBLIC.BUNDLES), children: "Bundles" }), _jsx("span", { children: "\u00B7" }), _jsx(Text, { children: bundle.storeName })] }), _jsx(Heading, { level: 1, children: bundle.title }), bundle.description && (_jsx(Text, { className: "text-[var(--appkit-color-text-muted,#6b7280)]", children: bundle.description }))] }), _jsxs(Div, { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [_jsx(Div, { className: "aspect-video rounded-lg overflow-hidden bg-zinc-100 dark:bg-zinc-800", children: bundle.images?.[0] && (
41
- /* eslint-disable-next-line @next/next/no-img-element */
42
- _jsx("img", { src: bundle.images[0], alt: bundle.title, className: "h-full w-full object-cover" })) }), _jsxs(Stack, { className: "gap-4", children: [off > 0 && (_jsxs(Badge, { variant: "success", children: ["Save ", off, "% on this bundle"] })), _jsxs(Row, { className: "items-baseline gap-3", children: [_jsx(Heading, { level: 2, children: formatRupees(bundle.bundlePrice) }), bundle.bundleOriginalTotal > bundle.bundlePrice && (_jsx(Text, { className: "line-through text-[var(--appkit-color-text-muted,#6b7280)]", children: formatRupees(bundle.bundleOriginalTotal) }))] }), _jsxs(Text, { className: "text-sm text-[var(--appkit-color-text-muted,#6b7280)]", children: [bundle.bundleItems.length, " items \u00B7 ships together \u00B7 non-refundable"] }), bundle.maxPerUser != null && (_jsxs(Badge, { variant: "secondary", children: ["Limit: ", bundle.maxPerUser, " per customer"] })), oos ? (_jsx(Alert, { variant: "warning", children: "This bundle is currently unavailable \u2014 one or more items have sold out." })) : buyDisabledReason ? (_jsx(Alert, { variant: "info", children: buyDisabledReason })) : null, _jsx(Button, { type: "button", variant: "primary", size: "lg", disabled: oos || !!buyDisabledReason || busy, onClick: handleBuyClick, children: busy ? "Processing…" : "Buy Bundle" })] })] }), bundle.video?.url && (_jsx(Div, { className: "aspect-video rounded-lg overflow-hidden bg-black", children: _jsx("video", { src: bundle.video.url, controls: true, className: "h-full w-full" }) })), _jsxs(Stack, { className: "gap-3", children: [_jsx(Heading, { level: 2, children: "What's in this bundle" }), _jsx(Div, { className: "grid grid-cols-2 md:grid-cols-4 gap-3", children: bundle.bundleItems.map((it) => (_jsxs(Stack, { className: `rounded-lg border border-zinc-200 dark:border-zinc-700 overflow-hidden ${it.isSold ? "opacity-60" : ""}`, children: [_jsxs(Div, { className: "relative aspect-square bg-zinc-100 dark:bg-zinc-800", children: [it.images?.[0] && (
43
- /* eslint-disable-next-line @next/next/no-img-element */
44
- _jsx("img", { src: it.images[0], alt: it.title, className: "h-full w-full object-cover" })), it.isSold && (_jsx(Div, { className: "absolute inset-0 grid place-items-center bg-black/50", children: _jsx(Badge, { variant: "danger", children: "Sold" }) }))] }), _jsxs(Stack, { className: "gap-1 p-2", children: [_jsx(Text, { className: "text-xs font-medium truncate", children: it.title }), _jsxs(Row, { className: "items-center gap-1 text-xs text-[var(--appkit-color-text-muted,#6b7280)]", children: [_jsx(Badge, { variant: "secondary", children: it.listingType === "pre-order" ? "Pre-order" : "Standard" }), _jsxs(Text, { children: ["\u00D7", it.quantity] })] })] })] }, it.productId))) })] })] }), _jsx(NonRefundableConsentModal, { open: consentOpen, listingType: "bundle", itemTitle: bundle.title, priceLabel: formatRupees(bundle.bundlePrice), onCancel: () => setConsentOpen(false), onConfirm: handleConfirm })] }) }));
45
- }
@@ -1,12 +0,0 @@
1
- import type { BundleDocument } from "../schemas/firestore";
2
- export type BundleFormValue = Partial<BundleDocument>;
3
- export interface BundleFormProps {
4
- storeId: string;
5
- storeName: string;
6
- initial?: BundleFormValue;
7
- isReadonly?: boolean;
8
- onSubmit: (value: BundleFormValue) => Promise<void> | void;
9
- onCancel?: () => void;
10
- submitLabel?: string;
11
- }
12
- export declare function BundleForm({ storeId, storeName, initial, isReadonly, onSubmit, onCancel, submitLabel, }: BundleFormProps): import("react/jsx-runtime").JSX.Element;
@@ -1,126 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- /**
4
- * BundleForm — SB3-B.
5
- *
6
- * Edit/create form for a bundle. Wraps BundleItemsPicker for the items
7
- * section and uses appkit ui primitives for the rest. Categories/brands are
8
- * entered as slugs for the v1 cut; rich pickers wire in later.
9
- */
10
- import { useEffect, useMemo, useState } from "react";
11
- import { Alert, Badge, Button, Checkbox, Div, Heading, Input, Label, Row, Select, Stack, Textarea, } from "../../../ui";
12
- import { BundleItemsPicker } from "./BundleItemsPicker";
13
- import { BUNDLE_STATUS_OPTIONS, BUNDLE_VALIDATION, BUNDLES_CURRENCY, } from "../constants";
14
- function paiseToRupees(p) {
15
- if (!p)
16
- return "";
17
- return (p / 100).toString();
18
- }
19
- function rupeesToPaise(s) {
20
- const n = Number(s);
21
- if (!Number.isFinite(n) || n < 0)
22
- return 0;
23
- return Math.round(n * 100);
24
- }
25
- function deriveOriginalTotal(items) {
26
- return items.reduce((sum, it) => sum + it.price * it.quantity, 0);
27
- }
28
- function Field({ label, children }) {
29
- return (_jsxs(Stack, { className: "gap-1", children: [_jsx(Label, { children: label }), children] }));
30
- }
31
- export function BundleForm({ storeId, storeName, initial, isReadonly, onSubmit, onCancel, submitLabel = "Save bundle", }) {
32
- const [title, setTitle] = useState(initial?.title ?? "");
33
- const [description, setDescription] = useState(initial?.description ?? "");
34
- const [status, setStatus] = useState(initial?.status ?? "draft");
35
- const [category, setCategory] = useState(initial?.category ?? "");
36
- const [categorySlug, setCategorySlug] = useState(initial?.categorySlug ?? "");
37
- const [subcategory, setSubcategory] = useState(initial?.subcategory ?? "");
38
- const [brandSlug, setBrandSlug] = useState(initial?.brandSlug ?? "");
39
- const [tagsCsv, setTagsCsv] = useState((initial?.tags ?? []).join(", "));
40
- const [coverImagesCsv, setCoverImagesCsv] = useState((initial?.images ?? []).join("\n"));
41
- const [videoUrl, setVideoUrl] = useState(initial?.video?.url ?? "");
42
- const [bundleItems, setBundleItems] = useState(initial?.bundleItems ?? []);
43
- const [bundleItemType, setBundleItemType] = useState(initial?.bundleItemType ?? bundleItems[0]?.listingType ?? null);
44
- const [bundlePriceR, setBundlePriceR] = useState(paiseToRupees(initial?.bundlePrice));
45
- const [maxPerUser, setMaxPerUser] = useState(initial?.maxPerUser?.toString() ?? "");
46
- const [isFeatured, setIsFeatured] = useState(!!initial?.isFeatured);
47
- const [isPromoted, setIsPromoted] = useState(!!initial?.isPromoted);
48
- const [submitting, setSubmitting] = useState(false);
49
- const [error, setError] = useState(null);
50
- const originalTotal = useMemo(() => deriveOriginalTotal(bundleItems), [bundleItems]);
51
- const bundlePricePaise = rupeesToPaise(bundlePriceR);
52
- const savingsPaise = Math.max(0, originalTotal - bundlePricePaise);
53
- const savingsPct = originalTotal > 0 ? Math.round((savingsPaise / originalTotal) * 100) : 0;
54
- useEffect(() => {
55
- setBundleItemType(bundleItems[0]?.listingType ?? null);
56
- }, [bundleItems]);
57
- const statusOptions = BUNDLE_STATUS_OPTIONS;
58
- const validate = () => {
59
- if (!title.trim())
60
- return "Title is required.";
61
- if (bundleItems.length < BUNDLE_VALIDATION.MIN_ITEMS) {
62
- return `Bundles need at least ${BUNDLE_VALIDATION.MIN_ITEMS} items.`;
63
- }
64
- if (bundleItems.length > BUNDLE_VALIDATION.MAX_ITEMS) {
65
- return `Bundles can have at most ${BUNDLE_VALIDATION.MAX_ITEMS} items.`;
66
- }
67
- if (!bundleItemType)
68
- return "Bundle item type could not be derived.";
69
- if (bundlePricePaise <= 0)
70
- return "Bundle price must be greater than 0.";
71
- if (bundlePricePaise > originalTotal) {
72
- return "Bundle price cannot exceed the original total.";
73
- }
74
- return null;
75
- };
76
- const handleSubmit = async (e) => {
77
- e.preventDefault();
78
- const v = validate();
79
- if (v) {
80
- setError(v);
81
- return;
82
- }
83
- setError(null);
84
- setSubmitting(true);
85
- try {
86
- const value = {
87
- ...initial,
88
- title: title.trim(),
89
- description: description.trim() || undefined,
90
- status,
91
- storeId,
92
- storeName,
93
- bundleItemType: bundleItemType,
94
- bundleItems,
95
- bundlePrice: bundlePricePaise,
96
- bundleOriginalTotal: originalTotal,
97
- currency: BUNDLES_CURRENCY,
98
- category: category.trim() || undefined,
99
- categorySlug: categorySlug.trim() || undefined,
100
- subcategory: subcategory.trim() || undefined,
101
- brandSlug: brandSlug.trim() || undefined,
102
- tags: tagsCsv
103
- .split(",")
104
- .map((t) => t.trim())
105
- .filter(Boolean),
106
- images: coverImagesCsv
107
- .split("\n")
108
- .map((u) => u.trim())
109
- .filter(Boolean),
110
- video: videoUrl.trim() ? { url: videoUrl.trim() } : undefined,
111
- maxPerUser: maxPerUser ? Number(maxPerUser) : undefined,
112
- isFeatured,
113
- isPromoted,
114
- partOfBundleProductIds: bundleItems.map((it) => it.productId),
115
- };
116
- await onSubmit(value);
117
- }
118
- catch (err) {
119
- setError(err instanceof Error ? err.message : "Failed to save bundle.");
120
- }
121
- finally {
122
- setSubmitting(false);
123
- }
124
- };
125
- return (_jsxs("form", { onSubmit: handleSubmit, className: "space-y-6", children: [error && _jsx(Alert, { variant: "error", children: error }), _jsxs(Stack, { className: "gap-4", children: [_jsx(Heading, { level: 3, children: "Basics" }), _jsx(Field, { label: "Title *", children: _jsx(Input, { value: title, onChange: (e) => setTitle(e.target.value), disabled: isReadonly, placeholder: "Pok\u00E9mon TCG Starter Pack", required: true }) }), _jsx(Field, { label: "Description", children: _jsx(Textarea, { value: description, onChange: (e) => setDescription(e.target.value), disabled: isReadonly, rows: 4 }) }), _jsx(Field, { label: "Status", children: _jsx(Select, { options: statusOptions, value: status, onValueChange: setStatus, disabled: isReadonly }) })] }), _jsxs(Stack, { className: "gap-4", children: [_jsx(Heading, { level: 3, children: "Items" }), _jsx(BundleItemsPicker, { storeId: storeId, value: bundleItems, onChange: setBundleItems, onTypeChange: setBundleItemType, disabled: isReadonly })] }), _jsxs(Stack, { className: "gap-4", children: [_jsx(Heading, { level: 3, children: "Pricing" }), _jsxs(Div, { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [_jsx(Field, { label: "Bundle price (\u20B9) *", children: _jsx(Input, { type: "number", min: "0", step: "0.01", value: bundlePriceR, onChange: (e) => setBundlePriceR(e.target.value), disabled: isReadonly, required: true }) }), _jsx(Field, { label: "Original total (auto, \u20B9)", children: _jsx(Input, { value: (originalTotal / 100).toFixed(2), readOnly: true }) })] }), savingsPaise > 0 && (_jsxs(Badge, { variant: "success", children: ["Save \u20B9", (savingsPaise / 100).toLocaleString("en-IN"), " (", savingsPct, "% off)"] }))] }), _jsxs(Stack, { className: "gap-4", children: [_jsx(Heading, { level: 3, children: "Discovery" }), _jsxs(Div, { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [_jsx(Field, { label: "Category", children: _jsx(Input, { value: category, onChange: (e) => setCategory(e.target.value), disabled: isReadonly }) }), _jsx(Field, { label: "Category slug", children: _jsx(Input, { value: categorySlug, onChange: (e) => setCategorySlug(e.target.value), disabled: isReadonly, placeholder: "category-action-figures" }) }), _jsx(Field, { label: "Subcategory", children: _jsx(Input, { value: subcategory, onChange: (e) => setSubcategory(e.target.value), disabled: isReadonly }) }), _jsx(Field, { label: "Brand slug", children: _jsx(Input, { value: brandSlug, onChange: (e) => setBrandSlug(e.target.value), disabled: isReadonly, placeholder: "brand-pokemon-company" }) })] }), _jsx(Field, { label: "Tags (comma separated)", children: _jsx(Input, { value: tagsCsv, onChange: (e) => setTagsCsv(e.target.value), disabled: isReadonly }) })] }), _jsxs(Stack, { className: "gap-4", children: [_jsx(Heading, { level: 3, children: "Media" }), _jsx(Field, { label: "Cover image URLs (one per line, up to 5)", children: _jsx(Textarea, { value: coverImagesCsv, onChange: (e) => setCoverImagesCsv(e.target.value), disabled: isReadonly, rows: 4 }) }), _jsx(Field, { label: "Video URL (optional)", children: _jsx(Input, { value: videoUrl, onChange: (e) => setVideoUrl(e.target.value), disabled: isReadonly }) })] }), _jsxs(Stack, { className: "gap-4", children: [_jsx(Heading, { level: 3, children: "Limits & promotion" }), _jsx(Field, { label: "Max per customer (blank = unlimited)", children: _jsx(Input, { type: "number", min: "0", value: maxPerUser, onChange: (e) => setMaxPerUser(e.target.value), disabled: isReadonly }) }), _jsx(Checkbox, { checked: isFeatured, onChange: (e) => setIsFeatured(e.target.checked), disabled: isReadonly, label: "Featured" }), _jsx(Checkbox, { checked: isPromoted, onChange: (e) => setIsPromoted(e.target.checked), disabled: isReadonly, label: "Promoted" })] }), !isReadonly && (_jsxs(Row, { className: "gap-2 justify-end", children: [onCancel && (_jsx(Button, { type: "button", variant: "ghost", onClick: onCancel, children: "Cancel" })), _jsx(Button, { type: "submit", variant: "primary", disabled: submitting, children: submitting ? "Saving…" : submitLabel })] }))] }));
126
- }
@@ -1,9 +0,0 @@
1
- import type { BundleItem, BundleItemListingType } from "../schemas/firestore";
2
- export interface BundleItemsPickerProps {
3
- storeId: string;
4
- value: BundleItem[];
5
- onChange: (next: BundleItem[]) => void;
6
- onTypeChange?: (type: BundleItemListingType | null) => void;
7
- disabled?: boolean;
8
- }
9
- export declare function BundleItemsPicker({ storeId, value, onChange, onTypeChange, disabled, }: BundleItemsPickerProps): import("react/jsx-runtime").JSX.Element;
@@ -1,77 +0,0 @@
1
- "use client";
2
- import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
3
- /**
4
- * BundleItemsPicker — SB3-A.
5
- *
6
- * Lets the seller pick 3–16 products from their own store to assemble a
7
- * bundle. Bundles are homogeneous: the first item added locks the
8
- * `bundleItemType` (`"standard"` or `"pre-order"`). Auctions and prize draws
9
- * are intentionally excluded — the picker filters them out at the data source.
10
- */
11
- import { useEffect, useMemo, useState } from "react";
12
- import { Button, Badge, Div, Input, Modal, Row, Select, Stack, Text, } from "../../../ui";
13
- import { useProducts } from "../../products/hooks/useProducts";
14
- import { BUNDLE_ITEM_TYPE_LABEL, BUNDLE_ITEM_TYPE_OPTIONS, BUNDLE_VALIDATION, } from "../constants";
15
- function formatPaise(paise) {
16
- return `₹${(paise / 100).toLocaleString("en-IN", { maximumFractionDigits: 2 })}`;
17
- }
18
- function pickListingType(p) {
19
- return p.listingType === "pre-order" ? "pre-order" : "standard";
20
- }
21
- export function BundleItemsPicker({ storeId, value, onChange, onTypeChange, disabled, }) {
22
- const lockedType = value[0]?.listingType ?? null;
23
- const [pickerOpen, setPickerOpen] = useState(false);
24
- const [filterType, setFilterType] = useState(lockedType ?? "standard");
25
- const [search, setSearch] = useState("");
26
- useEffect(() => {
27
- onTypeChange?.(lockedType);
28
- }, [lockedType, onTypeChange]);
29
- const { products, isLoading } = useProducts({
30
- storeId,
31
- listingType: filterType,
32
- status: "published",
33
- perPage: 100,
34
- }, { enabled: pickerOpen });
35
- const selectedIds = useMemo(() => new Set(value.map((it) => it.productId)), [value]);
36
- const candidates = useMemo(() => {
37
- const term = search.trim().toLowerCase();
38
- return (products ?? [])
39
- .filter((p) => !selectedIds.has(p.id))
40
- .filter((p) => term ? (p.title ?? "").toLowerCase().includes(term) : true)
41
- .slice(0, BUNDLE_VALIDATION.MAX_PICKER_RESULTS);
42
- }, [products, selectedIds, search]);
43
- const atMax = value.length >= BUNDLE_VALIDATION.MAX_ITEMS;
44
- const belowMin = value.length < BUNDLE_VALIDATION.MIN_ITEMS;
45
- const addItem = (p) => {
46
- if (atMax)
47
- return;
48
- const itemType = pickListingType(p);
49
- if (lockedType && itemType !== lockedType)
50
- return;
51
- const images = (p.images ?? []).slice(0, BUNDLE_VALIDATION.MAX_ITEM_IMAGES);
52
- const next = {
53
- productId: p.id,
54
- productSlug: p.slug ?? p.id,
55
- title: p.title ?? p.id,
56
- listingType: itemType,
57
- images,
58
- video: p.video ??
59
- undefined,
60
- price: typeof p.price === "number" ? p.price : 0,
61
- quantity: 1,
62
- isSold: false,
63
- };
64
- onChange([...value, next]);
65
- };
66
- const updateQty = (productId, qty) => {
67
- onChange(value.map((it) => it.productId === productId ? { ...it, quantity: Math.max(1, qty) } : it));
68
- };
69
- const removeItem = (productId) => {
70
- onChange(value.filter((it) => it.productId !== productId));
71
- };
72
- return (_jsxs(Stack, { className: "gap-3", children: [_jsxs(Row, { className: "items-center justify-between flex-wrap gap-2", children: [_jsxs(Text, { className: "font-semibold", children: ["Bundle items (", value.length, "/", BUNDLE_VALIDATION.MAX_ITEMS, ")"] }), _jsxs(Row, { className: "items-center gap-2", children: [lockedType && (_jsxs(Badge, { variant: "secondary", children: [BUNDLE_ITEM_TYPE_LABEL[lockedType], " bundle"] })), _jsx(Button, { type: "button", variant: "secondary", disabled: disabled || atMax, onClick: () => setPickerOpen(true), children: "+ Add item" })] })] }), belowMin && (_jsxs(Text, { className: "text-sm text-[var(--appkit-color-danger,#ef4444)]", children: ["Minimum ", BUNDLE_VALIDATION.MIN_ITEMS, " items required to publish this bundle."] })), value.length === 0 ? (_jsx(Div, { className: "rounded border border-dashed border-zinc-300 dark:border-zinc-700 p-6 text-center", children: _jsxs(Text, { className: "text-[var(--appkit-color-text-muted,#6b7280)]", children: ["No items yet. Click ", _jsx("strong", { children: "Add item" }), " to choose from your store's standard or pre-order products. Auctions and prize draws are not eligible for bundles."] }) })) : (_jsx(Stack, { className: "gap-2", children: value.map((it) => (_jsxs(Row, { className: `items-center gap-3 rounded border border-zinc-200 dark:border-zinc-700 p-2 ${it.isSold ? "opacity-60" : ""}`, children: [_jsxs(Div, { className: "relative h-16 w-16 shrink-0 overflow-hidden rounded bg-zinc-100 dark:bg-zinc-800", children: [it.images?.[0] && (
73
- /* eslint-disable-next-line @next/next/no-img-element */
74
- _jsx("img", { src: it.images[0], alt: it.title, className: "h-full w-full object-cover" })), it.isSold && (_jsx(Div, { className: "absolute inset-0 grid place-items-center bg-black/50", children: _jsx(Text, { className: "text-xs font-semibold text-white", children: "Sold" }) }))] }), _jsxs(Stack, { className: "min-w-0 flex-1 gap-1", children: [_jsx(Text, { className: "truncate font-medium", children: it.title }), _jsxs(Row, { className: "items-center gap-2 text-xs", children: [_jsx(Badge, { variant: "secondary", children: BUNDLE_ITEM_TYPE_LABEL[it.listingType] }), _jsxs(Text, { className: "text-[var(--appkit-color-text-muted,#6b7280)]", children: [formatPaise(it.price), " \u00B7 qty ", it.quantity] })] })] }), _jsxs(Row, { className: "items-center gap-1", children: [_jsx(Button, { type: "button", variant: "ghost", size: "sm", disabled: disabled || it.isSold || it.quantity <= 1, onClick: () => updateQty(it.productId, it.quantity - 1), "aria-label": "Decrease quantity", children: "\u2212" }), _jsx(Text, { className: "w-6 text-center text-sm", children: it.quantity }), _jsx(Button, { type: "button", variant: "ghost", size: "sm", disabled: disabled || it.isSold, onClick: () => updateQty(it.productId, it.quantity + 1), "aria-label": "Increase quantity", children: "+" })] }), _jsx(Button, { type: "button", variant: "ghost", size: "sm", disabled: disabled || it.isSold, onClick: () => removeItem(it.productId), "aria-label": "Remove item", children: "Remove" })] }, it.productId))) })), _jsx(Modal, { open: pickerOpen, onClose: () => setPickerOpen(false), size: "lg", title: "Add bundle items", children: _jsxs(Stack, { className: "gap-3", children: [_jsxs(Row, { className: "gap-2 flex-wrap", children: [_jsx(Select, { options: BUNDLE_ITEM_TYPE_OPTIONS, value: filterType, onValueChange: setFilterType, disabled: !!lockedType }), _jsx(Input, { placeholder: "Search by title\u2026", value: search, onChange: (e) => setSearch(e.target.value), className: "flex-1 min-w-[200px]" })] }), lockedType && (_jsxs(Text, { className: "text-xs text-[var(--appkit-color-text-muted,#6b7280)]", children: ["Bundle type is locked to ", BUNDLE_ITEM_TYPE_LABEL[lockedType], " after the first item. Remove all items to reset."] })), isLoading ? (_jsx(Text, { children: "Loading store products\u2026" })) : candidates.length === 0 ? (_jsxs(Text, { className: "text-[var(--appkit-color-text-muted,#6b7280)]", children: ["No matching", " ", BUNDLE_ITEM_TYPE_LABEL[filterType].toLowerCase(), " products in your store."] })) : (_jsx(Stack, { className: "gap-2 max-h-[50vh] overflow-y-auto", children: candidates.map((p) => (_jsxs(Row, { className: "items-center gap-3 rounded border border-zinc-200 dark:border-zinc-700 p-2", children: [_jsx(Div, { className: "h-12 w-12 shrink-0 overflow-hidden rounded bg-zinc-100 dark:bg-zinc-800", children: p.images?.[0] && (
75
- /* eslint-disable-next-line @next/next/no-img-element */
76
- _jsx("img", { src: p.images[0], alt: p.title ?? p.id, className: "h-full w-full object-cover" })) }), _jsxs(Stack, { className: "min-w-0 flex-1 gap-1", children: [_jsx(Text, { className: "truncate text-sm font-medium", children: p.title ?? p.id }), _jsx(Text, { className: "text-xs text-[var(--appkit-color-text-muted,#6b7280)]", children: formatPaise(typeof p.price === "number" ? p.price : 0) })] }), _jsx(Button, { type: "button", variant: "secondary", size: "sm", disabled: atMax, onClick: () => addItem(p), children: "Add" })] }, p.id))) }))] }) })] }));
77
- }
@@ -1,6 +0,0 @@
1
- import type { BundleDocument } from "../schemas/firestore";
2
- export interface BundlesByCategoryListingProps {
3
- initialBundles: BundleDocument[];
4
- brandName?: string;
5
- }
6
- export declare function BundlesByCategoryListing({ initialBundles, brandName, }: BundlesByCategoryListingProps): import("react/jsx-runtime").JSX.Element;
@@ -1,50 +0,0 @@
1
- "use client";
2
- import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
3
- /**
4
- * BundlesByCategoryListing — SB7-C bundles tab (server-fetched via parent).
5
- *
6
- * Slim wrapper around `BundlesListingView` that hydrates from a parent-server
7
- * fetch of `bundlesRepository.findByCategory(categorySlug)` or from a search
8
- * by brand. The client owns its own filter state (sort + min/max) but does
9
- * not refetch — the parent ships the full bundle list as `initialBundles`.
10
- *
11
- * For listing surfaces that need real pagination, swap to `useBundles`
12
- * (not yet built — track in S7-PrizeDraws-3 follow-ups).
13
- */
14
- import { useMemo, useState } from "react";
15
- import Link from "next/link";
16
- import { Badge, Div, Row, Stack, Text, } from "../../../ui";
17
- import { ROUTES } from "../../../next/routing/route-map";
18
- function formatRupees(paise) {
19
- return `₹${(paise / 100).toLocaleString("en-IN")}`;
20
- }
21
- function savingsPct(b) {
22
- if (!b.bundleOriginalTotal)
23
- return 0;
24
- const off = Math.max(0, b.bundleOriginalTotal - b.bundlePrice);
25
- return Math.round((off / b.bundleOriginalTotal) * 100);
26
- }
27
- export function BundlesByCategoryListing({ initialBundles, brandName, }) {
28
- const [sort, setSort] = useState("newest");
29
- const filtered = useMemo(() => {
30
- let list = initialBundles.slice();
31
- if (brandName) {
32
- const needle = brandName.toLowerCase();
33
- list = list.filter((b) => b.brand?.toLowerCase?.() === needle ||
34
- b.brandSlug?.toLowerCase?.() === needle ||
35
- b.bundleItems.some((it) => String(it.brand ?? "").toLowerCase() === needle));
36
- }
37
- if (sort === "savings-desc")
38
- list.sort((a, b) => savingsPct(b) - savingsPct(a));
39
- else if (sort === "price-asc")
40
- list.sort((a, b) => a.bundlePrice - b.bundlePrice);
41
- return list;
42
- }, [initialBundles, brandName, sort]);
43
- return (_jsxs(Stack, { className: "gap-4", children: [_jsxs(Row, { className: "items-center justify-between flex-wrap gap-2", children: [_jsxs(Text, { className: "text-sm text-[var(--appkit-color-text-muted)]", children: [filtered.length, " ", filtered.length === 1 ? "bundle" : "bundles"] }), _jsxs("label", { className: "text-xs text-zinc-600 dark:text-zinc-300", children: ["Sort:", _jsxs("select", { value: sort, onChange: (e) => setSort(e.target.value), className: "ml-2 rounded border border-zinc-300 dark:border-slate-600 bg-white dark:bg-slate-800 px-2 py-1 text-xs", children: [_jsx("option", { value: "newest", children: "Newest" }), _jsx("option", { value: "savings-desc", children: "Best savings" }), _jsx("option", { value: "price-asc", children: "Price: low \u2192 high" })] })] })] }), filtered.length === 0 ? (_jsx(Div, { className: "rounded border border-dashed border-zinc-300 dark:border-zinc-700 p-10 text-center", children: _jsx(Text, { children: "No bundles match these filters yet." }) })) : (_jsx(Div, { className: "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4", children: filtered.map((b) => {
44
- const oos = b.status === "out_of_stock";
45
- const off = savingsPct(b);
46
- return (_jsxs(Link, { href: ROUTES.PUBLIC.BUNDLE_DETAIL(b.slug), className: "group block rounded-lg border border-zinc-200 dark:border-zinc-700 overflow-hidden hover:shadow-md transition", children: [_jsxs(Div, { className: `relative aspect-video bg-zinc-100 dark:bg-zinc-800 ${oos ? "opacity-60" : ""}`, children: [b.images?.[0] && (
47
- /* eslint-disable-next-line @next/next/no-img-element, @next/next/no-raw-media-elements */
48
- _jsx("img", { src: b.images[0], alt: b.title, className: "h-full w-full object-cover" })), oos && (_jsx(Div, { className: "absolute inset-0 grid place-items-center bg-black/40", children: _jsx(Badge, { variant: "danger", children: "Currently unavailable" }) })), off > 0 && !oos && (_jsxs(Badge, { variant: "success", className: "absolute top-2 left-2", children: [off, "% off"] })), _jsxs(Badge, { variant: "secondary", className: "absolute top-2 right-2", children: [b.bundleItems.length, " items"] })] }), _jsxs(Stack, { className: "gap-1 p-3", children: [_jsx(Text, { className: "font-medium truncate", children: b.title }), _jsx(Text, { className: "text-xs text-[var(--appkit-color-text-muted)]", children: b.storeName }), _jsxs(Row, { className: "items-baseline gap-2", children: [_jsx(Text, { className: "font-semibold", children: formatRupees(b.bundlePrice) }), b.bundleOriginalTotal > b.bundlePrice && (_jsx(Text, { className: "text-xs line-through text-[var(--appkit-color-text-muted)]", children: formatRupees(b.bundleOriginalTotal) }))] })] })] }, b.id));
49
- }) }))] }));
50
- }
@@ -1,17 +0,0 @@
1
- import { type BundleSort } from "../constants";
2
- import type { BundleDocument } from "../schemas/firestore";
3
- export type { BundleSort } from "../constants";
4
- export interface BundlesListingViewProps {
5
- bundles: BundleDocument[];
6
- total?: number;
7
- page?: number;
8
- totalPages?: number;
9
- onPageChange?: (page: number) => void;
10
- filters?: {
11
- storeId?: string;
12
- category?: string;
13
- sort?: BundleSort;
14
- };
15
- onFiltersChange?: (next: BundlesListingViewProps["filters"]) => void;
16
- }
17
- export declare function BundlesListingView({ bundles, total, page, totalPages, onPageChange, filters, onFiltersChange, }: BundlesListingViewProps): import("react/jsx-runtime").JSX.Element;
@@ -1,50 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- /**
4
- * BundlesListingView — SB3-H. Public sieve page for bundles.
5
- *
6
- * Renders a simple paginated grid of published bundles. Filters: store,
7
- * category, sort. Data fetching is delegated to the parent via initialData;
8
- * a follow-up can swap this to a useQuery hook against /api/bundles.
9
- */
10
- import { useMemo, useState } from "react";
11
- import Link from "next/link";
12
- import { Badge, Button, Container, Div, Heading, Input, Label, Pagination, Row, Section, Select, Stack, Text, } from "../../../ui";
13
- import { ROUTES } from "../../../next/routing/route-map";
14
- import { BUNDLE_SORT_OPTIONS } from "../constants";
15
- function formatRupees(paise) {
16
- return `₹${(paise / 100).toLocaleString("en-IN")}`;
17
- }
18
- function savingsPct(b) {
19
- if (!b.bundleOriginalTotal)
20
- return 0;
21
- const off = Math.max(0, b.bundleOriginalTotal - b.bundlePrice);
22
- return Math.round((off / b.bundleOriginalTotal) * 100);
23
- }
24
- export function BundlesListingView({ bundles, total, page = 1, totalPages = 1, onPageChange, filters, onFiltersChange, }) {
25
- const [storeId, setStoreId] = useState(filters?.storeId ?? "");
26
- const [category, setCategory] = useState(filters?.category ?? "");
27
- const [sort, setSort] = useState(filters?.sort ?? "newest");
28
- const sorted = useMemo(() => {
29
- const list = [...bundles];
30
- if (sort === "savings-desc")
31
- list.sort((a, b) => savingsPct(b) - savingsPct(a));
32
- else if (sort === "price-asc")
33
- list.sort((a, b) => a.bundlePrice - b.bundlePrice);
34
- return list;
35
- }, [bundles, sort]);
36
- const apply = () => {
37
- onFiltersChange?.({
38
- storeId: storeId || undefined,
39
- category: category || undefined,
40
- sort,
41
- });
42
- };
43
- return (_jsx(Section, { children: _jsx(Container, { children: _jsxs(Stack, { className: "gap-6", children: [_jsxs(Stack, { className: "gap-2", children: [_jsx(Heading, { level: 1, children: "Bundles" }), _jsxs(Text, { className: "text-[var(--appkit-color-text-muted,#6b7280)]", children: ["Curated multi-product bundles from LetItRip sellers.", " ", typeof total === "number" && _jsxs("span", { children: [total, " results"] })] })] }), _jsxs(Row, { className: "gap-2 flex-wrap items-end", children: [_jsxs(Stack, { className: "gap-1", children: [_jsx(Label, { children: "Store" }), _jsx(Input, { value: storeId, onChange: (e) => setStoreId(e.target.value), placeholder: "store-xyz" })] }), _jsxs(Stack, { className: "gap-1", children: [_jsx(Label, { children: "Category slug" }), _jsx(Input, { value: category, onChange: (e) => setCategory(e.target.value), placeholder: "category-action-figures" })] }), _jsxs(Stack, { className: "gap-1", children: [_jsx(Label, { children: "Sort" }), _jsx(Select, { options: BUNDLE_SORT_OPTIONS, value: sort, onValueChange: setSort })] }), _jsx(Button, { type: "button", variant: "primary", onClick: apply, children: "Apply" })] }), sorted.length === 0 ? (_jsx(Div, { className: "rounded border border-dashed border-zinc-300 dark:border-zinc-700 p-10 text-center", children: _jsx(Text, { children: "No bundles match these filters yet." }) })) : (_jsx(Div, { className: "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4", children: sorted.map((b) => {
44
- const oos = b.status === "out_of_stock";
45
- const off = savingsPct(b);
46
- return (_jsxs(Link, { href: ROUTES.PUBLIC.BUNDLE_DETAIL(b.slug), className: "group block rounded-lg border border-zinc-200 dark:border-zinc-700 overflow-hidden hover:shadow-md transition", children: [_jsxs(Div, { className: `relative aspect-video bg-zinc-100 dark:bg-zinc-800 ${oos ? "opacity-60" : ""}`, children: [b.images?.[0] && (
47
- /* eslint-disable-next-line @next/next/no-img-element */
48
- _jsx("img", { src: b.images[0], alt: b.title, className: "h-full w-full object-cover" })), oos && (_jsx(Div, { className: "absolute inset-0 grid place-items-center bg-black/40", children: _jsx(Badge, { variant: "danger", children: "Currently unavailable" }) })), off > 0 && !oos && (_jsxs(Badge, { variant: "success", className: "absolute top-2 left-2", children: [off, "% off"] })), _jsxs(Badge, { variant: "secondary", className: "absolute top-2 right-2", children: [b.bundleItems.length, " items"] })] }), _jsxs(Stack, { className: "gap-1 p-3", children: [_jsx(Text, { className: "font-medium truncate", children: b.title }), _jsx(Text, { className: "text-xs text-[var(--appkit-color-text-muted,#6b7280)]", children: b.storeName }), _jsxs(Row, { className: "items-baseline gap-2", children: [_jsx(Text, { className: "font-semibold", children: formatRupees(b.bundlePrice) }), b.bundleOriginalTotal > b.bundlePrice && (_jsx(Text, { className: "text-xs line-through text-[var(--appkit-color-text-muted,#6b7280)]", children: formatRupees(b.bundleOriginalTotal) }))] })] })] }, b.id));
49
- }) })), totalPages > 1 && onPageChange && (_jsx(Pagination, { currentPage: page, totalPages: totalPages, onPageChange: onPageChange }))] }) }) }));
50
- }
@@ -1,5 +0,0 @@
1
- import type { FeaturedBundlesSectionConfig } from "../../homepage/schemas/firestore";
2
- export interface FeaturedBundlesSectionProps {
3
- config: FeaturedBundlesSectionConfig;
4
- }
5
- export declare function FeaturedBundlesSection({ config, }: FeaturedBundlesSectionProps): Promise<import("react/jsx-runtime").JSX.Element>;
@@ -1,55 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import Link from "next/link";
3
- import { Container, Heading, Section, Stack, Text, } from "../../../ui";
4
- import { ROUTES } from "../../../next";
5
- import { listFeaturedBundles } from "../../../_internal/server/features/bundles/data";
6
- function formatINR(paise) {
7
- if (typeof paise !== "number")
8
- return "";
9
- const rupees = paise / 100;
10
- return new Intl.NumberFormat("en-IN", {
11
- style: "currency",
12
- currency: "INR",
13
- maximumFractionDigits: 0,
14
- }).format(rupees);
15
- }
16
- function sortBundles(bundles, sortBy) {
17
- const arr = [...bundles];
18
- switch (sortBy) {
19
- case "savings-desc":
20
- return arr.sort((a, b) => (b.discountPercent ?? 0) - (a.discountPercent ?? 0));
21
- case "price-asc":
22
- return arr.sort((a, b) => (a.bundlePrice ?? 0) - (b.bundlePrice ?? 0));
23
- case "newest":
24
- default:
25
- return arr.sort((a, b) => b.createdAt.getTime() - a.createdAt.getTime());
26
- }
27
- }
28
- export async function FeaturedBundlesSection({ config, }) {
29
- const title = config.title ?? "Curated Bundles";
30
- const subtitle = config.subtitle ?? "Everything you need in one deal";
31
- const showSavingsBadge = config.showSavingsBadge ?? true;
32
- const maxItems = Math.max(1, Math.min(config.maxItems ?? 8, 12));
33
- let fetched = [];
34
- try {
35
- fetched = await listFeaturedBundles(maxItems * 2);
36
- }
37
- catch {
38
- fetched = [];
39
- }
40
- const filtered = fetched.filter((b) => {
41
- if (config.storeId && b.storeId !== config.storeId)
42
- return false;
43
- if (config.categorySlug && b.categorySlug !== config.categorySlug)
44
- return false;
45
- return true;
46
- });
47
- const bundles = sortBundles(filtered, config.sortBy).slice(0, maxItems);
48
- return (_jsx(Section, { className: "py-10", children: _jsx(Container, { size: "xl", children: _jsxs(Stack, { gap: "md", children: [_jsxs(Stack, { gap: "xs", children: [_jsx(Heading, { level: 2, className: "text-2xl font-semibold text-zinc-900 dark:text-zinc-50", children: title }), subtitle ? (_jsx(Text, { className: "text-sm text-zinc-500 dark:text-zinc-400", children: subtitle })) : null] }), bundles.length === 0 ? (_jsxs(Stack, { align: "center", gap: "sm", className: "rounded-2xl border border-dashed border-zinc-300 px-6 py-12 text-center dark:border-slate-700", children: [_jsx(Text, { className: "text-sm text-zinc-500 dark:text-zinc-400", children: "Bundles are coming soon \u2014 check back shortly." }), _jsx(Link, { href: String(ROUTES.PUBLIC.PRODUCTS), className: "text-sm font-medium text-primary hover:underline", children: "Browse products \u2192" })] })) : (_jsx("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4", children: bundles.map((b) => {
49
- const href = b.storeId
50
- ? `${String(ROUTES.PUBLIC.STORES)}/${b.storeId}`
51
- : String(ROUTES.PUBLIC.PRODUCTS);
52
- return (_jsxs(Link, { href: href, className: "group block overflow-hidden rounded-2xl border border-zinc-200 bg-white shadow-sm transition hover:shadow-md dark:border-slate-700 dark:bg-slate-900", children: [b.coverImage ? (_jsx("div", { className: "aspect-[4/3] w-full bg-cover bg-center", style: { backgroundImage: `url(${b.coverImage})` } })) : (_jsx("div", { className: "aspect-[4/3] w-full bg-zinc-100 dark:bg-slate-800" })), _jsxs("div", { className: "space-y-2 p-4", children: [_jsx(Text, { className: "line-clamp-2 text-sm font-semibold text-zinc-900 dark:text-zinc-50", children: b.title }), _jsxs("div", { className: "flex items-center gap-2", children: [typeof b.bundlePrice === "number" ? (_jsx(Text, { className: "text-base font-bold text-primary", children: formatINR(b.bundlePrice) })) : null, typeof b.originalPrice === "number" &&
53
- b.originalPrice > (b.bundlePrice ?? 0) ? (_jsx(Text, { className: "text-xs text-zinc-500 line-through dark:text-zinc-400", children: formatINR(b.originalPrice) })) : null, showSavingsBadge && typeof b.discountPercent === "number" && b.discountPercent > 0 ? (_jsxs("span", { className: "ml-auto rounded-full bg-emerald-100 px-2 py-0.5 text-xs font-medium text-emerald-700 dark:bg-emerald-900/40 dark:text-emerald-300", children: ["-", b.discountPercent, "%"] })) : null] }), _jsxs(Text, { className: "text-xs text-zinc-500 dark:text-zinc-400", children: [b.productIds.length, " items"] })] })] }, b.id));
54
- }) }))] }) }) }));
55
- }
@@ -1,8 +0,0 @@
1
- import { type BundleFormValue } from "./BundleForm";
2
- export interface SellerBundleCreateViewProps {
3
- storeId: string;
4
- storeName: string;
5
- onSubmit: (value: BundleFormValue) => Promise<void> | void;
6
- onCancel?: () => void;
7
- }
8
- export declare function SellerBundleCreateView({ storeId, storeName, onSubmit, onCancel, }: SellerBundleCreateViewProps): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { Container, Heading, Section, Stack } from "../../../ui";
4
- import { BundleForm } from "./BundleForm";
5
- export function SellerBundleCreateView({ storeId, storeName, onSubmit, onCancel, }) {
6
- return (_jsx(Section, { children: _jsx(Container, { children: _jsxs(Stack, { className: "gap-6", children: [_jsx(Heading, { level: 1, children: "Create a bundle" }), _jsx(BundleForm, { storeId: storeId, storeName: storeName, onSubmit: onSubmit, onCancel: onCancel, submitLabel: "Create bundle" })] }) }) }));
7
- }
@@ -1,9 +0,0 @@
1
- import { type BundleFormValue } from "./BundleForm";
2
- import type { BundleDocument } from "../schemas/firestore";
3
- export interface SellerBundleEditViewProps {
4
- bundle: BundleDocument;
5
- storeName: string;
6
- onSubmit: (value: BundleFormValue) => Promise<void> | void;
7
- onCancel?: () => void;
8
- }
9
- export declare function SellerBundleEditView({ bundle, storeName, onSubmit, onCancel, }: SellerBundleEditViewProps): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { Container, Heading, Section, Stack } from "../../../ui";
4
- import { BundleForm } from "./BundleForm";
5
- export function SellerBundleEditView({ bundle, storeName, onSubmit, onCancel, }) {
6
- return (_jsx(Section, { children: _jsx(Container, { children: _jsxs(Stack, { className: "gap-6", children: [_jsx(Heading, { level: 1, children: "Edit bundle" }), _jsx(BundleForm, { storeId: bundle.storeId, storeName: storeName, initial: bundle, onSubmit: onSubmit, onCancel: onCancel, submitLabel: "Save changes" })] }) }) }));
7
- }
@@ -1,18 +0,0 @@
1
- export { FeaturedBundlesSection } from "./FeaturedBundlesSection";
2
- export type { FeaturedBundlesSectionProps } from "./FeaturedBundlesSection";
3
- export { BundleItemsPicker } from "./BundleItemsPicker";
4
- export type { BundleItemsPickerProps } from "./BundleItemsPicker";
5
- export { BundleForm } from "./BundleForm";
6
- export type { BundleFormValue, BundleFormProps } from "./BundleForm";
7
- export { SellerBundleCreateView } from "./SellerBundleCreateView";
8
- export type { SellerBundleCreateViewProps } from "./SellerBundleCreateView";
9
- export { SellerBundleEditView } from "./SellerBundleEditView";
10
- export type { SellerBundleEditViewProps } from "./SellerBundleEditView";
11
- export { AdminBundleEditorView } from "./AdminBundleEditorView";
12
- export type { AdminBundleEditorViewProps } from "./AdminBundleEditorView";
13
- export { BundlesListingView } from "./BundlesListingView";
14
- export type { BundlesListingViewProps, BundleSort, } from "./BundlesListingView";
15
- export { BundleDetailPageView } from "./BundleDetailPageView";
16
- export type { BundleDetailPageViewProps } from "./BundleDetailPageView";
17
- export { BundlesByCategoryListing } from "./BundlesByCategoryListing";
18
- export type { BundlesByCategoryListingProps } from "./BundlesByCategoryListing";