@anker-in/headless-ui 1.0.20-alpha.1761623666342 → 1.0.21

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 (595) hide show
  1. package/dist/cjs/biz-components/AccordionCards/index.js.map +2 -2
  2. package/dist/cjs/biz-components/AiuiProvider/index.d.ts +0 -4
  3. package/dist/cjs/biz-components/AiuiProvider/index.js +1 -1
  4. package/dist/cjs/biz-components/AiuiProvider/index.js.map +2 -2
  5. package/dist/cjs/biz-components/Faq/Faq.js +1 -1
  6. package/dist/cjs/biz-components/Faq/Faq.js.map +2 -2
  7. package/dist/cjs/biz-components/Graphic/index.js +1 -1
  8. package/dist/cjs/biz-components/Graphic/index.js.map +2 -2
  9. package/dist/cjs/biz-components/MultiLayoutGraphicBlock/MultiLayoutGraphicBlock.js +1 -1
  10. package/dist/cjs/biz-components/MultiLayoutGraphicBlock/MultiLayoutGraphicBlock.js.map +2 -2
  11. package/dist/cjs/biz-components/ShelfDisplay/index.js +1 -1
  12. package/dist/cjs/biz-components/ShelfDisplay/index.js.map +3 -3
  13. package/dist/cjs/biz-components/ShelfDisplay/shelfDisplay.d.ts +2 -11
  14. package/dist/cjs/biz-components/ShelfDisplay/shelfDisplay.js +1 -1
  15. package/dist/cjs/biz-components/ShelfDisplay/shelfDisplay.js.map +3 -3
  16. package/dist/cjs/biz-components/ShelfDisplay/shelfDisplayItem.js +4 -4
  17. package/dist/cjs/biz-components/ShelfDisplay/shelfDisplayItem.js.map +3 -3
  18. package/dist/cjs/biz-components/Subscribe/index.js +2 -2
  19. package/dist/cjs/biz-components/Subscribe/index.js.map +2 -2
  20. package/dist/cjs/biz-components/Tabs/Tabs.js +1 -1
  21. package/dist/cjs/biz-components/Tabs/Tabs.js.map +2 -2
  22. package/dist/cjs/biz-components/Title/index.js +1 -1
  23. package/dist/cjs/biz-components/Title/index.js.map +3 -3
  24. package/dist/cjs/biz-components/Title/types.d.ts +1 -4
  25. package/dist/cjs/biz-components/Title/types.js +1 -1
  26. package/dist/cjs/biz-components/Title/types.js.map +1 -1
  27. package/dist/cjs/biz-components/index.d.ts +0 -34
  28. package/dist/cjs/biz-components/index.js +1 -1
  29. package/dist/cjs/biz-components/index.js.map +3 -3
  30. package/dist/cjs/components/button.js +1 -1
  31. package/dist/cjs/components/button.js.map +2 -2
  32. package/dist/cjs/components/checkbox.js +1 -1
  33. package/dist/cjs/components/checkbox.js.map +3 -3
  34. package/dist/cjs/components/index.d.ts +1 -2
  35. package/dist/cjs/components/index.js +1 -1
  36. package/dist/cjs/components/index.js.map +3 -3
  37. package/dist/cjs/components/picture.d.ts +0 -1
  38. package/dist/cjs/components/picture.js +1 -1
  39. package/dist/cjs/components/picture.js.map +3 -3
  40. package/dist/cjs/helpers/utils.d.ts +0 -1
  41. package/dist/cjs/helpers/utils.js +1 -1
  42. package/dist/cjs/helpers/utils.js.map +3 -3
  43. package/dist/cjs/stories/picture.stories.d.ts +0 -4
  44. package/dist/cjs/stories/picture.stories.js +3 -8
  45. package/dist/cjs/stories/picture.stories.js.map +3 -3
  46. package/dist/cjs/stories/shelfDisplay.stories.js +1 -644
  47. package/dist/cjs/stories/shelfDisplay.stories.js.map +2 -2
  48. package/dist/cjs/stories/tabs.stories.js +1 -1
  49. package/dist/cjs/stories/tabs.stories.js.map +3 -3
  50. package/dist/esm/biz-components/AccordionCards/index.js.map +2 -2
  51. package/dist/esm/biz-components/AiuiProvider/index.d.ts +0 -4
  52. package/dist/esm/biz-components/AiuiProvider/index.js +1 -1
  53. package/dist/esm/biz-components/AiuiProvider/index.js.map +2 -2
  54. package/dist/esm/biz-components/Faq/Faq.js +1 -1
  55. package/dist/esm/biz-components/Faq/Faq.js.map +3 -3
  56. package/dist/esm/biz-components/Graphic/index.js +1 -1
  57. package/dist/esm/biz-components/Graphic/index.js.map +2 -2
  58. package/dist/esm/biz-components/MultiLayoutGraphicBlock/MultiLayoutGraphicBlock.js +1 -1
  59. package/dist/esm/biz-components/MultiLayoutGraphicBlock/MultiLayoutGraphicBlock.js.map +2 -2
  60. package/dist/esm/biz-components/ShelfDisplay/index.js +1 -1
  61. package/dist/esm/biz-components/ShelfDisplay/index.js.map +3 -3
  62. package/dist/esm/biz-components/ShelfDisplay/shelfDisplay.d.ts +2 -11
  63. package/dist/esm/biz-components/ShelfDisplay/shelfDisplay.js +1 -1
  64. package/dist/esm/biz-components/ShelfDisplay/shelfDisplay.js.map +3 -3
  65. package/dist/esm/biz-components/ShelfDisplay/shelfDisplayItem.js +9 -9
  66. package/dist/esm/biz-components/ShelfDisplay/shelfDisplayItem.js.map +3 -3
  67. package/dist/esm/biz-components/Subscribe/index.js +2 -2
  68. package/dist/esm/biz-components/Subscribe/index.js.map +2 -2
  69. package/dist/esm/biz-components/Tabs/Tabs.js +1 -1
  70. package/dist/esm/biz-components/Tabs/Tabs.js.map +2 -2
  71. package/dist/esm/biz-components/Title/index.js +1 -1
  72. package/dist/esm/biz-components/Title/index.js.map +3 -3
  73. package/dist/esm/biz-components/Title/types.d.ts +1 -4
  74. package/dist/esm/biz-components/index.d.ts +0 -34
  75. package/dist/esm/biz-components/index.js +1 -1
  76. package/dist/esm/biz-components/index.js.map +2 -2
  77. package/dist/esm/components/button.js +1 -1
  78. package/dist/esm/components/button.js.map +2 -2
  79. package/dist/esm/components/checkbox.js +1 -1
  80. package/dist/esm/components/checkbox.js.map +3 -3
  81. package/dist/esm/components/index.d.ts +1 -2
  82. package/dist/esm/components/index.js +1 -1
  83. package/dist/esm/components/index.js.map +2 -2
  84. package/dist/esm/components/picture.d.ts +0 -1
  85. package/dist/esm/components/picture.js +1 -1
  86. package/dist/esm/components/picture.js.map +3 -3
  87. package/dist/esm/helpers/utils.d.ts +0 -1
  88. package/dist/esm/helpers/utils.js +1 -1
  89. package/dist/esm/helpers/utils.js.map +3 -3
  90. package/dist/esm/stories/picture.stories.d.ts +0 -4
  91. package/dist/esm/stories/picture.stories.js +3 -8
  92. package/dist/esm/stories/picture.stories.js.map +3 -3
  93. package/dist/esm/stories/shelfDisplay.stories.js +1 -644
  94. package/dist/esm/stories/shelfDisplay.stories.js.map +2 -2
  95. package/dist/esm/stories/tabs.stories.js +1 -1
  96. package/dist/esm/stories/tabs.stories.js.map +3 -3
  97. package/dist/tokens/base.css +1 -1
  98. package/package.json +1 -1
  99. package/style.css +0 -27
  100. package/dist/cjs/biz-components/AplusDesc/index.d.ts +0 -22
  101. package/dist/cjs/biz-components/AplusDesc/index.js +0 -2
  102. package/dist/cjs/biz-components/AplusDesc/index.js.map +0 -7
  103. package/dist/cjs/biz-components/CollectionShelves/CollectionShelvesItem.d.ts +0 -4
  104. package/dist/cjs/biz-components/CollectionShelves/CollectionShelvesItem.js +0 -2
  105. package/dist/cjs/biz-components/CollectionShelves/CollectionShelvesItem.js.map +0 -7
  106. package/dist/cjs/biz-components/CollectionShelves/index.d.ts +0 -6
  107. package/dist/cjs/biz-components/CollectionShelves/index.js +0 -2
  108. package/dist/cjs/biz-components/CollectionShelves/index.js.map +0 -7
  109. package/dist/cjs/biz-components/CollectionsBanner/index.d.ts +0 -7
  110. package/dist/cjs/biz-components/CollectionsBanner/index.js +0 -2
  111. package/dist/cjs/biz-components/CollectionsBanner/index.js.map +0 -7
  112. package/dist/cjs/biz-components/CollectionsBanner/types.d.ts +0 -43
  113. package/dist/cjs/biz-components/CollectionsBanner/types.js +0 -2
  114. package/dist/cjs/biz-components/CollectionsBanner/types.js.map +0 -7
  115. package/dist/cjs/biz-components/CollectionsFilters/FilterCardWrap.d.ts +0 -17
  116. package/dist/cjs/biz-components/CollectionsFilters/FilterCardWrap.js +0 -2
  117. package/dist/cjs/biz-components/CollectionsFilters/FilterCardWrap.js.map +0 -7
  118. package/dist/cjs/biz-components/CollectionsFilters/FilterCardWrapItem.d.ts +0 -10
  119. package/dist/cjs/biz-components/CollectionsFilters/FilterCardWrapItem.js +0 -2
  120. package/dist/cjs/biz-components/CollectionsFilters/FilterCardWrapItem.js.map +0 -7
  121. package/dist/cjs/biz-components/CollectionsFilters/FilterHeader.d.ts +0 -13
  122. package/dist/cjs/biz-components/CollectionsFilters/FilterHeader.js +0 -2
  123. package/dist/cjs/biz-components/CollectionsFilters/FilterHeader.js.map +0 -7
  124. package/dist/cjs/biz-components/CollectionsFilters/FilterList.d.ts +0 -14
  125. package/dist/cjs/biz-components/CollectionsFilters/FilterList.js +0 -2
  126. package/dist/cjs/biz-components/CollectionsFilters/FilterList.js.map +0 -7
  127. package/dist/cjs/biz-components/CollectionsFilters/component/AnimatedUL.d.ts +0 -5
  128. package/dist/cjs/biz-components/CollectionsFilters/component/AnimatedUL.js +0 -2
  129. package/dist/cjs/biz-components/CollectionsFilters/component/AnimatedUL.js.map +0 -7
  130. package/dist/cjs/biz-components/CollectionsFilters/component/TabFilter.d.ts +0 -12
  131. package/dist/cjs/biz-components/CollectionsFilters/component/TabFilter.js +0 -2
  132. package/dist/cjs/biz-components/CollectionsFilters/component/TabFilter.js.map +0 -7
  133. package/dist/cjs/biz-components/CollectionsFilters/component/filtersFun.d.ts +0 -12
  134. package/dist/cjs/biz-components/CollectionsFilters/component/filtersFun.js +0 -2
  135. package/dist/cjs/biz-components/CollectionsFilters/component/filtersFun.js.map +0 -7
  136. package/dist/cjs/biz-components/CollectionsFilters/component/helper.d.ts +0 -81
  137. package/dist/cjs/biz-components/CollectionsFilters/component/helper.js +0 -2
  138. package/dist/cjs/biz-components/CollectionsFilters/component/helper.js.map +0 -7
  139. package/dist/cjs/biz-components/CollectionsFilters/component/price.d.ts +0 -25
  140. package/dist/cjs/biz-components/CollectionsFilters/component/price.js +0 -2
  141. package/dist/cjs/biz-components/CollectionsFilters/component/price.js.map +0 -7
  142. package/dist/cjs/biz-components/CollectionsFilters/component/priceProps.d.ts +0 -215
  143. package/dist/cjs/biz-components/CollectionsFilters/component/priceProps.js +0 -2
  144. package/dist/cjs/biz-components/CollectionsFilters/component/priceProps.js.map +0 -7
  145. package/dist/cjs/biz-components/CollectionsFilters/index.d.ts +0 -22
  146. package/dist/cjs/biz-components/CollectionsFilters/index.js +0 -2
  147. package/dist/cjs/biz-components/CollectionsFilters/index.js.map +0 -7
  148. package/dist/cjs/biz-components/DownLoad/index.d.ts +0 -20
  149. package/dist/cjs/biz-components/DownLoad/index.js +0 -2
  150. package/dist/cjs/biz-components/DownLoad/index.js.map +0 -7
  151. package/dist/cjs/biz-components/Features/index.d.ts +0 -26
  152. package/dist/cjs/biz-components/Features/index.js +0 -2
  153. package/dist/cjs/biz-components/Features/index.js.map +0 -7
  154. package/dist/cjs/biz-components/FootCharger/index.d.ts +0 -12
  155. package/dist/cjs/biz-components/FootCharger/index.js +0 -2
  156. package/dist/cjs/biz-components/FootCharger/index.js.map +0 -7
  157. package/dist/cjs/biz-components/GiftBox/index.d.ts +0 -17
  158. package/dist/cjs/biz-components/GiftBox/index.js +0 -2
  159. package/dist/cjs/biz-components/GiftBox/index.js.map +0 -7
  160. package/dist/cjs/biz-components/GraphicMore/index.d.ts +0 -22
  161. package/dist/cjs/biz-components/GraphicMore/index.js +0 -2
  162. package/dist/cjs/biz-components/GraphicMore/index.js.map +0 -7
  163. package/dist/cjs/biz-components/Listing/BizProductProvider.d.ts +0 -112
  164. package/dist/cjs/biz-components/Listing/BizProductProvider.js +0 -2
  165. package/dist/cjs/biz-components/Listing/BizProductProvider.js.map +0 -7
  166. package/dist/cjs/biz-components/Listing/components/PaidShipping/LearnMore.d.ts +0 -2
  167. package/dist/cjs/biz-components/Listing/components/PaidShipping/LearnMore.js +0 -2
  168. package/dist/cjs/biz-components/Listing/components/PaidShipping/LearnMore.js.map +0 -7
  169. package/dist/cjs/biz-components/Listing/components/PaidShipping/ShippingMethod.d.ts +0 -10
  170. package/dist/cjs/biz-components/Listing/components/PaidShipping/ShippingMethod.js +0 -2
  171. package/dist/cjs/biz-components/Listing/components/PaidShipping/ShippingMethod.js.map +0 -7
  172. package/dist/cjs/biz-components/Listing/components/PaidShipping/ShippingPolicyModal.d.ts +0 -25
  173. package/dist/cjs/biz-components/Listing/components/PaidShipping/ShippingPolicyModal.js +0 -2
  174. package/dist/cjs/biz-components/Listing/components/PaidShipping/ShippingPolicyModal.js.map +0 -7
  175. package/dist/cjs/biz-components/Listing/components/PaidShipping/index.d.ts +0 -12
  176. package/dist/cjs/biz-components/Listing/components/PaidShipping/index.js +0 -2
  177. package/dist/cjs/biz-components/Listing/components/PaidShipping/index.js.map +0 -7
  178. package/dist/cjs/biz-components/Listing/components/PaidShipping/type.d.ts +0 -30
  179. package/dist/cjs/biz-components/Listing/components/PaidShipping/type.js +0 -2
  180. package/dist/cjs/biz-components/Listing/components/PaidShipping/type.js.map +0 -7
  181. package/dist/cjs/biz-components/Listing/components/PaidShipping/utils.d.ts +0 -2
  182. package/dist/cjs/biz-components/Listing/components/PaidShipping/utils.js +0 -2
  183. package/dist/cjs/biz-components/Listing/components/PaidShipping/utils.js.map +0 -7
  184. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.d.ts +0 -37
  185. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.js +0 -40
  186. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.js.map +0 -7
  187. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductBenefitsTabs/index.d.ts +0 -30
  188. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductBenefitsTabs/index.js +0 -2
  189. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductBenefitsTabs/index.js.map +0 -7
  190. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.d.ts +0 -2
  191. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.js +0 -2
  192. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.js.map +0 -7
  193. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.d.ts +0 -2
  194. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.js +0 -2
  195. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.js.map +0 -7
  196. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.d.ts +0 -2
  197. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.js +0 -2
  198. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.js.map +0 -7
  199. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductOptions/index.d.ts +0 -2
  200. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductOptions/index.js +0 -2
  201. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductOptions/index.js.map +0 -7
  202. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/index.d.ts +0 -2
  203. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/index.js +0 -2
  204. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/index.js.map +0 -7
  205. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/types.d.ts +0 -43
  206. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/types.js +0 -2
  207. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/types.js.map +0 -7
  208. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/CompareModal.d.ts +0 -2
  209. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/CompareModal.js +0 -2
  210. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/CompareModal.js.map +0 -7
  211. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/Select.d.ts +0 -21
  212. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/Select.js +0 -2
  213. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/Select.js.map +0 -7
  214. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/ShopifyColorOption.d.ts +0 -5
  215. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/ShopifyColorOption.js +0 -2
  216. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/ShopifyColorOption.js.map +0 -7
  217. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/SpecsModal.d.ts +0 -1
  218. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/SpecsModal.js +0 -2
  219. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/SpecsModal.js.map +0 -7
  220. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/index.d.ts +0 -2
  221. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/index.js +0 -2
  222. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/index.js.map +0 -7
  223. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/types.d.ts +0 -35
  224. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/types.js +0 -2
  225. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/types.js.map +0 -7
  226. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGridBox.d.ts +0 -6
  227. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGridBox.js +0 -2
  228. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGridBox.js.map +0 -7
  229. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductSummary/index.d.ts +0 -3
  230. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductSummary/index.js +0 -2
  231. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductSummary/index.js.map +0 -7
  232. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductSummary/types.d.ts +0 -2
  233. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductSummary/types.js +0 -2
  234. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductSummary/types.js.map +0 -7
  235. package/dist/cjs/biz-components/Listing/components/ProductCard/index.d.ts +0 -2
  236. package/dist/cjs/biz-components/Listing/components/ProductCard/index.js +0 -2
  237. package/dist/cjs/biz-components/Listing/components/ProductCard/index.js.map +0 -7
  238. package/dist/cjs/biz-components/Listing/components/PurchaseBar/ProductActions/index.d.ts +0 -2
  239. package/dist/cjs/biz-components/Listing/components/PurchaseBar/ProductActions/index.js +0 -2
  240. package/dist/cjs/biz-components/Listing/components/PurchaseBar/ProductActions/index.js.map +0 -7
  241. package/dist/cjs/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/index.d.ts +0 -4
  242. package/dist/cjs/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/index.js +0 -2
  243. package/dist/cjs/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/index.js.map +0 -7
  244. package/dist/cjs/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/types.d.ts +0 -10
  245. package/dist/cjs/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/types.js +0 -2
  246. package/dist/cjs/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/types.js.map +0 -7
  247. package/dist/cjs/biz-components/Listing/components/PurchaseBar/index.d.ts +0 -3
  248. package/dist/cjs/biz-components/Listing/components/PurchaseBar/index.js +0 -2
  249. package/dist/cjs/biz-components/Listing/components/PurchaseBar/index.js.map +0 -7
  250. package/dist/cjs/biz-components/Listing/components/PurchaseBar/types.d.ts +0 -12
  251. package/dist/cjs/biz-components/Listing/components/PurchaseBar/types.js +0 -2
  252. package/dist/cjs/biz-components/Listing/components/PurchaseBar/types.js.map +0 -7
  253. package/dist/cjs/biz-components/Listing/components/index.d.ts +0 -3
  254. package/dist/cjs/biz-components/Listing/components/index.js +0 -2
  255. package/dist/cjs/biz-components/Listing/components/index.js.map +0 -7
  256. package/dist/cjs/biz-components/Listing/const.d.ts +0 -28
  257. package/dist/cjs/biz-components/Listing/const.js +0 -2
  258. package/dist/cjs/biz-components/Listing/const.js.map +0 -7
  259. package/dist/cjs/biz-components/Listing/hooks/use-options.d.ts +0 -3
  260. package/dist/cjs/biz-components/Listing/hooks/use-options.js +0 -2
  261. package/dist/cjs/biz-components/Listing/hooks/use-options.js.map +0 -7
  262. package/dist/cjs/biz-components/Listing/hooks/use-variant-media.d.ts +0 -14
  263. package/dist/cjs/biz-components/Listing/hooks/use-variant-media.js +0 -2
  264. package/dist/cjs/biz-components/Listing/hooks/use-variant-media.js.map +0 -7
  265. package/dist/cjs/biz-components/Listing/hooks/use-variant.d.ts +0 -5
  266. package/dist/cjs/biz-components/Listing/hooks/use-variant.js +0 -2
  267. package/dist/cjs/biz-components/Listing/hooks/use-variant.js.map +0 -7
  268. package/dist/cjs/biz-components/Listing/hooks/useBenefits.d.ts +0 -50
  269. package/dist/cjs/biz-components/Listing/hooks/useBenefits.js +0 -2
  270. package/dist/cjs/biz-components/Listing/hooks/useBenefits.js.map +0 -7
  271. package/dist/cjs/biz-components/Listing/hooks/useCopy.d.ts +0 -5
  272. package/dist/cjs/biz-components/Listing/hooks/useCopy.js +0 -2
  273. package/dist/cjs/biz-components/Listing/hooks/useCopy.js.map +0 -7
  274. package/dist/cjs/biz-components/Listing/index.d.ts +0 -3
  275. package/dist/cjs/biz-components/Listing/index.js +0 -2
  276. package/dist/cjs/biz-components/Listing/index.js.map +0 -7
  277. package/dist/cjs/biz-components/Listing/types/graphql.d.ts +0 -7473
  278. package/dist/cjs/biz-components/Listing/types/graphql.js +0 -2
  279. package/dist/cjs/biz-components/Listing/types/graphql.js.map +0 -7
  280. package/dist/cjs/biz-components/Listing/types/product.d.ts +0 -141
  281. package/dist/cjs/biz-components/Listing/types/product.js +0 -2
  282. package/dist/cjs/biz-components/Listing/types/product.js.map +0 -7
  283. package/dist/cjs/biz-components/Listing/types/productMetafields.d.js +0 -2
  284. package/dist/cjs/biz-components/Listing/types/productMetafields.d.js.map +0 -7
  285. package/dist/cjs/biz-components/Listing/types/type-helper.d.ts +0 -5
  286. package/dist/cjs/biz-components/Listing/types/type-helper.js +0 -2
  287. package/dist/cjs/biz-components/Listing/types/type-helper.js.map +0 -7
  288. package/dist/cjs/biz-components/Listing/types.d.ts +0 -28
  289. package/dist/cjs/biz-components/Listing/types.js +0 -2
  290. package/dist/cjs/biz-components/Listing/types.js.map +0 -7
  291. package/dist/cjs/biz-components/Listing/utils/helper.d.ts +0 -36
  292. package/dist/cjs/biz-components/Listing/utils/helper.js +0 -2
  293. package/dist/cjs/biz-components/Listing/utils/helper.js.map +0 -7
  294. package/dist/cjs/biz-components/Listing/utils/index.d.ts +0 -37
  295. package/dist/cjs/biz-components/Listing/utils/index.js +0 -2
  296. package/dist/cjs/biz-components/Listing/utils/index.js.map +0 -7
  297. package/dist/cjs/biz-components/Listing/utils/textFormat.d.ts +0 -73
  298. package/dist/cjs/biz-components/Listing/utils/textFormat.js +0 -2
  299. package/dist/cjs/biz-components/Listing/utils/textFormat.js.map +0 -7
  300. package/dist/cjs/biz-components/Paginator/index.d.ts +0 -7
  301. package/dist/cjs/biz-components/Paginator/index.js +0 -7
  302. package/dist/cjs/biz-components/Paginator/index.js.map +0 -7
  303. package/dist/cjs/biz-components/SelectStore/index.d.ts +0 -20
  304. package/dist/cjs/biz-components/SelectStore/index.js +0 -2
  305. package/dist/cjs/biz-components/SelectStore/index.js.map +0 -7
  306. package/dist/cjs/biz-components/Specs/dropdown.d.ts +0 -11
  307. package/dist/cjs/biz-components/Specs/dropdown.js +0 -3
  308. package/dist/cjs/biz-components/Specs/dropdown.js.map +0 -7
  309. package/dist/cjs/biz-components/Specs/index.d.ts +0 -6
  310. package/dist/cjs/biz-components/Specs/index.js +0 -2
  311. package/dist/cjs/biz-components/Specs/index.js.map +0 -7
  312. package/dist/cjs/biz-components/TabsGroup/index.d.ts +0 -7
  313. package/dist/cjs/biz-components/TabsGroup/index.js +0 -2
  314. package/dist/cjs/biz-components/TabsGroup/index.js.map +0 -7
  315. package/dist/cjs/biz-components/TabsGroup/types.d.ts +0 -16
  316. package/dist/cjs/biz-components/TabsGroup/types.js +0 -2
  317. package/dist/cjs/biz-components/TabsGroup/types.js.map +0 -7
  318. package/dist/cjs/biz-components/TextMarquee/index.d.ts +0 -9
  319. package/dist/cjs/biz-components/TextMarquee/index.js +0 -2
  320. package/dist/cjs/biz-components/TextMarquee/index.js.map +0 -7
  321. package/dist/cjs/components/breadcrumb.d.ts +0 -12
  322. package/dist/cjs/components/breadcrumb.js +0 -2
  323. package/dist/cjs/components/breadcrumb.js.map +0 -7
  324. package/dist/cjs/hooks/useRollout.d.ts +0 -1
  325. package/dist/cjs/hooks/useRollout.js +0 -2
  326. package/dist/cjs/hooks/useRollout.js.map +0 -7
  327. package/dist/cjs/stories/aplusdesc.stories.d.ts +0 -27
  328. package/dist/cjs/stories/aplusdesc.stories.js +0 -2
  329. package/dist/cjs/stories/aplusdesc.stories.js.map +0 -7
  330. package/dist/cjs/stories/download.stories.d.ts +0 -18
  331. package/dist/cjs/stories/download.stories.js +0 -2
  332. package/dist/cjs/stories/download.stories.js.map +0 -7
  333. package/dist/cjs/stories/features.stories.d.ts +0 -21
  334. package/dist/cjs/stories/features.stories.js +0 -2
  335. package/dist/cjs/stories/features.stories.js.map +0 -7
  336. package/dist/cjs/stories/footcharger.stories.d.ts +0 -19
  337. package/dist/cjs/stories/footcharger.stories.js +0 -2
  338. package/dist/cjs/stories/footcharger.stories.js.map +0 -7
  339. package/dist/cjs/stories/giftbox.stories.d.ts +0 -18
  340. package/dist/cjs/stories/giftbox.stories.js +0 -2
  341. package/dist/cjs/stories/giftbox.stories.js.map +0 -7
  342. package/dist/cjs/stories/graphicMore.stories.d.ts +0 -19
  343. package/dist/cjs/stories/graphicMore.stories.js +0 -2
  344. package/dist/cjs/stories/graphicMore.stories.js.map +0 -7
  345. package/dist/cjs/stories/selectstore.stories.d.ts +0 -18
  346. package/dist/cjs/stories/selectstore.stories.js +0 -2
  347. package/dist/cjs/stories/selectstore.stories.js.map +0 -7
  348. package/dist/esm/biz-components/AplusDesc/index.d.ts +0 -22
  349. package/dist/esm/biz-components/AplusDesc/index.js +0 -2
  350. package/dist/esm/biz-components/AplusDesc/index.js.map +0 -7
  351. package/dist/esm/biz-components/CollectionShelves/CollectionShelvesItem.d.ts +0 -4
  352. package/dist/esm/biz-components/CollectionShelves/CollectionShelvesItem.js +0 -2
  353. package/dist/esm/biz-components/CollectionShelves/CollectionShelvesItem.js.map +0 -7
  354. package/dist/esm/biz-components/CollectionShelves/index.d.ts +0 -6
  355. package/dist/esm/biz-components/CollectionShelves/index.js +0 -2
  356. package/dist/esm/biz-components/CollectionShelves/index.js.map +0 -7
  357. package/dist/esm/biz-components/CollectionsBanner/index.d.ts +0 -7
  358. package/dist/esm/biz-components/CollectionsBanner/index.js +0 -2
  359. package/dist/esm/biz-components/CollectionsBanner/index.js.map +0 -7
  360. package/dist/esm/biz-components/CollectionsBanner/types.d.ts +0 -43
  361. package/dist/esm/biz-components/CollectionsBanner/types.js +0 -1
  362. package/dist/esm/biz-components/CollectionsBanner/types.js.map +0 -7
  363. package/dist/esm/biz-components/CollectionsFilters/FilterCardWrap.d.ts +0 -17
  364. package/dist/esm/biz-components/CollectionsFilters/FilterCardWrap.js +0 -2
  365. package/dist/esm/biz-components/CollectionsFilters/FilterCardWrap.js.map +0 -7
  366. package/dist/esm/biz-components/CollectionsFilters/FilterCardWrapItem.d.ts +0 -10
  367. package/dist/esm/biz-components/CollectionsFilters/FilterCardWrapItem.js +0 -2
  368. package/dist/esm/biz-components/CollectionsFilters/FilterCardWrapItem.js.map +0 -7
  369. package/dist/esm/biz-components/CollectionsFilters/FilterHeader.d.ts +0 -13
  370. package/dist/esm/biz-components/CollectionsFilters/FilterHeader.js +0 -2
  371. package/dist/esm/biz-components/CollectionsFilters/FilterHeader.js.map +0 -7
  372. package/dist/esm/biz-components/CollectionsFilters/FilterList.d.ts +0 -14
  373. package/dist/esm/biz-components/CollectionsFilters/FilterList.js +0 -2
  374. package/dist/esm/biz-components/CollectionsFilters/FilterList.js.map +0 -7
  375. package/dist/esm/biz-components/CollectionsFilters/component/AnimatedUL.d.ts +0 -5
  376. package/dist/esm/biz-components/CollectionsFilters/component/AnimatedUL.js +0 -2
  377. package/dist/esm/biz-components/CollectionsFilters/component/AnimatedUL.js.map +0 -7
  378. package/dist/esm/biz-components/CollectionsFilters/component/TabFilter.d.ts +0 -12
  379. package/dist/esm/biz-components/CollectionsFilters/component/TabFilter.js +0 -2
  380. package/dist/esm/biz-components/CollectionsFilters/component/TabFilter.js.map +0 -7
  381. package/dist/esm/biz-components/CollectionsFilters/component/filtersFun.d.ts +0 -12
  382. package/dist/esm/biz-components/CollectionsFilters/component/filtersFun.js +0 -2
  383. package/dist/esm/biz-components/CollectionsFilters/component/filtersFun.js.map +0 -7
  384. package/dist/esm/biz-components/CollectionsFilters/component/helper.d.ts +0 -81
  385. package/dist/esm/biz-components/CollectionsFilters/component/helper.js +0 -2
  386. package/dist/esm/biz-components/CollectionsFilters/component/helper.js.map +0 -7
  387. package/dist/esm/biz-components/CollectionsFilters/component/price.d.ts +0 -25
  388. package/dist/esm/biz-components/CollectionsFilters/component/price.js +0 -2
  389. package/dist/esm/biz-components/CollectionsFilters/component/price.js.map +0 -7
  390. package/dist/esm/biz-components/CollectionsFilters/component/priceProps.d.ts +0 -215
  391. package/dist/esm/biz-components/CollectionsFilters/component/priceProps.js +0 -2
  392. package/dist/esm/biz-components/CollectionsFilters/component/priceProps.js.map +0 -7
  393. package/dist/esm/biz-components/CollectionsFilters/index.d.ts +0 -22
  394. package/dist/esm/biz-components/CollectionsFilters/index.js +0 -2
  395. package/dist/esm/biz-components/CollectionsFilters/index.js.map +0 -7
  396. package/dist/esm/biz-components/DownLoad/index.d.ts +0 -20
  397. package/dist/esm/biz-components/DownLoad/index.js +0 -2
  398. package/dist/esm/biz-components/DownLoad/index.js.map +0 -7
  399. package/dist/esm/biz-components/Features/index.d.ts +0 -26
  400. package/dist/esm/biz-components/Features/index.js +0 -2
  401. package/dist/esm/biz-components/Features/index.js.map +0 -7
  402. package/dist/esm/biz-components/FootCharger/index.d.ts +0 -12
  403. package/dist/esm/biz-components/FootCharger/index.js +0 -2
  404. package/dist/esm/biz-components/FootCharger/index.js.map +0 -7
  405. package/dist/esm/biz-components/GiftBox/index.d.ts +0 -17
  406. package/dist/esm/biz-components/GiftBox/index.js +0 -2
  407. package/dist/esm/biz-components/GiftBox/index.js.map +0 -7
  408. package/dist/esm/biz-components/GraphicMore/index.d.ts +0 -22
  409. package/dist/esm/biz-components/GraphicMore/index.js +0 -2
  410. package/dist/esm/biz-components/GraphicMore/index.js.map +0 -7
  411. package/dist/esm/biz-components/Listing/BizProductProvider.d.ts +0 -112
  412. package/dist/esm/biz-components/Listing/BizProductProvider.js +0 -2
  413. package/dist/esm/biz-components/Listing/BizProductProvider.js.map +0 -7
  414. package/dist/esm/biz-components/Listing/components/PaidShipping/LearnMore.d.ts +0 -2
  415. package/dist/esm/biz-components/Listing/components/PaidShipping/LearnMore.js +0 -2
  416. package/dist/esm/biz-components/Listing/components/PaidShipping/LearnMore.js.map +0 -7
  417. package/dist/esm/biz-components/Listing/components/PaidShipping/ShippingMethod.d.ts +0 -10
  418. package/dist/esm/biz-components/Listing/components/PaidShipping/ShippingMethod.js +0 -2
  419. package/dist/esm/biz-components/Listing/components/PaidShipping/ShippingMethod.js.map +0 -7
  420. package/dist/esm/biz-components/Listing/components/PaidShipping/ShippingPolicyModal.d.ts +0 -25
  421. package/dist/esm/biz-components/Listing/components/PaidShipping/ShippingPolicyModal.js +0 -2
  422. package/dist/esm/biz-components/Listing/components/PaidShipping/ShippingPolicyModal.js.map +0 -7
  423. package/dist/esm/biz-components/Listing/components/PaidShipping/index.d.ts +0 -12
  424. package/dist/esm/biz-components/Listing/components/PaidShipping/index.js +0 -2
  425. package/dist/esm/biz-components/Listing/components/PaidShipping/index.js.map +0 -7
  426. package/dist/esm/biz-components/Listing/components/PaidShipping/type.d.ts +0 -30
  427. package/dist/esm/biz-components/Listing/components/PaidShipping/type.js +0 -2
  428. package/dist/esm/biz-components/Listing/components/PaidShipping/type.js.map +0 -7
  429. package/dist/esm/biz-components/Listing/components/PaidShipping/utils.d.ts +0 -2
  430. package/dist/esm/biz-components/Listing/components/PaidShipping/utils.js +0 -2
  431. package/dist/esm/biz-components/Listing/components/PaidShipping/utils.js.map +0 -7
  432. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.d.ts +0 -37
  433. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.js +0 -40
  434. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.js.map +0 -7
  435. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductBenefitsTabs/index.d.ts +0 -30
  436. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductBenefitsTabs/index.js +0 -2
  437. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductBenefitsTabs/index.js.map +0 -7
  438. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.d.ts +0 -2
  439. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.js +0 -2
  440. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.js.map +0 -7
  441. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.d.ts +0 -2
  442. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.js +0 -2
  443. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.js.map +0 -7
  444. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.d.ts +0 -2
  445. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.js +0 -2
  446. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.js.map +0 -7
  447. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductOptions/index.d.ts +0 -2
  448. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductOptions/index.js +0 -2
  449. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductOptions/index.js.map +0 -7
  450. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/index.d.ts +0 -2
  451. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/index.js +0 -2
  452. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/index.js.map +0 -7
  453. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/types.d.ts +0 -43
  454. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/types.js +0 -2
  455. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/types.js.map +0 -7
  456. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/CompareModal.d.ts +0 -2
  457. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/CompareModal.js +0 -2
  458. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/CompareModal.js.map +0 -7
  459. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/Select.d.ts +0 -21
  460. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/Select.js +0 -2
  461. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/Select.js.map +0 -7
  462. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/ShopifyColorOption.d.ts +0 -5
  463. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/ShopifyColorOption.js +0 -2
  464. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/ShopifyColorOption.js.map +0 -7
  465. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/SpecsModal.d.ts +0 -1
  466. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/SpecsModal.js +0 -2
  467. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/SpecsModal.js.map +0 -7
  468. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/index.d.ts +0 -2
  469. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/index.js +0 -2
  470. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/index.js.map +0 -7
  471. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/types.d.ts +0 -35
  472. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/types.js +0 -2
  473. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/types.js.map +0 -7
  474. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGridBox.d.ts +0 -6
  475. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGridBox.js +0 -2
  476. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGridBox.js.map +0 -7
  477. package/dist/esm/biz-components/Listing/components/ProductCard/ProductSummary/index.d.ts +0 -3
  478. package/dist/esm/biz-components/Listing/components/ProductCard/ProductSummary/index.js +0 -2
  479. package/dist/esm/biz-components/Listing/components/ProductCard/ProductSummary/index.js.map +0 -7
  480. package/dist/esm/biz-components/Listing/components/ProductCard/ProductSummary/types.d.ts +0 -2
  481. package/dist/esm/biz-components/Listing/components/ProductCard/ProductSummary/types.js +0 -1
  482. package/dist/esm/biz-components/Listing/components/ProductCard/ProductSummary/types.js.map +0 -7
  483. package/dist/esm/biz-components/Listing/components/ProductCard/index.d.ts +0 -2
  484. package/dist/esm/biz-components/Listing/components/ProductCard/index.js +0 -2
  485. package/dist/esm/biz-components/Listing/components/ProductCard/index.js.map +0 -7
  486. package/dist/esm/biz-components/Listing/components/PurchaseBar/ProductActions/index.d.ts +0 -2
  487. package/dist/esm/biz-components/Listing/components/PurchaseBar/ProductActions/index.js +0 -2
  488. package/dist/esm/biz-components/Listing/components/PurchaseBar/ProductActions/index.js.map +0 -7
  489. package/dist/esm/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/index.d.ts +0 -4
  490. package/dist/esm/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/index.js +0 -2
  491. package/dist/esm/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/index.js.map +0 -7
  492. package/dist/esm/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/types.d.ts +0 -10
  493. package/dist/esm/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/types.js +0 -1
  494. package/dist/esm/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/types.js.map +0 -7
  495. package/dist/esm/biz-components/Listing/components/PurchaseBar/index.d.ts +0 -3
  496. package/dist/esm/biz-components/Listing/components/PurchaseBar/index.js +0 -2
  497. package/dist/esm/biz-components/Listing/components/PurchaseBar/index.js.map +0 -7
  498. package/dist/esm/biz-components/Listing/components/PurchaseBar/types.d.ts +0 -12
  499. package/dist/esm/biz-components/Listing/components/PurchaseBar/types.js +0 -1
  500. package/dist/esm/biz-components/Listing/components/PurchaseBar/types.js.map +0 -7
  501. package/dist/esm/biz-components/Listing/components/index.d.ts +0 -3
  502. package/dist/esm/biz-components/Listing/components/index.js +0 -2
  503. package/dist/esm/biz-components/Listing/components/index.js.map +0 -7
  504. package/dist/esm/biz-components/Listing/const.d.ts +0 -28
  505. package/dist/esm/biz-components/Listing/const.js +0 -2
  506. package/dist/esm/biz-components/Listing/const.js.map +0 -7
  507. package/dist/esm/biz-components/Listing/hooks/use-options.d.ts +0 -3
  508. package/dist/esm/biz-components/Listing/hooks/use-options.js +0 -2
  509. package/dist/esm/biz-components/Listing/hooks/use-options.js.map +0 -7
  510. package/dist/esm/biz-components/Listing/hooks/use-variant-media.d.ts +0 -14
  511. package/dist/esm/biz-components/Listing/hooks/use-variant-media.js +0 -2
  512. package/dist/esm/biz-components/Listing/hooks/use-variant-media.js.map +0 -7
  513. package/dist/esm/biz-components/Listing/hooks/use-variant.d.ts +0 -5
  514. package/dist/esm/biz-components/Listing/hooks/use-variant.js +0 -2
  515. package/dist/esm/biz-components/Listing/hooks/use-variant.js.map +0 -7
  516. package/dist/esm/biz-components/Listing/hooks/useBenefits.d.ts +0 -50
  517. package/dist/esm/biz-components/Listing/hooks/useBenefits.js +0 -2
  518. package/dist/esm/biz-components/Listing/hooks/useBenefits.js.map +0 -7
  519. package/dist/esm/biz-components/Listing/hooks/useCopy.d.ts +0 -5
  520. package/dist/esm/biz-components/Listing/hooks/useCopy.js +0 -2
  521. package/dist/esm/biz-components/Listing/hooks/useCopy.js.map +0 -7
  522. package/dist/esm/biz-components/Listing/index.d.ts +0 -3
  523. package/dist/esm/biz-components/Listing/index.js +0 -2
  524. package/dist/esm/biz-components/Listing/index.js.map +0 -7
  525. package/dist/esm/biz-components/Listing/types/graphql.d.ts +0 -7473
  526. package/dist/esm/biz-components/Listing/types/graphql.js +0 -2
  527. package/dist/esm/biz-components/Listing/types/graphql.js.map +0 -7
  528. package/dist/esm/biz-components/Listing/types/product.d.ts +0 -141
  529. package/dist/esm/biz-components/Listing/types/product.js +0 -2
  530. package/dist/esm/biz-components/Listing/types/product.js.map +0 -7
  531. package/dist/esm/biz-components/Listing/types/productMetafields.d.js +0 -2
  532. package/dist/esm/biz-components/Listing/types/productMetafields.d.js.map +0 -7
  533. package/dist/esm/biz-components/Listing/types/type-helper.d.ts +0 -5
  534. package/dist/esm/biz-components/Listing/types/type-helper.js +0 -1
  535. package/dist/esm/biz-components/Listing/types/type-helper.js.map +0 -7
  536. package/dist/esm/biz-components/Listing/types.d.ts +0 -28
  537. package/dist/esm/biz-components/Listing/types.js +0 -1
  538. package/dist/esm/biz-components/Listing/types.js.map +0 -7
  539. package/dist/esm/biz-components/Listing/utils/helper.d.ts +0 -36
  540. package/dist/esm/biz-components/Listing/utils/helper.js +0 -2
  541. package/dist/esm/biz-components/Listing/utils/helper.js.map +0 -7
  542. package/dist/esm/biz-components/Listing/utils/index.d.ts +0 -37
  543. package/dist/esm/biz-components/Listing/utils/index.js +0 -2
  544. package/dist/esm/biz-components/Listing/utils/index.js.map +0 -7
  545. package/dist/esm/biz-components/Listing/utils/textFormat.d.ts +0 -73
  546. package/dist/esm/biz-components/Listing/utils/textFormat.js +0 -2
  547. package/dist/esm/biz-components/Listing/utils/textFormat.js.map +0 -7
  548. package/dist/esm/biz-components/Paginator/index.d.ts +0 -7
  549. package/dist/esm/biz-components/Paginator/index.js +0 -7
  550. package/dist/esm/biz-components/Paginator/index.js.map +0 -7
  551. package/dist/esm/biz-components/SelectStore/index.d.ts +0 -20
  552. package/dist/esm/biz-components/SelectStore/index.js +0 -2
  553. package/dist/esm/biz-components/SelectStore/index.js.map +0 -7
  554. package/dist/esm/biz-components/Specs/dropdown.d.ts +0 -11
  555. package/dist/esm/biz-components/Specs/dropdown.js +0 -3
  556. package/dist/esm/biz-components/Specs/dropdown.js.map +0 -7
  557. package/dist/esm/biz-components/Specs/index.d.ts +0 -6
  558. package/dist/esm/biz-components/Specs/index.js +0 -2
  559. package/dist/esm/biz-components/Specs/index.js.map +0 -7
  560. package/dist/esm/biz-components/TabsGroup/index.d.ts +0 -7
  561. package/dist/esm/biz-components/TabsGroup/index.js +0 -2
  562. package/dist/esm/biz-components/TabsGroup/index.js.map +0 -7
  563. package/dist/esm/biz-components/TabsGroup/types.d.ts +0 -16
  564. package/dist/esm/biz-components/TabsGroup/types.js +0 -1
  565. package/dist/esm/biz-components/TabsGroup/types.js.map +0 -7
  566. package/dist/esm/biz-components/TextMarquee/index.d.ts +0 -9
  567. package/dist/esm/biz-components/TextMarquee/index.js +0 -2
  568. package/dist/esm/biz-components/TextMarquee/index.js.map +0 -7
  569. package/dist/esm/components/breadcrumb.d.ts +0 -12
  570. package/dist/esm/components/breadcrumb.js +0 -2
  571. package/dist/esm/components/breadcrumb.js.map +0 -7
  572. package/dist/esm/hooks/useRollout.d.ts +0 -1
  573. package/dist/esm/hooks/useRollout.js +0 -2
  574. package/dist/esm/hooks/useRollout.js.map +0 -7
  575. package/dist/esm/stories/aplusdesc.stories.d.ts +0 -27
  576. package/dist/esm/stories/aplusdesc.stories.js +0 -2
  577. package/dist/esm/stories/aplusdesc.stories.js.map +0 -7
  578. package/dist/esm/stories/download.stories.d.ts +0 -18
  579. package/dist/esm/stories/download.stories.js +0 -2
  580. package/dist/esm/stories/download.stories.js.map +0 -7
  581. package/dist/esm/stories/features.stories.d.ts +0 -21
  582. package/dist/esm/stories/features.stories.js +0 -2
  583. package/dist/esm/stories/features.stories.js.map +0 -7
  584. package/dist/esm/stories/footcharger.stories.d.ts +0 -19
  585. package/dist/esm/stories/footcharger.stories.js +0 -2
  586. package/dist/esm/stories/footcharger.stories.js.map +0 -7
  587. package/dist/esm/stories/giftbox.stories.d.ts +0 -18
  588. package/dist/esm/stories/giftbox.stories.js +0 -2
  589. package/dist/esm/stories/giftbox.stories.js.map +0 -7
  590. package/dist/esm/stories/graphicMore.stories.d.ts +0 -19
  591. package/dist/esm/stories/graphicMore.stories.js +0 -2
  592. package/dist/esm/stories/graphicMore.stories.js.map +0 -7
  593. package/dist/esm/stories/selectstore.stories.d.ts +0 -18
  594. package/dist/esm/stories/selectstore.stories.js +0 -2
  595. package/dist/esm/stories/selectstore.stories.js.map +0 -7
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../src/biz-components/Listing/components/ProductCard/ProductGallery/index.tsx"],
4
- "sourcesContent": ["import { useAiuiContext } from '../../../../AiuiProvider/index.js'\nimport { Text, Picture, Button, Badge } from '../../../../../components'\nimport {\n useCallback,\n useMemo,\n useState,\n forwardRef,\n useRef,\n type RefObject,\n useEffect,\n type Dispatch,\n type SetStateAction,\n} from 'react'\nimport { Swiper, SwiperSlide, type SwiperRef } from 'swiper/react'\nimport { Navigation, Mousewheel, Thumbs, Pagination } from 'swiper/modules'\nimport { cn } from '../../../../../helpers/index.js'\nimport { GalleryTabType } from './types.js'\nimport { Content, List, Root, Trigger } from '@radix-ui/react-tabs'\nimport { useBizProductContext } from '../../../BizProductProvider.js'\nimport { useVariantMedia } from '../../../hooks/use-variant-media.js'\nimport { SpecsModal } from './components/SpecsModal.js'\nimport CompareModal from './components/CompareModal.js'\nimport { formatPrice } from '../../../utils/index.js'\n\nimport type { Swiper as SwiperType } from 'swiper'\nimport type { ImageMedia, VideoMedia } from '../../../hooks/use-variant-media.js'\nimport type { ProductGalleryProps, ProductGalleryTabItemProps, GalleryTabItemProps } from './types.js'\n\nconst SwiperLeftButtonIcon = (props: React.SVGProps<SVGSVGElement>) => {\n return (\n <svg width=\"48\" height=\"48\" viewBox=\"0 0 48 48\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" {...props}>\n <rect x=\"48\" y=\"48\" width=\"48\" height=\"48\" rx=\"24\" transform=\"rotate(-180 48 48)\" fill=\"white\" />\n <path\n d=\"M25.1035 16.8545C25.5372 16.3818 26.246 16.3818 26.6797 16.8545C27.1067 17.3201 27.1067 18.0706 26.6797 18.5361L21.668 24L26.6797 29.4639C27.1067 29.9294 27.1067 30.6799 26.6797 31.1455C26.246 31.6182 25.5372 31.6182 25.1035 31.1455L19.3203 24.8408C18.8933 24.3752 18.8933 23.6248 19.3203 23.1592L25.1035 16.8545Z\"\n fill=\"currentColor\"\n />\n </svg>\n )\n}\n\nconst SwiperRightButtonIcon = (props: React.SVGProps<SVGSVGElement>) => {\n return (\n <svg width=\"48\" height=\"48\" viewBox=\"0 0 48 48\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" {...props}>\n <rect width=\"48\" height=\"48\" rx=\"24\" transform=\"matrix(1 -8.74228e-08 -8.74228e-08 -1 0 48)\" fill=\"white\" />\n <path\n d=\"M22.8965 16.8545C22.4628 16.3818 21.754 16.3818 21.3203 16.8545C20.8933 17.3201 20.8933 18.0706 21.3203 18.5361L26.332 24L21.3203 29.4639C20.8933 29.9294 20.8933 30.6799 21.3203 31.1455C21.754 31.6182 22.4628 31.6182 22.8965 31.1455L28.6797 24.8408C29.1067 24.3752 29.1067 23.6248 28.6797 23.1592L22.8965 16.8545Z\"\n fill=\"currentColor\"\n />\n </svg>\n )\n}\n\nconst ProductGallery = () => {\n const { copyWriting } = useAiuiContext()\n const { product, variant, isMobile } = useBizProductContext()\n const defaultMediaData = useVariantMedia({ product, variant })\n const [swiper, setSwiper] = useState<SwiperType | null>(null)\n\n const customMediaList = variant?.metafields?.component?.custom_media_list\n let productList: ImageMedia[], sceneList: ImageMedia[], keyFeaturesList: ImageMedia[], videoList: VideoMedia[]\n\n if (customMediaList && customMediaList?.available) {\n productList = customMediaList?.product || []\n sceneList = customMediaList?.scenarios || []\n keyFeaturesList = customMediaList?.keyFeatures || []\n videoList = customMediaList?.video || []\n } else {\n productList = defaultMediaData?.productList\n sceneList = defaultMediaData?.sceneList\n keyFeaturesList = defaultMediaData?.keyFeaturesList\n videoList = defaultMediaData?.videoList\n }\n\n const allMedia = useMemo(() => [...productList, ...sceneList, ...videoList], [productList, sceneList, videoList])\n\n const galleryMap: Record<string, ImageMedia[] | VideoMedia[]> = {\n productList: productList,\n sceneList: sceneList,\n keyFeaturesList: keyFeaturesList,\n videoList: videoList,\n }\n\n const galleryTabs = useMemo(() => {\n const productTab =\n product?.payload?.components?.find((item: any) => item.componentKey === 'ProductGallery')?.data || []\n\n return productTab\n ?.map((item: any) => ({\n ...item,\n galleries: galleryMap[item?.galleries] || [],\n }))\n .filter((item: any) => item.galleries.length > 0)\n }, [product?.payload, galleryMap])\n\n // \u4E3A\u6BCF\u4E2A galleryTab \u521B\u5EFA\u5BF9\u5E94\u7684 ref\n const gallerySwiperRefs = useRef<{ [key: string]: SwiperRef | null }>({})\n\n const [activeGalleryTab, setActiveGalleryTab] = useState<GalleryTabItemProps>(galleryTabs?.[0])\n\n // \u4E3A\u6BCF\u4E2A tab \u6E32\u67D3\u5BF9\u5E94\u7684\u7EC4\u4EF6\n const renderGalleryForTab = (tab: any, index: number) => {\n switch (tab?.galleryTabType) {\n case GalleryTabType.GALLERY_IMAGE:\n return (\n <ProductGalleryTabImage\n {...tab}\n onCurrentTabLoopEnd={() => {\n setActiveGalleryTab(galleryTabs?.[index])\n }}\n onCurrentTabLoopStart={() => {\n setActiveGalleryTab(galleryTabs?.[index])\n }}\n index={index}\n />\n )\n case GalleryTabType.GALLERY_VIDEO:\n return <ProductGalleryTabVideo {...tab} />\n // case GalleryTabType.GALLERY_3D_VIEW:\n // return <ProductGalleryTab3DView {...item} />\n default:\n return null\n }\n }\n\n return (\n <div id=\"ipc-product-gallery\">\n <Root className=\"relative\" defaultValue={galleryTabs?.[0]?.tabValue}>\n {/* <Swiper\n className=\"h-[420px] laptop:h-[700px] bg-[#EAEAEC] rounded-2xl\"\n onSwiper={setSwiper}\n loop={true}\n // onProgress={swiper => {\n // setStart(swiper.isBeginning)\n // setEnd(swiper.isEnd)\n // }}\n modules={[Mousewheel]}\n mousewheel={{\n forceToAxis: true,\n }}\n >\n {galleryTabs.map((item, index) => {\n return (\n <Content forceMount key={item.tabValue} value={item.tabValue}>\n <SwiperSlide key={index}>{renderGalleryForTab(activeGalleryTab)}</SwiperSlide>\n </Content>\n )\n })}\n </Swiper>\n <div\n className={cn(\n 'absolute top-1/2 left-6 z-10 -translate-y-1/2 cursor-pointer',\n `ipc-product-gallery-custom-swiper-button-prev`\n )}\n >\n <SwiperLeftButtonIcon\n className=\"size-12\"\n onClick={() => {\n if (activeGalleryTab?.tabValue) {\n const currentRef = gallerySwiperRefs.current[activeGalleryTab.tabValue]\n currentRef?.swiper?.slidePrev()\n }\n }}\n />\n </div>\n <div\n className={cn(\n 'absolute top-1/2 right-6 z-10 -translate-y-1/2 cursor-pointer',\n `ipc-product-gallery-custom-swiper-button-next`\n )}\n >\n <SwiperRightButtonIcon\n className=\"size-12\"\n onClick={() => {\n if (activeGalleryTab?.tabValue) {\n const currentRef = gallerySwiperRefs.current[activeGalleryTab.tabValue]\n currentRef?.swiper?.slideNext()\n }\n }}\n />\n </div> */}\n <div className=\"h-[420px] tablet:h-[620px] desktop:rounded-2xl desktop:h-[560px] lg-desktop:h-[700px] bg-[#EAEAEC] desktop:relative \">\n {galleryTabs.map((item: any, index: number) => {\n return (\n <Content key={item.tabValue} className=\"h-full\" value={item.tabValue}>\n {renderGalleryForTab(item, index)}\n </Content>\n )\n })}\n </div>\n <ProductGalleryTab\n galleryTabs={galleryTabs}\n activeGalleryTab={activeGalleryTab}\n setActiveGalleryTab={setActiveGalleryTab}\n />\n </Root>\n </div>\n )\n}\n\nconst ProductGalleryTab = ({\n galleryTabs,\n activeGalleryTab,\n setActiveGalleryTab,\n}: {\n galleryTabs: GalleryTabItemProps[]\n activeGalleryTab: GalleryTabItemProps\n setActiveGalleryTab: Dispatch<SetStateAction<GalleryTabItemProps>>\n}) => {\n const { product } = useBizProductContext()\n return (\n <div className=\"absolute z-[2] bottom-4 left-4 right-4 laptop:left-16 laptop:right-16 flex justify-between items-center tablet:mt-3 desktop:static\">\n <List\n className=\"rounded-full bg-[#EAEAEC] p-1 laptop:p-0 desktop:p-1 overflow-x-auto\"\n style={{\n scrollbarWidth: 'none',\n msOverflowStyle: 'none',\n }}\n >\n <div className=\"whitespace-nowrap\">\n {galleryTabs?.map(item => {\n return (\n <Trigger\n className={cn(\n 'lg-desktop:px-7 lg-desktop:pb-[14px] rounded-full font-bold lg-desktop:pt-[15px] lg-desktop:text-[16px] px-5 pb-[10px] pt-[11px] text-[14px] leading-tight',\n item.tabValue === activeGalleryTab?.tabValue && 'bg-white'\n )}\n onClick={() => setActiveGalleryTab(item)}\n key={item.tabValue}\n value={item.tabValue}\n >\n {item.tabLabel}\n </Trigger>\n )\n })}\n </div>\n </List>\n <div className=\"laptop:gap-2 hidden laptop:flex\">\n {product.metafields?.global?.specifications && (\n <>\n <SpecsModal /> | <CompareModal />\n </>\n )}\n </div>\n </div>\n )\n}\n\nconst ProductGalleryTabImage = forwardRef<SwiperRef, ProductGalleryTabItemProps>((props, ref) => {\n const { locale = 'us', copyWriting } = useAiuiContext()\n const { variant, totalSavings } = useBizProductContext()\n const paginationRef = useRef<HTMLDivElement>(null)\n const [thumbsSwiper, setThumbsSwiper] = useState<SwiperType | null>(null)\n const [isStart, setStart] = useState(true)\n const [isEnd, setEnd] = useState(false)\n const [swiper, setSwiper] = useState<SwiperType | null>(null)\n\n return (\n <div className=\"h-full\">\n <Swiper\n ref={ref}\n className=\"h-full\"\n navigation={{\n nextEl: `.ipc-product-gallery-${props?.id}-custom-swiper-button-next`,\n prevEl: `.ipc-product-gallery-${props?.id}-custom-swiper-button-prev`,\n }}\n onSwiper={setSwiper}\n onProgress={swiper => {\n setStart(swiper.isBeginning)\n setEnd(swiper.isEnd)\n }}\n pagination={{\n clickable: true,\n el: paginationRef.current,\n }}\n onSlideChange={swiper => {\n if (swiper) {\n if (swiper.isEnd) {\n props?.onCurrentTabLoopEnd?.()\n } else if (swiper.isBeginning) {\n props?.onCurrentTabLoopStart?.()\n }\n }\n }}\n thumbs={{ swiper: thumbsSwiper }}\n modules={[Mousewheel, Thumbs, Navigation, Pagination]}\n mousewheel={{\n forceToAxis: true,\n }}\n breakpoints={{\n 0: {\n slidesPerView: 1,\n freeMode: false,\n },\n }}\n >\n {props?.galleries?.map((item, jIndex) => {\n return (\n <SwiperSlide className=\"h-full\" key={props?.id + 'SwiperSlideItem' + jIndex}>\n <Picture\n source={item?.image?.url}\n alt={item?.image?.altText}\n className=\"h-full\"\n imgClassName=\"object-contain h-full \"\n />\n </SwiperSlide>\n )\n })}\n </Swiper>\n {variant.availableForSale && !!totalSavings && !props.index && (\n <Badge\n size=\"lg\"\n className=\"absolute bg-brand text-white top-3 laptop:left-16 laptop:top-5 left-4 z-[2] desktop:left-6 desktop:top-6\"\n >\n {`${formatPrice({\n amount: totalSavings,\n currencyCode: variant?.price?.currencyCode,\n locale: locale,\n })} ${copyWriting?.off}`}\n </Badge>\n )}\n <div\n className={cn(\n 'hidden tablet:block tablet:absolute tablet:top-1/2 laptop:left-16 tablet:left-6 desktop:left-6 z-10 -translate-y-1/2 cursor-pointer',\n `ipc-product-gallery-${props?.id}-custom-swiper-button-prev`\n )}\n >\n <SwiperLeftButtonIcon className=\"tablet:size-10 lg-desktop:size-12\" />\n </div>\n <div\n className={cn(\n 'hidden tablet:block tablet:absolute tablet:top-1/2 laptop:right-16 tablet:right-6 z-10 desktop:right-6 -translate-y-1/2 cursor-pointer',\n `ipc-product-gallery-${props?.id}-custom-swiper-button-next`\n )}\n >\n <SwiperRightButtonIcon className=\"tablet:size-10 lg-desktop:size-12\" />\n </div>\n {/* {props?.galleries?.map((item, jIndex) => {\n return (\n <Picture\n key={props?.id + 'SwiperSlideItem' + jIndex}\n source={item?.image?.url}\n alt={item?.image?.altText}\n className=\"h-full\"\n imgClassName=\"object-cover h-full\"\n />\n )\n })} */}\n <div className=\"absolute bottom-[94px] tablet:bottom-[70px] left-4 right-4 z-10 items-center tablet:flex justify-between laptop:left-16 laptop:right-16 desktop:bottom-[20px] desktop:right-6 desktop:left-6\">\n <div className=\"hidden tablet:block\">\n <Swiper\n className=\"flex items-center justify-between\"\n onSwiper={setThumbsSwiper}\n spaceBetween={12}\n slidesPerView={6}\n freeMode={true}\n watchSlidesProgress={true}\n modules={[Navigation, Thumbs]}\n >\n {props?.galleries?.map((item, jIndex) => (\n <SwiperSlide\n key={props?.id + 'SwiperSlideThumbItem' + jIndex}\n className=\"!w-auto [&.swiper-slide-thumb-active]:border [&.swiper-slide-thumb-active]:border-brand\"\n >\n <Picture\n source={item.image?.url}\n alt={item.image?.altText}\n className=\"size-10 lg-desktop:size-12 rounded\"\n imgClassName=\"object-contain h-full\"\n />\n </SwiperSlide>\n ))}\n </Swiper>\n </div>\n {!props?.index && (\n <div className=\"flex items-center gap-2\">\n <Picture\n source={props?.comment?.avatar?.url}\n className=\"size-10 rounded-full shrink-0\"\n imgClassName=\"object-cover \"\n />\n <Text\n html={props?.comment?.content}\n className=\"text-sm lg-desktop:text-base max-w-[528px] font-bold text-[#6D6D6F] line-clamp-2\"\n />\n </div>\n )}\n </div>\n <div ref={paginationRef} className=\"tablet:hidden text-center absolute !bottom-[70px] left-4 right-4 z-10\" />\n </div>\n )\n})\n\nconst ProductGalleryTabVideo = (props: ProductGalleryTabItemProps) => {\n return (\n <div className=\"h-full\">\n <Swiper\n className=\"h-full\"\n navigation={{\n nextEl: `.ipc-product-gallery-${props?.id}-custom-swiper-button-next`,\n prevEl: `.ipc-product-gallery-${props?.id}-custom-swiper-button-prev`,\n }}\n modules={[Mousewheel, Thumbs, Navigation, Pagination]}\n mousewheel={{\n forceToAxis: true,\n }}\n breakpoints={{\n 0: {\n slidesPerView: 1,\n freeMode: false,\n },\n }}\n >\n {props?.galleries?.map((item, jIndex) => {\n return (\n <SwiperSlide className=\"h-full\" key={props?.id + 'SwiperSlideItem' + jIndex}>\n <video controls className=\"size-full\">\n <track kind=\"captions\" />\n <source src={item?.sources?.[0]?.url} type=\"video/mp4\" />\n <source src={item?.sources?.[0]?.url} type=\"video/webm\" />\n <source src={item?.sources?.[0]?.url} type=\"video/ogg\" />\n </video>\n </SwiperSlide>\n )\n })}\n </Swiper>\n <div\n className={cn(\n 'hidden tablet:block tablet:absolute tablet:top-1/2 tablet:left-6 z-10 -translate-y-1/2 cursor-pointer',\n `ipc-product-gallery-${props?.id}-custom-swiper-button-prev`\n )}\n >\n <SwiperLeftButtonIcon className=\"tablet:size-10 lg-desktop:size-12\" />\n </div>\n <div\n className={cn(\n 'hidden tablet:block tablet:absolute tablet:top-1/2 tablet:right-6 z-10 -translate-y-1/2 cursor-pointer',\n `ipc-product-gallery-${props?.id}-custom-swiper-button-next`\n )}\n >\n <SwiperRightButtonIcon className=\"tablet:size-10 lg-desktop:size-12\" />\n </div>\n </div>\n )\n}\n\nconst ProductGalleryTab3DView = (props: ProductGalleryTabItemProps) => {\n return <div>3D View</div>\n}\n\nexport default ProductGallery\n"],
5
- "mappings": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,aAAAE,IAAA,eAAAC,EAAAH,GA8BI,IAAAI,EAAA,6BA9BJC,EAA+B,6CAC/BC,EAA6C,qCAC7CC,EAUO,iBACPA,EAAoD,wBACpDC,EAA2D,0BAC3DC,EAAmB,2CACnBC,EAA+B,sBAC/BC,EAA6C,gCAC7CC,EAAqC,0CACrCC,EAAgC,+CAChCC,EAA2B,sCAC3BC,EAAyB,2CACzBC,EAA4B,mCAM5B,MA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,WACC,OAAQA,GAAO,SAAS,QAAQ,IAChC,UAAU,gCACV,aAAa,gBACf,KACA,OAAC,QACC,KAAMA,GAAO,SAAS,QACtB,UAAU,mFACZ,GACF,GAEJ,KACA,OAAC,OAAI,IAAKgC,EAAe,UAAU,wEAAwE,GAC7G,CAEJ,CAAC,EAEKN,EAA0B1B,MAE5B,QAAC,OAAI,UAAU,SACb,oBAAC,UACC,UAAU,SACV,WAAY,CACV,OAAQ,wBAAwBA,GAAO,EAAE,6BACzC,OAAQ,wBAAwBA,GAAO,EAAE,4BAC3C,EACA,QAAS,CAAC,aAAY,SAAQ,aAAY,YAAU,EACpD,WAAY,CACV,YAAa,EACf,EACA,YAAa,CACX,EAAG,CACD,cAAe,EACf,SAAU,EACZ,CACF,EAEC,SAAAA,GAAO,WAAW,IAAI,CAACkB,EAAMqB,OAE1B,OAAC,eAAY,UAAU,SACrB,oBAAC,SAAM,SAAQ,GAAC,UAAU,YACxB,oBAAC,SAAM,KAAK,WAAW,KACvB,OAAC,UAAO,IAAKrB,GAAM,UAAU,CAAC,GAAG,IAAK,KAAK,YAAY,KACvD,OAAC,UAAO,IAAKA,GAAM,UAAU,CAAC,GAAG,IAAK,KAAK,aAAa,KACxD,OAAC,UAAO,IAAKA,GAAM,UAAU,CAAC,GAAG,IAAK,KAAK,YAAY,GACzD,GANmClB,GAAO,GAAK,kBAAoBuC,CAOrE,CAEH,EACH,KACA,OAAC,OACC,aAAW,MACT,wGACA,uBAAuBvC,GAAO,EAAE,4BAClC,EAEA,mBAACD,EAAA,CAAqB,UAAU,oCAAoC,EACtE,KACA,OAAC,OACC,aAAW,MACT,yGACA,uBAAuBC,GAAO,EAAE,4BAClC,EAEA,mBAACC,EAAA,CAAsB,UAAU,oCAAoC,EACvE,GACF,EAIEuC,GAA2BxC,MACxB,OAAC,OAAI,mBAAO,EAGrB,IAAOhB,EAAQkB",
6
- "names": ["ProductGallery_exports", "__export", "ProductGallery_default", "__toCommonJS", "import_jsx_runtime", "import_AiuiProvider", "import_components", "import_react", "import_modules", "import_helpers", "import_types", "import_react_tabs", "import_BizProductProvider", "import_use_variant_media", "import_SpecsModal", "import_CompareModal", "import_utils", "SwiperLeftButtonIcon", "props", "SwiperRightButtonIcon", "ProductGallery", "copyWriting", "product", "variant", "isMobile", "defaultMediaData", "swiper", "setSwiper", "customMediaList", "productList", "sceneList", "keyFeaturesList", "videoList", "allMedia", "galleryMap", "galleryTabs", "item", "gallerySwiperRefs", "activeGalleryTab", "setActiveGalleryTab", "renderGalleryForTab", "tab", "index", "ProductGalleryTabImage", "ProductGalleryTabVideo", "ProductGalleryTab", "CompareModal", "ref", "locale", "totalSavings", "paginationRef", "thumbsSwiper", "setThumbsSwiper", "isStart", "setStart", "isEnd", "setEnd", "jIndex", "ProductGalleryTab3DView"]
7
- }
@@ -1,35 +0,0 @@
1
- import type { Img } from '../../../../../types/props.js';
2
- import type { ImageMedia, VideoMedia } from '../../../hooks/use-variant-media.js';
3
- export interface ProductGalleryProps {
4
- data: {
5
- gallerySections: {
6
- title: string;
7
- }[];
8
- };
9
- }
10
- export interface ProductGalleryTabItemProps {
11
- index: number;
12
- galleryTabType: GalleryTabType;
13
- galleries: ImageMedia[] | VideoMedia[];
14
- onCurrentTabLoopStart?: () => void;
15
- onCurrentTabLoopEnd?: () => void;
16
- id: string;
17
- comment?: {
18
- content: string;
19
- avatar: Img;
20
- };
21
- tabLabel: string;
22
- tabValue: string;
23
- }
24
- export interface GalleryTabItemProps {
25
- tabLabel: string;
26
- tabValue: string;
27
- id: string;
28
- galleryTabType: GalleryTabType;
29
- galleries: ImageMedia[] | VideoMedia[];
30
- }
31
- export declare enum GalleryTabType {
32
- GALLERY_IMAGE = "ipc-gallery-tab-image",
33
- GALLERY_VIDEO = "ipc-gallery-tab-video",
34
- GALLERY_3D_VIEW = "ipc-gallery-tab-3d-view"
35
- }
@@ -1,2 +0,0 @@
1
- "use strict";var o=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var p=(a,e)=>{for(var i in e)o(a,i,{get:e[i],enumerable:!0})},s=(a,e,i,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of d(e))!g.call(a,r)&&r!==i&&o(a,r,{get:()=>e[r],enumerable:!(t=n(e,r))||t.enumerable});return a};var m=a=>s(o({},"__esModule",{value:!0}),a);var b={};p(b,{GalleryTabType:()=>l});module.exports=m(b);var l=(t=>(t.GALLERY_IMAGE="ipc-gallery-tab-image",t.GALLERY_VIDEO="ipc-gallery-tab-video",t.GALLERY_3D_VIEW="ipc-gallery-tab-3d-view",t))(l||{});
2
- //# sourceMappingURL=types.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../src/biz-components/Listing/components/ProductCard/ProductGallery/types.ts"],
4
- "sourcesContent": ["import type { Img, Video } from '../../../../../types/props.js'\nimport type { ImageMedia, VideoMedia } from '../../../hooks/use-variant-media.js'\n\nexport interface ProductGalleryProps {\n data: {\n gallerySections: {\n title: string\n }[]\n }\n}\n\nexport interface ProductGalleryTabItemProps {\n index: number\n galleryTabType: GalleryTabType\n galleries: ImageMedia[] | VideoMedia[]\n onCurrentTabLoopStart?: () => void\n onCurrentTabLoopEnd?: () => void\n id: string\n comment?: {\n content: string\n avatar: Img\n }\n tabLabel: string\n tabValue: string\n // galleryImgs?: Img[]\n // galleryVideo?: Video\n // gallery3DView?: Video\n}\n\nexport interface GalleryTabItemProps {\n tabLabel: string\n tabValue: string\n id: string\n galleryTabType: GalleryTabType\n galleries: ImageMedia[] | VideoMedia[]\n}[]\n\nexport enum GalleryTabType {\n GALLERY_IMAGE = 'ipc-gallery-tab-image',\n GALLERY_VIDEO = 'ipc-gallery-tab-video',\n GALLERY_3D_VIEW = 'ipc-gallery-tab-3d-view',\n}\n"],
5
- "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,oBAAAE,IAAA,eAAAC,EAAAH,GAqCO,IAAKE,OACVA,EAAA,cAAgB,wBAChBA,EAAA,cAAgB,wBAChBA,EAAA,gBAAkB,0BAHRA,OAAA",
6
- "names": ["types_exports", "__export", "GalleryTabType", "__toCommonJS"]
7
- }
@@ -1,6 +0,0 @@
1
- declare const ProductGridBox: ({ BoxLeftGallery, BoxRightDetail, BoxBottomSummary, }: {
2
- BoxLeftGallery: React.ReactNode;
3
- BoxRightDetail: React.ReactNode;
4
- BoxBottomSummary: React.ReactNode;
5
- }) => import("react/jsx-runtime").JSX.Element;
6
- export default ProductGridBox;
@@ -1,2 +0,0 @@
1
- "use strict";var s=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var r=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var m=(o,t)=>{for(var e in t)s(o,e,{get:t[e],enumerable:!0})},k=(o,t,e,c)=>{if(t&&typeof t=="object"||typeof t=="function")for(let p of r(t))!i.call(o,p)&&p!==e&&s(o,p,{get:()=>t[p],enumerable:!(c=l(t,p))||c.enumerable});return o};var x=o=>k(s({},"__esModule",{value:!0}),o);var R={};m(R,{default:()=>N});module.exports=x(R);var a=require("react/jsx-runtime"),d=require("../../../../components");const G=({BoxLeftGallery:o,BoxRightDetail:t,BoxBottomSummary:e})=>(0,a.jsxs)("div",{id:"ipc-product-card",className:"desktop:mt-6 desktop:px-16 lg-desktop:px-[calc(50%-832px)]",children:[(0,a.jsxs)(d.Grid,{className:"laptop:gap-6",children:[(0,a.jsx)(d.GridItem,{className:"col-span-12 tablet:px-8 laptop:px-0 desktop:col-start-1 desktop:col-span-8 desktop:sticky desktop:top-[124px] h-fit",children:o}),(0,a.jsx)(d.GridItem,{className:"col-span-12 desktop:col-start-9 desktop:col-span-4",children:t})]}),e]});var N=G;
2
- //# sourceMappingURL=ProductGridBox.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../src/biz-components/Listing/components/ProductCard/ProductGridBox.tsx"],
4
- "sourcesContent": ["import { Grid, GridItem } from '../../../../components'\n\nconst ProductGridBox = ({\n BoxLeftGallery,\n BoxRightDetail,\n BoxBottomSummary,\n}: {\n BoxLeftGallery: React.ReactNode\n BoxRightDetail: React.ReactNode\n BoxBottomSummary: React.ReactNode\n}) => {\n return (\n <div id=\"ipc-product-card\" className=\"desktop:mt-6 desktop:px-16 lg-desktop:px-[calc(50%-832px)]\">\n <Grid className=\"laptop:gap-6\">\n <GridItem className=\"col-span-12 tablet:px-8 laptop:px-0 desktop:col-start-1 desktop:col-span-8 desktop:sticky desktop:top-[124px] h-fit\">\n {BoxLeftGallery}\n </GridItem>\n <GridItem className=\"col-span-12 desktop:col-start-9 desktop:col-span-4\">{BoxRightDetail}</GridItem>\n </Grid>\n {BoxBottomSummary}\n </div>\n )\n}\n\nexport default ProductGridBox\n"],
5
- "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,aAAAE,IAAA,eAAAC,EAAAH,GAaM,IAAAI,EAAA,6BAbNC,EAA+B,kCAE/B,MAAMC,EAAiB,CAAC,CACtB,eAAAC,EACA,eAAAC,EACA,iBAAAC,CACF,OAMI,QAAC,OAAI,GAAG,mBAAmB,UAAU,6DACnC,qBAAC,QAAK,UAAU,eACd,oBAAC,YAAS,UAAU,sHACjB,SAAAF,EACH,KACA,OAAC,YAAS,UAAU,qDAAsD,SAAAC,EAAe,GAC3F,EACCC,GACH,EAIJ,IAAOP,EAAQI",
6
- "names": ["ProductGridBox_exports", "__export", "ProductGridBox_default", "__toCommonJS", "import_jsx_runtime", "import_components", "ProductGridBox", "BoxLeftGallery", "BoxRightDetail", "BoxBottomSummary"]
7
- }
@@ -1,3 +0,0 @@
1
- import type { ProductSummaryProps } from './types';
2
- declare const ProductSummary: ({}: ProductSummaryProps) => import("react/jsx-runtime").JSX.Element | null;
3
- export default ProductSummary;
@@ -1,2 +0,0 @@
1
- "use strict";var I=Object.create;var N=Object.defineProperty;var L=Object.getOwnPropertyDescriptor;var R=Object.getOwnPropertyNames;var A=Object.getPrototypeOf,O=Object.prototype.hasOwnProperty;var V=(i,a)=>{for(var l in a)N(i,l,{get:a[l],enumerable:!0})},G=(i,a,l,o)=>{if(a&&typeof a=="object"||typeof a=="function")for(let s of R(a))!O.call(i,s)&&s!==l&&N(i,s,{get:()=>a[s],enumerable:!(o=L(a,s))||o.enumerable});return i};var S=(i,a,l)=>(l=i!=null?I(A(i)):{},G(a||!i||!i.__esModule?N(l,"default",{value:i,enumerable:!0}):l,i)),$=i=>G(N({},"__esModule",{value:!0}),i);var H={};V(H,{default:()=>E});module.exports=$(H);var e=require("react/jsx-runtime"),t=require("../../../../../components"),b=require("../../../BizProductProvider"),f=require("react"),x=require("../../../utils"),y=require("../../../../AiuiProvider"),C=require("../../../../../helpers"),z=S(require("decimal.js"));const T=({})=>{const{locale:i="us",copyWriting:a}=(0,y.useAiuiContext)(),{product:l,variant:o,finalPrice:s,comparePrice:m,coupon:r,selectedOptions:d,onAddToCart:k,onBuyNow:h,savingDetail:g,joinedRecommendBuyProducts:n,setJoinedRecommendBuyProducts:u}=(0,b.useBizProductContext)();if(!o.availableForSale)return null;const{bundleVariant:B,giftVariant:w}=J()||{},[c,v]=(0,f.useState)();(0,f.useEffect)(()=>{v({bundle:n.bundle?void 0:B,gift:n.gift?void 0:w})},[B,w,n]);const D=(0,f.useMemo)(()=>new z.default(m).minus(g.freeGift).toNumber(),[m,g]);return(0,e.jsx)("div",{className:"ipc-product-summary bg-[#F5F5F7] mt-16",children:(0,e.jsxs)(t.Grid,{className:"px-4 py-6 tablet:p-8",children:[(0,e.jsxs)(t.GridItem,{className:"col-span-12 desktop:col-start-1 desktop:col-span-5",children:[(0,e.jsx)(t.Heading,{className:"font-bold text-[24px] lg-desktop:text-[48px] laptop:text-[32px] desktop:text-[40px] leading-[1] mb-4 [&>span]:text-[#D1D1D1]",html:`${l.title} is ready <br/><span>Just the way you want it.</span>`}),(0,e.jsx)("div",{className:"aspect-[644/320]",children:(0,e.jsx)(t.Picture,{source:o.image?.url||l?.images?.[0]?.url,className:"h-full w-full",imgClassName:"object-contain h-full"})})]}),(0,e.jsxs)(t.GridItem,{className:"col-span-12 mt-8 desktop:col-start-7 laptop:mt-0 desktop:col-span-6 flex flex-col gap-6 justify-between",children:[(0,e.jsxs)("div",{children:[(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between",children:[(0,e.jsxs)("div",{className:"shrink-0 flex items-center gap-4",children:[(0,e.jsx)(t.Picture,{source:o.image?.url||l?.images?.[0]?.url,className:"size-16 object-cover"}),(0,e.jsxs)("div",{className:"flex flex-col gap-[6px] max-w-[178px] tablet:max-w-none",children:[(0,e.jsx)(t.Text,{className:"font-bold text-[14px] line-clamp-2 desktop:text-[16px] lg-desktop:text-[18px]",html:l.title}),(0,e.jsx)(t.Text,{className:"text-[12px] laptop:text-[14px] desktop:text-[18px] font-bold text-[#6D6D6F]",html:`x1 | ${d.color||d.colour||d.couleur}`})]})]}),(0,e.jsxs)("div",{className:"flex items-center gap-1",children:[(0,e.jsx)(t.Text,{className:"text-base desktop:text-2xl font-bold",html:(0,x.formatPrice)({amount:s,currencyCode:o.price.currencyCode,locale:i})}),r&&(0,e.jsx)(t.Text,{className:"text-base desktop:text-2xl font-bold line-through text-[#6D6D6F]",html:(0,x.formatPrice)({amount:D,currencyCode:o.price.currencyCode,locale:i})})]})]}),n?.gift&&(0,e.jsx)(j,{giftOperation:p=>{u?.({...n,gift:void 0}),v?.({...c,gift:p})},giftStatus:!!n?.gift,gift:n?.gift}),n?.bundle&&(0,e.jsx)(F,{bundleOperation:p=>{u?.({...n,bundle:void 0}),v?.({...c,bundle:p})},bundleStatus:!!n?.bundle,bundleListItem:n?.bundle})]}),(c?.bundle||c?.gift)&&(0,e.jsxs)("div",{className:"mt-6",children:[(0,e.jsx)(t.Text,{className:"text-sm desktop:text-[18px] font-bold",html:"Recommend Buy"}),(0,e.jsxs)("div",{className:"flex flex-col gap-6 mt-6",children:[c?.gift&&(0,e.jsx)(j,{giftOperation:p=>{u?.({gift:p}),v?.({...c,gift:void 0})},giftStatus:!c?.gift,gift:c?.gift}),c?.bundle&&(0,e.jsx)(F,{bundleOperation:p=>{u?.({bundle:p}),v?.({...c,bundle:void 0})},bundleStatus:!c?.bundle,bundleListItem:c?.bundle})]})]})]}),(0,e.jsxs)("div",{className:"text-right",children:[(0,e.jsx)(t.Text,{className:"laptop:text-xl desktop:text-2xl font-bold text-right",html:`${a?.totalPrice} ${(0,x.formatPrice)({amount:s,currencyCode:o.price.currencyCode,locale:i})}`}),r&&(0,e.jsx)(t.Text,{className:"text-base desktop:text-2xl ml-1 font-bold line-through text-[#6D6D6F]",html:(0,x.formatPrice)({amount:D,currencyCode:o.price.currencyCode,locale:i})}),(0,e.jsxs)("div",{className:"flex gap-3 mt-2",children:[(0,e.jsx)(t.Button,{size:"lg",variant:"secondary",className:"w-1/2",onClick:()=>k?.(),children:a?.addToCart}),(0,e.jsx)(t.Button,{size:"lg",variant:"primary",className:"w-1/2",onClick:()=>h?.(),children:a?.shopNow})]})]})]})]})})},J=()=>{const{bundle:i,variant:a,checkedBundle:l,freeGift:o,checkedGift:s}=(0,b.useBizProductContext)();let m,r;const{bundleList:d}=i||{},{giftList:k=[]}=o||{},h=d?.filter(u=>u.variants.slice(1,u.variants.length).every(P=>P.variant.availableForSale))||[],[g]=h;m=l||g;const[n]=k?.filter(u=>u.availableForSale);return r=s||n,{bundleVariant:m,giftVariant:r}},F=({bundleOperation:i,bundleStatus:a,bundleListItem:l})=>{const{locale:o="us"}=(0,y.useAiuiContext)(),{variant:s,setCheckedBundle:m}=(0,b.useBizProductContext)(),r=l?.variants.filter(d=>d.variant.sku!==s.sku);return(0,e.jsxs)("div",{className:"flex items-center justify-between",children:[r?.map(d=>(0,e.jsxs)("div",{className:"flex items-center gap-4",children:[(0,e.jsx)(t.Picture,{source:d?.variant?.image?.url,className:"size-16 object-cover"}),(0,e.jsx)("div",{className:"flex flex-col gap-[6px] max-w-[178px] tablet:max-w-none",children:(0,e.jsx)(t.Text,{className:"font-bold text-[14px] desktop:text-[16px] lg-desktop:text-[18px]",html:d.variant.product.title})})]},d.variant.id)),(0,e.jsxs)("div",{className:"flex flex-col items-end gap-1 justify-center",children:[a&&(0,e.jsx)(t.Text,{className:"text-base desktop:text-2xl font-bold",html:(0,x.formatPrice)({amount:r[0]?.price,locale:o,currencyCode:r[0]?.variant?.price?.currencyCode})}),(0,e.jsx)(t.Button,{size:a?"icon":"lg",variant:a?"link":"primary",onClick:()=>{m?.(a?void 0:l),i(l)},className:(0,C.cn)("shrink-0 size-auto",{underline:a}),children:a?"Remove":"Add +"})]})]})},j=({giftOperation:i,giftStatus:a,gift:l})=>{const{locale:o="us"}=(0,y.useAiuiContext)(),{freeGift:s,setCheckedGift:m}=(0,b.useBizProductContext)(),{freeLabel:r}=s||{};return(0,e.jsxs)("div",{className:"flex items-center justify-between",children:[(0,e.jsxs)("div",{className:"flex items-center gap-4",children:[(0,e.jsx)(t.Picture,{source:l?.image?.url,className:"size-16 object-cover"}),(0,e.jsxs)("div",{className:"flex flex-col gap-[6px] max-w-[178px] tablet:max-w-none",children:[(0,e.jsx)(t.Text,{className:"font-bold text-[14px] desktop:text-[16px] lg-desktop:text-[18px]",html:l?.product?.title}),(0,e.jsx)(t.Text,{className:"text-[12px] laptop:text-[14px] desktop:text-[18px] font-bold text-[#6D6D6F]",html:`x1 | ${r}`})]})]}),(0,e.jsxs)("div",{className:"flex flex-col items-end gap-2 justify-center",children:[a&&(0,e.jsxs)("div",{className:"flex items-center gap-1",children:[(0,e.jsx)(t.Text,{className:"text-base desktop:text-2xl font-bold",html:r}),(0,e.jsx)(t.Text,{className:"text-base desktop:text-2xl font-bold line-through text-[#6D6D6F]",html:(0,x.formatPrice)({amount:l.price.amount,locale:o,currencyCode:l.price.currencyCode})})]}),(0,e.jsx)(t.Button,{size:a?"icon":"lg",variant:a?"link":"primary",onClick:()=>{m?.(a?void 0:l),i(l)},className:(0,C.cn)("shrink-0 size-auto",{underline:a}),children:a?"Remove":"Add +"})]})]})};var E=T;
2
- //# sourceMappingURL=index.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../src/biz-components/Listing/components/ProductCard/ProductSummary/index.tsx"],
4
- "sourcesContent": ["import { Text, Button, Container, Grid, GridItem, Picture, Heading } from '../../../../../components'\nimport type { ProductSummaryProps } from './types'\nimport { useBizProductContext } from '../../../BizProductProvider'\nimport { useEffect, useMemo, useState } from 'react'\nimport { formatPrice } from '../../../utils'\nimport { useAiuiContext } from '../../../../AiuiProvider'\nimport type { BundleListItem, ProductVariant } from '../../../types/product'\nimport { cn } from '../../../../../helpers'\nimport Decimal from 'decimal.js'\n\nconst ProductSummary = ({}: ProductSummaryProps) => {\n const { locale = 'us', copyWriting } = useAiuiContext()\n const {\n product,\n variant,\n finalPrice,\n comparePrice,\n coupon,\n selectedOptions,\n onAddToCart,\n onBuyNow,\n savingDetail,\n joinedRecommendBuyProducts,\n setJoinedRecommendBuyProducts,\n } = useBizProductContext()\n\n const isAvailable = variant.availableForSale\n if (!isAvailable) return null\n\n const { bundleVariant, giftVariant } = useRecommendBuyProducts() || {}\n const [initialRecommendBuyProducts, setInitialRecommendBuyProducts] = useState<{\n bundle?: BundleListItem\n gift?: ProductVariant\n }>()\n\n useEffect(() => {\n setInitialRecommendBuyProducts({\n bundle: joinedRecommendBuyProducts.bundle ? undefined : bundleVariant,\n gift: joinedRecommendBuyProducts.gift ? undefined : giftVariant,\n })\n }, [bundleVariant, giftVariant, joinedRecommendBuyProducts])\n\n const comparePriceRemovedFreeGift = useMemo(\n () => new Decimal(comparePrice).minus(savingDetail.freeGift).toNumber(),\n [comparePrice, savingDetail]\n )\n\n return (\n <div className=\"ipc-product-summary bg-[#F5F5F7] mt-16\">\n <Grid className=\"px-4 py-6 tablet:p-8\">\n <GridItem className=\"col-span-12 desktop:col-start-1 desktop:col-span-5\">\n <Heading\n className=\"font-bold text-[24px] lg-desktop:text-[48px] laptop:text-[32px] desktop:text-[40px] leading-[1] mb-4 [&>span]:text-[#D1D1D1]\"\n html={`${product.title} is ready <br/><span>Just the way you want it.</span>`}\n />\n <div className=\"aspect-[644/320]\">\n <Picture\n source={variant.image?.url || product?.images?.[0]?.url}\n className=\"h-full w-full\"\n imgClassName=\"object-contain h-full\"\n />\n </div>\n </GridItem>\n <GridItem className=\"col-span-12 mt-8 desktop:col-start-7 laptop:mt-0 desktop:col-span-6 flex flex-col gap-6 justify-between\">\n <div>\n <div className=\"flex flex-col gap-4\">\n <div className=\"flex items-center justify-between\">\n <div className=\"shrink-0 flex items-center gap-4\">\n <Picture source={variant.image?.url || product?.images?.[0]?.url} className=\"size-16 object-cover\" />\n <div className=\"flex flex-col gap-[6px] max-w-[178px] tablet:max-w-none\">\n <Text\n className=\"font-bold text-[14px] line-clamp-2 desktop:text-[16px] lg-desktop:text-[18px]\"\n html={product.title}\n />\n <Text\n className=\"text-[12px] laptop:text-[14px] desktop:text-[18px] font-bold text-[#6D6D6F]\"\n html={`x1 | ${selectedOptions.color || selectedOptions.colour || selectedOptions.couleur}`}\n />\n </div>\n </div>\n <div className=\"flex items-center gap-1\">\n <Text\n className=\"text-base desktop:text-2xl font-bold\"\n html={formatPrice({ amount: finalPrice, currencyCode: variant.price.currencyCode, locale })}\n />\n {coupon && (\n <Text\n className=\"text-base desktop:text-2xl font-bold line-through text-[#6D6D6F]\"\n html={formatPrice({\n amount: comparePriceRemovedFreeGift,\n currencyCode: variant.price.currencyCode,\n locale,\n })}\n />\n )}\n </div>\n </div>\n {joinedRecommendBuyProducts?.gift && (\n <ProductGiftSummary\n giftOperation={gift => {\n setJoinedRecommendBuyProducts?.({ ...joinedRecommendBuyProducts, gift: undefined })\n setInitialRecommendBuyProducts?.({ ...initialRecommendBuyProducts, gift })\n }}\n giftStatus={!!joinedRecommendBuyProducts?.gift}\n gift={joinedRecommendBuyProducts?.gift}\n />\n )}\n {joinedRecommendBuyProducts?.bundle && (\n <ProductBundleSummary\n bundleOperation={bundle => {\n setJoinedRecommendBuyProducts?.({ ...joinedRecommendBuyProducts, bundle: undefined })\n setInitialRecommendBuyProducts?.({ ...initialRecommendBuyProducts, bundle })\n }}\n bundleStatus={!!joinedRecommendBuyProducts?.bundle}\n bundleListItem={joinedRecommendBuyProducts?.bundle}\n />\n )}\n </div>\n {(initialRecommendBuyProducts?.bundle || initialRecommendBuyProducts?.gift) && (\n <div className=\"mt-6\">\n <Text className=\"text-sm desktop:text-[18px] font-bold\" html={'Recommend Buy'} />\n <div className=\"flex flex-col gap-6 mt-6\">\n {initialRecommendBuyProducts?.gift && (\n <ProductGiftSummary\n giftOperation={gift => {\n setJoinedRecommendBuyProducts?.({ gift })\n setInitialRecommendBuyProducts?.({ ...initialRecommendBuyProducts, gift: undefined })\n }}\n giftStatus={!initialRecommendBuyProducts?.gift}\n gift={initialRecommendBuyProducts?.gift}\n />\n )}\n {initialRecommendBuyProducts?.bundle && (\n <ProductBundleSummary\n bundleOperation={bundle => {\n setJoinedRecommendBuyProducts?.({ bundle })\n setInitialRecommendBuyProducts?.({ ...initialRecommendBuyProducts, bundle: undefined })\n }}\n bundleStatus={!initialRecommendBuyProducts?.bundle}\n bundleListItem={initialRecommendBuyProducts?.bundle}\n />\n )}\n </div>\n </div>\n )}\n </div>\n <div className=\"text-right\">\n <Text\n className=\"laptop:text-xl desktop:text-2xl font-bold text-right\"\n html={`${copyWriting?.totalPrice} ${formatPrice({ amount: finalPrice, currencyCode: variant.price.currencyCode, locale })}`}\n />\n\n {coupon && (\n <Text\n className=\"text-base desktop:text-2xl ml-1 font-bold line-through text-[#6D6D6F]\"\n html={formatPrice({\n amount: comparePriceRemovedFreeGift,\n currencyCode: variant.price.currencyCode,\n locale,\n })}\n />\n )}\n <div className=\"flex gap-3 mt-2\">\n <Button size=\"lg\" variant=\"secondary\" className=\"w-1/2\" onClick={() => onAddToCart?.()}>\n {copyWriting?.addToCart}\n </Button>\n <Button size=\"lg\" variant=\"primary\" className=\"w-1/2\" onClick={() => onBuyNow?.()}>\n {copyWriting?.shopNow}\n </Button>\n </div>\n </div>\n </GridItem>\n </Grid>\n </div>\n )\n}\n\nconst useRecommendBuyProducts = () => {\n const { bundle, variant, checkedBundle, freeGift, checkedGift } = useBizProductContext()\n let bundleVariant = undefined\n let giftVariant = undefined\n const { bundleList } = bundle || {}\n\n const { giftList = [] } = freeGift || {}\n\n const availableBundleList =\n bundleList?.filter(bundle =>\n bundle.variants.slice(1, bundle.variants.length).every(v => v.variant.availableForSale)\n ) || []\n\n const [firstAvailableBundle] = availableBundleList\n bundleVariant = checkedBundle || firstAvailableBundle\n\n const [firstAvailableGift] = giftList?.filter(gift => gift.availableForSale)\n giftVariant = checkedGift || firstAvailableGift\n\n return { bundleVariant, giftVariant }\n}\n\nconst ProductBundleSummary = ({\n bundleOperation,\n bundleStatus,\n bundleListItem,\n}: {\n bundleOperation: (bundle: BundleListItem) => void\n bundleStatus: boolean\n bundleListItem: BundleListItem\n}) => {\n const { locale = 'us' } = useAiuiContext()\n const { variant, setCheckedBundle } = useBizProductContext()\n const bundleVariants = bundleListItem?.variants.filter(v => v.variant.sku !== variant.sku)\n\n return (\n <div className=\"flex items-center justify-between\">\n {bundleVariants?.map(bundleVariant => {\n return (\n <div className=\"flex items-center gap-4\" key={bundleVariant.variant.id}>\n <Picture source={bundleVariant?.variant?.image?.url} className=\"size-16 object-cover\" />\n <div className=\"flex flex-col gap-[6px] max-w-[178px] tablet:max-w-none\">\n <Text\n className=\"font-bold text-[14px] desktop:text-[16px] lg-desktop:text-[18px]\"\n html={bundleVariant.variant.product.title}\n />\n </div>\n </div>\n )\n })}\n <div className=\"flex flex-col items-end gap-1 justify-center\">\n {bundleStatus && (\n <Text\n className=\"text-base desktop:text-2xl font-bold\"\n html={formatPrice({\n amount: bundleVariants[0]?.price,\n locale,\n currencyCode: bundleVariants[0]?.variant?.price?.currencyCode,\n })}\n />\n )}\n <Button\n size={bundleStatus ? 'icon' : 'lg'}\n variant={bundleStatus ? 'link' : 'primary'}\n onClick={() => {\n setCheckedBundle?.(bundleStatus ? undefined : bundleListItem)\n bundleOperation(bundleListItem)\n }}\n className={cn('shrink-0 size-auto', {\n underline: bundleStatus,\n })}\n >\n {bundleStatus ? 'Remove' : 'Add +'}\n </Button>\n </div>\n </div>\n )\n}\n\nconst ProductGiftSummary = ({\n giftOperation,\n giftStatus,\n gift,\n}: {\n giftOperation: (gift: ProductVariant) => void\n giftStatus: boolean\n gift: ProductVariant\n}) => {\n const { locale = 'us' } = useAiuiContext()\n const { freeGift, setCheckedGift } = useBizProductContext()\n const { freeLabel } = freeGift || {}\n\n return (\n <div className=\"flex items-center justify-between\">\n <div className=\"flex items-center gap-4\">\n <Picture source={gift?.image?.url} className=\"size-16 object-cover\" />\n <div className=\"flex flex-col gap-[6px] max-w-[178px] tablet:max-w-none\">\n <Text\n className=\"font-bold text-[14px] desktop:text-[16px] lg-desktop:text-[18px]\"\n html={gift?.product?.title}\n />\n <Text\n className=\"text-[12px] laptop:text-[14px] desktop:text-[18px] font-bold text-[#6D6D6F]\"\n html={`x1 | ${freeLabel}`}\n />\n </div>\n </div>\n <div className=\"flex flex-col items-end gap-2 justify-center\">\n {giftStatus && (\n <div className=\"flex items-center gap-1\">\n <Text className=\"text-base desktop:text-2xl font-bold\" html={freeLabel} />\n <Text\n className=\"text-base desktop:text-2xl font-bold line-through text-[#6D6D6F]\"\n html={formatPrice({\n amount: gift.price.amount,\n locale,\n currencyCode: gift.price.currencyCode,\n })}\n />\n </div>\n )}\n <Button\n size={giftStatus ? 'icon' : 'lg'}\n variant={giftStatus ? 'link' : 'primary'}\n onClick={() => {\n setCheckedGift?.(giftStatus ? undefined : gift)\n giftOperation(gift)\n }}\n className={cn('shrink-0 size-auto', {\n underline: giftStatus,\n })}\n >\n {giftStatus ? 'Remove' : 'Add +'}\n </Button>\n </div>\n </div>\n )\n}\n\nexport default ProductSummary\n"],
5
- "mappings": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,aAAAE,IAAA,e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,cAAAkB,EACA,WAAAC,EACA,KAAAlB,CACF,IAIM,CACJ,KAAM,CAAE,OAAArB,EAAS,IAAK,KAAI,kBAAe,EACnC,CAAE,SAAAyB,EAAU,eAAAe,CAAe,KAAI,wBAAqB,EACpD,CAAE,UAAAC,CAAU,EAAIhB,GAAY,CAAC,EAEnC,SACE,QAAC,OAAI,UAAU,oCACb,qBAAC,OAAI,UAAU,0BACb,oBAAC,WAAQ,OAAQJ,GAAM,OAAO,IAAK,UAAU,uBAAuB,KACpE,QAAC,OAAI,UAAU,0DACb,oBAAC,QACC,UAAU,mEACV,KAAMA,GAAM,SAAS,MACvB,KACA,OAAC,QACC,UAAU,8EACV,KAAM,QAAQoB,CAAS,GACzB,GACF,GACF,KACA,QAAC,OAAI,UAAU,+CACZ,UAAAF,MACC,QAAC,OAAI,UAAU,0BACb,oBAAC,QAAK,UAAU,uCAAuC,KAAME,EAAW,KACxE,OAAC,QACC,UAAU,mEACV,QAAM,eAAY,CAChB,OAAQpB,EAAK,MAAM,OACnB,OAAArB,EACA,aAAcqB,EAAK,MAAM,YAC3B,CAAC,EACH,GACF,KAEF,OAAC,UACC,KAAMkB,EAAa,OAAS,KAC5B,QAASA,EAAa,OAAS,UAC/B,QAAS,IAAM,CACbC,IAAiBD,EAAa,OAAYlB,CAAI,EAC9CiB,EAAcjB,CAAI,CACpB,EACA,aAAW,MAAG,qBAAsB,CAClC,UAAWkB,CACb,CAAC,EAEA,SAAAA,EAAa,SAAW,QAC3B,GACF,GACF,CAEJ,EAEA,IAAOlD,EAAQU",
6
- "names": ["ProductSummary_exports", "__export", "ProductSummary_default", "__toCommonJS", "import_jsx_runtime", "import_components", "import_BizProductProvider", "import_react", "import_utils", "import_AiuiProvider", "import_helpers", "import_decimal", "ProductSummary", "locale", "copyWriting", "product", "variant", "finalPrice", "comparePrice", "coupon", "selectedOptions", "onAddToCart", "onBuyNow", "savingDetail", "joinedRecommendBuyProducts", "setJoinedRecommendBuyProducts", "bundleVariant", "giftVariant", "useRecommendBuyProducts", "initialRecommendBuyProducts", "setInitialRecommendBuyProducts", "comparePriceRemovedFreeGift", "Decimal", "ProductGiftSummary", "gift", "ProductBundleSummary", "bundle", "checkedBundle", "freeGift", "checkedGift", "bundleList", "giftList", "availableBundleList", "v", "firstAvailableBundle", "firstAvailableGift", "bundleOperation", "bundleStatus", "bundleListItem", "setCheckedBundle", "bundleVariants", "giftOperation", "giftStatus", "setCheckedGift", "freeLabel"]
7
- }
@@ -1,2 +0,0 @@
1
- export interface ProductSummaryProps {
2
- }
@@ -1,2 +0,0 @@
1
- "use strict";var a=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var P=(e,r,c,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of p(r))!u.call(e,o)&&o!==c&&a(e,o,{get:()=>r[o],enumerable:!(t=m(r,o))||t.enumerable});return e};var d=e=>P(a({},"__esModule",{value:!0}),e);var f={};module.exports=d(f);
2
- //# sourceMappingURL=types.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../src/biz-components/Listing/components/ProductCard/ProductSummary/types.ts"],
4
- "sourcesContent": ["export interface ProductSummaryProps {\n}\n"],
5
- "mappings": "+WAAA,IAAAA,EAAA,kBAAAC,EAAAD",
6
- "names": ["types_exports", "__toCommonJS"]
7
- }
@@ -1,2 +0,0 @@
1
- declare const ProductCard: () => import("react/jsx-runtime").JSX.Element;
2
- export default ProductCard;
@@ -1,2 +0,0 @@
1
- "use strict";var u=Object.create;var a=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var G=Object.getPrototypeOf,n=Object.prototype.hasOwnProperty;var N=(t,o)=>{for(var d in o)a(t,d,{get:o[d],enumerable:!0})},l=(t,o,d,c)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of f(o))!n.call(t,r)&&r!==d&&a(t,r,{get:()=>o[r],enumerable:!(c=x(o,r))||c.enumerable});return t};var e=(t,o,d)=>(d=t!=null?u(G(t)):{},l(o||!t||!t.__esModule?a(d,"default",{value:t,enumerable:!0}):d,t)),P=t=>l(a({},"__esModule",{value:!0}),t);var g={};N(g,{default:()=>I});module.exports=P(g);var p=require("react/jsx-runtime"),s=require("../../../../components"),m=e(require("./ProductGallery/index.js")),i=e(require("./ProductDetail/index.js")),k=e(require("./ProductSummary/index.js"));const y=()=>(0,p.jsxs)("div",{id:"ipc-product-card",className:"desktop:mt-6 desktop:px-16 lg-desktop:px-[calc(50%-832px)]",children:[(0,p.jsxs)(s.Grid,{className:"laptop:gap-6",children:[(0,p.jsx)(s.GridItem,{className:"col-span-12 tablet:px-8 laptop:px-16 desktop:px-0 desktop:col-start-1 desktop:col-span-8 desktop:sticky desktop:top-[124px] h-fit",children:(0,p.jsx)(m.default,{})}),(0,p.jsx)(s.GridItem,{className:"col-span-12 desktop:col-start-9 desktop:col-span-4",children:(0,p.jsx)(i.default,{})})]}),(0,p.jsx)(k.default,{})]});var I=y;
2
- //# sourceMappingURL=index.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../src/biz-components/Listing/components/ProductCard/index.tsx"],
4
- "sourcesContent": ["import { Grid, GridItem } from '../../../../components'\nimport ProductGallery from './ProductGallery/index.js'\nimport ProductDetail from './ProductDetail/index.js'\nimport ProductSummary from './ProductSummary/index.js'\n\n\n\nconst ProductCard = () => {\n return (\n <div id=\"ipc-product-card\" className=\"desktop:mt-6 desktop:px-16 lg-desktop:px-[calc(50%-832px)]\">\n <Grid className=\"laptop:gap-6\">\n <GridItem className=\"col-span-12 tablet:px-8 laptop:px-16 desktop:px-0 desktop:col-start-1 desktop:col-span-8 desktop:sticky desktop:top-[124px] h-fit\">\n <ProductGallery />\n </GridItem>\n <GridItem className=\"col-span-12 desktop:col-start-9 desktop:col-span-4\">\n <ProductDetail />\n </GridItem>\n </Grid>\n <ProductSummary />\n </div>\n )\n}\n\nexport default ProductCard\n"],
5
- "mappings": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,aAAAE,IAAA,eAAAC,EAAAH,GAUM,IAAAI,EAAA,6BAVNC,EAA+B,kCAC/BC,EAA2B,wCAC3BC,EAA0B,uCAC1BC,EAA2B,wCAI3B,MAAMC,EAAc,OAEhB,QAAC,OAAI,GAAG,mBAAmB,UAAU,6DACnC,qBAAC,QAAK,UAAU,eACd,oBAAC,YAAS,UAAU,oIAClB,mBAAC,EAAAC,QAAA,EAAe,EAClB,KACA,OAAC,YAAS,UAAU,qDAClB,mBAAC,EAAAC,QAAA,EAAe,EAClB,GACF,KACA,OAAC,EAAAC,QAAA,EAAe,GAClB,EAIJ,IAAOV,EAAQO",
6
- "names": ["ProductCard_exports", "__export", "ProductCard_default", "__toCommonJS", "import_jsx_runtime", "import_components", "import_ProductGallery", "import_ProductDetail", "import_ProductSummary", "ProductCard", "ProductGallery", "ProductDetail", "ProductSummary"]
7
- }
@@ -1,2 +0,0 @@
1
- declare const ProductActions: () => import("react/jsx-runtime").JSX.Element;
2
- export default ProductActions;
@@ -1,2 +0,0 @@
1
- "use strict";var y=Object.create;var n=Object.defineProperty;var C=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var h=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty;var P=(t,e)=>{for(var a in e)n(t,a,{get:e[a],enumerable:!0})},x=(t,e,a,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of w(e))!B.call(t,i)&&i!==a&&n(t,i,{get:()=>e[i],enumerable:!(r=C(e,i))||r.enumerable});return t};var S=(t,e,a)=>(a=t!=null?y(h(t)):{},x(e||!t||!t.__esModule?n(a,"default",{value:t,enumerable:!0}):a,t)),A=t=>x(n({},"__esModule",{value:!0}),t);var z={};P(z,{default:()=>k});module.exports=A(z);var o=require("react/jsx-runtime"),l=require("../../../../../components"),p=require("../../../../AiuiProvider/index.js"),f=require("../../../BizProductProvider.js"),v=require("react"),c=require("../../../utils"),s=S(require("decimal.js"));const F=()=>{const{copyWriting:t,locale:e="us"}=(0,p.useAiuiContext)(),{variant:a,finalPrice:r,totalSavings:i,comparePrice:d,onAddToCart:g,onBuyNow:N,savingDetail:m,coupon:u}=(0,f.useBizProductContext)();console.log(m,"savingDetail");const b=(0,v.useMemo)(()=>new s.default(d).minus(m.freeGift).toNumber(),[d,m]);return(0,o.jsxs)("div",{className:"bg-white py-3 px-4 tablet:p-0 tablet:flex tablet:items-center tablet:gap-4",children:[a.availableForSale?(0,o.jsxs)("div",{className:"flex items-center justify-between tablet:flex-col desktop:items-end",children:[(0,o.jsxs)("div",{className:"flex items-center gap-1",children:[(0,o.jsx)(l.Text,{className:"text-xl font-bold leading-[1.2] tablet:text-2xl",html:(0,c.formatPrice)({amount:r,currencyCode:a.price.currencyCode,locale:e})}),u&&(0,o.jsx)(l.Text,{className:"text-xl font-bold line-through text-[#999] leading-[1.2] tablet:text-2xl",html:(0,c.formatPrice)({amount:b,currencyCode:a.price.currencyCode,locale:e})})]}),u&&(0,o.jsx)(l.Text,{className:"text-brand-0 text-base leading-[1.4] font-bold tablet:text-2xl",html:`${t?.totalSavings} ${(0,c.formatPrice)({amount:new s.default(b).minus(new s.default(r)).toNumber(),currencyCode:a.price.currencyCode,locale:e})}`})]}):(0,o.jsx)(l.Text,{className:"text-[20px] font-bold text-[#999999]",html:t?.soldOut??"Sold Out"}),(0,o.jsxs)("div",{className:"flex items-center gap-2 mt-2 tablet:mt-0",children:[(0,o.jsx)(l.Button,{variant:"secondary",disabled:!a.availableForSale,size:"lg",className:"w-1/2 tablet:w-auto",onClick:()=>g?.(),children:t?.addToCart??"Add to Cart"}),(0,o.jsx)(l.Button,{variant:"primary",disabled:!a.availableForSale,size:"lg",className:"w-1/2 tablet:w-auto",onClick:()=>N?.(),children:t?.buyNow??"Buy Now"})]})]})};var k=F;
2
- //# sourceMappingURL=index.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../src/biz-components/Listing/components/PurchaseBar/ProductActions/index.tsx"],
4
- "sourcesContent": ["import { Text, Button } from '../../../../../components'\nimport { useAiuiContext } from '../../../../AiuiProvider/index.js'\nimport { useBizProductContext } from '../../../BizProductProvider.js'\nimport { useMemo } from 'react'\nimport { formatPrice } from '../../../utils'\nimport Decimal from 'decimal.js'\n\nconst ProductActions = () => {\n const { copyWriting, locale = 'us' } = useAiuiContext()\n const { variant, finalPrice, totalSavings, comparePrice, onAddToCart, onBuyNow, savingDetail, coupon } =\n useBizProductContext()\n\n console.log(savingDetail, 'savingDetail')\n\n const comparePriceRemovedFreeGift = useMemo(\n () => new Decimal(comparePrice).minus(savingDetail.freeGift).toNumber(),\n [comparePrice, savingDetail]\n )\n\n return (\n <div className=\"bg-white py-3 px-4 tablet:p-0 tablet:flex tablet:items-center tablet:gap-4\">\n {variant.availableForSale ? (\n <div className=\"flex items-center justify-between tablet:flex-col desktop:items-end\">\n <div className=\"flex items-center gap-1\">\n <Text\n className=\"text-xl font-bold leading-[1.2] tablet:text-2xl\"\n html={formatPrice({ amount: finalPrice, currencyCode: variant.price.currencyCode, locale })}\n />\n {coupon &&<Text\n className=\"text-xl font-bold line-through text-[#999] leading-[1.2] tablet:text-2xl\"\n html={formatPrice({\n amount: comparePriceRemovedFreeGift,\n currencyCode: variant.price.currencyCode,\n locale,\n })}\n />}\n </div>\n {coupon && (\n <Text\n className=\"text-brand-0 text-base leading-[1.4] font-bold tablet:text-2xl\"\n html={`${copyWriting?.totalSavings} ${formatPrice({ amount: new Decimal(comparePriceRemovedFreeGift).minus(new Decimal(finalPrice)).toNumber(), currencyCode: variant.price.currencyCode, locale })}`}\n />\n )}\n </div>\n ) : (\n <Text className=\"text-[20px] font-bold text-[#999999]\" html={copyWriting?.soldOut ?? 'Sold Out'} />\n )}\n <div className=\"flex items-center gap-2 mt-2 tablet:mt-0\">\n <Button\n variant=\"secondary\"\n disabled={!variant.availableForSale}\n size=\"lg\"\n className=\"w-1/2 tablet:w-auto\"\n onClick={() => onAddToCart?.()}\n >\n {copyWriting?.addToCart ?? 'Add to Cart'}\n </Button>\n <Button\n variant=\"primary\"\n disabled={!variant.availableForSale}\n size=\"lg\"\n className=\"w-1/2 tablet:w-auto\"\n onClick={() => onBuyNow?.()}\n >\n {copyWriting?.buyNow ?? 'Buy Now'}\n </Button>\n </div>\n </div>\n )\n}\n\nexport default ProductActions\n"],
5
- "mappings": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,aAAAE,IAAA,eAAAC,EAAAH,GAuBU,IAAAI,EAAA,6BAvBVC,EAA6B,qCAC7BC,EAA+B,6CAC/BC,EAAqC,0CACrCC,EAAwB,iBACxBC,EAA4B,0BAC5BC,EAAoB,yBAEpB,MAAMC,EAAiB,IAAM,CAC3B,KAAM,CAAE,YAAAC,EAAa,OAAAC,EAAS,IAAK,KAAI,kBAAe,EAChD,CAAE,QAAAC,EAAS,WAAAC,EAAY,aAAAC,EAAc,aAAAC,EAAc,YAAAC,EAAa,SAAAC,EAAU,aAAAC,EAAc,OAAAC,CAAO,KACnG,wBAAqB,EAErB,QAAQ,IAAID,EAAc,cAAc,EAE1C,MAAME,KAA8B,WAClC,IAAM,IAAI,EAAAC,QAAQN,CAAY,EAAE,MAAMG,EAAa,QAAQ,EAAE,SAAS,EACtE,CAACH,EAAcG,CAAY,CAC7B,EAEA,SACE,QAAC,OAAI,UAAU,6EACZ,UAAAN,EAAQ,oBACP,QAAC,OAAI,UAAU,sEACb,qBAAC,OAAI,UAAU,0BACb,oBAAC,QACC,UAAU,kDACV,QAAM,eAAY,CAAE,OAAQC,EAAY,aAAcD,EAAQ,MAAM,aAAc,OAAAD,CAAO,CAAC,EAC5F,EACCQ,MAAS,OAAC,QACT,UAAU,2EACV,QAAM,eAAY,CAChB,OAAQC,EACR,aAAcR,EAAQ,MAAM,aAC5B,OAAAD,CACF,CAAC,EACH,GACF,EACCQ,MACC,OAAC,QACC,UAAU,iEACV,KAAM,GAAGT,GAAa,YAAY,OAAI,eAAY,CAAE,OAAQ,IAAI,EAAAW,QAAQD,CAA2B,EAAE,MAAM,IAAI,EAAAC,QAAQR,CAAU,CAAC,EAAE,SAAS,EAAG,aAAcD,EAAQ,MAAM,aAAc,OAAAD,CAAO,CAAC,CAAC,GACrM,GAEJ,KAEA,OAAC,QAAK,UAAU,uCAAuC,KAAMD,GAAa,SAAW,WAAY,KAEnG,QAAC,OAAI,UAAU,2CACb,oBAAC,UACC,QAAQ,YACR,SAAU,CAACE,EAAQ,iBACnB,KAAK,KACL,UAAU,sBACV,QAAS,IAAMI,IAAc,EAE5B,SAAAN,GAAa,WAAa,cAC7B,KACA,OAAC,UACC,QAAQ,UACR,SAAU,CAACE,EAAQ,iBACnB,KAAK,KACL,UAAU,sBACV,QAAS,IAAMK,IAAW,EAEzB,SAAAP,GAAa,QAAU,UAC1B,GACF,GACF,CAEJ,EAEA,IAAOV,EAAQS",
6
- "names": ["ProductActions_exports", "__export", "ProductActions_default", "__toCommonJS", "import_jsx_runtime", "import_components", "import_AiuiProvider", "import_BizProductProvider", "import_react", "import_utils", "import_decimal", "ProductActions", "copyWriting", "locale", "variant", "finalPrice", "totalSavings", "comparePrice", "onAddToCart", "onBuyNow", "savingDetail", "coupon", "comparePriceRemovedFreeGift", "Decimal"]
7
- }
@@ -1,4 +0,0 @@
1
- import type { ScrollSpyNavProps } from './types.js';
2
- declare const MobileScrollSpyNav: ({ tabs, purchaseBarHeight, onSpyNavItemClick }: ScrollSpyNavProps) => import("react/jsx-runtime").JSX.Element;
3
- declare const DesktopScrollSpyNav: ({ tabs, onSpyNavItemClick }: ScrollSpyNavProps) => import("react/jsx-runtime").JSX.Element;
4
- export { MobileScrollSpyNav, DesktopScrollSpyNav };
@@ -1,2 +0,0 @@
1
- "use strict";var c=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var k=(o,e)=>{for(var a in e)c(o,a,{get:e[a],enumerable:!0})},C=(o,e,a,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of y(e))!g.call(o,l)&&l!==a&&c(o,l,{get:()=>e[l],enumerable:!(s=h(e,l))||s.enumerable});return o};var w=o=>C(c({},"__esModule",{value:!0}),o);var E={};k(E,{DesktopScrollSpyNav:()=>b,MobileScrollSpyNav:()=>u});module.exports=w(E);var t=require("react/jsx-runtime"),A=require("../../../../AiuiProvider/index.js"),p=require("../../../../../helpers/index.js"),n=require("react"),f=require("gsap"),m=require("../../../BizProductProvider.js");const u=({tabs:o,purchaseBarHeight:e,onSpyNavItemClick:a})=>{const[s,l]=(0,n.useState)(!1),[r,v]=(0,n.useState)(o?.[0]),d=(0,n.useRef)(null),{renderRating:x}=(0,m.useBizProductContext)(),N=(0,n.useCallback)(i=>{v(i),a?.(i),l(!1)},[]),S=(0,n.useCallback)(()=>{l(!s),f.gsap.fromTo(d?.current,{height:0},{height:"auto",duration:.5,ease:"power2.inOut"})},[s]);return(0,t.jsxs)("div",{children:[(0,t.jsx)("button",{className:"text-sm h-[28px] font-bold leading-[28px] px-[10px] border rounded-full border-black",onClick:S,children:r?.label}),(0,t.jsxs)("div",{className:(0,p.cn)("absolute top-full w-full flex flex-col z-[60] bg-black/60 left-0",{hidden:!s}),style:{height:`calc(100dvh - ${e}px)`},children:[(0,t.jsxs)("div",{ref:d,className:"border-t overflow-hidden border-[#E4E5E6] flex flex-col bg-white",children:[o?.map(i=>(0,t.jsx)("button",{className:"text-sm hover:bg-[#EAEAEC] p-4 text-left font-bold",onClick:()=>N(i),children:i.label},i.id)),(0,t.jsx)("button",{className:"text-sm hover:bg-[#EAEAEC] p-4 text-left font-bold",children:x})]}),(0,t.jsx)("div",{className:"flex-1",onClick:()=>l(!1)})]})]})},b=({tabs:o,onSpyNavItemClick:e})=>{const[a,s]=(0,n.useState)(o?.[0]),l=(0,n.useCallback)(r=>{s(r),e?.(r)},[]);return(0,t.jsx)("div",{className:"flex gap-8",children:o?.map(r=>(0,t.jsxs)("button",{className:"text-sm relative py-[10px] font-bold",onClick:()=>l(r),children:[r.label,(0,t.jsx)("div",{className:(0,p.cn)("absolute bottom-0 left-0 w-0 transition-all duration-300 ease-in-out h-[2px] bg-brand-0",{"w-full":a?.id===r.id})})]},r.id))})};
2
- //# sourceMappingURL=index.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../src/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/index.tsx"],
4
- "sourcesContent": ["import { useAiuiContext } from '../../../../AiuiProvider/index.js'\nimport { cn } from '../../../../../helpers/index.js'\nimport { useState, useCallback, useRef } from 'react'\nimport { gsap } from 'gsap'\nimport type { ScrollSpyNavItem, ScrollSpyNavProps } from './types.js'\nimport { useBizProductContext } from '../../../BizProductProvider.js'\n\nconst MobileScrollSpyNav = ({ tabs, purchaseBarHeight, onSpyNavItemClick }: ScrollSpyNavProps) => {\n const [dropdownOpen, setDropdownOpen] = useState(false)\n const [activeTab, setActiveTab] = useState(tabs?.[0])\n const dropdownRef = useRef<HTMLDivElement>(null)\n const { renderRating } = useBizProductContext()\n \n const onTabClick = useCallback((tab: ScrollSpyNavItem) => {\n setActiveTab(tab)\n onSpyNavItemClick?.(tab)\n setDropdownOpen(false)\n }, [])\n\n const onDropdownOpen = useCallback(() => {\n setDropdownOpen(!dropdownOpen)\n gsap.fromTo(dropdownRef?.current, { height: 0 }, { height: 'auto', duration: 0.5, ease: 'power2.inOut' })\n }, [dropdownOpen])\n\n return (\n <div>\n <button\n className=\"text-sm h-[28px] font-bold leading-[28px] px-[10px] border rounded-full border-black\"\n onClick={onDropdownOpen}\n >\n {activeTab?.label}\n </button>\n <div\n className={cn('absolute top-full w-full flex flex-col z-[60] bg-black/60 left-0', {\n ['hidden']: !dropdownOpen,\n })}\n style={{\n height: `calc(100dvh - ${purchaseBarHeight}px)`,\n }}\n >\n <div ref={dropdownRef} className=\"border-t overflow-hidden border-[#E4E5E6] flex flex-col bg-white\">\n {tabs?.map(tab => (\n <button\n className=\"text-sm hover:bg-[#EAEAEC] p-4 text-left font-bold\"\n key={tab.id}\n onClick={() => onTabClick(tab)}\n >\n {tab.label}\n </button>\n ))}\n <button className=\"text-sm hover:bg-[#EAEAEC] p-4 text-left font-bold\">{renderRating}</button>\n </div>\n <div className=\"flex-1\" onClick={() => setDropdownOpen(false)} />\n </div>\n </div>\n )\n}\n\nconst DesktopScrollSpyNav = ({ tabs, onSpyNavItemClick }: ScrollSpyNavProps) => {\n const [activeTab, setActiveTab] = useState(tabs?.[0])\n\n const onTabClick = useCallback((tab: ScrollSpyNavItem) => {\n setActiveTab(tab)\n onSpyNavItemClick?.(tab)\n }, [])\n\n return (\n <div className=\"flex gap-8\">\n {tabs?.map(tab => (\n <button className=\"text-sm relative py-[10px] font-bold\" key={tab.id} onClick={() => onTabClick(tab)}>\n {tab.label}\n <div\n className={cn('absolute bottom-0 left-0 w-0 transition-all duration-300 ease-in-out h-[2px] bg-brand-0', {\n 'w-full': activeTab?.id === tab.id,\n })}\n />\n </button>\n ))}\n </div>\n )\n}\n\nexport { MobileScrollSpyNav, DesktopScrollSpyNav }\n"],
5
- "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,yBAAAE,EAAA,uBAAAC,IAAA,eAAAC,EAAAJ,GA0BM,IAAAK,EAAA,6BA1BNC,EAA+B,6CAC/BC,EAAmB,2CACnBC,EAA8C,iBAC9CC,EAAqB,gBAErBC,EAAqC,0CAErC,MAAMP,EAAqB,CAAC,CAAE,KAAAQ,EAAM,kBAAAC,EAAmB,kBAAAC,CAAkB,IAAyB,CAChG,KAAM,CAACC,EAAcC,CAAe,KAAI,YAAS,EAAK,EAChD,CAACC,EAAWC,CAAY,KAAI,YAASN,IAAO,CAAC,CAAC,EAC9CO,KAAc,UAAuB,IAAI,EACzC,CAAE,aAAAC,CAAa,KAAI,wBAAqB,EAExCC,KAAa,eAAaC,GAA0B,CACxDJ,EAAaI,CAAG,EAChBR,IAAoBQ,CAAG,EACvBN,EAAg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ollSpyNav", "MobileScrollSpyNav", "__toCommonJS", "import_jsx_runtime", "import_AiuiProvider", "import_helpers", "import_react", "import_gsap", "import_BizProductProvider", "tabs", "purchaseBarHeight", "onSpyNavItemClick", "dropdownOpen", "setDropdownOpen", "activeTab", "setActiveTab", "dropdownRef", "renderRating", "onTabClick", "tab", "onDropdownOpen"]
7
- }
@@ -1,10 +0,0 @@
1
- export interface ScrollSpyNavItem {
2
- label: string;
3
- href: string;
4
- id: string;
5
- }
6
- export interface ScrollSpyNavProps {
7
- tabs: ScrollSpyNavItem[];
8
- purchaseBarHeight?: number;
9
- onSpyNavItemClick?: (tab: ScrollSpyNavItem) => void;
10
- }
@@ -1,2 +0,0 @@
1
- "use strict";var l=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var S=Object.prototype.hasOwnProperty;var c=(e,r,i,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of p(r))!S.call(e,t)&&t!==i&&l(e,t,{get:()=>r[t],enumerable:!(a=o(r,t))||a.enumerable});return e};var n=e=>c(l({},"__esModule",{value:!0}),e);var s={};module.exports=n(s);
2
- //# sourceMappingURL=types.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../src/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/types.ts"],
4
- "sourcesContent": ["export interface ScrollSpyNavItem {\n label: string\n href: string\n id: string\n}\n\nexport interface ScrollSpyNavProps {\n tabs: ScrollSpyNavItem[]\n purchaseBarHeight?: number\n onSpyNavItemClick?: (tab: ScrollSpyNavItem) => void\n}\n"],
5
- "mappings": "+WAAA,IAAAA,EAAA,kBAAAC,EAAAD",
6
- "names": ["types_exports", "__toCommonJS"]
7
- }
@@ -1,3 +0,0 @@
1
- import type { PurchaseBarProps } from './types.js';
2
- declare const PurchaseBar: ({ onSpyNavItemClick }: PurchaseBarProps) => import("react/jsx-runtime").JSX.Element;
3
- export default PurchaseBar;
@@ -1,2 +0,0 @@
1
- "use strict";var c=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var x=Object.prototype.hasOwnProperty;var v=(a,e)=>{for(var o in e)c(a,o,{get:e[o],enumerable:!0})},g=(a,e,o,l)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of y(e))!x.call(a,r)&&r!==o&&c(a,r,{get:()=>e[r],enumerable:!(l=h(e,r))||l.enumerable});return a};var N=a=>g(c({},"__esModule",{value:!0}),a);var B={};v(B,{default:()=>S});module.exports=N(B);var t=require("react/jsx-runtime"),s=require("react"),p=require("../../../../components"),z=require("gsap"),M=require("../../../AiuiProvider/index.js"),A=require("../../../../helpers/index.js"),u=require("../index.js"),d=require("../../BizProductProvider.js"),i=require("./ScrollSpyNav/index.js");const P=({onSpyNavItemClick:a})=>{const[e,o]=(0,s.useState)(0),{isMobile:l,product:r,renderRating:f,isDesktop:m}=(0,d.useBizProductContext)(),n=(0,s.useMemo)(()=>r?.payload?.components?.find(b=>b.componentKey==="PurchaseBar")?.data||[],[r?.payload]);return(0,s.useEffect)(()=>{o(document.querySelector("#purchase-bar")?.clientHeight||0)},[]),(0,t.jsx)("div",{id:"purchase-bar",className:"bg-white sticky top-0 left-0 w-full z-[52] border-b border-[#E4E5E6]",children:(0,t.jsx)(p.Container,{className:"py-3 desktop:pt-6 desktop:pb-0",children:(0,t.jsxs)("div",{className:"flex gap-[10px] items-center tablet:justify-between tablet:gap-0 tablet:w-full",children:[(0,t.jsxs)("div",{className:"flex-1 tablet:flex-none",children:[(0,t.jsx)(p.Heading,{size:2,className:"line-clamp-2 tablet:max-w-[406px] desktop:max-w-[570px] lg-desktop:max-w-[683px]",html:r?.title}),m&&(0,t.jsxs)("div",{className:"flex justify-between gap-8 items-center mt-3",children:[(0,t.jsx)(i.DesktopScrollSpyNav,{tabs:n,onSpyNavItemClick:a}),f]})]}),m?(0,t.jsx)(u.ProductActions,{}):(0,t.jsx)(i.MobileScrollSpyNav,{tabs:n,purchaseBarHeight:e,onSpyNavItemClick:a})]})})})};var S=P;
2
- //# sourceMappingURL=index.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../src/biz-components/Listing/components/PurchaseBar/index.tsx"],
4
- "sourcesContent": ["import { useCallback, useEffect, useRef, useState, useMemo } from 'react'\nimport { Text, Heading, Button, Container } from '../../../../components'\nimport type { PurchaseBarProps, ScrollSpyNavProps, ScrollSpyNavItem } from './types.js'\nimport { gsap } from 'gsap'\nimport { useAiuiContext } from '../../../AiuiProvider/index.js'\nimport { cn } from '../../../../helpers/index.js'\nimport { ProductActions } from '../index.js'\nimport { useBizProductContext } from '../../BizProductProvider.js'\nimport { MobileScrollSpyNav, DesktopScrollSpyNav } from './ScrollSpyNav/index.js'\n\nconst PurchaseBar = ({ onSpyNavItemClick }: PurchaseBarProps) => {\n const [purchaseBarHeight, setPurchaseBarHeight] = useState(0)\n const { isMobile, product, renderRating, isDesktop } = useBizProductContext()\n\n const PurchaseBarData = useMemo(() => {\n return product?.payload?.components?.find((item: any) => item.componentKey === 'PurchaseBar')?.data || []\n }, [product?.payload])\n\n useEffect(() => {\n setPurchaseBarHeight(document.querySelector('#purchase-bar')?.clientHeight || 0)\n }, [])\n\n return (\n <div id=\"purchase-bar\" className=\"bg-white sticky top-0 left-0 w-full z-[52] border-b border-[#E4E5E6]\">\n <Container className=\"py-3 desktop:pt-6 desktop:pb-0\">\n <div className=\"flex gap-[10px] items-center tablet:justify-between tablet:gap-0 tablet:w-full\">\n <div className=\"flex-1 tablet:flex-none\">\n <Heading\n size={2}\n className=\"line-clamp-2 tablet:max-w-[406px] desktop:max-w-[570px] lg-desktop:max-w-[683px]\"\n html={product?.title}\n />\n {isDesktop && (\n <div className=\"flex justify-between gap-8 items-center mt-3\">\n <DesktopScrollSpyNav tabs={PurchaseBarData} onSpyNavItemClick={onSpyNavItemClick} />\n {renderRating}\n </div>\n )}\n </div>\n {!isDesktop ? (\n <MobileScrollSpyNav\n tabs={PurchaseBarData}\n purchaseBarHeight={purchaseBarHeight}\n onSpyNavItemClick={onSpyNavItemClick}\n />\n ) : (\n <ProductActions />\n )}\n </div>\n </Container>\n </div>\n )\n}\n\nexport default PurchaseBar\n"],
5
- "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,aAAAE,IAAA,eAAAC,EAAAH,GA2BY,IAAAI,EAAA,6BA3BZC,EAAkE,iBAClEC,EAAiD,kCAEjDC,EAAqB,gBACrBC,EAA+B,0CAC/BC,EAAmB,wCACnBC,EAA+B,uBAC/BC,EAAqC,uCACrCC,EAAwD,mCAExD,MAAMC,EAAc,CAAC,CAAE,kBAAAC,CAAkB,IAAwB,CAC/D,KAAM,CAACC,EAAmBC,CAAoB,KAAI,YAAS,CAAC,EACtD,CAAE,SAAAC,EAAU,QAAAC,EAAS,aAAAC,EAAc,UAAAC,CAAU,KAAI,wBAAqB,EAEtEC,KAAkB,WAAQ,IACvBH,GAAS,SAAS,YAAY,KAAMI,GAAcA,EAAK,eAAiB,aAAa,GAAG,MAAQ,CAAC,EACvG,CAACJ,GAAS,OAAO,CAAC,EAErB,sBAAU,IAAM,CACdF,EAAqB,SAAS,cAAc,eAAe,GAAG,cAAgB,CAAC,CACjF,EAAG,CAAC,CAAC,KAGH,OAAC,OAAI,GAAG,eAAe,UAAU,uEAC/B,mBAAC,aAAU,UAAU,iCACnB,oBAAC,OAAI,UAAU,iFACb,qBAAC,OAAI,UAAU,0BACb,oBAAC,WACC,KAAM,EACN,UAAU,mFACV,KAAME,GAAS,MACjB,EACCE,MACC,QAAC,OAAI,UAAU,+CACb,oBAAC,uBAAoB,KAAMC,EAAiB,kBAAmBP,EAAmB,EACjFK,GACH,GAEJ,EACEC,KAOA,OAAC,mBAAe,KANhB,OAAC,sBACC,KAAMC,EACN,kBAAmBN,EACnB,kBAAmBD,EACrB,GAIJ,EACF,EACF,CAEJ,EAEA,IAAOZ,EAAQW",
6
- "names": ["PurchaseBar_exports", "__export", "PurchaseBar_default", "__toCommonJS", "import_jsx_runtime", "import_react", "import_components", "import_gsap", "import_AiuiProvider", "import_helpers", "import__", "import_BizProductProvider", "import_ScrollSpyNav", "PurchaseBar", "onSpyNavItemClick", "purchaseBarHeight", "setPurchaseBarHeight", "isMobile", "product", "renderRating", "isDesktop", "PurchaseBarData", "item"]
7
- }
@@ -1,12 +0,0 @@
1
- export interface PurchaseBarProps {
2
- onSpyNavItemClick?: (tab: ScrollSpyNavItem) => void;
3
- }
4
- export interface ScrollSpyNavItem {
5
- label: string;
6
- href: string;
7
- id: string;
8
- }
9
- export interface ScrollSpyNavProps extends Pick<PurchaseBarProps, 'onSpyNavItemClick'> {
10
- tabs: ScrollSpyNavItem[];
11
- purchaseBarHeight: number;
12
- }
@@ -1,2 +0,0 @@
1
- "use strict";var c=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var s=(e,r,o,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of i(r))!l.call(e,a)&&a!==o&&c(e,a,{get:()=>r[a],enumerable:!(t=p(r,a))||t.enumerable});return e};var n=e=>s(c({},"__esModule",{value:!0}),e);var S={};module.exports=n(S);
2
- //# sourceMappingURL=types.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../src/biz-components/Listing/components/PurchaseBar/types.ts"],
4
- "sourcesContent": ["export interface PurchaseBarProps {\n onSpyNavItemClick?: (tab: ScrollSpyNavItem) => void\n}\n\nexport interface ScrollSpyNavItem {\n label: string\n href: string\n id: string\n}\n\nexport interface ScrollSpyNavProps extends Pick<PurchaseBarProps, 'onSpyNavItemClick'> {\n tabs: ScrollSpyNavItem[]\n purchaseBarHeight: number\n}\n"],
5
- "mappings": "+WAAA,IAAAA,EAAA,kBAAAC,EAAAD",
6
- "names": ["types_exports", "__toCommonJS"]
7
- }
@@ -1,3 +0,0 @@
1
- export { default as PurchaseBar } from './PurchaseBar/index.js';
2
- export { default as ProductActions } from './PurchaseBar/ProductActions/index.js';
3
- export { default as ProductCard } from './ProductCard/index.js';
@@ -1,2 +0,0 @@
1
- "use strict";var m=Object.create;var e=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var P=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty;var i=(r,a)=>{for(var o in a)e(r,o,{get:a[o],enumerable:!0})},u=(r,a,o,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let t of x(a))!h.call(r,t)&&t!==o&&e(r,t,{get:()=>a[t],enumerable:!(f=p(a,t))||f.enumerable});return r};var d=(r,a,o)=>(o=r!=null?m(P(r)):{},u(a||!r||!r.__esModule?e(o,"default",{value:r,enumerable:!0}):o,r)),n=r=>u(e({},"__esModule",{value:!0}),r);var A={};i(A,{ProductActions:()=>c.default,ProductCard:()=>l.default,PurchaseBar:()=>s.default});module.exports=n(A);var s=d(require("./PurchaseBar/index.js")),c=d(require("./PurchaseBar/ProductActions/index.js")),l=d(require("./ProductCard/index.js"));
2
- //# sourceMappingURL=index.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../src/biz-components/Listing/components/index.ts"],
4
- "sourcesContent": ["export { default as PurchaseBar } from './PurchaseBar/index.js'\nexport { default as ProductActions } from './PurchaseBar/ProductActions/index.js'\nexport { default as ProductCard } from './ProductCard/index.js'"],
5
- "mappings": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,mGAAAE,EAAAF,GAAA,IAAAG,EAAuC,qCACvCC,EAA0C,oDAC1CC,EAAuC",
6
- "names": ["components_exports", "__export", "__toCommonJS", "import_PurchaseBar", "import_ProductActions", "import_ProductCard"]
7
- }
@@ -1,28 +0,0 @@
1
- export declare enum DiscountType {
2
- fixedAmount = "fixed_amount",
3
- percentage = "percentage"
4
- }
5
- export declare enum CouponChannel {
6
- LIGHTNING_DEAL = "LIGHTNING_DEAL",
7
- DEAL = "LIGHTNING_DEAL",
8
- COUPON = "COUPON",
9
- PED = "PED",
10
- WS24 = "WS24",
11
- WSTD = "WSTD",
12
- WSCH = "WSCH"
13
- }
14
- export declare const PRICE_SYMBOL: {
15
- us: string;
16
- uk: string;
17
- ca: string;
18
- eu: string;
19
- pl: string;
20
- fr: string;
21
- de: string;
22
- vn: string;
23
- cl: string;
24
- sg: string;
25
- ae: string;
26
- es: string;
27
- };
28
- export declare const COLOR_LABEL: string[];
@@ -1,2 +0,0 @@
1
- "use strict";var t=Object.defineProperty;var I=Object.getOwnPropertyDescriptor;var O=Object.getOwnPropertyNames;var S=Object.prototype.hasOwnProperty;var f=(e,r)=>{for(var L in r)t(e,L,{get:r[L],enumerable:!0})},x=(e,r,L,N)=>{if(r&&typeof r=="object"||typeof r=="function")for(let E of O(r))!S.call(e,E)&&E!==L&&t(e,E,{get:()=>r[E],enumerable:!(N=I(r,E))||N.enumerable});return e};var G=e=>x(t({},"__esModule",{value:!0}),e);var H={};f(H,{COLOR_LABEL:()=>_,CouponChannel:()=>D,DiscountType:()=>A,PRICE_SYMBOL:()=>W});module.exports=G(H);var A=(L=>(L.fixedAmount="fixed_amount",L.percentage="percentage",L))(A||{}),D=(c=>(c.LIGHTNING_DEAL="LIGHTNING_DEAL",c.DEAL="LIGHTNING_DEAL",c.COUPON="COUPON",c.PED="PED",c.WS24="WS24",c.WSTD="WSTD",c.WSCH="WSCH",c))(D||{});const W={us:"$",uk:"\xA3",ca:"$",eu:"\u20AC",pl:"z\u0142",fr:"\u20AC",de:"\u20AC",vn:"\u20AB",cl:"$",sg:"$",ae:"AED",es:"\u20AC"},_=["color","colour","couleur","cor","colore","farbe","\uC0C9","\u8272","\u30AB\u30E9\u30FC","f\xE4rg","farve"];
2
- //# sourceMappingURL=const.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../src/biz-components/Listing/const.ts"],
4
- "sourcesContent": ["export enum DiscountType {\n fixedAmount = 'fixed_amount',\n percentage = 'percentage',\n}\n\nexport enum CouponChannel {\n LIGHTNING_DEAL = 'LIGHTNING_DEAL',\n DEAL = 'LIGHTNING_DEAL',\n COUPON = 'COUPON',\n PED = 'PED',\n WS24 = 'WS24',\n WSTD = 'WSTD',\n WSCH = 'WSCH',\n}\n\nexport const PRICE_SYMBOL = {\n us: '$',\n uk: '\u00A3',\n ca: '$',\n eu: '\u20AC',\n pl: 'z\u0142',\n fr: '\u20AC',\n de: '\u20AC',\n vn: '\u20AB',\n cl: '$',\n sg: '$',\n ae: 'AED',\n es: '\u20AC',\n}\n\nexport const COLOR_LABEL = [\n 'color',\n 'colour',\n 'couleur',\n 'cor',\n 'colore',\n 'farbe',\n '\uC0C9',\n '\u8272',\n '\u30AB\u30E9\u30FC',\n 'f\u00E4rg',\n 'farve',\n]"],
5
- "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,iBAAAE,EAAA,kBAAAC,EAAA,iBAAAC,EAAA,iBAAAC,IAAA,eAAAC,EAAAN,GAAO,IAAKI,OACVA,EAAA,YAAc,eACdA,EAAA,WAAa,aAFHA,OAAA,IAKAD,OACVA,EAAA,eAAiB,iBACjBA,EAAA,KAAO,iBACPA,EAAA,OAAS,SACTA,EAAA,IAAM,MACNA,EAAA,KAAO,OACPA,EAAA,KAAO,OACPA,EAAA,KAAO,OAPGA,OAAA,IAUL,MAAME,EAAe,CAC1B,GAAI,IACJ,GAAI,OACJ,GAAI,IACJ,GAAI,SACJ,GAAI,UACJ,GAAI,SACJ,GAAI,SACJ,GAAI,SACJ,GAAI,IACJ,GAAI,IACJ,GAAI,MACJ,GAAI,QACN,EAEaH,EAAc,CACzB,QACA,SACA,UACA,MACA,SACA,QACA,SACA,SACA,qBACA,UACA,OACF",
6
- "names": ["const_exports", "__export", "COLOR_LABEL", "CouponChannel", "DiscountType", "PRICE_SYMBOL", "__toCommonJS"]
7
- }
@@ -1,3 +0,0 @@
1
- import type { Options, Product } from '../types/product';
2
- import { type Dispatch, type SetStateAction } from 'react';
3
- export declare function useSelectedOptions(product: Product, sku?: string): [Options, Dispatch<SetStateAction<Options>>];
@@ -1,2 +0,0 @@
1
- "use strict";var e=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var S=Object.prototype.hasOwnProperty;var P=(o,t)=>{for(var n in t)e(o,n,{get:t[n],enumerable:!0})},h=(o,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of y(t))!S.call(o,i)&&i!==n&&e(o,i,{get:()=>t[i],enumerable:!(r=v(t,i))||r.enumerable});return o};var l=o=>h(e({},"__esModule",{value:!0}),o);var V={};P(V,{useSelectedOptions:()=>D});module.exports=l(V);var s=require("../utils/helper"),u=require("query-string"),a=require("react"),d=require("../utils");function D(o,t){const[n,r]=(0,a.useState)({});return(0,a.useEffect)(()=>{const i=(0,u.parse)(window.location.search);let p=o.variants[0];if(i.variant){const O=(0,s.btoaID)(i.variant),f=o.variants.find(m=>t?m.sku===t:m.id===O);f&&(p=f)}const c=(0,d.optionsConstructor)(p.options);(0,s.isObjEmpty)(c)||r(c)},[o,t]),[n,r]}
2
- //# sourceMappingURL=use-options.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../src/biz-components/Listing/hooks/use-options.ts"],
4
- "sourcesContent": ["import type { Options, Product, ProductVariant } from '../types/product'\nimport { btoaID, isObjEmpty } from '../utils/helper'\nimport { parse } from 'query-string'\nimport { type Dispatch, type SetStateAction, useEffect, useState } from 'react'\n\nimport { optionsConstructor } from '../utils'\n\nexport function useSelectedOptions(product: Product, sku?: string) {\n /**\n * \u6839\u636E query string \u521D\u59CB\u5316 selectedOptions\n * \u5982\u679C\u4F20\u5165 sku \u5219\u6839\u636E sku \u83B7\u53D6 variant\uFF0C\u5426\u5219\u9ED8\u8BA4\u6839\u636E query \u7684 variant \u83B7\u53D6\n */\n const [options, setOptions] = useState<Options>({})\n\n useEffect(() => {\n const query = parse(window.location.search) as { variant?: string }\n // \u9875\u9762\u521D\u59CB\u5316\u8BFB\u53D6 query \u4E2D\u7684 variant, \u5982\u679C\u6CA1\u6709\u627E\u5230\u5BF9\u5E94 query \u4E2D id \u7684 variant\uFF0C\u9ED8\u8BA4\u9009\u4E2D\u7B2C\u4E00\u4E2A\n let variant = product.variants[0]\n if (query.variant) {\n const variantId = btoaID(query.variant)\n\n const foundVariant = product.variants.find((variant: ProductVariant) =>\n sku ? variant.sku === sku : variant.id === variantId,\n )\n if (foundVariant) {\n variant = foundVariant\n }\n }\n\n // \u66F4\u65B0\u5F53\u524D variant \u5BF9\u5E94\u7684 options\n const options = optionsConstructor(variant.options)\n\n if (!isObjEmpty(options)) {\n setOptions(options)\n }\n }, [product, sku])\n\n return [options, setOptions] as [Options, Dispatch<SetStateAction<Options>>]\n}\n"],
5
- "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,wBAAAE,IAAA,eAAAC,EAAAH,GACA,IAAAI,EAAmC,2BACnCC,EAAsB,wBACtBC,EAAwE,iBAExEC,EAAmC,oBAE5B,SAASL,EAAmBM,EAAkBC,EAAc,CAKjE,KAAM,CAACC,EAASC,CAAU,KAAI,YAAkB,CAAC,CAAC,EAElD,sBAAU,IAAM,CACd,MAAMC,KAAQ,SAAM,OAAO,SAAS,MAAM,EAE1C,IAAIC,EAAUL,EAAQ,SAAS,CAAC,EAChC,GAAII,EAAM,QAAS,CACjB,MAAME,KAAY,UAAOF,EAAM,OAAO,EAEhCG,EAAeP,EAAQ,SAAS,KAAMK,GAC1CJ,EAAMI,EAAQ,MAAQJ,EAAMI,EAAQ,KAAOC,CAC7C,EACIC,IACFF,EAAUE,EAEd,CAGA,MAAML,KAAU,sBAAmBG,EAAQ,OAAO,KAE7C,cAAWH,CAAO,GACrBC,EAAWD,CAAO,CAEtB,EAAG,CAACF,EAASC,CAAG,CAAC,EAEV,CAACC,EAASC,CAAU,CAC7B",
6
- "names": ["use_options_exports", "__export", "useSelectedOptions", "__toCommonJS", "import_helper", "import_query_string", "import_react", "import_utils", "product", "sku", "options", "setOptions", "query", "variant", "variantId", "foundVariant"]
7
- }
@@ -1,14 +0,0 @@
1
- import { MediaContentType } from '../types/graphql';
2
- import type { Replace } from '../types/type-helper';
3
- import type { Product, ProductMedia, ProductVariant } from '../types/product';
4
- export type ImageMedia = Replace<ProductMedia, 'mediaContentType', MediaContentType.Image>;
5
- export type VideoMedia = Replace<ProductMedia, 'mediaContentType', MediaContentType.Video>;
6
- export declare function useVariantMedia({ product, variant }: {
7
- product: Product;
8
- variant: ProductVariant;
9
- }): {
10
- productList: ImageMedia[];
11
- sceneList: ImageMedia[];
12
- keyFeaturesList: ImageMedia[];
13
- videoList: VideoMedia[];
14
- };
@@ -1,2 +0,0 @@
1
- "use strict";var c=Object.defineProperty;var T=Object.getOwnPropertyDescriptor;var P=Object.getOwnPropertyNames;var h=Object.prototype.hasOwnProperty;var v=(e,t)=>{for(var i in t)c(e,i,{get:t[i],enumerable:!0})},F=(e,t,i,d)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of P(t))!h.call(e,a)&&a!==i&&c(e,a,{get:()=>t[a],enumerable:!(d=T(t,a))||d.enumerable});return e};var k=e=>F(c({},"__esModule",{value:!0}),e);var R={};v(R,{useVariantMedia:()=>x});module.exports=k(R);var n=require("../types/graphql"),p=require("../utils/helper"),s=require("react");function x({product:e,variant:t}){const i=e?.media?.filter(o=>o.mediaContentType===n.MediaContentType.Image),d=[i?.[0]],a=i?.slice(1,d.length),M=i?.slice(2,d.length),g=e?.media?.filter(o=>o.mediaContentType===n.MediaContentType.Video),[y,L]=(0,s.useState)(d||[]),[u,I]=(0,s.useState)(a||[]),[l,V]=(0,s.useState)(g||[]),[f,C]=(0,s.useState)(M||[]);return(0,s.useEffect)(()=>{const o=(0,p.getVariantMediaList)({product:e,variant:t}),m=o?.filter(r=>r.mediaContentType===n.MediaContentType.Image);L(m?.[0]?[m[0]]:[]),I(m?.slice(1,m?.length)||[]),C([]),V(o?.filter(r=>r.mediaContentType===n.MediaContentType.Video)||[])},[e,t]),{productList:y,sceneList:u,videoList:l,keyFeaturesList:f}}
2
- //# sourceMappingURL=use-variant-media.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../src/biz-components/Listing/hooks/use-variant-media.ts"],
4
- "sourcesContent": ["import { MediaContentType } from '../types/graphql'\nimport { getVariantMediaList } from '../utils/helper'\nimport type { Replace } from '../types/type-helper'\nimport type { Product, ProductMedia, ProductVariant } from '../types/product'\nimport { useEffect, useState } from 'react'\n\nexport type ImageMedia = Replace<ProductMedia, 'mediaContentType', MediaContentType.Image>\nexport type VideoMedia = Replace<ProductMedia, 'mediaContentType', MediaContentType.Video>\n\nexport function useVariantMedia({ product, variant }: { product: Product; variant: ProductVariant }): {\n productList: ImageMedia[]\n sceneList: ImageMedia[]\n keyFeaturesList: ImageMedia[]\n videoList: VideoMedia[]\n} {\n const mediaList = product?.media?.filter((media) => media.mediaContentType === MediaContentType.Image)\n const productImageList = [mediaList?.[0]] as ImageMedia[]\n const scenes = mediaList?.slice(1, productImageList.length) as ImageMedia[]\n const keyFeatures = mediaList?.slice(2, productImageList.length) as ImageMedia[]\n const videos = product?.media?.filter((media) => media.mediaContentType === MediaContentType.Video) as VideoMedia[]\n const [imageList, setImageList] = useState<ImageMedia[]>(productImageList || [])\n const [sceneList, setSeneList] = useState<ImageMedia[]>(scenes || [])\n const [videoList, setVideoList] = useState<VideoMedia[]>(videos || [])\n const [keyFeaturesList, setKeyFeaturesList] = useState<ImageMedia[]>(keyFeatures || [])\n useEffect(() => {\n const mediaList = getVariantMediaList({ product, variant })\n\n const imageList = mediaList?.filter((media) => media.mediaContentType === MediaContentType.Image) as ImageMedia[]\n setImageList(imageList?.[0] ? [imageList[0]] : [])\n setSeneList(imageList?.slice(1, imageList?.length) || [])\n setKeyFeaturesList([])\n setVideoList(\n (mediaList?.filter((media) => media.mediaContentType === MediaContentType.Video) as VideoMedia[]) || [],\n )\n }, [product, variant])\n\n return { productList: imageList, sceneList, vide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E,CAAgB,CACpF",
6
- "names": ["use_variant_media_exports", "__export", "useVariantMedia", "__toCommonJS", "import_graphql", "import_helper", "import_react", "product", "variant", "mediaList", "media", "productImageList", "scenes", "keyFeatures", "videos", "imageList", "setImageList", "sceneList", "setSeneList", "videoList", "setVideoList", "keyFeaturesList", "setKeyFeaturesList"]
7
- }
@@ -1,5 +0,0 @@
1
- import type { Options, Product, ProductVariant } from '../types/product';
2
- export declare function useVariant({ product, selectedOptions, }: {
3
- product: Product;
4
- selectedOptions: Options;
5
- }): ProductVariant;
@@ -1,2 +0,0 @@
1
- "use strict";var s=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var f=(t,r)=>{for(var a in r)s(t,a,{get:r[a],enumerable:!0})},m=(t,r,a,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of p(r))!u.call(t,i)&&i!==a&&s(t,i,{get:()=>r[i],enumerable:!(o=c(r,i))||o.enumerable});return t};var d=t=>m(s({},"__esModule",{value:!0}),t);var v={};f(v,{useVariant:()=>V});module.exports=d(v);var e=require("react"),n=require("../utils/index");function V({product:t,selectedOptions:r}){const[a,o]=(0,e.useState)((0,n.getFirstAvailableVariant)(t));return(0,e.useEffect)(()=>{const i=(0,n.getVariantFromSelectedOptions)({product:t,selectedOptions:r});i&&i.id!==a.id&&o(i)},[r,t.variants,a,t]),a}
2
- //# sourceMappingURL=use-variant.js.map