@anker-in/headless-ui 1.3.57 → 1.3.59

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 (297) hide show
  1. package/dist/cjs/biz-components/AccessoriesShelf/components/AccessoriesProductGrid/index.d.ts +11 -0
  2. package/dist/cjs/biz-components/AccessoriesShelf/components/AccessoriesProductGrid/index.js +2 -0
  3. package/dist/cjs/biz-components/AccessoriesShelf/components/AccessoriesProductGrid/index.js.map +7 -0
  4. package/dist/cjs/biz-components/AccessoriesShelf/components/AccessoryShelf/ProductCard.d.ts +23 -0
  5. package/dist/cjs/biz-components/AccessoriesShelf/components/AccessoryShelf/ProductCard.js +2 -0
  6. package/dist/cjs/biz-components/AccessoriesShelf/components/AccessoryShelf/ProductCard.js.map +7 -0
  7. package/dist/cjs/biz-components/AccessoriesShelf/components/AccessoryShelf/index.d.ts +40 -0
  8. package/dist/cjs/biz-components/AccessoriesShelf/components/AccessoryShelf/index.js +2 -0
  9. package/dist/cjs/biz-components/AccessoriesShelf/components/AccessoryShelf/index.js.map +7 -0
  10. package/dist/cjs/biz-components/AccessoriesShelf/components/AccessoryShelf/types.d.ts +107 -0
  11. package/dist/cjs/biz-components/AccessoriesShelf/components/AccessoryShelf/types.js +2 -0
  12. package/dist/cjs/biz-components/AccessoriesShelf/components/AccessoryShelf/types.js.map +7 -0
  13. package/dist/cjs/biz-components/AccessoriesShelf/components/AddToCartSuccessPopover/index.d.ts +82 -0
  14. package/dist/cjs/biz-components/AccessoriesShelf/components/AddToCartSuccessPopover/index.js +2 -0
  15. package/dist/cjs/biz-components/AccessoriesShelf/components/AddToCartSuccessPopover/index.js.map +7 -0
  16. package/dist/cjs/biz-components/AccessoriesShelf/components/MainProductArea/index.d.ts +22 -0
  17. package/dist/cjs/biz-components/AccessoriesShelf/components/MainProductArea/index.js +2 -0
  18. package/dist/cjs/biz-components/AccessoriesShelf/components/MainProductArea/index.js.map +7 -0
  19. package/dist/cjs/biz-components/AccessoriesShelf/components/PromoBanner/index.d.ts +10 -0
  20. package/dist/cjs/biz-components/AccessoriesShelf/components/PromoBanner/index.js +2 -0
  21. package/dist/cjs/biz-components/AccessoriesShelf/components/PromoBanner/index.js.map +7 -0
  22. package/dist/cjs/biz-components/AccessoriesShelf/components/SectionHeader/index.d.ts +9 -0
  23. package/dist/cjs/biz-components/AccessoriesShelf/components/SectionHeader/index.js +2 -0
  24. package/dist/cjs/biz-components/AccessoriesShelf/components/SectionHeader/index.js.map +7 -0
  25. package/dist/cjs/biz-components/AccessoriesShelf/index.d.ts +9 -0
  26. package/dist/cjs/biz-components/AccessoriesShelf/index.js +2 -0
  27. package/dist/cjs/biz-components/AccessoriesShelf/index.js.map +7 -0
  28. package/dist/cjs/biz-components/AccessoriesShelf/types.d.ts +16 -0
  29. package/dist/cjs/biz-components/AccessoriesShelf/types.js +2 -0
  30. package/dist/cjs/biz-components/AccessoriesShelf/types.js.map +7 -0
  31. package/dist/cjs/biz-components/CartDetail/CartGiftSection/CartGiftSection.d.ts +15 -0
  32. package/dist/cjs/biz-components/CartDetail/CartGiftSection/CartGiftSection.js +2 -0
  33. package/dist/cjs/biz-components/CartDetail/CartGiftSection/CartGiftSection.js.map +7 -0
  34. package/dist/cjs/biz-components/CartDetail/CartGiftSection/components/GiftConfirmDialog/GiftConfirmDialog.d.ts +11 -0
  35. package/dist/cjs/biz-components/CartDetail/CartGiftSection/components/GiftConfirmDialog/GiftConfirmDialog.js +2 -0
  36. package/dist/cjs/biz-components/CartDetail/CartGiftSection/components/GiftConfirmDialog/GiftConfirmDialog.js.map +7 -0
  37. package/dist/cjs/biz-components/CartDetail/CartGiftSection/components/GiftConfirmDialog/index.d.ts +2 -0
  38. package/dist/cjs/biz-components/CartDetail/CartGiftSection/components/GiftConfirmDialog/index.js +2 -0
  39. package/dist/cjs/biz-components/CartDetail/CartGiftSection/components/GiftConfirmDialog/index.js.map +7 -0
  40. package/dist/cjs/biz-components/CartDetail/CartGiftSection/components/GiftOptionRow/GiftOptionRow.d.ts +14 -0
  41. package/dist/cjs/biz-components/CartDetail/CartGiftSection/components/GiftOptionRow/GiftOptionRow.js +2 -0
  42. package/dist/cjs/biz-components/CartDetail/CartGiftSection/components/GiftOptionRow/GiftOptionRow.js.map +7 -0
  43. package/dist/cjs/biz-components/CartDetail/CartGiftSection/components/GiftOptionRow/index.d.ts +2 -0
  44. package/dist/cjs/biz-components/CartDetail/CartGiftSection/components/GiftOptionRow/index.js +2 -0
  45. package/dist/cjs/biz-components/CartDetail/CartGiftSection/components/GiftOptionRow/index.js.map +7 -0
  46. package/dist/cjs/biz-components/CartDetail/CartGiftSection/index.d.ts +2 -0
  47. package/dist/cjs/biz-components/CartDetail/CartGiftSection/index.js +2 -0
  48. package/dist/cjs/biz-components/CartDetail/CartGiftSection/index.js.map +7 -0
  49. package/dist/cjs/biz-components/CartDetail/CartItemRow/CartItemRow.d.ts +56 -0
  50. package/dist/cjs/biz-components/CartDetail/CartItemRow/CartItemRow.js +2 -0
  51. package/dist/cjs/biz-components/CartDetail/CartItemRow/CartItemRow.js.map +7 -0
  52. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemGiftShipping/CartItemGiftShipping.d.ts +4 -0
  53. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemGiftShipping/CartItemGiftShipping.js +2 -0
  54. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemGiftShipping/CartItemGiftShipping.js.map +7 -0
  55. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemGiftShipping/index.d.ts +2 -0
  56. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemGiftShipping/index.js +2 -0
  57. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemGiftShipping/index.js.map +7 -0
  58. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemGiftShipping/types.d.ts +10 -0
  59. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemGiftShipping/types.js +2 -0
  60. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemGiftShipping/types.js.map +7 -0
  61. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemInfo/CartItemInfo.d.ts +11 -0
  62. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemInfo/CartItemInfo.js +2 -0
  63. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemInfo/CartItemInfo.js.map +7 -0
  64. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemInfo/index.d.ts +2 -0
  65. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemInfo/index.js +2 -0
  66. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemInfo/index.js.map +7 -0
  67. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemKsp/CartItemKsp.d.ts +13 -0
  68. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemKsp/CartItemKsp.js +2 -0
  69. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemKsp/CartItemKsp.js.map +7 -0
  70. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemKsp/index.d.ts +2 -0
  71. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemKsp/index.js +2 -0
  72. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemKsp/index.js.map +7 -0
  73. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/CartItemRemoveConfirm.d.ts +4 -0
  74. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/CartItemRemoveConfirm.js +2 -0
  75. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/CartItemRemoveConfirm.js.map +7 -0
  76. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/index.d.ts +2 -0
  77. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/index.js +2 -0
  78. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/index.js.map +7 -0
  79. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/types.d.ts +11 -0
  80. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/types.js +2 -0
  81. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/types.js.map +7 -0
  82. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemShipping/CartItemShipping.d.ts +8 -0
  83. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemShipping/CartItemShipping.js +2 -0
  84. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemShipping/CartItemShipping.js.map +7 -0
  85. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemShipping/index.d.ts +2 -0
  86. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemShipping/index.js +2 -0
  87. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemShipping/index.js.map +7 -0
  88. package/dist/cjs/biz-components/CartDetail/CartItemRow/index.d.ts +2 -0
  89. package/dist/cjs/biz-components/CartDetail/CartItemRow/index.js +2 -0
  90. package/dist/cjs/biz-components/CartDetail/CartItemRow/index.js.map +7 -0
  91. package/dist/cjs/biz-components/CartDetail/CartPerksSection/CartPerksSection.d.ts +34 -0
  92. package/dist/cjs/biz-components/CartDetail/CartPerksSection/CartPerksSection.js +2 -0
  93. package/dist/cjs/biz-components/CartDetail/CartPerksSection/CartPerksSection.js.map +7 -0
  94. package/dist/cjs/biz-components/CartDetail/CartPerksSection/index.d.ts +2 -0
  95. package/dist/cjs/biz-components/CartDetail/CartPerksSection/index.js +2 -0
  96. package/dist/cjs/biz-components/CartDetail/CartPerksSection/index.js.map +7 -0
  97. package/dist/cjs/biz-components/CartDetail/CartPriceSummary/CartPriceSummary.d.ts +51 -0
  98. package/dist/cjs/biz-components/CartDetail/CartPriceSummary/CartPriceSummary.js +2 -0
  99. package/dist/cjs/biz-components/CartDetail/CartPriceSummary/CartPriceSummary.js.map +7 -0
  100. package/dist/cjs/biz-components/CartDetail/CartPriceSummary/index.d.ts +2 -0
  101. package/dist/cjs/biz-components/CartDetail/CartPriceSummary/index.js +2 -0
  102. package/dist/cjs/biz-components/CartDetail/CartPriceSummary/index.js.map +7 -0
  103. package/dist/cjs/biz-components/CartDetail/CartSummaryHeader/CartSummaryHeader.d.ts +26 -0
  104. package/dist/cjs/biz-components/CartDetail/CartSummaryHeader/CartSummaryHeader.js +2 -0
  105. package/dist/cjs/biz-components/CartDetail/CartSummaryHeader/CartSummaryHeader.js.map +7 -0
  106. package/dist/cjs/biz-components/CartDetail/CartSummaryHeader/index.d.ts +2 -0
  107. package/dist/cjs/biz-components/CartDetail/CartSummaryHeader/index.js +2 -0
  108. package/dist/cjs/biz-components/CartDetail/CartSummaryHeader/index.js.map +7 -0
  109. package/dist/cjs/biz-components/CartDetail/CartThirdParty/CartThirdParty.d.ts +10 -0
  110. package/dist/cjs/biz-components/CartDetail/CartThirdParty/CartThirdParty.js +2 -0
  111. package/dist/cjs/biz-components/CartDetail/CartThirdParty/CartThirdParty.js.map +7 -0
  112. package/dist/cjs/biz-components/CartDetail/CartThirdParty/index.d.ts +2 -0
  113. package/dist/cjs/biz-components/CartDetail/CartThirdParty/index.js +2 -0
  114. package/dist/cjs/biz-components/CartDetail/CartThirdParty/index.js.map +7 -0
  115. package/dist/cjs/biz-components/CartDetail/index.d.ts +16 -0
  116. package/dist/cjs/biz-components/CartDetail/index.js +2 -0
  117. package/dist/cjs/biz-components/CartDetail/index.js.map +7 -0
  118. package/dist/cjs/biz-components/CartDetail/types.d.ts +132 -0
  119. package/dist/cjs/biz-components/CartDetail/types.js +2 -0
  120. package/dist/cjs/biz-components/CartDetail/types.js.map +7 -0
  121. package/dist/cjs/biz-components/HeaderNavigation/index.js +1 -1
  122. package/dist/cjs/biz-components/HeaderNavigation/index.js.map +2 -2
  123. package/dist/cjs/biz-components/ShelfDisplay/shelfDisplayItem.js +1 -1
  124. package/dist/cjs/biz-components/ShelfDisplay/shelfDisplayItem.js.map +2 -2
  125. package/dist/cjs/biz-components/index.d.ts +6 -0
  126. package/dist/cjs/biz-components/index.js +1 -1
  127. package/dist/cjs/biz-components/index.js.map +3 -3
  128. package/dist/cjs/components/breadcrumb.d.ts +12 -0
  129. package/dist/cjs/components/breadcrumb.js +2 -0
  130. package/dist/cjs/components/breadcrumb.js.map +7 -0
  131. package/dist/cjs/components/button.js +1 -1
  132. package/dist/cjs/components/button.js.map +2 -2
  133. package/dist/cjs/components/index.d.ts +3 -1
  134. package/dist/cjs/components/index.js +1 -1
  135. package/dist/cjs/components/index.js.map +3 -3
  136. package/dist/cjs/components/input-number.d.ts +22 -0
  137. package/dist/cjs/components/input-number.js +1 -1
  138. package/dist/cjs/components/input-number.js.map +3 -3
  139. package/dist/cjs/components/input.d.ts +5 -0
  140. package/dist/cjs/components/input.js +1 -1
  141. package/dist/cjs/components/input.js.map +3 -3
  142. package/dist/cjs/components/popover.d.ts +17 -2
  143. package/dist/cjs/components/popover.js +1 -1
  144. package/dist/cjs/components/popover.js.map +3 -3
  145. package/dist/cjs/components/toast.d.ts +25 -0
  146. package/dist/cjs/components/toast.js +2 -0
  147. package/dist/cjs/components/toast.js.map +7 -0
  148. package/dist/esm/biz-components/AccessoriesShelf/components/AccessoriesProductGrid/index.d.ts +11 -0
  149. package/dist/esm/biz-components/AccessoriesShelf/components/AccessoriesProductGrid/index.js +2 -0
  150. package/dist/esm/biz-components/AccessoriesShelf/components/AccessoriesProductGrid/index.js.map +7 -0
  151. package/dist/esm/biz-components/AccessoriesShelf/components/AccessoryShelf/ProductCard.d.ts +23 -0
  152. package/dist/esm/biz-components/AccessoriesShelf/components/AccessoryShelf/ProductCard.js +2 -0
  153. package/dist/esm/biz-components/AccessoriesShelf/components/AccessoryShelf/ProductCard.js.map +7 -0
  154. package/dist/esm/biz-components/AccessoriesShelf/components/AccessoryShelf/index.d.ts +40 -0
  155. package/dist/esm/biz-components/AccessoriesShelf/components/AccessoryShelf/index.js +2 -0
  156. package/dist/esm/biz-components/AccessoriesShelf/components/AccessoryShelf/index.js.map +7 -0
  157. package/dist/esm/biz-components/AccessoriesShelf/components/AccessoryShelf/types.d.ts +107 -0
  158. package/dist/esm/biz-components/AccessoriesShelf/components/AccessoryShelf/types.js +1 -0
  159. package/dist/esm/biz-components/AccessoriesShelf/components/AccessoryShelf/types.js.map +7 -0
  160. package/dist/esm/biz-components/AccessoriesShelf/components/AddToCartSuccessPopover/index.d.ts +82 -0
  161. package/dist/esm/biz-components/AccessoriesShelf/components/AddToCartSuccessPopover/index.js +2 -0
  162. package/dist/esm/biz-components/AccessoriesShelf/components/AddToCartSuccessPopover/index.js.map +7 -0
  163. package/dist/esm/biz-components/AccessoriesShelf/components/MainProductArea/index.d.ts +22 -0
  164. package/dist/esm/biz-components/AccessoriesShelf/components/MainProductArea/index.js +2 -0
  165. package/dist/esm/biz-components/AccessoriesShelf/components/MainProductArea/index.js.map +7 -0
  166. package/dist/esm/biz-components/AccessoriesShelf/components/PromoBanner/index.d.ts +10 -0
  167. package/dist/esm/biz-components/AccessoriesShelf/components/PromoBanner/index.js +2 -0
  168. package/dist/esm/biz-components/AccessoriesShelf/components/PromoBanner/index.js.map +7 -0
  169. package/dist/esm/biz-components/AccessoriesShelf/components/SectionHeader/index.d.ts +9 -0
  170. package/dist/esm/biz-components/AccessoriesShelf/components/SectionHeader/index.js +2 -0
  171. package/dist/esm/biz-components/AccessoriesShelf/components/SectionHeader/index.js.map +7 -0
  172. package/dist/esm/biz-components/AccessoriesShelf/index.d.ts +9 -0
  173. package/dist/esm/biz-components/AccessoriesShelf/index.js +2 -0
  174. package/dist/esm/biz-components/AccessoriesShelf/index.js.map +7 -0
  175. package/dist/esm/biz-components/AccessoriesShelf/types.d.ts +16 -0
  176. package/dist/esm/biz-components/AccessoriesShelf/types.js +1 -0
  177. package/dist/esm/biz-components/AccessoriesShelf/types.js.map +7 -0
  178. package/dist/esm/biz-components/CartDetail/CartGiftSection/CartGiftSection.d.ts +15 -0
  179. package/dist/esm/biz-components/CartDetail/CartGiftSection/CartGiftSection.js +2 -0
  180. package/dist/esm/biz-components/CartDetail/CartGiftSection/CartGiftSection.js.map +7 -0
  181. package/dist/esm/biz-components/CartDetail/CartGiftSection/components/GiftConfirmDialog/GiftConfirmDialog.d.ts +11 -0
  182. package/dist/esm/biz-components/CartDetail/CartGiftSection/components/GiftConfirmDialog/GiftConfirmDialog.js +2 -0
  183. package/dist/esm/biz-components/CartDetail/CartGiftSection/components/GiftConfirmDialog/GiftConfirmDialog.js.map +7 -0
  184. package/dist/esm/biz-components/CartDetail/CartGiftSection/components/GiftConfirmDialog/index.d.ts +2 -0
  185. package/dist/esm/biz-components/CartDetail/CartGiftSection/components/GiftConfirmDialog/index.js +2 -0
  186. package/dist/esm/biz-components/CartDetail/CartGiftSection/components/GiftConfirmDialog/index.js.map +7 -0
  187. package/dist/esm/biz-components/CartDetail/CartGiftSection/components/GiftOptionRow/GiftOptionRow.d.ts +14 -0
  188. package/dist/esm/biz-components/CartDetail/CartGiftSection/components/GiftOptionRow/GiftOptionRow.js +2 -0
  189. package/dist/esm/biz-components/CartDetail/CartGiftSection/components/GiftOptionRow/GiftOptionRow.js.map +7 -0
  190. package/dist/esm/biz-components/CartDetail/CartGiftSection/components/GiftOptionRow/index.d.ts +2 -0
  191. package/dist/esm/biz-components/CartDetail/CartGiftSection/components/GiftOptionRow/index.js +2 -0
  192. package/dist/esm/biz-components/CartDetail/CartGiftSection/components/GiftOptionRow/index.js.map +7 -0
  193. package/dist/esm/biz-components/CartDetail/CartGiftSection/index.d.ts +2 -0
  194. package/dist/esm/biz-components/CartDetail/CartGiftSection/index.js +2 -0
  195. package/dist/esm/biz-components/CartDetail/CartGiftSection/index.js.map +7 -0
  196. package/dist/esm/biz-components/CartDetail/CartItemRow/CartItemRow.d.ts +56 -0
  197. package/dist/esm/biz-components/CartDetail/CartItemRow/CartItemRow.js +2 -0
  198. package/dist/esm/biz-components/CartDetail/CartItemRow/CartItemRow.js.map +7 -0
  199. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemGiftShipping/CartItemGiftShipping.d.ts +4 -0
  200. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemGiftShipping/CartItemGiftShipping.js +2 -0
  201. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemGiftShipping/CartItemGiftShipping.js.map +7 -0
  202. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemGiftShipping/index.d.ts +2 -0
  203. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemGiftShipping/index.js +2 -0
  204. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemGiftShipping/index.js.map +7 -0
  205. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemGiftShipping/types.d.ts +10 -0
  206. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemGiftShipping/types.js +1 -0
  207. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemGiftShipping/types.js.map +7 -0
  208. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemInfo/CartItemInfo.d.ts +11 -0
  209. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemInfo/CartItemInfo.js +2 -0
  210. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemInfo/CartItemInfo.js.map +7 -0
  211. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemInfo/index.d.ts +2 -0
  212. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemInfo/index.js +2 -0
  213. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemInfo/index.js.map +7 -0
  214. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemKsp/CartItemKsp.d.ts +13 -0
  215. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemKsp/CartItemKsp.js +2 -0
  216. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemKsp/CartItemKsp.js.map +7 -0
  217. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemKsp/index.d.ts +2 -0
  218. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemKsp/index.js +2 -0
  219. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemKsp/index.js.map +7 -0
  220. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/CartItemRemoveConfirm.d.ts +4 -0
  221. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/CartItemRemoveConfirm.js +2 -0
  222. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/CartItemRemoveConfirm.js.map +7 -0
  223. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/index.d.ts +2 -0
  224. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/index.js +2 -0
  225. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/index.js.map +7 -0
  226. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/types.d.ts +11 -0
  227. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/types.js +1 -0
  228. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/types.js.map +7 -0
  229. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemShipping/CartItemShipping.d.ts +8 -0
  230. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemShipping/CartItemShipping.js +2 -0
  231. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemShipping/CartItemShipping.js.map +7 -0
  232. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemShipping/index.d.ts +2 -0
  233. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemShipping/index.js +2 -0
  234. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemShipping/index.js.map +7 -0
  235. package/dist/esm/biz-components/CartDetail/CartItemRow/index.d.ts +2 -0
  236. package/dist/esm/biz-components/CartDetail/CartItemRow/index.js +2 -0
  237. package/dist/esm/biz-components/CartDetail/CartItemRow/index.js.map +7 -0
  238. package/dist/esm/biz-components/CartDetail/CartPerksSection/CartPerksSection.d.ts +34 -0
  239. package/dist/esm/biz-components/CartDetail/CartPerksSection/CartPerksSection.js +2 -0
  240. package/dist/esm/biz-components/CartDetail/CartPerksSection/CartPerksSection.js.map +7 -0
  241. package/dist/esm/biz-components/CartDetail/CartPerksSection/index.d.ts +2 -0
  242. package/dist/esm/biz-components/CartDetail/CartPerksSection/index.js +2 -0
  243. package/dist/esm/biz-components/CartDetail/CartPerksSection/index.js.map +7 -0
  244. package/dist/esm/biz-components/CartDetail/CartPriceSummary/CartPriceSummary.d.ts +51 -0
  245. package/dist/esm/biz-components/CartDetail/CartPriceSummary/CartPriceSummary.js +2 -0
  246. package/dist/esm/biz-components/CartDetail/CartPriceSummary/CartPriceSummary.js.map +7 -0
  247. package/dist/esm/biz-components/CartDetail/CartPriceSummary/index.d.ts +2 -0
  248. package/dist/esm/biz-components/CartDetail/CartPriceSummary/index.js +2 -0
  249. package/dist/esm/biz-components/CartDetail/CartPriceSummary/index.js.map +7 -0
  250. package/dist/esm/biz-components/CartDetail/CartSummaryHeader/CartSummaryHeader.d.ts +26 -0
  251. package/dist/esm/biz-components/CartDetail/CartSummaryHeader/CartSummaryHeader.js +2 -0
  252. package/dist/esm/biz-components/CartDetail/CartSummaryHeader/CartSummaryHeader.js.map +7 -0
  253. package/dist/esm/biz-components/CartDetail/CartSummaryHeader/index.d.ts +2 -0
  254. package/dist/esm/biz-components/CartDetail/CartSummaryHeader/index.js +2 -0
  255. package/dist/esm/biz-components/CartDetail/CartSummaryHeader/index.js.map +7 -0
  256. package/dist/esm/biz-components/CartDetail/CartThirdParty/CartThirdParty.d.ts +10 -0
  257. package/dist/esm/biz-components/CartDetail/CartThirdParty/CartThirdParty.js +2 -0
  258. package/dist/esm/biz-components/CartDetail/CartThirdParty/CartThirdParty.js.map +7 -0
  259. package/dist/esm/biz-components/CartDetail/CartThirdParty/index.d.ts +2 -0
  260. package/dist/esm/biz-components/CartDetail/CartThirdParty/index.js +2 -0
  261. package/dist/esm/biz-components/CartDetail/CartThirdParty/index.js.map +7 -0
  262. package/dist/esm/biz-components/CartDetail/index.d.ts +16 -0
  263. package/dist/esm/biz-components/CartDetail/index.js +2 -0
  264. package/dist/esm/biz-components/CartDetail/index.js.map +7 -0
  265. package/dist/esm/biz-components/CartDetail/types.d.ts +132 -0
  266. package/dist/esm/biz-components/CartDetail/types.js +1 -0
  267. package/dist/esm/biz-components/CartDetail/types.js.map +7 -0
  268. package/dist/esm/biz-components/HeaderNavigation/index.js +1 -1
  269. package/dist/esm/biz-components/HeaderNavigation/index.js.map +2 -2
  270. package/dist/esm/biz-components/ShelfDisplay/shelfDisplayItem.js +1 -1
  271. package/dist/esm/biz-components/ShelfDisplay/shelfDisplayItem.js.map +2 -2
  272. package/dist/esm/biz-components/index.d.ts +6 -0
  273. package/dist/esm/biz-components/index.js +1 -1
  274. package/dist/esm/biz-components/index.js.map +3 -3
  275. package/dist/esm/components/breadcrumb.d.ts +12 -0
  276. package/dist/esm/components/breadcrumb.js +2 -0
  277. package/dist/esm/components/breadcrumb.js.map +7 -0
  278. package/dist/esm/components/button.js +1 -1
  279. package/dist/esm/components/button.js.map +2 -2
  280. package/dist/esm/components/index.d.ts +3 -1
  281. package/dist/esm/components/index.js +1 -1
  282. package/dist/esm/components/index.js.map +3 -3
  283. package/dist/esm/components/input-number.d.ts +22 -0
  284. package/dist/esm/components/input-number.js +1 -1
  285. package/dist/esm/components/input-number.js.map +3 -3
  286. package/dist/esm/components/input.d.ts +5 -0
  287. package/dist/esm/components/input.js +1 -1
  288. package/dist/esm/components/input.js.map +3 -3
  289. package/dist/esm/components/popover.d.ts +17 -2
  290. package/dist/esm/components/popover.js +1 -1
  291. package/dist/esm/components/popover.js.map +3 -3
  292. package/dist/esm/components/toast.d.ts +25 -0
  293. package/dist/esm/components/toast.js +2 -0
  294. package/dist/esm/components/toast.js.map +7 -0
  295. package/dist/tokens/base.css +4 -0
  296. package/package.json +1 -1
  297. package/style.css +270 -3
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../../src/biz-components/CartDetail/CartGiftSection/components/GiftConfirmDialog/GiftConfirmDialog.tsx"],
4
+ "sourcesContent": ["'use client'\n\nimport * as React from 'react'\nimport { cn } from '../../../../../helpers/index.js'\nimport type { GiftConfirmDialogCopy } from '../../../types.js'\nimport { DEFAULT_CART_COPY } from '../../../index.js'\n\nexport interface GiftConfirmDialogProps {\n open: boolean\n message: string\n copy?: GiftConfirmDialogCopy\n onConfirm?: () => void\n onCancel?: () => void\n}\n\nconst GiftConfirmDialog = React.forwardRef<HTMLDivElement, GiftConfirmDialogProps>(\n ({ open, message, copy, onConfirm, onCancel }, ref) => {\n const resolvedConfirm = copy?.confirm ?? DEFAULT_CART_COPY.confirm\n const resolvedCancel = copy?.cancel ?? DEFAULT_CART_COPY.cancel\n const resolvedAriaLabel = copy?.ariaLabel ?? DEFAULT_CART_COPY.ariaLabel\n if (!open) {\n return null\n }\n\n const handleOverlayClick = (e: React.MouseEvent) => {\n if (e.target === e.currentTarget) {\n onCancel?.()\n }\n }\n\n const handleOverlayKeyDown = (e: React.KeyboardEvent) => {\n if (e.key === 'Escape') {\n onCancel?.()\n }\n }\n\n return (\n <div\n ref={ref}\n className=\"fixed inset-0 z-[100] flex items-center justify-center bg-black/40\"\n onClick={handleOverlayClick}\n onKeyDown={handleOverlayKeyDown}\n role=\"dialog\"\n aria-modal=\"true\"\n aria-label={resolvedAriaLabel}\n >\n <div className=\"rounded-card bg-container-primary mx-auto w-full max-w-sm p-6 shadow-lg\">\n <p className=\"text-info-primary laptop:text-base text-sm leading-relaxed\">{message}</p>\n <div className=\"mt-5 flex items-center justify-end gap-3\">\n <button\n type=\"button\"\n onClick={onCancel}\n className={cn(\n 'rounded-btn border-lines-primary text-info-secondary laptop:text-base border bg-transparent px-4 py-2 text-sm font-medium transition-colors',\n 'hover:bg-container-secondary'\n )}\n >\n {resolvedCancel}\n </button>\n <button\n type=\"button\"\n onClick={onConfirm}\n className={cn(\n 'rounded-btn bg-btn-primary text-btn-primary-foreground laptop:text-base px-4 py-2 text-sm font-medium transition-colors',\n 'hover:opacity-80'\n )}\n >\n {resolvedConfirm}\n </button>\n </div>\n </div>\n </div>\n )\n }\n)\n\nGiftConfirmDialog.displayName = 'GiftConfirmDialog'\n\nexport default GiftConfirmDialog\n"],
5
+ "mappings": "aA+CU,cAAAA,EACA,QAAAC,MADA,oBA7CV,UAAYC,MAAW,QACvB,OAAS,MAAAC,MAAU,kCAEnB,OAAS,qBAAAC,MAAyB,oBAUlC,MAAMC,EAAoBH,EAAM,WAC9B,CAAC,CAAE,KAAAI,EAAM,QAAAC,EAAS,KAAAC,EAAM,UAAAC,EAAW,SAAAC,CAAS,EAAGC,IAAQ,CACrD,MAAMC,EAAkBJ,GAAM,SAAWJ,EAAkB,QACrDS,EAAiBL,GAAM,QAAUJ,EAAkB,OACnDU,EAAoBN,GAAM,WAAaJ,EAAkB,UAC/D,OAAKE,EAiBHN,EAAC,OACC,IAAKW,EACL,UAAU,qEACV,QAhBwB,GAAwB,CAC9C,EAAE,SAAW,EAAE,eACjBD,IAAW,CAEf,EAaI,UAX0B,GAA2B,CACnD,EAAE,MAAQ,UACZA,IAAW,CAEf,EAQI,KAAK,SACL,aAAW,OACX,aAAYI,EAEZ,SAAAb,EAAC,OAAI,UAAU,0EACb,UAAAD,EAAC,KAAE,UAAU,6DAA8D,SAAAO,EAAQ,EACnFN,EAAC,OAAI,UAAU,2CACb,UAAAD,EAAC,UACC,KAAK,SACL,QAASU,EACT,UAAWP,EACT,8IACA,8BACF,EAEC,SAAAU,EACH,EACAb,EAAC,UACC,KAAK,SACL,QAASS,EACT,UAAWN,EACT,0HACA,kBACF,EAEC,SAAAS,EACH,GACF,GACF,EACF,EAlDO,IAoDX,CACF,EAEAP,EAAkB,YAAc,oBAEhC,IAAOU,EAAQV",
6
+ "names": ["jsx", "jsxs", "React", "cn", "DEFAULT_CART_COPY", "GiftConfirmDialog", "open", "message", "copy", "onConfirm", "onCancel", "ref", "resolvedConfirm", "resolvedCancel", "resolvedAriaLabel", "GiftConfirmDialog_default"]
7
+ }
@@ -0,0 +1,2 @@
1
+ export { default } from './GiftConfirmDialog.js';
2
+ export type { GiftConfirmDialogProps } from './GiftConfirmDialog.js';
@@ -0,0 +1,2 @@
1
+ import{default as r}from"./GiftConfirmDialog.js";export{r as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../../src/biz-components/CartDetail/CartGiftSection/components/GiftConfirmDialog/index.ts"],
4
+ "sourcesContent": ["export { default } from './GiftConfirmDialog.js'\nexport type { GiftConfirmDialogProps } from './GiftConfirmDialog.js'\n"],
5
+ "mappings": "AAAA,OAAS,WAAAA,MAAe",
6
+ "names": ["default"]
7
+ }
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ import type { GiftOption, GiftOptionRowCopy } from '../../../types.js';
3
+ export interface GiftOptionRowProps {
4
+ option: GiftOption;
5
+ selected: boolean;
6
+ mode: 'radio' | 'checkbox';
7
+ onCheckedChange?: (checked: boolean) => void;
8
+ onNavigate?: (type: 'image' | 'title', source: 'main' | 'gift') => void;
9
+ copy?: GiftOptionRowCopy;
10
+ className?: string;
11
+ classNames?: Partial<Record<'root' | 'control' | 'image' | 'name' | 'variant' | 'quantity' | 'priceWrap' | 'freeText' | 'originalPrice' | 'giftBadge', string>>;
12
+ }
13
+ declare const GiftOptionRow: React.ForwardRefExoticComponent<GiftOptionRowProps & React.RefAttributes<HTMLLabelElement>>;
14
+ export default GiftOptionRow;
@@ -0,0 +1,2 @@
1
+ "use client";import{jsx as a,jsxs as o}from"react/jsx-runtime";import*as b from"react";import{cn as i}from"../../../../../helpers/index.js";import{DEFAULT_CART_COPY as n}from"../../../index.js";import{Picture as w,Checkbox as y}from"../../../../../components/index.js";import{LocalizedLink as v}from"../../../../../shared/LocalizedLink.js";const f=b.forwardRef(({option:e,selected:l,mode:d,onCheckedChange:c,onNavigate:s,copy:r,className:g,classNames:t={},...m},x)=>{const p=e.disabled===!0;return o("label",{ref:x,className:i("gift-option-row-root bg-container-secondary laptop:flex-row laptop:items-center laptop:gap-4 laptop:pb-4 laptop:pt-5 rounded-box-small relative flex items-center gap-2 p-4 transition-opacity",p&&"pointer-events-none opacity-50",!p&&"cursor-pointer",g,t.root),...m,children:[a("span",{className:i("gift-option-row-badge rounded-br-box-small rounded-tl-box-small laptop:px-2 laptop:pb-1 laptop:pt-[5px] laptop:text-base bg-brand-0 absolute left-0 top-0 px-[6px] pb-1 pt-[3px] text-sm font-bold leading-[1.2] text-white",t.giftBadge),children:r?.badge??n.badge}),a(y,{checked:l,onCheckedChange:c,disabled:p,size:"lg",className:i("gift-option-row-control laptop:size-5 data-[state=checked]:border-info-primary data-[state=checked]:bg-info-primary laptop:mt-0 mt-1 size-4 shrink-0",t.control,d==="radio"&&"rounded-full",!l&&"border-lines-primary bg-transparent")}),a("div",{className:i("gift-option-row-image shrink-0",t.image),children:a(v,{href:e.listingHref,className:"block",onClick:()=>s?.("image","gift"),children:a(w,{source:e.image.src,alt:e.image.alt??e.name,className:"size-16 object-cover",loading:"lazy"})})}),o("div",{className:"laptop:flex-row laptop:items-center laptop:gap-4 flex min-w-0 flex-1 flex-col gap-2",children:[o("div",{className:"laptop:flex-[2] flex min-w-0 flex-col gap-1",children:[a("span",{className:i("gift-option-row-name text-info-primary laptop:text-base line-clamp-2 text-sm font-bold leading-[1.4]",e.listingHref&&"cursor-pointer hover:underline",t.name),onClick:()=>s?.("title","gift"),children:e.name}),e.variantText&&a("span",{className:i("gift-option-row-variant text-info-tertiary laptop:text-base text-sm font-bold leading-[1.4]",t.variant),children:e.variantText})]}),o("div",{className:"laptop:shrink-0 laptop:justify-start flex items-center justify-between",children:[o("span",{className:i("gift-option-row-quantity text-info-primary laptop:text-base text-sm font-bold leading-[1.4]",t.quantity),children:["x",e.displayQuantity]}),o("div",{className:i("gift-option-row-price-wrap laptop:hidden flex items-end gap-1",t.priceWrap),children:[a("span",{className:i("gift-option-row-free text-info-primary text-sm font-bold leading-[1.4]",t.freeText),children:r?.free??n.free}),e.originalPriceText&&a("span",{className:i("gift-option-row-original-price text-info-tertiary text-sm font-bold leading-[1.4] line-through",t.originalPrice),children:e.originalPriceText})]})]}),a("div",{className:i("gift-option-row-price-wrap laptop:flex-1 laptop:flex laptop:shrink-0 laptop:flex-col laptop:items-end laptop:gap-1 hidden",t.priceWrap),children:o("div",{className:"flex items-center justify-end gap-1",children:[a("span",{className:i("gift-option-row-free text-info-primary laptop:text-base text-sm font-bold leading-[1.4]",t.freeText),children:r?.free??n.free}),e.originalPriceText&&a("span",{className:i("gift-option-row-original-price text-info-tertiary laptop:text-base text-sm font-bold leading-[1.4] line-through",t.originalPrice),children:e.originalPriceText})]})})]})]})});f.displayName="GiftOptionRow";var T=f;export{T as default};
2
+ //# sourceMappingURL=GiftOptionRow.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../../src/biz-components/CartDetail/CartGiftSection/components/GiftOptionRow/GiftOptionRow.tsx"],
4
+ "sourcesContent": ["'use client'\n\nimport * as React from 'react'\nimport { cn } from '../../../../../helpers/index.js'\nimport type { GiftOption, GiftOptionRowCopy } from '../../../types.js'\nimport { DEFAULT_CART_COPY } from '../../../index.js'\nimport { Picture, Checkbox } from '../../../../../components/index.js'\nimport { LocalizedLink } from '../../../../../shared/LocalizedLink.js'\n\nexport interface GiftOptionRowProps {\n option: GiftOption\n selected: boolean\n mode: 'radio' | 'checkbox'\n onCheckedChange?: (checked: boolean) => void\n onNavigate?: (type: 'image' | 'title', source: 'main' | 'gift') => void\n copy?: GiftOptionRowCopy\n className?: string\n classNames?: Partial<\n Record<\n | 'root'\n | 'control'\n | 'image'\n | 'name'\n | 'variant'\n | 'quantity'\n | 'priceWrap'\n | 'freeText'\n | 'originalPrice'\n | 'giftBadge',\n string\n >\n >\n}\n\nconst GiftOptionRow = React.forwardRef<HTMLLabelElement, GiftOptionRowProps>(\n ({ option, selected, mode, onCheckedChange, onNavigate, copy, className, classNames = {}, ...props }, ref) => {\n const isDisabled = option.disabled === true\n\n return (\n <label\n ref={ref}\n className={cn(\n 'gift-option-row-root bg-container-secondary laptop:flex-row laptop:items-center laptop:gap-4 laptop:pb-4 laptop:pt-5 rounded-box-small relative flex items-center gap-2 p-4 transition-opacity',\n isDisabled && 'pointer-events-none opacity-50',\n !isDisabled && 'cursor-pointer',\n className,\n classNames.root\n )}\n {...props}\n >\n <span\n className={cn(\n 'gift-option-row-badge rounded-br-box-small rounded-tl-box-small laptop:px-2 laptop:pb-1 laptop:pt-[5px] laptop:text-base bg-brand-0 absolute left-0 top-0 px-[6px] pb-1 pt-[3px] text-sm font-bold leading-[1.2] text-white',\n classNames.giftBadge\n )}\n >\n {copy?.badge ?? DEFAULT_CART_COPY.badge}\n </span>\n\n <Checkbox\n checked={selected}\n onCheckedChange={onCheckedChange}\n disabled={isDisabled}\n size=\"lg\"\n className={cn(\n 'gift-option-row-control laptop:size-5 data-[state=checked]:border-info-primary data-[state=checked]:bg-info-primary laptop:mt-0 mt-1 size-4 shrink-0',\n classNames.control,\n mode === 'radio' && 'rounded-full',\n !selected && 'border-lines-primary bg-transparent'\n )}\n />\n\n <div className={cn('gift-option-row-image shrink-0', classNames.image)}>\n <LocalizedLink href={option.listingHref} className=\"block\" onClick={() => onNavigate?.('image', 'gift')}>\n <Picture\n source={option.image.src}\n alt={option.image.alt ?? option.name}\n className=\"size-16 object-cover\"\n loading=\"lazy\"\n />\n </LocalizedLink>\n </div>\n\n <div className=\"laptop:flex-row laptop:items-center laptop:gap-4 flex min-w-0 flex-1 flex-col gap-2\">\n <div className=\"laptop:flex-[2] flex min-w-0 flex-col gap-1\">\n <span\n className={cn(\n 'gift-option-row-name text-info-primary laptop:text-base line-clamp-2 text-sm font-bold leading-[1.4]',\n option.listingHref && 'cursor-pointer hover:underline',\n classNames.name\n )}\n onClick={() => onNavigate?.('title', 'gift')}\n >\n {option.name}\n </span>\n {option.variantText && (\n <span\n className={cn(\n 'gift-option-row-variant text-info-tertiary laptop:text-base text-sm font-bold leading-[1.4]',\n classNames.variant\n )}\n >\n {option.variantText}\n </span>\n )}\n </div>\n\n <div className=\"laptop:shrink-0 laptop:justify-start flex items-center justify-between\">\n <span\n className={cn(\n 'gift-option-row-quantity text-info-primary laptop:text-base text-sm font-bold leading-[1.4]',\n classNames.quantity\n )}\n >\n x{option.displayQuantity}\n </span>\n\n <div className={cn('gift-option-row-price-wrap laptop:hidden flex items-end gap-1', classNames.priceWrap)}>\n <span\n className={cn(\n 'gift-option-row-free text-info-primary text-sm font-bold leading-[1.4]',\n classNames.freeText\n )}\n >\n {copy?.free ?? DEFAULT_CART_COPY.free}\n </span>\n {option.originalPriceText && (\n <span\n className={cn(\n 'gift-option-row-original-price text-info-tertiary text-sm font-bold leading-[1.4] line-through',\n classNames.originalPrice\n )}\n >\n {option.originalPriceText}\n </span>\n )}\n </div>\n </div>\n\n <div\n className={cn(\n 'gift-option-row-price-wrap laptop:flex-1 laptop:flex laptop:shrink-0 laptop:flex-col laptop:items-end laptop:gap-1 hidden',\n classNames.priceWrap\n )}\n >\n <div className=\"flex items-center justify-end gap-1\">\n <span\n className={cn(\n 'gift-option-row-free text-info-primary laptop:text-base text-sm font-bold leading-[1.4]',\n classNames.freeText\n )}\n >\n {copy?.free ?? DEFAULT_CART_COPY.free}\n </span>\n {option.originalPriceText && (\n <span\n className={cn(\n 'gift-option-row-original-price text-info-tertiary laptop:text-base text-sm font-bold leading-[1.4] line-through',\n classNames.originalPrice\n )}\n >\n {option.originalPriceText}\n </span>\n )}\n </div>\n </div>\n </div>\n </label>\n )\n }\n)\n\nGiftOptionRow.displayName = 'GiftOptionRow'\n\nexport default Gift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a,QAAS,MAAM,EAE1C,SAAAJ,EAAO,KACV,EACCA,EAAO,aACNT,EAAC,QACC,UAAWG,EACT,8FACAa,EAAW,OACb,EAEC,SAAAP,EAAO,YACV,GAEJ,EAEAR,EAAC,OAAI,UAAU,yEACb,UAAAA,EAAC,QACC,UAAWE,EACT,8FACAa,EAAW,QACb,EACD,cACGP,EAAO,iBACX,EAEAR,EAAC,OAAI,UAAWE,EAAG,gEAAiEa,EAAW,SAAS,EACtG,UAAAhB,EAAC,QACC,UAAWG,EACT,yEACAa,EAAW,QACb,EAEC,SAAAF,GAAM,MAAQV,EAAkB,KACnC,EACCK,EAAO,mBACNT,EAAC,QACC,UAAWG,EACT,iGACAa,EAAW,aACb,EAEC,SAAAP,EAAO,kBACV,GAEJ,GACF,EAEAT,EAAC,OACC,UAAWG,EACT,4HACAa,EAAW,SACb,EAEA,SAAAf,EAAC,OAAI,UAAU,sCACb,UAAAD,EAAC,QACC,UAAWG,EACT,0FACAa,EAAW,QACb,EAEC,SAAAF,GAAM,MAAQV,EAAkB,KACnC,EACCK,EAAO,mBACNT,EAAC,QACC,UAAWG,EACT,kHACAa,EAAW,aACb,EAEC,SAAAP,EAAO,kBACV,GAEJ,EACF,GACF,GACF,CAEJ,CACF,EAEAD,EAAc,YAAc,gBAE5B,IAAOY,EAAQZ",
6
+ "names": ["jsx", "jsxs", "React", "cn", "DEFAULT_CART_COPY", "Picture", "Checkbox", "LocalizedLink", "GiftOptionRow", "option", "selected", "mode", "onCheckedChange", "onNavigate", "copy", "className", "classNames", "props", "ref", "isDisabled", "GiftOptionRow_default"]
7
+ }
@@ -0,0 +1,2 @@
1
+ export { default } from './GiftOptionRow.js';
2
+ export type { GiftOptionRowProps } from './GiftOptionRow.js';
@@ -0,0 +1,2 @@
1
+ import{default as p}from"./GiftOptionRow.js";export{p as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../../src/biz-components/CartDetail/CartGiftSection/components/GiftOptionRow/index.ts"],
4
+ "sourcesContent": ["export { default } from './GiftOptionRow.js'\nexport type { GiftOptionRowProps } from './GiftOptionRow.js'\n"],
5
+ "mappings": "AAAA,OAAS,WAAAA,MAAe",
6
+ "names": ["default"]
7
+ }
@@ -0,0 +1,2 @@
1
+ export { default } from './CartGiftSection.js';
2
+ export type { CartGiftSectionProps } from './CartGiftSection.js';
@@ -0,0 +1,2 @@
1
+ import{default as r}from"./CartGiftSection.js";export{r as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/biz-components/CartDetail/CartGiftSection/index.ts"],
4
+ "sourcesContent": ["export { default } from './CartGiftSection.js'\nexport type { CartGiftSectionProps } from './CartGiftSection.js'\n"],
5
+ "mappings": "AAAA,OAAS,WAAAA,MAAe",
6
+ "names": ["default"]
7
+ }
@@ -0,0 +1,56 @@
1
+ import * as React from 'react';
2
+ import type { GiftSlotConfig, CartItemRowCopy, CartKspCopy } from '../types.js';
3
+ export type CartItemRowUserType = 'gift' | 'member' | 'plus-member';
4
+ export interface CartItemRowProps {
5
+ /** 商品图片,url + altText */
6
+ rowImage: {
7
+ url: string;
8
+ altText?: string;
9
+ };
10
+ /** 商品标题 */
11
+ title: string;
12
+ /** 商品描述 */
13
+ description?: string;
14
+ /** KSP 卖点列表 */
15
+ kspList?: string[];
16
+ /** 购买数量 */
17
+ quantity: number;
18
+ /** 最小购买数量,默认 1 */
19
+ minQuantity?: number;
20
+ /** 最大购买数量 */
21
+ maxQuantity?: number;
22
+ /** 是否售罄 */
23
+ soldOut?: boolean;
24
+ /** 商品详情页跳转链接(非售罄状态下图片和标题可点击跳转) */
25
+ listingHref?: string;
26
+ /** 是否预售 */
27
+ isPresale?: boolean;
28
+ /** 自定义价格渲染函数,优先级高于 price */
29
+ renderPrice?: () => React.ReactNode;
30
+ /** 赠品 slot 配置列表 */
31
+ giftSlots?: GiftSlotConfig[];
32
+ /** 已选 SKU 列表 */
33
+ selectedGiftSkus?: string[];
34
+ /** 数量变更回调 */
35
+ onQuantityChange?: (quantity: number) => void;
36
+ /** 移除商品回调 */
37
+ onRemove?: () => void;
38
+ /** 赠品变更回调 */
39
+ onGiftChange?: (newSkus: string[]) => void;
40
+ /** 赠品移除确认弹窗出现时回调,告知业务端被移除的 SKU */
41
+ onGiftRemoveSku?: (sku: string) => void;
42
+ /** 商品类型标识,控制顶部 badge 展示 */
43
+ userType?: CartItemRowUserType;
44
+ /** 分区标题 例如:订单赠品区文案 */
45
+ sectionTitle?: string;
46
+ /** 文案集中管理,覆盖本组件及子组件 KSP 的所有文案 */
47
+ copy?: CartItemRowCopy & CartKspCopy;
48
+ /** 根容器 className */
49
+ className?: string;
50
+ /** 图片/标题点击回调,供埋点等使用。type 区分内容类型,source 区分主商品/赠品 */
51
+ onNavigate?: (type: 'image' | 'title', source: 'main' | 'gift') => void;
52
+ /** 语义化样式覆盖 */
53
+ classNames?: Partial<Record<'root' | 'imageWrap' | 'contentWrap' | 'badge' | 'infoWrap' | 'title' | 'description' | 'attributes' | 'kspLink' | 'kspExpanded' | 'mobileInfoBlock' | 'mobileKspWrap' | 'mobileShippingWrap' | 'quantityWrap' | 'priceWrap' | 'removeBtn' | 'giftWrap' | 'shippingWrap' | 'soldOutOverlay' | 'sectionTitle', string>>;
54
+ }
55
+ declare const CartItemRow: React.ForwardRefExoticComponent<CartItemRowProps & React.RefAttributes<HTMLDivElement>>;
56
+ export default CartItemRow;
@@ -0,0 +1,2 @@
1
+ "use client";import{jsx as e,jsxs as p}from"react/jsx-runtime";import*as r from"react";import{cn as i}from"../../../helpers/index.js";import{Heading as P,Text as $,InputNumber as M,Picture as O,Badge as ee}from"../../../components/index.js";import V from"./components/CartItemKsp/index.js";import te from"./components/CartItemShipping/index.js";import K from"./components/CartItemGiftShipping/index.js";import ie from"./components/CartItemRemoveConfirm/index.js";import{LocalizedLink as A}from"../../../shared/LocalizedLink.js";import{DEFAULT_CART_COPY as Z}from"../index.js";const w={gift:"gift",member:"regular-member","plus-member":"plus-member"},oe=()=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e("path",{d:"M9.4668 1.33333C9.83045 1.33333 10.1782 1.48213 10.4297 1.74479L11.9512 3.33333H14.6667C15.0349 3.33333 15.3333 3.63181 15.3333 3.99999C15.3333 4.36818 15.0349 4.66666 14.6667 4.66666H13.6667V13.3333C13.6667 14.4379 12.7712 15.3333 11.6667 15.3333H4.33334C3.22877 15.3333 2.33334 14.4379 2.33334 13.3333V4.66666H1.33334C0.965149 4.66666 0.666672 4.36818 0.666672 3.99999C0.666672 3.63181 0.965149 3.33333 1.33334 3.33333H4.05144L5.59766 1.73828C5.84875 1.47941 6.19406 1.33336 6.55469 1.33333H9.4668ZM3.66667 13.3333C3.66667 13.7015 3.96515 14 4.33334 14H11.6667C12.0349 14 12.3333 13.7015 12.3333 13.3333V4.66666H3.66667V13.3333ZM6.66667 6.66666C7.03486 6.66666 7.33334 6.96514 7.33334 7.33333V11.6667C7.33334 12.0349 7.03486 12.3333 6.66667 12.3333C6.29848 12.3333 6.00001 12.0349 6.00001 11.6667V7.33333C6.00001 6.96514 6.29848 6.66666 6.66667 6.66666ZM9.33334 6.66666C9.70153 6.66666 10 6.96514 10 7.33333V11.6667C10 12.0349 9.70153 12.3333 9.33334 12.3333C8.96515 12.3333 8.66667 12.0349 8.66667 11.6667V7.33333C8.66667 6.96514 8.96515 6.66666 9.33334 6.66666ZM5.90821 3.33333H10.1055L9.4668 2.66666H6.55469L5.90821 3.33333Z",fill:"#4A4C56"})}),_=r.forwardRef(({rowImage:k,title:j,description:y,kspList:s,quantity:u,minQuantity:m,maxQuantity:W,soldOut:o=!1,isPresale:q=!1,listingHref:d,renderPrice:c,giftSlots:f,selectedGiftSkus:N,onQuantityChange:R,onRemove:x,onGiftChange:T,onGiftRemoveSku:I,onNavigate:g,userType:n,sectionTitle:L,copy:C,className:D,classNames:t={},...U},Y)=>{const a={...Z,...C},h=s&&s.length>0,S=f&&f.length>0||!!a.shippingText,[l,B]=r.useState(u),[F,b]=r.useState(!1),G=r.useRef(l);r.useEffect(()=>{B(u)},[u]),r.useEffect(()=>{G.current=l},[l]);const z=r.useCallback(v=>{const X=m??1;if(v<G.current&&v<X){b(!0);return}B(v),R?.(v)},[R,m]),J=a.soldOutText??Z.soldOutText,H=r.useCallback(()=>{b(!0)},[]),Q=r.useCallback(()=>{b(!1),x?.()},[x]),E=r.useCallback(()=>{b(!1)},[]);return p("div",{className:"flex flex-col gap-4",children:[L&&e(P,{size:2,className:i("cart-item-row-section-title [&_span]:text-brand-0 text-info-primary font-bold",t.sectionTitle),html:L}),p("div",{ref:Y,className:i("cart-item-row-root laptop:rounded-none flex flex-col gap-4 bg-white",o&&"pointer-events-none",D,t.root),...U,children:[p("div",{className:"cart-item-row-main laptop:gap-4 laptop:items-center flex gap-2",children:[p("div",{className:i("cart-item-row-image-wrap laptop:size-[264px] relative size-20 shrink-0",t.imageWrap),children:[e(A,{href:d&&!o?d:void 0,className:"block size-full",onClick:()=>g?.("image","main"),children:e(O,{source:k.url,alt:k.altText??"",className:i("size-full object-cover",o&&"opacity-50")})}),o&&e("div",{className:i("cart-item-row-sold-out-overlay laptop:text-base absolute left-1/2 top-1/2 z-10 h-[24px] w-max -translate-x-1/2 -translate-y-1/2 rounded-full bg-black/60 px-[3px] text-sm font-bold leading-[24px] text-white",t.soldOutOverlay),children:J}),q&&!o&&e("div",{className:"absolute left-1/2 top-1/2 w-max -translate-x-1/2 -translate-y-1/2 rounded-full bg-black/60",children:e("span",{className:"laptop:text-base laptop:px-2 h-[24px] px-[6px] text-center text-sm font-bold leading-[24px] text-white",children:a.presaleBadgeText})})]}),p("div",{className:i("cart-item-row-content flex flex-1 flex-col gap-4",t.contentWrap),children:[n&&e("div",{className:i("cart-item-row-badge",o&&"opacity-50",t.badge),children:e(ee,{variant:w[n]==="gift"?"fill":"promotional",promotionalType:w[n]==="gift"?void 0:w[n],children:n==="gift"?a.giftBadgeText:n==="member"?a.memberBadgeText:a.plusMemberBadgeText})}),p("div",{className:"laptop:flex-row laptop:justify-between laptop:gap-4 flex flex-1 flex-col gap-4",children:[p("div",{className:i("cart-item-row-info laptop:gap-2 laptop:flex-[792] flex flex-col gap-4",t.infoWrap),children:[p("div",{className:i("laptop:gap-2 flex flex-col gap-1",o&&"opacity-50"),children:[e(A,{href:d&&!o?d:void 0,onClick:()=>g?.("title","main"),children:e(P,{size:2,className:i("cart-item-row-title text-info-primary font-bold",t.title),html:j})}),y&&e($,{html:y,className:i("cart-item-row-description text-info-primary laptop:text-base text-sm",t.description)})]}),p("div",{className:"laptop:hidden flex items-center justify-between gap-4",children:[e(M,{classNames:{root:"border-lines rounded-md border-[1px]",inputWrapper:"w-[28px] h-[32px]",input:"border-none",button:"border-none size-[28px]"},value:l,min:m??1,max:W,disabled:o,onChange:z}),x&&e("button",{type:"button",onClick:H,className:i("cart-item-row-remove pointer-events-auto shrink-0",t.removeBtn),children:e(oe,{})})]}),c&&e("div",{className:"laptop:hidden w-full",children:e("div",{className:i("cart-item-row-price flex flex-col items-start gap-1 font-bold",o&&"opacity-50",t.priceWrap),children:c()})}),h&&e("div",{className:i("laptop:block hidden",o&&"opacity-50"),children:e(V,{items:s,variant:"inline-link",copy:C,className:t.kspLink,classNames:{toggle:i("cart-item-row-ksp-link text-brand-0 p-0 font-bold leading-[1.2]",t.kspLink),item:i("cart-item-row-ksp-expanded text-base font-bold",t.kspExpanded)}})})]}),e("div",{className:i("cart-item-row-quantity laptop:flex laptop:flex-col laptop:items-start hidden",t.quantityWrap),children:e(M,{classNames:{root:"border-lines border-[1px] rounded-lg w-[96px]",inputWrapper:"w-[32px] h-[32px]",input:"border-none",button:"border-none size-8"},value:l,min:m??1,max:W,disabled:o,onChange:z})}),p("div",{className:"laptop:flex laptop:flex-[404] hidden flex-col items-end gap-2",children:[c&&e("div",{className:i("cart-item-row-price laptop:flex laptop:flex-col laptop:items-end laptop:gap-2 hidden font-bold",o&&"opacity-50",t.priceWrap),children:c()}),x&&e("button",{type:"button",onClick:H,className:i("cart-item-row-remove hover:text-brand-0 text-info-tertiary laptop:text-base pointer-events-auto text-sm font-bold underline",t.removeBtn),children:a.remove})]})]}),S&&e("div",{className:i("laptop:block hidden",o&&"opacity-50"),children:e(K,{giftSlots:f,selectedGiftSkus:N,copy:a,onGiftChange:T,onGiftRemoveSku:I,onNavigate:g,classNames:{giftWrap:t.giftWrap,shippingWrap:t.shippingWrap}})})]})]}),(h||a.shippingText)&&p("div",{className:i("cart-item-row-mobile-info laptop:hidden bg-container-secondary flex flex-col rounded-md",o&&"opacity-50",t.mobileInfoBlock),children:[h&&e("div",{className:i("cart-item-row-mobile-ksp border-lines px-4 py-3",a.shippingText&&"border-b",t.mobileKspWrap),children:e(V,{items:s,variant:"verified",copy:C,className:t.kspLink,classNames:{toggle:"cart-item-row-ksp-link text-sm font-semibold",item:i("cart-item-row-ksp-expanded",t.kspExpanded)}})}),a.shippingText&&e("div",{className:i("cart-item-row-mobile-shipping px-4 py-3",t.mobileShippingWrap),children:e(te,{text:a.shippingText})})]}),S&&e("div",{className:i("laptop:hidden",o&&"opacity-50"),children:e(K,{giftSlots:f,selectedGiftSkus:N,copy:a,onGiftChange:T,onGiftRemoveSku:I,onNavigate:g,classNames:{giftWrap:t.giftWrap,shippingWrap:t.shippingWrap}})}),e(ie,{open:F,copy:a,onConfirm:Q,onCancel:E,onClose:E})]})]})});_.displayName="CartItemRow";var fe=_;export{fe as default};
2
+ //# sourceMappingURL=CartItemRow.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/biz-components/CartDetail/CartItemRow/CartItemRow.tsx"],
4
+ "sourcesContent": ["'use client'\n\nimport * as React from 'react'\nimport { cn } from '../../../helpers/index.js'\nimport { Heading, Text, InputNumber, type InputNumberProps, Picture, Badge } from '../../../components/index.js'\nimport CartItemKsp from './components/CartItemKsp/index.js'\nimport CartItemShipping from './components/CartItemShipping/index.js'\nimport CartItemGiftShipping from './components/CartItemGiftShipping/index.js'\nimport CartItemRemoveConfirm from './components/CartItemRemoveConfirm/index.js'\nimport { LocalizedLink } from '../../../shared/LocalizedLink.js'\nimport type { GiftSlotConfig, CartItemRowCopy, CartKspCopy } from '../types.js'\nimport { DEFAULT_CART_COPY } from '../index.js'\n\nexport type CartItemRowUserType = 'gift' | 'member' | 'plus-member'\n\nconst BADGE_PROMOTIONAL_TYPE = {\n gift: 'gift',\n member: 'regular-member',\n 'plus-member': 'plus-member',\n} as const\n\nexport interface CartItemRowProps {\n /** \u5546\u54C1\u56FE\u7247\uFF0Curl + altText */\n rowImage: { url: string; altText?: string }\n /** \u5546\u54C1\u6807\u9898 */\n title: string\n /** \u5546\u54C1\u63CF\u8FF0 */\n description?: string\n // /** \u5546\u54C1\u5C5E\u6027\u5217\u8868\uFF0C\u5982 [\"Color: Black\"] */\n // attributes?: string[]\n /** KSP \u5356\u70B9\u5217\u8868 */\n kspList?: string[]\n /** \u8D2D\u4E70\u6570\u91CF */\n quantity: number\n /** \u6700\u5C0F\u8D2D\u4E70\u6570\u91CF\uFF0C\u9ED8\u8BA4 1 */\n minQuantity?: number\n /** \u6700\u5927\u8D2D\u4E70\u6570\u91CF */\n maxQuantity?: number\n /** \u662F\u5426\u552E\u7F44 */\n soldOut?: boolean\n /** \u5546\u54C1\u8BE6\u60C5\u9875\u8DF3\u8F6C\u94FE\u63A5\uFF08\u975E\u552E\u7F44\u72B6\u6001\u4E0B\u56FE\u7247\u548C\u6807\u9898\u53EF\u70B9\u51FB\u8DF3\u8F6C\uFF09 */\n listingHref?: string\n /** \u662F\u5426\u9884\u552E */\n isPresale?: boolean\n /** \u81EA\u5B9A\u4E49\u4EF7\u683C\u6E32\u67D3\u51FD\u6570\uFF0C\u4F18\u5148\u7EA7\u9AD8\u4E8E price */\n renderPrice?: () => React.ReactNode\n /** \u8D60\u54C1 slot \u914D\u7F6E\u5217\u8868 */\n giftSlots?: GiftSlotConfig[]\n /** \u5DF2\u9009 SKU \u5217\u8868 */\n selectedGiftSkus?: string[]\n /** \u6570\u91CF\u53D8\u66F4\u56DE\u8C03 */\n onQuantityChange?: (quantity: number) => void\n /** \u79FB\u9664\u5546\u54C1\u56DE\u8C03 */\n onRemove?: () => void\n /** \u8D60\u54C1\u53D8\u66F4\u56DE\u8C03 */\n onGiftChange?: (newSkus: string[]) => void\n /** \u8D60\u54C1\u79FB\u9664\u786E\u8BA4\u5F39\u7A97\u51FA\u73B0\u65F6\u56DE\u8C03\uFF0C\u544A\u77E5\u4E1A\u52A1\u7AEF\u88AB\u79FB\u9664\u7684 SKU */\n onGiftRemoveSku?: (sku: string) => void\n /** \u5546\u54C1\u7C7B\u578B\u6807\u8BC6\uFF0C\u63A7\u5236\u9876\u90E8 badge \u5C55\u793A */\n userType?: CartItemRowUserType\n /** \u5206\u533A\u6807\u9898 \u4F8B\u5982\uFF1A\u8BA2\u5355\u8D60\u54C1\u533A\u6587\u6848 */\n sectionTitle?: string\n /** \u6587\u6848\u96C6\u4E2D\u7BA1\u7406\uFF0C\u8986\u76D6\u672C\u7EC4\u4EF6\u53CA\u5B50\u7EC4\u4EF6 KSP \u7684\u6240\u6709\u6587\u6848 */\n copy?: CartItemRowCopy & CartKspCopy\n /** \u6839\u5BB9\u5668 className */\n className?: string\n /** \u56FE\u7247/\u6807\u9898\u70B9\u51FB\u56DE\u8C03\uFF0C\u4F9B\u57CB\u70B9\u7B49\u4F7F\u7528\u3002type \u533A\u5206\u5185\u5BB9\u7C7B\u578B\uFF0Csource \u533A\u5206\u4E3B\u5546\u54C1/\u8D60\u54C1 */\n onNavigate?: (type: 'image' | 'title', source: 'main' | 'gift') => void\n /** \u8BED\u4E49\u5316\u6837\u5F0F\u8986\u76D6 */\n classNames?: Partial<\n Record<\n | 'root'\n | 'imageWrap'\n | 'contentWrap'\n | 'badge'\n | 'infoWrap'\n | 'title'\n | 'description'\n | 'attributes'\n | 'kspLink'\n | 'kspExpanded'\n | 'mobileInfoBlock'\n | 'mobileKspWrap'\n | 'mobileShippingWrap'\n | 'quantityWrap'\n | 'priceWrap'\n | 'removeBtn'\n | 'giftWrap'\n | 'shippingWrap'\n | 'soldOutOverlay'\n | 'sectionTitle',\n string\n >\n >\n}\n\nconst TrashIcon = () => (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\">\n <path\n d=\"M9.4668 1.33333C9.83045 1.33333 10.1782 1.48213 10.4297 1.74479L11.9512 3.33333H14.6667C15.0349 3.33333 15.3333 3.63181 15.3333 3.99999C15.3333 4.36818 15.0349 4.66666 14.6667 4.66666H13.6667V13.3333C13.6667 14.4379 12.7712 15.3333 11.6667 15.3333H4.33334C3.22877 15.3333 2.33334 14.4379 2.33334 13.3333V4.66666H1.33334C0.965149 4.66666 0.666672 4.36818 0.666672 3.99999C0.666672 3.63181 0.965149 3.33333 1.33334 3.33333H4.05144L5.59766 1.73828C5.84875 1.47941 6.19406 1.33336 6.55469 1.33333H9.4668ZM3.66667 13.3333C3.66667 13.7015 3.96515 14 4.33334 14H11.6667C12.0349 14 12.3333 13.7015 12.3333 13.3333V4.66666H3.66667V13.3333ZM6.66667 6.66666C7.03486 6.66666 7.33334 6.96514 7.33334 7.33333V11.6667C7.33334 12.0349 7.03486 12.3333 6.66667 12.3333C6.29848 12.3333 6.00001 12.0349 6.00001 11.6667V7.33333C6.00001 6.96514 6.29848 6.66666 6.66667 6.66666ZM9.33334 6.66666C9.70153 6.66666 10 6.96514 10 7.33333V11.6667C10 12.0349 9.70153 12.3333 9.33334 12.3333C8.96515 12.3333 8.66667 12.0349 8.66667 11.6667V7.33333C8.66667 6.96514 8.96515 6.66666 9.33334 6.66666ZM5.90821 3.33333H10.1055L9.4668 2.66666H6.55469L5.90821 3.33333Z\"\n fill=\"#4A4C56\"\n />\n </svg>\n)\n\nconst CartItemRow = React.forwardRef<HTMLDivElement, CartItemRowProps>(\n (\n {\n rowImage,\n title,\n description,\n // attributes,\n kspList,\n quantity,\n minQuantity,\n maxQuantity,\n soldOut = false,\n isPresale = false,\n listingHref,\n renderPrice,\n giftSlots,\n selectedGiftSkus,\n onQuantityChange,\n onRemove,\n onGiftChange,\n onGiftRemoveSku,\n onNavigate,\n userType,\n sectionTitle,\n copy,\n className,\n classNames = {},\n ...props\n },\n ref\n ) => {\n const c = { ...DEFAULT_CART_COPY, ...copy }\n const hasKsp = kspList && kspList.length > 0\n const hasGifts = giftSlots && giftSlots.length > 0\n const hasGiftOrShipping = hasGifts || !!c.shippingText\n\n const [localQuantity, setLocalQuantity] = React.useState(quantity)\n const [showRemoveConfirm, setShowRemoveConfirm] = React.useState(false)\n const localQuantityRef = React.useRef(localQuantity)\n\n React.useEffect(() => {\n setLocalQuantity(quantity)\n }, [quantity])\n\n React.useEffect(() => {\n localQuantityRef.current = localQuantity\n }, [localQuantity])\n\n const handleQuantityChange = React.useCallback(\n (newQty: number) => {\n const minQty = minQuantity ?? 1\n if (newQty < localQuantityRef.current && newQty < minQty) {\n setShowRemoveConfirm(true)\n return\n }\n setLocalQuantity(newQty)\n onQuantityChange?.(newQty)\n },\n [onQuantityChange, minQuantity]\n )\n\n const resolvedSoldOutText = c.soldOutText ?? DEFAULT_CART_COPY.soldOutText\n\n const handleRemoveClick = React.useCallback(() => {\n setShowRemoveConfirm(true)\n }, [])\n\n const handleConfirmRemove = React.useCallback(() => {\n setShowRemoveConfirm(false)\n onRemove?.()\n }, [onRemove])\n\n const handleCloseRemoveConfirm = React.useCallback(() => {\n setShowRemoveConfirm(false)\n }, [])\n\n return (\n <div className=\"flex flex-col gap-4\">\n {sectionTitle && (\n <Heading\n size={2}\n className={cn(\n 'cart-item-row-section-title [&_span]:text-brand-0 text-info-primary font-bold',\n classNames.sectionTitle\n )}\n html={sectionTitle}\n />\n )}\n <div\n ref={ref}\n className={cn(\n 'cart-item-row-root laptop:rounded-none flex flex-col gap-4 bg-white',\n soldOut && 'pointer-events-none',\n className,\n classNames.root\n )}\n {...props}\n >\n <div className=\"cart-item-row-main laptop:gap-4 laptop:items-center flex gap-2\">\n <div\n className={cn(\n 'cart-item-row-image-wrap laptop:size-[264px] relative size-20 shrink-0',\n classNames.imageWrap\n )}\n >\n <LocalizedLink\n href={listingHref && !soldOut ? listingHref : undefined}\n className=\"block size-full\"\n onClick={() => onNavigate?.('image', 'main')}\n >\n <Picture\n source={rowImage.url}\n alt={rowImage.altText ?? ''}\n className={cn('size-full object-cover', soldOut && 'opacity-50')}\n />\n </LocalizedLink>\n {soldOut && (\n <div\n className={cn(\n 'cart-item-row-sold-out-overlay laptop:text-base absolute left-1/2 top-1/2 z-10 h-[24px] w-max -translate-x-1/2 -translate-y-1/2 rounded-full bg-black/60 px-[3px] text-sm font-bold leading-[24px] text-white',\n classNames.soldOutOverlay\n )}\n >\n {resolvedSoldOutText}\n </div>\n )}\n {isPresale && !soldOut && (\n <div className=\"absolute left-1/2 top-1/2 w-max -translate-x-1/2 -translate-y-1/2 rounded-full bg-black/60\">\n <span className=\"laptop:text-base laptop:px-2 h-[24px] px-[6px] text-center text-sm font-bold leading-[24px] text-white\">\n {c.presaleBadgeText}\n </span>\n </div>\n )}\n </div>\n\n <div className={cn('cart-item-row-content flex flex-1 flex-col gap-4', classNames.contentWrap)}>\n {userType && (\n <div className={cn('cart-item-row-badge', soldOut && 'opacity-50', classNames.badge)}>\n <Badge\n variant={BADGE_PROMOTIONAL_TYPE[userType] === 'gift' ? 'fill' : 'promotional'}\n promotionalType={\n BADGE_PROMOTIONAL_TYPE[userType] === 'gift' ? undefined : BADGE_PROMOTIONAL_TYPE[userType]\n }\n >\n {userType === 'gift'\n ? c.giftBadgeText\n : userType === 'member'\n ? c.memberBadgeText\n : c.plusMemberBadgeText}\n </Badge>\n </div>\n )}\n <div className=\"laptop:flex-row laptop:justify-between laptop:gap-4 flex flex-1 flex-col gap-4\">\n <div\n className={cn(\n 'cart-item-row-info laptop:gap-2 laptop:flex-[792] flex flex-col gap-4',\n classNames.infoWrap\n )}\n >\n <div className={cn('laptop:gap-2 flex flex-col gap-1', soldOut && 'opacity-50')}>\n <LocalizedLink\n href={listingHref && !soldOut ? listingHref : undefined}\n onClick={() => onNavigate?.('title', 'main')}\n >\n <Heading\n size={2}\n className={cn('cart-item-row-title text-info-primary font-bold', classNames.title)}\n html={title}\n />\n </LocalizedLink>\n {description && (\n <Text\n html={description}\n className={cn(\n 'cart-item-row-description text-info-primary laptop:text-base text-sm',\n classNames.description\n )}\n />\n )}\n </div>\n {/* {attributes && attributes.length > 0 && (\n <Text\n className={cn(\n 'cart-item-row-attributes text-info-tertiary laptop:text-base text-sm',\n classNames.attributes\n )}\n >\n {attributes.join(' \u2022 ')}\n </Text>\n )} */}\n\n <div className=\"laptop:hidden flex items-center justify-between gap-4\">\n <InputNumber\n classNames={{\n root: 'border-lines rounded-md border-[1px]',\n inputWrapper: 'w-[28px] h-[32px]',\n input: 'border-none',\n button: 'border-none size-[28px]',\n }}\n value={localQuantity}\n min={minQuantity ?? 1}\n max={maxQuantity}\n disabled={soldOut}\n onChange={handleQuantityChange as InputNumberProps['onChange']}\n />\n {onRemove && (\n <button\n type=\"button\"\n onClick={handleRemoveClick}\n className={cn('cart-item-row-remove pointer-events-auto shrink-0', classNames.removeBtn)}\n >\n <TrashIcon />\n </button>\n )}\n </div>\n\n {renderPrice && (\n <div className=\"laptop:hidden w-full\">\n <div\n className={cn(\n 'cart-item-row-price flex flex-col items-start gap-1 font-bold',\n soldOut && 'opacity-50',\n classNames.priceWrap\n )}\n >\n {renderPrice()}\n </div>\n </div>\n )}\n\n {hasKsp && (\n <div className={cn('laptop:block hidden', soldOut && 'opacity-50')}>\n <CartItemKsp\n items={kspList!}\n variant=\"inline-link\"\n copy={copy}\n className={classNames.kspLink}\n classNames={{\n toggle: cn(\n 'cart-item-row-ksp-link text-brand-0 p-0 font-bold leading-[1.2]',\n classNames.kspLink\n ),\n item: cn('cart-item-row-ksp-expanded text-base font-bold', classNames.kspExpanded),\n }}\n />\n </div>\n )}\n </div>\n\n <div\n className={cn(\n 'cart-item-row-quantity laptop:flex laptop:flex-col laptop:items-start hidden',\n classNames.quantityWrap\n )}\n >\n <InputNumber\n classNames={{\n root: 'border-lines border-[1px] rounded-lg w-[96px]',\n inputWrapper: 'w-[32px] h-[32px]',\n input: 'border-none',\n button: 'border-none size-8',\n }}\n value={localQuantity}\n min={minQuantity ?? 1}\n max={maxQuantity}\n disabled={soldOut}\n onChange={handleQuantityChange as InputNumberProps['onChange']}\n />\n </div>\n <div className=\"laptop:flex laptop:flex-[404] hidden flex-col items-end gap-2\">\n {renderPrice && (\n <div\n className={cn(\n 'cart-item-row-price laptop:flex laptop:flex-col laptop:items-end laptop:gap-2 hidden font-bold',\n soldOut && 'opacity-50',\n classNames.priceWrap\n )}\n >\n {renderPrice()}\n </div>\n )}\n {onRemove && (\n <button\n type=\"button\"\n onClick={handleRemoveClick}\n className={cn(\n 'cart-item-row-remove hover:text-brand-0 text-info-tertiary laptop:text-base pointer-events-auto text-sm font-bold underline',\n classNames.removeBtn\n )}\n >\n {c.remove}\n </button>\n )}\n </div>\n </div>\n\n {hasGiftOrShipping && (\n <div className={cn('laptop:block hidden', soldOut && 'opacity-50')}>\n <CartItemGiftShipping\n giftSlots={giftSlots}\n selectedGiftSkus={selectedGiftSkus}\n copy={c}\n onGiftChange={onGiftChange}\n onGiftRemoveSku={onGiftRemoveSku}\n onNavigate={onNavigate}\n classNames={{\n giftWrap: classNames.giftWrap,\n shippingWrap: classNames.shippingWrap,\n }}\n />\n </div>\n )}\n </div>\n </div>\n\n {(hasKsp || c.shippingText) && (\n <div\n className={cn(\n 'cart-item-row-mobile-info laptop:hidden bg-container-secondary flex flex-col rounded-md',\n soldOut && 'opacity-50',\n classNames.mobileInfoBlock\n )}\n >\n {hasKsp && (\n <div\n className={cn(\n 'cart-item-row-mobile-ksp border-lines px-4 py-3',\n c.shippingText && 'border-b',\n classNames.mobileKspWrap\n )}\n >\n <CartItemKsp\n items={kspList!}\n variant=\"verified\"\n copy={copy}\n className={classNames.kspLink}\n classNames={{\n toggle: 'cart-item-row-ksp-link text-sm font-semibold',\n item: cn('cart-item-row-ksp-expanded', classNames.kspExpanded),\n }}\n />\n </div>\n )}\n {c.shippingText && (\n <div className={cn('cart-item-row-mobile-shipping px-4 py-3', classNames.mobileShippingWrap)}>\n <CartItemShipping text={c.shippingText} />\n </div>\n )}\n </div>\n )}\n\n {hasGiftOrShipping && (\n <div className={cn('laptop:hidden', soldOut && 'opacity-50')}>\n <CartItemGiftShipping\n giftSlots={giftSlots}\n selectedGiftSkus={selectedGiftSkus}\n copy={c}\n onGiftChange={onGiftChange}\n onGiftRemoveSku={onGiftRemoveSku}\n onNavigate={onNavigate}\n classNames={{\n giftWrap: classNames.giftWrap,\n shippingWrap: classNames.shippingWrap,\n }}\n />\n </div>\n )}\n <CartItemRemoveConfirm\n open={showRemoveConfirm}\n copy={c}\n onConfirm={handleConfirmRemove}\n onCancel={handleCloseRemoveConfirm}\n onClose={handleCloseRemoveConfirm}\n />\n </div>\n </div>\n )\n }\n)\n\nCartItemRow.displayName = 'CartItemRow'\n\nexport default CartItemRow\n"],
5
+ "mappings": "aAkGI,cAAAA,EA0GQ,QAAAC,MA1GR,oBAhGJ,UAAYC,MAAW,QACvB,OAAS,MAAAC,MAAU,4BACnB,OAAS,WAAAC,EAAS,QAAAC,EAAM,eAAAC,EAAoC,WAAAC,EAAS,SAAAC,OAAa,+BAClF,OAAOC,MAAiB,oCACxB,OAAOC,OAAsB,yCAC7B,OAAOC,MAA0B,6CACjC,OAAOC,OAA2B,8CAClC,OAAS,iBAAAC,MAAqB,mCAE9B,OAAS,qBAAAC,MAAyB,cAIlC,MAAMC,EAAyB,CAC7B,KAAM,OACN,OAAQ,iBACR,cAAe,aACjB,EA6EMC,GAAY,IAChBhB,EAAC,OAAI,MAAM,6BAA6B,MAAM,KAAK,OAAO,KAAK,QAAQ,YAAY,KAAK,OACtF,SAAAA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D,SAAAzB,EAACW,EAAA,CACC,UAAWkB,EACX,iBAAkBC,EAClB,KAAMa,EACN,aAAcV,EACd,gBAAiBC,EACjB,WAAYC,EACZ,WAAY,CACV,SAAUK,EAAW,SACrB,aAAcA,EAAW,YAC3B,EACF,EACF,EAEFxC,EAACY,GAAA,CACC,KAAMoC,EACN,KAAML,EACN,UAAWa,EACX,SAAUC,EACV,QAASA,EACX,GACF,GACF,CAEJ,CACF,EAEAxC,EAAY,YAAc,cAE1B,IAAOyC,GAAQzC",
6
+ "names": ["jsx", "jsxs", "React", "cn", "Heading", "Text", "InputNumber", "Picture", "Badge", "CartItemKsp", "CartItemShipping", "CartItemGiftShipping", "CartItemRemoveConfirm", "LocalizedLink", "DEFAULT_CART_COPY", "BADGE_PROMOTIONAL_TYPE", "TrashIcon", "CartItemRow", "rowImage", "title", "description", "kspList", "quantity", "minQuantity", "maxQuantity", "soldOut", "isPresale", "listingHref", "renderPrice", "giftSlots", "selectedGiftSkus", "onQuantityChange", "onRemove", "onGiftChange", "onGiftRemoveSku", "onNavigate", "userType", "sectionTitle", "copy", "className", "classNames", "props", "ref", "c", "hasKsp", "hasGiftOrShipping", "localQuantity", "setLocalQuantity", "showRemoveConfirm", "setShowRemoveConfirm", "localQuantityRef", "handleQuantityChange", "newQty", "minQty", "resolvedSoldOutText", "handleRemoveClick", "handleConfirmRemove", "handleCloseRemoveConfirm", "CartItemRow_default"]
7
+ }
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import type { CartItemGiftShippingProps } from './types.js';
3
+ declare const CartItemGiftShipping: React.FC<CartItemGiftShippingProps>;
4
+ export default CartItemGiftShipping;
@@ -0,0 +1,2 @@
1
+ "use client";import{jsx as t,jsxs as l}from"react/jsx-runtime";import"react";import{cn as a}from"../../../../../helpers/index.js";import g from"../CartItemShipping/index.js";import h from"../../../CartGiftSection/index.js";const r=({giftSlots:i,selectedGiftSkus:o,onGiftChange:m,onGiftRemoveSku:n,onNavigate:s,copy:p,classNames:e={}})=>{const f=i&&i.length>0;return l("div",{className:"flex flex-col gap-4",children:[f&&t("div",{className:a("cart-item-row-gift-wrap",e.giftWrap),children:t(h,{slots:i,selectedGiftSkus:o??[],onChange:m,onGiftRemoveSku:n,onNavigate:s})}),p?.shippingText&&t("div",{className:a("cart-item-row-shipping laptop:flex laptop:items-center laptop:gap-1 hidden",e.shippingWrap),children:t(g,{text:p.shippingText})})]})};r.displayName="CartItemGiftShipping";var G=r;export{G as default};
2
+ //# sourceMappingURL=CartItemGiftShipping.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../../src/biz-components/CartDetail/CartItemRow/components/CartItemGiftShipping/CartItemGiftShipping.tsx"],
4
+ "sourcesContent": ["'use client'\n\nimport * as React from 'react'\nimport { cn } from '../../../../../helpers/index.js'\nimport CartItemShipping from '../CartItemShipping/index.js'\nimport CartGiftSection from '../../../CartGiftSection/index.js'\nimport type { CartItemGiftShippingProps } from './types.js'\n\nconst CartItemGiftShipping: React.FC<CartItemGiftShippingProps> = ({\n giftSlots,\n selectedGiftSkus,\n onGiftChange,\n onGiftRemoveSku,\n onNavigate,\n copy,\n classNames = {},\n}) => {\n const hasGifts = giftSlots && giftSlots.length > 0\n\n return (\n <div className=\"flex flex-col gap-4\">\n {hasGifts && (\n <div className={cn('cart-item-row-gift-wrap', classNames.giftWrap)}>\n <CartGiftSection\n slots={giftSlots!}\n selectedGiftSkus={selectedGiftSkus ?? []}\n onChange={onGiftChange}\n onGiftRemoveSku={onGiftRemoveSku}\n onNavigate={onNavigate}\n />\n </div>\n )}\n {copy?.shippingText && (\n <div\n className={cn(\n 'cart-item-row-shipping laptop:flex laptop:items-center laptop:gap-1 hidden',\n classNames.shippingWrap\n )}\n >\n <CartItemShipping text={copy.shippingText} />\n </div>\n )}\n </div>\n )\n}\n\nCartItemGiftShipping.displayName = 'CartItemGiftShipping'\n\nexport default CartItemGiftShipping\n"],
5
+ "mappings": "aAoBI,OAGM,OAAAA,EAHN,QAAAC,MAAA,oBAlBJ,MAAuB,QACvB,OAAS,MAAAC,MAAU,kCACnB,OAAOC,MAAsB,+BAC7B,OAAOC,MAAqB,oCAG5B,MAAMC,EAA4D,CAAC,CACjE,UAAAC,EACA,iBAAAC,EACA,aAAAC,EACA,gBAAAC,EACA,WAAAC,EACA,KAAAC,EACA,WAAAC,EAAa,CAAC,CAChB,IAAM,CACJ,MAAMC,EAAWP,GAAaA,EAAU,OAAS,EAEjD,OACEL,EAAC,OAAI,UAAU,sBACZ,UAAAY,GACCb,EAAC,OAAI,UAAWE,EAAG,0BAA2BU,EAAW,QAAQ,EAC/D,SAAAZ,EAACI,EAAA,CACC,MAAOE,EACP,iBAAkBC,GAAoB,CAAC,EACvC,SAAUC,EACV,gBAAiBC,EACjB,WAAYC,EACd,EACF,EAEDC,GAAM,cACLX,EAAC,OACC,UAAWE,EACT,6EACAU,EAAW,YACb,EAEA,SAAAZ,EAACG,EAAA,CAAiB,KAAMQ,EAAK,aAAc,EAC7C,GAEJ,CAEJ,EAEAN,EAAqB,YAAc,uBAEnC,IAAOS,EAAQT",
6
+ "names": ["jsx", "jsxs", "cn", "CartItemShipping", "CartGiftSection", "CartItemGiftShipping", "giftSlots", "selectedGiftSkus", "onGiftChange", "onGiftRemoveSku", "onNavigate", "copy", "classNames", "hasGifts", "CartItemGiftShipping_default"]
7
+ }
@@ -0,0 +1,2 @@
1
+ export { default } from './CartItemGiftShipping.js';
2
+ export type { CartItemGiftShippingProps } from './types.js';
@@ -0,0 +1,2 @@
1
+ import{default as e}from"./CartItemGiftShipping.js";export{e as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../../src/biz-components/CartDetail/CartItemRow/components/CartItemGiftShipping/index.ts"],
4
+ "sourcesContent": ["export { default } from './CartItemGiftShipping.js'\nexport type { CartItemGiftShippingProps } from './types.js'\n"],
5
+ "mappings": "AAAA,OAAS,WAAAA,MAAe",
6
+ "names": ["default"]
7
+ }
@@ -0,0 +1,10 @@
1
+ import type { GiftSlotConfig, CartItemRowCopy } from '../../../types.js';
2
+ export interface CartItemGiftShippingProps {
3
+ giftSlots?: GiftSlotConfig[];
4
+ selectedGiftSkus?: string[];
5
+ onGiftChange?: (newSkus: string[]) => void;
6
+ onGiftRemoveSku?: (sku: string) => void;
7
+ onNavigate?: (type: 'image' | 'title', source: 'main' | 'gift') => void;
8
+ copy?: CartItemRowCopy;
9
+ classNames?: Partial<Record<'giftWrap' | 'shippingWrap', string>>;
10
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ export interface CartItemInfoProps {
3
+ title: string;
4
+ description?: string;
5
+ kspList?: string[];
6
+ shippingText?: string;
7
+ className?: string;
8
+ classNames?: Partial<Record<'root' | 'title' | 'description' | 'ksp' | 'kspItem' | 'kspToggle' | 'shipping', string>>;
9
+ }
10
+ declare const CartItemInfo: React.ForwardRefExoticComponent<CartItemInfoProps & React.RefAttributes<HTMLDivElement>>;
11
+ export default CartItemInfo;
@@ -0,0 +1,2 @@
1
+ "use client";import{jsx as e,jsxs as C}from"react/jsx-runtime";import*as g from"react";import{cn as i}from"../../../../../helpers/index.js";import{Heading as c,Text as x}from"../../../../../components/index.js";import d from"../CartItemKsp/index.js";import I from"../CartItemShipping/index.js";const a=g.forwardRef(({title:n,description:o,kspList:r,shippingText:p,className:s,classNames:t={},...m},f)=>{const l=r&&r.length>0;return C("div",{ref:f,className:i("flex flex-col gap-1",s,t.root),...m,children:[e(c,{size:4,className:i("text-info-primary font-bold",t.title),children:n}),o&&e(x,{className:i("text-info-primary text-text-3 laptop:text-text-2",t.description),children:o}),l&&e(d,{items:r,className:t.ksp}),p&&e(I,{text:p,className:t.shipping})]})});a.displayName="CartItemInfo";var v=a;export{v as default};
2
+ //# sourceMappingURL=CartItemInfo.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../../src/biz-components/CartDetail/CartItemRow/components/CartItemInfo/CartItemInfo.tsx"],
4
+ "sourcesContent": ["'use client'\n\nimport * as React from 'react'\nimport { cn } from '../../../../../helpers/index.js'\nimport { Heading, Text } from '../../../../../components/index.js'\nimport CartItemKsp from '../CartItemKsp/index.js'\nimport CartItemShipping from '../CartItemShipping/index.js'\n\nexport interface CartItemInfoProps {\n title: string\n description?: string\n kspList?: string[]\n shippingText?: string\n className?: string\n classNames?: Partial<Record<'root' | 'title' | 'description' | 'ksp' | 'kspItem' | 'kspToggle' | 'shipping', string>>\n}\n\nconst CartItemInfo = React.forwardRef<HTMLDivElement, CartItemInfoProps>(\n ({ title, description, kspList, shippingText, className, classNames = {}, ...props }, ref) => {\n const hasKsp = kspList && kspList.length > 0\n\n return (\n <div ref={ref} className={cn('flex flex-col gap-1', className, classNames.root)} {...props}>\n <Heading size={4} className={cn('text-info-primary font-bold', classNames.title)}>\n {title}\n </Heading>\n {description && (\n <Text className={cn('text-info-primary text-text-3 laptop:text-text-2', classNames.description)}>\n {description}\n </Text>\n )}\n {hasKsp && <CartItemKsp items={kspList!} className={classNames.ksp} />}\n {shippingText && <CartItemShipping text={shippingText} className={classNames.shipping} />}\n </div>\n )\n }\n)\n\nCartItemInfo.displayName = 'CartItemInfo'\n\nexport default CartItemInfo\n"],
5
+ "mappings": "aAsBM,OACE,OAAAA,EADF,QAAAC,MAAA,oBApBN,UAAYC,MAAW,QACvB,OAAS,MAAAC,MAAU,kCACnB,OAAS,WAAAC,EAAS,QAAAC,MAAY,qCAC9B,OAAOC,MAAiB,0BACxB,OAAOC,MAAsB,+BAW7B,MAAMC,EAAeN,EAAM,WACzB,CAAC,CAAE,MAAAO,EAAO,YAAAC,EAAa,QAAAC,EAAS,aAAAC,EAAc,UAAAC,EAAW,WAAAC,EAAa,CAAC,EAAG,GAAGC,CAAM,EAAGC,IAAQ,CAC5F,MAAMC,EAASN,GAAWA,EAAQ,OAAS,EAE3C,OACEV,EAAC,OAAI,IAAKe,EAAK,UAAWb,EAAG,sBAAuBU,EAAWC,EAAW,IAAI,EAAI,GAAGC,EACnF,UAAAf,EAACI,EAAA,CAAQ,KAAM,EAAG,UAAWD,EAAG,8BAA+BW,EAAW,KAAK,EAC5E,SAAAL,EACH,EACCC,GACCV,EAACK,EAAA,CAAK,UAAWF,EAAG,mDAAoDW,EAAW,WAAW,EAC3F,SAAAJ,EACH,EAEDO,GAAUjB,EAACM,EAAA,CAAY,MAAOK,EAAU,UAAWG,EAAW,IAAK,EACnEF,GAAgBZ,EAACO,EAAA,CAAiB,KAAMK,EAAc,UAAWE,EAAW,SAAU,GACzF,CAEJ,CACF,EAEAN,EAAa,YAAc,eAE3B,IAAOU,EAAQV",
6
+ "names": ["jsx", "jsxs", "React", "cn", "Heading", "Text", "CartItemKsp", "CartItemShipping", "CartItemInfo", "title", "description", "kspList", "shippingText", "className", "classNames", "props", "ref", "hasKsp", "CartItemInfo_default"]
7
+ }
@@ -0,0 +1,2 @@
1
+ export { default } from './CartItemInfo.js';
2
+ export type { CartItemInfoProps } from './CartItemInfo.js';
@@ -0,0 +1,2 @@
1
+ import{default as r}from"./CartItemInfo.js";export{r as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../../src/biz-components/CartDetail/CartItemRow/components/CartItemInfo/index.ts"],
4
+ "sourcesContent": ["export { default } from './CartItemInfo.js'\nexport type { CartItemInfoProps } from './CartItemInfo.js'\n"],
5
+ "mappings": "AAAA,OAAS,WAAAA,MAAe",
6
+ "names": ["default"]
7
+ }
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ import type { CartKspCopy } from '../../../types.js';
3
+ export interface CartItemKspProps {
4
+ items: string[];
5
+ variant?: 'default' | 'inline-link' | 'verified';
6
+ defaultVisible?: number;
7
+ onExpandedChange?: (expanded: boolean) => void;
8
+ copy?: CartKspCopy;
9
+ className?: string;
10
+ classNames?: Partial<Record<'root' | 'item' | 'toggle', string>>;
11
+ }
12
+ declare const CartItemKsp: React.ForwardRefExoticComponent<CartItemKspProps & React.RefAttributes<HTMLUListElement>>;
13
+ export default CartItemKsp;
@@ -0,0 +1,2 @@
1
+ "use client";import{jsx as e,jsxs as r}from"react/jsx-runtime";import*as g from"react";import{cn as l}from"../../../../../helpers/index.js";import{DEFAULT_CART_COPY as v}from"../../../index.js";const h=()=>r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",children:[e("path",{d:"M12.0985 7.09229C12.4256 6.76873 12.9532 6.77172 13.2769 7.0988C13.6003 7.42596 13.5974 7.95357 13.2704 8.27718L9.05976 12.4438C8.73512 12.7649 8.21254 12.7648 7.88788 12.4438L5.43183 10.013C5.10471 9.68931 5.10164 9.16178 5.42532 8.83464C5.74894 8.5076 6.27654 8.5047 6.6037 8.82813L8.47382 10.6787L12.0985 7.09229Z",fill:"#4A4C56"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.47952 0.323895C8.97834 -0.107965 9.72385 -0.107965 10.2227 0.323895L10.3252 0.423179L12.2116 2.44222L14.9753 2.34945L15.1185 2.35189C15.8233 2.40286 16.3775 3.00416 16.353 3.72722L16.2595 6.49007L18.2793 8.37728C18.843 8.90431 18.8431 9.79857 18.2793 10.3255L16.2595 12.2119L16.353 14.9756C16.379 15.7468 15.7465 16.3793 14.9753 16.3534L12.2116 16.2598L10.3252 18.2796C9.79826 18.8434 8.90399 18.8433 8.37698 18.2796L6.48977 16.2598L3.72691 16.3534C2.9556 16.3794 2.32318 15.7469 2.34914 14.9756L2.44192 12.2119L0.422874 10.3255C-0.140963 9.79852 -0.140953 8.90429 0.422874 8.37728L2.44192 6.49007L2.34914 3.72722C2.32307 2.95584 2.95554 2.32338 3.72691 2.34945L6.48977 2.44222L8.37698 0.423179L8.47952 0.323895ZM7.60386 3.69141C7.34105 3.97259 6.96883 4.12673 6.58417 4.11377L4.02639 4.02669L4.11347 6.58447C4.12641 6.96914 3.97229 7.34136 3.6911 7.60417L1.82099 9.3514L3.6911 11.0986C3.97223 11.3615 4.12647 11.7337 4.11347 12.1183L4.02639 14.6753L6.58417 14.589C6.92088 14.5777 7.24804 14.6943 7.50051 14.9121L7.60386 15.0114L9.3511 16.8807L11.0983 15.0114L11.2017 14.9121C11.4542 14.6943 11.7813 14.5777 12.118 14.589L14.675 14.6753L14.5887 12.1183C14.5757 11.7336 14.7299 11.3615 15.0111 11.0986L16.8804 9.3514L15.0111 7.60417C14.7299 7.34136 14.5758 6.96914 14.5887 6.58447L14.675 4.02669L12.118 4.11377C11.7334 4.12677 11.3612 3.97254 11.0983 3.69141L9.3511 1.82129L7.60386 3.69141Z",fill:"#4A4C56"})]}),C=({expanded:s,className:a})=>e("svg",{className:l("shrink-0 transition-transform",s&&"-rotate-180",a),xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:e("path",{d:"M14.4106 6.91058C14.736 6.58514 15.2635 6.58514 15.589 6.91058C15.9144 7.23602 15.9144 7.76353 15.589 8.08897L10.589 13.089C10.2635 13.4144 9.73602 13.4144 9.41058 13.089L4.41058 8.08897C4.08514 7.76353 4.08514 7.23602 4.41058 6.91058C4.73602 6.58514 5.26353 6.58514 5.58897 6.91058L9.99977 11.3214L14.4106 6.91058Z",fill:"currentColor"})}),y=g.forwardRef(({items:s,variant:a="default",defaultVisible:w=3,onExpandedChange:f,copy:u,className:d,classNames:i={},...m},p)=>{const L=u?.showMore??v.showMore,c=u?.showLess??v.showLess,[n,b]=g.useState(!1),k=n?s.length:Math.min(w,s.length),x=s.slice(0,k);return a==="verified"?r("div",{className:d,children:[r("button",{type:"button",onClick:()=>b(o=>{const t=!o;return f?.(t),t}),className:l("flex w-full items-center gap-1",i.toggle),children:[e(h,{}),e("span",{className:"text-info-tertiary flex-1 text-left text-sm font-bold leading-[1.4]",children:n?c:L}),e(C,{className:"laptop:size-5 size-4",expanded:n})]}),n&&e("ul",{ref:p,className:l("mt-2 flex flex-col gap-1",i.item),...m,children:x.map((o,t)=>e("li",{className:l("text-info-tertiary laptop:text-base text-sm font-bold leading-normal","relative flex list-none items-center","before:bg-info-tertiary before:mx-2 before:inline-block before:size-1 before:shrink-0 before:rounded-full",i.item),children:o},t))})]}):a==="inline-link"?r("div",{className:d,children:[n&&e("ul",{ref:p,className:l("flex flex-col gap-1",i.item),...m,children:x.map((o,t)=>e("li",{className:l("text-info-tertiary text-sm leading-normal","relative flex list-none items-center","before:bg-info-tertiary before:mx-2 before:inline-block before:size-1 before:shrink-0 before:rounded-full",i.item),children:o},t))}),r("button",{type:"button",onClick:()=>b(o=>{const t=!o;return f?.(t),t}),className:l("flex items-center gap-1 font-bold text-[var(--brand-2,#005d8e)]",i.toggle),children:[e("span",{className:"leading-[1.2]",children:n?c:L}),e(C,{className:"laptop:size-5 size-4",expanded:n})]})]}):r("div",{className:l("py-3",d,i.root),children:[r("div",{className:"flex justify-between gap-4",children:[r("div",{className:"flex items-center gap-1",children:[e(h,{}),e("button",{type:"button",onClick:()=>b(o=>{const t=!o;return f?.(t),t}),className:l("flex w-full items-center gap-1 text-sm","text-info-tertiary font-bold",i.toggle),children:n?c:L})]}),e(C,{className:"laptop:size-5 size-4",expanded:n})]}),n&&e("ul",{ref:p,className:l("flex flex-col py-2",i.item),...m,children:x.map((o,t)=>e("li",{className:l("text-info-tertiary laptop:text-text-2 py-1 leading-normal","relative flex list-none items-center","before:bg-info-tertiary before:mx-2 before:inline-block before:size-1 before:shrink-0 before:rounded-full",i.item),children:o},t))})]})});y.displayName="CartItemKsp";var M=y;export{M as default};
2
+ //# sourceMappingURL=CartItemKsp.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../../src/biz-components/CartDetail/CartItemRow/components/CartItemKsp/CartItemKsp.tsx"],
4
+ "sourcesContent": ["'use client'\n\nimport * as React from 'react'\nimport { cn } from '../../../../../helpers/index.js'\nimport type { CartKspCopy } from '../../../types.js'\nimport { DEFAULT_CART_COPY } from '../../../index.js'\n\nexport interface CartItemKspProps {\n items: string[]\n variant?: 'default' | 'inline-link' | 'verified'\n defaultVisible?: number\n onExpandedChange?: (expanded: boolean) => void\n copy?: CartKspCopy\n className?: string\n classNames?: Partial<Record<'root' | 'item' | 'toggle', string>>\n}\n\nconst VerifiedIcon = () => (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"19\" height=\"19\" viewBox=\"0 0 19 19\" fill=\"none\">\n <path\n d=\"M12.0985 7.09229C12.4256 6.76873 12.9532 6.77172 13.2769 7.0988C13.6003 7.42596 13.5974 7.95357 13.2704 8.27718L9.05976 12.4438C8.73512 12.7649 8.21254 12.7648 7.88788 12.4438L5.43183 10.013C5.10471 9.68931 5.10164 9.16178 5.42532 8.83464C5.74894 8.5076 6.27654 8.5047 6.6037 8.82813L8.47382 10.6787L12.0985 7.09229Z\"\n fill=\"#4A4C56\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M8.47952 0.323895C8.97834 -0.107965 9.72385 -0.107965 10.2227 0.323895L10.3252 0.423179L12.2116 2.44222L14.9753 2.34945L15.1185 2.35189C15.8233 2.40286 16.3775 3.00416 16.353 3.72722L16.2595 6.49007L18.2793 8.37728C18.843 8.90431 18.8431 9.79857 18.2793 10.3255L16.2595 12.2119L16.353 14.9756C16.379 15.7468 15.7465 16.3793 14.9753 16.3534L12.2116 16.2598L10.3252 18.2796C9.79826 18.8434 8.90399 18.8433 8.37698 18.2796L6.48977 16.2598L3.72691 16.3534C2.9556 16.3794 2.32318 15.7469 2.34914 14.9756L2.44192 12.2119L0.422874 10.3255C-0.140963 9.79852 -0.140953 8.90429 0.422874 8.37728L2.44192 6.49007L2.34914 3.72722C2.32307 2.95584 2.95554 2.32338 3.72691 2.34945L6.48977 2.44222L8.37698 0.423179L8.47952 0.323895ZM7.60386 3.69141C7.34105 3.97259 6.96883 4.12673 6.58417 4.11377L4.02639 4.02669L4.11347 6.58447C4.12641 6.96914 3.97229 7.34136 3.6911 7.60417L1.82099 9.3514L3.6911 11.0986C3.97223 11.3615 4.12647 11.7337 4.11347 12.1183L4.02639 14.6753L6.58417 14.589C6.92088 14.5777 7.24804 14.6943 7.50051 14.9121L7.60386 15.0114L9.3511 16.8807L11.0983 15.0114L11.2017 14.9121C11.4542 14.6943 11.7813 14.5777 12.118 14.589L14.675 14.6753L14.5887 12.1183C14.5757 11.7336 14.7299 11.3615 15.0111 11.0986L16.8804 9.3514L15.0111 7.60417C14.7299 7.34136 14.5758 6.96914 14.5887 6.58447L14.675 4.02669L12.118 4.11377C11.7334 4.12677 11.3612 3.97254 11.0983 3.69141L9.3511 1.82129L7.60386 3.69141Z\"\n fill=\"#4A4C56\"\n />\n </svg>\n)\n\nconst ChevronIcon = ({ expanded, className }: { expanded: boolean; className?: string }) => (\n <svg\n className={cn('shrink-0 transition-transform', expanded && '-rotate-180', className)}\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n >\n <path\n d=\"M14.4106 6.91058C14.736 6.58514 15.2635 6.58514 15.589 6.91058C15.9144 7.23602 15.9144 7.76353 15.589 8.08897L10.589 13.089C10.2635 13.4144 9.73602 13.4144 9.41058 13.089L4.41058 8.08897C4.08514 7.76353 4.08514 7.23602 4.41058 6.91058C4.73602 6.58514 5.26353 6.58514 5.58897 6.91058L9.99977 11.3214L14.4106 6.91058Z\"\n fill=\"currentColor\"\n />\n </svg>\n)\n\nconst CartItemKsp = React.forwardRef<HTMLUListElement, CartItemKspProps>(\n (\n { items, variant = 'default', defaultVisible = 3, onExpandedChange, copy, className, classNames = {}, ...props },\n ref\n ) => {\n const resolvedShowMore = copy?.showMore ?? DEFAULT_CART_COPY.showMore\n const resolvedShowLess = copy?.showLess ?? DEFAULT_CART_COPY.showLess\n\n const [expanded, setExpanded] = React.useState(false)\n const visibleCount = expanded ? items.length : Math.min(defaultVisible, items.length)\n const visibleItems = items.slice(0, visibleCount)\n\n if (variant === 'verified') {\n return (\n <div className={className}>\n <button\n type=\"button\"\n onClick={() =>\n setExpanded(prev => {\n const next = !prev\n onExpandedChange?.(next)\n return next\n })\n }\n className={cn('flex w-full items-center gap-1', classNames.toggle)}\n >\n <VerifiedIcon />\n <span className=\"text-info-tertiary flex-1 text-left text-sm font-bold leading-[1.4]\">\n {expanded ? resolvedShowLess : resolvedShowMore}\n </span>\n <ChevronIcon className=\"laptop:size-5 size-4\" expanded={expanded} />\n </button>\n {expanded && (\n <ul ref={ref} className={cn('mt-2 flex flex-col gap-1', classNames.item)} {...props}>\n {visibleItems.map((item, index) => (\n <li\n key={index}\n className={cn(\n 'text-info-tertiary laptop:text-base text-sm font-bold leading-normal',\n 'relative flex list-none items-center',\n 'before:bg-info-tertiary before:mx-2 before:inline-block before:size-1 before:shrink-0 before:rounded-full',\n classNames.item\n )}\n >\n {item}\n </li>\n ))}\n </ul>\n )}\n </div>\n )\n }\n\n if (variant === 'inline-link') {\n return (\n <div className={className}>\n {expanded && (\n <ul ref={ref} className={cn('flex flex-col gap-1', classNames.item)} {...props}>\n {visibleItems.map((item, index) => (\n <li\n key={index}\n className={cn(\n 'text-info-tertiary text-sm leading-normal',\n 'relative flex list-none items-center',\n 'before:bg-info-tertiary before:mx-2 before:inline-block before:size-1 before:shrink-0 before:rounded-full',\n classNames.item\n )}\n >\n {item}\n </li>\n ))}\n </ul>\n )}\n <button\n type=\"button\"\n onClick={() =>\n setExpanded(prev => {\n const next = !prev\n onExpandedChange?.(next)\n return next\n })\n }\n className={cn('flex items-center gap-1 font-bold text-[var(--brand-2,#005d8e)]', classNames.toggle)}\n >\n <span className=\"leading-[1.2]\">{expanded ? resolvedShowLess : resolvedShowMore}</span>\n <ChevronIcon className=\"laptop:size-5 size-4\" expanded={expanded} />\n </button>\n </div>\n )\n }\n\n return (\n <div className={cn('py-3', className, classNames.root)}>\n <div className=\"flex justify-between gap-4\">\n <div className=\"flex items-center gap-1\">\n <VerifiedIcon />\n <button\n type=\"button\"\n onClick={() =>\n setExpanded(prev => {\n const next = !prev\n onExpandedChange?.(next)\n return next\n })\n }\n className={cn(\n 'flex w-full items-center gap-1 text-sm',\n 'text-info-tertiary font-bold',\n classNames.toggle\n )}\n >\n {expanded ? resolvedShowLess : resolvedShowMore}\n </button>\n </div>\n <ChevronIcon className=\"laptop:size-5 size-4\" expanded={expanded} />\n </div>\n {expanded && (\n <ul ref={ref} className={cn('flex flex-col py-2', classNames.item)} {...props}>\n {visibleItems.map((item, index) => (\n <li\n key={index}\n className={cn(\n 'text-info-tertiary laptop:text-text-2 py-1 leading-normal',\n 'relative flex list-none items-center',\n 'before:bg-info-tertiary before:mx-2 before:inline-block before:size-1 before:shrink-0 before:rounded-full',\n classNames.item\n )}\n >\n {item}\n </li>\n ))}\n </ul>\n )}\n </div>\n )\n }\n)\n\nCartItemKsp.displayName = 'CartItemKsp'\n\nexport default CartItemKsp\n"],
5
+ "mappings": "aAkBE,OACE,OAAAA,EADF,QAAAC,MAAA,oBAhBF,UAAYC,MAAW,QACvB,OAAS,MAAAC,MAAU,kCAEnB,OAAS,qBAAAC,MAAyB,oBAYlC,MAAMC,EAAe,IACnBJ,EAAC,OAAI,MAAM,6BAA6B,MAAM,KAAK,OAAO,KAAK,QAAQ,YAAY,KAAK,OACtF,UAAAD,EAAC,QACC,EAAE,+TACF,KAAK,UACP,EACAA,EAAC,QACC,SAAS,UACT,SAAS,UACT,EAAE,m3CACF,KAAK,UACP,GACF,EAGIM,EAAc,CAAC,CAAE,SAAAC,EAAU,UAAAC,CAAU,IACzCR,EAAC,OACC,UAAWG,EAAG,gCAAiCI,GAAY,cAAeC,CAAS,EACnF,MAAM,6BACN,MAAM,KACN,OAAO,KACP,QAAQ,YACR,KAAK,OAEL,SAAAR,EAAC,QACC,EAAE,8TACF,KAAK,eAC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,EACT,4CACA,uCACA,4GACAY,EAAW,IACb,EAEC,SAAAU,GARIC,CASP,CACD,EACH,EAEFzB,EAAC,UACC,KAAK,SACL,QAAS,IACPmB,EAAYG,GAAQ,CAClB,MAAMC,EAAO,CAACD,EACd,OAAAV,IAAmBW,CAAI,EAChBA,CACT,CAAC,EAEH,UAAWrB,EAAG,kEAAmEY,EAAW,MAAM,EAElG,UAAAf,EAAC,QAAK,UAAU,gBAAiB,SAAAO,EAAWY,EAAmBD,EAAiB,EAChFlB,EAACM,EAAA,CAAY,UAAU,uBAAuB,SAAUC,EAAU,GACpE,GACF,EAKFN,EAAC,OAAI,UAAWE,EAAG,OAAQK,EAAWO,EAAW,IAAI,EACnD,UAAAd,EAAC,OAAI,UAAU,6BACb,UAAAA,EAAC,OAAI,UAAU,0BACb,UAAAD,EAACK,EAAA,EAAa,EACdL,EAAC,UACC,KAAK,SACL,QAAS,IACPoB,EAAYG,GAAQ,CAClB,MAAMC,EAAO,CAACD,EACd,OAAAV,IAAmBW,CAAI,EAChBA,CACT,CAAC,EAEH,UAAWrB,EACT,yCACA,gCACAY,EAAW,MACb,EAEC,SAAAR,EAAWY,EAAmBD,EACjC,GACF,EACAlB,EAACM,EAAA,CAAY,UAAU,uBAAuB,SAAUC,EAAU,GACpE,EACCA,GACCP,EAAC,MAAG,IAAKiB,EAAK,UAAWd,EAAG,qBAAsBY,EAAW,IAAI,EAAI,GAAGC,EACrE,SAAAM,EAAa,IAAI,CAACG,EAAMC,IACvB1B,EAAC,MAEC,UAAWG,EACT,4DACA,uCACA,4GACAY,EAAW,IACb,EAEC,SAAAU,GARIC,CASP,CACD,EACH,GAEJ,CAEJ,CACF,EAEAjB,EAAY,YAAc,cAE1B,IAAOkB,EAAQlB",
6
+ "names": ["jsx", "jsxs", "React", "cn", "DEFAULT_CART_COPY", "VerifiedIcon", "ChevronIcon", "expanded", "className", "CartItemKsp", "items", "variant", "defaultVisible", "onExpandedChange", "copy", "classNames", "props", "ref", "resolvedShowMore", "resolvedShowLess", "setExpanded", "visibleCount", "visibleItems", "prev", "next", "item", "index", "CartItemKsp_default"]
7
+ }
@@ -0,0 +1,2 @@
1
+ export { default } from './CartItemKsp.js';
2
+ export type { CartItemKspProps } from './CartItemKsp.js';
@@ -0,0 +1,2 @@
1
+ import{default as e}from"./CartItemKsp.js";export{e as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../../src/biz-components/CartDetail/CartItemRow/components/CartItemKsp/index.ts"],
4
+ "sourcesContent": ["export { default } from './CartItemKsp.js'\nexport type { CartItemKspProps } from './CartItemKsp.js'\n"],
5
+ "mappings": "AAAA,OAAS,WAAAA,MAAe",
6
+ "names": ["default"]
7
+ }
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import type { CartItemRemoveConfirmProps } from './types.js';
3
+ declare const CartItemRemoveConfirm: React.ForwardRefExoticComponent<CartItemRemoveConfirmProps & React.RefAttributes<HTMLDivElement>>;
4
+ export default CartItemRemoveConfirm;
@@ -0,0 +1,2 @@
1
+ "use client";import{jsx as e,jsxs as a}from"react/jsx-runtime";import*as n from"react";import*as m from"@radix-ui/react-dialog";import{cn as t}from"../../../../../helpers/index.js";import{Dialog as b,DialogPortal as w,DialogOverlay as u,Button as l}from"../../../../../components/index.js";import{DEFAULT_CART_COPY as D}from"../../../index.js";const L=()=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:e("path",{d:"M4.69617 4.69624C5.02156 4.37076 5.54924 4.37081 5.87468 4.69624L9.99947 8.82103L14.1243 4.69624C14.4497 4.37081 14.9774 4.37076 15.3028 4.69624C15.6281 5.0217 15.6281 5.54931 15.3028 5.87476L11.178 9.99954L15.3028 14.1243C15.6281 14.4498 15.6281 14.9774 15.3028 15.3028C14.9774 15.6283 14.4497 15.6283 14.1243 15.3028L9.99947 11.1781L5.87468 15.3028C5.54924 15.6283 5.02156 15.6283 4.69617 15.3028C4.3708 14.9774 4.37081 14.4498 4.69617 14.1243L8.82096 9.99954L4.69617 5.87476C4.37081 5.54931 4.3708 5.0217 4.69617 4.69624Z",fill:"#080A0F"})}),p=n.forwardRef(({open:c,confirmText:f,copy:v,onConfirm:C,onCancel:s,onClose:r,classNames:o={}},x)=>{const i={...D,...v},d=n.useCallback(h=>{h||r?.()},[r]),g=()=>{s?.(),r?.()},y=()=>{C?.(),r?.()};return e(b,{open:c,onOpenChange:d,children:a(w,{children:[e(u,{className:t("cart-item-remove-confirm-overlay bg-black/60",o.overlay)}),a(m.Content,{ref:x,className:t("cart-item-remove-confirm-root","laptop:max-w-[420px] rounded-box fixed left-1/2 top-1/2 z-[1001] flex w-full max-w-[83.6%] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden bg-white",o.root),children:[e(m.Close,{className:t("cart-item-remove-confirm-close-btn laptop:h-12 text-info-tertiary relative h-[44px]",o.closeBtn),children:e("div",{className:"absolute right-4 top-4",children:e(L,{})})}),e("div",{className:t("cart-item-remove-confirm-body laptop:px-6 laptop:py-8 p-4",o.body),children:e("p",{className:t("cart-item-remove-confirm-text text-info-primary laptop:text-2xl text-center text-xl font-bold leading-[1.2]",o.confirmText),children:f??i.removeConfirmText})}),e("div",{className:t("cart-item-remove-confirm-footer laptop:gap-4 laptop:px-8 laptop:py-6 flex flex-col gap-2 px-4 pb-6 pt-4",o.footer),children:a("div",{className:"flex items-center justify-center gap-3",children:[e(l,{variant:"secondary",size:"lg",className:t("cart-item-remove-confirm-cancel-btn",o.cancelBtn),onClick:g,children:i.removeConfirmCancel??"Cancel"}),e(l,{variant:"primary",size:"lg",className:t("cart-item-remove-confirm-confirm-btn",o.confirmBtn),onClick:y,children:i.removeConfirmConfirm??"Confirm"})]})})]})]})})});p.displayName="CartItemRemoveConfirm";var I=p;export{I as default};
2
+ //# sourceMappingURL=CartItemRemoveConfirm.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../../src/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/CartItemRemoveConfirm.tsx"],
4
+ "sourcesContent": ["'use client'\n\nimport * as React from 'react'\nimport * as DialogPrimitive from '@radix-ui/react-dialog'\nimport { cn } from '../../../../../helpers/index.js'\nimport { Dialog, DialogPortal, DialogOverlay, Button } from '../../../../../components/index.js'\nimport type { CartItemRemoveConfirmProps } from './types.js'\nimport { DEFAULT_CART_COPY } from '../../../index.js'\n\nconst CloseIcon = () => (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\n <path\n d=\"M4.69617 4.69624C5.02156 4.37076 5.54924 4.37081 5.87468 4.69624L9.99947 8.82103L14.1243 4.69624C14.4497 4.37081 14.9774 4.37076 15.3028 4.69624C15.6281 5.0217 15.6281 5.54931 15.3028 5.87476L11.178 9.99954L15.3028 14.1243C15.6281 14.4498 15.6281 14.9774 15.3028 15.3028C14.9774 15.6283 14.4497 15.6283 14.1243 15.3028L9.99947 11.1781L5.87468 15.3028C5.54924 15.6283 5.02156 15.6283 4.69617 15.3028C4.3708 14.9774 4.37081 14.4498 4.69617 14.1243L8.82096 9.99954L4.69617 5.87476C4.37081 5.54931 4.3708 5.0217 4.69617 4.69624Z\"\n fill=\"#080A0F\"\n />\n </svg>\n)\n\nconst CartItemRemoveConfirm = React.forwardRef<HTMLDivElement, CartItemRemoveConfirmProps>(\n ({ open, confirmText, copy, onConfirm, onCancel, onClose, classNames = {} }, ref) => {\n const c = { ...DEFAULT_CART_COPY, ...copy }\n\n const handleOpenChange = React.useCallback(\n (isOpen: boolean) => {\n if (!isOpen) {\n onClose?.()\n }\n },\n [onClose]\n )\n\n const handleCancel = () => {\n onCancel?.()\n onClose?.()\n }\n\n const handleConfirm = () => {\n onConfirm?.()\n onClose?.()\n }\n\n return (\n <Dialog open={open} onOpenChange={handleOpenChange}>\n <DialogPortal>\n <DialogOverlay className={cn('cart-item-remove-confirm-overlay bg-black/60', classNames.overlay)} />\n <DialogPrimitive.Content\n ref={ref}\n className={cn(\n 'cart-item-remove-confirm-root',\n 'laptop:max-w-[420px] rounded-box fixed left-1/2 top-1/2 z-[1001] flex w-full max-w-[83.6%] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden bg-white',\n classNames.root\n )}\n >\n <DialogPrimitive.Close\n className={cn(\n 'cart-item-remove-confirm-close-btn laptop:h-12 text-info-tertiary relative h-[44px]',\n classNames.closeBtn\n )}\n >\n <div className=\"absolute right-4 top-4\">\n <CloseIcon />\n </div>\n </DialogPrimitive.Close>\n <div className={cn('cart-item-remove-confirm-body laptop:px-6 laptop:py-8 p-4', classNames.body)}>\n <p\n className={cn(\n 'cart-item-remove-confirm-text text-info-primary laptop:text-2xl text-center text-xl font-bold leading-[1.2]',\n classNames.confirmText\n )}\n >\n {confirmText ?? c.removeConfirmText}\n </p>\n </div>\n\n <div\n className={cn(\n 'cart-item-remove-confirm-footer laptop:gap-4 laptop:px-8 laptop:py-6 flex flex-col gap-2 px-4 pb-6 pt-4',\n classNames.footer\n )}\n >\n <div className=\"flex items-center justify-center gap-3\">\n <Button\n variant=\"secondary\"\n size=\"lg\"\n className={cn('cart-item-remove-confirm-cancel-btn', classNames.cancelBtn)}\n onClick={handleCancel}\n >\n {c.removeConfirmCancel ?? 'Cancel'}\n </Button>\n <Button\n variant=\"primary\"\n size=\"lg\"\n className={cn('cart-item-remove-confirm-confirm-btn', classNames.confirmBtn)}\n onClick={handleConfirm}\n >\n {c.removeConfirmConfirm ?? 'Confirm'}\n </Button>\n </div>\n </div>\n </DialogPrimitive.Content>\n </DialogPortal>\n </Dialog>\n )\n }\n)\n\nCartItemRemoveConfirm.displayName = 'CartItemRemoveConfirm'\n\nexport default CartItemRemoveConfirm\n"],
5
+ "mappings": "aAWI,cAAAA,EAqEU,QAAAC,MArEV,oBATJ,UAAYC,MAAW,QACvB,UAAYC,MAAqB,yBACjC,OAAS,MAAAC,MAAU,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AAjB,EAAC,OAAI,UAAU,yCACb,UAAAD,EAACQ,EAAA,CACC,QAAQ,YACR,KAAK,KACL,UAAWJ,EAAG,sCAAuCc,EAAW,SAAS,EACzE,QAASK,EAER,SAAAH,EAAE,qBAAuB,SAC5B,EACApB,EAACQ,EAAA,CACC,QAAQ,UACR,KAAK,KACL,UAAWJ,EAAG,uCAAwCc,EAAW,UAAU,EAC3E,QAASM,EAER,SAAAJ,EAAE,sBAAwB,UAC7B,GACF,EACF,GACF,GACF,EACF,CAEJ,CACF,EAEAT,EAAsB,YAAc,wBAEpC,IAAOc,EAAQd",
6
+ "names": ["jsx", "jsxs", "React", "DialogPrimitive", "cn", "Dialog", "DialogPortal", "DialogOverlay", "Button", "DEFAULT_CART_COPY", "CloseIcon", "CartItemRemoveConfirm", "open", "confirmText", "copy", "onConfirm", "onCancel", "onClose", "classNames", "ref", "c", "handleOpenChange", "isOpen", "handleCancel", "handleConfirm", "CartItemRemoveConfirm_default"]
7
+ }
@@ -0,0 +1,2 @@
1
+ export { default } from './CartItemRemoveConfirm.js';
2
+ export type { CartItemRemoveConfirmProps, CartItemRemoveConfirmSemanticName } from './types.js';
@@ -0,0 +1,2 @@
1
+ import{default as t}from"./CartItemRemoveConfirm.js";export{t as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../../src/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/index.ts"],
4
+ "sourcesContent": ["export { default } from './CartItemRemoveConfirm.js'\nexport type { CartItemRemoveConfirmProps, CartItemRemoveConfirmSemanticName } from './types.js'\n"],
5
+ "mappings": "AAAA,OAAS,WAAAA,MAAe",
6
+ "names": ["default"]
7
+ }
@@ -0,0 +1,11 @@
1
+ import type { CartItemRemoveConfirmCopy } from '../../../types.js';
2
+ export type CartItemRemoveConfirmSemanticName = 'root' | 'overlay' | 'closeBtn' | 'body' | 'confirmText' | 'footer' | 'cancelBtn' | 'confirmBtn';
3
+ export interface CartItemRemoveConfirmProps {
4
+ open: boolean;
5
+ confirmText?: string;
6
+ copy?: CartItemRemoveConfirmCopy;
7
+ onConfirm?: () => void;
8
+ onCancel?: () => void;
9
+ onClose?: () => void;
10
+ classNames?: Partial<Record<CartItemRemoveConfirmSemanticName, string>>;
11
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ export interface CartItemShippingProps {
3
+ text: string;
4
+ className?: string;
5
+ classNames?: Partial<Record<'root' | 'icon' | 'text', string>>;
6
+ }
7
+ declare const CartItemShipping: React.ForwardRefExoticComponent<CartItemShippingProps & React.RefAttributes<HTMLDivElement>>;
8
+ export default CartItemShipping;