@anker-in/headless-ui 1.1.32 → 1.1.34-alpha.1768461697532

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 (864) hide show
  1. package/dist/cjs/biz-components/AccordionCards/index.d.ts +3 -3
  2. package/dist/cjs/biz-components/ActiveShelf/index.d.ts +222 -0
  3. package/dist/cjs/biz-components/ActiveShelf/index.js +2 -0
  4. package/dist/cjs/biz-components/ActiveShelf/index.js.map +7 -0
  5. package/dist/cjs/biz-components/ActiveShelf/types.d.ts +22 -0
  6. package/dist/cjs/biz-components/ActiveShelf/types.js +2 -0
  7. package/dist/cjs/biz-components/ActiveShelf/types.js.map +7 -0
  8. package/dist/cjs/biz-components/AiuiProvider/index.d.ts +7 -0
  9. package/dist/cjs/biz-components/AiuiProvider/index.js +1 -1
  10. package/dist/cjs/biz-components/AiuiProvider/index.js.map +2 -2
  11. package/dist/cjs/biz-components/AnchorNavigation/index.d.ts +42 -0
  12. package/dist/cjs/biz-components/AnchorNavigation/index.js +2 -0
  13. package/dist/cjs/biz-components/AnchorNavigation/index.js.map +7 -0
  14. package/dist/cjs/biz-components/AnchorNavigation/useAnchorPosition.d.ts +2 -0
  15. package/dist/cjs/biz-components/AnchorNavigation/useAnchorPosition.js +2 -0
  16. package/dist/cjs/biz-components/AnchorNavigation/useAnchorPosition.js.map +7 -0
  17. package/dist/cjs/biz-components/AplusDesc/index.d.ts +3 -3
  18. package/dist/cjs/biz-components/BrandCardLink/BrandCardLink.d.ts +3 -3
  19. package/dist/cjs/biz-components/BrandCardLink/BrandCardLink.js +1 -1
  20. package/dist/cjs/biz-components/BrandCardLink/BrandCardLink.js.map +1 -1
  21. package/dist/cjs/biz-components/BrandEquity/BrandEquity.d.ts +3 -3
  22. package/dist/cjs/biz-components/BrandEquity/BrandEquity.js +1 -1
  23. package/dist/cjs/biz-components/BrandEquity/BrandEquity.js.map +3 -3
  24. package/dist/cjs/biz-components/BrandEquity/types.d.ts +1 -0
  25. package/dist/cjs/biz-components/BrandEquity/types.js +1 -1
  26. package/dist/cjs/biz-components/BrandEquity/types.js.map +1 -1
  27. package/dist/cjs/biz-components/BuyOneGetOneShelf/ProductCard.d.ts +74 -0
  28. package/dist/cjs/biz-components/BuyOneGetOneShelf/ProductCard.js +2 -0
  29. package/dist/cjs/biz-components/BuyOneGetOneShelf/ProductCard.js.map +7 -0
  30. package/dist/cjs/biz-components/BuyOneGetOneShelf/hooks/useBogoDataTransform.d.ts +36 -0
  31. package/dist/cjs/biz-components/BuyOneGetOneShelf/hooks/useBogoDataTransform.js +2 -0
  32. package/dist/cjs/biz-components/BuyOneGetOneShelf/hooks/useBogoDataTransform.js.map +7 -0
  33. package/dist/cjs/biz-components/BuyOneGetOneShelf/index.d.ts +193 -0
  34. package/dist/cjs/biz-components/BuyOneGetOneShelf/index.js +2 -0
  35. package/dist/cjs/biz-components/BuyOneGetOneShelf/index.js.map +7 -0
  36. package/dist/cjs/biz-components/Category/index.d.ts +3 -3
  37. package/dist/cjs/biz-components/CreativeModule/index.d.ts +3 -3
  38. package/dist/cjs/biz-components/DownLoad/index.d.ts +3 -3
  39. package/dist/cjs/biz-components/Evaluate/index.d.ts +3 -3
  40. package/dist/cjs/biz-components/Evaluate/index.js +1 -1
  41. package/dist/cjs/biz-components/Evaluate/index.js.map +3 -3
  42. package/dist/cjs/biz-components/EventSchedule/index.d.ts +63 -0
  43. package/dist/cjs/biz-components/EventSchedule/index.js +2 -0
  44. package/dist/cjs/biz-components/EventSchedule/index.js.map +7 -0
  45. package/dist/cjs/biz-components/Faq/Faq.d.ts +3 -3
  46. package/dist/cjs/biz-components/FeatureCards/FeatureCards.d.ts +3 -3
  47. package/dist/cjs/biz-components/FeatureShowcase/FeatureShowcase.d.ts +3 -3
  48. package/dist/cjs/biz-components/Features/index.d.ts +3 -3
  49. package/dist/cjs/biz-components/FootCharger/index.d.ts +3 -3
  50. package/dist/cjs/biz-components/FooterNavigation/index.d.ts +3 -3
  51. package/dist/cjs/biz-components/GiftBox/index.d.ts +3 -3
  52. package/dist/cjs/biz-components/Graphic/index.d.ts +3 -3
  53. package/dist/cjs/biz-components/Graphic/index.js +1 -1
  54. package/dist/cjs/biz-components/Graphic/index.js.map +3 -3
  55. package/dist/cjs/biz-components/GraphicAttractionBlock/index.d.ts +3 -3
  56. package/dist/cjs/biz-components/GraphicMore/index.d.ts +3 -3
  57. package/dist/cjs/biz-components/GraphicOverlay/GraphicOverlay.d.ts +3 -3
  58. package/dist/cjs/biz-components/HeaderNavigation/MobileSidebarMenu.js +1 -1
  59. package/dist/cjs/biz-components/HeaderNavigation/MobileSidebarMenu.js.map +3 -3
  60. package/dist/cjs/biz-components/HeaderNavigation/SidebarDropdown.js +1 -1
  61. package/dist/cjs/biz-components/HeaderNavigation/SidebarDropdown.js.map +2 -2
  62. package/dist/cjs/biz-components/HeaderNavigation/index.d.ts +3 -3
  63. package/dist/cjs/biz-components/HeroBanner/Countdown.js +1 -1
  64. package/dist/cjs/biz-components/HeroBanner/Countdown.js.map +2 -2
  65. package/dist/cjs/biz-components/HeroBanner/HeroBanner.d.ts +6 -3
  66. package/dist/cjs/biz-components/HeroBanner/HeroBanner.js +1 -1
  67. package/dist/cjs/biz-components/HeroBanner/HeroBanner.js.map +3 -3
  68. package/dist/cjs/biz-components/IPRedirect/RegionBanner.d.ts +37 -0
  69. package/dist/cjs/biz-components/IPRedirect/RegionBanner.js +60 -0
  70. package/dist/cjs/biz-components/IPRedirect/RegionBanner.js.map +7 -0
  71. package/dist/cjs/biz-components/IPRedirect/RegionSelectorModal.d.ts +47 -0
  72. package/dist/cjs/biz-components/IPRedirect/RegionSelectorModal.js +69 -0
  73. package/dist/cjs/biz-components/IPRedirect/RegionSelectorModal.js.map +7 -0
  74. package/dist/cjs/biz-components/IPRedirect/index.d.ts +9 -0
  75. package/dist/cjs/biz-components/IPRedirect/index.js +2 -0
  76. package/dist/cjs/biz-components/IPRedirect/index.js.map +7 -0
  77. package/dist/cjs/biz-components/IPRedirect/type.d.ts +36 -0
  78. package/dist/cjs/biz-components/IPRedirect/type.js +2 -0
  79. package/dist/cjs/biz-components/IPRedirect/type.js.map +7 -0
  80. package/dist/cjs/biz-components/IPRedirect/useAutoRedirect.d.ts +66 -0
  81. package/dist/cjs/biz-components/IPRedirect/useAutoRedirect.js +2 -0
  82. package/dist/cjs/biz-components/IPRedirect/useAutoRedirect.js.map +7 -0
  83. package/dist/cjs/biz-components/IPRedirect/useDetectedRegionRedirect.d.ts +51 -0
  84. package/dist/cjs/biz-components/IPRedirect/useDetectedRegionRedirect.js +2 -0
  85. package/dist/cjs/biz-components/IPRedirect/useDetectedRegionRedirect.js.map +7 -0
  86. package/dist/cjs/biz-components/IPRedirect/useIPRedirect.d.ts +42 -0
  87. package/dist/cjs/biz-components/IPRedirect/useIPRedirect.js +2 -0
  88. package/dist/cjs/biz-components/IPRedirect/useIPRedirect.js.map +7 -0
  89. package/dist/cjs/biz-components/IPRedirect/useRedirectBanner.d.ts +108 -0
  90. package/dist/cjs/biz-components/IPRedirect/useRedirectBanner.js +2 -0
  91. package/dist/cjs/biz-components/IPRedirect/useRedirectBanner.js.map +7 -0
  92. package/dist/cjs/biz-components/IPRedirect/useRegionRedirectManager.d.ts +152 -0
  93. package/dist/cjs/biz-components/IPRedirect/useRegionRedirectManager.js +2 -0
  94. package/dist/cjs/biz-components/IPRedirect/useRegionRedirectManager.js.map +7 -0
  95. package/dist/cjs/biz-components/IPRedirect/useSavedRegionRedirect.d.ts +51 -0
  96. package/dist/cjs/biz-components/IPRedirect/useSavedRegionRedirect.js +2 -0
  97. package/dist/cjs/biz-components/IPRedirect/useSavedRegionRedirect.js.map +7 -0
  98. package/dist/cjs/biz-components/IPRedirect/utils.d.ts +222 -0
  99. package/dist/cjs/biz-components/IPRedirect/utils.js +2 -0
  100. package/dist/cjs/biz-components/IPRedirect/utils.js.map +7 -0
  101. package/dist/cjs/biz-components/ImageOverlayShelf/index.d.ts +130 -0
  102. package/dist/cjs/biz-components/ImageOverlayShelf/index.js +2 -0
  103. package/dist/cjs/biz-components/ImageOverlayShelf/index.js.map +7 -0
  104. package/dist/cjs/biz-components/ImageTextFeature/ImageTextFeature.d.ts +3 -3
  105. package/dist/cjs/biz-components/ImageTextFeature/ImageTextFeature.js +1 -1
  106. package/dist/cjs/biz-components/ImageTextFeature/ImageTextFeature.js.map +3 -3
  107. package/dist/cjs/biz-components/ImageWithText/ImageWithText.d.ts +3 -3
  108. package/dist/cjs/biz-components/Ksp/index.d.ts +3 -3
  109. package/dist/cjs/biz-components/Listing/components/PaidShipping/index.d.ts +4 -4
  110. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.d.ts +3 -3
  111. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.d.ts +3 -3
  112. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.d.ts +3 -3
  113. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.d.ts +3 -3
  114. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.d.ts +3 -3
  115. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductOptions/index.d.ts +3 -3
  116. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/index.d.ts +3 -3
  117. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductSummary/index.d.ts +3 -3
  118. package/dist/cjs/biz-components/Listing/components/PurchaseBar/index.d.ts +3 -3
  119. package/dist/cjs/biz-components/Marquee/Marquee.d.ts +3 -3
  120. package/dist/cjs/biz-components/Marquee/Marquee.js +1 -1
  121. package/dist/cjs/biz-components/Marquee/Marquee.js.map +3 -3
  122. package/dist/cjs/biz-components/MarqueeReview/index.d.ts +3 -3
  123. package/dist/cjs/biz-components/Media/index.d.ts +32 -0
  124. package/dist/cjs/biz-components/Media/index.js +2 -0
  125. package/dist/cjs/biz-components/Media/index.js.map +7 -0
  126. package/dist/cjs/biz-components/MediaPlayerBase/index.d.ts +3 -3
  127. package/dist/cjs/biz-components/MediaPlayerMulti/index.d.ts +3 -3
  128. package/dist/cjs/biz-components/MediaPlayerSticky/index.d.ts +4 -4
  129. package/dist/cjs/biz-components/MediaPlayerSticky/types.d.ts +1 -0
  130. package/dist/cjs/biz-components/MediaPlayerSticky/types.js +1 -1
  131. package/dist/cjs/biz-components/MediaPlayerSticky/types.js.map +1 -1
  132. package/dist/cjs/biz-components/MediaSceneSwitcher/MediaSceneSwitcher.d.ts +3 -3
  133. package/dist/cjs/biz-components/MediaShelf/index.d.ts +216 -0
  134. package/dist/cjs/biz-components/MediaShelf/index.js +2 -0
  135. package/dist/cjs/biz-components/MediaShelf/index.js.map +7 -0
  136. package/dist/cjs/biz-components/MediaShelf/types.d.ts +22 -0
  137. package/dist/cjs/biz-components/MediaShelf/types.js +2 -0
  138. package/dist/cjs/biz-components/MediaShelf/types.js.map +7 -0
  139. package/dist/cjs/biz-components/MemberEquity/index.d.ts +3 -3
  140. package/dist/cjs/biz-components/MiniCart/index.d.ts +88 -0
  141. package/dist/cjs/biz-components/MiniCart/index.js +2 -0
  142. package/dist/cjs/biz-components/MiniCart/index.js.map +7 -0
  143. package/dist/cjs/biz-components/MultiLayoutGraphicBlock/MultiLayoutGraphicBlock.d.ts +3 -3
  144. package/dist/cjs/biz-components/ProductCompare/index.d.ts +3 -3
  145. package/dist/cjs/biz-components/ProductHero/ProductHero.d.ts +3 -3
  146. package/dist/cjs/biz-components/ProductNav/ProductNav.d.ts +3 -3
  147. package/dist/cjs/biz-components/PromotionalBar/index.d.ts +49 -0
  148. package/dist/cjs/biz-components/PromotionalBar/index.js +2 -0
  149. package/dist/cjs/biz-components/PromotionalBar/index.js.map +7 -0
  150. package/dist/cjs/biz-components/SecondaryBanner/index.d.ts +69 -0
  151. package/dist/cjs/biz-components/SecondaryBanner/index.js +2 -0
  152. package/dist/cjs/biz-components/SecondaryBanner/index.js.map +7 -0
  153. package/dist/cjs/biz-components/SelectStore/index.d.ts +3 -3
  154. package/dist/cjs/biz-components/ShelfDisplay/index.d.ts +3 -3
  155. package/dist/cjs/biz-components/ShelfDisplay/shelfDisplay.d.ts +0 -11
  156. package/dist/cjs/biz-components/ShelfDisplay/shelfDisplay.js +1 -1
  157. package/dist/cjs/biz-components/ShelfDisplay/shelfDisplay.js.map +3 -3
  158. package/dist/cjs/biz-components/Slogan/index.d.ts +3 -3
  159. package/dist/cjs/biz-components/Spacer/index.d.ts +3 -3
  160. package/dist/cjs/biz-components/Specs/index.d.ts +3 -3
  161. package/dist/cjs/biz-components/Specs/index.js +1 -1
  162. package/dist/cjs/biz-components/Specs/index.js.map +2 -2
  163. package/dist/cjs/biz-components/SpecsComparison/SpecsComparison.d.ts +3 -3
  164. package/dist/cjs/biz-components/TabWithImage/TabWithImage.d.ts +3 -3
  165. package/dist/cjs/biz-components/Tabs/Tabs.d.ts +3 -3
  166. package/dist/cjs/biz-components/TabsGroup/index.d.ts +3 -3
  167. package/dist/cjs/biz-components/TabsWithMedia/TabsWithMedia.d.ts +3 -3
  168. package/dist/cjs/biz-components/ThreeDCarousel/ThreeDCarousel.d.ts +3 -3
  169. package/dist/cjs/biz-components/Title/Countdown.d.ts +14 -0
  170. package/dist/cjs/biz-components/Title/Countdown.js +2 -0
  171. package/dist/cjs/biz-components/Title/Countdown.js.map +7 -0
  172. package/dist/cjs/biz-components/Title/index.d.ts +3 -3
  173. package/dist/cjs/biz-components/Title/index.js +1 -1
  174. package/dist/cjs/biz-components/Title/index.js.map +3 -3
  175. package/dist/cjs/biz-components/Title/types.d.ts +55 -0
  176. package/dist/cjs/biz-components/Title/types.js +1 -1
  177. package/dist/cjs/biz-components/Title/types.js.map +1 -1
  178. package/dist/cjs/biz-components/VideoFeature/VideoFeature.d.ts +3 -3
  179. package/dist/cjs/biz-components/WheelLottery/BaseModal.d.ts +55 -0
  180. package/dist/cjs/biz-components/WheelLottery/BaseModal.js +12 -0
  181. package/dist/cjs/biz-components/WheelLottery/BaseModal.js.map +7 -0
  182. package/dist/cjs/biz-components/WheelLottery/ChanceMethods.d.ts +30 -0
  183. package/dist/cjs/biz-components/WheelLottery/ChanceMethods.js +2 -0
  184. package/dist/cjs/biz-components/WheelLottery/ChanceMethods.js.map +7 -0
  185. package/dist/cjs/biz-components/WheelLottery/ErrorModal.d.ts +42 -0
  186. package/dist/cjs/biz-components/WheelLottery/ErrorModal.js +2 -0
  187. package/dist/cjs/biz-components/WheelLottery/ErrorModal.js.map +7 -0
  188. package/dist/cjs/biz-components/WheelLottery/MyRewardsModal.d.ts +91 -0
  189. package/dist/cjs/biz-components/WheelLottery/MyRewardsModal.js +2 -0
  190. package/dist/cjs/biz-components/WheelLottery/MyRewardsModal.js.map +7 -0
  191. package/dist/cjs/biz-components/WheelLottery/PrizePool.d.ts +26 -0
  192. package/dist/cjs/biz-components/WheelLottery/PrizePool.js +2 -0
  193. package/dist/cjs/biz-components/WheelLottery/PrizePool.js.map +7 -0
  194. package/dist/cjs/biz-components/WheelLottery/RulesModal.d.ts +43 -0
  195. package/dist/cjs/biz-components/WheelLottery/RulesModal.js +2 -0
  196. package/dist/cjs/biz-components/WheelLottery/RulesModal.js.map +7 -0
  197. package/dist/cjs/biz-components/WheelLottery/ShareModal.d.ts +74 -0
  198. package/dist/cjs/biz-components/WheelLottery/ShareModal.js +2 -0
  199. package/dist/cjs/biz-components/WheelLottery/ShareModal.js.map +7 -0
  200. package/dist/cjs/biz-components/WheelLottery/Wheel.d.ts +27 -0
  201. package/dist/cjs/biz-components/WheelLottery/Wheel.js +2 -0
  202. package/dist/cjs/biz-components/WheelLottery/Wheel.js.map +7 -0
  203. package/dist/cjs/biz-components/WheelLottery/WinnerModal.d.ts +25 -0
  204. package/dist/cjs/biz-components/WheelLottery/WinnerModal.js +2 -0
  205. package/dist/cjs/biz-components/WheelLottery/WinnerModal.js.map +7 -0
  206. package/dist/cjs/biz-components/WheelLottery/index.d.ts +52 -0
  207. package/dist/cjs/biz-components/WheelLottery/index.js +2 -0
  208. package/dist/cjs/biz-components/WheelLottery/index.js.map +7 -0
  209. package/dist/cjs/biz-components/WheelLottery/types.d.ts +1193 -0
  210. package/dist/cjs/biz-components/WheelLottery/types.js +2 -0
  211. package/dist/cjs/biz-components/WheelLottery/types.js.map +7 -0
  212. package/dist/cjs/biz-components/WhyChoose/WhyChoose.d.ts +3 -3
  213. package/dist/cjs/biz-components/index.d.ts +30 -2
  214. package/dist/cjs/biz-components/index.js +1 -1
  215. package/dist/cjs/biz-components/index.js.map +3 -3
  216. package/dist/cjs/components/badge.js +1 -1
  217. package/dist/cjs/components/badge.js.map +2 -2
  218. package/dist/cjs/components/index.d.ts +2 -0
  219. package/dist/cjs/components/index.js +1 -1
  220. package/dist/cjs/components/index.js.map +3 -3
  221. package/dist/cjs/components/paginator.d.ts +12 -0
  222. package/dist/cjs/components/paginator.js +7 -0
  223. package/dist/cjs/components/paginator.js.map +7 -0
  224. package/dist/cjs/components/progress.d.ts +46 -0
  225. package/dist/cjs/components/progress.js +2 -0
  226. package/dist/cjs/components/progress.js.map +7 -0
  227. package/dist/cjs/components/tabs.d.ts +2 -1
  228. package/dist/cjs/components/tabs.js +1 -1
  229. package/dist/cjs/components/tabs.js.map +2 -2
  230. package/dist/cjs/helpers/index.d.ts +1 -0
  231. package/dist/cjs/helpers/index.js +1 -1
  232. package/dist/cjs/helpers/index.js.map +3 -3
  233. package/dist/cjs/helpers/priceFormatting.d.ts +11 -0
  234. package/dist/cjs/helpers/priceFormatting.js +2 -0
  235. package/dist/cjs/helpers/priceFormatting.js.map +7 -0
  236. package/dist/cjs/shared/Styles.d.ts +5 -4
  237. package/dist/cjs/shared/Styles.js +1 -1
  238. package/dist/cjs/shared/Styles.js.map +3 -3
  239. package/dist/cjs/types/props.d.ts +0 -3
  240. package/dist/cjs/types/props.js +1 -1
  241. package/dist/cjs/types/props.js.map +1 -1
  242. package/dist/esm/biz-components/AccordionCards/index.d.ts +3 -3
  243. package/dist/esm/biz-components/ActiveShelf/index.d.ts +222 -0
  244. package/dist/esm/biz-components/ActiveShelf/index.js +2 -0
  245. package/dist/esm/biz-components/ActiveShelf/index.js.map +7 -0
  246. package/dist/esm/biz-components/ActiveShelf/types.d.ts +22 -0
  247. package/dist/esm/biz-components/ActiveShelf/types.js +1 -0
  248. package/dist/esm/biz-components/ActiveShelf/types.js.map +7 -0
  249. package/dist/esm/biz-components/AiuiProvider/index.d.ts +7 -0
  250. package/dist/esm/biz-components/AiuiProvider/index.js +1 -1
  251. package/dist/esm/biz-components/AiuiProvider/index.js.map +2 -2
  252. package/dist/esm/biz-components/AnchorNavigation/index.d.ts +42 -0
  253. package/dist/esm/biz-components/AnchorNavigation/index.js +2 -0
  254. package/dist/esm/biz-components/AnchorNavigation/index.js.map +7 -0
  255. package/dist/esm/biz-components/AnchorNavigation/useAnchorPosition.d.ts +2 -0
  256. package/dist/esm/biz-components/AnchorNavigation/useAnchorPosition.js +2 -0
  257. package/dist/esm/biz-components/AnchorNavigation/useAnchorPosition.js.map +7 -0
  258. package/dist/esm/biz-components/AplusDesc/index.d.ts +3 -3
  259. package/dist/esm/biz-components/BrandCardLink/BrandCardLink.d.ts +3 -3
  260. package/dist/esm/biz-components/BrandCardLink/BrandCardLink.js +1 -1
  261. package/dist/esm/biz-components/BrandCardLink/BrandCardLink.js.map +1 -1
  262. package/dist/esm/biz-components/BrandEquity/BrandEquity.d.ts +3 -3
  263. package/dist/esm/biz-components/BrandEquity/BrandEquity.js +1 -1
  264. package/dist/esm/biz-components/BrandEquity/BrandEquity.js.map +3 -3
  265. package/dist/esm/biz-components/BrandEquity/types.d.ts +1 -0
  266. package/dist/esm/biz-components/BuyOneGetOneShelf/ProductCard.d.ts +74 -0
  267. package/dist/esm/biz-components/BuyOneGetOneShelf/ProductCard.js +2 -0
  268. package/dist/esm/biz-components/BuyOneGetOneShelf/ProductCard.js.map +7 -0
  269. package/dist/esm/biz-components/BuyOneGetOneShelf/hooks/useBogoDataTransform.d.ts +36 -0
  270. package/dist/esm/biz-components/BuyOneGetOneShelf/hooks/useBogoDataTransform.js +2 -0
  271. package/dist/esm/biz-components/BuyOneGetOneShelf/hooks/useBogoDataTransform.js.map +7 -0
  272. package/dist/esm/biz-components/BuyOneGetOneShelf/index.d.ts +193 -0
  273. package/dist/esm/biz-components/BuyOneGetOneShelf/index.js +2 -0
  274. package/dist/esm/biz-components/BuyOneGetOneShelf/index.js.map +7 -0
  275. package/dist/esm/biz-components/Category/index.d.ts +3 -3
  276. package/dist/esm/biz-components/CreativeModule/index.d.ts +3 -3
  277. package/dist/esm/biz-components/DownLoad/index.d.ts +3 -3
  278. package/dist/esm/biz-components/Evaluate/index.d.ts +3 -3
  279. package/dist/esm/biz-components/Evaluate/index.js +1 -1
  280. package/dist/esm/biz-components/Evaluate/index.js.map +3 -3
  281. package/dist/esm/biz-components/EventSchedule/index.d.ts +63 -0
  282. package/dist/esm/biz-components/EventSchedule/index.js +2 -0
  283. package/dist/esm/biz-components/EventSchedule/index.js.map +7 -0
  284. package/dist/esm/biz-components/Faq/Faq.d.ts +3 -3
  285. package/dist/esm/biz-components/FeatureCards/FeatureCards.d.ts +3 -3
  286. package/dist/esm/biz-components/FeatureShowcase/FeatureShowcase.d.ts +3 -3
  287. package/dist/esm/biz-components/Features/index.d.ts +3 -3
  288. package/dist/esm/biz-components/FootCharger/index.d.ts +3 -3
  289. package/dist/esm/biz-components/FooterNavigation/index.d.ts +3 -3
  290. package/dist/esm/biz-components/GiftBox/index.d.ts +3 -3
  291. package/dist/esm/biz-components/Graphic/index.d.ts +3 -3
  292. package/dist/esm/biz-components/Graphic/index.js +1 -1
  293. package/dist/esm/biz-components/Graphic/index.js.map +3 -3
  294. package/dist/esm/biz-components/GraphicAttractionBlock/index.d.ts +3 -3
  295. package/dist/esm/biz-components/GraphicMore/index.d.ts +3 -3
  296. package/dist/esm/biz-components/GraphicOverlay/GraphicOverlay.d.ts +3 -3
  297. package/dist/esm/biz-components/HeaderNavigation/MobileSidebarMenu.js +1 -1
  298. package/dist/esm/biz-components/HeaderNavigation/MobileSidebarMenu.js.map +3 -3
  299. package/dist/esm/biz-components/HeaderNavigation/SidebarDropdown.js +1 -1
  300. package/dist/esm/biz-components/HeaderNavigation/SidebarDropdown.js.map +2 -2
  301. package/dist/esm/biz-components/HeaderNavigation/index.d.ts +3 -3
  302. package/dist/esm/biz-components/HeroBanner/Countdown.js +1 -1
  303. package/dist/esm/biz-components/HeroBanner/Countdown.js.map +2 -2
  304. package/dist/esm/biz-components/HeroBanner/HeroBanner.d.ts +6 -3
  305. package/dist/esm/biz-components/HeroBanner/HeroBanner.js +1 -1
  306. package/dist/esm/biz-components/HeroBanner/HeroBanner.js.map +3 -3
  307. package/dist/esm/biz-components/IPRedirect/RegionBanner.d.ts +37 -0
  308. package/dist/esm/biz-components/IPRedirect/RegionBanner.js +60 -0
  309. package/dist/esm/biz-components/IPRedirect/RegionBanner.js.map +7 -0
  310. package/dist/esm/biz-components/IPRedirect/RegionSelectorModal.d.ts +47 -0
  311. package/dist/esm/biz-components/IPRedirect/RegionSelectorModal.js +69 -0
  312. package/dist/esm/biz-components/IPRedirect/RegionSelectorModal.js.map +7 -0
  313. package/dist/esm/biz-components/IPRedirect/index.d.ts +9 -0
  314. package/dist/esm/biz-components/IPRedirect/index.js +2 -0
  315. package/dist/esm/biz-components/IPRedirect/index.js.map +7 -0
  316. package/dist/esm/biz-components/IPRedirect/type.d.ts +36 -0
  317. package/dist/esm/biz-components/IPRedirect/type.js +1 -0
  318. package/dist/esm/biz-components/IPRedirect/type.js.map +7 -0
  319. package/dist/esm/biz-components/IPRedirect/useAutoRedirect.d.ts +66 -0
  320. package/dist/esm/biz-components/IPRedirect/useAutoRedirect.js +2 -0
  321. package/dist/esm/biz-components/IPRedirect/useAutoRedirect.js.map +7 -0
  322. package/dist/esm/biz-components/IPRedirect/useDetectedRegionRedirect.d.ts +51 -0
  323. package/dist/esm/biz-components/IPRedirect/useDetectedRegionRedirect.js +2 -0
  324. package/dist/esm/biz-components/IPRedirect/useDetectedRegionRedirect.js.map +7 -0
  325. package/dist/esm/biz-components/IPRedirect/useIPRedirect.d.ts +42 -0
  326. package/dist/esm/biz-components/IPRedirect/useIPRedirect.js +2 -0
  327. package/dist/esm/biz-components/IPRedirect/useIPRedirect.js.map +7 -0
  328. package/dist/esm/biz-components/IPRedirect/useRedirectBanner.d.ts +108 -0
  329. package/dist/esm/biz-components/IPRedirect/useRedirectBanner.js +2 -0
  330. package/dist/esm/biz-components/IPRedirect/useRedirectBanner.js.map +7 -0
  331. package/dist/esm/biz-components/IPRedirect/useRegionRedirectManager.d.ts +152 -0
  332. package/dist/esm/biz-components/IPRedirect/useRegionRedirectManager.js +2 -0
  333. package/dist/esm/biz-components/IPRedirect/useRegionRedirectManager.js.map +7 -0
  334. package/dist/esm/biz-components/IPRedirect/useSavedRegionRedirect.d.ts +51 -0
  335. package/dist/esm/biz-components/IPRedirect/useSavedRegionRedirect.js +2 -0
  336. package/dist/esm/biz-components/IPRedirect/useSavedRegionRedirect.js.map +7 -0
  337. package/dist/esm/biz-components/IPRedirect/utils.d.ts +222 -0
  338. package/dist/esm/biz-components/IPRedirect/utils.js +2 -0
  339. package/dist/esm/biz-components/IPRedirect/utils.js.map +7 -0
  340. package/dist/esm/biz-components/ImageOverlayShelf/index.d.ts +130 -0
  341. package/dist/esm/biz-components/ImageOverlayShelf/index.js +2 -0
  342. package/dist/esm/biz-components/ImageOverlayShelf/index.js.map +7 -0
  343. package/dist/esm/biz-components/ImageTextFeature/ImageTextFeature.d.ts +3 -3
  344. package/dist/esm/biz-components/ImageTextFeature/ImageTextFeature.js +1 -1
  345. package/dist/esm/biz-components/ImageTextFeature/ImageTextFeature.js.map +3 -3
  346. package/dist/esm/biz-components/ImageWithText/ImageWithText.d.ts +3 -3
  347. package/dist/esm/biz-components/Ksp/index.d.ts +3 -3
  348. package/dist/esm/biz-components/Listing/components/PaidShipping/index.d.ts +4 -4
  349. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.d.ts +3 -3
  350. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.d.ts +3 -3
  351. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.d.ts +3 -3
  352. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.d.ts +3 -3
  353. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.d.ts +3 -3
  354. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductOptions/index.d.ts +3 -3
  355. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/index.d.ts +3 -3
  356. package/dist/esm/biz-components/Listing/components/ProductCard/ProductSummary/index.d.ts +3 -3
  357. package/dist/esm/biz-components/Listing/components/PurchaseBar/index.d.ts +3 -3
  358. package/dist/esm/biz-components/Marquee/Marquee.d.ts +3 -3
  359. package/dist/esm/biz-components/Marquee/Marquee.js +1 -1
  360. package/dist/esm/biz-components/Marquee/Marquee.js.map +3 -3
  361. package/dist/esm/biz-components/MarqueeReview/index.d.ts +3 -3
  362. package/dist/esm/biz-components/Media/index.d.ts +32 -0
  363. package/dist/esm/biz-components/Media/index.js +2 -0
  364. package/dist/esm/biz-components/Media/index.js.map +7 -0
  365. package/dist/esm/biz-components/MediaPlayerBase/index.d.ts +3 -3
  366. package/dist/esm/biz-components/MediaPlayerMulti/index.d.ts +3 -3
  367. package/dist/esm/biz-components/MediaPlayerSticky/index.d.ts +4 -4
  368. package/dist/esm/biz-components/MediaPlayerSticky/types.d.ts +1 -0
  369. package/dist/esm/biz-components/MediaSceneSwitcher/MediaSceneSwitcher.d.ts +3 -3
  370. package/dist/esm/biz-components/MediaShelf/index.d.ts +216 -0
  371. package/dist/esm/biz-components/MediaShelf/index.js +2 -0
  372. package/dist/esm/biz-components/MediaShelf/index.js.map +7 -0
  373. package/dist/esm/biz-components/MediaShelf/types.d.ts +22 -0
  374. package/dist/esm/biz-components/MediaShelf/types.js +1 -0
  375. package/dist/esm/biz-components/MediaShelf/types.js.map +7 -0
  376. package/dist/esm/biz-components/MemberEquity/index.d.ts +3 -3
  377. package/dist/esm/biz-components/MiniCart/index.d.ts +88 -0
  378. package/dist/esm/biz-components/MiniCart/index.js +2 -0
  379. package/dist/esm/biz-components/MiniCart/index.js.map +7 -0
  380. package/dist/esm/biz-components/MultiLayoutGraphicBlock/MultiLayoutGraphicBlock.d.ts +3 -3
  381. package/dist/esm/biz-components/ProductCompare/index.d.ts +3 -3
  382. package/dist/esm/biz-components/ProductHero/ProductHero.d.ts +3 -3
  383. package/dist/esm/biz-components/ProductNav/ProductNav.d.ts +3 -3
  384. package/dist/esm/biz-components/PromotionalBar/index.d.ts +49 -0
  385. package/dist/esm/biz-components/PromotionalBar/index.js +2 -0
  386. package/dist/esm/biz-components/PromotionalBar/index.js.map +7 -0
  387. package/dist/esm/biz-components/SecondaryBanner/index.d.ts +69 -0
  388. package/dist/esm/biz-components/SecondaryBanner/index.js +2 -0
  389. package/dist/esm/biz-components/SecondaryBanner/index.js.map +7 -0
  390. package/dist/esm/biz-components/SelectStore/index.d.ts +3 -3
  391. package/dist/esm/biz-components/ShelfDisplay/index.d.ts +3 -3
  392. package/dist/esm/biz-components/ShelfDisplay/shelfDisplay.d.ts +0 -11
  393. package/dist/esm/biz-components/ShelfDisplay/shelfDisplay.js +1 -1
  394. package/dist/esm/biz-components/ShelfDisplay/shelfDisplay.js.map +3 -3
  395. package/dist/esm/biz-components/Slogan/index.d.ts +3 -3
  396. package/dist/esm/biz-components/Spacer/index.d.ts +3 -3
  397. package/dist/esm/biz-components/Specs/index.d.ts +3 -3
  398. package/dist/esm/biz-components/Specs/index.js +1 -1
  399. package/dist/esm/biz-components/Specs/index.js.map +2 -2
  400. package/dist/esm/biz-components/SpecsComparison/SpecsComparison.d.ts +3 -3
  401. package/dist/esm/biz-components/TabWithImage/TabWithImage.d.ts +3 -3
  402. package/dist/esm/biz-components/Tabs/Tabs.d.ts +3 -3
  403. package/dist/esm/biz-components/TabsGroup/index.d.ts +3 -3
  404. package/dist/esm/biz-components/TabsWithMedia/TabsWithMedia.d.ts +3 -3
  405. package/dist/esm/biz-components/ThreeDCarousel/ThreeDCarousel.d.ts +3 -3
  406. package/dist/esm/biz-components/Title/Countdown.d.ts +14 -0
  407. package/dist/esm/biz-components/Title/Countdown.js +2 -0
  408. package/dist/esm/biz-components/Title/Countdown.js.map +7 -0
  409. package/dist/esm/biz-components/Title/index.d.ts +3 -3
  410. package/dist/esm/biz-components/Title/index.js +1 -1
  411. package/dist/esm/biz-components/Title/index.js.map +3 -3
  412. package/dist/esm/biz-components/Title/types.d.ts +55 -0
  413. package/dist/esm/biz-components/VideoFeature/VideoFeature.d.ts +3 -3
  414. package/dist/esm/biz-components/WheelLottery/BaseModal.d.ts +55 -0
  415. package/dist/esm/biz-components/WheelLottery/BaseModal.js +12 -0
  416. package/dist/esm/biz-components/WheelLottery/BaseModal.js.map +7 -0
  417. package/dist/esm/biz-components/WheelLottery/ChanceMethods.d.ts +30 -0
  418. package/dist/esm/biz-components/WheelLottery/ChanceMethods.js +2 -0
  419. package/dist/esm/biz-components/WheelLottery/ChanceMethods.js.map +7 -0
  420. package/dist/esm/biz-components/WheelLottery/ErrorModal.d.ts +42 -0
  421. package/dist/esm/biz-components/WheelLottery/ErrorModal.js +2 -0
  422. package/dist/esm/biz-components/WheelLottery/ErrorModal.js.map +7 -0
  423. package/dist/esm/biz-components/WheelLottery/MyRewardsModal.d.ts +91 -0
  424. package/dist/esm/biz-components/WheelLottery/MyRewardsModal.js +2 -0
  425. package/dist/esm/biz-components/WheelLottery/MyRewardsModal.js.map +7 -0
  426. package/dist/esm/biz-components/WheelLottery/PrizePool.d.ts +26 -0
  427. package/dist/esm/biz-components/WheelLottery/PrizePool.js +2 -0
  428. package/dist/esm/biz-components/WheelLottery/PrizePool.js.map +7 -0
  429. package/dist/esm/biz-components/WheelLottery/RulesModal.d.ts +43 -0
  430. package/dist/esm/biz-components/WheelLottery/RulesModal.js +2 -0
  431. package/dist/esm/biz-components/WheelLottery/RulesModal.js.map +7 -0
  432. package/dist/esm/biz-components/WheelLottery/ShareModal.d.ts +74 -0
  433. package/dist/esm/biz-components/WheelLottery/ShareModal.js +2 -0
  434. package/dist/esm/biz-components/WheelLottery/ShareModal.js.map +7 -0
  435. package/dist/esm/biz-components/WheelLottery/Wheel.d.ts +27 -0
  436. package/dist/esm/biz-components/WheelLottery/Wheel.js +2 -0
  437. package/dist/esm/biz-components/WheelLottery/Wheel.js.map +7 -0
  438. package/dist/esm/biz-components/WheelLottery/WinnerModal.d.ts +25 -0
  439. package/dist/esm/biz-components/WheelLottery/WinnerModal.js +2 -0
  440. package/dist/esm/biz-components/WheelLottery/WinnerModal.js.map +7 -0
  441. package/dist/esm/biz-components/WheelLottery/index.d.ts +52 -0
  442. package/dist/esm/biz-components/WheelLottery/index.js +2 -0
  443. package/dist/esm/biz-components/WheelLottery/index.js.map +7 -0
  444. package/dist/esm/biz-components/WheelLottery/types.d.ts +1193 -0
  445. package/dist/esm/biz-components/WheelLottery/types.js +2 -0
  446. package/dist/esm/biz-components/WheelLottery/types.js.map +7 -0
  447. package/dist/esm/biz-components/WhyChoose/WhyChoose.d.ts +3 -3
  448. package/dist/esm/biz-components/index.d.ts +30 -2
  449. package/dist/esm/biz-components/index.js +1 -1
  450. package/dist/esm/biz-components/index.js.map +3 -3
  451. package/dist/esm/components/badge.js +1 -1
  452. package/dist/esm/components/badge.js.map +2 -2
  453. package/dist/esm/components/index.d.ts +2 -0
  454. package/dist/esm/components/index.js +1 -1
  455. package/dist/esm/components/index.js.map +2 -2
  456. package/dist/esm/components/paginator.d.ts +12 -0
  457. package/dist/esm/components/paginator.js +7 -0
  458. package/dist/esm/components/paginator.js.map +7 -0
  459. package/dist/esm/components/progress.d.ts +46 -0
  460. package/dist/esm/components/progress.js +2 -0
  461. package/dist/esm/components/progress.js.map +7 -0
  462. package/dist/esm/components/tabs.d.ts +2 -1
  463. package/dist/esm/components/tabs.js +1 -1
  464. package/dist/esm/components/tabs.js.map +2 -2
  465. package/dist/esm/helpers/index.d.ts +1 -0
  466. package/dist/esm/helpers/index.js +1 -1
  467. package/dist/esm/helpers/index.js.map +3 -3
  468. package/dist/esm/helpers/priceFormatting.d.ts +11 -0
  469. package/dist/esm/helpers/priceFormatting.js +2 -0
  470. package/dist/esm/helpers/priceFormatting.js.map +7 -0
  471. package/dist/esm/shared/Styles.d.ts +5 -4
  472. package/dist/esm/shared/Styles.js +1 -1
  473. package/dist/esm/shared/Styles.js.map +3 -3
  474. package/dist/esm/types/props.d.ts +0 -3
  475. package/dist/tokens/base.css +4 -3
  476. package/dist/tokens/eufy.css +1 -0
  477. package/dist/tokens/soundcore.css +4 -3
  478. package/package.json +8 -3
  479. package/style.css +4915 -126
  480. package/tailwind.config.js +19 -2
  481. package/dist/cjs/stories/HeroBanner.stories.d.ts +0 -28
  482. package/dist/cjs/stories/HeroBanner.stories.js +0 -11
  483. package/dist/cjs/stories/HeroBanner.stories.js.map +0 -7
  484. package/dist/cjs/stories/InlineVideo.stories.d.ts +0 -37
  485. package/dist/cjs/stories/InlineVideo.stories.js +0 -164
  486. package/dist/cjs/stories/InlineVideo.stories.js.map +0 -7
  487. package/dist/cjs/stories/MarqueeReview.stories.d.ts +0 -72
  488. package/dist/cjs/stories/MarqueeReview.stories.js +0 -19
  489. package/dist/cjs/stories/MarqueeReview.stories.js.map +0 -7
  490. package/dist/cjs/stories/MediaSceneSwitcher.stories.d.ts +0 -47
  491. package/dist/cjs/stories/MediaSceneSwitcher.stories.js +0 -2
  492. package/dist/cjs/stories/MediaSceneSwitcher.stories.js.map +0 -7
  493. package/dist/cjs/stories/MemberEquity.stories.d.ts +0 -9
  494. package/dist/cjs/stories/MemberEquity.stories.js +0 -31
  495. package/dist/cjs/stories/MemberEquity.stories.js.map +0 -7
  496. package/dist/cjs/stories/MultiLayoutGraphicBlock.stories.d.ts +0 -9
  497. package/dist/cjs/stories/MultiLayoutGraphicBlock.stories.js +0 -2
  498. package/dist/cjs/stories/MultiLayoutGraphicBlock.stories.js.map +0 -7
  499. package/dist/cjs/stories/ProductNav.stories.d.ts +0 -55
  500. package/dist/cjs/stories/ProductNav.stories.js +0 -2
  501. package/dist/cjs/stories/ProductNav.stories.js.map +0 -7
  502. package/dist/cjs/stories/ThreeDCarousel.stories.d.ts +0 -27
  503. package/dist/cjs/stories/ThreeDCarousel.stories.js +0 -118
  504. package/dist/cjs/stories/ThreeDCarousel.stories.js.map +0 -7
  505. package/dist/cjs/stories/accordionCards.stories.d.ts +0 -38
  506. package/dist/cjs/stories/accordionCards.stories.js +0 -2
  507. package/dist/cjs/stories/accordionCards.stories.js.map +0 -7
  508. package/dist/cjs/stories/alert.stories.d.ts +0 -27
  509. package/dist/cjs/stories/alert.stories.js +0 -2
  510. package/dist/cjs/stories/alert.stories.js.map +0 -7
  511. package/dist/cjs/stories/avatar.stories.d.ts +0 -39
  512. package/dist/cjs/stories/avatar.stories.js +0 -2
  513. package/dist/cjs/stories/avatar.stories.js.map +0 -7
  514. package/dist/cjs/stories/badge.stories.d.ts +0 -96
  515. package/dist/cjs/stories/badge.stories.js +0 -2
  516. package/dist/cjs/stories/badge.stories.js.map +0 -7
  517. package/dist/cjs/stories/bizTabs.stories.d.ts +0 -7
  518. package/dist/cjs/stories/bizTabs.stories.js +0 -2
  519. package/dist/cjs/stories/bizTabs.stories.js.map +0 -7
  520. package/dist/cjs/stories/board.stories.d.ts +0 -6
  521. package/dist/cjs/stories/board.stories.js +0 -2
  522. package/dist/cjs/stories/board.stories.js.map +0 -7
  523. package/dist/cjs/stories/brandEquity.stories.d.ts +0 -16
  524. package/dist/cjs/stories/brandEquity.stories.js +0 -2
  525. package/dist/cjs/stories/brandEquity.stories.js.map +0 -7
  526. package/dist/cjs/stories/brandStrip.stories.d.ts +0 -12
  527. package/dist/cjs/stories/brandStrip.stories.js +0 -2
  528. package/dist/cjs/stories/brandStrip.stories.js.map +0 -7
  529. package/dist/cjs/stories/button.stories.d.ts +0 -56
  530. package/dist/cjs/stories/button.stories.js +0 -2
  531. package/dist/cjs/stories/button.stories.js.map +0 -7
  532. package/dist/cjs/stories/card.stories.d.ts +0 -27
  533. package/dist/cjs/stories/card.stories.js +0 -2
  534. package/dist/cjs/stories/card.stories.js.map +0 -7
  535. package/dist/cjs/stories/carousel.stories.d.ts +0 -8
  536. package/dist/cjs/stories/carousel.stories.js +0 -2
  537. package/dist/cjs/stories/carousel.stories.js.map +0 -7
  538. package/dist/cjs/stories/category.stories.d.ts +0 -17
  539. package/dist/cjs/stories/category.stories.js +0 -2
  540. package/dist/cjs/stories/category.stories.js.map +0 -7
  541. package/dist/cjs/stories/checkbox.stories.d.ts +0 -46
  542. package/dist/cjs/stories/checkbox.stories.js +0 -2
  543. package/dist/cjs/stories/checkbox.stories.js.map +0 -7
  544. package/dist/cjs/stories/container.stories.d.ts +0 -28
  545. package/dist/cjs/stories/container.stories.js +0 -15
  546. package/dist/cjs/stories/container.stories.js.map +0 -7
  547. package/dist/cjs/stories/cpnBanner.stories.d.ts +0 -14
  548. package/dist/cjs/stories/cpnBanner.stories.js +0 -2
  549. package/dist/cjs/stories/cpnBanner.stories.js.map +0 -7
  550. package/dist/cjs/stories/cpnCountdown.stories.d.ts +0 -12
  551. package/dist/cjs/stories/cpnCountdown.stories.js +0 -2
  552. package/dist/cjs/stories/cpnCountdown.stories.js.map +0 -7
  553. package/dist/cjs/stories/cpnNavigation.stories.d.ts +0 -14
  554. package/dist/cjs/stories/cpnNavigation.stories.js +0 -2
  555. package/dist/cjs/stories/cpnNavigation.stories.js.map +0 -7
  556. package/dist/cjs/stories/cpnProductcard.stories.d.ts +0 -14
  557. package/dist/cjs/stories/cpnProductcard.stories.js +0 -2
  558. package/dist/cjs/stories/cpnProductcard.stories.js.map +0 -7
  559. package/dist/cjs/stories/cpnTitle.stories.d.ts +0 -14
  560. package/dist/cjs/stories/cpnTitle.stories.js +0 -2
  561. package/dist/cjs/stories/cpnTitle.stories.js.map +0 -7
  562. package/dist/cjs/stories/creativeModule.stories.d.ts +0 -19
  563. package/dist/cjs/stories/creativeModule.stories.js +0 -2
  564. package/dist/cjs/stories/creativeModule.stories.js.map +0 -7
  565. package/dist/cjs/stories/dialog.stories.d.ts +0 -20
  566. package/dist/cjs/stories/dialog.stories.js +0 -2
  567. package/dist/cjs/stories/dialog.stories.js.map +0 -7
  568. package/dist/cjs/stories/drawer.stories.d.ts +0 -20
  569. package/dist/cjs/stories/drawer.stories.js +0 -2
  570. package/dist/cjs/stories/drawer.stories.js.map +0 -7
  571. package/dist/cjs/stories/drop-down.stories.d.ts +0 -16
  572. package/dist/cjs/stories/drop-down.stories.js +0 -2
  573. package/dist/cjs/stories/drop-down.stories.js.map +0 -7
  574. package/dist/cjs/stories/evaluate.stories.d.ts +0 -16
  575. package/dist/cjs/stories/evaluate.stories.js +0 -2
  576. package/dist/cjs/stories/evaluate.stories.js.map +0 -7
  577. package/dist/cjs/stories/faq.stories.d.ts +0 -21
  578. package/dist/cjs/stories/faq.stories.js +0 -2
  579. package/dist/cjs/stories/faq.stories.js.map +0 -7
  580. package/dist/cjs/stories/featureCards.stories.d.ts +0 -30
  581. package/dist/cjs/stories/featureCards.stories.js +0 -61
  582. package/dist/cjs/stories/featureCards.stories.js.map +0 -7
  583. package/dist/cjs/stories/featureShowcase.stories.d.ts +0 -29
  584. package/dist/cjs/stories/featureShowcase.stories.js +0 -44
  585. package/dist/cjs/stories/featureShowcase.stories.js.map +0 -7
  586. package/dist/cjs/stories/graphic.stories.d.ts +0 -64
  587. package/dist/cjs/stories/graphic.stories.js +0 -2
  588. package/dist/cjs/stories/graphic.stories.js.map +0 -7
  589. package/dist/cjs/stories/graphicAttractionBlock.stories.d.ts +0 -6
  590. package/dist/cjs/stories/graphicAttractionBlock.stories.js +0 -2
  591. package/dist/cjs/stories/graphicAttractionBlock.stories.js.map +0 -7
  592. package/dist/cjs/stories/grid.stories.d.ts +0 -22
  593. package/dist/cjs/stories/grid.stories.js +0 -13
  594. package/dist/cjs/stories/grid.stories.js.map +0 -7
  595. package/dist/cjs/stories/heading.stories.d.ts +0 -84
  596. package/dist/cjs/stories/heading.stories.js +0 -15
  597. package/dist/cjs/stories/heading.stories.js.map +0 -7
  598. package/dist/cjs/stories/imageTextFeature.stories.d.ts +0 -28
  599. package/dist/cjs/stories/imageTextFeature.stories.js +0 -50
  600. package/dist/cjs/stories/imageTextFeature.stories.js.map +0 -7
  601. package/dist/cjs/stories/imageWithText.stories.d.ts +0 -51
  602. package/dist/cjs/stories/imageWithText.stories.js +0 -84
  603. package/dist/cjs/stories/imageWithText.stories.js.map +0 -7
  604. package/dist/cjs/stories/input-number.stories.d.ts +0 -39
  605. package/dist/cjs/stories/input-number.stories.js +0 -2
  606. package/dist/cjs/stories/input-number.stories.js.map +0 -7
  607. package/dist/cjs/stories/input.stories.d.ts +0 -35
  608. package/dist/cjs/stories/input.stories.js +0 -2
  609. package/dist/cjs/stories/input.stories.js.map +0 -7
  610. package/dist/cjs/stories/ksp.stories.d.ts +0 -63
  611. package/dist/cjs/stories/ksp.stories.js +0 -128
  612. package/dist/cjs/stories/ksp.stories.js.map +0 -7
  613. package/dist/cjs/stories/link.stories.d.ts +0 -69
  614. package/dist/cjs/stories/link.stories.js +0 -2
  615. package/dist/cjs/stories/link.stories.js.map +0 -7
  616. package/dist/cjs/stories/marquee.stories.d.ts +0 -30
  617. package/dist/cjs/stories/marquee.stories.js +0 -2
  618. package/dist/cjs/stories/marquee.stories.js.map +0 -7
  619. package/dist/cjs/stories/mediaplayerBase.stories.d.ts +0 -6
  620. package/dist/cjs/stories/mediaplayerBase.stories.js +0 -2
  621. package/dist/cjs/stories/mediaplayerBase.stories.js.map +0 -7
  622. package/dist/cjs/stories/mediaplayerMulti.stories.d.ts +0 -16
  623. package/dist/cjs/stories/mediaplayerMulti.stories.js +0 -2
  624. package/dist/cjs/stories/mediaplayerMulti.stories.js.map +0 -7
  625. package/dist/cjs/stories/picture.stories.d.ts +0 -23
  626. package/dist/cjs/stories/picture.stories.js +0 -9
  627. package/dist/cjs/stories/picture.stories.js.map +0 -7
  628. package/dist/cjs/stories/popover.stories.d.ts +0 -17
  629. package/dist/cjs/stories/popover.stories.js +0 -2
  630. package/dist/cjs/stories/popover.stories.js.map +0 -7
  631. package/dist/cjs/stories/productCompare.stories.d.ts +0 -54
  632. package/dist/cjs/stories/productCompare.stories.js +0 -54
  633. package/dist/cjs/stories/productCompare.stories.js.map +0 -7
  634. package/dist/cjs/stories/productHero.stories.d.ts +0 -29
  635. package/dist/cjs/stories/productHero.stories.js +0 -50
  636. package/dist/cjs/stories/productHero.stories.js.map +0 -7
  637. package/dist/cjs/stories/radio.stories.d.ts +0 -39
  638. package/dist/cjs/stories/radio.stories.js +0 -2
  639. package/dist/cjs/stories/radio.stories.js.map +0 -7
  640. package/dist/cjs/stories/shelfDisplay.stories.d.ts +0 -16
  641. package/dist/cjs/stories/shelfDisplay.stories.js +0 -2
  642. package/dist/cjs/stories/shelfDisplay.stories.js.map +0 -7
  643. package/dist/cjs/stories/skeleton.stories.d.ts +0 -20
  644. package/dist/cjs/stories/skeleton.stories.js +0 -2
  645. package/dist/cjs/stories/skeleton.stories.js.map +0 -7
  646. package/dist/cjs/stories/slogan.stories.d.ts +0 -20
  647. package/dist/cjs/stories/slogan.stories.js +0 -6
  648. package/dist/cjs/stories/slogan.stories.js.map +0 -7
  649. package/dist/cjs/stories/specs.stories.d.ts +0 -13
  650. package/dist/cjs/stories/specs.stories.js +0 -57
  651. package/dist/cjs/stories/specs.stories.js.map +0 -7
  652. package/dist/cjs/stories/specsComparison.stories.d.ts +0 -28
  653. package/dist/cjs/stories/specsComparison.stories.js +0 -105
  654. package/dist/cjs/stories/specsComparison.stories.js.map +0 -7
  655. package/dist/cjs/stories/tabWithImage.stories.d.ts +0 -28
  656. package/dist/cjs/stories/tabWithImage.stories.js +0 -53
  657. package/dist/cjs/stories/tabWithImage.stories.js.map +0 -7
  658. package/dist/cjs/stories/tabs.stories.d.ts +0 -373
  659. package/dist/cjs/stories/tabs.stories.js +0 -2
  660. package/dist/cjs/stories/tabs.stories.js.map +0 -7
  661. package/dist/cjs/stories/tabsWithMedia.stories.d.ts +0 -28
  662. package/dist/cjs/stories/tabsWithMedia.stories.js +0 -68
  663. package/dist/cjs/stories/tabsWithMedia.stories.js.map +0 -7
  664. package/dist/cjs/stories/text.stories.d.ts +0 -86
  665. package/dist/cjs/stories/text.stories.js +0 -21
  666. package/dist/cjs/stories/text.stories.js.map +0 -7
  667. package/dist/cjs/stories/videoFeature.stories.d.ts +0 -29
  668. package/dist/cjs/stories/videoFeature.stories.js +0 -56
  669. package/dist/cjs/stories/videoFeature.stories.js.map +0 -7
  670. package/dist/cjs/stories/whychoose.stories.d.ts +0 -21
  671. package/dist/cjs/stories/whychoose.stories.js +0 -2
  672. package/dist/cjs/stories/whychoose.stories.js.map +0 -7
  673. package/dist/esm/stories/HeroBanner.stories.d.ts +0 -28
  674. package/dist/esm/stories/HeroBanner.stories.js +0 -11
  675. package/dist/esm/stories/HeroBanner.stories.js.map +0 -7
  676. package/dist/esm/stories/InlineVideo.stories.d.ts +0 -37
  677. package/dist/esm/stories/InlineVideo.stories.js +0 -164
  678. package/dist/esm/stories/InlineVideo.stories.js.map +0 -7
  679. package/dist/esm/stories/MarqueeReview.stories.d.ts +0 -72
  680. package/dist/esm/stories/MarqueeReview.stories.js +0 -19
  681. package/dist/esm/stories/MarqueeReview.stories.js.map +0 -7
  682. package/dist/esm/stories/MediaSceneSwitcher.stories.d.ts +0 -47
  683. package/dist/esm/stories/MediaSceneSwitcher.stories.js +0 -2
  684. package/dist/esm/stories/MediaSceneSwitcher.stories.js.map +0 -7
  685. package/dist/esm/stories/MemberEquity.stories.d.ts +0 -9
  686. package/dist/esm/stories/MemberEquity.stories.js +0 -31
  687. package/dist/esm/stories/MemberEquity.stories.js.map +0 -7
  688. package/dist/esm/stories/MultiLayoutGraphicBlock.stories.d.ts +0 -9
  689. package/dist/esm/stories/MultiLayoutGraphicBlock.stories.js +0 -2
  690. package/dist/esm/stories/MultiLayoutGraphicBlock.stories.js.map +0 -7
  691. package/dist/esm/stories/ProductNav.stories.d.ts +0 -55
  692. package/dist/esm/stories/ProductNav.stories.js +0 -2
  693. package/dist/esm/stories/ProductNav.stories.js.map +0 -7
  694. package/dist/esm/stories/ThreeDCarousel.stories.d.ts +0 -27
  695. package/dist/esm/stories/ThreeDCarousel.stories.js +0 -118
  696. package/dist/esm/stories/ThreeDCarousel.stories.js.map +0 -7
  697. package/dist/esm/stories/accordionCards.stories.d.ts +0 -38
  698. package/dist/esm/stories/accordionCards.stories.js +0 -2
  699. package/dist/esm/stories/accordionCards.stories.js.map +0 -7
  700. package/dist/esm/stories/alert.stories.d.ts +0 -27
  701. package/dist/esm/stories/alert.stories.js +0 -2
  702. package/dist/esm/stories/alert.stories.js.map +0 -7
  703. package/dist/esm/stories/avatar.stories.d.ts +0 -39
  704. package/dist/esm/stories/avatar.stories.js +0 -2
  705. package/dist/esm/stories/avatar.stories.js.map +0 -7
  706. package/dist/esm/stories/badge.stories.d.ts +0 -96
  707. package/dist/esm/stories/badge.stories.js +0 -2
  708. package/dist/esm/stories/badge.stories.js.map +0 -7
  709. package/dist/esm/stories/bizTabs.stories.d.ts +0 -7
  710. package/dist/esm/stories/bizTabs.stories.js +0 -2
  711. package/dist/esm/stories/bizTabs.stories.js.map +0 -7
  712. package/dist/esm/stories/board.stories.d.ts +0 -6
  713. package/dist/esm/stories/board.stories.js +0 -2
  714. package/dist/esm/stories/board.stories.js.map +0 -7
  715. package/dist/esm/stories/brandEquity.stories.d.ts +0 -16
  716. package/dist/esm/stories/brandEquity.stories.js +0 -2
  717. package/dist/esm/stories/brandEquity.stories.js.map +0 -7
  718. package/dist/esm/stories/brandStrip.stories.d.ts +0 -12
  719. package/dist/esm/stories/brandStrip.stories.js +0 -2
  720. package/dist/esm/stories/brandStrip.stories.js.map +0 -7
  721. package/dist/esm/stories/button.stories.d.ts +0 -56
  722. package/dist/esm/stories/button.stories.js +0 -2
  723. package/dist/esm/stories/button.stories.js.map +0 -7
  724. package/dist/esm/stories/card.stories.d.ts +0 -27
  725. package/dist/esm/stories/card.stories.js +0 -2
  726. package/dist/esm/stories/card.stories.js.map +0 -7
  727. package/dist/esm/stories/carousel.stories.d.ts +0 -8
  728. package/dist/esm/stories/carousel.stories.js +0 -2
  729. package/dist/esm/stories/carousel.stories.js.map +0 -7
  730. package/dist/esm/stories/category.stories.d.ts +0 -17
  731. package/dist/esm/stories/category.stories.js +0 -2
  732. package/dist/esm/stories/category.stories.js.map +0 -7
  733. package/dist/esm/stories/checkbox.stories.d.ts +0 -46
  734. package/dist/esm/stories/checkbox.stories.js +0 -2
  735. package/dist/esm/stories/checkbox.stories.js.map +0 -7
  736. package/dist/esm/stories/container.stories.d.ts +0 -28
  737. package/dist/esm/stories/container.stories.js +0 -15
  738. package/dist/esm/stories/container.stories.js.map +0 -7
  739. package/dist/esm/stories/cpnBanner.stories.d.ts +0 -14
  740. package/dist/esm/stories/cpnBanner.stories.js +0 -2
  741. package/dist/esm/stories/cpnBanner.stories.js.map +0 -7
  742. package/dist/esm/stories/cpnCountdown.stories.d.ts +0 -12
  743. package/dist/esm/stories/cpnCountdown.stories.js +0 -2
  744. package/dist/esm/stories/cpnCountdown.stories.js.map +0 -7
  745. package/dist/esm/stories/cpnNavigation.stories.d.ts +0 -14
  746. package/dist/esm/stories/cpnNavigation.stories.js +0 -2
  747. package/dist/esm/stories/cpnNavigation.stories.js.map +0 -7
  748. package/dist/esm/stories/cpnProductcard.stories.d.ts +0 -14
  749. package/dist/esm/stories/cpnProductcard.stories.js +0 -2
  750. package/dist/esm/stories/cpnProductcard.stories.js.map +0 -7
  751. package/dist/esm/stories/cpnTitle.stories.d.ts +0 -14
  752. package/dist/esm/stories/cpnTitle.stories.js +0 -2
  753. package/dist/esm/stories/cpnTitle.stories.js.map +0 -7
  754. package/dist/esm/stories/creativeModule.stories.d.ts +0 -19
  755. package/dist/esm/stories/creativeModule.stories.js +0 -2
  756. package/dist/esm/stories/creativeModule.stories.js.map +0 -7
  757. package/dist/esm/stories/dialog.stories.d.ts +0 -20
  758. package/dist/esm/stories/dialog.stories.js +0 -2
  759. package/dist/esm/stories/dialog.stories.js.map +0 -7
  760. package/dist/esm/stories/drawer.stories.d.ts +0 -20
  761. package/dist/esm/stories/drawer.stories.js +0 -2
  762. package/dist/esm/stories/drawer.stories.js.map +0 -7
  763. package/dist/esm/stories/drop-down.stories.d.ts +0 -16
  764. package/dist/esm/stories/drop-down.stories.js +0 -2
  765. package/dist/esm/stories/drop-down.stories.js.map +0 -7
  766. package/dist/esm/stories/evaluate.stories.d.ts +0 -16
  767. package/dist/esm/stories/evaluate.stories.js +0 -2
  768. package/dist/esm/stories/evaluate.stories.js.map +0 -7
  769. package/dist/esm/stories/faq.stories.d.ts +0 -21
  770. package/dist/esm/stories/faq.stories.js +0 -2
  771. package/dist/esm/stories/faq.stories.js.map +0 -7
  772. package/dist/esm/stories/featureCards.stories.d.ts +0 -30
  773. package/dist/esm/stories/featureCards.stories.js +0 -61
  774. package/dist/esm/stories/featureCards.stories.js.map +0 -7
  775. package/dist/esm/stories/featureShowcase.stories.d.ts +0 -29
  776. package/dist/esm/stories/featureShowcase.stories.js +0 -44
  777. package/dist/esm/stories/featureShowcase.stories.js.map +0 -7
  778. package/dist/esm/stories/graphic.stories.d.ts +0 -64
  779. package/dist/esm/stories/graphic.stories.js +0 -2
  780. package/dist/esm/stories/graphic.stories.js.map +0 -7
  781. package/dist/esm/stories/graphicAttractionBlock.stories.d.ts +0 -6
  782. package/dist/esm/stories/graphicAttractionBlock.stories.js +0 -2
  783. package/dist/esm/stories/graphicAttractionBlock.stories.js.map +0 -7
  784. package/dist/esm/stories/grid.stories.d.ts +0 -22
  785. package/dist/esm/stories/grid.stories.js +0 -13
  786. package/dist/esm/stories/grid.stories.js.map +0 -7
  787. package/dist/esm/stories/heading.stories.d.ts +0 -84
  788. package/dist/esm/stories/heading.stories.js +0 -15
  789. package/dist/esm/stories/heading.stories.js.map +0 -7
  790. package/dist/esm/stories/imageTextFeature.stories.d.ts +0 -28
  791. package/dist/esm/stories/imageTextFeature.stories.js +0 -50
  792. package/dist/esm/stories/imageTextFeature.stories.js.map +0 -7
  793. package/dist/esm/stories/imageWithText.stories.d.ts +0 -51
  794. package/dist/esm/stories/imageWithText.stories.js +0 -84
  795. package/dist/esm/stories/imageWithText.stories.js.map +0 -7
  796. package/dist/esm/stories/input-number.stories.d.ts +0 -39
  797. package/dist/esm/stories/input-number.stories.js +0 -2
  798. package/dist/esm/stories/input-number.stories.js.map +0 -7
  799. package/dist/esm/stories/input.stories.d.ts +0 -35
  800. package/dist/esm/stories/input.stories.js +0 -2
  801. package/dist/esm/stories/input.stories.js.map +0 -7
  802. package/dist/esm/stories/ksp.stories.d.ts +0 -63
  803. package/dist/esm/stories/ksp.stories.js +0 -128
  804. package/dist/esm/stories/ksp.stories.js.map +0 -7
  805. package/dist/esm/stories/link.stories.d.ts +0 -69
  806. package/dist/esm/stories/link.stories.js +0 -2
  807. package/dist/esm/stories/link.stories.js.map +0 -7
  808. package/dist/esm/stories/marquee.stories.d.ts +0 -30
  809. package/dist/esm/stories/marquee.stories.js +0 -2
  810. package/dist/esm/stories/marquee.stories.js.map +0 -7
  811. package/dist/esm/stories/mediaplayerBase.stories.d.ts +0 -6
  812. package/dist/esm/stories/mediaplayerBase.stories.js +0 -2
  813. package/dist/esm/stories/mediaplayerBase.stories.js.map +0 -7
  814. package/dist/esm/stories/mediaplayerMulti.stories.d.ts +0 -16
  815. package/dist/esm/stories/mediaplayerMulti.stories.js +0 -2
  816. package/dist/esm/stories/mediaplayerMulti.stories.js.map +0 -7
  817. package/dist/esm/stories/picture.stories.d.ts +0 -23
  818. package/dist/esm/stories/picture.stories.js +0 -9
  819. package/dist/esm/stories/picture.stories.js.map +0 -7
  820. package/dist/esm/stories/popover.stories.d.ts +0 -17
  821. package/dist/esm/stories/popover.stories.js +0 -2
  822. package/dist/esm/stories/popover.stories.js.map +0 -7
  823. package/dist/esm/stories/productCompare.stories.d.ts +0 -54
  824. package/dist/esm/stories/productCompare.stories.js +0 -54
  825. package/dist/esm/stories/productCompare.stories.js.map +0 -7
  826. package/dist/esm/stories/productHero.stories.d.ts +0 -29
  827. package/dist/esm/stories/productHero.stories.js +0 -50
  828. package/dist/esm/stories/productHero.stories.js.map +0 -7
  829. package/dist/esm/stories/radio.stories.d.ts +0 -39
  830. package/dist/esm/stories/radio.stories.js +0 -2
  831. package/dist/esm/stories/radio.stories.js.map +0 -7
  832. package/dist/esm/stories/shelfDisplay.stories.d.ts +0 -16
  833. package/dist/esm/stories/shelfDisplay.stories.js +0 -2
  834. package/dist/esm/stories/shelfDisplay.stories.js.map +0 -7
  835. package/dist/esm/stories/skeleton.stories.d.ts +0 -20
  836. package/dist/esm/stories/skeleton.stories.js +0 -2
  837. package/dist/esm/stories/skeleton.stories.js.map +0 -7
  838. package/dist/esm/stories/slogan.stories.d.ts +0 -20
  839. package/dist/esm/stories/slogan.stories.js +0 -6
  840. package/dist/esm/stories/slogan.stories.js.map +0 -7
  841. package/dist/esm/stories/specs.stories.d.ts +0 -13
  842. package/dist/esm/stories/specs.stories.js +0 -57
  843. package/dist/esm/stories/specs.stories.js.map +0 -7
  844. package/dist/esm/stories/specsComparison.stories.d.ts +0 -28
  845. package/dist/esm/stories/specsComparison.stories.js +0 -105
  846. package/dist/esm/stories/specsComparison.stories.js.map +0 -7
  847. package/dist/esm/stories/tabWithImage.stories.d.ts +0 -28
  848. package/dist/esm/stories/tabWithImage.stories.js +0 -53
  849. package/dist/esm/stories/tabWithImage.stories.js.map +0 -7
  850. package/dist/esm/stories/tabs.stories.d.ts +0 -373
  851. package/dist/esm/stories/tabs.stories.js +0 -2
  852. package/dist/esm/stories/tabs.stories.js.map +0 -7
  853. package/dist/esm/stories/tabsWithMedia.stories.d.ts +0 -28
  854. package/dist/esm/stories/tabsWithMedia.stories.js +0 -68
  855. package/dist/esm/stories/tabsWithMedia.stories.js.map +0 -7
  856. package/dist/esm/stories/text.stories.d.ts +0 -86
  857. package/dist/esm/stories/text.stories.js +0 -21
  858. package/dist/esm/stories/text.stories.js.map +0 -7
  859. package/dist/esm/stories/videoFeature.stories.d.ts +0 -29
  860. package/dist/esm/stories/videoFeature.stories.js +0 -56
  861. package/dist/esm/stories/videoFeature.stories.js.map +0 -7
  862. package/dist/esm/stories/whychoose.stories.d.ts +0 -21
  863. package/dist/esm/stories/whychoose.stories.js +0 -2
  864. package/dist/esm/stories/whychoose.stories.js.map +0 -7
@@ -46,8 +46,8 @@ export interface ProductCompareProps {
46
46
  /** 外层容器类名 */
47
47
  className?: string;
48
48
  }
49
- declare const _default: import("react").ForwardRefExoticComponent<Omit<ProductCompareProps, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps> & {
50
- className?: string;
51
- data?: Record<string, any>;
49
+ declare const _default: import("react").ForwardRefExoticComponent<ProductCompareProps & {
50
+ style?: string | React.CSSProperties;
51
+ container?: import("../../shared/Styles.js").ContainerProps["container"];
52
52
  } & import("react").RefAttributes<any>>;
53
53
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { ProductHeroProps } from './types.js';
3
- declare const _default: React.ForwardRefExoticComponent<Omit<Omit<ProductHeroProps & React.RefAttributes<HTMLDivElement>, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps> & {
4
- className?: string;
5
- data?: Record<string, any>;
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<ProductHeroProps & React.RefAttributes<HTMLDivElement> & {
4
+ style?: string | React.CSSProperties;
5
+ container?: import("../../shared/Styles.js").ContainerProps["container"];
6
6
  }, "ref"> & React.RefAttributes<any>>;
7
7
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import type { ProductNavProps } from './types.js';
2
- declare const _default: import("react").ForwardRefExoticComponent<Omit<Omit<ProductNavProps & import("react").RefAttributes<HTMLDivElement>, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps> & {
3
- className?: string;
4
- data?: Record<string, any>;
2
+ declare const _default: import("react").ForwardRefExoticComponent<Omit<ProductNavProps & import("react").RefAttributes<HTMLDivElement> & {
3
+ style?: string | React.CSSProperties;
4
+ container?: import("../../shared/Styles.js").ContainerProps["container"];
5
5
  }, "ref"> & import("react").RefAttributes<any>>;
6
6
  export default _default;
@@ -0,0 +1,49 @@
1
+ import * as React from 'react';
2
+ import type { Media } from '../../types/props.js';
3
+ export interface PromotionalBarSemanticName {
4
+ root: 'root';
5
+ content: 'content';
6
+ title: 'title';
7
+ description: 'description';
8
+ button: 'button';
9
+ }
10
+ /**
11
+ * 响应式背景图片配置
12
+ */
13
+ export interface ResponsiveBackgroundImage {
14
+ /** 移动端图片 (<768px) */
15
+ mobile?: Media;
16
+ /** 平板图片 (768-1440px) */
17
+ tablet?: Media;
18
+ /** 笔记本图片 (1025-1440px) */
19
+ laptop?: Media;
20
+ /** 桌面图片 (1441-1920px) */
21
+ desktop?: Media;
22
+ /** 超大桌面图片 (≥1921px) */
23
+ lgDesktop?: Media;
24
+ }
25
+ /**
26
+ * PromotionalBar 业务组件数据接口
27
+ */
28
+ export interface PromotionalBarData {
29
+ /** 组件内容标题 */
30
+ contentTitle?: string;
31
+ /** 组件内容描述 */
32
+ contentDesc?: string;
33
+ /** 按钮文本 */
34
+ buttonText?: string;
35
+ /** 按钮链接 */
36
+ buttonLink?: string;
37
+ /** 背景图片 - 响应式图片对象 */
38
+ backgroundImage?: ResponsiveBackgroundImage;
39
+ }
40
+ export interface PromotionalBarProps extends React.HTMLAttributes<HTMLDivElement> {
41
+ /** 业务数据 */
42
+ data: PromotionalBarData;
43
+ classNames?: Partial<Record<keyof PromotionalBarSemanticName, string>>;
44
+ }
45
+ declare const _default: React.ForwardRefExoticComponent<Omit<PromotionalBarProps & React.RefAttributes<HTMLDivElement> & {
46
+ style?: string | React.CSSProperties;
47
+ container?: import("../../shared/Styles.js").ContainerProps["container"];
48
+ }, "ref"> & React.RefAttributes<any>>;
49
+ export default _default;
@@ -0,0 +1,2 @@
1
+ "use client";import{jsx as a,jsxs as g}from"react/jsx-runtime";import*as f from"react";import{cn as s}from"../../helpers/index.js";import{Heading as v,Button as k,Picture as B}from"../../components/index.js";import{withLayout as M}from"../../shared/Styles.js";const P=o=>{if(!o)return;const{mobile:e,tablet:u,laptop:c,desktop:d,lgDesktop:b}=o,t=[],l=h=>h?.url,i=l(b),n=l(d),r=l(c),p=l(u),m=l(e);return i?t.push(i):n?t.push(n):r?t.push(r):p?t.push(p):m&&t.push(m),n&&i&&t.push(`${n} 1920`),r&&(n||i)&&t.push(`${r} 1440`),p&&(r||n||i)&&t.push(`${p} 1024`),m&&(p||r||n||i)&&t.push(`${m} 768`),t.length>0?t.join(", "):void 0},x=f.forwardRef(({classNames:o,data:e},u)=>{const{backgroundImage:c}=e,d=f.useMemo(()=>P(c),[c]);return a("div",{ref:u,className:s("laptop:h-[192px] lg-desktop:h-[240px] h-[240px]",o?.root),children:g("div",{className:"promotional-bar-content rounded-box relative h-full overflow-hidden",children:[g("div",{className:s("laptop:px-8 laptop:justify-center lg-desktop:max-w-[620px] laptop:max-w-[392px] desktop:max-w-[584px] laptop:py-0 tablet:px-8 laptop:pr-0 relative z-20 flex h-full flex-col p-4",o?.content),children:[e.contentTitle&&a(v,{className:s("line-clamp-2 text-[#F5F6F7]",o?.title),html:e.contentTitle,size:3}),e.contentDesc&&a("p",{className:s("laptop:text-[16px] laptop:mt-2 lg-desktop:text-[18px] mt-1 line-clamp-2 text-[14px] font-bold leading-[1.4] text-[#F5F6F7]",o?.description),dangerouslySetInnerHTML:{__html:e.contentDesc}}),a("div",{className:"laptop:mt-4 mt-2",children:e.buttonText&&a(k,{as:"a",variant:"link",className:s("!p-0 text-[#F5F6F7]",o?.button),href:e.buttonLink,children:e.buttonText})})]}),a(B,{source:d,className:"absolute inset-0 z-10 ",imgClassName:"h-full object-cover transition-transform duration-300 ease-in-out hover:scale-[1.05]"})]})})});x.displayName="PromotionalBar";var N=M(x);export{N as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/biz-components/PromotionalBar/index.tsx"],
4
+ "sourcesContent": ["'use client'\n\nimport * as React from 'react'\nimport { cn } from '../../helpers/index.js'\nimport { Heading, Button, Picture } from '../../components/index.js'\nimport { withLayout } from '../../shared/Styles.js'\nimport type { Media } from '../../types/props.js'\n\nexport interface PromotionalBarSemanticName {\n root: 'root'\n content: 'content'\n title: 'title'\n description: 'description'\n button: 'button'\n}\n\n/**\n * \u54CD\u5E94\u5F0F\u80CC\u666F\u56FE\u7247\u914D\u7F6E\n */\nexport interface ResponsiveBackgroundImage {\n /** \u79FB\u52A8\u7AEF\u56FE\u7247 (<768px) */\n mobile?: Media\n /** \u5E73\u677F\u56FE\u7247 (768-1440px) */\n tablet?: Media\n /** \u7B14\u8BB0\u672C\u56FE\u7247 (1025-1440px) */\n laptop?: Media\n /** \u684C\u9762\u56FE\u7247 (1441-1920px) */\n desktop?: Media\n /** \u8D85\u5927\u684C\u9762\u56FE\u7247 (\u22651921px) */\n lgDesktop?: Media\n}\n\n/**\n * PromotionalBar \u4E1A\u52A1\u7EC4\u4EF6\u6570\u636E\u63A5\u53E3\n */\nexport interface PromotionalBarData {\n /** \u7EC4\u4EF6\u5185\u5BB9\u6807\u9898 */\n contentTitle?: string\n /** \u7EC4\u4EF6\u5185\u5BB9\u63CF\u8FF0 */\n contentDesc?: string\n /** \u6309\u94AE\u6587\u672C */\n buttonText?: string\n /** \u6309\u94AE\u94FE\u63A5 */\n buttonLink?: string\n /** \u80CC\u666F\u56FE\u7247 - \u54CD\u5E94\u5F0F\u56FE\u7247\u5BF9\u8C61 */\n backgroundImage?: ResponsiveBackgroundImage\n}\n\nexport interface PromotionalBarProps extends React.HTMLAttributes<HTMLDivElement> {\n /** \u4E1A\u52A1\u6570\u636E */\n data: PromotionalBarData\n classNames?: Partial<Record<keyof PromotionalBarSemanticName, string>>\n}\n\n/**\n * \u5C06\u54CD\u5E94\u5F0F\u80CC\u666F\u56FE\u7247\u5BF9\u8C61\u8F6C\u6362\u4E3A Picture \u7EC4\u4EF6\u6240\u9700\u7684\u5B57\u7B26\u4E32\u683C\u5F0F\n */\nconst convertResponsiveImageToString = (backgroundImage: ResponsiveBackgroundImage | undefined): string | undefined => {\n if (!backgroundImage) return undefined\n\n const { mobile, tablet, laptop, desktop, lgDesktop } = backgroundImage\n const parts: string[] = []\n\n // \u8F85\u52A9\u51FD\u6570\uFF1A\u4ECE Media \u5BF9\u8C61\u4E2D\u63D0\u53D6 URL\n const getUrl = (media: Media | undefined): string | undefined => {\n return media?.url\n }\n\n // \u9ED8\u8BA4\u56FE\u7247\uFF08\u6700\u5927\u5C3A\u5BF8\uFF09\u653E\u5728\u6700\u524D\u9762\uFF0C\u4E0D\u9700\u8981\u65AD\u70B9\n const lgDesktopUrl = getUrl(lgDesktop)\n const desktopUrl = getUrl(desktop)\n const laptopUrl = getUrl(laptop)\n const tabletUrl = getUrl(tablet)\n const mobileUrl = getUrl(mobile)\n\n if (lgDesktopUrl) parts.push(lgDesktopUrl)\n else if (desktopUrl) parts.push(desktopUrl)\n else if (laptopUrl) parts.push(laptopUrl)\n else if (tabletUrl) parts.push(tabletUrl)\n else if (mobileUrl) parts.push(mobileUrl)\n\n // \u6309\u65AD\u70B9\u4ECE\u5927\u5230\u5C0F\u6DFB\u52A0\n if (desktopUrl && lgDesktopUrl) parts.push(`${desktopUrl} 1920`)\n if (laptopUrl && (desktopUrl || lgDesktopUrl)) parts.push(`${laptopUrl} 1440`)\n if (tabletUrl && (laptopUrl || desktopUrl || lgDesktopUrl)) parts.push(`${tabletUrl} 1024`)\n if (mobileUrl && (tabletUrl || laptopUrl || desktopUrl || lgDesktopUrl)) parts.push(`${mobileUrl} 768`)\n\n return parts.length > 0 ? parts.join(', ') : undefined\n}\n\n/**\n * PromotionalBar - \u63A8\u5E7F\u680F\n *\n * @description \u63A8\u5E7F\u680F\n */\nconst PromotionalBar = React.forwardRef<HTMLDivElement, PromotionalBarProps>(({ classNames, data }, ref) => {\n const { backgroundImage } = data\n const pictureSource = React.useMemo(() => {\n return convertResponsiveImageToString(backgroundImage)\n }, [backgroundImage])\n return (\n <div ref={ref} className={cn('laptop:h-[192px] lg-desktop:h-[240px] h-[240px]', classNames?.root)}>\n {/* \u63A8\u5E7F\u680F\u5185\u5BB9\u533A\u57DF - \u6839\u636E\u5177\u4F53\u4E1A\u52A1\u9700\u6C42\u5B9A\u5236 */}\n <div className=\"promotional-bar-content rounded-box relative h-full overflow-hidden\">\n <div\n className={cn(\n 'laptop:px-8 laptop:justify-center lg-desktop:max-w-[620px] laptop:max-w-[392px] desktop:max-w-[584px] laptop:py-0 tablet:px-8 laptop:pr-0 relative z-20 flex h-full flex-col p-4',\n classNames?.content\n )}\n >\n {data.contentTitle && (\n <Heading\n className={cn('line-clamp-2 text-[#F5F6F7]', classNames?.title)}\n html={data.contentTitle}\n size={3}\n />\n )}\n {data.contentDesc && (\n <p\n className={cn(\n 'laptop:text-[16px] laptop:mt-2 lg-desktop:text-[18px] mt-1 line-clamp-2 text-[14px] font-bold leading-[1.4] text-[#F5F6F7]',\n classNames?.description\n )}\n dangerouslySetInnerHTML={{ __html: data.contentDesc }}\n />\n )}\n <div className=\"laptop:mt-4 mt-2\">\n {data.buttonText && (\n <Button\n as=\"a\"\n variant=\"link\"\n className={cn('!p-0 text-[#F5F6F7]', classNames?.button)}\n href={data.buttonLink}\n >\n {data.buttonText}\n </Button>\n )}\n </div>\n </div>\n <Picture\n source={pictureSource}\n className=\"absolute inset-0 z-10 \"\n imgClassName=\"h-full object-cover transition-transform duration-300 ease-in-out hover:scale-[1.05]\"\n />\n </div>\n </div>\n )\n})\n\nPromotionalBar.displayName = 'Promotional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CAAe,EACpD,CAACA,CAAe,CAAC,EACpB,OACET,EAAC,OAAI,IAAK0B,EAAK,UAAWvB,EAAG,kDAAmDqB,GAAY,IAAI,EAE9F,SAAAvB,EAAC,OAAI,UAAU,sEACb,UAAAA,EAAC,OACC,UAAWE,EACT,mLACAqB,GAAY,OACd,EAEC,UAAAC,EAAK,cACJzB,EAACI,EAAA,CACC,UAAWD,EAAG,8BAA+BqB,GAAY,KAAK,EAC9D,KAAMC,EAAK,aACX,KAAM,EACR,EAEDA,EAAK,aACJzB,EAAC,KACC,UAAWG,EACT,6HACAqB,GAAY,WACd,EACA,wBAAyB,CAAE,OAAQC,EAAK,WAAY,EACtD,EAEFzB,EAAC,OAAI,UAAU,mBACZ,SAAAyB,EAAK,YACJzB,EAACK,EAAA,CACC,GAAG,IACH,QAAQ,OACR,UAAWF,EAAG,sBAAuBqB,GAAY,MAAM,EACvD,KAAMC,EAAK,WAEV,SAAAA,EAAK,WACR,EAEJ,GACF,EACAzB,EAACM,EAAA,CACC,OAAQqB,EACR,UAAU,yBACV,aAAa,uFACf,GACF,EACF,CAEJ,CAAC,EAEDJ,EAAe,YAAc,iBAC7B,IAAOK,EAAQrB,EAAWgB,CAAc",
6
+ "names": ["jsx", "jsxs", "React", "cn", "Heading", "Button", "Picture", "withLayout", "convertResponsiveImageToString", "backgroundImage", "mobile", "tablet", "laptop", "desktop", "lgDesktop", "parts", "getUrl", "media", "lgDesktopUrl", "desktopUrl", "laptopUrl", "tabletUrl", "mobileUrl", "PromotionalBar", "classNames", "data", "ref", "pictureSource", "PromotionalBar_default"]
7
+ }
@@ -0,0 +1,69 @@
1
+ import * as React from 'react';
2
+ import type { Media as MediaType, Theme } from '../../types/props.js';
3
+ import type { ButtonProps } from '../../components/button.js';
4
+ export type SecondaryBannerSemanticName = 'root' | 'title' | 'superTitle' | 'subtitle' | 'content' | 'buttonGroup' | 'primaryButton' | 'secondaryButton';
5
+ /**
6
+ * SecondaryBanner 业务组件数据接口
7
+ */
8
+ export interface SecondaryBannerData {
9
+ /** 主标题*/
10
+ title?: string;
11
+ /**
12
+ * 上标题/引导标题
13
+ * 通常用于分类、引导性文字
14
+ */
15
+ superTitle?: string;
16
+ /**
17
+ * 副标题/描述文字
18
+ * 通常用于补充说明、详细描述
19
+ */
20
+ subtitle?: string;
21
+ /**
22
+ * 尺寸:
23
+ * sm: 小尺寸用于筛选页面
24
+ * base: 基础尺寸用于
25
+ * lg: 大尺寸用于专题页
26
+ * xlg: 活动页(通栏)
27
+ */
28
+ size?: 'sm' | 'base' | 'lg' | 'xlg';
29
+ pcImage?: MediaType;
30
+ padImage?: MediaType;
31
+ mobileImage?: MediaType;
32
+ /** 结束时间(ISO 字符串) */
33
+ endDate?: string;
34
+ /** 结束时间时区(如: America/Los_Angeles) */
35
+ endDate_tz?: string;
36
+ /**
37
+ * 时间格式化配置(JSON 字符串)
38
+ * {"day":"日","hour":"时","minute":"分","second":"秒"}
39
+ */
40
+ dateFormat?: string;
41
+ /** 主按钮配置 */
42
+ primaryButton?: {
43
+ text: string;
44
+ link?: string;
45
+ onClick?: () => void;
46
+ } & Omit<ButtonProps, 'children'>;
47
+ /** 次级按钮配置 */
48
+ secondaryButton?: {
49
+ text: string;
50
+ link?: string;
51
+ onClick?: () => void;
52
+ } & Omit<ButtonProps, 'children'>;
53
+ iconArray?: Array<{
54
+ pcImage: MediaType;
55
+ }>;
56
+ theme?: Theme;
57
+ }
58
+ export interface SecondaryBannerProps extends React.HTMLAttributes<HTMLElement> {
59
+ /** 业务数据 */
60
+ data: SecondaryBannerData;
61
+ classNames?: Partial<Record<SecondaryBannerSemanticName, string>>;
62
+ }
63
+ /**
64
+ * SecondaryBanner - 次级横幅banner
65
+ *
66
+ * @description 是指用户进入二级页面后,无需滚动页面就能在第一屏(即"首屏")看到的、通常横跨整个浏览器窗口宽度的核心视觉区域。
67
+ */
68
+ declare const SecondaryBanner: React.ForwardRefExoticComponent<SecondaryBannerProps & React.RefAttributes<HTMLElement>>;
69
+ export default SecondaryBanner;
@@ -0,0 +1,2 @@
1
+ "use client";import{jsx as t,jsxs as s}from"react/jsx-runtime";import*as y from"react";import{cva as D}from"class-variance-authority";import{cn as a}from"../../helpers/index.js";import{Text as x,Button as f,Heading as P,Picture as w}from"../../components/index.js";import j from"../HeroBanner/Countdown.js";import A from"../Media/index.js";const H=D("text-info-primary relative w-full",{variants:{size:{sm:"tablet:aspect-[768/480] laptop:aspect-[1024/400] desktop:aspect-[1440/384] lg-desktop:aspect-[1920/480] aspect-[390/480]",base:"tablet:aspect-[768/660] laptop:aspect-[1024/432] desktop:aspect-[1440/576] lg-desktop:aspect-[1920/720] aspect-[390/660]",lg:"tablet:aspect-[768/660] laptop:aspect-[1024/520] desktop:aspect-[1440/700] lg-desktop:aspect-[1920/930] aspect-[390/660]",xlg:"tablet:aspect-[768/660] laptop:aspect-[1024/520] desktop:aspect-[1440/700] lg-desktop:aspect-[1920/930] aspect-[390/660] overflow-visible"}},defaultVariants:{size:"base"}}),k=y.forwardRef(({className:B,classNames:n={},data:e,...v},I)=>{const{pcImage:T,padImage:h,mobileImage:z,endDate:m,endDate_tz:N,dateFormat:M,size:l="base",iconArray:p,theme:S="light",primaryButton:r,secondaryButton:o}=e,c=y.useId(),i=e.title?`${c}-title`:void 0,u=e.subtitle?`${c}-subtitle`:void 0,b=e.superTitle?`${c}-super-title`:void 0,C=[b,u].filter(Boolean).join(" ")||void 0;return s("section",{ref:I,role:"banner","aria-labelledby":i,"aria-describedby":C,className:a({"aiui-dark":S==="dark"},H({size:l}),B,n?.root),...v,children:[t(A,{pcImage:T,padImage:h,mobileImage:z,className:a("absolute inset-0 size-full object-cover",{"h-fit":l==="xlg"}),imgClassName:"object-cover",videoClassName:"object-cover",muted:!0,loop:!0,playsInline:!0,autoPlay:!0}),s("div",{className:a("banner-content laptop:top-1/2 laptop:-translate-y-1/2 tablet:px-[32px] laptop:px-[64px] lg-desktop:px-[calc(50%-832px)] absolute top-12 z-10 flex flex-col items-start justify-center px-[16px] text-left",n?.content),children:[s("div",{className:"banner-inner-title desktop:gap-2 flex flex-col items-start gap-1",children:[e.superTitle&&t(x,{as:"p",size:2,id:b,className:a("banner-super-title desktop:text-[16px] lg-desktop:text-[18px]",n?.superTitle),html:e.superTitle}),e.title&&t(P,{as:"h1",size:["xlg","lg"].includes(l)?5:4,id:i,className:a("banner-title ",n?.title),html:e.title}),e.subtitle&&t(x,{as:"p",size:3,id:u,className:a("banner-subtitle desktop:text-[16px] lg-desktop:text-[18px]",n?.subtitle),html:e.subtitle})]}),m&&t("div",{className:"banner-countdown mt-3",role:"timer","aria-label":"event countdown",children:t(j,{endDate:m,endDate_tz:N,dateFormat:M})}),s("div",{className:a("banner-cta-group lg-desktop:mt-[32px] lg-desktop:gap-3 mt-6 flex gap-2",n?.buttonGroup),children:[o?.text&&t(f,{variant:"secondary",onClick:o.onClick,className:a("",n?.secondaryButton),"aria-describedby":i,...o.link?{as:"a",href:o.link}:{},children:o.text}),r?.text&&t(f,{onClick:r.onClick,className:a("",n?.primaryButton),"aria-describedby":i,...r.link?{as:"a",href:r.link}:{},children:r.text})]}),Array.isArray(p)&&p.length>0&&t("div",{className:"banner-icons desktop:mt-3 lg-desktop:mt-4 mt-2 flex items-center gap-2",role:"group","aria-label":"brand icons",children:p.map((d,g)=>d.pcImage?t(w,{source:d.pcImage.url,alt:d.pcImage.alt||`icon ${g+1}`,role:"img",className:"h-auto max-w-none"},g):null)})]})]})});k.displayName="SecondaryBanner";var E=k;export{E as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/biz-components/SecondaryBanner/index.tsx"],
4
+ "sourcesContent": ["'use client'\n\nimport * as React from 'react'\nimport { cva } from 'class-variance-authority'\nimport { cn } from '../../helpers/index.js'\nimport type { Media as MediaType, Theme } from '../../types/props.js'\nimport { Text, Button, Heading, Picture } from '../../components/index.js'\nimport Countdown from '../HeroBanner/Countdown.js'\nimport Media from '../Media/index.js'\nimport type { ButtonProps } from '../../components/button.js'\n\nexport type SecondaryBannerSemanticName =\n | 'root'\n | 'title'\n | 'superTitle'\n | 'subtitle'\n | 'content'\n | 'buttonGroup'\n | 'primaryButton'\n | 'secondaryButton'\n\nconst secondaryBannerVariants = cva(\n // \u57FA\u7840\u6837\u5F0F\n 'text-info-primary relative w-full',\n {\n variants: {\n size: {\n sm: 'tablet:aspect-[768/480] laptop:aspect-[1024/400] desktop:aspect-[1440/384] lg-desktop:aspect-[1920/480] aspect-[390/480]',\n base: 'tablet:aspect-[768/660] laptop:aspect-[1024/432] desktop:aspect-[1440/576] lg-desktop:aspect-[1920/720] aspect-[390/660]',\n lg: 'tablet:aspect-[768/660] laptop:aspect-[1024/520] desktop:aspect-[1440/700] lg-desktop:aspect-[1920/930] aspect-[390/660]',\n xlg: 'tablet:aspect-[768/660] laptop:aspect-[1024/520] desktop:aspect-[1440/700] lg-desktop:aspect-[1920/930] aspect-[390/660] overflow-visible',\n },\n },\n defaultVariants: {\n size: 'base',\n },\n }\n)\n\n/**\n * SecondaryBanner \u4E1A\u52A1\u7EC4\u4EF6\u6570\u636E\u63A5\u53E3\n */\nexport interface SecondaryBannerData {\n /** \u4E3B\u6807\u9898*/\n title?: string\n /**\n * \u4E0A\u6807\u9898/\u5F15\u5BFC\u6807\u9898\n * \u901A\u5E38\u7528\u4E8E\u5206\u7C7B\u3001\u5F15\u5BFC\u6027\u6587\u5B57\n */\n superTitle?: string\n /**\n * \u526F\u6807\u9898/\u63CF\u8FF0\u6587\u5B57\n * \u901A\u5E38\u7528\u4E8E\u8865\u5145\u8BF4\u660E\u3001\u8BE6\u7EC6\u63CF\u8FF0\n */\n subtitle?: string\n /**\n * \u5C3A\u5BF8:\n * sm: \u5C0F\u5C3A\u5BF8\u7528\u4E8E\u7B5B\u9009\u9875\u9762\n * base: \u57FA\u7840\u5C3A\u5BF8\u7528\u4E8E\n * lg: \u5927\u5C3A\u5BF8\u7528\u4E8E\u4E13\u9898\u9875\n * xlg: \u6D3B\u52A8\u9875\uFF08\u901A\u680F\uFF09\n */\n size?: 'sm' | 'base' | 'lg' | 'xlg'\n pcImage?: MediaType\n padImage?: MediaType\n mobileImage?: MediaType\n\n /** \u7ED3\u675F\u65F6\u95F4\uFF08ISO \u5B57\u7B26\u4E32\uFF09 */\n endDate?: string\n /** \u7ED3\u675F\u65F6\u95F4\u65F6\u533A\uFF08\u5982: America/Los_Angeles\uFF09 */\n endDate_tz?: string\n /**\n * \u65F6\u95F4\u683C\u5F0F\u5316\u914D\u7F6E\uFF08JSON \u5B57\u7B26\u4E32\uFF09\n * {\"day\":\"\u65E5\",\"hour\":\"\u65F6\",\"minute\":\"\u5206\",\"second\":\"\u79D2\"}\n */\n dateFormat?: string\n\n /** \u4E3B\u6309\u94AE\u914D\u7F6E */\n primaryButton?: {\n text: string\n link?: string\n onClick?: () => void\n } & Omit<ButtonProps, 'children'>\n /** \u6B21\u7EA7\u6309\u94AE\u914D\u7F6E */\n secondaryButton?: {\n text: string\n link?: string\n onClick?: () => void\n } & Omit<ButtonProps, 'children'>\n\n iconArray?: Array<{ pcImage: MediaType }>\n theme?: Theme\n}\n\nexport interface SecondaryBannerProps extends React.HTMLAttributes<HTMLElement> {\n /** \u4E1A\u52A1\u6570\u636E */\n data: SecondaryBannerData\n classNames?: Partial<Record<SecondaryBannerSemanticName, string>>\n}\n\n/**\n * SecondaryBanner - \u6B21\u7EA7\u6A2A\u5E45banner\n *\n * @description \u662F\u6307\u7528\u6237\u8FDB\u5165\u4E8C\u7EA7\u9875\u9762\u540E\uFF0C\u65E0\u9700\u6EDA\u52A8\u9875\u9762\u5C31\u80FD\u5728\u7B2C\u4E00\u5C4F\uFF08\u5373\"\u9996\u5C4F\"\uFF09\u770B\u5230\u7684\u3001\u901A\u5E38\u6A2A\u8DE8\u6574\u4E2A\u6D4F\u89C8\u5668\u7A97\u53E3\u5BBD\u5EA6\u7684\u6838\u5FC3\u89C6\u89C9\u533A\u57DF\u3002\n */\nconst SecondaryBanner = React.forwardRef<HTMLElement, SecondaryBannerProps>(\n ({ className, classNames = {}, data, ...props }, ref) => {\n const {\n pcImage,\n padImage,\n mobileImage,\n endDate,\n endDate_tz,\n dateFormat,\n size = 'base',\n iconArray: icons,\n theme = 'light',\n primaryButton,\n secondaryButton,\n } = data\n\n // \u751F\u6210\u552F\u4E00ID\u7528\u4E8E\u53EF\u8BBF\u95EE\u6027\n const bannerId = React.useId()\n const titleId = data.title ? `${bannerId}-title` : undefined\n const subtitleId = data.subtitle ? `${bannerId}-subtitle` : undefined\n const superTitleId = data.superTitle ? `${bannerId}-super-title` : undefined\n\n // \u6784\u5EFAaria-describedby\n const describedBy = [superTitleId, subtitleId].filter(Boolean).join(' ') || undefined\n\n return (\n <section\n ref={ref}\n role=\"banner\"\n aria-labelledby={titleId}\n aria-describedby={describedBy}\n className={cn(\n {\n 'aiui-dark': theme === 'dark',\n },\n secondaryBannerVariants({ size: size }),\n className,\n classNames?.root\n )}\n {...props}\n >\n <Media\n pcImage={pcImage}\n padImage={padImage}\n mobileImage={mobileImage}\n className={cn('absolute inset-0 size-full object-cover', {\n 'h-fit': size === 'xlg',\n })}\n imgClassName=\"object-cover\"\n videoClassName=\"object-cover\"\n muted={true}\n loop={true}\n playsInline={true}\n autoPlay={true}\n />\n <div\n className={cn(\n 'banner-content laptop:top-1/2 laptop:-translate-y-1/2 tablet:px-[32px] laptop:px-[64px] lg-desktop:px-[calc(50%-832px)] absolute top-12 z-10 flex flex-col items-start justify-center px-[16px] text-left',\n classNames?.content\n )}\n >\n <div className=\"banner-inner-title desktop:gap-2 flex flex-col items-start gap-1\">\n {data.superTitle && (\n <Text\n as=\"p\"\n size={2}\n id={superTitleId}\n className={cn('banner-super-title desktop:text-[16px] lg-desktop:text-[18px]', classNames?.superTitle)}\n html={data.superTitle}\n />\n )}\n\n {data.title && (\n <Heading\n as=\"h1\"\n size={['xlg', 'lg'].includes(size) ? 5 : 4}\n id={titleId}\n className={cn('banner-title ', classNames?.title)}\n html={data.title}\n />\n )}\n\n {data.subtitle && (\n <Text\n as=\"p\"\n size={3}\n id={subtitleId}\n className={cn('banner-subtitle desktop:text-[16px] lg-desktop:text-[18px]', classNames?.subtitle)}\n html={data.subtitle}\n />\n )}\n </div>\n\n {endDate && (\n <div className=\"banner-countdown mt-3\" role=\"timer\" aria-label=\"event countdown\">\n <Countdown endDate={endDate} endDate_tz={endDate_tz} dateFormat={dateFormat} />\n </div>\n )}\n\n <div\n className={cn(\n 'banner-cta-group lg-desktop:mt-[32px] lg-desktop:gap-3 mt-6 flex gap-2',\n classNames?.buttonGroup\n )}\n >\n {secondaryButton?.text && (\n <Button\n variant=\"secondary\"\n onClick={secondaryButton.onClick}\n className={cn('', classNames?.secondaryButton)}\n aria-describedby={titleId}\n {...(secondaryButton.link ? { as: 'a', href: secondaryButton.link } : {})}\n >\n {secondaryButton.text}\n </Button>\n )}\n {primaryButton?.text && (\n <Button\n onClick={primaryButton.onClick}\n className={cn('', classNames?.primaryButton)}\n aria-describedby={titleId}\n {...(primaryButton.link ? { as: 'a', href: primaryButton.link } : {})}\n >\n {primaryButton.text}\n </Button>\n )}\n </div>\n\n {Array.isArray(icons) && icons.length > 0 && (\n <div\n className=\"banner-icons desktop:mt-3 lg-desktop:mt-4 mt-2 flex items-center gap-2\"\n role=\"group\"\n aria-label=\"brand icons\"\n >\n {icons.map((icon, index) =>\n icon.pcImage ? (\n <Picture\n key={index}\n source={icon.pcImage.url}\n alt={icon.pcImage.alt || `icon ${index + 1}`}\n role=\"img\"\n className=\"h-auto max-w-none\"\n />\n ) : null\n )}\n </div>\n )}\n </div>\n </section>\n )\n }\n)\n\nSecondaryBanner.displayName = 'SecondaryBanner'\nexport default SecondaryBanner\n"],
5
+ "mappings": "aAkJQ,cAAAA,EAoBE,QAAAC,MApBF,oBAhJR,UAAYC,MAAW,QACvB,OAAS,OAAAC,MAAW,2BACpB,OAAS,MAAAC,MAAU,yBAEnB,OAAS,QAAAC,EAAM,UAAAC,EAAQ,WA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IAChBD,EAAK,QACHlC,EAACQ,EAAA,CAEC,OAAQ0B,EAAK,QAAQ,IACrB,IAAKA,EAAK,QAAQ,KAAO,QAAQC,EAAQ,CAAC,GAC1C,KAAK,MACL,UAAU,qBAJLA,CAKP,EACE,IACN,EACF,GAEJ,GACF,CAEJ,CACF,EAEAvB,EAAgB,YAAc,kBAC9B,IAAOwB,EAAQxB",
6
+ "names": ["jsx", "jsxs", "React", "cva", "cn", "Text", "Button", "Heading", "Picture", "Countdown", "Media", "secondaryBannerVariants", "SecondaryBanner", "className", "classNames", "data", "props", "ref", "pcImage", "padImage", "mobileImage", "endDate", "endDate_tz", "dateFormat", "size", "icons", "theme", "primaryButton", "secondaryButton", "bannerId", "titleId", "subtitleId", "superTitleId", "describedBy", "icon", "index", "SecondaryBanner_default"]
7
+ }
@@ -13,8 +13,8 @@ type SelectStoreType = {
13
13
  };
14
14
  className?: string;
15
15
  };
16
- declare const _default: import("react").ForwardRefExoticComponent<Omit<SelectStoreType, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps> & {
17
- className?: string;
18
- data?: Record<string, any>;
16
+ declare const _default: import("react").ForwardRefExoticComponent<SelectStoreType & {
17
+ style?: string | React.CSSProperties;
18
+ container?: import("../../shared/Styles.js").ContainerProps["container"];
19
19
  } & import("react").RefAttributes<any>>;
20
20
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { ShelfDisplayProps } from './shelfDisplay.js';
3
- declare const _default: React.ForwardRefExoticComponent<Omit<Omit<ShelfDisplayProps & React.RefAttributes<HTMLDivElement>, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps> & {
4
- className?: string;
5
- data?: Record<string, any>;
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<ShelfDisplayProps & React.RefAttributes<HTMLDivElement> & {
4
+ style?: string | React.CSSProperties;
5
+ container?: import("../../shared/Styles.js").ContainerProps["container"];
6
6
  }, "ref"> & React.RefAttributes<any>>;
7
7
  export default _default;
@@ -1,15 +1,4 @@
1
1
  import type { ContainerProps, CurrencyDisplayType } from '../../types/props.js';
2
- export declare const PRICE_SYMBOL: any;
3
- export declare const languageTerritory: (locale: string) => string;
4
- export declare function formatPrice({ amount, currencyCode, currencyDisplay, locale, maximumFractionDigits, minimumFractionDigits, removeTrailingZeros, }: {
5
- amount: number;
6
- currencyCode: string;
7
- currencyDisplay?: CurrencyDisplayType;
8
- locale: string;
9
- maximumFractionDigits?: number;
10
- minimumFractionDigits?: number;
11
- removeTrailingZeros?: boolean;
12
- }): string | null;
13
2
  export declare function formatVariantPrice({ amount, baseAmount, currencyCode, currencyDisplay, locale, maximumFractionDigits, minimumFractionDigits, removeTrailingZeros, }: {
14
3
  baseAmount: number;
15
4
  amount: number;
@@ -1,2 +1,2 @@
1
- import D from"decimal.js";const p={us:"$",uk:"\xA3",ca:"$",eu:"\u20AC",fr:"\u20AC",de:"\u20AC",nl:"\u20AC",vn:"\u20AB",cl:"$",sg:"$",ae:"AED"},g=e=>({us:"en-US",uk:"en-GB",ca:"en-CA",eu:"en",fr:"fr-FR",au:"en-AU",my:"en-my","eu-es":"de-DE","eu-fr":"de-DE","eu-it":"de-DE","eu-de":"de-DE","eu-en":"en-US","cz-en":"de-DE","ca-fr":"fr-FR",nl:"de-DE",de:"de-DE",vn:"vi-vn",sg:"en-sg","ae-en":"ae-en",plus:"en-us",cl:"es-cl",dk:"en-dk",fi:"en-fi",no:"en-no",is:"en-is",se:"en-se","eu-pl":"pl-PL",es:"es-es",pl:"pl-PL",nz:"en-NZ","sg-en":"en-SG","sa-en":"en-SA","vn-vi":"vi-VN",ie:"en-IE",tw:"zh-TW"})[e]||"";function d({amount:e,currencyCode:r,currencyDisplay:a,locale:i,maximumFractionDigits:n,minimumFractionDigits:u,removeTrailingZeros:c=!1}){const o=i==="nl"?"EUR":r||"USD",s=g(i);if(!s)return null;let t=new Intl.NumberFormat(s,{style:"currency",currency:o,currencyDisplay:a||"symbol",minimumFractionDigits:n===0?0:u,maximumFractionDigits:n})?.format?.(e);return["eu-de","eu-en","de","eu"].includes(i)&&(t=t?.toString()?.replace?.(/[\s]/g,"")),c&&(t=t?.replace?.(/(\.\d*?[1-9])0+\b/,"$1")?.replace?.(/\.0+\b/,"")?.replace?.(/(\,\d*?[1-9])0+\b/,"$1")?.replace?.(/\,0+\b/,"")),t}function S({amount:e,baseAmount:r,currencyCode:a,currencyDisplay:i,locale:n,maximumFractionDigits:u,minimumFractionDigits:c,removeTrailingZeros:o}){if(typeof Intl>"u")return{price:`${p[n]}${e}`,basePrice:`${p[n]}${r}`,discount:`${p[n]}${r-e||0}`};const s=r>e;let l=null;const t=g(n);if(t){const m=new Intl.NumberFormat(t,{style:"percent"});l=s?m.format((r-e)/r):null}let y;if(s){const m=new D(r).sub(e||0).toNumber();y=d({amount:m,currencyDisplay:i,currencyCode:a||"USD",locale:n,maximumFractionDigits:2})}const f=d({amount:e,currencyCode:a,currencyDisplay:i,locale:n,removeTrailingZeros:o}),b=s?d({amount:r,currencyCode:a,currencyDisplay:i,locale:n,maximumFractionDigits:u,minimumFractionDigits:c,removeTrailingZeros:o}):void 0;return{price:f,basePrice:b,discount:l,discountAmount:y}}export{p as PRICE_SYMBOL,d as formatPrice,S as formatVariantPrice,g as languageTerritory};
1
+ import b from"decimal.js";import{PRICE_SYMBOL as o,formatPrice as p,languageTerritory as h}from"../../helpers/index.js";function P({amount:t,baseAmount:e,currencyCode:n,currencyDisplay:i,locale:r,maximumFractionDigits:d,minimumFractionDigits:l,removeTrailingZeros:u}){if(typeof Intl>"u")return{price:`${o[r]}${t}`,basePrice:`${o[r]}${e}`,discount:`${o[r]}${e-t||0}`};const a=e>t;let m=null;const c=h(r);if(c){const s=new Intl.NumberFormat(c,{style:"percent"});m=a?s.format((e-t)/e):null}let y;if(a){const s=new b(e).sub(t||0).toNumber();y=p({amount:s,currencyDisplay:i,currencyCode:n||"USD",locale:r,maximumFractionDigits:2})}const g=p({amount:t,currencyCode:n,currencyDisplay:i,locale:r,removeTrailingZeros:u}),f=a?p({amount:e,currencyCode:n,currencyDisplay:i,locale:r,maximumFractionDigits:d,minimumFractionDigits:l,removeTrailingZeros:u}):void 0;return{price:g,basePrice:f,discount:m,discountAmount:y}}export{P as formatVariantPrice};
2
2
  //# sourceMappingURL=shelfDisplay.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/biz-components/ShelfDisplay/shelfDisplay.ts"],
4
- "sourcesContent": ["import Decimal from 'decimal.js'\nimport type { ContainerProps, CurrencyDisplayType } from '../../types/props.js'\n/* eslint-disable no-useless-escape */\nexport const PRICE_SYMBOL = {\n us: '$',\n uk: '\u00A3',\n ca: '$',\n eu: '\u20AC',\n fr: '\u20AC',\n de: '\u20AC',\n nl: '\u20AC',\n vn: '\u20AB',\n cl: '$',\n sg: '$',\n ae: 'AED',\n} as any\n\nexport const languageTerritory = (locale: string) =>\n // https://unicode-org.github.io/cldr-staging/charts/37/supplemental/language_territory_information.html\n ({\n us: 'en-US',\n uk: 'en-GB',\n ca: 'en-CA',\n eu: 'en',\n fr: 'fr-FR',\n au: 'en-AU',\n my: 'en-my',\n 'eu-es': 'de-DE',\n 'eu-fr': 'de-DE',\n 'eu-it': 'de-DE',\n 'eu-de': 'de-DE',\n 'eu-en': 'en-US',\n 'cz-en': 'de-DE',\n 'ca-fr': 'fr-FR',\n nl: 'de-DE',\n de: 'de-DE',\n vn: 'vi-vn',\n sg: 'en-sg',\n 'ae-en': 'ae-en',\n plus: 'en-us',\n cl: 'es-cl',\n dk: 'en-dk',\n fi: 'en-fi',\n no: 'en-no',\n is: 'en-is',\n se: 'en-se',\n 'eu-pl': 'pl-PL',\n es: 'es-es',\n pl: 'pl-PL',\n nz: 'en-NZ',\n 'sg-en': 'en-SG',\n 'sa-en': 'en-SA',\n 'vn-vi': 'vi-VN',\n ie: 'en-IE',\n tw: 'zh-TW',\n })[locale] || ''\n\nexport function formatPrice({\n amount,\n currencyCode,\n currencyDisplay,\n locale,\n maximumFractionDigits,\n minimumFractionDigits,\n removeTrailingZeros = false,\n}: {\n amount: number\n currencyCode: string\n currencyDisplay?: CurrencyDisplayType\n locale: string\n maximumFractionDigits?: number\n minimumFractionDigits?: number\n removeTrailingZeros?: boolean\n}) {\n const code = locale === 'nl' ? 'EUR' : currencyCode || 'USD'\n const localeLanguage = languageTerritory(locale)\n if (!localeLanguage) {\n return null\n }\n const formatCurrency = new Intl.NumberFormat(localeLanguage, {\n style: 'currency',\n currency: code,\n currencyDisplay: currencyDisplay || 'symbol',\n minimumFractionDigits: maximumFractionDigits === 0 ? 0 : minimumFractionDigits,\n maximumFractionDigits,\n })\n\n let formattedValue = formatCurrency?.format?.(amount)\n\n if (['eu-de', 'eu-en', 'de', 'eu'].includes(locale)) {\n formattedValue = formattedValue?.toString()?.replace?.(/[\\s]/g, '')\n }\n\n if (removeTrailingZeros) {\n formattedValue = formattedValue\n ?.replace?.(/(\\.\\d*?[1-9])0+\\b/, '$1')\n ?.replace?.(/\\.0+\\b/, '')\n ?.replace?.(/(\\,\\d*?[1-9])0+\\b/, '$1')\n ?.replace?.(/\\,0+\\b/, '')\n }\n\n return formattedValue\n}\n\nexport function formatVariantPrice({\n amount,\n baseAmount,\n currencyCode,\n currencyDisplay,\n locale,\n maximumFractionDigits,\n minimumFractionDigits,\n removeTrailingZeros,\n}: {\n baseAmount: number\n amount: number\n currencyCode: string\n currencyDisplay?: CurrencyDisplayType\n locale: string\n maximumFractionDigits?: number\n minimumFractionDigits?: number\n removeTrailingZeros?: boolean\n}) {\n if (typeof Intl === 'undefined') {\n return {\n price: `${PRICE_SYMBOL[locale]}${amount}`,\n basePrice: `${PRICE_SYMBOL[locale]}${baseAmount}`,\n discount: `${PRICE_SYMBOL[locale]}${baseAmount - amount || 0}`,\n }\n }\n\n const hasDiscount = baseAmount > amount\n let discount = null\n const currentLocale = languageTerritory(locale)\n if (currentLocale) {\n const formatDiscount = new Intl.NumberFormat(currentLocale, {\n style: 'percent',\n })\n discount = hasDiscount ? formatDiscount.format((baseAmount - amount) / baseAmount) : null\n }\n // \u6298\u6263\u91D1\u989D\n let discountAmount\n if (hasDiscount) {\n const savePriceAmount = new Decimal(baseAmount).sub(amount || 0).toNumber()\n discountAmount = formatPrice({\n amount: savePriceAmount,\n currencyDisplay,\n currencyCode: currencyCode || 'USD',\n locale,\n maximumFractionDigits: 2,\n })\n }\n\n const price = formatPrice({ amount, currencyCode, currencyDisplay, locale, removeTrailingZeros })\n const basePrice = hasDiscount\n ? formatPrice({\n amount: baseAmount,\n currencyCode,\n currencyDisplay,\n locale,\n maximumFractionDigits,\n minimumFractionDigits,\n removeTrailingZeros,\n })\n : undefined\n\n return { price, basePrice, discount, discountAmount }\n}\n\ntype EventType = {\n primaryButton?: (v: any, index: number, data: ShelfDisplayType, coupon: any) => void\n secondaryButton?: (v: any, index: number, data: ShelfDisplayType, coupon: any) => void\n}\n\nexport interface ShelfDisplayItem {\n custom_primary_link?: string\n custom_secondary_link?: string\n id?: string\n /** \u4EA7\u54C1\u56FE\u7247*/\n img?: {\n url: string\n }\n handle?: string\n sku?: string\n /** \u6298\u6263\u540E\u4EF7\u683C*/\n price?: string\n title?: string\n /** \u6298\u6263\u524D\u4EF7\u683C*/\n basePrice?: string\n subTitle?: string\n /** \u6807\u7B7E*/\n tagItems?: string[]\n tab?: string\n data?: ShelfDisplayItem[]\n custom_name?: string\n custom_description?: string\n custom_image?: string\n custom_theme?: string\n}\n\nexport type ShelfDisplayType = {\n title?: string\n isShowTab?: boolean\n isShowTag?: boolean\n isShowRecommendedCard?: boolean\n isShowOriginalPrice?: boolean\n direction?: 'horizontal' | 'vertical'\n align?: 'left' | 'center' | 'right'\n productsTab?: any[]\n productsCard?: any[]\n /** \u5361\u7247\u5F62\u72B6 */\n itemShape?: 'round' | 'square'\n /** \u6309\u94AE\u5F62\u72B6 */\n shape?: 'round' | 'square'\n /** \u6807\u7B7E\u9875\u5F62\u72B6*/\n tabShape?: 'rounded' | 'square'\n /** \u4E3B\u6309\u94AE\u914D\u7F6E */\n primaryButton?: string\n primaryFun?: 'AddCart' | 'BuyNow' | 'LearnMore'\n /** \u526F\u6309\u94AE\u914D\u7F6E */\n secondaryButton?: string\n secondaryFun?: 'AddCart' | 'BuyNow' | 'LearnMore'\n theme?: 'light' | 'dark'\n containerProps?: ContainerProps\n}\n\nexport interface ShelfDisplayProps {\n data: ShelfDisplayType\n buildData?: {\n categories: any[]\n products: any[]\n }\n recommendedData?: any[]\n /** \u6309\u94AE\u4E8B\u4EF6*/\n event?: EventType\n className?: string\n key?: string\n target?: '_self' | '_blank'\n breakpoints?: {\n [key: number]: {\n spaceBetween: number\n freeMode: boolean\n slidesPerView: number\n }\n }\n metafields?: any\n isDisplayGudgments?: boolean\n isDisplayBackImage?: boolean\n}\n"],
5
- "mappings": "AAAA,OAAOA,MAAa,aAGb,MAAMC,EAAe,CAC1B,GAAI,IACJ,GAAI,OACJ,GAAI,IACJ,GAAI,SACJ,GAAI,SACJ,GAAI,SACJ,GAAI,SACJ,GAAI,SACJ,GAAI,IACJ,GAAI,IACJ,GAAI,KACN,EAEaC,EAAqBC,IAE/B,CACC,GAAI,QACJ,GAAI,QACJ,GAAI,QACJ,GAAI,KACJ,GAAI,QACJ,GAAI,QACJ,GAAI,QACJ,QAAS,QACT,QAAS,QACT,QAAS,QACT,QAAS,QACT,QAAS,QACT,QAAS,QACT,QAAS,QACT,GAAI,QACJ,GAAI,QACJ,GAAI,QACJ,GAAI,QACJ,QAAS,QACT,KAAM,QACN,GAAI,QACJ,GAAI,QACJ,GAAI,QACJ,GAAI,QACJ,GAAI,QACJ,GAAI,QACJ,QAAS,QACT,GAAI,QACJ,GAAI,QACJ,GAAI,QACJ,QAAS,QACT,QAAS,QACT,QAAS,QACT,GAAI,QACJ,GAAI,OACN,GAAGA,CAAM,GAAK,GAET,SAASC,EAAY,CAC1B,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,EACJ,GAAIJ,EAAa,CACf,MAAMK,EAAkB,IAAIrB,EAAQe,CAAU,EAAE,IAAIV,GAAU,CAAC,EAAE,SAAS,EAC1Ee,EAAiBhB,EAAY,CAC3B,OAAQiB,EACR,gBAAAd,EACA,aAAcD,GAAgB,MAC9B,OAAAH,EACA,sBAAuB,CACzB,CAAC,CACH,CAEA,MAAMmB,EAAQlB,EAAY,CAAE,OAAAC,EAAQ,aAAAC,EAAc,gBAAAC,EAAiB,OAAAJ,EAAQ,oBAAAO,CAAoB,CAAC,EAC1Fa,EAAYP,EACdZ,EAAY,CACV,OAAQW,EACR,aAAAT,EACA,gBAAAC,EACA,OAAAJ,EACA,sBAAAK,EACA,sBAAAC,EACA,oBAAAC,CACF,CAAC,EACD,OAEJ,MAAO,CAAE,MAAAY,EAAO,UAAAC,EAAW,SAAAN,EAAU,eAAAG,CAAe,CACtD",
6
- "names": ["Decimal", "PRICE_SYMBOL", "languageTerritory", "locale", "formatPrice", "amount", "currencyCode", "currencyDisplay", "maximumFractionDigits", "minimumFractionDigits", "removeTrailingZeros", "code", "localeLanguage", "formattedValue", "formatVariantPrice", "baseAmount", "hasDiscount", "discount", "currentLocale", "formatDiscount", "discountAmount", "savePriceAmount", "price", "basePrice"]
4
+ "sourcesContent": ["import Decimal from 'decimal.js'\nimport type { ContainerProps, CurrencyDisplayType } from '../../types/props.js'\n/* eslint-disable no-useless-escape */\nimport { PRICE_SYMBOL, formatPrice, languageTerritory } from '../../helpers/index.js'\n\nexport function formatVariantPrice({\n amount,\n baseAmount,\n currencyCode,\n currencyDisplay,\n locale,\n maximumFractionDigits,\n minimumFractionDigits,\n removeTrailingZeros,\n}: {\n baseAmount: number\n amount: number\n currencyCode: string\n currencyDisplay?: CurrencyDisplayType\n locale: string\n maximumFractionDigits?: number\n minimumFractionDigits?: number\n removeTrailingZeros?: boolean\n}) {\n if (typeof Intl === 'undefined') {\n return {\n price: `${PRICE_SYMBOL[locale]}${amount}`,\n basePrice: `${PRICE_SYMBOL[locale]}${baseAmount}`,\n discount: `${PRICE_SYMBOL[locale]}${baseAmount - amount || 0}`,\n }\n }\n\n const hasDiscount = baseAmount > amount\n let discount = null\n const currentLocale = languageTerritory(locale)\n if (currentLocale) {\n const formatDiscount = new Intl.NumberFormat(currentLocale, {\n style: 'percent',\n })\n discount = hasDiscount ? formatDiscount.format((baseAmount - amount) / baseAmount) : null\n }\n // \u6298\u6263\u91D1\u989D\n let discountAmount\n if (hasDiscount) {\n const savePriceAmount = new Decimal(baseAmount).sub(amount || 0).toNumber()\n discountAmount = formatPrice({\n amount: savePriceAmount,\n currencyDisplay,\n currencyCode: currencyCode || 'USD',\n locale,\n maximumFractionDigits: 2,\n })\n }\n\n const price = formatPrice({ amount, currencyCode, currencyDisplay, locale, removeTrailingZeros })\n const basePrice = hasDiscount\n ? formatPrice({\n amount: baseAmount,\n currencyCode,\n currencyDisplay,\n locale,\n maximumFractionDigits,\n minimumFractionDigits,\n removeTrailingZeros,\n })\n : undefined\n\n return { price, basePrice, discount, discountAmount }\n}\n\ntype EventType = {\n primaryButton?: (v: any, index: number, data: ShelfDisplayType, coupon: any) => void\n secondaryButton?: (v: any, index: number, data: ShelfDisplayType, coupon: any) => void\n}\n\nexport interface ShelfDisplayItem {\n custom_primary_link?: string\n custom_secondary_link?: string\n id?: string\n /** \u4EA7\u54C1\u56FE\u7247*/\n img?: {\n url: string\n }\n handle?: string\n sku?: string\n /** \u6298\u6263\u540E\u4EF7\u683C*/\n price?: string\n title?: string\n /** \u6298\u6263\u524D\u4EF7\u683C*/\n basePrice?: string\n subTitle?: string\n /** \u6807\u7B7E*/\n tagItems?: string[]\n tab?: string\n data?: ShelfDisplayItem[]\n custom_name?: string\n custom_description?: string\n custom_image?: string\n custom_theme?: string\n}\n\nexport type ShelfDisplayType = {\n title?: string\n isShowTab?: boolean\n isShowTag?: boolean\n isShowRecommendedCard?: boolean\n isShowOriginalPrice?: boolean\n direction?: 'horizontal' | 'vertical'\n align?: 'left' | 'center' | 'right'\n productsTab?: any[]\n productsCard?: any[]\n /** \u5361\u7247\u5F62\u72B6 */\n itemShape?: 'round' | 'square'\n /** \u6309\u94AE\u5F62\u72B6 */\n shape?: 'round' | 'square'\n /** \u6807\u7B7E\u9875\u5F62\u72B6*/\n tabShape?: 'rounded' | 'square'\n /** \u4E3B\u6309\u94AE\u914D\u7F6E */\n primaryButton?: string\n primaryFun?: 'AddCart' | 'BuyNow' | 'LearnMore'\n /** \u526F\u6309\u94AE\u914D\u7F6E */\n secondaryButton?: string\n secondaryFun?: 'AddCart' | 'BuyNow' | 'LearnMore'\n theme?: 'light' | 'dark'\n containerProps?: ContainerProps\n}\n\nexport interface ShelfDisplayProps {\n data: ShelfDisplayType\n buildData?: {\n categories: any[]\n products: any[]\n }\n recommendedData?: any[]\n /** \u6309\u94AE\u4E8B\u4EF6*/\n event?: EventType\n className?: string\n key?: string\n target?: '_self' | '_blank'\n breakpoints?: {\n [key: number]: {\n spaceBetween: number\n freeMode: boolean\n slidesPerView: number\n }\n }\n metafields?: any\n isDisplayGudgments?: boolean\n isDisplayBackImage?: boolean\n}\n"],
5
+ "mappings": "AAAA,OAAOA,MAAa,aAGpB,OAAS,gBAAAC,EAAc,eAAAC,EAAa,qBAAAC,MAAyB,yBAEtD,SAASC,EAAmB,CACjC,OAAAC,EACA,WAAAC,EACA,aAAAC,EACA,gBAAAC,EACA,OAAAC,EACA,sBAAAC,EACA,sBAAAC,EACA,oBAAAC,CACF,EASG,CACD,GAAI,OAAO,KAAS,IAClB,MAAO,CACL,MAAO,GAAGX,EAAaQ,CAAM,CAAC,GAAGJ,CAAM,GACvC,UAAW,GAAGJ,EAAaQ,CAAM,CAAC,GAAGH,CAAU,GAC/C,SAAU,GAAGL,EAAaQ,CAAM,CAAC,GAAGH,EAAaD,GAAU,CAAC,EAC9D,EAGF,MAAMQ,EAAcP,EAAaD,EACjC,IAAIS,EAAW,KACf,MAAMC,EAAgBZ,EAAkBM,CAAM,EAC9C,GAAIM,EAAe,CACjB,MAAMC,EAAiB,IAAI,KAAK,aAAaD,EAAe,CAC1D,MAAO,SACT,CAAC,EACDD,EAAWD,EAAcG,EAAe,QAAQV,EAAaD,GAAUC,CAAU,EAAI,IACvF,CAEA,IAAIW,EACJ,GAAIJ,EAAa,CACf,MAAMK,EAAkB,IAAIlB,EAAQM,CAAU,EAAE,IAAID,GAAU,CAAC,EAAE,SAAS,EAC1EY,EAAiBf,EAAY,CAC3B,OAAQgB,EACR,gBAAAV,EACA,aAAcD,GAAgB,MAC9B,OAAAE,EACA,sBAAuB,CACzB,CAAC,CACH,CAEA,MAAMU,EAAQjB,EAAY,CAAE,OAAAG,EAAQ,aAAAE,EAAc,gBAAAC,EAAiB,OAAAC,EAAQ,oBAAAG,CAAoB,CAAC,EAC1FQ,EAAYP,EACdX,EAAY,CACV,OAAQI,EACR,aAAAC,EACA,gBAAAC,EACA,OAAAC,EACA,sBAAAC,EACA,sBAAAC,EACA,oBAAAC,CACF,CAAC,EACD,OAEJ,MAAO,CAAE,MAAAO,EAAO,UAAAC,EAAW,SAAAN,EAAU,eAAAG,CAAe,CACtD",
6
+ "names": ["Decimal", "PRICE_SYMBOL", "formatPrice", "languageTerritory", "formatVariantPrice", "amount", "baseAmount", "currencyCode", "currencyDisplay", "locale", "maximumFractionDigits", "minimumFractionDigits", "removeTrailingZeros", "hasDiscount", "discount", "currentLocale", "formatDiscount", "discountAmount", "savePriceAmount", "price", "basePrice"]
7
7
  }
@@ -2,8 +2,8 @@ import React from 'react';
2
2
  import type { SloganProps } from './types.js';
3
3
  export declare const componentType = "copy";
4
4
  export declare const componentName = "brand_slogan";
5
- declare const _default: React.ForwardRefExoticComponent<Omit<Omit<SloganProps & React.RefAttributes<HTMLDivElement>, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps> & {
6
- className?: string;
7
- data?: Record<string, any>;
5
+ declare const _default: React.ForwardRefExoticComponent<Omit<SloganProps & React.RefAttributes<HTMLDivElement> & {
6
+ style?: string | React.CSSProperties;
7
+ container?: import("../../shared/Styles.js").ContainerProps["container"];
8
8
  }, "ref"> & React.RefAttributes<any>>;
9
9
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { SpacerProps } from './types.js';
3
- declare const _default: React.ForwardRefExoticComponent<Omit<Omit<SpacerProps & React.RefAttributes<HTMLDivElement>, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps> & {
4
- className?: string;
5
- data?: Record<string, any>;
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<SpacerProps & React.RefAttributes<HTMLDivElement> & {
4
+ style?: string | React.CSSProperties;
5
+ container?: import("../../shared/Styles.js").ContainerProps["container"];
6
6
  }, "ref"> & React.RefAttributes<any>>;
7
7
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- declare const _default: React.ForwardRefExoticComponent<Omit<Omit<Omit<any, "ref"> & React.RefAttributes<HTMLDivElement>, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps> & {
3
- className?: string;
4
- data?: Record<string, any>;
2
+ declare const _default: React.ForwardRefExoticComponent<Omit<Omit<any, "ref"> & React.RefAttributes<HTMLDivElement> & {
3
+ style?: string | React.CSSProperties;
4
+ container?: import("../../shared/Styles.js").ContainerProps["container"];
5
5
  }, "ref"> & React.RefAttributes<any>>;
6
6
  export default _default;
@@ -1,2 +1,2 @@
1
- "use client";import{Fragment as Y,jsx as s,jsxs as c}from"react/jsx-runtime";import U from"./dropdown.js";import{useAiuiContext as V}from"../AiuiProvider/index.js";import{useMediaQuery as B}from"react-responsive";import{useMemo as q,useState as m,useEffect as S}from"react";import{withLayout as z}from"../../shared/Styles.js";import{formatVariantPrice as Q}from"../ShelfDisplay/shelfDisplay.js";import{Picture as x,Text as W,Button as G,Heading as E}from"../../components/index.js";import J,{useImperativeHandle as K,useRef as X}from"react";const L=J.forwardRef((j,A)=>{const{data:g,buildData:p,onChange:C,onSecondaryChange:Z}=j||{},v=B({query:"(max-width: 768px)"}),[a,b]=m({}),[T,F]=m([]),[h,k]=m(!1),[f,w]=m({}),y=X(null),{locale:H="us",currencyDisplay:R}=V(),{LeftMenu:N,RightMenu:D,DefaultSelectMenu:u}=q(()=>g?.data||{},[g?.data]),I=e=>{try{const l=new URL(e).pathname.toLowerCase();return/\.(jpeg|jpg|gif|png|webp|bmp|svg|tiff)$/.test(l)}catch{return/\.(jpeg|jpg|gif|png|webp|bmp|svg|tiff)$/i.test(e)}},O=(e,t)=>{const l=e?.variants?.find?.(d=>d?.sku===e?.sku),n=l?.coupons?.[0],{price:r,basePrice:o}=Q({locale:H||"us",amount:n?n?.variant_price4wscode:l?.price,baseAmount:n?l?.price:0,currencyDisplay:R,currencyCode:e?.price?.currencyCode||"USD"}),i=typeof u?.buttonText=="string"?u?.buttonText:u?.buttonText?.[String(t)]||"";return c("div",{className:"specs-sku-node-wrap box-border",children:[c(W,{className:"md-tablet:p-2 l-tablet:mb-4 l-tablet:text-sm desktop:px-6 lg-desktop:mb-8 lg-desktop:text-lg openDropDown specs-sku-node-text relative mb-6 box-border block rounded-[50px] border border-[#E4E5E6] bg-[#F5F5F7] px-6 py-4 text-base font-bold",onClick:()=>{if(Object.keys(a||{})?.length<=2)return null;w({...f,[t]:!f?.[t]})},children:[c("div",{className:"flex items-center justify-between overflow-hidden",children:[s("div",{className:"openDropDown md-tablet:text-sm lg-desktop:text-lg specs-sku-node-title flex-1 truncate text-base",title:a?.[t]?.name||"",children:a?.[t]?.name||""}),Object.keys(a||{})?.length>2?s("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",className:"openDropDown",children:s("path",{d:"M6 9.5L12 15.5L18 9.5",stroke:"#1D1D1F",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):null]}),s(U,{index:t,list:T,active:a,setActive:b,visible:f,setVisible:w})]}),s("div",{className:"lg-desktop:max-h-[196px] lg-desktop:max-w-[196px] max-h-[138px] max-w-[138px]",children:s(x,{source:l?.image?.url||"",className:"aspect-h-[280] aspect-w-[280]",imgClassName:"w-full h-full object-cover hover:scale-105 transition-all duration-300"})}),l?.availableForSale?c("div",{className:"lg-desktop:text-2xl mb-2 mt-6 flex items-center text-xl font-bold",children:[s("div",{className:"specs-sku-node-price text-[#080A0F]",children:r||""}),o&&s("div",{className:"lg-desktop:text-2xl specs-sku-node-base-price ml-1 text-xl text-[#86868C] line-through",children:o})]}):!1,i?s(G,{onClick:()=>{C?.(e,t)},className:"specs-sku-node-button",children:i}):null]})},P=e=>e&&typeof e!="string"?c("div",{className:"size-full",children:[s("p",{className:"min-xxl:text-lg specs-normal-node-text text-base font-bold text-[#080A0F] md:text-sm",dangerouslySetInnerHTML:{__html:e?.text||""}}),s(x,{source:e?.imgUrl,className:"l:max-h-[174px] l:max-w-[174px] m-auto max-h-[360px] max-w-[360px]",imgClassName:"w-full h-full object-cover"})]}):s("div",{className:"break-all",children:I(e)?s(x,{source:e,className:"l:max-h-[174px] l:max-w-[174px] m-auto max-h-[360px] max-w-[360px]",imgClassName:"w-full h-full object-cover"}):s("p",{className:"min-xxl:text-lg specs-normal-node-text text-base font-bold text-[#080A0F] md:text-sm",dangerouslySetInnerHTML:{__html:e||""}})}),M=e=>e.map((t,l)=>{const n=l===0;return c("div",{className:"l-tablet:flex l-tablet:flex-col box-border grid w-full cursor-pointer grid-cols-3 overflow-hidden border-t border-t-[#E4E5E6] specs-product-node-wrap",children:[s(E,{as:"h3",html:t||"",className:"tablet:py-6 l-tablet:text-[#86868C] desktop:p-6 lg-desktop:text-lg specs-product-node-title mr-4 flex-1 pt-4 text-base font-bold md:text-sm"}),s("div",{className:`l-tablet:w-full l-tablet:gap-4 laptop:gap-8 desktop:gap-12 desktop:p-6 lg-desktop:gap-16 grid-cols-${h?3:2} specs-product-node-body col-span-2 grid flex-1 py-6`,children:Object.keys(a)?.map?.(r=>{const o=a?.[r],i=D?.menus?.find?.(d=>d?.handle===o?.handle)?.subTitle;return P(i?.[t])})})]},t)}),_=e=>{if(!a)return;const{subTitle:t,isProduct:l}=e;return l?c(Y,{children:[c("div",{className:"l-tablet:flex l-tablet:flex-col specs-content-item-product box-border grid w-full cursor-pointer grid-cols-3 border-t-0 border-t-[#E4E5E6]",children:[e?.title&&s(E,{as:"h3",html:e?.title||"",className:"l:hidden specs-item-product-title"}),s("div",{className:`l-tablet:w-full l-tablet:gap-4 laptop:gap-8 desktop:gap-12 desktop:px-6 desktop:pb-6 lg-desktop:gap-16 grid-cols-${h?3:2} specs-item-product-body col-span-2 grid flex-1 pb-4 pr-0`,children:Object.keys(a)?.map((n,r)=>{const o=a?.[n],i=p?.products?.find?.(d=>d?.handle===o?.handle);return s("div",{children:O({...i,item:n,sku:o?.sku},r)},n)})})]}),t?.length?M(t):null]}):M(t)};return K(A,()=>y.current),S(()=>{if(!p?.products?.length)return;const e=u?.sku?.split?.(",")||[];let t={};e?.forEach?.((n,r)=>{const o=p?.products?.find?.(i=>{if(i?.variants?.find?.($=>$?.sku===n))return!0});o&&(t={...t,[r]:{sku:n,name:o?.name||o?.title,handle:o?.handle}})});const l=p?.products?.filter(n=>D?.menus?.find(r=>r?.handle===n?.handle));b(t),F(l),k(e?.length>2)},[p]),S(()=>{if(v){const e=Object.keys(a||{});if(e?.length>2){const t=e?.slice?.(0,2);let l={};t?.forEach?.(n=>{l={...l,[n]:a?.[n]}}),k(!1),b(l)}}},[v]),s("div",{className:"specs-wrapper w-full overflow-hidden bg-[#F5F5F7]",ref:y,children:N?.data?s("div",{className:"specs-wrapper-content box-border w-full overflow-hidden",children:N?.data?.map?.((e,t)=>s("div",{className:"specs-wrapper-content-item w-full overflow-hidden pt-10 [&:first-child]:pt-0",children:_(e)},t))}):null})});L.displayName="Specs";var ie=z(L);export{ie as default};
1
+ "use client";import{Fragment as j,jsx as s,jsxs as c}from"react/jsx-runtime";import V from"./dropdown.js";import{useAiuiContext as B}from"../AiuiProvider/index.js";import{useMediaQuery as q}from"react-responsive";import{useMemo as z,useState as m,useEffect as S}from"react";import{withLayout as Q}from"../../shared/Styles.js";import{formatVariantPrice as W}from"../ShelfDisplay/shelfDisplay.js";import{Picture as f,Text as G,Button as J,Heading as E}from"../../components/index.js";import K,{useImperativeHandle as X,useRef as Y}from"react";const L=K.forwardRef((A,C)=>{const{data:g,buildData:p,onChange:T,onSecondaryChange:Z}=A||{},v=q({query:"(max-width: 768px)"}),[a,b]=m({}),[F,H]=m([]),[h,k]=m(!1),[x,w]=m({}),y=Y(null),{locale:R="us",currencyDisplay:I}=B(),{LeftMenu:N,RightMenu:D,DefaultSelectMenu:u}=z(()=>g?.data||{},[g?.data]),O=e=>{try{const l=new URL(e).pathname.toLowerCase();return/\.(jpeg|jpg|gif|png|webp|bmp|svg|tiff)$/.test(l)}catch{return/\.(jpeg|jpg|gif|png|webp|bmp|svg|tiff)$/i.test(e)}},P=(e,t)=>{const l=e?.variants?.find?.(d=>d?.sku===e?.sku),n=l?.coupons?.[0],{price:r,basePrice:o}=W({locale:R||"us",amount:n?n?.variant_price4wscode:l?.price,baseAmount:n?l?.price:0,currencyDisplay:I,currencyCode:e?.price?.currencyCode||"USD"}),i=typeof u?.buttonText=="string"?u?.buttonText:u?.buttonText?.[String(t)]||"";return c("div",{className:"specs-sku-node-wrap box-border",children:[c(G,{className:"md-tablet:p-2 l-tablet:mb-4 l-tablet:text-sm desktop:px-6 lg-desktop:mb-8 lg-desktop:text-lg openDropDown specs-sku-node-text relative mb-6 box-border block rounded-[50px] border border-[#E4E5E6] bg-[#F5F5F7] px-6 py-4 text-base font-bold",onClick:()=>{if(Object.keys(a||{})?.length<=2)return null;w({...x,[t]:!x?.[t]})},children:[c("div",{className:"flex items-center justify-between overflow-hidden",children:[s("div",{className:"openDropDown md-tablet:text-sm lg-desktop:text-lg specs-sku-node-title flex-1 truncate text-base",title:a?.[t]?.name||"",children:a?.[t]?.name||""}),Object.keys(a||{})?.length>2?s("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",className:"openDropDown",children:s("path",{d:"M6 9.5L12 15.5L18 9.5",stroke:"#1D1D1F",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):null]}),s(V,{index:t,list:F,active:a,setActive:b,visible:x,setVisible:w})]}),s("div",{className:"lg-desktop:max-h-[196px] lg-desktop:max-w-[196px] max-h-[138px] max-w-[138px]",children:s(f,{source:l?.image?.url||"",className:"aspect-h-[280] aspect-w-[280]",imgClassName:"w-full h-full object-cover hover:scale-105 transition-all duration-300"})}),s("div",{className:"lg-desktop:text-2xl mb-2 mt-6 text-xl font-bold",children:s("div",{className:"lg-desktop:min-h-[32px] flex min-h-[28px] items-center",children:l?.availableForSale?c(j,{children:[s("div",{className:"specs-sku-node-price text-[#080A0F]",children:r||""}),o&&s("div",{className:"lg-desktop:text-2xl specs-sku-node-base-price ml-1 text-xl text-[#86868C] line-through",children:o})]}):null})}),i?s(J,{onClick:()=>{T?.(e,t)},className:"specs-sku-node-button",children:i}):null]})},_=e=>e&&typeof e!="string"?c("div",{className:"size-full",children:[s("p",{className:"min-xxl:text-lg specs-normal-node-text text-base font-bold text-[#080A0F] md:text-sm",dangerouslySetInnerHTML:{__html:e?.text||""}}),s(f,{source:e?.imgUrl,className:"l:max-h-[174px] l:max-w-[174px] m-auto max-h-[360px] max-w-[360px]",imgClassName:"w-full h-full object-cover"})]}):s("div",{className:"break-all",children:O(e)?s(f,{source:e,className:"l:max-h-[174px] l:max-w-[174px] m-auto max-h-[360px] max-w-[360px]",imgClassName:"w-full h-full object-cover"}):s("p",{className:"min-xxl:text-lg specs-normal-node-text text-base font-bold text-[#080A0F] md:text-sm",dangerouslySetInnerHTML:{__html:e||""}})}),M=e=>e.map((t,l)=>{const n=l===0;return c("div",{className:"l-tablet:flex l-tablet:flex-col box-border grid w-full cursor-pointer grid-cols-3 overflow-hidden border-t border-t-[#E4E5E6] specs-product-node-wrap",children:[s(E,{as:"h3",html:t||"",className:"tablet:py-6 l-tablet:text-[#86868C] desktop:p-6 lg-desktop:text-lg specs-product-node-title mr-4 flex-1 pt-4 text-base font-bold md:text-sm"}),s("div",{className:`l-tablet:w-full l-tablet:gap-4 laptop:gap-8 desktop:gap-12 desktop:p-6 lg-desktop:gap-16 grid-cols-${h?3:2} specs-product-node-body col-span-2 grid flex-1 py-6`,children:Object.keys(a)?.map?.(r=>{const o=a?.[r],i=D?.menus?.find?.(d=>d?.handle===o?.handle)?.subTitle;return _(i?.[t])})})]},t)}),$=e=>{if(!a)return;const{subTitle:t,isProduct:l}=e;return l?c(j,{children:[c("div",{className:"l-tablet:flex l-tablet:flex-col specs-content-item-product box-border grid w-full cursor-pointer grid-cols-3 border-t-0 border-t-[#E4E5E6]",children:[e?.title&&s(E,{as:"h3",html:e?.title||"",className:"l:hidden specs-item-product-title"}),s("div",{className:`l-tablet:w-full l-tablet:gap-4 laptop:gap-8 desktop:gap-12 desktop:px-6 desktop:pb-6 lg-desktop:gap-16 grid-cols-${h?3:2} specs-item-product-body col-span-2 grid flex-1 pb-4 pr-0`,children:Object.keys(a)?.map((n,r)=>{const o=a?.[n],i=p?.products?.find?.(d=>d?.handle===o?.handle);return s("div",{children:P({...i,item:n,sku:o?.sku},r)},n)})})]}),t?.length?M(t):null]}):M(t)};return X(C,()=>y.current),S(()=>{if(!p?.products?.length)return;const e=u?.sku?.split?.(",")||[];let t={};e?.forEach?.((n,r)=>{const o=p?.products?.find?.(i=>{if(i?.variants?.find?.(U=>U?.sku===n))return!0});o&&(t={...t,[r]:{sku:n,name:o?.name||o?.title,handle:o?.handle}})});const l=p?.products?.filter(n=>D?.menus?.find(r=>r?.handle===n?.handle));b(t),H(l),k(e?.length>2)},[p]),S(()=>{if(v){const e=Object.keys(a||{});if(e?.length>2){const t=e?.slice?.(0,2);let l={};t?.forEach?.(n=>{l={...l,[n]:a?.[n]}}),k(!1),b(l)}}},[v]),s("div",{className:"specs-wrapper w-full overflow-hidden bg-[#F5F5F7]",ref:y,children:N?.data?s("div",{className:"specs-wrapper-content box-border w-full overflow-hidden",children:N?.data?.map?.((e,t)=>s("div",{className:"specs-wrapper-content-item w-full overflow-hidden pt-10 [&:first-child]:pt-0",children:$(e)},t))}):null})});L.displayName="Specs";var ie=Q(L);export{ie as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/biz-components/Specs/index.tsx"],
4
- "sourcesContent": ["'use client'\n\nimport DropDown from './dropdown.js'\nimport { useAiuiContext } from '../AiuiProvider/index.js'\nimport { useMediaQuery } from 'react-responsive'\nimport { useMemo, useState, useEffect } from 'react'\nimport { withLayout } from '../../shared/Styles.js'\nimport { formatVariantPrice } from '../ShelfDisplay/shelfDisplay.js'\nimport { Picture, Text, Button, Heading } from '../../components/index.js'\nimport React, { useImperativeHandle, useRef } from 'react'\n\nconst Specs = React.forwardRef<HTMLDivElement, any>((page: any, ref) => {\n const { data, buildData, onChange, onSecondaryChange } = page || {}\n\n const isMobile = useMediaQuery({ query: '(max-width: 768px)' })\n\n const [active, setActive] = useState<any>({})\n const [menuList, setMenuList] = useState<any[]>([])\n const [isShowMax, setIsShowMax] = useState<boolean>(false)\n const [visibleActive, setVisibleActive] = useState<{ [key: number]: boolean }>({})\n\n const innerRef = useRef<HTMLDivElement>(null)\n\n const { locale = 'us', currencyDisplay } = useAiuiContext()\n\n const { LeftMenu, RightMenu, DefaultSelectMenu } = useMemo(() => data?.data || {}, [data?.data])\n\n const isImageUrl = (urlPath: string) => {\n try {\n const url = new URL(urlPath)\n const path = url.pathname.toLowerCase()\n return /\\.(jpeg|jpg|gif|png|webp|bmp|svg|tiff)$/.test(path)\n } catch (e) {\n // \u5982\u679C\u4F20\u5165\u7684\u4E0D\u662F\u6709\u6548URL\uFF08\u5982\u76F8\u5BF9\u8DEF\u5F84\uFF09\uFF0C\u76F4\u63A5\u68C0\u67E5\u8DEF\u5F84\n return /\\.(jpeg|jpg|gif|png|webp|bmp|svg|tiff)$/i.test(urlPath)\n }\n }\n\n const skuNode = (product: any, index: number) => {\n const findSku = product?.variants?.find?.((item: any) => item?.sku === product?.sku)\n const coupon = findSku?.coupons?.[0]\n const { price, basePrice } = formatVariantPrice({\n locale: locale || 'us',\n amount: coupon ? coupon?.variant_price4wscode : findSku?.price,\n baseAmount: coupon ? findSku?.price : 0,\n currencyDisplay,\n currencyCode: product?.price?.currencyCode || 'USD',\n })\n const buttonTextValue =\n typeof DefaultSelectMenu?.buttonText === 'string'\n ? DefaultSelectMenu?.buttonText\n : DefaultSelectMenu?.buttonText?.[String(index)] || ''\n return (\n <div className=\"specs-sku-node-wrap box-border\">\n <Text\n className={`md-tablet:p-2 l-tablet:mb-4 l-tablet:text-sm desktop:px-6 lg-desktop:mb-8 lg-desktop:text-lg openDropDown specs-sku-node-text relative mb-6 box-border block rounded-[50px] border border-[#E4E5E6] bg-[#F5F5F7] px-6 py-4 text-base font-bold`}\n onClick={() => {\n if (Object.keys(active || {})?.length <= 2) return null\n\n setVisibleActive({\n ...visibleActive,\n [index]: !visibleActive?.[index],\n })\n }}\n >\n <div className=\"flex items-center justify-between overflow-hidden\">\n <div\n className=\"openDropDown md-tablet:text-sm lg-desktop:text-lg specs-sku-node-title flex-1 truncate text-base\"\n title={active?.[index]?.name || ''}\n >\n {active?.[index]?.name || ''}\n </div>\n {Object.keys(active || {})?.length > 2 ? (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"25\"\n viewBox=\"0 0 24 25\"\n fill=\"none\"\n className=\"openDropDown\"\n >\n <path\n d=\"M6 9.5L12 15.5L18 9.5\"\n stroke=\"#1D1D1F\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n ) : null}\n </div>\n <DropDown\n index={index}\n list={menuList}\n active={active}\n setActive={setActive}\n visible={visibleActive}\n setVisible={setVisibleActive}\n />\n </Text>\n <div className=\"lg-desktop:max-h-[196px] lg-desktop:max-w-[196px] max-h-[138px] max-w-[138px]\">\n <Picture\n source={findSku?.image?.url || ''}\n className=\"aspect-h-[280] aspect-w-[280]\"\n imgClassName=\"w-full h-full object-cover hover:scale-105 transition-all duration-300\"\n />\n </div>\n {findSku?.availableForSale ? (\n <div className=\"lg-desktop:text-2xl mb-2 mt-6 flex items-center text-xl font-bold\">\n <div className=\"specs-sku-node-price text-[#080A0F]\">{price || ''}</div>\n {basePrice && (\n <div className=\"lg-desktop:text-2xl specs-sku-node-base-price ml-1 text-xl text-[#86868C] line-through\">\n {basePrice}\n </div>\n )}\n </div>\n ) : (\n false\n )}\n {buttonTextValue ? (\n <Button\n onClick={() => {\n onChange?.(product, index)\n }}\n className=\"specs-sku-node-button\"\n >\n {buttonTextValue}\n </Button>\n ) : null}\n </div>\n )\n }\n\n const normalNode = (v: any) => {\n if (v && typeof v !== 'string') {\n return (\n <div className=\"size-full\">\n <p\n className=\"min-xxl:text-lg specs-normal-node-text text-base font-bold text-[#080A0F] md:text-sm\"\n dangerouslySetInnerHTML={{\n __html: v?.text || '',\n }}\n />\n <Picture\n source={v?.imgUrl}\n className=\"l:max-h-[174px] l:max-w-[174px] m-auto max-h-[360px] max-w-[360px]\"\n imgClassName=\"w-full h-full object-cover\"\n />\n </div>\n )\n }\n return (\n <div className=\"break-all\">\n {isImageUrl(v) ? (\n <Picture\n source={v}\n className=\"l:max-h-[174px] l:max-w-[174px] m-auto max-h-[360px] max-w-[360px]\"\n imgClassName=\"w-full h-full object-cover\"\n />\n ) : (\n <p\n className=\"min-xxl:text-lg specs-normal-node-text text-base font-bold text-[#080A0F] md:text-sm\"\n dangerouslySetInnerHTML={{\n __html: v || '',\n }}\n />\n )}\n </div>\n )\n }\n\n const productNode = (data: any) => {\n return data.map((st: any, idx: number) => {\n const isFirstParameter = idx === 0\n return (\n <div\n key={st}\n className={`l-tablet:flex l-tablet:flex-col box-border grid w-full cursor-pointer grid-cols-3 overflow-hidden border-t border-t-[#E4E5E6] ${isFirstParameter ? '' : ''} specs-product-node-wrap`}\n >\n <Heading\n as=\"h3\"\n html={st || ''}\n className=\"tablet:py-6 l-tablet:text-[#86868C] desktop:p-6 lg-desktop:text-lg specs-product-node-title mr-4 flex-1 pt-4 text-base font-bold md:text-sm\"\n />\n <div\n className={`l-tablet:w-full l-tablet:gap-4 laptop:gap-8 desktop:gap-12 desktop:p-6 lg-desktop:gap-16 grid-cols-${isShowMax ? 3 : 2} specs-product-node-body col-span-2 grid flex-1 py-6`}\n >\n {Object.keys(active)?.map?.((item: string) => {\n const currentData = active?.[item]\n const currentMenus = RightMenu?.menus?.find?.(\n (item: any) => item?.handle === currentData?.handle\n )?.subTitle\n return normalNode(currentMenus?.[st])\n })}\n </div>\n </div>\n )\n })\n }\n\n // \u5DE6\u4FA7\u6807\u9898\u83DC\u5355\n const childrenNode = (node: any) => {\n if (!active) return\n const { subTitle, isProduct } = node\n // \u5982\u679C\u662F\u4EA7\u54C1\n if (isProduct) {\n return (\n <>\n <div\n className={`l-tablet:flex l-tablet:flex-col specs-content-item-product box-border grid w-full cursor-pointer grid-cols-3 border-t-0 border-t-[#E4E5E6]`}\n >\n {node?.title && <Heading as=\"h3\" html={node?.title || ''} className=\"l:hidden specs-item-product-title\" />}\n <div\n className={`l-tablet:w-full l-tablet:gap-4 laptop:gap-8 desktop:gap-12 desktop:px-6 desktop:pb-6 lg-desktop:gap-16 grid-cols-${isShowMax ? 3 : 2} specs-item-product-body col-span-2 grid flex-1 pb-4 pr-0`}\n >\n {Object.keys(active)?.map((item: string, index: number) => {\n const currentData = active?.[item]\n const currentProduct = buildData?.products?.find?.((item: any) => item?.handle === currentData?.handle)\n return <div key={item}>{skuNode({ ...currentProduct, item: item, sku: currentData?.sku }, index)}</div>\n })}\n </div>\n </div>\n {subTitle?.length ? productNode(subTitle) : null}\n </>\n )\n }\n return productNode(subTitle)\n }\n\n useImperativeHandle(ref, () => innerRef.current as HTMLDivElement)\n\n useEffect(() => {\n if (!buildData?.products?.length) return\n const skus = DefaultSelectMenu?.sku?.split?.(',') || []\n let currentActive = {}\n skus?.forEach?.((sku: string, index: number) => {\n const findData = buildData?.products?.find?.((item: any) => {\n const findSku = item?.variants?.find?.((v: any) => v?.sku === sku)\n if (findSku) return true\n })\n if (findData) {\n currentActive = {\n ...currentActive,\n [index]: {\n sku: sku,\n name: findData?.name || findData?.title,\n handle: findData?.handle,\n },\n }\n }\n })\n const currentMenu = buildData?.products?.filter((item: any) => {\n return RightMenu?.menus?.find((params: any) => params?.handle === item?.handle)\n })\n setActive(currentActive)\n setMenuList(currentMenu)\n setIsShowMax(skus?.length > 2)\n }, [buildData])\n\n useEffect(() => {\n if (isMobile) {\n const currentActive = Object.keys(active || {})\n if (currentActive?.length > 2) {\n const newActive = currentActive?.slice?.(0, 2)\n let newShowActive = {}\n newActive?.forEach?.((item: string) => {\n newShowActive = { ...newShowActive, [item]: active?.[item] }\n })\n setIsShowMax(false)\n setActive(newShowActive)\n }\n }\n }, [isMobile])\n\n return (\n <div className=\"specs-wrapper w-full overflow-hidden bg-[#F5F5F7]\" ref={innerRef}>\n {LeftMenu?.data ? (\n <div className=\"specs-wrapper-content box-border w-full overflow-hidden\">\n {LeftMenu?.data?.map?.((item: any, index: number) => {\n return (\n <div key={index} className=\"specs-wrapper-content-item w-full overflow-hidden pt-10 [&:first-child]:pt-0\">\n {childrenNode(item)}\n </div>\n )\n })}\n </div>\n ) : null}\n </div>\n )\n})\n\nSpecs.displayName = 'Specs'\n\nexport default withLayout(Specs)\n"],
5
- "mappings": "aAiEU,OA8IF,YAAAA,EA7II,OAAAC,EADF,QAAAC,MAAA,oBA/DV,OAAOC,MAAc,gBACrB,OAAS,kBAAAC,MAAsB,2BAC/B,OAAS,iBAAAC,MAAqB,mBAC9B,OAAS,WAAAC,EAAS,YAAAC,EAAU,aAAAC,MAAiB,QAC7C,OAAS,cAAAC,MAAk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,MAAMyC,EAAgB,OAAO,KAAKxC,GAAU,CAAC,CAAC,EAC9C,GAAIwC,GAAe,OAAS,EAAG,CAC7B,MAAMK,EAAYL,GAAe,QAAQ,EAAG,CAAC,EAC7C,IAAIM,EAAgB,CAAC,EACrBD,GAAW,UAAWxB,GAAiB,CACrCyB,EAAgB,CAAE,GAAGA,EAAe,CAACzB,CAAI,EAAGrB,IAASqB,CAAI,CAAE,CAC7D,CAAC,EACDhB,EAAa,EAAK,EAClBJ,EAAU6C,CAAa,CACzB,CACF,CACF,EAAG,CAAC/C,CAAQ,CAAC,EAGXxB,EAAC,OAAI,UAAU,oDAAoD,IAAKiC,EACrE,SAAAG,GAAU,KACTpC,EAAC,OAAI,UAAU,0DACZ,SAAAoC,GAAU,MAAM,MAAM,CAACU,EAAWF,IAE/B5C,EAAC,OAAgB,UAAU,+EACxB,SAAA2D,EAAab,CAAI,GADVF,CAEV,CAEH,EACH,EACE,KACN,CAEJ,CAAC,EAED3B,EAAM,YAAc,QAEpB,IAAOuD,GAAQhE,EAAWS,CAAK",
4
+ "sourcesContent": ["'use client'\n\nimport DropDown from './dropdown.js'\nimport { useAiuiContext } from '../AiuiProvider/index.js'\nimport { useMediaQuery } from 'react-responsive'\nimport { useMemo, useState, useEffect } from 'react'\nimport { withLayout } from '../../shared/Styles.js'\nimport { formatVariantPrice } from '../ShelfDisplay/shelfDisplay.js'\nimport { Picture, Text, Button, Heading } from '../../components/index.js'\nimport React, { useImperativeHandle, useRef } from 'react'\n\nconst Specs = React.forwardRef<HTMLDivElement, any>((page: any, ref) => {\n const { data, buildData, onChange, onSecondaryChange } = page || {}\n\n const isMobile = useMediaQuery({ query: '(max-width: 768px)' })\n\n const [active, setActive] = useState<any>({})\n const [menuList, setMenuList] = useState<any[]>([])\n const [isShowMax, setIsShowMax] = useState<boolean>(false)\n const [visibleActive, setVisibleActive] = useState<{ [key: number]: boolean }>({})\n\n const innerRef = useRef<HTMLDivElement>(null)\n\n const { locale = 'us', currencyDisplay } = useAiuiContext()\n\n const { LeftMenu, RightMenu, DefaultSelectMenu } = useMemo(() => data?.data || {}, [data?.data])\n\n const isImageUrl = (urlPath: string) => {\n try {\n const url = new URL(urlPath)\n const path = url.pathname.toLowerCase()\n return /\\.(jpeg|jpg|gif|png|webp|bmp|svg|tiff)$/.test(path)\n } catch (e) {\n // \u5982\u679C\u4F20\u5165\u7684\u4E0D\u662F\u6709\u6548URL\uFF08\u5982\u76F8\u5BF9\u8DEF\u5F84\uFF09\uFF0C\u76F4\u63A5\u68C0\u67E5\u8DEF\u5F84\n return /\\.(jpeg|jpg|gif|png|webp|bmp|svg|tiff)$/i.test(urlPath)\n }\n }\n\n const skuNode = (product: any, index: number) => {\n const findSku = product?.variants?.find?.((item: any) => item?.sku === product?.sku)\n const coupon = findSku?.coupons?.[0]\n const { price, basePrice } = formatVariantPrice({\n locale: locale || 'us',\n amount: coupon ? coupon?.variant_price4wscode : findSku?.price,\n baseAmount: coupon ? findSku?.price : 0,\n currencyDisplay,\n currencyCode: product?.price?.currencyCode || 'USD',\n })\n const buttonTextValue =\n typeof DefaultSelectMenu?.buttonText === 'string'\n ? DefaultSelectMenu?.buttonText\n : DefaultSelectMenu?.buttonText?.[String(index)] || ''\n return (\n <div className=\"specs-sku-node-wrap box-border\">\n <Text\n className={`md-tablet:p-2 l-tablet:mb-4 l-tablet:text-sm desktop:px-6 lg-desktop:mb-8 lg-desktop:text-lg openDropDown specs-sku-node-text relative mb-6 box-border block rounded-[50px] border border-[#E4E5E6] bg-[#F5F5F7] px-6 py-4 text-base font-bold`}\n onClick={() => {\n if (Object.keys(active || {})?.length <= 2) return null\n\n setVisibleActive({\n ...visibleActive,\n [index]: !visibleActive?.[index],\n })\n }}\n >\n <div className=\"flex items-center justify-between overflow-hidden\">\n <div\n className=\"openDropDown md-tablet:text-sm lg-desktop:text-lg specs-sku-node-title flex-1 truncate text-base\"\n title={active?.[index]?.name || ''}\n >\n {active?.[index]?.name || ''}\n </div>\n {Object.keys(active || {})?.length > 2 ? (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"25\"\n viewBox=\"0 0 24 25\"\n fill=\"none\"\n className=\"openDropDown\"\n >\n <path\n d=\"M6 9.5L12 15.5L18 9.5\"\n stroke=\"#1D1D1F\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n ) : null}\n </div>\n <DropDown\n index={index}\n list={menuList}\n active={active}\n setActive={setActive}\n visible={visibleActive}\n setVisible={setVisibleActive}\n />\n </Text>\n <div className=\"lg-desktop:max-h-[196px] lg-desktop:max-w-[196px] max-h-[138px] max-w-[138px]\">\n <Picture\n source={findSku?.image?.url || ''}\n className=\"aspect-h-[280] aspect-w-[280]\"\n imgClassName=\"w-full h-full object-cover hover:scale-105 transition-all duration-300\"\n />\n </div>\n <div className=\"lg-desktop:text-2xl mb-2 mt-6 text-xl font-bold\">\n <div className=\"lg-desktop:min-h-[32px] flex min-h-[28px] items-center\">\n {findSku?.availableForSale ? (\n <>\n <div className=\"specs-sku-node-price text-[#080A0F]\">{price || ''}</div>\n {basePrice && (\n <div className=\"lg-desktop:text-2xl specs-sku-node-base-price ml-1 text-xl text-[#86868C] line-through\">\n {basePrice}\n </div>\n )}\n </>\n ) : null}\n </div>\n </div>\n {buttonTextValue ? (\n <Button\n onClick={() => {\n onChange?.(product, index)\n }}\n className=\"specs-sku-node-button\"\n >\n {buttonTextValue}\n </Button>\n ) : null}\n </div>\n )\n }\n\n const normalNode = (v: any) => {\n if (v && typeof v !== 'string') {\n return (\n <div className=\"size-full\">\n <p\n className=\"min-xxl:text-lg specs-normal-node-text text-base font-bold text-[#080A0F] md:text-sm\"\n dangerouslySetInnerHTML={{\n __html: v?.text || '',\n }}\n />\n <Picture\n source={v?.imgUrl}\n className=\"l:max-h-[174px] l:max-w-[174px] m-auto max-h-[360px] max-w-[360px]\"\n imgClassName=\"w-full h-full object-cover\"\n />\n </div>\n )\n }\n return (\n <div className=\"break-all\">\n {isImageUrl(v) ? (\n <Picture\n source={v}\n className=\"l:max-h-[174px] l:max-w-[174px] m-auto max-h-[360px] max-w-[360px]\"\n imgClassName=\"w-full h-full object-cover\"\n />\n ) : (\n <p\n className=\"min-xxl:text-lg specs-normal-node-text text-base font-bold text-[#080A0F] md:text-sm\"\n dangerouslySetInnerHTML={{\n __html: v || '',\n }}\n />\n )}\n </div>\n )\n }\n\n const productNode = (data: any) => {\n return data.map((st: any, idx: number) => {\n const isFirstParameter = idx === 0\n return (\n <div\n key={st}\n className={`l-tablet:flex l-tablet:flex-col box-border grid w-full cursor-pointer grid-cols-3 overflow-hidden border-t border-t-[#E4E5E6] ${isFirstParameter ? '' : ''} specs-product-node-wrap`}\n >\n <Heading\n as=\"h3\"\n html={st || ''}\n className=\"tablet:py-6 l-tablet:text-[#86868C] desktop:p-6 lg-desktop:text-lg specs-product-node-title mr-4 flex-1 pt-4 text-base font-bold md:text-sm\"\n />\n <div\n className={`l-tablet:w-full l-tablet:gap-4 laptop:gap-8 desktop:gap-12 desktop:p-6 lg-desktop:gap-16 grid-cols-${isShowMax ? 3 : 2} specs-product-node-body col-span-2 grid flex-1 py-6`}\n >\n {Object.keys(active)?.map?.((item: string) => {\n const currentData = active?.[item]\n const currentMenus = RightMenu?.menus?.find?.(\n (item: any) => item?.handle === currentData?.handle\n )?.subTitle\n return normalNode(currentMenus?.[st])\n })}\n </div>\n </div>\n )\n })\n }\n\n // \u5DE6\u4FA7\u6807\u9898\u83DC\u5355\n const childrenNode = (node: any) => {\n if (!active) return\n const { subTitle, isProduct } = node\n // \u5982\u679C\u662F\u4EA7\u54C1\n if (isProduct) {\n return (\n <>\n <div\n className={`l-tablet:flex l-tablet:flex-col specs-content-item-product box-border grid w-full cursor-pointer grid-cols-3 border-t-0 border-t-[#E4E5E6]`}\n >\n {node?.title && <Heading as=\"h3\" html={node?.title || ''} className=\"l:hidden specs-item-product-title\" />}\n <div\n className={`l-tablet:w-full l-tablet:gap-4 laptop:gap-8 desktop:gap-12 desktop:px-6 desktop:pb-6 lg-desktop:gap-16 grid-cols-${isShowMax ? 3 : 2} specs-item-product-body col-span-2 grid flex-1 pb-4 pr-0`}\n >\n {Object.keys(active)?.map((item: string, index: number) => {\n const currentData = active?.[item]\n const currentProduct = buildData?.products?.find?.((item: any) => item?.handle === currentData?.handle)\n return <div key={item}>{skuNode({ ...currentProduct, item: item, sku: currentData?.sku }, index)}</div>\n })}\n </div>\n </div>\n {subTitle?.length ? productNode(subTitle) : null}\n </>\n )\n }\n return productNode(subTitle)\n }\n\n useImperativeHandle(ref, () => innerRef.current as HTMLDivElement)\n\n useEffect(() => {\n if (!buildData?.products?.length) return\n const skus = DefaultSelectMenu?.sku?.split?.(',') || []\n let currentActive = {}\n skus?.forEach?.((sku: string, index: number) => {\n const findData = buildData?.products?.find?.((item: any) => {\n const findSku = item?.variants?.find?.((v: any) => v?.sku === sku)\n if (findSku) return true\n })\n if (findData) {\n currentActive = {\n ...currentActive,\n [index]: {\n sku: sku,\n name: findData?.name || findData?.title,\n handle: findData?.handle,\n },\n }\n }\n })\n const currentMenu = buildData?.products?.filter((item: any) => {\n return RightMenu?.menus?.find((params: any) => params?.handle === item?.handle)\n })\n setActive(currentActive)\n setMenuList(currentMenu)\n setIsShowMax(skus?.length > 2)\n }, [buildData])\n\n useEffect(() => {\n if (isMobile) {\n const currentActive = Object.keys(active || {})\n if (currentActive?.length > 2) {\n const newActive = currentActive?.slice?.(0, 2)\n let newShowActive = {}\n newActive?.forEach?.((item: string) => {\n newShowActive = { ...newShowActive, [item]: active?.[item] }\n })\n setIsShowMax(false)\n setActive(newShowActive)\n }\n }\n }, [isMobile])\n\n return (\n <div className=\"specs-wrapper w-full overflow-hidden bg-[#F5F5F7]\" ref={innerRef}>\n {LeftMenu?.data ? (\n <div className=\"specs-wrapper-content box-border w-full overflow-hidden\">\n {LeftMenu?.data?.map?.((item: any, index: number) => {\n return (\n <div key={index} className=\"specs-wrapper-content-item w-full overflow-hidden p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EACtB,CAAC,EACGC,IACFF,EAAgB,CACd,GAAGA,EACH,CAACrB,CAAK,EAAG,CACP,IAAKsB,EACL,KAAMC,GAAU,MAAQA,GAAU,MAClC,OAAQA,GAAU,MACpB,CACF,EAEJ,CAAC,EACD,MAAMC,EAAc/C,GAAW,UAAU,OAAQyB,GACxCT,GAAW,OAAO,KAAMgC,GAAgBA,GAAQ,SAAWvB,GAAM,MAAM,CAC/E,EACDpB,EAAUuC,CAAa,EACvBrC,EAAYwC,CAAW,EACvBtC,EAAakC,GAAM,OAAS,CAAC,CAC/B,EAAG,CAAC3C,CAAS,CAAC,EAEdd,EAAU,IAAM,CACd,GAAIiB,EAAU,CACZ,MAAMyC,EAAgB,OAAO,KAAKxC,GAAU,CAAC,CAAC,EAC9C,GAAIwC,GAAe,OAAS,EAAG,CAC7B,MAAMK,EAAYL,GAAe,QAAQ,EAAG,CAAC,EAC7C,IAAIM,EAAgB,CAAC,EACrBD,GAAW,UAAWxB,GAAiB,CACrCyB,EAAgB,CAAE,GAAGA,EAAe,CAACzB,CAAI,EAAGrB,IAASqB,CAAI,CAAE,CAC7D,CAAC,EACDhB,EAAa,EAAK,EAClBJ,EAAU6C,CAAa,CACzB,CACF,CACF,EAAG,CAAC/C,CAAQ,CAAC,EAGXxB,EAAC,OAAI,UAAU,oDAAoD,IAAKiC,EACrE,SAAAG,GAAU,KACTpC,EAAC,OAAI,UAAU,0DACZ,SAAAoC,GAAU,MAAM,MAAM,CAACU,EAAWF,IAE/B5C,EAAC,OAAgB,UAAU,+EACxB,SAAA2D,EAAab,CAAI,GADVF,CAEV,CAEH,EACH,EACE,KACN,CAEJ,CAAC,EAED3B,EAAM,YAAc,QAEpB,IAAOuD,GAAQhE,EAAWS,CAAK",
6
6
  "names": ["Fragment", "jsx", "jsxs", "DropDown", "useAiuiContext", "useMediaQuery", "useMemo", "useState", "useEffect", "withLayout", "formatVariantPrice", "Picture", "Text", "Button", "Heading", "React", "useImperativeHandle", "useRef", "Specs", "page", "ref", "data", "buildData", "onChange", "onSecondaryChange", "isMobile", "active", "setActive", "menuList", "setMenuList", "isShowMax", "setIsShowMax", "visibleActive", "setVisibleActive", "innerRef", "locale", "currencyDisplay", "LeftMenu", "RightMenu", "DefaultSelectMenu", "isImageUrl", "urlPath", "path", "skuNode", "product", "index", "findSku", "item", "coupon", "price", "basePrice", "buttonTextValue", "normalNode", "v", "productNode", "st", "idx", "isFirstParameter", "currentData", "currentMenus", "childrenNode", "node", "subTitle", "isProduct", "currentProduct", "skus", "currentActive", "sku", "findData", "currentMenu", "params", "newActive", "newShowActive", "Specs_default"]
7
7
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { SpecsComparisonProps } from './types.js';
3
- declare const _default: React.ForwardRefExoticComponent<Omit<Omit<SpecsComparisonProps & React.RefAttributes<HTMLDivElement>, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps> & {
4
- className?: string;
5
- data?: Record<string, any>;
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<SpecsComparisonProps & React.RefAttributes<HTMLDivElement> & {
4
+ style?: string | React.CSSProperties;
5
+ container?: import("../../shared/Styles.js").ContainerProps["container"];
6
6
  }, "ref"> & React.RefAttributes<any>>;
7
7
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { TabWithImageProps } from './types.js';
3
- declare const _default: React.ForwardRefExoticComponent<Omit<Omit<TabWithImageProps & React.RefAttributes<HTMLDivElement>, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps> & {
4
- className?: string;
5
- data?: Record<string, any>;
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<TabWithImageProps & React.RefAttributes<HTMLDivElement> & {
4
+ style?: string | React.CSSProperties;
5
+ container?: import("../../shared/Styles.js").ContainerProps["container"];
6
6
  }, "ref"> & React.RefAttributes<any>>;
7
7
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import type { TabsProps } from './types.js';
2
2
  import React from 'react';
3
- declare const _default: React.ForwardRefExoticComponent<Omit<Omit<TabsProps & React.RefAttributes<HTMLDivElement>, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps> & {
4
- className?: string;
5
- data?: Record<string, any>;
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<TabsProps & React.RefAttributes<HTMLDivElement> & {
4
+ style?: string | React.CSSProperties;
5
+ container?: import("../../shared/Styles.js").ContainerProps["container"];
6
6
  }, "ref"> & React.RefAttributes<any>>;
7
7
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import type { TabsGroupProps } from './types.js';
2
2
  import React from 'react';
3
- declare const _default: React.ForwardRefExoticComponent<Omit<Omit<TabsGroupProps & React.RefAttributes<HTMLDivElement>, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps> & {
4
- className?: string;
5
- data?: Record<string, any>;
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<TabsGroupProps & React.RefAttributes<HTMLDivElement> & {
4
+ style?: string | React.CSSProperties;
5
+ container?: import("../../shared/Styles.js").ContainerProps["container"];
6
6
  }, "ref"> & React.RefAttributes<any>>;
7
7
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { TabsWithMediaProps } from './types.js';
3
- declare const _default: React.ForwardRefExoticComponent<Omit<Omit<TabsWithMediaProps & React.RefAttributes<HTMLDivElement>, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps> & {
4
- className?: string;
5
- data?: Record<string, any>;
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<TabsWithMediaProps & React.RefAttributes<HTMLDivElement> & {
4
+ style?: string | React.CSSProperties;
5
+ container?: import("../../shared/Styles.js").ContainerProps["container"];
6
6
  }, "ref"> & React.RefAttributes<any>>;
7
7
  export default _default;