@anker-in/headless-ui 1.1.9-temp.120303 → 1.1.9-tmp-01

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 (1326) hide show
  1. package/dist/cjs/biz-components/AccordionCards/index.d.ts +2 -2
  2. package/dist/cjs/biz-components/AiuiProvider/index.d.ts +0 -5
  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/AplusDesc/index.d.ts +2 -3
  6. package/dist/cjs/biz-components/AplusDesc/index.js +1 -1
  7. package/dist/cjs/biz-components/AplusDesc/index.js.map +3 -3
  8. package/dist/cjs/biz-components/BrandEquity/BrandEquity.d.ts +2 -3
  9. package/dist/cjs/biz-components/BrandEquity/BrandEquity.js +1 -1
  10. package/dist/cjs/biz-components/BrandEquity/BrandEquity.js.map +3 -3
  11. package/dist/cjs/biz-components/BrandEquity/types.d.ts +1 -0
  12. package/dist/cjs/biz-components/BrandEquity/types.js +1 -1
  13. package/dist/cjs/biz-components/BrandEquity/types.js.map +1 -1
  14. package/dist/cjs/biz-components/Category/SwiperCategory.js +1 -1
  15. package/dist/cjs/biz-components/Category/SwiperCategory.js.map +1 -1
  16. package/dist/cjs/biz-components/Category/index.d.ts +2 -2
  17. package/dist/cjs/biz-components/Category/index.js +1 -1
  18. package/dist/cjs/biz-components/Category/index.js.map +3 -3
  19. package/dist/cjs/biz-components/CreativeModule/index.d.ts +2 -3
  20. package/dist/cjs/biz-components/DownLoad/index.d.ts +2 -3
  21. package/dist/cjs/biz-components/DownLoad/index.js +1 -1
  22. package/dist/cjs/biz-components/DownLoad/index.js.map +1 -1
  23. package/dist/cjs/biz-components/Evaluate/index.d.ts +2 -2
  24. package/dist/cjs/biz-components/Faq/Faq.d.ts +2 -2
  25. package/dist/cjs/biz-components/Faq/Faq.js.map +2 -2
  26. package/dist/cjs/biz-components/FeatureCards/FeatureCards.d.ts +2 -2
  27. package/dist/cjs/biz-components/FeatureCards/FeatureCards.js +1 -1
  28. package/dist/cjs/biz-components/FeatureCards/FeatureCards.js.map +2 -2
  29. package/dist/cjs/biz-components/FeatureShowcase/FeatureShowcase.d.ts +2 -2
  30. package/dist/cjs/biz-components/Features/index.d.ts +2 -3
  31. package/dist/cjs/biz-components/Features/index.js +1 -1
  32. package/dist/cjs/biz-components/Features/index.js.map +3 -3
  33. package/dist/cjs/biz-components/FootCharger/index.d.ts +2 -3
  34. package/dist/cjs/biz-components/FooterNavigation/index.d.ts +2 -3
  35. package/dist/cjs/biz-components/GiftBox/index.d.ts +2 -3
  36. package/dist/cjs/biz-components/GiftBox/index.js +1 -1
  37. package/dist/cjs/biz-components/GiftBox/index.js.map +3 -3
  38. package/dist/cjs/biz-components/Graphic/index.d.ts +2 -2
  39. package/dist/cjs/biz-components/GraphicAttractionBlock/index.d.ts +2 -2
  40. package/dist/cjs/biz-components/GraphicMore/index.d.ts +2 -3
  41. package/dist/cjs/biz-components/GraphicMore/index.js +1 -1
  42. package/dist/cjs/biz-components/GraphicMore/index.js.map +2 -2
  43. package/dist/cjs/biz-components/GraphicOverlay/GraphicOverlay.d.ts +2 -2
  44. package/dist/cjs/biz-components/HeaderNavigation/index.d.ts +2 -2
  45. package/dist/cjs/biz-components/HeroBanner/HeroBanner.d.ts +2 -2
  46. package/dist/cjs/biz-components/ImageTextFeature/ImageTextFeature.d.ts +2 -2
  47. package/dist/cjs/biz-components/ImageWithText/ImageWithText.d.ts +2 -2
  48. package/dist/cjs/biz-components/ImageWithText/ImageWithText.js +1 -1
  49. package/dist/cjs/biz-components/ImageWithText/ImageWithText.js.map +3 -3
  50. package/dist/cjs/biz-components/ImageWithText/types.d.ts +0 -2
  51. package/dist/cjs/biz-components/ImageWithText/types.js.map +1 -1
  52. package/dist/cjs/biz-components/Ksp/index.d.ts +2 -3
  53. package/dist/cjs/biz-components/Listing/BizProductProvider.d.ts +2 -11
  54. package/dist/cjs/biz-components/Listing/BizProductProvider.js +1 -1
  55. package/dist/cjs/biz-components/Listing/BizProductProvider.js.map +3 -3
  56. package/dist/cjs/biz-components/Listing/components/PaidShipping/ShippingPolicyModal.js +1 -1
  57. package/dist/cjs/biz-components/Listing/components/PaidShipping/ShippingPolicyModal.js.map +3 -3
  58. package/dist/cjs/biz-components/Listing/components/PaidShipping/index.d.ts +6 -19
  59. package/dist/cjs/biz-components/Listing/components/PaidShipping/index.js +1 -1
  60. package/dist/cjs/biz-components/Listing/components/PaidShipping/index.js.map +2 -2
  61. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.d.ts +2 -2
  62. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.js +6 -6
  63. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.js.map +3 -3
  64. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductBenefitsTabs/index.d.ts +1 -2
  65. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductBenefitsTabs/index.js +1 -1
  66. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductBenefitsTabs/index.js.map +3 -3
  67. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.d.ts +2 -3
  68. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.js +1 -1
  69. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.js.map +2 -2
  70. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.d.ts +2 -3
  71. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.js +1 -1
  72. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.js.map +2 -2
  73. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.d.ts +2 -3
  74. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.js +1 -1
  75. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.js.map +2 -2
  76. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.d.ts +2 -3
  77. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.js +2 -2
  78. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.js.map +2 -2
  79. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductOptions/index.d.ts +2 -3
  80. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductOptions/index.js +1 -1
  81. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductOptions/index.js.map +3 -3
  82. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/index.js +1 -1
  83. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/index.js.map +2 -2
  84. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/CompareModal.js +1 -1
  85. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/CompareModal.js.map +3 -3
  86. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/SpecsModal.js +1 -1
  87. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/SpecsModal.js.map +2 -2
  88. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/index.d.ts +2 -3
  89. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/index.js +1 -1
  90. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/index.js.map +3 -3
  91. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGridBox.js +1 -1
  92. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGridBox.js.map +2 -2
  93. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductSummary/index.d.ts +2 -3
  94. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductSummary/index.js +1 -1
  95. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductSummary/index.js.map +3 -3
  96. package/dist/cjs/biz-components/Listing/components/ProductCard/index.js +1 -1
  97. package/dist/cjs/biz-components/Listing/components/ProductCard/index.js.map +2 -2
  98. package/dist/cjs/biz-components/Listing/components/PurchaseBar/ProductActions/index.js +1 -1
  99. package/dist/cjs/biz-components/Listing/components/PurchaseBar/ProductActions/index.js.map +2 -2
  100. package/dist/cjs/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/index.js +1 -1
  101. package/dist/cjs/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/index.js.map +3 -3
  102. package/dist/cjs/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/types.d.ts +0 -1
  103. package/dist/cjs/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/useScrollSpy.d.ts +2 -0
  104. package/dist/cjs/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/useScrollSpy.js +2 -0
  105. package/dist/cjs/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/useScrollSpy.js.map +7 -0
  106. package/dist/cjs/biz-components/Listing/components/PurchaseBar/index.d.ts +2 -3
  107. package/dist/cjs/biz-components/Listing/components/PurchaseBar/index.js +1 -1
  108. package/dist/cjs/biz-components/Listing/components/PurchaseBar/index.js.map +2 -2
  109. package/dist/cjs/biz-components/Listing/hooks/useBenefits.js +1 -1
  110. package/dist/cjs/biz-components/Listing/hooks/useBenefits.js.map +3 -3
  111. package/dist/cjs/biz-components/Listing/index.d.ts +3 -0
  112. package/dist/cjs/biz-components/Listing/index.js +1 -1
  113. package/dist/cjs/biz-components/Listing/index.js.map +4 -4
  114. package/dist/cjs/biz-components/Marquee/Marquee.d.ts +2 -2
  115. package/dist/cjs/biz-components/MarqueeReview/index.d.ts +2 -3
  116. package/dist/cjs/biz-components/MediaPlayerBase/index.backup.d.ts +2 -3
  117. package/dist/cjs/biz-components/MediaPlayerBase/index.d.ts +2 -3
  118. package/dist/cjs/biz-components/MediaPlayerBase/index.js +1 -1
  119. package/dist/cjs/biz-components/MediaPlayerBase/index.js.map +3 -3
  120. package/dist/cjs/biz-components/MediaPlayerMulti/index.d.ts +2 -3
  121. package/dist/cjs/biz-components/MediaPlayerSticky/index.d.ts +2 -2
  122. package/dist/cjs/biz-components/MediaPlayerSticky/index.js +1 -1
  123. package/dist/cjs/biz-components/MediaPlayerSticky/index.js.map +2 -2
  124. package/dist/cjs/biz-components/MediaSceneSwitcher/MediaSceneSwitcher.d.ts +2 -3
  125. package/dist/cjs/biz-components/MediaSceneSwitcher/MediaSceneSwitcher.js +4 -4
  126. package/dist/cjs/biz-components/MediaSceneSwitcher/MediaSceneSwitcher.js.map +3 -3
  127. package/dist/cjs/biz-components/MediaSceneSwitcher/types.d.ts +2 -0
  128. package/dist/cjs/biz-components/MediaSceneSwitcher/types.js +1 -1
  129. package/dist/cjs/biz-components/MediaSceneSwitcher/types.js.map +1 -1
  130. package/dist/cjs/biz-components/MemberEquity/index.d.ts +2 -2
  131. package/dist/cjs/biz-components/MultiLayoutGraphicBlock/MultiLayoutGraphicBlock.d.ts +2 -2
  132. package/dist/cjs/biz-components/NavigationSearch/index.d.ts +0 -1
  133. package/dist/cjs/biz-components/ProductCompare/index.d.ts +2 -3
  134. package/dist/cjs/biz-components/ProductCompare/index.js +1 -1
  135. package/dist/cjs/biz-components/ProductCompare/index.js.map +2 -2
  136. package/dist/cjs/biz-components/ProductHero/ProductHero.d.ts +2 -2
  137. package/dist/cjs/biz-components/ProductNav/ProductNav.d.ts +2 -3
  138. package/dist/cjs/biz-components/ProductNav/ProductNav.js +1 -1
  139. package/dist/cjs/biz-components/ProductNav/ProductNav.js.map +3 -3
  140. package/dist/cjs/biz-components/SelectStore/index.d.ts +2 -3
  141. package/dist/cjs/biz-components/SelectStore/index.js +1 -1
  142. package/dist/cjs/biz-components/SelectStore/index.js.map +3 -3
  143. package/dist/cjs/biz-components/ShelfDisplay/index.d.ts +2 -2
  144. package/dist/cjs/biz-components/ShelfDisplay/index.js +1 -1
  145. package/dist/cjs/biz-components/ShelfDisplay/index.js.map +3 -3
  146. package/dist/cjs/biz-components/ShelfDisplay/shelfDisplayItem.d.ts +0 -4
  147. package/dist/cjs/biz-components/ShelfDisplay/shelfDisplayItem.js +4 -4
  148. package/dist/cjs/biz-components/ShelfDisplay/shelfDisplayItem.js.map +3 -3
  149. package/dist/cjs/biz-components/Slogan/index.d.ts +2 -2
  150. package/dist/cjs/biz-components/Spacer/index.d.ts +2 -2
  151. package/dist/cjs/biz-components/Specs/index.d.ts +2 -2
  152. package/dist/cjs/biz-components/Specs/index.js +1 -1
  153. package/dist/cjs/biz-components/Specs/index.js.map +2 -2
  154. package/dist/cjs/biz-components/SpecsComparison/SpecsComparison.d.ts +2 -2
  155. package/dist/cjs/biz-components/TabWithImage/TabWithImage.d.ts +2 -2
  156. package/dist/cjs/biz-components/Tabs/Tabs.d.ts +2 -2
  157. package/dist/cjs/biz-components/Tabs/Tabs.js +1 -1
  158. package/dist/cjs/biz-components/Tabs/Tabs.js.map +1 -1
  159. package/dist/cjs/biz-components/Tabs/types.d.ts +0 -11
  160. package/dist/cjs/biz-components/Tabs/types.js +1 -1
  161. package/dist/cjs/biz-components/Tabs/types.js.map +1 -1
  162. package/dist/cjs/biz-components/TabsGroup/index.d.ts +2 -2
  163. package/dist/cjs/biz-components/TabsWithMedia/TabsWithMedia.d.ts +2 -2
  164. package/dist/cjs/biz-components/ThreeDCarousel/ThreeDCarousel.d.ts +2 -2
  165. package/dist/cjs/biz-components/ThreeDCarousel/ThreeDCarousel.js +1 -1
  166. package/dist/cjs/biz-components/ThreeDCarousel/ThreeDCarousel.js.map +2 -2
  167. package/dist/cjs/biz-components/Title/index.d.ts +2 -2
  168. package/dist/cjs/biz-components/Title/index.js +1 -1
  169. package/dist/cjs/biz-components/Title/index.js.map +3 -3
  170. package/dist/cjs/biz-components/Title/types.d.ts +0 -1
  171. package/dist/cjs/biz-components/Title/types.js +1 -1
  172. package/dist/cjs/biz-components/Title/types.js.map +1 -1
  173. package/dist/cjs/biz-components/VideoFeature/VideoFeature.d.ts +2 -2
  174. package/dist/cjs/biz-components/WhyChoose/WhyChoose.d.ts +2 -2
  175. package/dist/cjs/biz-components/index.d.ts +1 -0
  176. package/dist/cjs/biz-components/index.js +1 -1
  177. package/dist/cjs/biz-components/index.js.map +3 -3
  178. package/dist/cjs/components/alert.d.ts +2 -2
  179. package/dist/cjs/components/avatar.d.ts +8 -8
  180. package/dist/cjs/components/avatar.js +1 -1
  181. package/dist/cjs/components/avatar.js.map +2 -2
  182. package/dist/cjs/components/brand-strip.d.ts +26 -0
  183. package/dist/cjs/components/brand-strip.js +2 -0
  184. package/dist/cjs/components/brand-strip.js.map +7 -0
  185. package/dist/cjs/components/button.js.map +2 -2
  186. package/dist/cjs/components/checkbox.js.map +2 -2
  187. package/dist/cjs/components/container.d.ts +7 -7
  188. package/dist/cjs/components/container.js +1 -1
  189. package/dist/cjs/components/container.js.map +2 -2
  190. package/dist/cjs/components/dialog.d.ts +1 -1
  191. package/dist/cjs/components/drop-down.d.ts +3 -3
  192. package/dist/cjs/{src/components/gird.d.ts → components/grid.d.ts} +5 -0
  193. package/dist/cjs/components/grid.js +2 -0
  194. package/dist/cjs/components/grid.js.map +7 -0
  195. package/dist/cjs/components/heading.d.ts +0 -1
  196. package/dist/cjs/components/heading.js +1 -1
  197. package/dist/cjs/components/heading.js.map +3 -3
  198. package/dist/cjs/components/input-number.d.ts +15 -15
  199. package/dist/cjs/components/link.d.ts +6 -6
  200. package/dist/cjs/components/radio.js.map +2 -2
  201. package/dist/cjs/components/tabs.d.ts +2 -2
  202. package/dist/cjs/components/tabs.js +1 -1
  203. package/dist/cjs/components/tabs.js.map +2 -2
  204. package/dist/cjs/helpers/ScrollLoadVideo.js +1 -1
  205. package/dist/cjs/helpers/ScrollLoadVideo.js.map +2 -2
  206. package/dist/cjs/shared/Styles.d.ts +4 -4
  207. package/dist/cjs/shared/Styles.js +1 -1
  208. package/dist/cjs/shared/Styles.js.map +3 -3
  209. package/dist/cjs/stories/InlineVideo.stories.d.ts +37 -0
  210. package/dist/cjs/stories/MarqueeReview.stories.d.ts +1 -2
  211. package/dist/cjs/stories/MarqueeReview.stories.js +2 -2
  212. package/dist/cjs/stories/MarqueeReview.stories.js.map +2 -2
  213. package/dist/cjs/stories/MediaSceneSwitcher.stories.d.ts +47 -0
  214. package/dist/cjs/stories/MediaSceneSwitcher.stories.js +1 -1
  215. package/dist/cjs/stories/MediaSceneSwitcher.stories.js.map +2 -2
  216. package/dist/cjs/stories/ProductNav.stories.d.ts +55 -0
  217. package/dist/cjs/stories/ThreeDCarousel.stories.d.ts +27 -0
  218. package/dist/cjs/stories/ThreeDCarousel.stories.js +3 -3
  219. package/dist/cjs/stories/ThreeDCarousel.stories.js.map +2 -2
  220. package/dist/cjs/stories/brandStrip.stories.d.ts +12 -0
  221. package/dist/cjs/stories/brandStrip.stories.js +2 -0
  222. package/dist/cjs/stories/brandStrip.stories.js.map +7 -0
  223. package/dist/cjs/stories/featureCards.stories.d.ts +2 -0
  224. package/dist/cjs/stories/featureShowcase.stories.d.ts +1 -0
  225. package/dist/cjs/stories/graphic.stories.d.ts +1 -1
  226. package/dist/cjs/stories/imageTextFeature.stories.d.ts +1 -0
  227. package/dist/cjs/stories/imageWithText.stories.d.ts +24 -0
  228. package/dist/cjs/stories/imageWithText.stories.js +2 -2
  229. package/dist/cjs/stories/imageWithText.stories.js.map +2 -2
  230. package/dist/cjs/stories/ksp.stories.js +2 -2
  231. package/dist/cjs/stories/ksp.stories.js.map +2 -2
  232. package/dist/cjs/stories/productCompare.stories.d.ts +18 -13
  233. package/dist/cjs/stories/productCompare.stories.js +2 -2
  234. package/dist/cjs/stories/productCompare.stories.js.map +2 -2
  235. package/dist/cjs/stories/productHero.stories.d.ts +1 -0
  236. package/dist/cjs/stories/shelfDisplay.stories.js +1 -3782
  237. package/dist/cjs/stories/shelfDisplay.stories.js.map +3 -3
  238. package/dist/cjs/stories/specsComparison.stories.d.ts +1 -0
  239. package/dist/cjs/stories/tabWithImage.stories.d.ts +1 -0
  240. package/dist/cjs/stories/tabs.stories.d.ts +2 -2
  241. package/dist/cjs/stories/tabsWithMedia.stories.d.ts +1 -0
  242. package/dist/cjs/stories/videoFeature.stories.d.ts +1 -0
  243. package/dist/cjs/tsconfig.tsbuildinfo +1 -1
  244. package/dist/cjs/types/props.d.ts +5 -9
  245. package/dist/cjs/types/props.js +1 -1
  246. package/dist/cjs/types/props.js.map +1 -1
  247. package/dist/esm/biz-components/AccordionCards/index.d.ts +2 -2
  248. package/dist/esm/biz-components/AiuiProvider/index.d.ts +0 -5
  249. package/dist/esm/biz-components/AiuiProvider/index.js +1 -1
  250. package/dist/esm/biz-components/AiuiProvider/index.js.map +2 -2
  251. package/dist/esm/biz-components/AplusDesc/index.d.ts +2 -3
  252. package/dist/esm/biz-components/AplusDesc/index.js +1 -1
  253. package/dist/esm/biz-components/AplusDesc/index.js.map +3 -3
  254. package/dist/esm/biz-components/BrandEquity/BrandEquity.d.ts +2 -3
  255. package/dist/esm/biz-components/BrandEquity/BrandEquity.js +1 -1
  256. package/dist/esm/biz-components/BrandEquity/BrandEquity.js.map +3 -3
  257. package/dist/esm/biz-components/BrandEquity/types.d.ts +1 -0
  258. package/dist/esm/biz-components/Category/SwiperCategory.js +1 -1
  259. package/dist/esm/biz-components/Category/SwiperCategory.js.map +1 -1
  260. package/dist/esm/biz-components/Category/index.d.ts +2 -2
  261. package/dist/esm/biz-components/Category/index.js +1 -1
  262. package/dist/esm/biz-components/Category/index.js.map +3 -3
  263. package/dist/esm/biz-components/CreativeModule/index.d.ts +2 -3
  264. package/dist/esm/biz-components/DownLoad/index.d.ts +2 -3
  265. package/dist/esm/biz-components/DownLoad/index.js +1 -1
  266. package/dist/esm/biz-components/DownLoad/index.js.map +1 -1
  267. package/dist/esm/biz-components/Evaluate/index.d.ts +2 -2
  268. package/dist/esm/biz-components/Faq/Faq.d.ts +2 -2
  269. package/dist/esm/biz-components/Faq/Faq.js +1 -1
  270. package/dist/esm/biz-components/Faq/Faq.js.map +2 -2
  271. package/dist/esm/biz-components/FeatureCards/FeatureCards.d.ts +2 -2
  272. package/dist/esm/biz-components/FeatureCards/FeatureCards.js +1 -1
  273. package/dist/esm/biz-components/FeatureCards/FeatureCards.js.map +2 -2
  274. package/dist/esm/biz-components/FeatureShowcase/FeatureShowcase.d.ts +2 -2
  275. package/dist/esm/biz-components/Features/index.d.ts +2 -3
  276. package/dist/esm/biz-components/Features/index.js +1 -1
  277. package/dist/esm/biz-components/Features/index.js.map +3 -3
  278. package/dist/esm/biz-components/FootCharger/index.d.ts +2 -3
  279. package/dist/esm/biz-components/FooterNavigation/index.d.ts +2 -3
  280. package/dist/esm/biz-components/GiftBox/index.d.ts +2 -3
  281. package/dist/esm/biz-components/GiftBox/index.js +1 -1
  282. package/dist/esm/biz-components/GiftBox/index.js.map +3 -3
  283. package/dist/esm/biz-components/Graphic/index.d.ts +2 -2
  284. package/dist/esm/biz-components/GraphicAttractionBlock/index.d.ts +2 -2
  285. package/dist/esm/biz-components/GraphicMore/index.d.ts +2 -3
  286. package/dist/esm/biz-components/GraphicMore/index.js +1 -1
  287. package/dist/esm/biz-components/GraphicMore/index.js.map +2 -2
  288. package/dist/esm/biz-components/GraphicOverlay/GraphicOverlay.d.ts +2 -2
  289. package/dist/esm/biz-components/HeaderNavigation/index.d.ts +2 -2
  290. package/dist/esm/biz-components/HeroBanner/HeroBanner.d.ts +2 -2
  291. package/dist/esm/biz-components/ImageTextFeature/ImageTextFeature.d.ts +2 -2
  292. package/dist/esm/biz-components/ImageWithText/ImageWithText.d.ts +2 -2
  293. package/dist/esm/biz-components/ImageWithText/ImageWithText.js +1 -1
  294. package/dist/esm/biz-components/ImageWithText/ImageWithText.js.map +3 -3
  295. package/dist/esm/biz-components/ImageWithText/types.d.ts +0 -2
  296. package/dist/esm/biz-components/ImageWithText/types.js.map +1 -1
  297. package/dist/esm/biz-components/Ksp/index.d.ts +2 -3
  298. package/dist/esm/biz-components/Listing/BizProductProvider.d.ts +2 -11
  299. package/dist/esm/biz-components/Listing/BizProductProvider.js +1 -1
  300. package/dist/esm/biz-components/Listing/BizProductProvider.js.map +3 -3
  301. package/dist/esm/biz-components/Listing/components/PaidShipping/ShippingPolicyModal.js +1 -1
  302. package/dist/esm/biz-components/Listing/components/PaidShipping/ShippingPolicyModal.js.map +3 -3
  303. package/dist/esm/biz-components/Listing/components/PaidShipping/index.d.ts +6 -19
  304. package/dist/esm/biz-components/Listing/components/PaidShipping/index.js +1 -1
  305. package/dist/esm/biz-components/Listing/components/PaidShipping/index.js.map +2 -2
  306. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.d.ts +2 -2
  307. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.js +6 -6
  308. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.js.map +3 -3
  309. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductBenefitsTabs/index.d.ts +1 -2
  310. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductBenefitsTabs/index.js +1 -1
  311. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductBenefitsTabs/index.js.map +3 -3
  312. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.d.ts +2 -3
  313. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.js +1 -1
  314. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.js.map +2 -2
  315. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.d.ts +2 -3
  316. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.js +1 -1
  317. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.js.map +2 -2
  318. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.d.ts +2 -3
  319. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.js +1 -1
  320. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.js.map +2 -2
  321. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.d.ts +2 -3
  322. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.js +3 -3
  323. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.js.map +2 -2
  324. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductOptions/index.d.ts +2 -3
  325. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductOptions/index.js +1 -1
  326. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductOptions/index.js.map +3 -3
  327. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/index.js +1 -1
  328. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/index.js.map +2 -2
  329. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/CompareModal.js +1 -1
  330. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/CompareModal.js.map +3 -3
  331. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/SpecsModal.js +1 -1
  332. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/SpecsModal.js.map +2 -2
  333. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/index.d.ts +2 -3
  334. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/index.js +1 -1
  335. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/index.js.map +3 -3
  336. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGridBox.js +1 -1
  337. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGridBox.js.map +2 -2
  338. package/dist/esm/biz-components/Listing/components/ProductCard/ProductSummary/index.d.ts +2 -3
  339. package/dist/esm/biz-components/Listing/components/ProductCard/ProductSummary/index.js +1 -1
  340. package/dist/esm/biz-components/Listing/components/ProductCard/ProductSummary/index.js.map +3 -3
  341. package/dist/esm/biz-components/Listing/components/ProductCard/index.js +1 -1
  342. package/dist/esm/biz-components/Listing/components/ProductCard/index.js.map +2 -2
  343. package/dist/esm/biz-components/Listing/components/PurchaseBar/ProductActions/index.js +1 -1
  344. package/dist/esm/biz-components/Listing/components/PurchaseBar/ProductActions/index.js.map +2 -2
  345. package/dist/esm/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/index.js +1 -1
  346. package/dist/esm/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/index.js.map +3 -3
  347. package/dist/esm/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/types.d.ts +0 -1
  348. package/dist/esm/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/useScrollSpy.d.ts +2 -0
  349. package/dist/esm/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/useScrollSpy.js +2 -0
  350. package/dist/esm/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/useScrollSpy.js.map +7 -0
  351. package/dist/esm/biz-components/Listing/components/PurchaseBar/index.d.ts +2 -3
  352. package/dist/esm/biz-components/Listing/components/PurchaseBar/index.js +1 -1
  353. package/dist/esm/biz-components/Listing/components/PurchaseBar/index.js.map +2 -2
  354. package/dist/esm/biz-components/Listing/hooks/useBenefits.js +1 -1
  355. package/dist/esm/biz-components/Listing/hooks/useBenefits.js.map +3 -3
  356. package/dist/esm/biz-components/Listing/index.d.ts +3 -0
  357. package/dist/esm/biz-components/Listing/index.js +1 -1
  358. package/dist/esm/biz-components/Listing/index.js.map +3 -3
  359. package/dist/esm/biz-components/Marquee/Marquee.d.ts +2 -2
  360. package/dist/esm/biz-components/MarqueeReview/index.d.ts +2 -3
  361. package/dist/esm/biz-components/MediaPlayerBase/index.backup.d.ts +2 -3
  362. package/dist/esm/biz-components/MediaPlayerBase/index.d.ts +2 -3
  363. package/dist/esm/biz-components/MediaPlayerBase/index.js +1 -1
  364. package/dist/esm/biz-components/MediaPlayerBase/index.js.map +3 -3
  365. package/dist/esm/biz-components/MediaPlayerMulti/index.d.ts +2 -3
  366. package/dist/esm/biz-components/MediaPlayerSticky/index.d.ts +2 -2
  367. package/dist/esm/biz-components/MediaPlayerSticky/index.js +1 -1
  368. package/dist/esm/biz-components/MediaPlayerSticky/index.js.map +2 -2
  369. package/dist/esm/biz-components/MediaSceneSwitcher/MediaSceneSwitcher.d.ts +2 -3
  370. package/dist/esm/biz-components/MediaSceneSwitcher/MediaSceneSwitcher.js +4 -4
  371. package/dist/esm/biz-components/MediaSceneSwitcher/MediaSceneSwitcher.js.map +3 -3
  372. package/dist/esm/biz-components/MediaSceneSwitcher/types.d.ts +2 -0
  373. package/dist/esm/biz-components/MemberEquity/index.d.ts +2 -2
  374. package/dist/esm/biz-components/MultiLayoutGraphicBlock/MultiLayoutGraphicBlock.d.ts +2 -2
  375. package/dist/esm/biz-components/NavigationSearch/index.d.ts +0 -1
  376. package/dist/esm/biz-components/ProductCompare/index.d.ts +2 -3
  377. package/dist/esm/biz-components/ProductCompare/index.js +1 -1
  378. package/dist/esm/biz-components/ProductCompare/index.js.map +2 -2
  379. package/dist/esm/biz-components/ProductHero/ProductHero.d.ts +2 -2
  380. package/dist/esm/biz-components/ProductNav/ProductNav.d.ts +2 -3
  381. package/dist/esm/biz-components/ProductNav/ProductNav.js +1 -1
  382. package/dist/esm/biz-components/ProductNav/ProductNav.js.map +3 -3
  383. package/dist/esm/biz-components/SelectStore/index.d.ts +2 -3
  384. package/dist/esm/biz-components/SelectStore/index.js +1 -1
  385. package/dist/esm/biz-components/SelectStore/index.js.map +3 -3
  386. package/dist/esm/biz-components/ShelfDisplay/index.d.ts +2 -2
  387. package/dist/esm/biz-components/ShelfDisplay/index.js +1 -1
  388. package/dist/esm/biz-components/ShelfDisplay/index.js.map +3 -3
  389. package/dist/esm/biz-components/ShelfDisplay/shelfDisplayItem.d.ts +0 -4
  390. package/dist/esm/biz-components/ShelfDisplay/shelfDisplayItem.js +5 -5
  391. package/dist/esm/biz-components/ShelfDisplay/shelfDisplayItem.js.map +3 -3
  392. package/dist/esm/biz-components/Slogan/index.d.ts +2 -2
  393. package/dist/esm/biz-components/Spacer/index.d.ts +2 -2
  394. package/dist/esm/biz-components/Specs/index.d.ts +2 -2
  395. package/dist/esm/biz-components/Specs/index.js +1 -1
  396. package/dist/esm/biz-components/Specs/index.js.map +2 -2
  397. package/dist/esm/biz-components/SpecsComparison/SpecsComparison.d.ts +2 -2
  398. package/dist/esm/biz-components/TabWithImage/TabWithImage.d.ts +2 -2
  399. package/dist/esm/biz-components/Tabs/Tabs.d.ts +2 -2
  400. package/dist/esm/biz-components/Tabs/Tabs.js +1 -1
  401. package/dist/esm/biz-components/Tabs/Tabs.js.map +1 -1
  402. package/dist/esm/biz-components/Tabs/types.d.ts +0 -11
  403. package/dist/esm/biz-components/TabsGroup/index.d.ts +2 -2
  404. package/dist/esm/biz-components/TabsWithMedia/TabsWithMedia.d.ts +2 -2
  405. package/dist/esm/biz-components/ThreeDCarousel/ThreeDCarousel.d.ts +2 -2
  406. package/dist/esm/biz-components/ThreeDCarousel/ThreeDCarousel.js +1 -1
  407. package/dist/esm/biz-components/ThreeDCarousel/ThreeDCarousel.js.map +2 -2
  408. package/dist/esm/biz-components/Title/index.d.ts +2 -2
  409. package/dist/esm/biz-components/Title/index.js +1 -1
  410. package/dist/esm/biz-components/Title/index.js.map +3 -3
  411. package/dist/esm/biz-components/Title/types.d.ts +0 -1
  412. package/dist/esm/biz-components/VideoFeature/VideoFeature.d.ts +2 -2
  413. package/dist/esm/biz-components/WhyChoose/WhyChoose.d.ts +2 -2
  414. package/dist/esm/biz-components/index.d.ts +1 -0
  415. package/dist/esm/biz-components/index.js +1 -1
  416. package/dist/esm/biz-components/index.js.map +2 -2
  417. package/dist/esm/components/alert.d.ts +2 -2
  418. package/dist/esm/components/avatar.d.ts +8 -8
  419. package/dist/esm/components/avatar.js +1 -1
  420. package/dist/esm/components/avatar.js.map +2 -2
  421. package/dist/esm/components/brand-strip.d.ts +26 -0
  422. package/dist/esm/components/brand-strip.js +2 -0
  423. package/dist/esm/components/brand-strip.js.map +7 -0
  424. package/dist/esm/components/button.js.map +2 -2
  425. package/dist/esm/components/checkbox.js.map +2 -2
  426. package/dist/esm/components/container.d.ts +7 -7
  427. package/dist/esm/components/container.js +1 -1
  428. package/dist/esm/components/container.js.map +2 -2
  429. package/dist/esm/components/dialog.d.ts +1 -1
  430. package/dist/esm/components/drop-down.d.ts +3 -3
  431. package/dist/esm/{src/components/gird.d.ts → components/grid.d.ts} +5 -0
  432. package/dist/esm/components/grid.js +2 -0
  433. package/dist/esm/components/grid.js.map +7 -0
  434. package/dist/esm/components/heading.d.ts +0 -1
  435. package/dist/esm/components/heading.js +1 -1
  436. package/dist/esm/components/heading.js.map +3 -3
  437. package/dist/esm/components/input-number.d.ts +15 -15
  438. package/dist/esm/components/link.d.ts +6 -6
  439. package/dist/esm/components/radio.js.map +2 -2
  440. package/dist/esm/components/tabs.d.ts +2 -2
  441. package/dist/esm/components/tabs.js +1 -1
  442. package/dist/esm/components/tabs.js.map +2 -2
  443. package/dist/esm/helpers/ScrollLoadVideo.js +1 -1
  444. package/dist/esm/helpers/ScrollLoadVideo.js.map +2 -2
  445. package/dist/esm/shared/Styles.d.ts +4 -4
  446. package/dist/esm/shared/Styles.js +1 -1
  447. package/dist/esm/shared/Styles.js.map +3 -3
  448. package/dist/esm/stories/InlineVideo.stories.d.ts +27 -1
  449. package/dist/esm/stories/MarqueeReview.stories.d.ts +30 -1
  450. package/dist/esm/stories/MarqueeReview.stories.js +2 -2
  451. package/dist/esm/stories/MarqueeReview.stories.js.map +2 -2
  452. package/dist/esm/stories/MediaSceneSwitcher.stories.d.ts +40 -1
  453. package/dist/esm/stories/MediaSceneSwitcher.stories.js +1 -1
  454. package/dist/esm/stories/MediaSceneSwitcher.stories.js.map +3 -3
  455. package/dist/esm/stories/ProductNav.stories.d.ts +55 -0
  456. package/dist/esm/stories/ThreeDCarousel.stories.d.ts +18 -1
  457. package/dist/esm/stories/ThreeDCarousel.stories.js +2 -2
  458. package/dist/esm/stories/ThreeDCarousel.stories.js.map +2 -2
  459. package/dist/esm/stories/brandStrip.stories.d.ts +12 -0
  460. package/dist/esm/stories/brandStrip.stories.js +2 -0
  461. package/dist/esm/stories/brandStrip.stories.js.map +7 -0
  462. package/dist/esm/stories/featureCards.stories.d.ts +18 -5
  463. package/dist/esm/stories/featureShowcase.stories.d.ts +21 -1
  464. package/dist/esm/stories/graphic.stories.d.ts +1 -1
  465. package/dist/esm/stories/imageTextFeature.stories.d.ts +18 -1
  466. package/dist/esm/stories/imageWithText.stories.d.ts +28 -1
  467. package/dist/esm/stories/imageWithText.stories.js +2 -2
  468. package/dist/esm/stories/imageWithText.stories.js.map +2 -2
  469. package/dist/esm/stories/ksp.stories.d.ts +31 -1
  470. package/dist/esm/stories/ksp.stories.js +2 -2
  471. package/dist/esm/stories/ksp.stories.js.map +2 -2
  472. package/dist/esm/stories/productCompare.stories.d.ts +50 -9
  473. package/dist/esm/stories/productCompare.stories.js +1 -1
  474. package/dist/esm/stories/productCompare.stories.js.map +2 -2
  475. package/dist/esm/stories/productHero.stories.d.ts +21 -1
  476. package/dist/esm/stories/shelfDisplay.stories.js +1 -3782
  477. package/dist/esm/stories/shelfDisplay.stories.js.map +3 -3
  478. package/dist/esm/stories/specsComparison.stories.d.ts +21 -1
  479. package/dist/esm/stories/tabWithImage.stories.d.ts +21 -1
  480. package/dist/esm/stories/tabs.stories.d.ts +2 -2
  481. package/dist/esm/stories/tabsWithMedia.stories.d.ts +21 -1
  482. package/dist/esm/stories/videoFeature.stories.d.ts +21 -1
  483. package/dist/esm/tsconfig.tsbuildinfo +1 -1
  484. package/dist/esm/types/props.d.ts +5 -9
  485. package/dist/tokens/base.css +0 -3
  486. package/package.json +13 -18
  487. package/style.css +0 -10
  488. package/tailwind.config.js +3 -4
  489. package/dist/cjs/apps/playground/utils/classnames.d.ts +0 -1
  490. package/dist/cjs/apps/storefront/lib/utils/classnames.d.ts +0 -2
  491. package/dist/cjs/biz-components/AccordionCards/useDebounce.d.ts +0 -6
  492. package/dist/cjs/biz-components/CollectionShelves/CollectionShelvesItem.d.ts +0 -4
  493. package/dist/cjs/biz-components/CollectionShelves/CollectionShelvesItem.js +0 -2
  494. package/dist/cjs/biz-components/CollectionShelves/CollectionShelvesItem.js.map +0 -7
  495. package/dist/cjs/biz-components/CollectionShelves/index.d.ts +0 -6
  496. package/dist/cjs/biz-components/CollectionShelves/index.js +0 -2
  497. package/dist/cjs/biz-components/CollectionShelves/index.js.map +0 -7
  498. package/dist/cjs/biz-components/CollectionsBanner/HeroBanner.d.ts +0 -7
  499. package/dist/cjs/biz-components/CollectionsBanner/index.d.ts +0 -7
  500. package/dist/cjs/biz-components/CollectionsBanner/index.js +0 -2
  501. package/dist/cjs/biz-components/CollectionsBanner/index.js.map +0 -7
  502. package/dist/cjs/biz-components/CollectionsBanner/types.d.ts +0 -43
  503. package/dist/cjs/biz-components/CollectionsBanner/types.js +0 -2
  504. package/dist/cjs/biz-components/CollectionsBanner/types.js.map +0 -7
  505. package/dist/cjs/biz-components/CollectionsFilters/AnimatedUL.d.ts +0 -9
  506. package/dist/cjs/biz-components/CollectionsFilters/FilterCardWrap.d.ts +0 -18
  507. package/dist/cjs/biz-components/CollectionsFilters/FilterCardWrap.js +0 -2
  508. package/dist/cjs/biz-components/CollectionsFilters/FilterCardWrap.js.map +0 -7
  509. package/dist/cjs/biz-components/CollectionsFilters/FilterCardWrapItem.d.ts +0 -10
  510. package/dist/cjs/biz-components/CollectionsFilters/FilterCardWrapItem.js +0 -2
  511. package/dist/cjs/biz-components/CollectionsFilters/FilterCardWrapItem.js.map +0 -7
  512. package/dist/cjs/biz-components/CollectionsFilters/FilterHeader.d.ts +0 -13
  513. package/dist/cjs/biz-components/CollectionsFilters/FilterHeader.js +0 -2
  514. package/dist/cjs/biz-components/CollectionsFilters/FilterHeader.js.map +0 -7
  515. package/dist/cjs/biz-components/CollectionsFilters/FilterList.d.ts +0 -14
  516. package/dist/cjs/biz-components/CollectionsFilters/FilterList.js +0 -2
  517. package/dist/cjs/biz-components/CollectionsFilters/FilterList.js.map +0 -7
  518. package/dist/cjs/biz-components/CollectionsFilters/FilterTab.d.ts +0 -7
  519. package/dist/cjs/biz-components/CollectionsFilters/FiterTab.d.ts +0 -7
  520. package/dist/cjs/biz-components/CollectionsFilters/FiterTab.js +0 -2
  521. package/dist/cjs/biz-components/CollectionsFilters/FiterTab.js.map +0 -7
  522. package/dist/cjs/biz-components/CollectionsFilters/Helper.d.ts +0 -8
  523. package/dist/cjs/biz-components/CollectionsFilters/MoblieSortFilter.d.ts +0 -8
  524. package/dist/cjs/biz-components/CollectionsFilters/SortFilter.d.ts +0 -8
  525. package/dist/cjs/biz-components/CollectionsFilters/component/AnimatedUL.d.ts +0 -5
  526. package/dist/cjs/biz-components/CollectionsFilters/component/AnimatedUL.js +0 -2
  527. package/dist/cjs/biz-components/CollectionsFilters/component/AnimatedUL.js.map +0 -7
  528. package/dist/cjs/biz-components/CollectionsFilters/component/LoadingDots.d.ts +0 -6
  529. package/dist/cjs/biz-components/CollectionsFilters/component/TabFilter.d.ts +0 -12
  530. package/dist/cjs/biz-components/CollectionsFilters/component/TabFilter.js +0 -2
  531. package/dist/cjs/biz-components/CollectionsFilters/component/TabFilter.js.map +0 -7
  532. package/dist/cjs/biz-components/CollectionsFilters/component/filtersFun.d.ts +0 -12
  533. package/dist/cjs/biz-components/CollectionsFilters/component/filtersFun.js +0 -2
  534. package/dist/cjs/biz-components/CollectionsFilters/component/filtersFun.js.map +0 -7
  535. package/dist/cjs/biz-components/CollectionsFilters/component/helper.d.ts +0 -81
  536. package/dist/cjs/biz-components/CollectionsFilters/component/helper.js +0 -2
  537. package/dist/cjs/biz-components/CollectionsFilters/component/helper.js.map +0 -7
  538. package/dist/cjs/biz-components/CollectionsFilters/component/price.d.ts +0 -25
  539. package/dist/cjs/biz-components/CollectionsFilters/component/price.js +0 -2
  540. package/dist/cjs/biz-components/CollectionsFilters/component/price.js.map +0 -7
  541. package/dist/cjs/biz-components/CollectionsFilters/component/priceProps.d.ts +0 -215
  542. package/dist/cjs/biz-components/CollectionsFilters/component/priceProps.js +0 -2
  543. package/dist/cjs/biz-components/CollectionsFilters/component/priceProps.js.map +0 -7
  544. package/dist/cjs/biz-components/CollectionsFilters/data.d.ts +0 -24804
  545. package/dist/cjs/biz-components/CollectionsFilters/index.d.ts +0 -23
  546. package/dist/cjs/biz-components/CollectionsFilters/index.js +0 -2
  547. package/dist/cjs/biz-components/CollectionsFilters/index.js.map +0 -7
  548. package/dist/cjs/biz-components/CollectionsFilters/price.d.ts +0 -25
  549. package/dist/cjs/biz-components/CollectionsFilters/priceProps.d.ts +0 -215
  550. package/dist/cjs/biz-components/CollectionsFilters/tabFilter.d.ts +0 -10
  551. package/dist/cjs/biz-components/CollectionsFilters/tabSwitch.d.ts +0 -9
  552. package/dist/cjs/biz-components/Listing/ProductProvider.d.ts +0 -52
  553. package/dist/cjs/biz-components/Listing/ProductProvider.js +0 -2
  554. package/dist/cjs/biz-components/Listing/ProductProvider.js.map +0 -7
  555. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTabs/index.d.ts +0 -5
  556. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductSummary/types.d.ts +0 -2
  557. package/dist/cjs/biz-components/Listing/hooks/use-options.d.ts +0 -3
  558. package/dist/cjs/biz-components/Listing/hooks/use-options.js +0 -2
  559. package/dist/cjs/biz-components/Listing/hooks/use-options.js.map +0 -7
  560. package/dist/cjs/biz-components/MediaPlayerMulti/YouTubePlayer.d.ts +0 -3
  561. package/dist/cjs/biz-components/Paginator/index.d.ts +0 -7
  562. package/dist/cjs/biz-components/Paginator/index.js +0 -7
  563. package/dist/cjs/biz-components/Paginator/index.js.map +0 -7
  564. package/dist/cjs/biz-components/SectionHeading/SectionHeading.d.ts +0 -4
  565. package/dist/cjs/biz-components/SectionHeading/index.d.ts +0 -0
  566. package/dist/cjs/biz-components/SectionHeading/types.d.ts +0 -6
  567. package/dist/cjs/biz-components/Shelf/Shelf.d.ts +0 -8
  568. package/dist/cjs/biz-components/Shelf/index.d.ts +0 -1
  569. package/dist/cjs/biz-components/Shelf/types.d.ts +0 -6
  570. package/dist/cjs/biz-components/ShelfDisplay/couponType.d.ts +0 -50
  571. package/dist/cjs/biz-components/ShelfDisplay/couponType.js +0 -2
  572. package/dist/cjs/biz-components/ShelfDisplay/couponType.js.map +0 -7
  573. package/dist/cjs/biz-components/ShelfDisplay/couponUtils.d.ts +0 -37
  574. package/dist/cjs/biz-components/ShelfDisplay/couponUtils.js +0 -2
  575. package/dist/cjs/biz-components/ShelfDisplay/couponUtils.js.map +0 -7
  576. package/dist/cjs/biz-components/ShelfDisplay/handleCoupon.d.ts +0 -28
  577. package/dist/cjs/biz-components/ShelfDisplay/handleCoupon.js +0 -2
  578. package/dist/cjs/biz-components/ShelfDisplay/handleCoupon.js.map +0 -7
  579. package/dist/cjs/biz-components/ShelfDisplay/tab.d.ts +0 -7
  580. package/dist/cjs/biz-components/ShelfDisplay/useUDCGroup.d.ts +0 -0
  581. package/dist/cjs/biz-components/ShelfDisplay/useUDCGroup.js +0 -2
  582. package/dist/cjs/biz-components/ShelfDisplay/useUDCGroup.js.map +0 -7
  583. package/dist/cjs/biz-components/TextMa/index.d.ts +0 -9
  584. package/dist/cjs/biz-components/TextMarquee/index.d.ts +0 -9
  585. package/dist/cjs/biz-components/TextMarquee/index.js +0 -2
  586. package/dist/cjs/biz-components/TextMarquee/index.js.map +0 -7
  587. package/dist/cjs/campaign-ui/tailwind.config.d.ts +0 -62
  588. package/dist/cjs/components/breadcrumb.d.ts +0 -12
  589. package/dist/cjs/components/breadcrumb.js +0 -2
  590. package/dist/cjs/components/breadcrumb.js.map +0 -7
  591. package/dist/cjs/components/col.d.ts +0 -29
  592. package/dist/cjs/components/dropdown.d.ts +0 -27
  593. package/dist/cjs/components/inputnumber.d.ts +0 -0
  594. package/dist/cjs/components/row.d.ts +0 -18
  595. package/dist/cjs/helpers/get-subtree.d.ts +0 -12
  596. package/dist/cjs/hooks/useEXposure.d.ts +0 -12
  597. package/dist/cjs/hooks/useMemberPrice.d.ts +0 -20
  598. package/dist/cjs/packages/ui/src/components/avatar.d.ts +0 -26
  599. package/dist/cjs/packages/ui/src/components/index.d.ts +0 -20
  600. package/dist/cjs/packages/ui/src/index.d.ts +0 -1
  601. package/dist/cjs/packages/ui/src/stories/avatar.stories.d.ts +0 -40
  602. package/dist/cjs/packages/ui/src/stories/badge.stories.d.ts +0 -26
  603. package/dist/cjs/packages/ui/src/stories/button.stories.d.ts +0 -48
  604. package/dist/cjs/packages/ui/src/stories/checkbox.stories.d.ts +0 -46
  605. package/dist/cjs/packages/ui/src/stories/container.stories.d.ts +0 -36
  606. package/dist/cjs/packages/ui/src/stories/dialog.stories.d.ts +0 -20
  607. package/dist/cjs/packages/ui/src/stories/grid.stories.d.ts +0 -42
  608. package/dist/cjs/packages/ui/src/stories/heading.stories.d.ts +0 -82
  609. package/dist/cjs/packages/ui/src/stories/input.stories.d.ts +0 -35
  610. package/dist/cjs/packages/ui/src/stories/picture.stories.d.ts +0 -18
  611. package/dist/cjs/packages/ui/src/stories/popover.stories.d.ts +0 -17
  612. package/dist/cjs/packages/ui/src/stories/radio.stories.d.ts +0 -39
  613. package/dist/cjs/packages/ui/src/stories/skeleton.stories.d.ts +0 -20
  614. package/dist/cjs/packages/ui/src/stories/tabs.stories.d.ts +0 -373
  615. package/dist/cjs/packages/ui/src/stories/text.stories.d.ts +0 -94
  616. package/dist/cjs/src/biz-components/AccordionCards/index.d.ts +0 -38
  617. package/dist/cjs/src/biz-components/AiuiProvider/index.d.ts +0 -16
  618. package/dist/cjs/src/biz-components/AplusDesc/index.d.ts +0 -22
  619. package/dist/cjs/src/biz-components/BrandEquity/BrandEquity.d.ts +0 -6
  620. package/dist/cjs/src/biz-components/BrandEquity/index.d.ts +0 -1
  621. package/dist/cjs/src/biz-components/BrandEquity/types.d.ts +0 -18
  622. package/dist/cjs/src/biz-components/Category/SwiperCategory.d.ts +0 -19
  623. package/dist/cjs/src/biz-components/Category/index.d.ts +0 -35
  624. package/dist/cjs/src/biz-components/CreativeModule/index.d.ts +0 -21
  625. package/dist/cjs/src/biz-components/DownLoad/index.d.ts +0 -20
  626. package/dist/cjs/src/biz-components/Evaluate/index.d.ts +0 -37
  627. package/dist/cjs/src/biz-components/Faq/Faq.d.ts +0 -14
  628. package/dist/cjs/src/biz-components/Faq/index.d.ts +0 -2
  629. package/dist/cjs/src/biz-components/Faq/types.d.ts +0 -12
  630. package/dist/cjs/src/biz-components/FeatureCards/FeatureCards.d.ts +0 -7
  631. package/dist/cjs/src/biz-components/FeatureCards/index.d.ts +0 -2
  632. package/dist/cjs/src/biz-components/FeatureCards/types.d.ts +0 -25
  633. package/dist/cjs/src/biz-components/FeatureShowcase/FeatureShowcase.d.ts +0 -7
  634. package/dist/cjs/src/biz-components/FeatureShowcase/index.d.ts +0 -2
  635. package/dist/cjs/src/biz-components/FeatureShowcase/types.d.ts +0 -21
  636. package/dist/cjs/src/biz-components/Features/index.d.ts +0 -26
  637. package/dist/cjs/src/biz-components/FootCharger/index.d.ts +0 -12
  638. package/dist/cjs/src/biz-components/FooterNavigation/icons/Add.d.ts +0 -3
  639. package/dist/cjs/src/biz-components/FooterNavigation/icons/ArrowRight.d.ts +0 -3
  640. package/dist/cjs/src/biz-components/FooterNavigation/icons/Country.d.ts +0 -3
  641. package/dist/cjs/src/biz-components/FooterNavigation/icons/Subtract.d.ts +0 -3
  642. package/dist/cjs/src/biz-components/FooterNavigation/icons/index.d.ts +0 -5
  643. package/dist/cjs/src/biz-components/FooterNavigation/index.d.ts +0 -6
  644. package/dist/cjs/src/biz-components/FooterNavigation/types.d.ts +0 -15
  645. package/dist/cjs/src/biz-components/GiftBox/index.d.ts +0 -17
  646. package/dist/cjs/src/biz-components/Graphic/index.d.ts +0 -38
  647. package/dist/cjs/src/biz-components/GraphicAttractionBlock/index.d.ts +0 -25
  648. package/dist/cjs/src/biz-components/GraphicMore/index.d.ts +0 -22
  649. package/dist/cjs/src/biz-components/GraphicOverlay/GraphicOverlay.d.ts +0 -8
  650. package/dist/cjs/src/biz-components/GraphicOverlay/index.d.ts +0 -2
  651. package/dist/cjs/src/biz-components/GraphicOverlay/types.d.ts +0 -33
  652. package/dist/cjs/src/biz-components/HeaderNavigation/NavProvider.d.ts +0 -36
  653. package/dist/cjs/src/biz-components/HeaderNavigation/icons/AnkerLogo.d.ts +0 -3
  654. package/dist/cjs/src/biz-components/HeaderNavigation/icons/Cart.d.ts +0 -3
  655. package/dist/cjs/src/biz-components/HeaderNavigation/icons/Close.d.ts +0 -3
  656. package/dist/cjs/src/biz-components/HeaderNavigation/icons/DownArrow.d.ts +0 -3
  657. package/dist/cjs/src/biz-components/HeaderNavigation/icons/LeftArrow.d.ts +0 -3
  658. package/dist/cjs/src/biz-components/HeaderNavigation/icons/LogoLine.d.ts +0 -3
  659. package/dist/cjs/src/biz-components/HeaderNavigation/icons/Menu.d.ts +0 -3
  660. package/dist/cjs/src/biz-components/HeaderNavigation/icons/Polygon.d.ts +0 -3
  661. package/dist/cjs/src/biz-components/HeaderNavigation/icons/RightArrow.d.ts +0 -3
  662. package/dist/cjs/src/biz-components/HeaderNavigation/icons/Search.d.ts +0 -3
  663. package/dist/cjs/src/biz-components/HeaderNavigation/icons/User.d.ts +0 -3
  664. package/dist/cjs/src/biz-components/HeaderNavigation/icons/index.d.ts +0 -12
  665. package/dist/cjs/src/biz-components/HeaderNavigation/index.d.ts +0 -7
  666. package/dist/cjs/src/biz-components/HeaderNavigation/types.d.ts +0 -103
  667. package/dist/cjs/src/biz-components/HeaderNavigation/withCategory.d.ts +0 -9
  668. package/dist/cjs/src/biz-components/HeroBanner/Countdown.d.ts +0 -9
  669. package/dist/cjs/src/biz-components/HeroBanner/HeroBanner.d.ts +0 -7
  670. package/dist/cjs/src/biz-components/HeroBanner/index.d.ts +0 -1
  671. package/dist/cjs/src/biz-components/HeroBanner/types.d.ts +0 -49
  672. package/dist/cjs/src/biz-components/ImageTextFeature/ImageTextFeature.d.ts +0 -7
  673. package/dist/cjs/src/biz-components/ImageTextFeature/index.d.ts +0 -2
  674. package/dist/cjs/src/biz-components/ImageTextFeature/types.d.ts +0 -31
  675. package/dist/cjs/src/biz-components/ImageWithText/ImageWithText.d.ts +0 -7
  676. package/dist/cjs/src/biz-components/ImageWithText/index.d.ts +0 -2
  677. package/dist/cjs/src/biz-components/ImageWithText/types.d.ts +0 -119
  678. package/dist/cjs/src/biz-components/InlineVideo/index.d.ts +0 -16
  679. package/dist/cjs/src/biz-components/Ksp/index.d.ts +0 -40
  680. package/dist/cjs/src/biz-components/Listing/BizProductProvider.d.ts +0 -126
  681. package/dist/cjs/src/biz-components/Listing/components/PaidShipping/LearnMore.d.ts +0 -2
  682. package/dist/cjs/src/biz-components/Listing/components/PaidShipping/ShippingMethod.d.ts +0 -10
  683. package/dist/cjs/src/biz-components/Listing/components/PaidShipping/ShippingPolicyModal.d.ts +0 -25
  684. package/dist/cjs/src/biz-components/Listing/components/PaidShipping/index.d.ts +0 -12
  685. package/dist/cjs/src/biz-components/Listing/components/PaidShipping/type.d.ts +0 -30
  686. package/dist/cjs/src/biz-components/Listing/components/PaidShipping/utils.d.ts +0 -2
  687. package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.d.ts +0 -38
  688. package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductBenefitsTabs/index.d.ts +0 -30
  689. package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.d.ts +0 -2
  690. package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.d.ts +0 -2
  691. package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.d.ts +0 -2
  692. package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.d.ts +0 -2
  693. package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductOptions/index.d.ts +0 -2
  694. package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductDetail/index.d.ts +0 -2
  695. package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductDetail/types.d.ts +0 -43
  696. package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductGallery/components/CompareModal.d.ts +0 -2
  697. package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductGallery/components/Select.d.ts +0 -21
  698. package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductGallery/components/ShopifyColorOption.d.ts +0 -5
  699. package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductGallery/components/SpecsModal.d.ts +0 -1
  700. package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductGallery/index.d.ts +0 -2
  701. package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductGallery/types.d.ts +0 -42
  702. package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductGridBox.d.ts +0 -6
  703. package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductSummary/index.d.ts +0 -3
  704. package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductSummary/types.d.ts +0 -2
  705. package/dist/cjs/src/biz-components/Listing/components/ProductCard/index.d.ts +0 -2
  706. package/dist/cjs/src/biz-components/Listing/components/PurchaseBar/ProductActions/index.d.ts +0 -2
  707. package/dist/cjs/src/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/index.d.ts +0 -4
  708. package/dist/cjs/src/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/types.d.ts +0 -10
  709. package/dist/cjs/src/biz-components/Listing/components/PurchaseBar/index.d.ts +0 -3
  710. package/dist/cjs/src/biz-components/Listing/components/PurchaseBar/types.d.ts +0 -12
  711. package/dist/cjs/src/biz-components/Listing/components/index.d.ts +0 -3
  712. package/dist/cjs/src/biz-components/Listing/const.d.ts +0 -29
  713. package/dist/cjs/src/biz-components/Listing/hooks/use-variant-media.d.ts +0 -14
  714. package/dist/cjs/src/biz-components/Listing/hooks/use-variant.d.ts +0 -5
  715. package/dist/cjs/src/biz-components/Listing/hooks/useBenefits.d.ts +0 -50
  716. package/dist/cjs/src/biz-components/Listing/hooks/useCopy.d.ts +0 -5
  717. package/dist/cjs/src/biz-components/Listing/index.d.ts +0 -3
  718. package/dist/cjs/src/biz-components/Listing/types/graphql.d.ts +0 -7473
  719. package/dist/cjs/src/biz-components/Listing/types/product.d.ts +0 -141
  720. package/dist/cjs/src/biz-components/Listing/types/type-helper.d.ts +0 -5
  721. package/dist/cjs/src/biz-components/Listing/types.d.ts +0 -28
  722. package/dist/cjs/src/biz-components/Listing/utils/helper.d.ts +0 -36
  723. package/dist/cjs/src/biz-components/Listing/utils/index.d.ts +0 -37
  724. package/dist/cjs/src/biz-components/Listing/utils/textFormat.d.ts +0 -73
  725. package/dist/cjs/src/biz-components/Marquee/Marquee.d.ts +0 -18
  726. package/dist/cjs/src/biz-components/Marquee/index.d.ts +0 -2
  727. package/dist/cjs/src/biz-components/Marquee/type.d.ts +0 -33
  728. package/dist/cjs/src/biz-components/MarqueeReview/index.d.ts +0 -41
  729. package/dist/cjs/src/biz-components/MediaPlayerBase/index.d.ts +0 -6
  730. package/dist/cjs/src/biz-components/MediaPlayerBase/right.d.ts +0 -1
  731. package/dist/cjs/src/biz-components/MediaPlayerBase/types.d.ts +0 -18
  732. package/dist/cjs/src/biz-components/MediaPlayerMulti/index.d.ts +0 -6
  733. package/dist/cjs/src/biz-components/MediaPlayerMulti/types.d.ts +0 -22
  734. package/dist/cjs/src/biz-components/MediaPlayerSticky/index.d.ts +0 -9
  735. package/dist/cjs/src/biz-components/MediaPlayerSticky/types.d.ts +0 -21
  736. package/dist/cjs/src/biz-components/MemberEquity/index.d.ts +0 -7
  737. package/dist/cjs/src/biz-components/MemberEquity/types.d.ts +0 -30
  738. package/dist/cjs/src/biz-components/MultiLayoutGraphicBlock/MultiLayoutGraphicBlock.d.ts +0 -8
  739. package/dist/cjs/src/biz-components/MultiLayoutGraphicBlock/index.d.ts +0 -2
  740. package/dist/cjs/src/biz-components/MultiLayoutGraphicBlock/types.d.ts +0 -38
  741. package/dist/cjs/src/biz-components/NavigationSearch/index.d.ts +0 -4
  742. package/dist/cjs/src/biz-components/NavigationSearch/types.d.ts +0 -18
  743. package/dist/cjs/src/biz-components/ProductCompare/index.d.ts +0 -37
  744. package/dist/cjs/src/biz-components/ProductHero/ProductHero.d.ts +0 -7
  745. package/dist/cjs/src/biz-components/ProductHero/index.d.ts +0 -2
  746. package/dist/cjs/src/biz-components/ProductHero/types.d.ts +0 -21
  747. package/dist/cjs/src/biz-components/SearchPage/index.d.ts +0 -6
  748. package/dist/cjs/src/biz-components/SearchPage/types.d.ts +0 -58
  749. package/dist/cjs/src/biz-components/SelectStore/index.d.ts +0 -20
  750. package/dist/cjs/src/biz-components/ShelfDisplay/index.d.ts +0 -7
  751. package/dist/cjs/src/biz-components/ShelfDisplay/shelfDisplay.d.ts +0 -106
  752. package/dist/cjs/src/biz-components/ShelfDisplay/shelfDisplayItem.d.ts +0 -8
  753. package/dist/cjs/src/biz-components/ShelfDisplay/tabSwitch.d.ts +0 -9
  754. package/dist/cjs/src/biz-components/Slogan/index.d.ts +0 -9
  755. package/dist/cjs/src/biz-components/Slogan/types.d.ts +0 -31
  756. package/dist/cjs/src/biz-components/Spacer/index.d.ts +0 -7
  757. package/dist/cjs/src/biz-components/Spacer/types.d.ts +0 -10
  758. package/dist/cjs/src/biz-components/Specs/dropdown.d.ts +0 -11
  759. package/dist/cjs/src/biz-components/Specs/index.d.ts +0 -6
  760. package/dist/cjs/src/biz-components/SpecsComparison/SpecsComparison.d.ts +0 -7
  761. package/dist/cjs/src/biz-components/SpecsComparison/index.d.ts +0 -2
  762. package/dist/cjs/src/biz-components/SpecsComparison/types.d.ts +0 -34
  763. package/dist/cjs/src/biz-components/Subscribe/index.d.ts +0 -20
  764. package/dist/cjs/src/biz-components/SwiperBox/index.d.ts +0 -4
  765. package/dist/cjs/src/biz-components/SwiperBox/types.d.ts +0 -17
  766. package/dist/cjs/src/biz-components/TabWithImage/TabWithImage.d.ts +0 -7
  767. package/dist/cjs/src/biz-components/TabWithImage/index.d.ts +0 -2
  768. package/dist/cjs/src/biz-components/TabWithImage/types.d.ts +0 -29
  769. package/dist/cjs/src/biz-components/Tabs/Tabs.d.ts +0 -7
  770. package/dist/cjs/src/biz-components/Tabs/index.d.ts +0 -1
  771. package/dist/cjs/src/biz-components/Tabs/types.d.ts +0 -30
  772. package/dist/cjs/src/biz-components/TabsGroup/index.d.ts +0 -7
  773. package/dist/cjs/src/biz-components/TabsGroup/types.d.ts +0 -16
  774. package/dist/cjs/src/biz-components/TabsWithMedia/TabsWithMedia.d.ts +0 -7
  775. package/dist/cjs/src/biz-components/TabsWithMedia/index.d.ts +0 -2
  776. package/dist/cjs/src/biz-components/TabsWithMedia/types.d.ts +0 -41
  777. package/dist/cjs/src/biz-components/TextModal/index.d.ts +0 -14
  778. package/dist/cjs/src/biz-components/ThreeDCarousel/index.d.ts +0 -15
  779. package/dist/cjs/src/biz-components/Title/index.d.ts +0 -7
  780. package/dist/cjs/src/biz-components/Title/types.d.ts +0 -33
  781. package/dist/cjs/src/biz-components/VideoFeature/VideoFeature.d.ts +0 -7
  782. package/dist/cjs/src/biz-components/VideoFeature/index.d.ts +0 -2
  783. package/dist/cjs/src/biz-components/VideoFeature/types.d.ts +0 -19
  784. package/dist/cjs/src/biz-components/VideoModal/YouTubePlayer.d.ts +0 -4
  785. package/dist/cjs/src/biz-components/VideoModal/index.d.ts +0 -8
  786. package/dist/cjs/src/biz-components/WhyChoose/WhyChoose.d.ts +0 -14
  787. package/dist/cjs/src/biz-components/WhyChoose/index.d.ts +0 -2
  788. package/dist/cjs/src/biz-components/WhyChoose/types.d.ts +0 -12
  789. package/dist/cjs/src/biz-components/index.d.ts +0 -118
  790. package/dist/cjs/src/components/alert.d.ts +0 -17
  791. package/dist/cjs/src/components/avatar.d.ts +0 -26
  792. package/dist/cjs/src/components/badge.d.ts +0 -9
  793. package/dist/cjs/src/components/board.d.ts +0 -4
  794. package/dist/cjs/src/components/button.d.ts +0 -41
  795. package/dist/cjs/src/components/card.d.ts +0 -8
  796. package/dist/cjs/src/components/carousel.d.ts +0 -28
  797. package/dist/cjs/src/components/checkbox.d.ts +0 -12
  798. package/dist/cjs/src/components/color.d.ts +0 -13
  799. package/dist/cjs/src/components/container.d.ts +0 -24
  800. package/dist/cjs/src/components/dialog.d.ts +0 -21
  801. package/dist/cjs/src/components/drawer.d.ts +0 -13
  802. package/dist/cjs/src/components/drop-down.d.ts +0 -27
  803. package/dist/cjs/src/components/heading.d.ts +0 -17
  804. package/dist/cjs/src/components/index.d.ts +0 -26
  805. package/dist/cjs/src/components/input-number.d.ts +0 -78
  806. package/dist/cjs/src/components/input.d.ts +0 -22
  807. package/dist/cjs/src/components/link.d.ts +0 -45
  808. package/dist/cjs/src/components/loadingDots.d.ts +0 -6
  809. package/dist/cjs/src/components/picture.d.ts +0 -14
  810. package/dist/cjs/src/components/popover.d.ts +0 -6
  811. package/dist/cjs/src/components/radio.d.ts +0 -16
  812. package/dist/cjs/src/components/skeleton.d.ts +0 -9
  813. package/dist/cjs/src/components/tabs.d.ts +0 -11
  814. package/dist/cjs/src/components/text.d.ts +0 -32
  815. package/dist/cjs/src/components/theme.d.ts +0 -12
  816. package/dist/cjs/src/cpn-components/CpnBanner/index.d.ts +0 -3
  817. package/dist/cjs/src/cpn-components/CpnBanner/types.d.ts +0 -43
  818. package/dist/cjs/src/cpn-components/CpnCountDown/index.d.ts +0 -3
  819. package/dist/cjs/src/cpn-components/CpnCountDown/types.d.ts +0 -29
  820. package/dist/cjs/src/cpn-components/CpnNavigation/index.d.ts +0 -3
  821. package/dist/cjs/src/cpn-components/CpnNavigation/types.d.ts +0 -20
  822. package/dist/cjs/src/cpn-components/CpnProductCard/index.d.ts +0 -3
  823. package/dist/cjs/src/cpn-components/CpnProductCard/types.d.ts +0 -109
  824. package/dist/cjs/src/cpn-components/CpnTitle/index.d.ts +0 -3
  825. package/dist/cjs/src/cpn-components/CpnTitle/types.d.ts +0 -10
  826. package/dist/cjs/src/cpn-components/index.d.ts +0 -5
  827. package/dist/cjs/src/helpers/ScrollLoadVideo.d.ts +0 -15
  828. package/dist/cjs/src/helpers/component-props.d.ts +0 -7
  829. package/dist/cjs/src/helpers/constants.d.ts +0 -0
  830. package/dist/cjs/src/helpers/index.d.ts +0 -2
  831. package/dist/cjs/src/helpers/utils.d.ts +0 -6
  832. package/dist/cjs/src/hooks/useCountDown.d.ts +0 -10
  833. package/dist/cjs/src/hooks/useIntersectionObserver.d.ts +0 -17
  834. package/dist/cjs/src/hooks/useRollout.d.ts +0 -14
  835. package/dist/cjs/src/icons/spinner.d.ts +0 -5
  836. package/dist/cjs/src/index.d.ts +0 -1
  837. package/dist/cjs/src/shared/Styles.d.ts +0 -39
  838. package/dist/cjs/src/shared/getKeyPropsString.d.ts +0 -4
  839. package/dist/cjs/src/shared/mimeType.d.ts +0 -1
  840. package/dist/cjs/src/shared/simpleHash.d.ts +0 -1
  841. package/dist/cjs/src/shared/throttle.d.ts +0 -1
  842. package/dist/cjs/src/shared/track.d.ts +0 -1
  843. package/dist/cjs/src/shared/trackUrlRef.d.ts +0 -7
  844. package/dist/cjs/src/stories/avatar.stories.d.ts +0 -40
  845. package/dist/cjs/src/stories/badge.stories.d.ts +0 -26
  846. package/dist/cjs/src/stories/button.stories.d.ts +0 -48
  847. package/dist/cjs/src/stories/checkbox.stories.d.ts +0 -46
  848. package/dist/cjs/src/stories/container.stories.d.ts +0 -36
  849. package/dist/cjs/src/stories/dialog.stories.d.ts +0 -20
  850. package/dist/cjs/src/stories/grid.stories.d.ts +0 -42
  851. package/dist/cjs/src/stories/heading.stories.d.ts +0 -82
  852. package/dist/cjs/src/stories/input-number.stories.d.ts +0 -51
  853. package/dist/cjs/src/stories/input.stories.d.ts +0 -35
  854. package/dist/cjs/src/stories/picture.stories.d.ts +0 -18
  855. package/dist/cjs/src/stories/popover.stories.d.ts +0 -17
  856. package/dist/cjs/src/stories/radio.stories.d.ts +0 -39
  857. package/dist/cjs/src/stories/skeleton.stories.d.ts +0 -20
  858. package/dist/cjs/src/stories/text.stories.d.ts +0 -94
  859. package/dist/cjs/src/types/index.d.ts +0 -0
  860. package/dist/cjs/src/types/props.d.ts +0 -47
  861. package/dist/cjs/stories/aplusdesc.stories.d.ts +0 -27
  862. package/dist/cjs/stories/aplusdesc.stories.js +0 -2
  863. package/dist/cjs/stories/aplusdesc.stories.js.map +0 -7
  864. package/dist/cjs/stories/download.stories.d.ts +0 -18
  865. package/dist/cjs/stories/download.stories.js +0 -2
  866. package/dist/cjs/stories/download.stories.js.map +0 -7
  867. package/dist/cjs/stories/features.stories.d.ts +0 -21
  868. package/dist/cjs/stories/features.stories.js +0 -2
  869. package/dist/cjs/stories/features.stories.js.map +0 -7
  870. package/dist/cjs/stories/footcharger.stories.d.ts +0 -19
  871. package/dist/cjs/stories/footcharger.stories.js +0 -2
  872. package/dist/cjs/stories/footcharger.stories.js.map +0 -7
  873. package/dist/cjs/stories/giftbox.stories.d.ts +0 -18
  874. package/dist/cjs/stories/giftbox.stories.js +0 -2
  875. package/dist/cjs/stories/giftbox.stories.js.map +0 -7
  876. package/dist/cjs/stories/graphicMore.stories.d.ts +0 -19
  877. package/dist/cjs/stories/graphicMore.stories.js +0 -2
  878. package/dist/cjs/stories/graphicMore.stories.js.map +0 -7
  879. package/dist/cjs/stories/selectstore.stories.d.ts +0 -18
  880. package/dist/cjs/stories/selectstore.stories.js +0 -2
  881. package/dist/cjs/stories/selectstore.stories.js.map +0 -7
  882. package/dist/cjs/stories/shelf.stories.d.ts +0 -17
  883. package/dist/cjs/tailwind.config.d.ts +0 -253
  884. package/dist/cjs/tests/BrandEquity.test.d.ts +0 -1
  885. package/dist/cjs/tests/Ksp.test.d.ts +0 -1
  886. package/dist/cjs/tests/MarqueeReview.test.d.ts +0 -1
  887. package/dist/cjs/tests/Title.test.d.ts +0 -1
  888. package/dist/cjs/tests/badge.test.d.ts +0 -1
  889. package/dist/cjs/tests/button.test.d.ts +0 -1
  890. package/dist/cjs/tests/card.test.d.ts +0 -1
  891. package/dist/cjs/tests/carousel.test.d.ts +0 -1
  892. package/dist/cjs/tests/featureCards.test.d.ts +0 -1
  893. package/dist/cjs/tests/featureShowcase.test.d.ts +0 -1
  894. package/dist/cjs/tests/heading.test.d.ts +0 -1
  895. package/dist/cjs/tests/imageTextFeature.test.d.ts +0 -1
  896. package/dist/cjs/tests/imageWithText.test.d.ts +0 -1
  897. package/dist/cjs/tests/input.test.d.ts +0 -1
  898. package/dist/cjs/tests/jest.setup.d.ts +0 -1
  899. package/dist/cjs/tests/productHero.test.d.ts +0 -1
  900. package/dist/cjs/tests/specsComparison.test.d.ts +0 -1
  901. package/dist/cjs/tests/tabWithImage.test.d.ts +0 -1
  902. package/dist/cjs/tests/tabs.test.d.ts +0 -1
  903. package/dist/cjs/tests/tabsWithMedia.test.d.ts +0 -1
  904. package/dist/cjs/tests/text.test.d.ts +0 -1
  905. package/dist/cjs/tests/videoFeature.test.d.ts +0 -1
  906. package/dist/cjs/ui/src/biz-components/CollectionsFilters/FilterCardWrapItem.d.ts +0 -5
  907. package/dist/esm/apps/playground/utils/classnames.d.ts +0 -1
  908. package/dist/esm/apps/storefront/lib/utils/classnames.d.ts +0 -2
  909. package/dist/esm/biz-components/AccordionCards/useDebounce.d.ts +0 -6
  910. package/dist/esm/biz-components/CollectionShelves/CollectionShelvesItem.d.ts +0 -4
  911. package/dist/esm/biz-components/CollectionShelves/CollectionShelvesItem.js +0 -2
  912. package/dist/esm/biz-components/CollectionShelves/CollectionShelvesItem.js.map +0 -7
  913. package/dist/esm/biz-components/CollectionShelves/index.d.ts +0 -6
  914. package/dist/esm/biz-components/CollectionShelves/index.js +0 -2
  915. package/dist/esm/biz-components/CollectionShelves/index.js.map +0 -7
  916. package/dist/esm/biz-components/CollectionsBanner/HeroBanner.d.ts +0 -7
  917. package/dist/esm/biz-components/CollectionsBanner/index.d.ts +0 -7
  918. package/dist/esm/biz-components/CollectionsBanner/index.js +0 -2
  919. package/dist/esm/biz-components/CollectionsBanner/index.js.map +0 -7
  920. package/dist/esm/biz-components/CollectionsBanner/types.d.ts +0 -43
  921. package/dist/esm/biz-components/CollectionsBanner/types.js +0 -1
  922. package/dist/esm/biz-components/CollectionsBanner/types.js.map +0 -7
  923. package/dist/esm/biz-components/CollectionsFilters/AnimatedUL.d.ts +0 -9
  924. package/dist/esm/biz-components/CollectionsFilters/FilterCardWrap.d.ts +0 -18
  925. package/dist/esm/biz-components/CollectionsFilters/FilterCardWrap.js +0 -2
  926. package/dist/esm/biz-components/CollectionsFilters/FilterCardWrap.js.map +0 -7
  927. package/dist/esm/biz-components/CollectionsFilters/FilterCardWrapItem.d.ts +0 -10
  928. package/dist/esm/biz-components/CollectionsFilters/FilterCardWrapItem.js +0 -2
  929. package/dist/esm/biz-components/CollectionsFilters/FilterCardWrapItem.js.map +0 -7
  930. package/dist/esm/biz-components/CollectionsFilters/FilterHeader.d.ts +0 -13
  931. package/dist/esm/biz-components/CollectionsFilters/FilterHeader.js +0 -2
  932. package/dist/esm/biz-components/CollectionsFilters/FilterHeader.js.map +0 -7
  933. package/dist/esm/biz-components/CollectionsFilters/FilterList.d.ts +0 -14
  934. package/dist/esm/biz-components/CollectionsFilters/FilterList.js +0 -2
  935. package/dist/esm/biz-components/CollectionsFilters/FilterList.js.map +0 -7
  936. package/dist/esm/biz-components/CollectionsFilters/FilterTab.d.ts +0 -7
  937. package/dist/esm/biz-components/CollectionsFilters/FiterTab.d.ts +0 -7
  938. package/dist/esm/biz-components/CollectionsFilters/FiterTab.js +0 -2
  939. package/dist/esm/biz-components/CollectionsFilters/FiterTab.js.map +0 -7
  940. package/dist/esm/biz-components/CollectionsFilters/Helper.d.ts +0 -8
  941. package/dist/esm/biz-components/CollectionsFilters/MoblieSortFilter.d.ts +0 -8
  942. package/dist/esm/biz-components/CollectionsFilters/SortFilter.d.ts +0 -8
  943. package/dist/esm/biz-components/CollectionsFilters/component/AnimatedUL.d.ts +0 -5
  944. package/dist/esm/biz-components/CollectionsFilters/component/AnimatedUL.js +0 -2
  945. package/dist/esm/biz-components/CollectionsFilters/component/AnimatedUL.js.map +0 -7
  946. package/dist/esm/biz-components/CollectionsFilters/component/LoadingDots.d.ts +0 -6
  947. package/dist/esm/biz-components/CollectionsFilters/component/TabFilter.d.ts +0 -12
  948. package/dist/esm/biz-components/CollectionsFilters/component/TabFilter.js +0 -2
  949. package/dist/esm/biz-components/CollectionsFilters/component/TabFilter.js.map +0 -7
  950. package/dist/esm/biz-components/CollectionsFilters/component/filtersFun.d.ts +0 -12
  951. package/dist/esm/biz-components/CollectionsFilters/component/filtersFun.js +0 -2
  952. package/dist/esm/biz-components/CollectionsFilters/component/filtersFun.js.map +0 -7
  953. package/dist/esm/biz-components/CollectionsFilters/component/helper.d.ts +0 -81
  954. package/dist/esm/biz-components/CollectionsFilters/component/helper.js +0 -2
  955. package/dist/esm/biz-components/CollectionsFilters/component/helper.js.map +0 -7
  956. package/dist/esm/biz-components/CollectionsFilters/component/price.d.ts +0 -25
  957. package/dist/esm/biz-components/CollectionsFilters/component/price.js +0 -2
  958. package/dist/esm/biz-components/CollectionsFilters/component/price.js.map +0 -7
  959. package/dist/esm/biz-components/CollectionsFilters/component/priceProps.d.ts +0 -215
  960. package/dist/esm/biz-components/CollectionsFilters/component/priceProps.js +0 -2
  961. package/dist/esm/biz-components/CollectionsFilters/component/priceProps.js.map +0 -7
  962. package/dist/esm/biz-components/CollectionsFilters/data.d.ts +0 -24804
  963. package/dist/esm/biz-components/CollectionsFilters/index.d.ts +0 -23
  964. package/dist/esm/biz-components/CollectionsFilters/index.js +0 -2
  965. package/dist/esm/biz-components/CollectionsFilters/index.js.map +0 -7
  966. package/dist/esm/biz-components/CollectionsFilters/price.d.ts +0 -25
  967. package/dist/esm/biz-components/CollectionsFilters/priceProps.d.ts +0 -215
  968. package/dist/esm/biz-components/CollectionsFilters/tabFilter.d.ts +0 -10
  969. package/dist/esm/biz-components/CollectionsFilters/tabSwitch.d.ts +0 -9
  970. package/dist/esm/biz-components/Listing/ProductProvider.d.ts +0 -52
  971. package/dist/esm/biz-components/Listing/ProductProvider.js +0 -2
  972. package/dist/esm/biz-components/Listing/ProductProvider.js.map +0 -7
  973. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTabs/index.d.ts +0 -5
  974. package/dist/esm/biz-components/Listing/components/ProductCard/ProductSummary/types.d.ts +0 -2
  975. package/dist/esm/biz-components/Listing/hooks/use-options.d.ts +0 -3
  976. package/dist/esm/biz-components/Listing/hooks/use-options.js +0 -2
  977. package/dist/esm/biz-components/Listing/hooks/use-options.js.map +0 -7
  978. package/dist/esm/biz-components/MediaPlayerMulti/YouTubePlayer.d.ts +0 -3
  979. package/dist/esm/biz-components/Paginator/index.d.ts +0 -7
  980. package/dist/esm/biz-components/Paginator/index.js +0 -7
  981. package/dist/esm/biz-components/Paginator/index.js.map +0 -7
  982. package/dist/esm/biz-components/SectionHeading/SectionHeading.d.ts +0 -4
  983. package/dist/esm/biz-components/SectionHeading/index.d.ts +0 -0
  984. package/dist/esm/biz-components/SectionHeading/types.d.ts +0 -6
  985. package/dist/esm/biz-components/Shelf/Shelf.d.ts +0 -8
  986. package/dist/esm/biz-components/Shelf/index.d.ts +0 -1
  987. package/dist/esm/biz-components/Shelf/types.d.ts +0 -6
  988. package/dist/esm/biz-components/ShelfDisplay/couponType.d.ts +0 -50
  989. package/dist/esm/biz-components/ShelfDisplay/couponType.js +0 -1
  990. package/dist/esm/biz-components/ShelfDisplay/couponType.js.map +0 -7
  991. package/dist/esm/biz-components/ShelfDisplay/couponUtils.d.ts +0 -37
  992. package/dist/esm/biz-components/ShelfDisplay/couponUtils.js +0 -2
  993. package/dist/esm/biz-components/ShelfDisplay/couponUtils.js.map +0 -7
  994. package/dist/esm/biz-components/ShelfDisplay/handleCoupon.d.ts +0 -28
  995. package/dist/esm/biz-components/ShelfDisplay/handleCoupon.js +0 -2
  996. package/dist/esm/biz-components/ShelfDisplay/handleCoupon.js.map +0 -7
  997. package/dist/esm/biz-components/ShelfDisplay/tab.d.ts +0 -7
  998. package/dist/esm/biz-components/ShelfDisplay/useUDCGroup.d.ts +0 -0
  999. package/dist/esm/biz-components/ShelfDisplay/useUDCGroup.js +0 -2
  1000. package/dist/esm/biz-components/ShelfDisplay/useUDCGroup.js.map +0 -7
  1001. package/dist/esm/biz-components/TextMa/index.d.ts +0 -9
  1002. package/dist/esm/biz-components/TextMarquee/index.d.ts +0 -9
  1003. package/dist/esm/biz-components/TextMarquee/index.js +0 -2
  1004. package/dist/esm/biz-components/TextMarquee/index.js.map +0 -7
  1005. package/dist/esm/campaign-ui/tailwind.config.d.ts +0 -62
  1006. package/dist/esm/components/breadcrumb.d.ts +0 -12
  1007. package/dist/esm/components/breadcrumb.js +0 -2
  1008. package/dist/esm/components/breadcrumb.js.map +0 -7
  1009. package/dist/esm/components/col.d.ts +0 -29
  1010. package/dist/esm/components/dropdown.d.ts +0 -27
  1011. package/dist/esm/components/inputnumber.d.ts +0 -0
  1012. package/dist/esm/components/row.d.ts +0 -18
  1013. package/dist/esm/helpers/get-subtree.d.ts +0 -12
  1014. package/dist/esm/hooks/useEXposure.d.ts +0 -12
  1015. package/dist/esm/hooks/useMemberPrice.d.ts +0 -20
  1016. package/dist/esm/packages/ui/src/components/avatar.d.ts +0 -26
  1017. package/dist/esm/packages/ui/src/components/index.d.ts +0 -20
  1018. package/dist/esm/packages/ui/src/index.d.ts +0 -1
  1019. package/dist/esm/packages/ui/src/stories/avatar.stories.d.ts +0 -40
  1020. package/dist/esm/packages/ui/src/stories/badge.stories.d.ts +0 -26
  1021. package/dist/esm/packages/ui/src/stories/button.stories.d.ts +0 -48
  1022. package/dist/esm/packages/ui/src/stories/checkbox.stories.d.ts +0 -46
  1023. package/dist/esm/packages/ui/src/stories/container.stories.d.ts +0 -36
  1024. package/dist/esm/packages/ui/src/stories/dialog.stories.d.ts +0 -20
  1025. package/dist/esm/packages/ui/src/stories/grid.stories.d.ts +0 -42
  1026. package/dist/esm/packages/ui/src/stories/heading.stories.d.ts +0 -82
  1027. package/dist/esm/packages/ui/src/stories/input.stories.d.ts +0 -35
  1028. package/dist/esm/packages/ui/src/stories/picture.stories.d.ts +0 -18
  1029. package/dist/esm/packages/ui/src/stories/popover.stories.d.ts +0 -17
  1030. package/dist/esm/packages/ui/src/stories/radio.stories.d.ts +0 -39
  1031. package/dist/esm/packages/ui/src/stories/skeleton.stories.d.ts +0 -20
  1032. package/dist/esm/packages/ui/src/stories/tabs.stories.d.ts +0 -373
  1033. package/dist/esm/packages/ui/src/stories/text.stories.d.ts +0 -94
  1034. package/dist/esm/src/biz-components/AccordionCards/index.d.ts +0 -38
  1035. package/dist/esm/src/biz-components/AiuiProvider/index.d.ts +0 -16
  1036. package/dist/esm/src/biz-components/AplusDesc/index.d.ts +0 -22
  1037. package/dist/esm/src/biz-components/BrandEquity/BrandEquity.d.ts +0 -6
  1038. package/dist/esm/src/biz-components/BrandEquity/index.d.ts +0 -1
  1039. package/dist/esm/src/biz-components/BrandEquity/types.d.ts +0 -18
  1040. package/dist/esm/src/biz-components/Category/SwiperCategory.d.ts +0 -19
  1041. package/dist/esm/src/biz-components/Category/index.d.ts +0 -35
  1042. package/dist/esm/src/biz-components/CreativeModule/index.d.ts +0 -21
  1043. package/dist/esm/src/biz-components/DownLoad/index.d.ts +0 -20
  1044. package/dist/esm/src/biz-components/Evaluate/index.d.ts +0 -37
  1045. package/dist/esm/src/biz-components/Faq/Faq.d.ts +0 -14
  1046. package/dist/esm/src/biz-components/Faq/index.d.ts +0 -2
  1047. package/dist/esm/src/biz-components/Faq/types.d.ts +0 -12
  1048. package/dist/esm/src/biz-components/FeatureCards/FeatureCards.d.ts +0 -7
  1049. package/dist/esm/src/biz-components/FeatureCards/index.d.ts +0 -2
  1050. package/dist/esm/src/biz-components/FeatureCards/types.d.ts +0 -25
  1051. package/dist/esm/src/biz-components/FeatureShowcase/FeatureShowcase.d.ts +0 -7
  1052. package/dist/esm/src/biz-components/FeatureShowcase/index.d.ts +0 -2
  1053. package/dist/esm/src/biz-components/FeatureShowcase/types.d.ts +0 -21
  1054. package/dist/esm/src/biz-components/Features/index.d.ts +0 -26
  1055. package/dist/esm/src/biz-components/FootCharger/index.d.ts +0 -12
  1056. package/dist/esm/src/biz-components/FooterNavigation/icons/Add.d.ts +0 -3
  1057. package/dist/esm/src/biz-components/FooterNavigation/icons/ArrowRight.d.ts +0 -3
  1058. package/dist/esm/src/biz-components/FooterNavigation/icons/Country.d.ts +0 -3
  1059. package/dist/esm/src/biz-components/FooterNavigation/icons/Subtract.d.ts +0 -3
  1060. package/dist/esm/src/biz-components/FooterNavigation/icons/index.d.ts +0 -5
  1061. package/dist/esm/src/biz-components/FooterNavigation/index.d.ts +0 -6
  1062. package/dist/esm/src/biz-components/FooterNavigation/types.d.ts +0 -15
  1063. package/dist/esm/src/biz-components/GiftBox/index.d.ts +0 -17
  1064. package/dist/esm/src/biz-components/Graphic/index.d.ts +0 -38
  1065. package/dist/esm/src/biz-components/GraphicAttractionBlock/index.d.ts +0 -25
  1066. package/dist/esm/src/biz-components/GraphicMore/index.d.ts +0 -22
  1067. package/dist/esm/src/biz-components/GraphicOverlay/GraphicOverlay.d.ts +0 -8
  1068. package/dist/esm/src/biz-components/GraphicOverlay/index.d.ts +0 -2
  1069. package/dist/esm/src/biz-components/GraphicOverlay/types.d.ts +0 -33
  1070. package/dist/esm/src/biz-components/HeaderNavigation/NavProvider.d.ts +0 -36
  1071. package/dist/esm/src/biz-components/HeaderNavigation/icons/AnkerLogo.d.ts +0 -3
  1072. package/dist/esm/src/biz-components/HeaderNavigation/icons/Cart.d.ts +0 -3
  1073. package/dist/esm/src/biz-components/HeaderNavigation/icons/Close.d.ts +0 -3
  1074. package/dist/esm/src/biz-components/HeaderNavigation/icons/DownArrow.d.ts +0 -3
  1075. package/dist/esm/src/biz-components/HeaderNavigation/icons/LeftArrow.d.ts +0 -3
  1076. package/dist/esm/src/biz-components/HeaderNavigation/icons/LogoLine.d.ts +0 -3
  1077. package/dist/esm/src/biz-components/HeaderNavigation/icons/Menu.d.ts +0 -3
  1078. package/dist/esm/src/biz-components/HeaderNavigation/icons/Polygon.d.ts +0 -3
  1079. package/dist/esm/src/biz-components/HeaderNavigation/icons/RightArrow.d.ts +0 -3
  1080. package/dist/esm/src/biz-components/HeaderNavigation/icons/Search.d.ts +0 -3
  1081. package/dist/esm/src/biz-components/HeaderNavigation/icons/User.d.ts +0 -3
  1082. package/dist/esm/src/biz-components/HeaderNavigation/icons/index.d.ts +0 -12
  1083. package/dist/esm/src/biz-components/HeaderNavigation/index.d.ts +0 -7
  1084. package/dist/esm/src/biz-components/HeaderNavigation/types.d.ts +0 -103
  1085. package/dist/esm/src/biz-components/HeaderNavigation/withCategory.d.ts +0 -9
  1086. package/dist/esm/src/biz-components/HeroBanner/Countdown.d.ts +0 -9
  1087. package/dist/esm/src/biz-components/HeroBanner/HeroBanner.d.ts +0 -7
  1088. package/dist/esm/src/biz-components/HeroBanner/index.d.ts +0 -1
  1089. package/dist/esm/src/biz-components/HeroBanner/types.d.ts +0 -49
  1090. package/dist/esm/src/biz-components/ImageTextFeature/ImageTextFeature.d.ts +0 -7
  1091. package/dist/esm/src/biz-components/ImageTextFeature/index.d.ts +0 -2
  1092. package/dist/esm/src/biz-components/ImageTextFeature/types.d.ts +0 -31
  1093. package/dist/esm/src/biz-components/ImageWithText/ImageWithText.d.ts +0 -7
  1094. package/dist/esm/src/biz-components/ImageWithText/index.d.ts +0 -2
  1095. package/dist/esm/src/biz-components/ImageWithText/types.d.ts +0 -119
  1096. package/dist/esm/src/biz-components/InlineVideo/index.d.ts +0 -16
  1097. package/dist/esm/src/biz-components/Ksp/index.d.ts +0 -40
  1098. package/dist/esm/src/biz-components/Listing/BizProductProvider.d.ts +0 -126
  1099. package/dist/esm/src/biz-components/Listing/components/PaidShipping/LearnMore.d.ts +0 -2
  1100. package/dist/esm/src/biz-components/Listing/components/PaidShipping/ShippingMethod.d.ts +0 -10
  1101. package/dist/esm/src/biz-components/Listing/components/PaidShipping/ShippingPolicyModal.d.ts +0 -25
  1102. package/dist/esm/src/biz-components/Listing/components/PaidShipping/index.d.ts +0 -12
  1103. package/dist/esm/src/biz-components/Listing/components/PaidShipping/type.d.ts +0 -30
  1104. package/dist/esm/src/biz-components/Listing/components/PaidShipping/utils.d.ts +0 -2
  1105. package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.d.ts +0 -38
  1106. package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductBenefitsTabs/index.d.ts +0 -30
  1107. package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.d.ts +0 -2
  1108. package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.d.ts +0 -2
  1109. package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.d.ts +0 -2
  1110. package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.d.ts +0 -2
  1111. package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductOptions/index.d.ts +0 -2
  1112. package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductDetail/index.d.ts +0 -2
  1113. package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductDetail/types.d.ts +0 -43
  1114. package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductGallery/components/CompareModal.d.ts +0 -2
  1115. package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductGallery/components/Select.d.ts +0 -21
  1116. package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductGallery/components/ShopifyColorOption.d.ts +0 -5
  1117. package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductGallery/components/SpecsModal.d.ts +0 -1
  1118. package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductGallery/index.d.ts +0 -2
  1119. package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductGallery/types.d.ts +0 -42
  1120. package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductGridBox.d.ts +0 -6
  1121. package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductSummary/index.d.ts +0 -3
  1122. package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductSummary/types.d.ts +0 -2
  1123. package/dist/esm/src/biz-components/Listing/components/ProductCard/index.d.ts +0 -2
  1124. package/dist/esm/src/biz-components/Listing/components/PurchaseBar/ProductActions/index.d.ts +0 -2
  1125. package/dist/esm/src/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/index.d.ts +0 -4
  1126. package/dist/esm/src/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/types.d.ts +0 -10
  1127. package/dist/esm/src/biz-components/Listing/components/PurchaseBar/index.d.ts +0 -3
  1128. package/dist/esm/src/biz-components/Listing/components/PurchaseBar/types.d.ts +0 -12
  1129. package/dist/esm/src/biz-components/Listing/components/index.d.ts +0 -3
  1130. package/dist/esm/src/biz-components/Listing/const.d.ts +0 -29
  1131. package/dist/esm/src/biz-components/Listing/hooks/use-variant-media.d.ts +0 -14
  1132. package/dist/esm/src/biz-components/Listing/hooks/use-variant.d.ts +0 -5
  1133. package/dist/esm/src/biz-components/Listing/hooks/useBenefits.d.ts +0 -50
  1134. package/dist/esm/src/biz-components/Listing/hooks/useCopy.d.ts +0 -5
  1135. package/dist/esm/src/biz-components/Listing/index.d.ts +0 -3
  1136. package/dist/esm/src/biz-components/Listing/types/graphql.d.ts +0 -7473
  1137. package/dist/esm/src/biz-components/Listing/types/product.d.ts +0 -141
  1138. package/dist/esm/src/biz-components/Listing/types/type-helper.d.ts +0 -5
  1139. package/dist/esm/src/biz-components/Listing/types.d.ts +0 -28
  1140. package/dist/esm/src/biz-components/Listing/utils/helper.d.ts +0 -36
  1141. package/dist/esm/src/biz-components/Listing/utils/index.d.ts +0 -37
  1142. package/dist/esm/src/biz-components/Listing/utils/textFormat.d.ts +0 -73
  1143. package/dist/esm/src/biz-components/Marquee/Marquee.d.ts +0 -18
  1144. package/dist/esm/src/biz-components/Marquee/index.d.ts +0 -2
  1145. package/dist/esm/src/biz-components/Marquee/type.d.ts +0 -33
  1146. package/dist/esm/src/biz-components/MarqueeReview/index.d.ts +0 -41
  1147. package/dist/esm/src/biz-components/MediaPlayerBase/index.d.ts +0 -6
  1148. package/dist/esm/src/biz-components/MediaPlayerBase/right.d.ts +0 -1
  1149. package/dist/esm/src/biz-components/MediaPlayerBase/types.d.ts +0 -18
  1150. package/dist/esm/src/biz-components/MediaPlayerMulti/index.d.ts +0 -6
  1151. package/dist/esm/src/biz-components/MediaPlayerMulti/types.d.ts +0 -22
  1152. package/dist/esm/src/biz-components/MediaPlayerSticky/index.d.ts +0 -9
  1153. package/dist/esm/src/biz-components/MediaPlayerSticky/types.d.ts +0 -21
  1154. package/dist/esm/src/biz-components/MemberEquity/index.d.ts +0 -7
  1155. package/dist/esm/src/biz-components/MemberEquity/types.d.ts +0 -30
  1156. package/dist/esm/src/biz-components/MultiLayoutGraphicBlock/MultiLayoutGraphicBlock.d.ts +0 -8
  1157. package/dist/esm/src/biz-components/MultiLayoutGraphicBlock/index.d.ts +0 -2
  1158. package/dist/esm/src/biz-components/MultiLayoutGraphicBlock/types.d.ts +0 -38
  1159. package/dist/esm/src/biz-components/NavigationSearch/index.d.ts +0 -4
  1160. package/dist/esm/src/biz-components/NavigationSearch/types.d.ts +0 -18
  1161. package/dist/esm/src/biz-components/ProductCompare/index.d.ts +0 -37
  1162. package/dist/esm/src/biz-components/ProductHero/ProductHero.d.ts +0 -7
  1163. package/dist/esm/src/biz-components/ProductHero/index.d.ts +0 -2
  1164. package/dist/esm/src/biz-components/ProductHero/types.d.ts +0 -21
  1165. package/dist/esm/src/biz-components/SearchPage/index.d.ts +0 -6
  1166. package/dist/esm/src/biz-components/SearchPage/types.d.ts +0 -58
  1167. package/dist/esm/src/biz-components/SelectStore/index.d.ts +0 -20
  1168. package/dist/esm/src/biz-components/ShelfDisplay/index.d.ts +0 -7
  1169. package/dist/esm/src/biz-components/ShelfDisplay/shelfDisplay.d.ts +0 -106
  1170. package/dist/esm/src/biz-components/ShelfDisplay/shelfDisplayItem.d.ts +0 -8
  1171. package/dist/esm/src/biz-components/ShelfDisplay/tabSwitch.d.ts +0 -9
  1172. package/dist/esm/src/biz-components/Slogan/index.d.ts +0 -9
  1173. package/dist/esm/src/biz-components/Slogan/types.d.ts +0 -31
  1174. package/dist/esm/src/biz-components/Spacer/index.d.ts +0 -7
  1175. package/dist/esm/src/biz-components/Spacer/types.d.ts +0 -10
  1176. package/dist/esm/src/biz-components/Specs/dropdown.d.ts +0 -11
  1177. package/dist/esm/src/biz-components/Specs/index.d.ts +0 -6
  1178. package/dist/esm/src/biz-components/SpecsComparison/SpecsComparison.d.ts +0 -7
  1179. package/dist/esm/src/biz-components/SpecsComparison/index.d.ts +0 -2
  1180. package/dist/esm/src/biz-components/SpecsComparison/types.d.ts +0 -34
  1181. package/dist/esm/src/biz-components/Subscribe/index.d.ts +0 -20
  1182. package/dist/esm/src/biz-components/SwiperBox/index.d.ts +0 -4
  1183. package/dist/esm/src/biz-components/SwiperBox/types.d.ts +0 -17
  1184. package/dist/esm/src/biz-components/TabWithImage/TabWithImage.d.ts +0 -7
  1185. package/dist/esm/src/biz-components/TabWithImage/index.d.ts +0 -2
  1186. package/dist/esm/src/biz-components/TabWithImage/types.d.ts +0 -29
  1187. package/dist/esm/src/biz-components/Tabs/Tabs.d.ts +0 -7
  1188. package/dist/esm/src/biz-components/Tabs/index.d.ts +0 -1
  1189. package/dist/esm/src/biz-components/Tabs/types.d.ts +0 -30
  1190. package/dist/esm/src/biz-components/TabsGroup/index.d.ts +0 -7
  1191. package/dist/esm/src/biz-components/TabsGroup/types.d.ts +0 -16
  1192. package/dist/esm/src/biz-components/TabsWithMedia/TabsWithMedia.d.ts +0 -7
  1193. package/dist/esm/src/biz-components/TabsWithMedia/index.d.ts +0 -2
  1194. package/dist/esm/src/biz-components/TabsWithMedia/types.d.ts +0 -41
  1195. package/dist/esm/src/biz-components/TextModal/index.d.ts +0 -14
  1196. package/dist/esm/src/biz-components/ThreeDCarousel/index.d.ts +0 -15
  1197. package/dist/esm/src/biz-components/Title/index.d.ts +0 -7
  1198. package/dist/esm/src/biz-components/Title/types.d.ts +0 -33
  1199. package/dist/esm/src/biz-components/VideoFeature/VideoFeature.d.ts +0 -7
  1200. package/dist/esm/src/biz-components/VideoFeature/index.d.ts +0 -2
  1201. package/dist/esm/src/biz-components/VideoFeature/types.d.ts +0 -19
  1202. package/dist/esm/src/biz-components/VideoModal/YouTubePlayer.d.ts +0 -4
  1203. package/dist/esm/src/biz-components/VideoModal/index.d.ts +0 -8
  1204. package/dist/esm/src/biz-components/WhyChoose/WhyChoose.d.ts +0 -14
  1205. package/dist/esm/src/biz-components/WhyChoose/index.d.ts +0 -2
  1206. package/dist/esm/src/biz-components/WhyChoose/types.d.ts +0 -12
  1207. package/dist/esm/src/biz-components/index.d.ts +0 -118
  1208. package/dist/esm/src/components/alert.d.ts +0 -17
  1209. package/dist/esm/src/components/avatar.d.ts +0 -26
  1210. package/dist/esm/src/components/badge.d.ts +0 -9
  1211. package/dist/esm/src/components/board.d.ts +0 -4
  1212. package/dist/esm/src/components/button.d.ts +0 -41
  1213. package/dist/esm/src/components/card.d.ts +0 -8
  1214. package/dist/esm/src/components/carousel.d.ts +0 -28
  1215. package/dist/esm/src/components/checkbox.d.ts +0 -12
  1216. package/dist/esm/src/components/color.d.ts +0 -13
  1217. package/dist/esm/src/components/container.d.ts +0 -24
  1218. package/dist/esm/src/components/dialog.d.ts +0 -21
  1219. package/dist/esm/src/components/drawer.d.ts +0 -13
  1220. package/dist/esm/src/components/drop-down.d.ts +0 -27
  1221. package/dist/esm/src/components/heading.d.ts +0 -17
  1222. package/dist/esm/src/components/index.d.ts +0 -26
  1223. package/dist/esm/src/components/input-number.d.ts +0 -78
  1224. package/dist/esm/src/components/input.d.ts +0 -22
  1225. package/dist/esm/src/components/link.d.ts +0 -45
  1226. package/dist/esm/src/components/loadingDots.d.ts +0 -6
  1227. package/dist/esm/src/components/picture.d.ts +0 -14
  1228. package/dist/esm/src/components/popover.d.ts +0 -6
  1229. package/dist/esm/src/components/radio.d.ts +0 -16
  1230. package/dist/esm/src/components/skeleton.d.ts +0 -9
  1231. package/dist/esm/src/components/tabs.d.ts +0 -11
  1232. package/dist/esm/src/components/text.d.ts +0 -32
  1233. package/dist/esm/src/components/theme.d.ts +0 -12
  1234. package/dist/esm/src/cpn-components/CpnBanner/index.d.ts +0 -3
  1235. package/dist/esm/src/cpn-components/CpnBanner/types.d.ts +0 -43
  1236. package/dist/esm/src/cpn-components/CpnCountDown/index.d.ts +0 -3
  1237. package/dist/esm/src/cpn-components/CpnCountDown/types.d.ts +0 -29
  1238. package/dist/esm/src/cpn-components/CpnNavigation/index.d.ts +0 -3
  1239. package/dist/esm/src/cpn-components/CpnNavigation/types.d.ts +0 -20
  1240. package/dist/esm/src/cpn-components/CpnProductCard/index.d.ts +0 -3
  1241. package/dist/esm/src/cpn-components/CpnProductCard/types.d.ts +0 -109
  1242. package/dist/esm/src/cpn-components/CpnTitle/index.d.ts +0 -3
  1243. package/dist/esm/src/cpn-components/CpnTitle/types.d.ts +0 -10
  1244. package/dist/esm/src/cpn-components/index.d.ts +0 -5
  1245. package/dist/esm/src/helpers/ScrollLoadVideo.d.ts +0 -15
  1246. package/dist/esm/src/helpers/component-props.d.ts +0 -7
  1247. package/dist/esm/src/helpers/constants.d.ts +0 -0
  1248. package/dist/esm/src/helpers/index.d.ts +0 -2
  1249. package/dist/esm/src/helpers/utils.d.ts +0 -6
  1250. package/dist/esm/src/hooks/useCountDown.d.ts +0 -10
  1251. package/dist/esm/src/hooks/useIntersectionObserver.d.ts +0 -17
  1252. package/dist/esm/src/hooks/useRollout.d.ts +0 -14
  1253. package/dist/esm/src/icons/spinner.d.ts +0 -5
  1254. package/dist/esm/src/index.d.ts +0 -1
  1255. package/dist/esm/src/shared/Styles.d.ts +0 -39
  1256. package/dist/esm/src/shared/getKeyPropsString.d.ts +0 -4
  1257. package/dist/esm/src/shared/mimeType.d.ts +0 -1
  1258. package/dist/esm/src/shared/simpleHash.d.ts +0 -1
  1259. package/dist/esm/src/shared/throttle.d.ts +0 -1
  1260. package/dist/esm/src/shared/track.d.ts +0 -1
  1261. package/dist/esm/src/shared/trackUrlRef.d.ts +0 -7
  1262. package/dist/esm/src/stories/avatar.stories.d.ts +0 -40
  1263. package/dist/esm/src/stories/badge.stories.d.ts +0 -26
  1264. package/dist/esm/src/stories/button.stories.d.ts +0 -48
  1265. package/dist/esm/src/stories/checkbox.stories.d.ts +0 -46
  1266. package/dist/esm/src/stories/container.stories.d.ts +0 -36
  1267. package/dist/esm/src/stories/dialog.stories.d.ts +0 -20
  1268. package/dist/esm/src/stories/grid.stories.d.ts +0 -42
  1269. package/dist/esm/src/stories/heading.stories.d.ts +0 -82
  1270. package/dist/esm/src/stories/input-number.stories.d.ts +0 -51
  1271. package/dist/esm/src/stories/input.stories.d.ts +0 -35
  1272. package/dist/esm/src/stories/picture.stories.d.ts +0 -18
  1273. package/dist/esm/src/stories/popover.stories.d.ts +0 -17
  1274. package/dist/esm/src/stories/radio.stories.d.ts +0 -39
  1275. package/dist/esm/src/stories/skeleton.stories.d.ts +0 -20
  1276. package/dist/esm/src/stories/text.stories.d.ts +0 -94
  1277. package/dist/esm/src/types/index.d.ts +0 -0
  1278. package/dist/esm/src/types/props.d.ts +0 -47
  1279. package/dist/esm/stories/aplusdesc.stories.d.ts +0 -27
  1280. package/dist/esm/stories/aplusdesc.stories.js +0 -2
  1281. package/dist/esm/stories/aplusdesc.stories.js.map +0 -7
  1282. package/dist/esm/stories/download.stories.d.ts +0 -18
  1283. package/dist/esm/stories/download.stories.js +0 -2
  1284. package/dist/esm/stories/download.stories.js.map +0 -7
  1285. package/dist/esm/stories/features.stories.d.ts +0 -21
  1286. package/dist/esm/stories/features.stories.js +0 -2
  1287. package/dist/esm/stories/features.stories.js.map +0 -7
  1288. package/dist/esm/stories/footcharger.stories.d.ts +0 -19
  1289. package/dist/esm/stories/footcharger.stories.js +0 -2
  1290. package/dist/esm/stories/footcharger.stories.js.map +0 -7
  1291. package/dist/esm/stories/giftbox.stories.d.ts +0 -18
  1292. package/dist/esm/stories/giftbox.stories.js +0 -2
  1293. package/dist/esm/stories/giftbox.stories.js.map +0 -7
  1294. package/dist/esm/stories/graphicMore.stories.d.ts +0 -19
  1295. package/dist/esm/stories/graphicMore.stories.js +0 -2
  1296. package/dist/esm/stories/graphicMore.stories.js.map +0 -7
  1297. package/dist/esm/stories/selectstore.stories.d.ts +0 -18
  1298. package/dist/esm/stories/selectstore.stories.js +0 -2
  1299. package/dist/esm/stories/selectstore.stories.js.map +0 -7
  1300. package/dist/esm/stories/shelf.stories.d.ts +0 -17
  1301. package/dist/esm/tailwind.config.d.ts +0 -253
  1302. package/dist/esm/tests/BrandEquity.test.d.ts +0 -1
  1303. package/dist/esm/tests/Ksp.test.d.ts +0 -1
  1304. package/dist/esm/tests/MarqueeReview.test.d.ts +0 -1
  1305. package/dist/esm/tests/Title.test.d.ts +0 -1
  1306. package/dist/esm/tests/badge.test.d.ts +0 -1
  1307. package/dist/esm/tests/button.test.d.ts +0 -1
  1308. package/dist/esm/tests/card.test.d.ts +0 -1
  1309. package/dist/esm/tests/carousel.test.d.ts +0 -1
  1310. package/dist/esm/tests/featureCards.test.d.ts +0 -1
  1311. package/dist/esm/tests/featureShowcase.test.d.ts +0 -1
  1312. package/dist/esm/tests/heading.test.d.ts +0 -1
  1313. package/dist/esm/tests/imageTextFeature.test.d.ts +0 -1
  1314. package/dist/esm/tests/imageWithText.test.d.ts +0 -1
  1315. package/dist/esm/tests/input.test.d.ts +0 -1
  1316. package/dist/esm/tests/jest.setup.d.ts +0 -1
  1317. package/dist/esm/tests/productHero.test.d.ts +0 -1
  1318. package/dist/esm/tests/specsComparison.test.d.ts +0 -1
  1319. package/dist/esm/tests/tabWithImage.test.d.ts +0 -1
  1320. package/dist/esm/tests/tabs.test.d.ts +0 -1
  1321. package/dist/esm/tests/tabsWithMedia.test.d.ts +0 -1
  1322. package/dist/esm/tests/text.test.d.ts +0 -1
  1323. package/dist/esm/tests/videoFeature.test.d.ts +0 -1
  1324. package/dist/esm/ui/src/biz-components/CollectionsFilters/FilterCardWrapItem.d.ts +0 -5
  1325. /package/dist/cjs/{src/hooks → hooks}/useExposure.d.ts +0 -0
  1326. /package/dist/esm/{src/hooks → hooks}/useExposure.d.ts +0 -0
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../../../src/biz-components/Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.tsx"],
4
- "sourcesContent": ["import { Text, Picture, Checkbox } from '../../../../../../components/index.js'\nimport { cn } from '../../../../../../helpers/index.js'\nimport { useMemo } from 'react'\nimport { useBizProductContext } from '../../../../BizProductProvider.js'\nimport { formatPrice } from '../../../../utils/index.js'\nimport { useAiuiContext } from '../../../../../AiuiProvider/index.js'\nimport type { ProductVariant, ProductPrice } from '../../../../types/product'\nimport { withLayout } from '../../../../../../shared/Styles.js'\n\nconst ProductExchangePurchase = () => {\n const { locale = 'us' } = useAiuiContext()\n const {\n checkedExchangePurchase,\n exchangePurchase,\n setCheckedBundle,\n setJoinedRecommendBuyProducts,\n setSavingDetail,\n setCheckedExchangePurchase,\n joinedRecommendBuyProducts,\n savingDetail,\n setAddOrder,\n } = useBizProductContext()\n const { title, giftList = [], freeLabel } = exchangePurchase || {}\n const availableGifts = useMemo(() => giftList?.filter(item => item.availableForSale), [giftList])\n\n const handleCheckboxClick = (value: ProductVariant) => {\n if (checkedExchangePurchase?.id === value.id) {\n setCheckedExchangePurchase?.(undefined)\n setJoinedRecommendBuyProducts?.({\n ...joinedRecommendBuyProducts,\n exchange: {\n value: undefined,\n canOperate: true,\n },\n })\n setSavingDetail?.({ ...savingDetail, exchangePurchase: 0 })\n // \u4ECE\u6DFB\u52A0\u987A\u5E8F\u4E2D\u79FB\u9664\n setAddOrder?.(prev => prev.filter(t => t !== 'exchange'))\n } else {\n setCheckedExchangePurchase?.(value)\n setJoinedRecommendBuyProducts?.({\n ...joinedRecommendBuyProducts,\n exchange: {\n value,\n canOperate: false,\n },\n })\n // \u6DFB\u52A0\u5230\u987A\u5E8F\u6570\u7EC4\u7684\u672B\u5C3E\n setAddOrder?.(prev => {\n // \u5982\u679C\u5DF2\u7ECF\u5B58\u5728\uFF0C\u5148\u79FB\u9664\u518D\u6DFB\u52A0\u5230\u672B\u5C3E\n const filtered = prev.filter(t => t !== 'exchange')\n return [...filtered, 'exchange']\n })\n }\n }\n\n if (!availableGifts?.length) return null\n\n return (\n <div className=\"ipc-product-detail-exchange-purchase\">\n <Text size={3} className=\"font-bold leading-[1.2]\" html={title} />\n <div className=\"laptop:grid-cols-2 laptop-md:grid-cols-1 lg-desktop:mt-4 mt-3 grid grid-cols-1 gap-3\">\n {availableGifts.map((gift: ProductVariant & { finalPrice?: ProductPrice }) => (\n <div\n key={gift.id}\n className={cn('rounded-box flex items-center gap-2 border-2 border-[#E4E5E6] px-4 text-left font-bold', {\n ['border-brand']: checkedExchangePurchase?.id === gift.id,\n })}\n >\n <Checkbox\n onCheckedChange={() => handleCheckboxClick(gift)}\n size=\"lg\"\n className={cn('rounded-full border-2 border-[#E4E5E6]', {\n 'border-brand': checkedExchangePurchase?.id === gift.id,\n })}\n id={gift.id}\n checked={checkedExchangePurchase?.id === gift.id}\n value={gift.id}\n ></Checkbox>\n <label htmlFor={gift.id} className=\"flex w-full cursor-pointer items-center justify-between gap-4 py-6\">\n <div className=\"flex items-center gap-2\">\n <Picture source={gift.image?.url} className=\"size-12 shrink-0\" />\n <Text\n className=\"laptop:text-[16px] lg-desktop:text-[18px] line-clamp-2 text-sm font-bold\"\n html={gift.product.title}\n />\n </div>\n <div className=\"tablet:flex-row flex shrink-0 flex-col items-center gap-1\">\n <Text\n className=\"laptop:text-[20px] lg-desktop:text-2xl text-base font-bold\"\n html={formatPrice({\n amount: gift?.finalPrice?.amount || 0,\n locale,\n currencyCode: gift?.finalPrice?.currencyCode || 'USD',\n })}\n />\n <Text\n className=\"laptop:text-[20px] lg-desktop:text-2xl text-base font-bold text-[#6D6D6F] line-through\"\n html={formatPrice({\n amount: gift.price.amount,\n locale,\n currencyCode: gift.price.currencyCode,\n })}\n />\n </div>\n </label>\n </div>\n ))}\n </div>\n </div>\n )\n}\n\nexport default withLayout(ProductExchangePurchase)\n"],
5
- "mappings": "AA4DM,cAAAA,EAoBQ,QAAAC,MApBR,oBA5DN,OAAS,QAAAC,EAAM,WAAAC,EAAS,YAAAC,MAAgB,wCACxC,OAAS,MAAAC,MAAU,qCACnB,OAAS,WAAAC,MAAe,QACxB,OAAS,wBAAAC,MAA4B,oCACrC,OAAS,eAAAC,MAAmB,6BAC5B,OAAS,kBAAAC,MAAsB,uCAE/B,OAAS,cAAAC,MAAkB,qCAE3B,MAAMC,EAA0B,IAAM,CACpC,KAAM,CAAE,OAAAC,EAAS,IAAK,EAAIH,EAAe,EACnC,CACJ,wBAAAI,EACA,iBAAAC,EACA,iBAAAC,EACA,8BAAAC,EACA,gBAAAC,EACA,2BAAAC,EACA,2BAAAC,EACA,aAAAC,EACA,YAAAC,CACF,EAAId,EAAqB,EACnB,CAAE,MAAAe,EAAO,SAAAC,EAAW,CAAC,EAAG,UAAAC,CAAU,EAAIV,GAAoB,CAAC,EAC3DW,EAAiBnB,EAAQ,IAAMiB,GAAU,OAAOG,GAAQA,EAAK,gBAAgB,EAAG,CAACH,CAAQ,CAAC,EAE1FI,EAAuBC,GAA0B,CACjDf,GAAyB,KAAOe,EAAM,IACxCV,IAA6B,MAAS,EACtCF,IAAgC,CAC9B,GAAGG,EACH,SAAU,CACR,MAAO,OACP,WAAY,EACd,CACF,CAAC,EACD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,yFACV,KAAMM,EAAY,CAChB,OAAQuB,EAAK,MAAM,OACnB,OAAAnB,EACA,aAAcmB,EAAK,MAAM,YAC3B,CAAC,EACH,GACF,GACF,IAzCKA,EAAK,EA0CZ,CACD,EACH,GACF,EArDkC,IAuDtC,EAEA,IAAOC,EAAQtB,EAAWC,CAAuB",
4
+ "sourcesContent": ["import { Text, Picture, Checkbox } from '../../../../../../components/index.js'\nimport { cn } from '../../../../../../helpers/index.js'\nimport { useMemo } from 'react'\nimport { useBizProductContext } from '../../../../BizProductProvider.js'\nimport { formatPrice } from '../../../../utils/index.js'\nimport { useAiuiContext } from '../../../../../AiuiProvider/index.js'\nimport type { ProductVariant, ProductPrice } from '../../../../types/product'\nimport { withLayout } from '../../../../../../shared/Styles.js'\n\nconst ProductExchangePurchase = () => {\n const { locale = 'us' } = useAiuiContext()\n const {\n checkedExchangePurchase,\n exchangePurchase,\n setCheckedBundle,\n setJoinedRecommendBuyProducts,\n setSavingDetail,\n setCheckedExchangePurchase,\n joinedRecommendBuyProducts,\n savingDetail,\n setAddOrder,\n } = useBizProductContext()\n const { title, giftList = [], freeLabel } = exchangePurchase || {}\n const availableGifts = useMemo(() => giftList?.filter(item => item.availableForSale), [giftList])\n\n const handleCheckboxClick = (value: ProductVariant) => {\n if (checkedExchangePurchase?.id === value.id) {\n setCheckedExchangePurchase?.(undefined)\n setJoinedRecommendBuyProducts?.({\n ...joinedRecommendBuyProducts,\n exchange: {\n value: undefined,\n canOperate: true,\n },\n })\n setSavingDetail?.({ ...savingDetail, exchangePurchase: 0 })\n // \u4ECE\u6DFB\u52A0\u987A\u5E8F\u4E2D\u79FB\u9664\n setAddOrder?.(prev => prev.filter(t => t !== 'exchange'))\n } else {\n setCheckedExchangePurchase?.(value)\n setJoinedRecommendBuyProducts?.({\n ...joinedRecommendBuyProducts,\n exchange: {\n value,\n canOperate: false,\n },\n })\n // \u6DFB\u52A0\u5230\u987A\u5E8F\u6570\u7EC4\u7684\u672B\u5C3E\n setAddOrder?.(prev => {\n // \u5982\u679C\u5DF2\u7ECF\u5B58\u5728\uFF0C\u5148\u79FB\u9664\u518D\u6DFB\u52A0\u5230\u672B\u5C3E\n const filtered = prev.filter(t => t !== 'exchange')\n return [...filtered, 'exchange']\n })\n }\n }\n\n if (!availableGifts?.length) return null\n\n return (\n <div className=\"ipc-product-detail-exchange-purchase\">\n <Text size={3} className=\"font-bold leading-[1.2]\" html={title} />\n <div className=\"laptop:grid-cols-2 desktop:grid-cols-1 lg-desktop:mt-4 mt-3 grid grid-cols-1 gap-3\">\n {availableGifts.map((gift: ProductVariant & { finalPrice?: ProductPrice }) => (\n <div\n key={gift.id}\n className={cn('rounded-box flex items-center gap-2 border-2 border-[#E4E5E6] px-4 text-left font-bold', {\n ['border-brand']: checkedExchangePurchase?.id === gift.id,\n })}\n >\n <Checkbox\n onCheckedChange={() => handleCheckboxClick(gift)}\n size=\"lg\"\n className={cn('rounded-full border-2 border-[#E4E5E6]', {\n 'border-brand': checkedExchangePurchase?.id === gift.id,\n })}\n id={gift.id}\n checked={checkedExchangePurchase?.id === gift.id}\n value={gift.id}\n ></Checkbox>\n <label htmlFor={gift.id} className=\"flex w-full cursor-pointer items-center justify-between gap-4 py-6\">\n <div className=\"flex items-center gap-2\">\n <Picture source={gift.image?.url} className=\"size-12 shrink-0\" />\n <Text\n className=\"laptop:text-[16px] lg-desktop:text-[18px] line-clamp-2 text-sm font-bold\"\n html={gift.product.title}\n />\n </div>\n <div className=\"tablet:flex-row flex shrink-0 flex-col items-center gap-1\">\n <Text\n className=\"laptop:text-[20px] lg-desktop:text-2xl text-base font-bold\"\n html={formatPrice({\n amount: gift?.finalPrice?.amount || 0,\n locale,\n currencyCode: gift?.finalPrice?.currencyCode || 'USD',\n })}\n />\n <Text\n className=\"laptop:text-[20px] lg-desktop:text-2xl text-base font-bold text-[#6D6D6F] line-through\"\n html={formatPrice({\n amount: gift.price.amount,\n locale,\n currencyCode: gift.price.currencyCode,\n })}\n />\n </div>\n </label>\n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,UAAU,uCACb,UAAAD,EAACE,EAAA,CAAK,KAAM,EAAG,UAAU,0BAA0B,KAAMoB,EAAO,EAChEtB,EAAC,OAAI,UAAU,qFACZ,SAAAyB,EAAe,IAAKM,GACnB9B,EAAC,OAEC,UAAWI,EAAG,yFAA0F,CACrG,eAAiBQ,GAAyB,KAAOkB,EAAK,EACzD,CAAC,EAED,UAAA/B,EAACI,EAAA,CACC,gBAAiB,IAAMuB,EAAoBI,CAAI,EAC/C,KAAK,KACL,UAAW1B,EAAG,yCAA0C,CACtD,eAAgBQ,GAAyB,KAAOkB,EAAK,EACvD,CAAC,EACD,GAAIA,EAAK,GACT,QAASlB,GAAyB,KAAOkB,EAAK,GAC9C,MAAOA,EAAK,GACb,EACD9B,EAAC,SAAM,QAAS8B,EAAK,GAAI,UAAU,qEACjC,UAAA9B,EAAC,OAAI,UAAU,0BACb,UAAAD,EAACG,EAAA,CAAQ,OAAQ4B,EAAK,OAAO,IAAK,UAAU,mBAAmB,EAC/D/B,EAACE,EAAA,CACC,UAAU,2EACV,KAAM6B,EAAK,QAAQ,MACrB,GACF,EACA9B,EAAC,OAAI,UAAU,4DACb,UAAAD,EAACE,EAAA,CACC,UAAU,6DACV,KAAMM,EAAY,CAChB,OAAQuB,GAAM,YAAY,QAAU,EACpC,OAAAnB,EACA,aAAcmB,GAAM,YAAY,cAAgB,KAClD,CAAC,EACH,EACA/B,EAACE,EAAA,CACC,UAAU,yFACV,KAAMM,EAAY,CAChB,OAAQuB,EAAK,MAAM,OACnB,OAAAnB,EACA,aAAcmB,EAAK,MAAM,YAC3B,CAAC,EACH,GACF,GACF,IAzCKA,EAAK,EA0CZ,CACD,EACH,GACF,EArDkC,IAuDtC,EAEA,IAAOC,EAAQtB,EAAWC,CAAuB",
6
6
  "names": ["jsx", "jsxs", "Text", "Picture", "Checkbox", "cn", "useMemo", "useBizProductContext", "formatPrice", "useAiuiContext", "withLayout", "ProductExchangePurchase", "locale", "checkedExchangePurchase", "exchangePurchase", "setCheckedBundle", "setJoinedRecommendBuyProducts", "setSavingDetail", "setCheckedExchangePurchase", "joinedRecommendBuyProducts", "savingDetail", "setAddOrder", "title", "giftList", "freeLabel", "availableGifts", "item", "handleCheckboxClick", "value", "prev", "t", "gift", "ProductExchangePurchase_default"]
7
7
  }
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  declare const _default: import("react").ForwardRefExoticComponent<Omit<object, keyof import("../../../../../../shared/Styles.js").StylesProps> & Partial<import("../../../../../../shared/Styles.js").StylesProps & import("../../../../../../shared/Styles.js").ContainerProps> & {
3
- className?: string | undefined;
4
- data?: Record<string, any> | undefined;
2
+ className?: string;
3
+ data?: Record<string, any>;
5
4
  } & import("react").RefAttributes<any>>;
6
5
  export default _default;
@@ -1,2 +1,2 @@
1
- import{jsx as t,jsxs as r}from"react/jsx-runtime";import{Text as l,Picture as N,Checkbox as y}from"../../../../../../components/index.js";import{cn as f}from"../../../../../../helpers/index.js";import{useMemo as P}from"react";import{useBizProductContext as E}from"../../../../BizProductProvider.js";import{formatPrice as G}from"../../../../utils/index.js";import{useAiuiContext as w}from"../../../../../AiuiProvider/index.js";import{withLayout as z}from"../../../../../../shared/Styles.js";const B=()=>{const{locale:u="us"}=w(),{freeGift:x,checkedGift:o,setCheckedGift:d,setCheckedBundle:D,setSavingDetail:b,savingDetail:h,setJoinedRecommendBuyProducts:a,joinedRecommendBuyProducts:s,setAddOrder:c}=E(),{title:g,giftList:n=[],freeLabel:k}=x||{},m=P(()=>n?.filter(e=>e.availableForSale),[n]),v=e=>{o?.id===e.id?(d?.(void 0),b?.({...h,freeGift:0}),a?.({...s,gift:{value:void 0,canOperate:!0}}),c?.(i=>i.filter(p=>p!=="gift"))):(d?.(e),a?.({...s,gift:{value:e,canOperate:!1}}),c?.(i=>[...i.filter(C=>C!=="gift"),"gift"]))};return m?.length?r("div",{className:"ipc-product-detail-free-gift",children:[t(l,{size:3,className:"font-bold leading-[1.2]",html:g}),t("div",{className:"laptop:grid-cols-2 laptop-md:grid-cols-1 lg-desktop:mt-4 mt-3 grid grid-cols-1 gap-3",children:m.map(e=>r("div",{className:f("rounded-box flex items-center gap-2 border-2 border-[#E4E5E6] px-4 text-left font-bold",{"border-brand":o?.id===e.id}),children:[t(y,{onCheckedChange:()=>v(e),size:"lg",className:f("rounded-full border-2 border-[#E4E5E6]",{"border-brand":o?.id===e.id}),id:e.id,checked:o?.id===e.id,value:e.id}),r("label",{htmlFor:e.id,className:"flex w-full cursor-pointer items-center justify-between gap-4 py-6",children:[r("div",{className:"flex items-center gap-2",children:[t(N,{source:e.image?.url,className:"size-12 shrink-0"}),t(l,{className:"laptop:text-[16px] lg-desktop:text-[18px] line-clamp-2 text-sm font-bold",html:e.product.title})]}),r("div",{className:"tablet:flex-row flex shrink-0 flex-col items-center gap-1",children:[t(l,{className:"laptop:text-[20px] lg-desktop:text-2xl text-base font-bold",html:k}),t(l,{className:"laptop:text-[20px] lg-desktop:text-2xl text-base font-bold text-[#6D6D6F] line-through",html:G({amount:e.price.amount,locale:u,currencyCode:e.price.currencyCode})})]})]})]},e.id))})]}):null};var J=z(B);export{J as default};
1
+ import{jsx as t,jsxs as r}from"react/jsx-runtime";import{Text as l,Picture as N,Checkbox as y}from"../../../../../../components/index.js";import{cn as f}from"../../../../../../helpers/index.js";import{useMemo as P}from"react";import{useBizProductContext as E}from"../../../../BizProductProvider.js";import{formatPrice as G}from"../../../../utils/index.js";import{useAiuiContext as w}from"../../../../../AiuiProvider/index.js";import{withLayout as z}from"../../../../../../shared/Styles.js";const B=()=>{const{locale:u="us"}=w(),{freeGift:x,checkedGift:o,setCheckedGift:d,setCheckedBundle:D,setSavingDetail:b,savingDetail:h,setJoinedRecommendBuyProducts:a,joinedRecommendBuyProducts:s,setAddOrder:c}=E(),{title:g,giftList:n=[],freeLabel:k}=x||{},m=P(()=>n?.filter(e=>e.availableForSale),[n]),v=e=>{o?.id===e.id?(d?.(void 0),b?.({...h,freeGift:0}),a?.({...s,gift:{value:void 0,canOperate:!0}}),c?.(i=>i.filter(p=>p!=="gift"))):(d?.(e),a?.({...s,gift:{value:e,canOperate:!1}}),c?.(i=>[...i.filter(C=>C!=="gift"),"gift"]))};return m?.length?r("div",{className:"ipc-product-detail-free-gift",children:[t(l,{size:3,className:"font-bold leading-[1.2]",html:g}),t("div",{className:"laptop:grid-cols-2 desktop:grid-cols-1 lg-desktop:mt-4 mt-3 grid grid-cols-1 gap-3",children:m.map(e=>r("div",{className:f("rounded-box flex items-center gap-2 border-2 border-[#E4E5E6] px-4 text-left font-bold",{"border-brand":o?.id===e.id}),children:[t(y,{onCheckedChange:()=>v(e),size:"lg",className:f("rounded-full border-2 border-[#E4E5E6]",{"border-brand":o?.id===e.id}),id:e.id,checked:o?.id===e.id,value:e.id}),r("label",{htmlFor:e.id,className:"flex w-full cursor-pointer items-center justify-between gap-4 py-6",children:[r("div",{className:"flex items-center gap-2",children:[t(N,{source:e.image?.url,className:"size-12 shrink-0"}),t(l,{className:"laptop:text-[16px] lg-desktop:text-[18px] line-clamp-2 text-sm font-bold",html:e.product.title})]}),r("div",{className:"tablet:flex-row flex shrink-0 flex-col items-center gap-1",children:[t(l,{className:"laptop:text-[20px] lg-desktop:text-2xl text-base font-bold",html:k}),t(l,{className:"laptop:text-[20px] lg-desktop:text-2xl text-base font-bold text-[#6D6D6F] line-through",html:G({amount:e.price.amount,locale:u,currencyCode:e.price.currencyCode})})]})]})]},e.id))})]}):null};var j=z(B);export{j as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../../../src/biz-components/Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.tsx"],
4
- "sourcesContent": ["import { Text, Picture, Checkbox } from '../../../../../../components/index.js'\nimport { cn } from '../../../../../../helpers/index.js'\nimport { useEffect, useMemo } from 'react'\nimport { useBizProductContext } from '../../../../BizProductProvider.js'\nimport { formatPrice } from '../../../../utils/index.js'\nimport { useAiuiContext } from '../../../../../AiuiProvider/index.js'\nimport type { ProductVariant } from '../../../../types/product'\nimport { withLayout } from '../../../../../../shared/Styles.js'\n\nconst ProductFreeGift = () => {\n const { locale = 'us' } = useAiuiContext()\n const {\n freeGift,\n checkedGift,\n setCheckedGift,\n setCheckedBundle,\n setSavingDetail,\n savingDetail,\n setJoinedRecommendBuyProducts,\n joinedRecommendBuyProducts,\n setAddOrder,\n } = useBizProductContext()\n const { title, giftList = [], freeLabel } = freeGift || {}\n const availableGifts = useMemo(() => giftList?.filter(item => item.availableForSale), [giftList])\n\n const handleCheckboxClick = (value: ProductVariant) => {\n if (checkedGift?.id === value.id) {\n setCheckedGift?.(undefined)\n setSavingDetail?.({ ...savingDetail, freeGift: 0 })\n setJoinedRecommendBuyProducts?.({\n ...joinedRecommendBuyProducts,\n gift: {\n value: undefined,\n canOperate: true,\n },\n })\n // \u4ECE\u6DFB\u52A0\u987A\u5E8F\u4E2D\u79FB\u9664\n setAddOrder?.(prev => prev.filter(t => t !== 'gift'))\n } else {\n setCheckedGift?.(value)\n setJoinedRecommendBuyProducts?.({\n ...joinedRecommendBuyProducts,\n gift: {\n value,\n canOperate: false,\n },\n })\n // \u6DFB\u52A0\u5230\u987A\u5E8F\u6570\u7EC4\u7684\u672B\u5C3E\n setAddOrder?.(prev => {\n // \u5982\u679C\u5DF2\u7ECF\u5B58\u5728\uFF0C\u5148\u79FB\u9664\u518D\u6DFB\u52A0\u5230\u672B\u5C3E\n const filtered = prev.filter(t => t !== 'gift')\n return [...filtered, 'gift']\n })\n }\n }\n\n // useEffect(() => {\n // // \u5982\u679C\u7B2C\u4E00\u4E2A\u793C\u7269\u53EF\u7528\uFF0C\u5219\u9009\u4E2D\u5B83\n // availableGifts?.[0] && handleCheckboxClick(availableGifts?.[0])\n // }, [availableGifts])\n\n if (!availableGifts?.length) return null\n\n return (\n <div className=\"ipc-product-detail-free-gift\">\n <Text size={3} className=\"font-bold leading-[1.2]\" html={title} />\n <div className=\"laptop:grid-cols-2 laptop-md:grid-cols-1 lg-desktop:mt-4 mt-3 grid grid-cols-1 gap-3\">\n {availableGifts.map(gift => (\n <div\n key={gift.id}\n className={cn('rounded-box flex items-center gap-2 border-2 border-[#E4E5E6] px-4 text-left font-bold', {\n ['border-brand']: checkedGift?.id === gift.id,\n })}\n >\n <Checkbox\n onCheckedChange={() => handleCheckboxClick(gift)}\n size=\"lg\"\n className={cn('rounded-full border-2 border-[#E4E5E6]', {\n 'border-brand': checkedGift?.id === gift.id,\n })}\n id={gift.id}\n checked={checkedGift?.id === gift.id}\n value={gift.id}\n ></Checkbox>\n <label htmlFor={gift.id} className=\"flex w-full cursor-pointer items-center justify-between gap-4 py-6\">\n <div className=\"flex items-center gap-2\">\n <Picture source={gift.image?.url} className=\"size-12 shrink-0\" />\n <Text\n className=\"laptop:text-[16px] lg-desktop:text-[18px] line-clamp-2 text-sm font-bold\"\n html={gift.product.title}\n />\n </div>\n <div className=\"tablet:flex-row flex shrink-0 flex-col items-center gap-1\">\n <Text className=\"laptop:text-[20px] lg-desktop:text-2xl text-base font-bold\" html={freeLabel} />\n <Text\n className=\"laptop:text-[20px] lg-desktop:text-2xl text-base font-bold text-[#6D6D6F] line-through\"\n html={formatPrice({\n amount: gift.price.amount,\n locale,\n currencyCode: gift.price.currencyCode,\n })}\n />\n </div>\n </label>\n </div>\n ))}\n </div>\n </div>\n )\n}\n\nexport default withLayout(ProductFreeGift)\n"],
5
- "mappings": "AAiEM,cAAAA,EAoBQ,QAAAC,MApBR,oBAjEN,OAAS,QAAAC,EAAM,WAAAC,EAAS,YAAAC,MAAgB,wCACxC,OAAS,MAAAC,MAAU,qCACnB,OAAoB,WAAAC,MAAe,QACnC,OAAS,wBAAAC,MAA4B,oCACrC,OAAS,eAAAC,MAAmB,6BAC5B,OAAS,kBAAAC,MAAsB,uCAE/B,OAAS,cAAAC,MAAkB,qCAE3B,MAAMC,EAAkB,IAAM,CAC5B,KAAM,CAAE,OAAAC,EAAS,IAAK,EAAIH,EAAe,EACnC,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AK,GAClC,MAAOA,EAAK,GACb,EACD9B,EAAC,SAAM,QAAS8B,EAAK,GAAI,UAAU,qEACjC,UAAA9B,EAAC,OAAI,UAAU,0BACb,UAAAD,EAACG,EAAA,CAAQ,OAAQ4B,EAAK,OAAO,IAAK,UAAU,mBAAmB,EAC/D/B,EAACE,EAAA,CACC,UAAU,2EACV,KAAM6B,EAAK,QAAQ,MACrB,GACF,EACA9B,EAAC,OAAI,UAAU,4DACb,UAAAD,EAACE,EAAA,CAAK,UAAU,6DAA6D,KAAMsB,EAAW,EAC9FxB,EAACE,EAAA,CACC,UAAU,yFACV,KAAMM,EAAY,CAChB,OAAQuB,EAAK,MAAM,OACnB,OAAAnB,EACA,aAAcmB,EAAK,MAAM,YAC3B,CAAC,EACH,GACF,GACF,IAlCKA,EAAK,EAmCZ,CACD,EACH,GACF,EA9CkC,IAgDtC,EAEA,IAAOC,EAAQtB,EAAWC,CAAe",
4
+ "sourcesContent": ["import { Text, Picture, Checkbox } from '../../../../../../components/index.js'\nimport { cn } from '../../../../../../helpers/index.js'\nimport { useMemo } from 'react'\nimport { useBizProductContext } from '../../../../BizProductProvider.js'\nimport { formatPrice } from '../../../../utils/index.js'\nimport { useAiuiContext } from '../../../../../AiuiProvider/index.js'\nimport type { ProductVariant } from '../../../../types/product'\nimport { withLayout } from '../../../../../../shared/Styles.js'\n\nconst ProductFreeGift = () => {\n const { locale = 'us' } = useAiuiContext()\n const {\n freeGift,\n checkedGift,\n setCheckedGift,\n setCheckedBundle,\n setSavingDetail,\n savingDetail,\n setJoinedRecommendBuyProducts,\n joinedRecommendBuyProducts,\n setAddOrder,\n } = useBizProductContext()\n const { title, giftList = [], freeLabel } = freeGift || {}\n const availableGifts = useMemo(() => giftList?.filter(item => item.availableForSale), [giftList])\n\n const handleCheckboxClick = (value: ProductVariant) => {\n if (checkedGift?.id === value.id) {\n setCheckedGift?.(undefined)\n setSavingDetail?.({ ...savingDetail, freeGift: 0 })\n setJoinedRecommendBuyProducts?.({\n ...joinedRecommendBuyProducts,\n gift: {\n value: undefined,\n canOperate: true,\n },\n })\n // \u4ECE\u6DFB\u52A0\u987A\u5E8F\u4E2D\u79FB\u9664\n setAddOrder?.(prev => prev.filter(t => t !== 'gift'))\n } else {\n setCheckedGift?.(value)\n setJoinedRecommendBuyProducts?.({\n ...joinedRecommendBuyProducts,\n gift: {\n value,\n canOperate: false,\n },\n })\n // \u6DFB\u52A0\u5230\u987A\u5E8F\u6570\u7EC4\u7684\u672B\u5C3E\n setAddOrder?.(prev => {\n // \u5982\u679C\u5DF2\u7ECF\u5B58\u5728\uFF0C\u5148\u79FB\u9664\u518D\u6DFB\u52A0\u5230\u672B\u5C3E\n const filtered = prev.filter(t => t !== 'gift')\n return [...filtered, 'gift']\n })\n }\n }\n\n if (!availableGifts?.length) return null\n\n return (\n <div className=\"ipc-product-detail-free-gift\">\n <Text size={3} className=\"font-bold leading-[1.2]\" html={title} />\n <div className=\"laptop:grid-cols-2 desktop:grid-cols-1 lg-desktop:mt-4 mt-3 grid grid-cols-1 gap-3\">\n {availableGifts.map(gift => (\n <div\n key={gift.id}\n className={cn('rounded-box flex items-center gap-2 border-2 border-[#E4E5E6] px-4 text-left font-bold', {\n ['border-brand']: checkedGift?.id === gift.id,\n })}\n >\n <Checkbox\n onCheckedChange={() => handleCheckboxClick(gift)}\n size=\"lg\"\n className={cn('rounded-full border-2 border-[#E4E5E6]', {\n 'border-brand': checkedGift?.id === gift.id,\n })}\n id={gift.id}\n checked={checkedGift?.id === gift.id}\n value={gift.id}\n ></Checkbox>\n <label htmlFor={gift.id} className=\"flex w-full cursor-pointer items-center justify-between gap-4 py-6\">\n <div className=\"flex items-center gap-2\">\n <Picture source={gift.image?.url} className=\"size-12 shrink-0\" />\n <Text\n className=\"laptop:text-[16px] lg-desktop:text-[18px] line-clamp-2 text-sm font-bold\"\n html={gift.product.title}\n />\n </div>\n <div className=\"tablet:flex-row flex shrink-0 flex-col items-center gap-1\">\n <Text className=\"laptop:text-[20px] lg-desktop:text-2xl text-base font-bold\" html={freeLabel} />\n <Text\n className=\"laptop:text-[20px] lg-desktop:text-2xl text-base font-bold text-[#6D6D6F] line-through\"\n html={formatPrice({\n amount: gift.price.amount,\n locale,\n currencyCode: gift.price.currencyCode,\n })}\n />\n </div>\n </label>\n </div>\n ))}\n </div>\n </div>\n )\n}\n\nexport default withLayout(ProductFreeGift)\n"],
5
+ "mappings": "AA4DM,cAAAA,EAoBQ,QAAAC,MApBR,oBA5DN,OAAS,QAAAC,EAAM,WAAAC,EAAS,YAAAC,MAAgB,wCACxC,OAAS,MAAAC,MAAU,qCACnB,OAAS,WAAAC,MAAe,QACxB,OAAS,wBAAAC,MAA4B,oCACrC,OAAS,eAAAC,MAAmB,6BAC5B,OAAS,kBAAAC,MAAsB,uCAE/B,OAAS,cAAAC,MAAkB,qCAE3B,MAAMC,EAAkB,IAAM,CAC5B,KAAM,CAAE,OAAAC,EAAS,IAAK,EAAIH,EAAe,EACnC,CACJ,SAAAI,EACA,YAAAC,EACA,eAAAC,EACA,iBAAAC,EACA,gBAAAC,EACA,aAAAC,EACA,8BAAAC,EACA,2BAAAC,EACA,YAAAC,CACF,EAAId,EAAqB,EACnB,CAAE,MAAAe,EAAO,SAAAC,EAAW,CAAC,EAAG,UAAAC,CAAU,EAAIX,GAAY,CAAC,EACnDY,EAAiBnB,EAAQ,IAAMiB,GAAU,OAAOG,GAAQA,EAAK,gBAAgB,EAAG,CAACH,CAAQ,CAAC,EAE1FI,EAAuBC,GAA0B,CACjDd,GAAa,KAAOc,EAAM,IAC5Bb,IAAiB,MAAS,EAC1BE,IAAkB,CAAE,GAAGC,EAAc,SAAU,CAAE,CAAC,EAClDC,IAAgC,CAC9B,GAAGC,EACH,KAAM,CACJ,MAAO,OACP,WAAY,EACd,CACF,CAAC,EAEDC,IAAcQ,GAAQA,EAAK,OAAOC,GAAKA,IAAM,MAAM,CAAC,IAEpDf,IAAiBa,CAAK,EACtBT,IAAgC,CAC9B,GAAGC,EACH,KAA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ProductContext", "formatPrice", "useAiuiContext", "withLayout", "ProductFreeGift", "locale", "freeGift", "checkedGift", "setCheckedGift", "setCheckedBundle", "setSavingDetail", "savingDetail", "setJoinedRecommendBuyProducts", "joinedRecommendBuyProducts", "setAddOrder", "title", "giftList", "freeLabel", "availableGifts", "item", "handleCheckboxClick", "value", "prev", "t", "gift", "ProductFreeGift_default"]
7
7
  }
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  declare const _default: import("react").ForwardRefExoticComponent<Omit<object, keyof import("../../../../../../shared/Styles.js").StylesProps> & Partial<import("../../../../../../shared/Styles.js").StylesProps & import("../../../../../../shared/Styles.js").ContainerProps> & {
3
- className?: string | undefined;
4
- data?: Record<string, any> | undefined;
2
+ className?: string;
3
+ data?: Record<string, any>;
5
4
  } & import("react").RefAttributes<any>>;
6
5
  export default _default;
@@ -1,6 +1,6 @@
1
- import{jsx as e,jsxs as s}from"react/jsx-runtime";import{Text as u,Picture as k,Button as w,Dialog as y,DialogContent as N,DialogTrigger as C}from"../../../../../../components/index.js";import{Content as f,List as T,Root as D,Trigger as E}from"@radix-ui/react-tabs";import{useCallback as v,useEffect as A,useMemo as L,useRef as x,useState as h}from"react";import{cn as P}from"../../../../../../helpers/index.js";import{useBizProductContext as _}from"../../../../BizProductProvider.js";import{withLayout as H}from"../../../../../../shared/Styles.js";import{gaTrack as I}from"../../../../../../shared/track.js";const R=()=>{const{product:i,variant:a}=_(),[g,p]=h(!1),l=L(()=>i?.payload?.components?.find(o=>o.componentKey==="ProductHighlight")?.data||{},[i?.payload]),[r,n]=h(l?.ksp?.[0]),t=v(o=>{I({event:"ga4Event",event_name:"lp_button",event_parameters:{page_group:`Product Detail Page${a.sku}`,position:l?.title||"",button_name:o||l?.view||""}})},[l?.title,l?.view,a.sku]);return s("div",{className:"ipc-product-detail-highlight",children:[s("div",{className:"flex items-center justify-between",children:[l?.title&&e(u,{size:3,className:"font-bold leading-[1.2]",html:l?.title}),s(y,{open:g,onOpenChange:p,children:[e(C,{asChild:!0,children:e(w,{variant:"link",className:"!p-0 text-base font-bold",onClick:()=>t(),children:l?.view})}),e(z,{ksp:l?.ksp||[],activeKspItem:r,setActiveKspItem:n,gaTrackEvent:t})]})]}),e("div",{className:"lg-desktop:mt-4 mt-3 flex flex-wrap gap-4",children:l?.ksp?.map(o=>e("div",{className:"product-highlight-item lg-desktop:h-[38px] lg-desktop:leading-[38px] h-[36px] cursor-pointer rounded-full bg-[#F5F5F7] px-4 leading-[36px] hover:bg-[#EAEAEC]",children:e(u,{size:3,onClick:()=>{n(o),p(!0),t(o?.title)},className:"lg-desktop:text-[16px] line-clamp-1 overflow-hidden break-all text-[14px] font-bold text-[#1D1D1F]",html:o?.title})},o?.title))})]})},z=({ksp:i,activeKspItem:a,setActiveKspItem:g,gaTrackEvent:p})=>{const l=x([]),r=x(null),n=v(t=>{const o=i.findIndex(d=>d.title===t?.title),c=l.current[o];if(c&&r.current){const d=r.current,m=c,b=m.offsetLeft-d.offsetWidth/2+m.offsetWidth/2;d.scrollTo({left:b,behavior:"smooth"})}},[i]);return A(()=>{a&&setTimeout(()=>{n(a)},100)},[n,a]),s(N,{className:"tablet:max-w-[896px] [&_.dialog-close-icon]:laptop:size-6 !rounded-box mx-auto w-full max-w-[326px] overflow-hidden border-none bg-transparent p-0 [&_.dialog-close-icon]:size-4",children:[e("style",{children:`
1
+ import{jsx as e,jsxs as s}from"react/jsx-runtime";import{Text as u,Picture as b,Button as w,Dialog as y,DialogContent as N,DialogTrigger as C}from"../../../../../../components/index.js";import{Content as m,List as T,Root as D,Trigger as E}from"@radix-ui/react-tabs";import{useCallback as v,useEffect as A,useMemo as L,useRef as x,useState as h}from"react";import{cn as P}from"../../../../../../helpers/index.js";import{useBizProductContext as _}from"../../../../BizProductProvider.js";import{withLayout as H}from"../../../../../../shared/Styles.js";import{gaTrack as I}from"../../../../../../shared/track.js";const R=()=>{const{product:a,variant:i}=_(),[g,d]=h(!1),l=L(()=>a?.payload?.components?.find(o=>o.componentKey==="ProductHighlight")?.data||{},[a?.payload]),[r,n]=h(l?.ksp?.[0]),t=v(o=>{I({event:"ga4Event",event_name:"lp_button",event_parameters:{page_group:`Product Detail Page${i.sku}`,position:l?.title||"",button_name:o||l?.view||""}})},[l?.title,l?.view,i.sku]);return s("div",{className:"ipc-product-detail-highlight",children:[s("div",{className:"flex items-center justify-between",children:[l?.title&&e(u,{size:3,className:"font-bold leading-[1.2]",html:l?.title}),s(y,{open:g,onOpenChange:d,children:[e(C,{asChild:!0,children:e(w,{variant:"link",className:"!p-0 text-base font-bold",onClick:()=>t(),children:l?.view})}),e(z,{ksp:l?.ksp||[],activeKspItem:r,setActiveKspItem:n,gaTrackEvent:t})]})]}),e("div",{className:"lg-desktop:mt-4 mt-3 flex flex-wrap gap-4",children:l?.ksp?.map(o=>e("div",{className:"product-highlight-item lg-desktop:h-[38px] lg-desktop:leading-[38px] h-[36px] cursor-pointer rounded-full bg-[#F5F5F7] px-4 leading-[36px] hover:bg-[#EAEAEC]",children:e(u,{size:3,onClick:()=>{n(o),d(!0),t(o?.title)},className:"lg-desktop:text-[16px] line-clamp-1 overflow-hidden break-all text-[14px] font-bold text-[#1D1D1F]",html:o?.title})},o?.title))})]})},z=({ksp:a,activeKspItem:i,setActiveKspItem:g,gaTrackEvent:d})=>{const l=x([]),r=x(null),n=v(t=>{const o=a.findIndex(p=>p.title===t?.title),c=l.current[o];if(c&&r.current){const p=r.current,f=c,k=f.offsetLeft-p.offsetWidth/2+f.offsetWidth/2;p.scrollTo({left:k,behavior:"smooth"})}},[a]);return A(()=>{i&&setTimeout(()=>{n(i)},100)},[n,i]),s(N,{className:"tablet:max-w-[896px] [&_.dialog-close-icon]:laptop:size-6 !rounded-box mx-auto w-full max-w-[326px] overflow-hidden border-none p-0 [&_.dialog-close-icon]:size-4",children:[e("style",{children:`
2
2
  .dialog-close-icon {
3
- color: ${a?.closeColor||"#1D1D1F"};
3
+ color: ${i?.closeColor||"#1D1D1F"};
4
4
  }
5
- `}),s(D,{value:a?.title,className:"w-full overflow-hidden",children:[i?.map(t=>e(f,{value:t.title,children:e(k,{source:`${t?.img}, ${t?.mobileImg} 767`,className:"laptop-md:h-[480px] h-[304px] w-full",alt:t.img.alt,imgClassName:"object-cover h-full"})},t.title)),s("div",{className:"laptop-md:py-6 w-full overflow-visible bg-white py-4",children:[e("div",{ref:r,style:{scrollbarWidth:"none",msOverflowStyle:"none"},className:"laptop-md:px-6 overflow-x-auto px-4",children:e("div",{className:"rounded-btn w-fit bg-[#EAEAEC]",children:e(T,{className:"flex w-max p-1",children:i?.map((t,o)=>e(E,{ref:c=>{c&&(l.current[o]=c)},className:P("lg-desktop:px-7 rounded-btn h-[38px] shrink-0 px-5 leading-[38px]",t.title===a?.title&&"bg-white"),onClick:()=>{n(t),g(t),p(t?.title)},value:t.title,children:e(u,{html:t.title,className:"text-[14px] font-bold leading-[1.2]"})},o+t.title))})})}),e("div",{className:"laptop-md:px-6 mt-4 px-4",children:i?.map((t,o)=>e(f,{value:t.title,className:"laptop-md:text-[18px] text-[14px] font-bold",children:t.description},o+t.title))})]})]})]})};var W=H(R);export{W as default};
5
+ `}),s(D,{value:i?.title,className:"w-full overflow-hidden",children:[a?.map(t=>e(m,{value:t.title,children:e(b,{source:`${t?.img}, ${t?.mobileImg} 767`,className:"desktop:h-[480px] h-[304px] w-full",alt:t.img.alt,imgClassName:"object-cover h-full"})},t.title)),s("div",{className:"desktop:py-6 w-full overflow-visible py-4",children:[e("div",{ref:r,style:{scrollbarWidth:"none",msOverflowStyle:"none"},className:"desktop:px-6 overflow-x-auto px-4",children:e("div",{className:"rounded-btn w-fit bg-[#EAEAEC]",children:e(T,{className:"flex w-max p-1",children:a?.map((t,o)=>e(E,{ref:c=>{c&&(l.current[o]=c)},className:P("lg-desktop:px-7 rounded-btn h-[38px] shrink-0 px-5 leading-[38px]",t.title===i?.title&&"bg-white"),onClick:()=>{n(t),g(t),d(t?.title)},value:t.title,children:e(u,{html:t.title,className:"text-[14px] font-bold leading-[1.2]"})},o+t.title))})})}),e("div",{className:"desktop:px-6 mt-4 px-4",children:a?.map((t,o)=>e(m,{value:t.title,className:"desktop:text-[18px] text-[14px] font-bold",children:t.description},o+t.title))})]})]})]})};var W=H(R);export{W as default};
6
6
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../../../src/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.tsx"],
4
- "sourcesContent": ["import { Text, Picture, Button, Dialog, DialogContent, DialogTrigger } from '../../../../../../components/index.js'\nimport { Content, List, Root, Trigger } from '@radix-ui/react-tabs'\nimport { useCallback, useEffect, useMemo, useRef, useState } from 'react'\nimport { cn } from '../../../../../../helpers/index.js'\nimport { useBizProductContext } from '../../../../BizProductProvider.js'\nimport { withLayout } from '../../../../../../shared/Styles.js'\nimport { gaTrack } from '../../../../../../shared/track.js'\n\nconst ProductHighlight = () => {\n const { product, variant } = useBizProductContext()\n const [open, setOpen] = useState(false)\n\n const productHighlightData = useMemo(() => {\n return product?.payload?.components?.find((item: any) => item.componentKey === 'ProductHighlight')?.data || {}\n }, [product?.payload])\n\n const [activeKspItem, setActiveKspItem] = useState(productHighlightData?.ksp?.[0])\n\n const gaTrackEvent = useCallback(\n (buttonName?: string) => {\n gaTrack({\n event: 'ga4Event',\n event_name: 'lp_button',\n event_parameters: {\n page_group: `Product Detail Page${variant.sku}`,\n position: productHighlightData?.title || '',\n button_name: buttonName || productHighlightData?.view || '',\n },\n })\n },\n [productHighlightData?.title, productHighlightData?.view, variant.sku]\n )\n\n return (\n <div className=\"ipc-product-detail-highlight\">\n <div className=\"flex items-center justify-between\">\n {productHighlightData?.title && (\n <Text size={3} className=\"font-bold leading-[1.2]\" html={productHighlightData?.title} />\n )}\n <Dialog open={open} onOpenChange={setOpen}>\n <DialogTrigger asChild>\n <Button variant=\"link\" className=\"!p-0 text-base font-bold\" onClick={() => gaTrackEvent()}>\n {productHighlightData?.view}\n </Button>\n </DialogTrigger>\n <ProductHighlightModal\n ksp={productHighlightData?.ksp || []}\n activeKspItem={activeKspItem}\n setActiveKspItem={setActiveKspItem}\n gaTrackEvent={gaTrackEvent}\n />\n </Dialog>\n </div>\n <div className=\"lg-desktop:mt-4 mt-3 flex flex-wrap gap-4\">\n {productHighlightData?.ksp?.map((item: any) => (\n <div\n key={item?.title}\n className=\"product-highlight-item lg-desktop:h-[38px] lg-desktop:leading-[38px] h-[36px] cursor-pointer rounded-full bg-[#F5F5F7] px-4 leading-[36px] hover:bg-[#EAEAEC]\"\n >\n <Text\n size={3}\n onClick={() => {\n setActiveKspItem(item)\n setOpen(true)\n gaTrackEvent(item?.title)\n }}\n className=\"lg-desktop:text-[16px] line-clamp-1 overflow-hidden break-all text-[14px] font-bold text-[#1D1D1F]\"\n html={item?.title}\n />\n </div>\n ))}\n </div>\n </div>\n )\n}\n\nconst ProductHighlightModal = ({\n ksp,\n activeKspItem,\n setActiveKspItem,\n gaTrackEvent,\n}: {\n ksp: any[]\n activeKspItem: any\n setActiveKspItem: (activeKspItem: any) => void\n gaTrackEvent: (buttonName: string) => void\n}) => {\n const highlightRef = useRef<HTMLButtonElement[]>([])\n const scrollContainerRef = useRef<HTMLDivElement>(null)\n\n const autoScrollToActiveItem = useCallback(\n (activeKspItem: any) => {\n const curIndex = ksp.findIndex(item => item.title === activeKspItem?.title)\n const curRef = highlightRef.current[curIndex]\n\n if (curRef && scrollContainerRef.current) {\n const container = scrollContainerRef.current\n const button = curRef\n const scrollLeft = button.offsetLeft - container.offsetWidth / 2 + button.offsetWidth / 2\n\n container.scrollTo({\n left: scrollLeft,\n behavior: 'smooth',\n })\n }\n },\n [ksp]\n )\n\n useEffect(() => {\n if (!activeKspItem) return\n // setActiveKspItem(clickActiveKspItem)\n\n // \u5EF6\u8FDF\u6267\u884C\uFF0C\u7B49\u5F85 Dialog \u548C\u5185\u90E8\u5143\u7D20\u5B8C\u5168\u6E32\u67D3\n setTimeout(() => {\n autoScrollToActiveItem(activeKspItem)\n }, 100)\n }, [autoScrollToActiveItem, activeKspItem])\n\n return (\n <DialogContent className=\"tablet:max-w-[896px] [&_.dialog-close-icon]:laptop:size-6 !rounded-box mx-auto w-full max-w-[326px] overflow-hidden border-none bg-transparent p-0 [&_.dialog-close-icon]:size-4\">\n <style>{`\n .dialog-close-icon {\n color: ${activeKspItem?.closeColor || '#1D1D1F'};\n }\n `}</style>\n <Root value={activeKspItem?.title} className=\"w-full overflow-hidden\">\n {ksp?.map(item => (\n <Content value={item.title} key={item.title}>\n <Picture\n source={`${item?.img}, ${item?.mobileImg} 767`}\n className=\"laptop-md:h-[480px] h-[304px] w-full\"\n alt={item.img.alt}\n imgClassName=\"object-cover h-full\"\n />\n </Content>\n ))}\n <div className=\"laptop-md:py-6 w-full overflow-visible bg-white py-4\">\n <div\n ref={scrollContainerRef}\n style={{\n scrollbarWidth: 'none',\n msOverflowStyle: 'none',\n }}\n className=\"laptop-md:px-6 overflow-x-auto px-4\"\n >\n <div className=\"rounded-btn w-fit bg-[#EAEAEC]\">\n <List className=\"flex w-max p-1\">\n {ksp?.map((item, index) => (\n <Trigger\n ref={el => {\n if (el) {\n highlightRef.current[index] = el\n }\n }}\n className={cn(\n 'lg-desktop:px-7 rounded-btn h-[38px] shrink-0 px-5 leading-[38px]',\n item.title === activeKspItem?.title && 'bg-white'\n )}\n onClick={() => {\n autoScrollToActiveItem(item)\n setActiveKspItem(item)\n gaTrackEvent(item?.title)\n }}\n key={index + item.title}\n value={item.title}\n >\n <Text html={item.title} className=\"text-[14px] font-bold leading-[1.2]\" />\n </Trigger>\n ))}\n </List>\n </div>\n </div>\n <div className=\"laptop-md:px-6 mt-4 px-4\">\n {ksp?.map((item, index) => (\n <Content\n value={item.title}\n key={index + item.title}\n className=\"laptop-md:text-[18px] text-[14px] font-bold\"\n >\n {item.description}\n </Content>\n ))}\n </div>\n </div>\n </Root>\n </DialogContent>\n )\n}\n\nexport default withLayout(ProductHighlight)\n"],
5
- "mapp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AAAA,mBAEK4B,GAAe,YAAc,SAAS;AAAA;AAAA,QAEjD,EACF3B,EAACS,EAAA,CAAK,MAAOkB,GAAe,MAAO,UAAU,yBAC1C,UAAAK,GAAK,IAAIN,GACR3B,EAACQ,EAAA,CAAQ,MAAOmB,EAAK,MACnB,SAAA3B,EAACG,EAAA,CACC,OAAQ,GAAGwB,GAAM,GAAG,KAAKA,GAAM,SAAS,OACxC,UAAU,uCACV,IAAKA,EAAK,IAAI,IACd,aAAa,sBACf,GAN+BA,EAAK,KAOtC,CACD,EACD1B,EAAC,OAAI,UAAU,uDACb,UAAAD,EAAC,OACC,IAAKmC,EACL,MAAO,CACL,eAAgB,OAChB,gBAAiB,MACnB,EACA,UAAU,sCAEV,SAAAnC,EAAC,OAAI,UAAU,iCACb,SAAAA,EAACS,EAAA,CAAK,UAAU,iBACb,SAAAwB,GAAK,IAAI,CAACN,EAAMe,IACf1C,EAACW,EAAA,CACC,IAAKgC,GAAM,CACLA,IACFT,EAAa,QAAQQ,CAAK,EAAIC,EAElC,EACA,UAAW1B,EACT,oEACAU,EAAK,QAAUC,GAAe,OAAS,UACzC,EACA,QAAS,IAAM,CACbQ,EAAuBT,CAAI,EAC3BE,EAAiBF,CAAI,EACrBG,EAAaH,GAAM,KAAK,CAC1B,EAEA,MAAOA,EAAK,MAEZ,SAAA3B,EAACE,EAAA,CAAK,KAAMyB,EAAK,MAAO,UAAU,sCAAsC,GAHnEe,EAAQf,EAAK,KAIpB,CACD,EACH,EACF,EACF,EACA3B,EAAC,OAAI,UAAU,2BACZ,SAAAiC,GAAK,IAAI,CAACN,EAAMe,IACf1C,EAACQ,EAAA,CACC,MAAOmB,EAAK,MAEZ,UAAU,8CAET,SAAAA,EAAK,aAHDe,EAAQf,EAAK,KAIpB,CACD,EACH,GACF,GACF,GACF,CAEJ,EAEA,IAAOiB,EAAQzB,EAAWE,CAAgB",
4
+ "sourcesContent": ["import { Text, Picture, Button, Dialog, DialogContent, DialogTrigger } from '../../../../../../components/index.js'\nimport { Content, List, Root, Trigger } from '@radix-ui/react-tabs'\nimport { useCallback, useEffect, useMemo, useRef, useState } from 'react'\nimport { cn } from '../../../../../../helpers/index.js'\nimport { useBizProductContext } from '../../../../BizProductProvider.js'\nimport { withLayout } from '../../../../../../shared/Styles.js'\nimport { gaTrack } from '../../../../../../shared/track.js'\n\nconst ProductHighlight = () => {\n const { product, variant } = useBizProductContext()\n const [open, setOpen] = useState(false)\n\n const productHighlightData = useMemo(() => {\n return product?.payload?.components?.find((item: any) => item.componentKey === 'ProductHighlight')?.data || {}\n }, [product?.payload])\n\n const [activeKspItem, setActiveKspItem] = useState(productHighlightData?.ksp?.[0])\n\n const gaTrackEvent = useCallback(\n (buttonName?: string) => {\n gaTrack({\n event: 'ga4Event',\n event_name: 'lp_button',\n event_parameters: {\n page_group: `Product Detail Page${variant.sku}`,\n position: productHighlightData?.title || '',\n button_name: buttonName || productHighlightData?.view || '',\n },\n })\n },\n [productHighlightData?.title, productHighlightData?.view, variant.sku]\n )\n\n return (\n <div className=\"ipc-product-detail-highlight\">\n <div className=\"flex items-center justify-between\">\n {productHighlightData?.title && (\n <Text size={3} className=\"font-bold leading-[1.2]\" html={productHighlightData?.title} />\n )}\n <Dialog open={open} onOpenChange={setOpen}>\n <DialogTrigger asChild>\n <Button variant=\"link\" className=\"!p-0 text-base font-bold\" onClick={() => gaTrackEvent()}>\n {productHighlightData?.view}\n </Button>\n </DialogTrigger>\n <ProductHighlightModal\n ksp={productHighlightData?.ksp || []}\n activeKspItem={activeKspItem}\n setActiveKspItem={setActiveKspItem}\n gaTrackEvent={gaTrackEvent}\n />\n </Dialog>\n </div>\n <div className=\"lg-desktop:mt-4 mt-3 flex flex-wrap gap-4\">\n {productHighlightData?.ksp?.map((item: any) => (\n <div\n key={item?.title}\n className=\"product-highlight-item lg-desktop:h-[38px] lg-desktop:leading-[38px] h-[36px] cursor-pointer rounded-full bg-[#F5F5F7] px-4 leading-[36px] hover:bg-[#EAEAEC]\"\n >\n <Text\n size={3}\n onClick={() => {\n setActiveKspItem(item)\n setOpen(true)\n gaTrackEvent(item?.title)\n }}\n className=\"lg-desktop:text-[16px] line-clamp-1 overflow-hidden break-all text-[14px] font-bold text-[#1D1D1F]\"\n html={item?.title}\n />\n </div>\n ))}\n </div>\n </div>\n )\n}\n\nconst ProductHighlightModal = ({\n ksp,\n activeKspItem,\n setActiveKspItem,\n gaTrackEvent,\n}: {\n ksp: any[]\n activeKspItem: any\n setActiveKspItem: (activeKspItem: any) => void\n gaTrackEvent: (buttonName: string) => void\n}) => {\n const highlightRef = useRef<HTMLButtonElement[]>([])\n const scrollContainerRef = useRef<HTMLDivElement>(null)\n\n const autoScrollToActiveItem = useCallback(\n (activeKspItem: any) => {\n const curIndex = ksp.findIndex(item => item.title === activeKspItem?.title)\n const curRef = highlightRef.current[curIndex]\n\n if (curRef && scrollContainerRef.current) {\n const container = scrollContainerRef.current\n const button = curRef\n const scrollLeft = button.offsetLeft - container.offsetWidth / 2 + button.offsetWidth / 2\n\n container.scrollTo({\n left: scrollLeft,\n behavior: 'smooth',\n })\n }\n },\n [ksp]\n )\n\n useEffect(() => {\n if (!activeKspItem) return\n // setActiveKspItem(clickActiveKspItem)\n\n // \u5EF6\u8FDF\u6267\u884C\uFF0C\u7B49\u5F85 Dialog \u548C\u5185\u90E8\u5143\u7D20\u5B8C\u5168\u6E32\u67D3\n setTimeout(() => {\n autoScrollToActiveItem(activeKspItem)\n }, 100)\n }, [autoScrollToActiveItem, activeKspItem])\n\n return (\n <DialogContent className=\"tablet:max-w-[896px] [&_.dialog-close-icon]:laptop:size-6 !rounded-box mx-auto w-full max-w-[326px] overflow-hidden border-none p-0 [&_.dialog-close-icon]:size-4\">\n <style>{`\n .dialog-close-icon {\n color: ${activeKspItem?.closeColor || '#1D1D1F'};\n }\n `}</style>\n <Root value={activeKspItem?.title} className=\"w-full overflow-hidden\">\n {ksp?.map(item => (\n <Content value={item.title} key={item.title}>\n <Picture\n source={`${item?.img}, ${item?.mobileImg} 767`}\n className=\"desktop:h-[480px] h-[304px] w-full\"\n alt={item.img.alt}\n imgClassName=\"object-cover h-full\"\n />\n </Content>\n ))}\n <div className=\"desktop:py-6 w-full overflow-visible py-4\">\n <div\n ref={scrollContainerRef}\n style={{\n scrollbarWidth: 'none',\n msOverflowStyle: 'none',\n }}\n className=\"desktop:px-6 overflow-x-auto px-4\"\n >\n <div className=\"rounded-btn w-fit bg-[#EAEAEC]\">\n <List className=\"flex w-max p-1\">\n {ksp?.map((item, index) => (\n <Trigger\n ref={el => {\n if (el) {\n highlightRef.current[index] = el\n }\n }}\n className={cn(\n 'lg-desktop:px-7 rounded-btn h-[38px] shrink-0 px-5 leading-[38px]',\n item.title === activeKspItem?.title && 'bg-white'\n )}\n onClick={() => {\n autoScrollToActiveItem(item)\n setActiveKspItem(item)\n gaTrackEvent(item?.title)\n }}\n key={index + item.title}\n value={item.title}\n >\n <Text html={item.title} className=\"text-[14px] font-bold leading-[1.2]\" />\n </Trigger>\n ))}\n </List>\n </div>\n </div>\n <div className=\"desktop:px-6 mt-4 px-4\">\n {ksp?.map((item, index) => (\n <Content\n value={item.title}\n key={index + item.title}\n className=\"desktop:text-[18px] text-[14px] font-bold\"\n >\n {item.description}\n </Content>\n ))}\n </div>\n </div>\n </Root>\n </DialogContent>\n )\n}\n\nexport default withLayout(ProductHighlight)\n"],
5
+ "mappings": "AAqCU,cAAAA,EAEF,QAAAC,MAFE,oBArCV,OAAS,QAAAC,EAAM,WAAAC,EAAS,UAAAC,EAAQ,UAAAC,EAAQ,iBAAAC,EAAe,iBAAAC,MAAqB,wCAC5E,OAAS,WAAAC,EAAS,QAAAC,EAAM,QAAAC,EAAM,WAAAC,MAAe,uBAC7C,OAAS,eAAAC,EAAa,aAAAC,EAAW,WAAAC,EAAS,UAAAC,EAAQ,YAAAC,MAAgB,QAClE,OAAS,MAAAC,MAAU,qCACnB,OAAS,wBAAAC,MAA4B,oCACrC,OAAS,cAAAC,MAAkB,qCAC3B,OAAS,W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IAAKmC,EACL,MAAO,CACL,eAAgB,OAChB,gBAAiB,MACnB,EACA,UAAU,oCAEV,SAAAnC,EAAC,OAAI,UAAU,iCACb,SAAAA,EAACS,EAAA,CAAK,UAAU,iBACb,SAAAwB,GAAK,IAAI,CAACN,EAAMe,IACf1C,EAACW,EAAA,CACC,IAAKgC,GAAM,CACLA,IACFT,EAAa,QAAQQ,CAAK,EAAIC,EAElC,EACA,UAAW1B,EACT,oEACAU,EAAK,QAAUC,GAAe,OAAS,UACzC,EACA,QAAS,IAAM,CACbQ,EAAuBT,CAAI,EAC3BE,EAAiBF,CAAI,EACrBG,EAAaH,GAAM,KAAK,CAC1B,EAEA,MAAOA,EAAK,MAEZ,SAAA3B,EAACE,EAAA,CAAK,KAAMyB,EAAK,MAAO,UAAU,sCAAsC,GAHnEe,EAAQf,EAAK,KAIpB,CACD,EACH,EACF,EACF,EACA3B,EAAC,OAAI,UAAU,yBACZ,SAAAiC,GAAK,IAAI,CAACN,EAAMe,IACf1C,EAACQ,EAAA,CACC,MAAOmB,EAAK,MAEZ,UAAU,4CAET,SAAAA,EAAK,aAHDe,EAAQf,EAAK,KAIpB,CACD,EACH,GACF,GACF,GACF,CAEJ,EAEA,IAAOiB,EAAQzB,EAAWE,CAAgB",
6
6
  "names": ["jsx", "jsxs", "Text", "Picture", "Button", "Dialog", "DialogContent", "DialogTrigger", "Content", "List", "Root", "Trigger", "useCallback", "useEffect", "useMemo", "useRef", "useState", "cn", "useBizProductContext", "withLayout", "gaTrack", "ProductHighlight", "product", "variant", "open", "setOpen", "productHighlightData", "item", "activeKspItem", "setActiveKspItem", "gaTrackEvent", "buttonName", "ProductHighlightModal", "ksp", "highlightRef", "scrollContainerRef", "autoScrollToActiveItem", "curIndex", "curRef", "container", "button", "scrollLeft", "index", "el", "ProductHighlight_default"]
7
7
  }
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  declare const _default: import("react").ForwardRefExoticComponent<Omit<object, keyof import("../../../../../../shared/Styles.js").StylesProps> & Partial<import("../../../../../../shared/Styles.js").StylesProps & import("../../../../../../shared/Styles.js").ContainerProps> & {
3
- className?: string | undefined;
4
- data?: Record<string, any> | undefined;
2
+ className?: string;
3
+ data?: Record<string, any>;
5
4
  } & import("react").RefAttributes<any>>;
6
5
  export default _default;
@@ -1,2 +1,2 @@
1
- import{Fragment as P,jsx as o,jsxs as d}from"react/jsx-runtime";import{Text as m,Picture as N}from"../../../../../../components/index.js";import{cn as l}from"../../../../../../helpers/index.js";import{useState as h,useMemo as b}from"react";import{useBizProductContext as w}from"../../../../BizProductProvider.js";import{useAiuiContext as k}from"../../../../../AiuiProvider/index.js";import{handle as _}from"../../../../utils/helper.js";import{withLayout as C}from"../../../../../../shared/Styles.js";const E=()=>{const{product:r,selectedOptions:n,setSelectedOptions:c,setJoinedRecommendBuyProducts:u}=w(),{storeDomain:p}=k(),[f,v]=h({}),g=b(()=>r?.payload?.components?.find(e=>e.componentKey==="ProductOptions")?.data||{},[r?.payload]);return r.options.length?o("div",{className:"flex flex-col gap-12",children:r.options.map(e=>{const y=e.name.toLowerCase();if(["color","colour","couleur"].some(t=>y.includes(t)))return d("div",{className:"ipc-product-detail-options",children:[o(m,{as:"p",size:3,className:"font-bold leading-[1.2]",html:g?.selectColor+n[e.name]}),o("div",{className:"lg-desktop:mt-5 ml-1 mt-4 flex items-center gap-4",children:e.values.map(({label:t},s)=>{const a=`https://${p}/cdn/shop/files/${_(t)}.png`;return d("div",{className:"ipc-product-detail-options-value relative",children:[o("button",{"aria-label":`switch to ${t}`,title:t,onClick:()=>{c(i=>({...i,[e.name]:t})),u?.({gift:void 0,bundle:void 0})},className:l("flex size-[30px] items-center justify-center rounded-full bg-center bg-no-repeat outline outline-2 outline-offset-4 outline-white",{"outline-brand":n[e.name]===t}),children:!f[t]&&o(P,{children:o(N,{className:"w-full",source:a,onError:({currentTarget:i})=>{i.onerror=null,v(x=>({...x,[t]:!0}))}})})}),o("div",{className:"pointer-events-none absolute inset-0 rounded-full shadow-[inset_0_0_4px_rgba(0,0,0,0.08),inset_0_2px_2px_rgba(0,0,0,0.12)]"})]},t+s)})})]},e.id);{const t=e.name.charAt(0).toUpperCase()+e.name.slice(1);return d("div",{className:"ipc-product-detail-options",children:[o(m,{as:"p",size:3,className:"font-bold",html:t}),o("div",{className:"mt-4 flex items-center gap-4",children:e.values.map(({label:s})=>o("button",{onClick:()=>{c(a=>({...a,[e.name]:s}))},className:l("rounded-box w-1/2 border-2 border-[#E4E5E6] px-4 py-6 text-left font-bold",{"border-brand":n[e.name]===s}),children:s},s))})]},e.id)}})}):null};var S=C(E);export{S as default};
1
+ import{Fragment as C,jsx as o,jsxs as a}from"react/jsx-runtime";import{Text as c,Picture as N}from"../../../../../../components/index.js";import{cn as m}from"../../../../../../helpers/index.js";import{useState as h,useMemo as b}from"react";import{useBizProductContext as w}from"../../../../BizProductProvider.js";import{useAiuiContext as k}from"../../../../../AiuiProvider/index.js";import{handle as P}from"../../../../utils/helper.js";import{withLayout as _}from"../../../../../../shared/Styles.js";const E=()=>{const{product:r,selectedOptions:s,setSelectedOptions:d,setJoinedRecommendBuyProducts:u}=w(),{storeDomain:l}=k(),[p,f]=h({});if(!r.options.length)return null;const v=b(()=>r?.payload?.components?.find(t=>t.componentKey==="ProductOptions")?.data||{},[r?.payload]);return o("div",{className:"flex flex-col gap-12",children:r.options.map(t=>{const y=t.name.toLowerCase();return["color","colour","couleur"].some(e=>y.includes(e))?a("div",{className:"ipc-product-detail-options",children:[o(c,{as:"p",size:3,className:"font-bold leading-[1.2]",html:v?.selectColor+s[t.name]}),o("div",{className:"lg-desktop:mt-5 ml-1 mt-4 flex items-center gap-4",children:t.values.map(({label:e},n)=>{const g=`https://${l}/cdn/shop/files/${P(e)}.png`;return a("div",{className:"ipc-product-detail-options-value relative",children:[o("button",{"aria-label":`switch to ${e}`,title:e,onClick:()=>{d(i=>({...i,[t.name]:e})),u?.({gift:void 0,bundle:void 0})},className:m("flex size-[30px] items-center justify-center rounded-full bg-center bg-no-repeat outline outline-2 outline-offset-4 outline-white",{"outline-brand":s[t.name]===e}),children:!p[e]&&o(C,{children:o(N,{className:"w-full",source:g,onError:({currentTarget:i})=>{i.onerror=null,f(x=>({...x,[e]:!0}))}})})}),o("div",{className:"pointer-events-none absolute inset-0 rounded-full shadow-[inset_0_0_4px_rgba(0,0,0,0.08),inset_0_2px_2px_rgba(0,0,0,0.12)]"})]},e+n)})})]},t.id):a("div",{className:"ipc-product-detail-options",children:[o(c,{as:"p",size:3,className:"font-bold",html:t.name}),o("div",{className:"mt-4 flex items-center gap-4",children:t.values.map(({label:e})=>o("button",{onClick:()=>{d(n=>({...n,[t.name]:e}))},className:m("rounded-box w-1/2 border-2 border-[#E4E5E6] px-4 py-6 text-left font-bold",{"border-brand":s[t.name]===e}),children:e},e))})]},t.id)})})};var I=_(E);export{I as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../../../src/biz-components/Listing/components/ProductCard/ProductDetail/ProductOptions/index.tsx"],
4
- "sourcesContent": ["import { Text, Picture } from '../../../../../../components/index.js'\nimport { cn } from '../../../../../../helpers/index.js'\nimport { useState, useMemo } from 'react'\nimport { useBizProductContext } from '../../../../BizProductProvider.js'\nimport { useAiuiContext } from '../../../../../AiuiProvider/index.js'\nimport { handle } from '../../../../utils/helper.js'\nimport { withLayout } from '../../../../../../shared/Styles.js'\n\nconst ProductOptions = () => {\n const { product, selectedOptions, setSelectedOptions, setJoinedRecommendBuyProducts } = useBizProductContext()\n const { storeDomain } = useAiuiContext()\n const [imgLoadError, setImgLoadError] = useState({})\n\n const productOptionsData = useMemo(() => {\n return product?.payload?.components?.find((item: any) => item.componentKey === 'ProductOptions')?.data || {}\n }, [product?.payload])\n\n if (!product.options.length) return null\n\n return (\n <div className=\"flex flex-col gap-12\">\n {product.options.map(option => {\n const lowercasedName = option.name.toLowerCase()\n const colorKeywords = ['color', 'colour', 'couleur']\n if (colorKeywords.some(keyword => lowercasedName.includes(keyword))) {\n return (\n <div key={option.id} className=\"ipc-product-detail-options\">\n <Text\n as=\"p\"\n size={3}\n className=\"font-bold leading-[1.2]\"\n html={productOptionsData?.selectColor + selectedOptions[option.name]}\n />\n <div className=\"lg-desktop:mt-5 ml-1 mt-4 flex items-center gap-4\">\n {option.values.map(({ label }, index) => {\n const imagePath = `https://${storeDomain}/cdn/shop/files/${handle(label)}.png`\n return (\n <div key={label + index} className=\"ipc-product-detail-options-value relative\">\n <button\n aria-label={`switch to ${label}`}\n title={label}\n onClick={() => {\n setSelectedOptions(prev => ({ ...prev, [option.name]: label }))\n setJoinedRecommendBuyProducts?.({ gift: undefined, bundle: undefined })\n }}\n className={cn(\n 'flex size-[30px] items-center justify-center rounded-full bg-center bg-no-repeat outline outline-2 outline-offset-4 outline-white',\n {\n 'outline-brand': selectedOptions[option.name] === label,\n }\n )}\n >\n {!imgLoadError[label as keyof typeof imgLoadError] && (\n <>\n <Picture\n className=\"w-full\"\n source={imagePath}\n onError={({ currentTarget }) => {\n currentTarget.onerror = null // prevents looping\n setImgLoadError(prev => ({ ...prev, [label]: true }))\n }}\n />\n </>\n )}\n </button>\n <div className=\"pointer-events-none absolute inset-0 rounded-full shadow-[inset_0_0_4px_rgba(0,0,0,0.08),inset_0_2px_2px_rgba(0,0,0,0.12)]\"></div>\n </div>\n )\n })}\n </div>\n </div>\n )\n } else {\n const capitalizedName = option.name.charAt(0).toUpperCase() + option.name.slice(1)\n return (\n <div key={option.id} className=\"ipc-product-detail-options\">\n <Text as=\"p\" size={3} className=\"font-bold\" html={capitalizedName} />\n <div className=\"mt-4 flex items-center gap-4\">\n {option.values.map(({ label }) => (\n <button\n key={label}\n onClick={() => {\n setSelectedOptions(prev => ({ ...prev, [option.name]: label }))\n }}\n className={cn('rounded-box w-1/2 border-2 border-[#E4E5E6] px-4 py-6 text-left font-bold', {\n 'border-brand': selectedOptions[option.name] === label,\n })}\n >\n {label}\n </button>\n ))}\n </div>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J,CACF,CAAC,EACH,EA/EkC,IAiFtC,EAEA,IAAOS,EAAQpB,EAAWC,CAAc",
6
- "names": ["Fragment", "jsx", "jsxs", "Text", "Picture", "cn", "useState", "useMemo", "useBizProductContext", "useAiuiContext", "handle", "withLayout", "ProductOptions", "product", "selectedOptions", "setSelectedOptions", "setJoinedRecommendBuyProducts", "storeDomain", "imgLoadError", "setImgLoadError", "productOptionsData", "item", "option", "lowercasedName", "keyword", "label", "index", "imagePath", "prev", "currentTarget", "capitalizedName", "ProductOptions_default"]
4
+ "sourcesContent": ["import { Text, Picture, Button } from '../../../../../../components/index.js'\nimport type { ProductOptionsProps } from '../types'\nimport { cn } from '../../../../../../helpers/index.js'\nimport { useState, useMemo } from 'react'\nimport { useBizProductContext } from '../../../../BizProductProvider.js'\nimport { useAiuiContext } from '../../../../../AiuiProvider/index.js'\nimport { handle } from '../../../../utils/helper.js'\nimport { withLayout } from '../../../../../../shared/Styles.js'\n\nconst ProductOptions = () => {\n const { product, selectedOptions, setSelectedOptions, setJoinedRecommendBuyProducts } = useBizProductContext()\n const { storeDomain } = useAiuiContext()\n const [imgLoadError, setImgLoadError] = useState({})\n if (!product.options.length) return null\n\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const productOptionsData = useMemo(() => {\n return product?.payload?.components?.find((item: any) => item.componentKey === 'ProductOptions')?.data || {}\n }, [product?.payload])\n\n return (\n <div className=\"flex flex-col gap-12\">\n {product.options.map(option => {\n const lowercasedName = option.name.toLowerCase()\n const colorKeywords = ['color', 'colour', 'couleur']\n if (colorKeywords.some(keyword => lowercasedName.includes(keyword))) {\n return (\n <div key={option.id} className=\"ipc-product-detail-options\">\n <Text\n as=\"p\"\n size={3}\n className=\"font-bold leading-[1.2]\"\n html={productOptionsData?.selectColor + selectedOptions[option.name]}\n />\n <div className=\"lg-desktop:mt-5 ml-1 mt-4 flex items-center gap-4\">\n {option.values.map(({ label }, index) => {\n const imagePath = `https://${storeDomain}/cdn/shop/files/${handle(label)}.png`\n return (\n <div key={label + index} className=\"ipc-product-detail-options-value relative\">\n <button\n aria-label={`switch to ${label}`}\n title={label}\n onClick={() => {\n setSelectedOptions(prev => ({ ...prev, [option.name]: label }))\n setJoinedRecommendBuyProducts?.({ gift: undefined, bundle: undefined })\n }}\n className={cn(\n 'flex size-[30px] items-center justify-center rounded-full bg-center bg-no-repeat outline outline-2 outline-offset-4 outline-white',\n {\n 'outline-brand': selectedOptions[option.name] === label,\n }\n )}\n >\n {!imgLoadError[label as keyof typeof imgLoadError] && (\n <>\n <Picture\n className=\"w-full\"\n source={imagePath}\n onError={({ currentTarget }) => {\n currentTarget.onerror = null // prevents looping\n setImgLoadError(prev => ({ ...prev, [label]: true }))\n }}\n />\n </>\n )}\n </button>\n <div className=\"pointer-events-none absolute inset-0 rounded-full shadow-[inset_0_0_4px_rgba(0,0,0,0.08),inset_0_2px_2px_rgba(0,0,0,0.12)]\"></div>\n </div>\n )\n })}\n </div>\n </div>\n )\n } else {\n return (\n <div key={option.id} className=\"ipc-product-detail-options\">\n <Text as=\"p\" size={3} className=\"font-bold\" html={option.name} />\n <div className=\"mt-4 flex items-center gap-4\">\n {option.values.map(({ label }) => (\n <button\n key={label}\n onClick={() => {\n setSelectedOptions(prev => ({ ...prev, [option.name]: label }))\n // setProductSummaryStatus?.({ giftSummary: false, bundleSummary: false })\n }}\n className={cn('rounded-box w-1/2 border-2 border-[#E4E5E6] px-4 py-6 text-left font-bold', {\n 'border-brand': selectedOptions[option.name] === label,\n })}\n >\n {label}\n </button>\n ))}\n </div>\n </div>\n )\n }\n })}\n </div>\n )\n}\n\nexport default withLayout(ProductOptions)\n"],
5
+ "mappings": "AA4Bc,OA0BY,YAAAA,EA1BZ,OAAAC,EAUM,QAAAC,MAVN,oBA5Bd,OAAS,QAAAC,EAAM,WAAAC,MAAuB,wCAEtC,OAAS,MAAAC,MAAU,qCACnB,OAAS,YAAAC,EAAU,WAAAC,MAAe,QAClC,OAAS,wBAAAC,MAA4B,oCACrC,OAAS,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,oIACA,CACE,gBAAiBS,EAAgBQ,EAAO,IAAI,IAAMG,CACpD,CACF,EAEC,UAACP,EAAaO,CAAkC,GAC/CxB,EAAAD,EAAA,CACE,SAAAC,EAACG,EAAA,CACC,UAAU,SACV,OAAQuB,EACR,QAAS,CAAC,CAAE,cAAAE,CAAc,IAAM,CAC9BA,EAAc,QAAU,KACxBV,EAAgBS,IAAS,CAAE,GAAGA,EAAM,CAACH,CAAK,EAAG,EAAK,EAAE,CACtD,EACF,EACF,EAEJ,EACAxB,EAAC,OAAI,UAAU,6HAA6H,IA5BpIwB,EAAQC,CA6BlB,CAEJ,CAAC,EACH,IA3CQJ,EAAO,EA4CjB,EAIApB,EAAC,OAAoB,UAAU,6BAC7B,UAAAD,EAACE,EAAA,CAAK,GAAG,IAAI,KAAM,EAAG,UAAU,YAAY,KAAMmB,EAAO,KAAM,EAC/DrB,EAAC,OAAI,UAAU,+BACZ,SAAAqB,EAAO,OAAO,IAAI,CAAC,CAAE,MAAAG,CAAM,IAC1BxB,EAAC,UAEC,QAAS,IAAM,CACbc,EAAmBa,IAAS,CAAE,GAAGA,EAAM,CAACN,EAAO,IAAI,EAAGG,CAAM,EAAE,CAEhE,EACA,UAAWpB,EAAG,4EAA6E,CACzF,eAAgBS,EAAgBQ,EAAO,IAAI,IAAMG,CACnD,CAAC,EAEA,SAAAA,GATIA,CAUP,CACD,EACH,IAjBQH,EAAO,EAkBjB,CAGN,CAAC,EACH,CAEJ,EAEA,IAAOQ,EAAQnB,EAAWC,CAAc",
6
+ "names": ["Fragment", "jsx", "jsxs", "Text", "Picture", "cn", "useState", "useMemo", "useBizProductContext", "useAiuiContext", "handle", "withLayout", "ProductOptions", "product", "selectedOptions", "setSelectedOptions", "setJoinedRecommendBuyProducts", "storeDomain", "imgLoadError", "setImgLoadError", "productOptionsData", "item", "option", "lowercasedName", "keyword", "label", "index", "imagePath", "prev", "currentTarget", "ProductOptions_default"]
7
7
  }
@@ -1,2 +1,2 @@
1
- import{jsx as o,jsxs as m}from"react/jsx-runtime";import"./ProductBenefitsTabs/index.js";import t from"./ProductHighlight/index.js";import r from"./ProductFreeGift/index.js";import p from"./ProductOptions/index.js";import i from"./ProductBundle/index.js";import d from"./BenefitsTab.js";const e=f=>m("div",{id:"ipc-product-detail",className:"tablet:px-8 laptop:px-16 laptop-md:px-0 flex flex-col gap-12 px-4",children:[o(d,{}),o(t,{}),o(p,{}),o(r,{}),o(i,{})]});var P=e;export{P as default};
1
+ import{jsx as o,jsxs as f}from"react/jsx-runtime";import"./ProductBenefitsTabs/index.js";import t from"./ProductHighlight/index.js";import r from"./ProductFreeGift/index.js";import p from"./ProductOptions/index.js";import i from"./ProductBundle/index.js";import e from"./BenefitsTab.js";const d=m=>f("div",{id:"ipc-product-detail",className:"tablet:px-8 laptop:px-16 desktop:px-0 flex flex-col gap-12 px-4",children:[o(e,{}),o(t,{}),o(p,{}),o(r,{}),o(i,{})]});var P=d;export{P as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../../src/biz-components/Listing/components/ProductCard/ProductDetail/index.tsx"],
4
- "sourcesContent": ["import ProductBenefitsTabs from './ProductBenefitsTabs/index.js'\nimport ProductHighlight from './ProductHighlight/index.js'\nimport ProductFreeGift from './ProductFreeGift/index.js'\nimport ProductOptions from './ProductOptions/index.js'\nimport ProductBundle from './ProductBundle/index.js'\nimport BenefitsTab from './BenefitsTab.js'\n\nconst ProductDetail = (props: any) => {\n return (\n <div id=\"ipc-product-detail\" className=\"tablet:px-8 laptop:px-16 laptop-md:px-0 flex flex-col gap-12 px-4\">\n <BenefitsTab />\n <ProductHighlight />\n <ProductOptions />\n <ProductFreeGift />\n <ProductBundle />\n </div>\n )\n}\n\nexport default ProductDetail\n"],
5
- "mappings": "AASI,OACE,OAAAA,EADF,QAAAC,MAAA,oBATJ,MAAgC,iCAChC,OAAOC,MAAsB,8BAC7B,OAAOC,MAAqB,6BAC5B,OAAOC,MAAoB,4BAC3B,OAAOC,MAAmB,2BAC1B,OAAOC,MAAiB,mBAExB,MAAMC,EAAiBC,GAEnBP,EAAC,OAAI,GAAG,qBAAqB,UAAU,oEACrC,UAAAD,EAACM,EAAA,EAAY,EACbN,EAACE,EAAA,EAAiB,EAClBF,EAACI,EAAA,EAAe,EAChBJ,EAACG,EAAA,EAAgB,EACjBH,EAACK,EAAA,EAAc,GACjB,EAIJ,IAAOI,EAAQF",
4
+ "sourcesContent": ["import ProductBenefitsTabs from './ProductBenefitsTabs/index.js'\nimport ProductHighlight from './ProductHighlight/index.js'\nimport ProductFreeGift from './ProductFreeGift/index.js'\nimport ProductOptions from './ProductOptions/index.js'\nimport ProductBundle from './ProductBundle/index.js'\nimport BenefitsTab from './BenefitsTab.js'\n\nconst ProductDetail = (props: any) => {\n return (\n <div id=\"ipc-product-detail\" className=\"tablet:px-8 laptop:px-16 desktop:px-0 flex flex-col gap-12 px-4\">\n <BenefitsTab />\n <ProductHighlight />\n <ProductOptions />\n <ProductFreeGift />\n <ProductBundle />\n </div>\n )\n}\n\nexport default ProductDetail\n"],
5
+ "mappings": "AASI,OACE,OAAAA,EADF,QAAAC,MAAA,oBATJ,MAAgC,iCAChC,OAAOC,MAAsB,8BAC7B,OAAOC,MAAqB,6BAC5B,OAAOC,MAAoB,4BAC3B,OAAOC,MAAmB,2BAC1B,OAAOC,MAAiB,mBAExB,MAAMC,EAAiBC,GAEnBP,EAAC,OAAI,GAAG,qBAAqB,UAAU,kEACrC,UAAAD,EAACM,EAAA,EAAY,EACbN,EAACE,EAAA,EAAiB,EAClBF,EAACI,EAAA,EAAe,EAChBJ,EAACG,EAAA,EAAgB,EACjBH,EAACK,EAAA,EAAc,GACjB,EAIJ,IAAOI,EAAQF",
6
6
  "names": ["jsx", "jsxs", "ProductHighlight", "ProductFreeGift", "ProductOptions", "ProductBundle", "BenefitsTab", "ProductDetail", "props", "ProductDetail_default"]
7
7
  }
@@ -1,2 +1,2 @@
1
- import{jsx as e,jsxs as r}from"react/jsx-runtime";import{useEffect as v,useState as N}from"react";import{Dialog as y,DialogTrigger as D,DialogContent as C,DialogHeader as h,DialogTitle as E,Grid as c,GridItem as o,Text as G}from"../../../../../../components/index.js";import{useBizProductContext as w}from"../../../../BizProductProvider.js";import I from"./Select.js";import{useAiuiContext as k}from"../../../../../AiuiProvider/index.js";import{formatPrice as f}from"../../../../utils/index.js";import{ShopifyColorOption as z}from"./ShopifyColorOption.js";const P=()=>{const{locale:u="us",copyWriting:n}=k(),{compareData:l,product:g}=w(),[m,x]=N();v(()=>{x(l?.availableCompareList[0]?.handle)},[l?.availableCompareList]);const d=[l?.currentProductCompareData?.product,l?.availableCompareList.find(a=>a.handle===m)?.product].filter(Boolean);return l?.specificationKeys?r(y,{children:[e(D,{className:"text-base font-bold leading-[1.4]",children:n?.compare}),r(C,{overlayClassName:"z-[100]",className:"rounded-box [&_.dialog-close-icon]:laptop:size-6 laptop:p-0 laptop:w-[896px] z-[110] max-h-[80vh] max-w-[90vw] gap-0 overflow-hidden !py-0 [&_.dialog-close-button]:focus:!ring-0 [&_.dialog-close-icon]:size-4 [&_.dialog-close-icon]:text-[#6D6D6F]",children:[e(h,{className:"laptop:pt-4 laptop:pb-3 laptop:px-8 px-4 pb-2 pt-4",children:e(E,{className:"laptop:text-[24px] text-left text-[20px] font-bold",children:n?.compare})}),r("div",{className:"laptop:px-8 h-[calc(80vh-64px)] overflow-y-auto px-4",children:[r(c,{className:"laptop:py-3 grid-cols-3 items-center gap-[40px] py-4",children:[e(o,{span:1,children:e("div",{className:"text-[16px] font-bold text-[#595959]",children:n?.product||"Product"})}),e(o,{span:1,children:e(G,{as:"div",className:"rounded-btn flex h-[48px] w-full items-center border border-[#E8E8E8] px-4 text-[16px] font-bold",html:l.currentProductCompareData?.shortName||g.title})}),m&&e(o,{span:1,children:e(I,{className:"rounded-btn h-[48px] px-4",value:m,onChange:a=>{x(a)},list:l.options})})]}),r(c,{className:"laptop:gap-8 laptop:py-3 grid-cols-3 py-4",children:[e(o,{span:1}),d.map((a,p)=>e(o,{span:1,className:"flex items-center",children:e("img",{src:a.images[0].url,alt:a.title,className:"size-[100px]",role:"presentation"})},p))]}),r(c,{className:"laptop:py-6 grid-cols-3 items-center gap-[40px] border-b border-[#E8E8E8] py-4",children:[e(o,{span:1}),d.map((a,p)=>{const t=a.variants[0];return e(o,{span:1,className:"flex h-full",children:e("div",{className:"flex flex-col gap-[8px]",children:t.price.amount<9999999&&e("div",{className:"flex items-center gap-[8px]",children:r("div",{className:"flex items-center gap-[6px]",children:[e("span",{className:"text-[18px] font-bold",children:f({locale:u,amount:t?.coupons?.[0]?.variant_price4wscode||t.price.amount,currencyCode:t.price.currencyCode})}),Number(t?.coupons?.[0]?.variant_price4wscode)>0&&e("span",{className:"text-[18px] font-bold text-[#6D6D6F] line-through",children:f({locale:u,amount:t.price.amount,currencyCode:t.price.currencyCode})})]})})})},p)})]}),r(c,{className:"laptop:py-6 grid-cols-3 items-center gap-[40px] border-b border-[#E8E8E8] py-4",children:[e(o,{span:1,children:e("div",{className:"text-[16px] font-bold text-[#6D6D6F]",children:n?.color||"Color"})}),d.map((a,p)=>{const t=a.options?.find(s=>["color","colour","couleur"].find(i=>s.name.toLowerCase().includes(i)))?.values.map(s=>s.label);return e(o,{span:1,className:"flex h-full",children:t?.length&&e("div",{className:"flex items-center gap-4",children:t.map(s=>e(z,{label:s,className:"size-6"},s))})},p)})]}),e(c,{className:"laptop:gap-0 grid-cols-12 items-center gap-0 border-b border-[#E8E8E8]",children:l.specificationKeys?.map(a=>r(o,{span:12,className:"laptop:py-6 laptop:gap-4 grid grid-cols-3 items-center gap-[40px] border-b border-[#E8E8E8] py-4",children:[e("div",{className:"text-[16px] font-bold text-[#6D6D6F]",children:a}),d.map((p,t)=>{let i=p.metafields?.global?.specifications?.find(b=>b?.key===a)?.value||"";switch(i.trim().toLowerCase()){case"true":i="\u2714\uFE0F";break;case"false":i="\u274C";break;default:break}return e("div",{className:"flex items-center",children:e("div",{className:"text-[16px] font-bold text-[#1D1D1F]",children:i})},t)})]},a))})]})]})]}):null};var A=P;export{A as default};
1
+ import{jsx as e,jsxs as o}from"react/jsx-runtime";import{useEffect as v,useState as b}from"react";import{Dialog as N,DialogTrigger as y,DialogContent as C,DialogHeader as E,DialogTitle as D,Grid as p,GridItem as i,Text as h}from"../../../../../../components/index.js";import{useBizProductContext as G}from"../../../../BizProductProvider.js";import I from"./Select.js";import{useAiuiContext as w}from"../../../../../AiuiProvider/index.js";import{formatPrice as k}from"../../../../utils/index.js";import{ShopifyColorOption as P}from"./ShopifyColorOption.js";const z=()=>{const{locale:u="us",copyWriting:x}=w(),{compareData:r,product:g}=G(),[c,f]=b();v(()=>{f(r?.availableCompareList[0]?.handle)},[r?.availableCompareList]);const d=[r?.currentProductCompareData?.product,r?.availableCompareList.find(t=>t.handle===c)?.product].filter(Boolean);return r?.specificationKeys?o(N,{children:[e(y,{className:"text-base font-bold leading-[1.4]",children:x?.compare}),o(C,{overlayClassName:"z-[100]",className:"rounded-box [&_.dialog-close-icon]:laptop:size-6 laptop:w-[896px] laptop:px-8 z-[110] max-h-[80vh] max-w-[90vw] gap-0 overflow-hidden overflow-y-auto !py-0 px-4 [&_.dialog-close-button]:focus:!ring-0 [&_.dialog-close-icon]:size-4 [&_.dialog-close-icon]:text-[#6D6D6F]",children:[e(E,{className:"laptop:pt-4 laptop:pb-3 border-b border-[#E8E8E8] pb-2 pt-4",children:e(D,{className:"text-sm text-[#6D6D6F]",children:x?.compare})}),o(p,{className:"laptop:gap-8 laptop:py-8 grid-cols-3 py-6",children:[e(i,{span:1}),d.map((t,s)=>e(i,{span:1,className:"flex items-center",children:e("img",{src:t.images[0].url,alt:t.title,className:"size-[200px]",role:"presentation"})},s))]}),o(p,{className:"grid-cols-3 items-center gap-[40px] border-b border-[#E8E8E8] py-[24px]",children:[e(i,{span:1,children:e("div",{className:"text-[16px] font-bold text-[#595959]",children:"Product"})}),e(i,{span:1,children:e(h,{as:"div",className:"flex h-[38px] w-full items-center rounded-[2px] border border-[#E8E8E8] px-[12px] text-[16px] font-bold",html:r.currentProductCompareData?.shortName||g.title})}),c&&e(i,{span:1,children:e(I,{value:c,onChange:t=>{f(t)},list:r.options})})]}),o(p,{className:"grid-cols-3 items-center gap-[40px] border-b border-[#E8E8E8] py-[24px]",children:[e(i,{span:1,children:e("div",{className:"text-[16px] font-bold text-[#595959]",children:"Basic Information"})}),d.map((t,s)=>{const l=t.variants[0],m=t.options?.find(a=>["color","colour","couleur"].find(n=>a.name.toLowerCase().includes(n)))?.values.map(a=>a.label);return e(i,{span:1,className:"flex h-full",children:o("div",{className:"flex flex-col gap-[8px]",children:[l.price.amount<9999999&&o("div",{className:"flex items-center gap-[8px]",children:[e("div",{className:"text-[16px] font-semibold text-[#595959]",children:"Price:"}),e("div",{className:"flex items-center gap-[6px]",children:e("span",{className:"text-[16px] font-bold",children:k({locale:u,amount:l.price.amount,currencyCode:l.price.currencyCode})})})]}),m?.length&&o("div",{className:"flex items-center gap-[8px]",children:[e("div",{className:"text-[16px] font-semibold text-[#595959]",children:"Color:"}),e("div",{className:"flex items-center gap-[16px]",children:m.map(a=>e(P,{label:a,className:"size-[16px]"},a))})]})]})},s)})]}),e(p,{className:"grid-cols-12 items-center gap-[40px] border-b border-[#E8E8E8]",children:r.specificationKeys?.map(t=>o(i,{span:12,className:"grid grid-cols-3 items-center gap-[40px] border-b border-[#E8E8E8] py-[24px]",children:[e("div",{className:"text-[16px] font-bold text-[#595959]",children:t}),d.map((s,l)=>{let a=s.metafields?.global?.specifications?.find(n=>n?.key===t)?.value||"";switch(a.trim().toLowerCase()){case"true":a="\u2714\uFE0F";break;case"false":a="\u274C";break;default:break}return e("div",{className:"flex items-center",children:e("div",{className:"text-[16px] font-semibold text-[#595959]",children:a})},l)})]},t))})]})]}):null};var K=z;export{K as default};
2
2
  //# sourceMappingURL=CompareModal.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../../../src/biz-components/Listing/components/ProductCard/ProductGallery/components/CompareModal.tsx"],
4
- "sourcesContent": ["import { useEffect, useState } from 'react'\nimport {\n Dialog,\n DialogTrigger,\n DialogContent,\n DialogHeader,\n DialogTitle,\n Grid,\n GridItem,\n Text,\n Button,\n} from '../../../../../../components/index.js'\nimport { useBizProductContext } from '../../../../BizProductProvider.js'\nimport type { CompareItem } from '../../../../types'\nimport Select from './Select.js'\nimport { useAiuiContext } from '../../../../../AiuiProvider/index.js'\nimport { formatPrice } from '../../../../utils/index.js'\nimport { ShopifyColorOption } from './ShopifyColorOption.js'\n\nconst CompareModal = () => {\n const { locale = 'us', copyWriting } = useAiuiContext()\n const { compareData, product } = useBizProductContext()\n const [selectedProductHandle, setSelectedProductHandle] = useState<string>()\n\n useEffect(() => {\n setSelectedProductHandle(compareData?.availableCompareList[0]?.handle)\n }, [compareData?.availableCompareList])\n\n const products = [\n compareData?.currentProductCompareData!?.product,\n compareData?.availableCompareList.find(product => product.handle === selectedProductHandle)?.product,\n ].filter(Boolean) as CompareItem['product'][]\n\n if (!compareData?.specificationKeys) return null\n\n return (\n <Dialog>\n <DialogTrigger className=\"text-base font-bold leading-[1.4]\">{copyWriting?.compare}</DialogTrigger>\n <DialogContent\n overlayClassName=\"z-[100]\"\n className=\"rounded-box [&_.dialog-close-icon]:laptop:size-6 laptop:p-0 laptop:w-[896px] z-[110] max-h-[80vh] max-w-[90vw] gap-0 overflow-hidden !py-0 [&_.dialog-close-button]:focus:!ring-0 [&_.dialog-close-icon]:size-4 [&_.dialog-close-icon]:text-[#6D6D6F]\"\n >\n <DialogHeader className=\"laptop:pt-4 laptop:pb-3 laptop:px-8 px-4 pb-2 pt-4\">\n <DialogTitle className=\"laptop:text-[24px] text-left text-[20px] font-bold\">\n {copyWriting?.compare}\n </DialogTitle>\n </DialogHeader>\n <div className=\"laptop:px-8 h-[calc(80vh-64px)] overflow-y-auto px-4\">\n <Grid className=\"laptop:py-3 grid-cols-3 items-center gap-[40px] py-4\">\n <GridItem span={1}>\n <div className=\"text-[16px] font-bold text-[#595959]\">{copyWriting?.product || 'Product'}</div>\n </GridItem>\n <GridItem span={1}>\n <Text\n as=\"div\"\n className=\"rounded-btn flex h-[48px] w-full items-center border border-[#E8E8E8] px-4 text-[16px] font-bold\"\n html={compareData.currentProductCompareData?.shortName || product.title}\n ></Text>\n </GridItem>\n {selectedProductHandle && (\n <GridItem span={1}>\n <Select\n className=\"rounded-btn h-[48px] px-4\"\n value={selectedProductHandle}\n onChange={value => {\n setSelectedProductHandle(value)\n }}\n list={compareData.options!}\n />\n </GridItem>\n )}\n </Grid>\n <Grid className=\"laptop:gap-8 laptop:py-3 grid-cols-3 py-4\">\n <GridItem span={1} />\n {products.map((product, productIndex) => {\n return (\n <GridItem key={productIndex} span={1} className=\"flex items-center\">\n <img src={product.images[0].url} alt={product.title} className=\"size-[100px]\" role=\"presentation\" />\n </GridItem>\n )\n })}\n </Grid>\n <Grid className=\"laptop:py-6 grid-cols-3 items-center gap-[40px] border-b border-[#E8E8E8] py-4\">\n <GridItem span={1} />\n {products.map((product, productIndex) => {\n const variant = product.variants[0]\n return (\n <GridItem span={1} key={productIndex} className=\"flex h-full\">\n {/* Price with original price */}\n <div className=\"flex flex-col gap-[8px]\">\n {variant.price.amount < 9999999 && (\n <div className=\"flex items-center gap-[8px]\">\n {/* <div className=\"text-[16px] font-semibold text-[#595959]\">Price:</div> */}\n <div className=\"flex items-center gap-[6px]\">\n <span className=\"text-[18px] font-bold\">\n {formatPrice({\n locale,\n amount: variant?.coupons?.[0]?.variant_price4wscode || variant.price.amount,\n currencyCode: variant.price.currencyCode,\n })}\n </span>\n {Number(variant?.coupons?.[0]?.variant_price4wscode) > 0 && (\n <span className=\"text-[18px] font-bold text-[#6D6D6F] line-through\">\n {formatPrice({\n locale,\n amount: variant.price.amount,\n currencyCode: variant.price.currencyCode,\n })}\n </span>\n )}\n </div>\n </div>\n )}\n {/* <Button variant=\"primary\" size=\"lg\">\n {copyWriting?.shopNow || 'Shop Now'}\n </Button> */}\n </div>\n </GridItem>\n )\n })}\n </Grid>\n <Grid className=\"laptop:py-6 grid-cols-3 items-center gap-[40px] border-b border-[#E8E8E8] py-4\">\n <GridItem span={1}>\n <div className=\"text-[16px] font-bold text-[#6D6D6F]\">{copyWriting?.color || 'Color'}</div>\n </GridItem>\n {products.map((product, productIndex) => {\n const colors = product.options\n ?.find(option =>\n ['color', 'colour', 'couleur'].find(predicate => option.name.toLowerCase().includes(predicate))\n )\n ?.values.map(value => value.label)\n return (\n <GridItem span={1} key={productIndex} className=\"flex h-full\">\n {colors?.length && (\n <div className=\"flex items-center gap-4\">\n {colors.map(label => (\n <ShopifyColorOption key={label} label={label} className=\"size-6\" />\n ))}\n </div>\n )}\n </GridItem>\n )\n })}\n </Grid>\n <Grid className=\"laptop:gap-0 grid-cols-12 items-center gap-0 border-b border-[#E8E8E8]\">\n {compareData.specificationKeys?.map((key: string) => {\n return (\n <GridItem\n span={12}\n className=\"laptop:py-6 laptop:gap-4 grid grid-cols-3 items-center gap-[40px] border-b border-[#E8E8E8] py-4\"\n key={key}\n >\n {/* Detail value */}\n <div className=\"text-[16px] font-bold text-[#6D6D6F]\">{key}</div>\n {/* Product Values */}\n {products.map((product, productIndex) => {\n const value =\n product.metafields?.global?.specifications?.find(\n (specification: { key: string }) => specification?.key === key\n )?.value || ''\n let text = value\n switch (text.trim().toLowerCase()) {\n case 'true':\n text = '\u2714\uFE0F'\n break\n case 'false':\n text = '\u274C'\n break\n default:\n break\n }\n return (\n <div key={productIndex} className=\"flex items-center\">\n {/* Other details */}\n <div className=\"text-[16px] font-bold text-[#1D1D1F]\">{text}</div>\n </div>\n )\n })}\n </GridItem>\n )\n })}\n </Grid>\n </div>\n </DialogContent>\n </Dialog>\n )\n}\n\nexport default CompareModal\n"],
5
- "mappings": "AAqCM,cAAAA,EAWI,QAAAC,MAXJ,oBArCN,OAAS,aAAAC,EAAW,YAAAC,MAAgB,QACpC,OACE,UAAAC,EAC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"GridItem", "Text", "useBizProductContext", "Select", "useAiuiContext", "formatPrice", "ShopifyColorOption", "CompareModal", "locale", "copyWriting", "compareData", "product", "selectedProductHandle", "setSelectedProductHandle", "products", "value", "productIndex", "variant", "colors", "option", "predicate", "label", "key", "text", "specification", "CompareModal_default"]
4
+ "sourcesContent": ["import { useEffect, useState } from 'react'\nimport {\n Dialog,\n DialogTrigger,\n DialogContent,\n DialogHeader,\n DialogTitle,\n Grid,\n GridItem,\n Text,\n} from '../../../../../../components/index.js'\nimport { useBizProductContext } from '../../../../BizProductProvider.js'\nimport type { CompareItem } from '../../../../types'\nimport Select from './Select.js'\nimport { useAiuiContext } from '../../../../../AiuiProvider/index.js'\nimport { formatPrice } from '../../../../utils/index.js'\nimport { ShopifyColorOption } from './ShopifyColorOption.js'\n\nconst CompareModal = () => {\n const { locale = 'us', copyWriting } = useAiuiContext()\n const { compareData, product } = useBizProductContext()\n const [selectedProductHandle, setSelectedProductHandle] = useState<string>()\n\n useEffect(() => {\n setSelectedProductHandle(compareData?.availableCompareList[0]?.handle)\n }, [compareData?.availableCompareList])\n\n const products = [\n compareData?.currentProductCompareData!?.product,\n compareData?.availableCompareList.find(product => product.handle === selectedProductHandle)?.product,\n ].filter(Boolean) as CompareItem['product'][]\n\n if (!compareData?.specificationKeys) return null\n\n return (\n <Dialog>\n <DialogTrigger className=\"text-base font-bold leading-[1.4]\">{copyWriting?.compare}</DialogTrigger>\n <DialogContent\n overlayClassName=\"z-[100]\"\n className=\"rounded-box [&_.dialog-close-icon]:laptop:size-6 laptop:w-[896px] laptop:px-8 z-[110] max-h-[80vh] max-w-[90vw] gap-0 overflow-hidden overflow-y-auto !py-0 px-4 [&_.dialog-close-button]:focus:!ring-0 [&_.dialog-close-icon]:size-4 [&_.dialog-close-icon]:text-[#6D6D6F]\"\n >\n <DialogHeader className=\"laptop:pt-4 laptop:pb-3 border-b border-[#E8E8E8] pb-2 pt-4\">\n <DialogTitle className=\"text-sm text-[#6D6D6F]\">{copyWriting?.compare}</DialogTitle>\n </DialogHeader>\n <Grid className=\"laptop:gap-8 laptop:py-8 grid-cols-3 py-6\">\n <GridItem span={1} />\n {products.map((product, productIndex) => {\n return (\n <GridItem key={productIndex} span={1} className=\"flex items-center\">\n <img src={product.images[0].url} alt={product.title} className=\"size-[200px]\" role=\"presentation\" />\n </GridItem>\n )\n })}\n </Grid>\n <Grid className=\"grid-cols-3 items-center gap-[40px] border-b border-[#E8E8E8] py-[24px]\">\n <GridItem span={1}>\n <div className=\"text-[16px] font-bold text-[#595959]\">Product</div>\n </GridItem>\n <GridItem span={1}>\n <Text\n as=\"div\"\n className=\"flex h-[38px] w-full items-center rounded-[2px] border border-[#E8E8E8] px-[12px] text-[16px] font-bold\"\n html={compareData.currentProductCompareData?.shortName || product.title}\n ></Text>\n </GridItem>\n {selectedProductHandle && (\n <GridItem span={1}>\n <Select\n value={selectedProductHandle}\n onChange={value => {\n setSelectedProductHandle(value)\n }}\n list={compareData.options!}\n />\n </GridItem>\n )}\n </Grid>\n <Grid className=\"grid-cols-3 items-center gap-[40px] border-b border-[#E8E8E8] py-[24px]\">\n <GridItem span={1}>\n <div className=\"text-[16px] font-bold text-[#595959]\">Basic Information</div>\n </GridItem>\n {products.map((product, productIndex) => {\n const variant = product.variants[0]\n const colors = product.options\n ?.find(option =>\n ['color', 'colour', 'couleur'].find(predicate => option.name.toLowerCase().includes(predicate))\n )\n ?.values.map(value => value.label)\n return (\n <GridItem span={1} key={productIndex} className=\"flex h-full\">\n {/* Price with original price */}\n <div className=\"flex flex-col gap-[8px]\">\n {variant.price.amount < 9999999 && (\n <div className=\"flex items-center gap-[8px]\">\n <div className=\"text-[16px] font-semibold text-[#595959]\">Price:</div>\n <div className=\"flex items-center gap-[6px]\">\n <span className=\"text-[16px] font-bold\">\n {formatPrice({\n locale,\n amount: variant.price.amount,\n currencyCode: variant.price.currencyCode,\n })}\n </span>\n\n {/* {Number(coupon?.fixed_value) > 0 && (\n <span className='font-semibold text-[#999999] line-through'>\n {formatPrice({\n locale,\n amount: variant.price.amount,\n currencyCode: variant.price.currencyCode,\n })}\n </span>\n )} */}\n </div>\n </div>\n )}\n {colors?.length && (\n <div className=\"flex items-center gap-[8px]\">\n <div className=\"text-[16px] font-semibold text-[#595959]\">Color:</div>\n <div className=\"flex items-center gap-[16px]\">\n {colors.map(label => (\n <ShopifyColorOption key={label} label={label} className=\"size-[16px]\" />\n ))}\n </div>\n </div>\n )}\n </div>\n </GridItem>\n )\n })}\n </Grid>\n <Grid className=\"grid-cols-12 items-center gap-[40px] border-b border-[#E8E8E8]\">\n {compareData.specificationKeys?.map((key: string) => {\n return (\n <GridItem\n span={12}\n className=\"grid grid-cols-3 items-center gap-[40px] border-b border-[#E8E8E8] py-[24px]\"\n key={key}\n >\n {/* Detail value */}\n <div className=\"text-[16px] font-bold text-[#595959]\">{key}</div>\n {/* Product Values */}\n {products.map((product, productIndex) => {\n const value =\n product.metafields?.global?.specifications?.find(\n (specification: { key: string }) => specification?.key === key\n )?.value || ''\n let text = value\n switch (text.trim().toLowerCase()) {\n case 'true':\n text = '\u2714\uFE0F'\n break\n case 'false':\n text = '\u274C'\n break\n default:\n break\n }\n return (\n <div key={productIndex} className=\"flex items-center\">\n {/* Other details */}\n <div className=\"text-[16px] font-semibold text-[#595959]\">{text}</div>\n </div>\n )\n })}\n </GridItem>\n )\n })}\n </Grid>\n </DialogContent>\n </Dialog>\n )\n}\n\nexport default CompareModal\n"],
5
+ "mappings": "AAoCM,cAAAA,EAQE,QAAAC,MARF,oBApCN,OAAS,aAAAC,EAAW,YAAAC,MAAgB,QACpC,OACE,UAAAC,EACA,iBAAAC,EACA,iBAAAC,EACA,gBAAAC,EACA,eAAAC,EACA,QAAAC,EACA,YAAAC,EACA,QAAAC,MACK,wCACP,OAAS,wBAAAC,MAA4B,oCAErC,OAAOC,MAAY,cACnB,OAAS,kBAAAC,MAAsB,uCAC/B,OAAS,eAAAC,MAAmB,6BAC5B,OAAS,sBAAAC,MAA0B,0BAEnC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CACC,KAAM,GACN,UAAU,+EAIV,UAAAV,EAAC,OAAI,UAAU,uCAAwC,SAAAgC,EAAI,EAE1DR,EAAS,IAAI,CAACH,EAASI,IAAiB,CAKvC,IAAIQ,EAHFZ,EAAQ,YAAY,QAAQ,gBAAgB,KACzCa,GAAmCA,GAAe,MAAQF,CAC7D,GAAG,OAAS,GAEd,OAAQC,EAAK,KAAK,EAAE,YAAY,EAAG,CACjC,IAAK,OACHA,EAAO,eACP,MACF,IAAK,QACHA,EAAO,SACP,MACF,QACE,KACJ,CACA,OACEjC,EAAC,OAAuB,UAAU,oBAEhC,SAAAA,EAAC,OAAI,UAAU,2CAA4C,SAAAiC,EAAK,GAFxDR,CAGV,CAEJ,CAAC,IA3BIO,CA4BP,CAEH,EACH,GACF,GACF,EA1I0C,IA4I9C,EAEA,IAAOG,EAAQlB",
6
+ "names": ["jsx", "jsxs", "useEffect", "useState", "Dialog", "DialogTrigger", "DialogContent", "DialogHeader", "DialogTitle", "Grid", "GridItem", "Text", "useBizProductContext", "Select", "useAiuiContext", "formatPrice", "ShopifyColorOption", "CompareModal", "locale", "copyWriting", "compareData", "product", "selectedProductHandle", "setSelectedProductHandle", "products", "productIndex", "value", "variant", "colors", "option", "predicate", "label", "key", "text", "specification", "CompareModal_default"]
7
7
  }
@@ -1,2 +1,2 @@
1
- import{jsx as o,jsxs as e}from"react/jsx-runtime";import{useAiuiContext as s}from"../../../../../AiuiProvider/index.js";import{Dialog as r,DialogTrigger as c,DialogContent as g,DialogHeader as x,DialogTitle as n,Grid as d,GridItem as m,Text as p}from"../../../../../../components/index.js";import{useBizProductContext as f}from"../../../../BizProductProvider.js";const N=()=>{const{product:i}=f(),{copyWriting:a}=s();return e(r,{children:[o(c,{className:"text-base font-bold leading-[1.4]",children:a?.specs}),e(g,{overlayClassName:"z-[100]",className:"rounded-box [&_.dialog-close-icon]:laptop:size-6 laptop:w-[896px] laptop:p-0 z-[110] max-h-[80vh] max-w-[90vw] gap-0 overflow-hidden overflow-y-auto !py-0 [&_.dialog-close-button]:focus:!ring-0 [&_.dialog-close-icon]:size-4 [&_.dialog-close-icon]:text-[#6D6D6F]",children:[o(x,{className:"laptop:pt-4 laptop:pb-3 laptop:px-8 px-4 pb-2 pt-4",children:o(n,{className:"laptop:text-[24px] text-left text-[20px] font-bold",children:a?.specs})}),o("div",{className:"laptop:px-8 overflow-y-auto px-4",children:o(d,{className:"laptop:gap-8 laptop:py-8 py-6",children:i.metafields?.global?.specifications?.map(({key:l,value:t})=>e(m,{span:6,className:"flex flex-col gap-1",children:[o(p,{className:"text-[18px] font-bold text-[#1D1D1F]",children:l}),o(p,{className:"text-[18px] font-bold text-[#86868C]",html:t?.trim().toLowerCase()==="true"?"\u2714\uFE0F":t?.trim().toLowerCase()==="false"?"\u274C":t})]},l))})})]})]})};export{N as SpecsModal};
1
+ import{jsx as o,jsxs as t}from"react/jsx-runtime";import{useAiuiContext as p}from"../../../../../AiuiProvider/index.js";import{Dialog as r,DialogTrigger as c,DialogContent as g,DialogHeader as n,DialogTitle as d,Grid as m,GridItem as x,Text as i}from"../../../../../../components/index.js";import{useBizProductContext as f}from"../../../../BizProductProvider.js";const N=()=>{const{product:s}=f(),{copyWriting:a}=p();return t(r,{children:[o(c,{className:"text-base font-bold leading-[1.4]",children:a?.specs}),t(g,{overlayClassName:"z-[100]",className:"rounded-box [&_.dialog-close-icon]:laptop:size-6 laptop:w-[896px] laptop:px-8 z-[110] max-h-[80vh] max-w-[90vw] gap-0 overflow-hidden overflow-y-auto !py-0 px-4 [&_.dialog-close-button]:focus:!ring-0 [&_.dialog-close-icon]:size-4 [&_.dialog-close-icon]:text-[#6D6D6F]",children:[o(n,{className:"laptop:pt-4 laptop:pb-3 border-b border-[#E8E8E8] pb-2 pt-4",children:o(d,{className:"text-sm text-[#6D6D6F]",children:a?.specs})}),o(m,{className:"laptop:gap-8 laptop:py-8 py-6",children:s.metafields?.global?.specifications?.map(({key:l,value:e})=>t(x,{span:6,className:"flex flex-col gap-1",children:[o(i,{className:"text-[16px] font-bold",children:l}),o(i,{className:"text-[16px] font-bold text-[#86868C]",html:e?.trim().toLowerCase()==="true"?"\u2714\uFE0F":e?.trim().toLowerCase()==="false"?"\u274C":e})]},l))})]})]})};export{N as SpecsModal};
2
2
  //# sourceMappingURL=SpecsModal.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../../../src/biz-components/Listing/components/ProductCard/ProductGallery/components/SpecsModal.tsx"],
4
- "sourcesContent": ["import { useAiuiContext } from '../../../../../AiuiProvider/index.js'\nimport {\n Dialog,\n DialogTrigger,\n DialogContent,\n DialogHeader,\n DialogTitle,\n Grid,\n GridItem,\n Text,\n} from '../../../../../../components/index.js'\nimport { useBizProductContext } from '../../../../BizProductProvider.js'\n\nexport const SpecsModal = () => {\n const { product } = useBizProductContext()\n const { copyWriting } = useAiuiContext()\n\n return (\n <Dialog>\n <DialogTrigger className=\"text-base font-bold leading-[1.4]\">{copyWriting?.specs}</DialogTrigger>\n <DialogContent\n overlayClassName=\"z-[100]\"\n className=\"rounded-box [&_.dialog-close-icon]:laptop:size-6 laptop:w-[896px] laptop:p-0 z-[110] max-h-[80vh] max-w-[90vw] gap-0 overflow-hidden overflow-y-auto !py-0 [&_.dialog-close-button]:focus:!ring-0 [&_.dialog-close-icon]:size-4 [&_.dialog-close-icon]:text-[#6D6D6F]\"\n >\n <DialogHeader className=\"laptop:pt-4 laptop:pb-3 laptop:px-8 px-4 pb-2 pt-4\">\n <DialogTitle className=\"laptop:text-[24px] text-left text-[20px] font-bold\">{copyWriting?.specs}</DialogTitle>\n </DialogHeader>\n <div className=\"laptop:px-8 overflow-y-auto px-4\">\n <Grid className=\"laptop:gap-8 laptop:py-8 py-6\">\n {product.metafields?.global?.specifications?.map(({ key, value }: { key: string; value: string }) => (\n <GridItem span={6} key={key} className=\"flex flex-col gap-1\">\n <Text className=\"text-[18px] font-bold text-[#1D1D1F]\">{key}</Text>\n <Text\n className=\"text-[18px] font-bold text-[#86868C]\"\n html={\n value?.trim().toLowerCase() === 'true'\n ? '\u2714\uFE0F'\n : value?.trim().toLowerCase() === 'false'\n ? '\u274C'\n : value\n }\n />\n </GridItem>\n ))}\n </Grid>\n </div>\n </DialogContent>\n </Dialog>\n )\n}\n"],
5
- "mappings": "AAmBM,cAAAA,EAWQ,QAAAC,MAXR,oBAnBN,OAAS,kBAAAC,MAAsB,uCAC/B,OACE,UAAAC,EACA,iBAAAC,EACA,iBAAAC,EACA,gBAAAC,EACA,eAAAC,EACA,QAAAC,EACA,YAAAC,EACA,QAAAC,MACK,wCACP,OAAS,wBAAAC,MAA4B,oCAE9B,MAAMC,EAAa,IAAM,CAC9B,KAAM,CAAE,QAAAC,CAAQ,EAAIF,EAAqB,EACnC,CAAE,YAAAG,CAAY,EAAIZ,EAAe,EAEvC,OACED,EAACE,EAAA,CACC,UAAAH,EAACI,EAAA,CAAc,UAAU,oCAAqC,SAAAU,GAAa,MAAM,EACjFb,EAACI,EAAA,CACC,iBAAiB,UACjB,UAAU,wQAEV,UAAAL,EAACM,EAAA,CAAa,UAAU,qDACtB,SAAAN,EAACO,EAAA,CAAY,UAAU,qDAAsD,SAAAO,GAAa,MAAM,EAClG,EACAd,EAAC,OAAI,UAAU,mCACb,SAAAA,EAACQ,EAAA,CAAK,UAAU,gCACb,SAAAK,EAAQ,YAAY,QAAQ,gBAAgB,IAAI,CAAC,CAAE,IAAAE,EAAK,MAAAC,CAAM,IAC7Df,EAACQ,EAAA,CAAS,KAAM,EAAa,UAAU,sBACrC,UAAAT,EAACU,EAAA,CAAK,UAAU,uCAAwC,SAAAK,EAAI,EAC5Df,EAACU,EAAA,CACC,UAAU,uCACV,KACEM,GAAO,KAAK,EAAE,YAAY,IAAM,OAC5B,eACAA,GAAO,KAAK,EAAE,YAAY,IAAM,QAC9B,SACAA,EAEV,IAXsBD,CAYxB,CACD,EACH,EACF,GACF,GACF,CAEJ",
4
+ "sourcesContent": ["import { useAiuiContext } from '../../../../../AiuiProvider/index.js'\nimport {\n Dialog,\n DialogTrigger,\n DialogContent,\n DialogHeader,\n DialogTitle,\n Grid,\n GridItem,\n Text,\n} from '../../../../../../components/index.js'\nimport { useBizProductContext } from '../../../../BizProductProvider.js'\n\nexport const SpecsModal = () => {\n const { product } = useBizProductContext()\n const { copyWriting } = useAiuiContext()\n\n return (\n <Dialog>\n <DialogTrigger className=\"text-base font-bold leading-[1.4]\">{copyWriting?.specs}</DialogTrigger>\n <DialogContent\n overlayClassName=\"z-[100]\"\n className=\"rounded-box [&_.dialog-close-icon]:laptop:size-6 laptop:w-[896px] laptop:px-8 z-[110] max-h-[80vh] max-w-[90vw] gap-0 overflow-hidden overflow-y-auto !py-0 px-4 [&_.dialog-close-button]:focus:!ring-0 [&_.dialog-close-icon]:size-4 [&_.dialog-close-icon]:text-[#6D6D6F]\"\n >\n <DialogHeader className=\"laptop:pt-4 laptop:pb-3 border-b border-[#E8E8E8] pb-2 pt-4\">\n <DialogTitle className=\"text-sm text-[#6D6D6F]\">{copyWriting?.specs}</DialogTitle>\n </DialogHeader>\n <Grid className=\"laptop:gap-8 laptop:py-8 py-6\">\n {product.metafields?.global?.specifications?.map(({ key, value }: { key: string; value: string }) => (\n <GridItem span={6} key={key} className=\"flex flex-col gap-1\">\n <Text className=\"text-[16px] font-bold\">{key}</Text>\n <Text\n className=\"text-[16px] font-bold text-[#86868C]\"\n html={\n value?.trim().toLowerCase() === 'true' ? '\u2714\uFE0F' : value?.trim().toLowerCase() === 'false' ? '\u274C' : value\n }\n />\n </GridItem>\n ))}\n </Grid>\n </DialogContent>\n </Dialog>\n )\n}\n"],
5
+ "mappings": "AAmBM,cAAAA,EAUM,QAAAC,MAVN,oBAnBN,OAAS,kBAAAC,MAAsB,uCAC/B,OACE,UAAAC,EACA,iBAAAC,EACA,iBAAAC,EACA,gBAAAC,EACA,eAAAC,EACA,QAAAC,EACA,YAAAC,EACA,QAAAC,MACK,wCACP,OAAS,wBAAAC,MAA4B,oCAE9B,MAAMC,EAAa,IAAM,CAC9B,KAAM,CAAE,QAAAC,CAAQ,EAAIF,EAAqB,EACnC,CAAE,YAAAG,CAAY,EAAIZ,EAAe,EAEvC,OACED,EAACE,EAAA,CACC,UAAAH,EAACI,EAAA,CAAc,UAAU,oCAAqC,SAAAU,GAAa,MAAM,EACjFb,EAACI,EAAA,CACC,iBAAiB,UACjB,UAAU,8QAEV,UAAAL,EAACM,EAAA,CAAa,UAAU,8DACtB,SAAAN,EAACO,EAAA,CAAY,UAAU,yBAA0B,SAAAO,GAAa,MAAM,EACtE,EACAd,EAACQ,EAAA,CAAK,UAAU,gCACb,SAAAK,EAAQ,YAAY,QAAQ,gBAAgB,IAAI,CAAC,CAAE,IAAAE,EAAK,MAAAC,CAAM,IAC7Df,EAACQ,EAAA,CAAS,KAAM,EAAa,UAAU,sBACrC,UAAAT,EAACU,EAAA,CAAK,UAAU,wBAAyB,SAAAK,EAAI,EAC7Cf,EAACU,EAAA,CACC,UAAU,uCACV,KACEM,GAAO,KAAK,EAAE,YAAY,IAAM,OAAS,eAAOA,GAAO,KAAK,EAAE,YAAY,IAAM,QAAU,SAAMA,EAEpG,IAPsBD,CAQxB,CACD,EACH,GACF,GACF,CAEJ",
6
6
  "names": ["jsx", "jsxs", "useAiuiContext", "Dialog", "DialogTrigger", "DialogContent", "DialogHeader", "DialogTitle", "Grid", "GridItem", "Text", "useBizProductContext", "SpecsModal", "product", "copyWriting", "key", "value"]
7
7
  }
@@ -1,9 +1,8 @@
1
- /// <reference types="react" />
2
1
  export interface ProductGalleryTabRef {
3
2
  scrollToTab: (index: number) => void;
4
3
  }
5
4
  declare const _default: import("react").ForwardRefExoticComponent<Omit<object, keyof import("../../../../../shared/Styles.js").StylesProps> & Partial<import("../../../../../shared/Styles.js").StylesProps & import("../../../../../shared/Styles.js").ContainerProps> & {
6
- className?: string | undefined;
7
- data?: Record<string, any> | undefined;
5
+ className?: string;
6
+ data?: Record<string, any>;
8
7
  } & import("react").RefAttributes<any>>;
9
8
  export default _default;
@@ -1,2 +1,2 @@
1
- import{Fragment as Te,jsx as e,jsxs as y}from"react/jsx-runtime";import{useAiuiContext as Z}from"../../../../AiuiProvider/index.js";import{Text as ae,Picture as F,Badge as le}from"../../../../../components/index.js";import{useCallback as w,useMemo as j,useState as G,forwardRef as q,useRef as A,useEffect as D,useImperativeHandle as ie}from"react";import{Swiper as B,SwiperSlide as $}from"swiper/react";import{Navigation as H,Mousewheel as J,Thumbs as W,Pagination as Q,Autoplay as oe}from"swiper/modules";import{cn as N}from"../../../../../helpers/index.js";import{GalleryTabType as L}from"./types.js";import{Content as re,List as se,Root as ne,Trigger as ce}from"@radix-ui/react-tabs";import{useBizProductContext as Y}from"../../../BizProductProvider.js";import{useVariantMedia as de}from"../../../hooks/use-variant-media.js";import{SpecsModal as ue}from"./components/SpecsModal.js";import pe from"./components/CompareModal.js";import{formatPrice as me}from"../../../utils/index.js";import{withLayout as be}from"../../../../../shared/Styles.js";import{gaTrack as ge}from"../../../../../shared/track.js";import{ExposureDetector as fe}from"../../../../../components/index.js";const X=t=>y("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[e("rect",{x:"48",y:"48",width:"48",height:"48",rx:"24",transform:"rotate(-180 48 48)",fill:"white"}),e("path",{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",fill:"currentColor"})]}),ee=t=>y("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[e("rect",{width:"48",height:"48",rx:"24",transform:"matrix(1 -8.74228e-08 -8.74228e-08 -1 0 48)",fill:"white"}),e("path",{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",fill:"currentColor"})]}),ve=()=>{const{copyWriting:t}=Z(),{product:r,variant:p,selectedOptions:E}=Y(),m=de({product:r,variant:p}),[d,h]=G(null),k=A(null),b=p?.metafields?.component?.custom_media_list;let l,f,_,S;b&&b?.available?(l=b?.product||[],f=b?.scenarios||[],_=b?.keyFeatures||[],S=b?.video||[]):(l=m?.productList,f=m?.sceneList,_=m?.keyFeaturesList,S=m?.videoList);const n=j(()=>[...l,...f,...S],[l,f,S]),u={productList:l,sceneList:f,keyFeaturesList:_,videoList:S},a=j(()=>{const o=r?.payload?.components?.find(v=>v.componentKey==="ProductGallery")?.data||[],x=p?.payload?.components?.find(v=>v.componentKey==="ProductGallery")?.data||[];return o?.map(v=>{const V=x?.find(z=>v?.galleries===z?.galleries);let K=u[v?.galleries]||[];if(V?.images&&Array.isArray(V.images)&&V.images.length>0){const z=V.images.map(s=>{const P=[];if(s.image_1920&&s.image_1920.trim()&&P.push(`${s.image_1920} 1920`),s.image_1440&&s.image_1440.trim()&&P.push(`${s.image_1440} 1440`),s.image_1024&&s.image_1024.trim()&&P.push(`${s.image_1024} 1024`),s.image_768&&s.image_768.trim()&&P.push(`${s.image_768} 767`),s.image_390&&s.image_390.trim()&&P.push(`${s.image_390} 390`),P.length>0){const U=P.join(", ");return{image:{url:U,altText:v.comment?.content||""},_fromImages:!0,_responsiveSource:U}}return null}).filter(s=>s!==null);z.length>0&&(K=z)}return{...v,galleries:K}}).filter(v=>v.galleries.length>0)},[p?.payload,u,r?.payload]),[g,i]=G(a?.[0]),[c,C]=G(0),[I,T]=G(null),M=w(()=>{const o=(c+1)%a.length;C(o),i(a[o]),T(0)},[c,a]),R=w(()=>{const o=c===0?a.length-1:c-1;C(o),i(a[o]);const x=a[o]?.galleries||[];T(x.length-1)},[c,a]);D(()=>{c!=null&&requestAnimationFrame(()=>{k.current?.scrollToTab(c)})},[c]),D(()=>{i(a[0]),C(0)},[p?.id]);const te=(o,x)=>{switch(o?.galleryTabType){case L.GALLERY_IMAGE_MAIN:return e(O,{...o,index:x,onNextTab:M,onPrevTab:R,targetSlideIndex:I,onSlideChange:()=>T(null)});case L.GALLERY_IMAGE_FEATURES:return e(O,{...o,index:x,onNextTab:M,onPrevTab:R,targetSlideIndex:I,onSlideChange:()=>T(null)});case L.GALLERY_IMAGE_SCENE:return e(O,{...o,index:x,onNextTab:M,onPrevTab:R,targetSlideIndex:I,onSlideChange:()=>T(null)});case L.GALLERY_VIDEO:return e(he,{...o,onNextTab:M,onPrevTab:R,targetSlideIndex:I,onSlideChange:()=>T(null)});default:return null}};return e("div",{id:"ipc-product-gallery",children:y(ne,{className:"relative",value:g?.tabValue,defaultValue:a?.[0]?.tabValue,children:[e("div",{className:"tablet:h-[620px] laptop-md:rounded-2xl laptop-md:h-[560px] lg-desktop:h-[700px] laptop-md:relative h-[420px] overflow-hidden bg-[#EAEAEC] ",children:a.map((o,x)=>e(re,{className:"h-full",value:o.tabValue,children:te(o,x)},o.tabValue))}),e(ye,{ref:k,galleryTabs:a,activeGalleryTab:g,setActiveGalleryTab:i,setActiveTabIndex:C,setTargetSlideIndex:T})]})})},ye=q((t,r)=>{const{galleryTabs:p,activeGalleryTab:E,setActiveGalleryTab:m,setActiveTabIndex:d,setTargetSlideIndex:h}=t,{product:k}=Y(),b=A(null),l=A(new Map),f=w(n=>{if(b.current){const u=b.current,a=n.currentTarget,g=a.offsetLeft-u.offsetWidth/2+a.offsetWidth/2;u.scrollTo({left:g,behavior:"smooth"})}},[]),_=w((n,u,a)=>{m(u),d(a),h(0),f(n)},[m,d,h,f]),S=w(n=>{if(b.current&&p[n]){const u=b.current,a=p[n],g=l.current.get(a.tabValue);if(g){const i=g.offsetLeft-u.offsetWidth/2+g.offsetWidth/2;u.scrollTo({left:i,behavior:"smooth"})}}},[p]);return ie(r,()=>({scrollToTab:S})),y("div",{className:"laptop:inset-x-16 tablet:mt-3 laptop-md:static absolute inset-x-4 bottom-4 z-[2] flex items-center justify-between",children:[e(se,{ref:b,className:"laptop:p-0 laptop-md:p-1 overflow-x-auto rounded-full bg-[#EAEAEC] p-1",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:e("div",{className:"whitespace-nowrap",children:p?.map((n,u)=>e(ce,{ref:a=>{a?l.current.set(n.tabValue,a):l.current.delete(n.tabValue)},className:N("lg-desktop:px-7 lg-desktop:pb-[14px] lg-desktop:pt-[15px] lg-desktop:text-[16px] rounded-full px-5 pb-[10px] pt-[11px] text-[14px] font-bold leading-tight",n.tabValue===E?.tabValue&&"bg-white"),onClick:a=>_(a,n,u),value:n.tabValue,children:n.tabLabel},n.tabValue+u))})}),e("div",{className:"laptop:gap-2 laptop:flex hidden",children:k.metafields?.global?.specifications&&y(Te,{children:[e(ue,{})," | ",e(pe,{})]})})]})}),O=q((t,r)=>{const{locale:p="us",copyWriting:E}=Z(),{variant:m,totalSavings:d}=Y(),h=A(null),[k,b]=G(null),[l,f]=G(null),_=A(null),[S,n]=G(!1),u=j(()=>{if(t?.galleryTabType===L.GALLERY_IMAGE_MAIN)return"size-[240px] mx-auto mt-[42px] tablet:mt-16 tablet:size-[420px] lg-desktop:size-[560px]";t?.galleryTabType===L.GALLERY_IMAGE_FEATURES||(t?.galleryTabType,L.GALLERY_IMAGE_SCENE)},[t?.galleryTabType]),a=w(()=>{l?.isBeginning?t.onPrevTab?.():l?.slidePrev()},[l,t]),g=w(()=>{l?.isEnd?t.onNextTab?.():l?.slideNext()},[l,t]);return D(()=>{l&&t.targetSlideIndex&&(l.slideTo(t.targetSlideIndex,0),t.onSlideChange?.())},[l,t.targetSlideIndex,t]),y("div",{className:"h-full [&_.swiper-button]:hover:opacity-100",children:[e(B,{ref:r,className:"h-full",onSwiper:f,onTouchEnd:(i,c)=>{i.isBeginning&&i.swipeDirection==="prev"?a():i.isEnd&&i.swipeDirection==="next"&&g()},pagination:{clickable:!0,el:h.current},thumbs:{swiper:k},modules:[J,W,H,Q],mousewheel:{forceToAxis:!0},breakpoints:{0:{slidesPerView:1,freeMode:!1}},children:t?.galleries?.map((i,c)=>{const C=`${t.tabValue}-${c}`,I=()=>{ge({event:"ga4Event",event_name:"component_impression",event_parameters:{page_group:`Product Detail Page${m.sku}`,component_type:"image",component_name:t?.tabLabel||"",position:c+1,creative_id:"",component_title:"",component_description:"",navigation:""}})},T=i?._responsiveSource||i?.image?.url||"";return e($,{className:"h-full",children:e(fe,{onExposure:I,exposureKey:C,threshold:.5,duration:2e3,className:"h-full",children:e(F,{source:T,alt:i?.image?.altText,className:N("h-full",u),imgClassName:"object-cover h-full"})})},t?.id+"SwiperSlideItem"+c)})}),m.availableForSale&&!!d&&!t.index&&e(le,{size:"lg",className:"bg-brand laptop:left-16 laptop:top-5 laptop-md:left-6 laptop-md:top-6 absolute left-4 top-3 z-[2] text-white",children:`${me({amount:d,currencyCode:m?.price?.currencyCode,locale:p})} ${E?.off}`}),e("div",{className:N("tablet:opacity-0 tablet:block tablet:absolute tablet:top-1/2 laptop:left-16 tablet:left-6 laptop-md:left-6 z-10 hidden -translate-y-1/2 cursor-pointer","swiper-button"),onClick:a,children:e(X,{className:N("tablet:size-10 lg-desktop:size-12")})}),e("div",{className:N("tablet:block tablet:opacity-0 tablet:absolute tablet:top-1/2 laptop:right-16 tablet:right-6 laptop-md:right-6 z-10 hidden -translate-y-1/2 cursor-pointer","swiper-button"),onClick:g,children:e(ee,{className:N("tablet:size-10 lg-desktop:size-12")})}),y("div",{className:"tablet:bottom-[70px] tablet:flex laptop:inset-x-16 laptop-md:bottom-[20px] laptop-md:inset-x-6 absolute inset-x-4 bottom-[94px] z-10 items-center justify-between",children:[e("div",{className:"tablet:block hidden",children:e(B,{className:"flex items-center justify-between",onSwiper:b,spaceBetween:12,slidesPerView:6,freeMode:!0,watchSlidesProgress:!0,modules:[H,W],children:t?.galleries?.map((i,c)=>e($,{className:"[&.swiper-slide-thumb-active]:border-brand !w-auto cursor-pointer border border-transparent [&.swiper-slide-thumb-active]:rounded",children:e(F,{source:i.image?.url,alt:i.image?.altText,className:"lg-desktop:size-12 size-10 overflow-hidden rounded bg-white",imgClassName:"object-cover h-full"})},t?.id+"SwiperSlideThumbItem"+c))})}),!t?.index&&y("div",{className:"flex items-center gap-2",children:[e(F,{source:t?.comment?.avatar?.url,className:"laptop:size-10 size-8 shrink-0 rounded-full",imgClassName:"object-cover "}),e("div",{className:"relative max-w-[528px] overflow-hidden",children:e(B,{modules:[oe],loop:!0,className:"lg-desktop:h-11 h-10",direction:"vertical",autoplay:{delay:2e3,disableOnInteraction:!1},children:e($,{children:e(ae,{html:t?.comment?.content,className:"lg-desktop:text-base line-clamp-2 text-sm font-bold text-[#1D1D1F]"})})})})]})]}),e("div",{ref:h,className:"tablet:hidden absolute inset-x-4 !bottom-[70px] z-10 text-center [&_.swiper-pagination-bullet-active]:!bg-[#1D1D1F] [&_.swiper-pagination-bullet]:bg-white [&_.swiper-pagination-bullet]:opacity-100"})]})}),he=t=>{const[r,p]=G(null),E=w(()=>{r?.isBeginning?t.onPrevTab?.():r?.slidePrev()},[r,t]),m=w(()=>{r?.isEnd?t.onNextTab?.():r?.slideNext()},[r,t]);return D(()=>{r&&t.targetSlideIndex!==null&&t.targetSlideIndex!==void 0&&(r.slideTo(t.targetSlideIndex,0),t.onSlideChange?.())},[r,t.targetSlideIndex,t]),y("div",{className:"h-full [&_.swiper-button]:hover:opacity-100",children:[e(B,{className:"h-full",onSwiper:p,onTouchEnd:(d,h)=>{d.isBeginning&&d.swipeDirection==="prev"?E():d.isEnd&&d.swipeDirection==="next"&&m()},modules:[J,W,H,Q],mousewheel:{forceToAxis:!0},breakpoints:{0:{slidesPerView:1,freeMode:!1}},children:t?.galleries?.map((d,h)=>e($,{className:"h-full",children:y("video",{controls:!0,className:"size-full object-cover",children:[e("track",{kind:"captions"}),e("source",{src:d?.sources?.[0]?.url,type:"video/mp4"}),e("source",{src:d?.sources?.[0]?.url,type:"video/webm"}),e("source",{src:d?.sources?.[0]?.url,type:"video/ogg"})]})},t?.id+"SwiperSlideItem"+h))}),e("div",{className:N("swiper-button tablet:block tablet:opacity-0 tablet:absolute tablet:top-1/2 tablet:left-6 z-10 hidden -translate-y-1/2 cursor-pointer"),onClick:E,children:e(X,{className:"tablet:size-10 lg-desktop:size-12"})}),e("div",{className:N("tablet:block swiper-button tablet:opacity-0 tablet:absolute tablet:top-1/2 tablet:right-6 z-10 hidden -translate-y-1/2 cursor-pointer"),onClick:m,children:e(ee,{className:"tablet:size-10 lg-desktop:size-12"})})]})},De=t=>e("div",{children:"3D View"});var Be=be(ve);export{Be as default};
1
+ import{Fragment as ve,jsx as e,jsxs as y}from"react/jsx-runtime";import{useAiuiContext as K}from"../../../../AiuiProvider/index.js";import{Text as ee,Picture as V,Badge as te}from"../../../../../components/index.js";import{useCallback as x,useMemo as z,useState as k,forwardRef as U,useRef as I,useEffect as R,useImperativeHandle as le}from"react";import{Swiper as D,SwiperSlide as B}from"swiper/react";import{Navigation as $,Mousewheel as Z,Thumbs as F,Pagination as q}from"swiper/modules";import{cn as w}from"../../../../../helpers/index.js";import{GalleryTabType as L}from"./types.js";import{Content as ae,List as ie,Root as oe,Trigger as re}from"@radix-ui/react-tabs";import{useBizProductContext as j}from"../../../BizProductProvider.js";import{useVariantMedia as se}from"../../../hooks/use-variant-media.js";import{SpecsModal as ne}from"./components/SpecsModal.js";import ce from"./components/CompareModal.js";import{formatPrice as de}from"../../../utils/index.js";import{withLayout as ue}from"../../../../../shared/Styles.js";import{gaTrack as pe}from"../../../../../shared/track.js";import{ExposureDetector as be}from"../../../../../components/index.js";const J=t=>y("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[e("rect",{x:"48",y:"48",width:"48",height:"48",rx:"24",transform:"rotate(-180 48 48)",fill:"white"}),e("path",{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",fill:"currentColor"})]}),Q=t=>y("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[e("rect",{width:"48",height:"48",rx:"24",transform:"matrix(1 -8.74228e-08 -8.74228e-08 -1 0 48)",fill:"white"}),e("path",{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",fill:"currentColor"})]}),me=()=>{const{copyWriting:t}=K(),{product:r,variant:g,selectedOptions:N}=j(),b=se({product:r,variant:g}),[u,h]=k(null),P=I(null),m=g?.metafields?.component?.custom_media_list;let a,v,E,S;m&&m?.available?(a=m?.product||[],v=m?.scenarios||[],E=m?.keyFeatures||[],S=m?.video||[]):(a=b?.productList,v=b?.sceneList,E=b?.keyFeaturesList,S=b?.videoList);const c=z(()=>[...a,...v,...S],[a,v,S]),p={productList:a,sceneList:v,keyFeaturesList:E,videoList:S},l=z(()=>(r?.payload?.components?.find(i=>i.componentKey==="ProductGallery")?.data||[])?.map(i=>{let W=p[i?.galleries]||[];if(i?.images&&Array.isArray(i.images)&&i.images.length>0){const Y=i.images.map(n=>{const G=[];if(n.image_1920&&n.image_1920.trim()&&G.push(`${n.image_1920} 1920`),n.image_1440&&n.image_1440.trim()&&G.push(`${n.image_1440} 1440`),n.image_1024&&n.image_1024.trim()&&G.push(`${n.image_1024} 1024`),n.image_768&&n.image_768.trim()&&G.push(`${n.image_768} 767`),n.image_390&&n.image_390.trim()&&G.push(`${n.image_390} 390`),G.length>0){const O=G.join(", ");return{image:{url:O,altText:i.comment?.content||""},_fromImages:!0,_responsiveSource:O}}return null}).filter(n=>n!==null);Y.length>0&&(W=Y)}return{...i,galleries:W}}).filter(i=>i.galleries.length>0),[r?.payload,p]),[f,o]=k(l?.[0]),[d,_]=k(0),[C,T]=k(null),M=x(()=>{const s=(d+1)%l.length;_(s),o(l[s]),T(0)},[d,l]),A=x(()=>{const s=d===0?l.length-1:d-1;_(s),o(l[s]);const i=l[s]?.galleries||[];T(i.length-1)},[d,l]);R(()=>{d!=null&&requestAnimationFrame(()=>{P.current?.scrollToTab(d)})},[d]),R(()=>{o(l[0]),_(0)},[g?.id]);const X=(s,i)=>{switch(s?.galleryTabType){case L.GALLERY_IMAGE_MAIN:return e(H,{...s,index:i,onNextTab:M,onPrevTab:A,targetSlideIndex:C,onSlideChange:()=>T(null)});case L.GALLERY_IMAGE_FEATURES:return e(H,{...s,index:i,onNextTab:M,onPrevTab:A,targetSlideIndex:C,onSlideChange:()=>T(null)});case L.GALLERY_IMAGE_SCENE:return e(H,{...s,index:i,onNextTab:M,onPrevTab:A,targetSlideIndex:C,onSlideChange:()=>T(null)});case L.GALLERY_VIDEO:return e(fe,{...s,onNextTab:M,onPrevTab:A,targetSlideIndex:C,onSlideChange:()=>T(null)});default:return null}};return e("div",{id:"ipc-product-gallery",children:y(oe,{className:"relative",value:f?.tabValue,defaultValue:l?.[0]?.tabValue,children:[e("div",{className:"tablet:h-[620px] desktop:rounded-2xl desktop:h-[560px] lg-desktop:h-[700px] desktop:relative h-[420px] overflow-hidden bg-[#EAEAEC] ",children:l.map((s,i)=>e(ae,{className:"h-full",value:s.tabValue,children:X(s,i)},s.tabValue))}),e(ge,{ref:P,galleryTabs:l,activeGalleryTab:f,setActiveGalleryTab:o,setActiveTabIndex:_,setTargetSlideIndex:T})]})})},ge=U((t,r)=>{const{galleryTabs:g,activeGalleryTab:N,setActiveGalleryTab:b,setActiveTabIndex:u,setTargetSlideIndex:h}=t,{product:P}=j(),m=I(null),a=I(new Map),v=x(c=>{if(m.current){const p=m.current,l=c.currentTarget,f=l.offsetLeft-p.offsetWidth/2+l.offsetWidth/2;p.scrollTo({left:f,behavior:"smooth"})}},[]),E=x((c,p,l)=>{b(p),u(l),h(0),v(c)},[b,u,h,v]),S=x(c=>{if(m.current&&g[c]){const p=m.current,l=g[c],f=a.current.get(l.tabValue);if(f){const o=f.offsetLeft-p.offsetWidth/2+f.offsetWidth/2;p.scrollTo({left:o,behavior:"smooth"})}}},[g]);return le(r,()=>({scrollToTab:S})),y("div",{className:"laptop:inset-x-16 tablet:mt-3 desktop:static absolute inset-x-4 bottom-4 z-[2] flex items-center justify-between",children:[e(ie,{ref:m,className:"laptop:p-0 desktop:p-1 overflow-x-auto rounded-full bg-[#EAEAEC] p-1",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:e("div",{className:"whitespace-nowrap",children:g?.map((c,p)=>e(re,{ref:l=>{l?a.current.set(c.tabValue,l):a.current.delete(c.tabValue)},className:w("lg-desktop:px-7 lg-desktop:pb-[14px] lg-desktop:pt-[15px] lg-desktop:text-[16px] rounded-full px-5 pb-[10px] pt-[11px] text-[14px] font-bold leading-tight",c.tabValue===N?.tabValue&&"bg-white"),onClick:l=>E(l,c,p),value:c.tabValue,children:c.tabLabel},c.tabValue+p))})}),e("div",{className:"laptop:gap-2 laptop:flex hidden",children:P.metafields?.global?.specifications&&y(ve,{children:[e(ne,{})," | ",e(ce,{})]})})]})}),H=U((t,r)=>{const{locale:g="us",copyWriting:N}=K(),{variant:b,totalSavings:u}=j(),h=I(null),[P,m]=k(null),[a,v]=k(null),E=I(null),[S,c]=k(!1),p=z(()=>{if(t?.galleryTabType===L.GALLERY_IMAGE_MAIN)return"size-[240px] mx-auto mt-[42px] tablet:mt-16 tablet:size-[420px] lg-desktop:size-[560px]";t?.galleryTabType===L.GALLERY_IMAGE_FEATURES||(t?.galleryTabType,L.GALLERY_IMAGE_SCENE)},[t?.galleryTabType]),l=x(()=>{a?.isBeginning?t.onPrevTab?.():a?.slidePrev()},[a,t]),f=x(()=>{a?.isEnd?t.onNextTab?.():a?.slideNext()},[a,t]);return R(()=>{a&&t.targetSlideIndex&&(a.slideTo(t.targetSlideIndex,0),t.onSlideChange?.())},[a,t.targetSlideIndex,t]),y("div",{className:"h-full [&_.swiper-button]:hover:opacity-100",children:[e(D,{ref:r,className:"h-full",onSwiper:v,onTouchEnd:(o,d)=>{o.isBeginning&&o.swipeDirection==="prev"?l():o.isEnd&&o.swipeDirection==="next"&&f()},pagination:{clickable:!0,el:h.current},thumbs:{swiper:P},modules:[Z,F,$,q],mousewheel:{forceToAxis:!0},breakpoints:{0:{slidesPerView:1,freeMode:!1}},children:t?.galleries?.map((o,d)=>{const _=`${t.tabValue}-${d}`,C=()=>{pe({event:"ga4Event",event_name:"component_impression",event_parameters:{page_group:`Product Detail Page${b.sku}`,component_type:"image",component_name:t?.tabLabel||"",position:d+1,creative_id:"",component_title:"",component_description:"",navigation:""}})},T=o?._responsiveSource||o?.image?.url||"";return e(B,{className:"h-full",children:e(be,{onExposure:C,exposureKey:_,threshold:.5,duration:2e3,className:"h-full",children:e(V,{source:T,alt:o?.image?.altText,className:w("h-full",p),imgClassName:"object-cover h-full"})})},t?.id+"SwiperSlideItem"+d)})}),b.availableForSale&&!!u&&!t.index&&e(te,{size:"lg",className:"bg-brand laptop:left-16 laptop:top-5 desktop:left-6 desktop:top-6 absolute left-4 top-3 z-[2] text-white",children:`${de({amount:u,currencyCode:b?.price?.currencyCode,locale:g})} ${N?.off}`}),e("div",{className:w("tablet:opacity-0 tablet:block tablet:absolute tablet:top-1/2 laptop:left-16 tablet:left-6 desktop:left-6 z-10 hidden -translate-y-1/2 cursor-pointer","swiper-button"),onClick:l,children:e(J,{className:w("tablet:size-10 lg-desktop:size-12")})}),e("div",{className:w("tablet:block tablet:opacity-0 tablet:absolute tablet:top-1/2 laptop:right-16 tablet:right-6 desktop:right-6 z-10 hidden -translate-y-1/2 cursor-pointer","swiper-button"),onClick:f,children:e(Q,{className:w("tablet:size-10 lg-desktop:size-12")})}),y("div",{className:"tablet:bottom-[70px] tablet:flex laptop:inset-x-16 desktop:bottom-[20px] desktop:inset-x-6 absolute inset-x-4 bottom-[94px] z-10 items-center justify-between",children:[e("div",{className:"tablet:block hidden",children:e(D,{className:"flex items-center justify-between",onSwiper:m,spaceBetween:12,slidesPerView:6,freeMode:!0,watchSlidesProgress:!0,modules:[$,F],children:t?.galleries?.map((o,d)=>e(B,{className:"[&.swiper-slide-thumb-active]:border-brand !w-auto cursor-pointer border border-transparent [&.swiper-slide-thumb-active]:rounded",children:e(V,{source:o.image?.url,alt:o.image?.altText,className:"lg-desktop:size-12 size-10 overflow-hidden rounded bg-white",imgClassName:"object-cover h-full"})},t?.id+"SwiperSlideThumbItem"+d))})}),!t?.index&&y("div",{className:"flex items-center gap-2",children:[e(V,{source:t?.comment?.avatar?.url,className:"laptop:size-10 size-8 shrink-0 rounded-full",imgClassName:"object-cover "}),e("div",{className:"relative max-w-[528px] overflow-hidden",children:e("div",{ref:E,className:w("line-clamp-2"),style:{},children:e(ee,{html:t?.comment?.content,className:"lg-desktop:text-base text-sm font-bold text-[#1D1D1F]"})})})]})]}),e("div",{ref:h,className:"tablet:hidden absolute inset-x-4 !bottom-[70px] z-10 text-center [&_.swiper-pagination-bullet-active]:!bg-[#1D1D1F] [&_.swiper-pagination-bullet]:bg-white [&_.swiper-pagination-bullet]:opacity-100"})]})}),fe=t=>{const[r,g]=k(null),N=x(()=>{r?.isBeginning?t.onPrevTab?.():r?.slidePrev()},[r,t]),b=x(()=>{r?.isEnd?t.onNextTab?.():r?.slideNext()},[r,t]);return R(()=>{r&&t.targetSlideIndex!==null&&t.targetSlideIndex!==void 0&&(r.slideTo(t.targetSlideIndex,0),t.onSlideChange?.())},[r,t.targetSlideIndex,t]),y("div",{className:"h-full [&_.swiper-button]:hover:opacity-100",children:[e(D,{className:"h-full",onSwiper:g,onTouchEnd:(u,h)=>{u.isBeginning&&u.swipeDirection==="prev"?N():u.isEnd&&u.swipeDirection==="next"&&b()},modules:[Z,F,$,q],mousewheel:{forceToAxis:!0},breakpoints:{0:{slidesPerView:1,freeMode:!1}},children:t?.galleries?.map((u,h)=>e(B,{className:"h-full",children:y("video",{controls:!0,className:"size-full object-cover",children:[e("track",{kind:"captions"}),e("source",{src:u?.sources?.[0]?.url,type:"video/mp4"}),e("source",{src:u?.sources?.[0]?.url,type:"video/webm"}),e("source",{src:u?.sources?.[0]?.url,type:"video/ogg"})]})},t?.id+"SwiperSlideItem"+h))}),e("div",{className:w("swiper-button tablet:block tablet:opacity-0 tablet:absolute tablet:top-1/2 tablet:left-6 z-10 hidden -translate-y-1/2 cursor-pointer"),onClick:N,children:e(J,{className:"tablet:size-10 lg-desktop:size-12"})}),e("div",{className:w("tablet:block swiper-button tablet:opacity-0 tablet:absolute tablet:top-1/2 tablet:right-6 z-10 hidden -translate-y-1/2 cursor-pointer"),onClick:b,children:e(Q,{className:"tablet:size-10 lg-desktop:size-12"})})]})},Re=t=>e("div",{children:"3D View"});var Ve=ue(me);export{Ve as default};
2
2
  //# sourceMappingURL=index.js.map