@shopgate/engage 7.30.0-alpha.1 → 7.30.0-alpha.11

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 (1506) hide show
  1. package/a11y/action-creators/index.js +13 -3
  2. package/a11y/components/FocusTrap/index.js +2 -1
  3. package/a11y/components/LiveMessage/index.js +26 -2
  4. package/a11y/components/LiveMessage/styles.js +12 -1
  5. package/a11y/components/LiveMessenger/constants.js +3 -1
  6. package/a11y/components/LiveMessenger/helpers.js +24 -3
  7. package/a11y/components/LiveMessenger/index.js +65 -4
  8. package/a11y/components/ModalStateTracker/index.js +20 -2
  9. package/a11y/components/Navigation/index.js +44 -2
  10. package/a11y/components/Navigation/style.js +12 -1
  11. package/a11y/components/Section/index.js +71 -4
  12. package/a11y/components/VisuallyHidden/index.js +26 -2
  13. package/a11y/components/index.js +7 -1
  14. package/a11y/constants/index.js +3 -1
  15. package/a11y/helpers/index.js +1 -1
  16. package/a11y/hooks/index.js +49 -6
  17. package/a11y/index.js +5 -1
  18. package/a11y/reducers/index.js +37 -2
  19. package/a11y/selectors/index.js +9 -3
  20. package/a11y/styles.js +16 -2
  21. package/account/actions/addContacts.js +31 -2
  22. package/account/actions/deleteContact.js +25 -2
  23. package/account/actions/deleteCustomer.js +24 -2
  24. package/account/actions/fetchContacts.js +26 -2
  25. package/account/actions/fetchCustomer.js +27 -2
  26. package/account/actions/updateContact.js +32 -2
  27. package/account/actions/updateCustomer.js +27 -2
  28. package/account/components/Account/Account.connector.js +9 -2
  29. package/account/components/Account/Account.js +75 -2
  30. package/account/components/Account/Account.style.js +31 -1
  31. package/account/components/Account/index.js +1 -1
  32. package/account/components/Profile/Profile.config.js +35 -2
  33. package/account/components/Profile/Profile.constraints.js +25 -1
  34. package/account/components/Profile/Profile.js +27 -1
  35. package/account/components/Profile/Profile.provider.js +228 -14
  36. package/account/components/Profile/ProfileAddressBook.js +98 -3
  37. package/account/components/Profile/ProfileAddressCard.js +179 -2
  38. package/account/components/Profile/ProfileForm.js +135 -2
  39. package/account/components/Profile/ProfileHeader.js +38 -2
  40. package/account/components/Profile/index.js +1 -1
  41. package/account/components/ProfileContact/ProfileContact.config.js +106 -2
  42. package/account/components/ProfileContact/ProfileContact.constraints.js +62 -2
  43. package/account/components/ProfileContact/ProfileContact.js +196 -5
  44. package/account/components/ProfileContact/index.js +1 -1
  45. package/account/components/index.js +1 -1
  46. package/account/constants/actions.js +24 -1
  47. package/account/constants/index.js +3 -1
  48. package/account/constants/pipelines.js +1 -1
  49. package/account/constants/routes.js +6 -1
  50. package/account/helper/form.js +215 -24
  51. package/account/index.js +2 -1
  52. package/account/reducers/index.js +65 -2
  53. package/account/selectors/contacts.js +6 -2
  54. package/account/selectors/customer.js +6 -2
  55. package/app-rating/action-creators/appStart.js +13 -3
  56. package/app-rating/action-creators/ordersPlaced.js +13 -3
  57. package/app-rating/action-creators/popup.js +20 -4
  58. package/app-rating/action-creators/timer.js +13 -3
  59. package/app-rating/actions/showModal.js +110 -9
  60. package/app-rating/constants/index.js +14 -2
  61. package/app-rating/helpers/index.js +23 -2
  62. package/app-rating/reducers/index.js +102 -2
  63. package/app-rating/selectors/appRating.js +2 -1
  64. package/app-rating/subscriptions/index.js +133 -23
  65. package/back-in-stock/actions/index.js +86 -4
  66. package/back-in-stock/components/BackInStockButton/connector.js +8 -1
  67. package/back-in-stock/components/BackInStockButton/index.js +107 -3
  68. package/back-in-stock/components/BackInStockButton/style.js +43 -1
  69. package/back-in-stock/components/CharacteristicsButton/connector.js +21 -2
  70. package/back-in-stock/components/CharacteristicsButton/index.js +30 -2
  71. package/back-in-stock/components/ProductInfoBackInStockButton/connector.js +17 -2
  72. package/back-in-stock/components/ProductInfoBackInStockButton/index.js +40 -2
  73. package/back-in-stock/components/Subscriptions/components/List/index.js +62 -2
  74. package/back-in-stock/components/Subscriptions/components/Subscription/index.js +174 -3
  75. package/back-in-stock/components/Subscriptions/index.js +11 -2
  76. package/back-in-stock/components/index.js +4 -1
  77. package/back-in-stock/constants/Actions.js +9 -1
  78. package/back-in-stock/constants/Common.js +1 -1
  79. package/back-in-stock/constants/Pipelines.js +3 -1
  80. package/back-in-stock/constants/Portals.js +18 -4
  81. package/back-in-stock/constants/index.js +4 -1
  82. package/back-in-stock/hooks/index.js +6 -2
  83. package/back-in-stock/providers/BackInStockSubscriptionsProvider.connector.js +21 -3
  84. package/back-in-stock/providers/BackInStockSubscriptionsProvider.context.js +3 -1
  85. package/back-in-stock/providers/BackInStockSubscriptionsProvider.js +51 -3
  86. package/back-in-stock/providers/index.js +2 -1
  87. package/back-in-stock/reducers/index.js +92 -2
  88. package/back-in-stock/selectors/index.js +97 -19
  89. package/back-in-stock/streams/index.js +13 -1
  90. package/back-in-stock/subscriptions/index.js +46 -3
  91. package/cart/cart.constants.js +6 -1
  92. package/cart/cart.context.js +40 -1
  93. package/cart/cart.helpers.js +125 -6
  94. package/cart/cart.hooks.js +13 -3
  95. package/cart/cart.selectors.js +113 -10
  96. package/cart/cart.types.js +47 -1
  97. package/cart/components/CartHeaderWide/CartHeaderWide.js +12 -2
  98. package/cart/components/CartHeaderWide/CartHeaderWide.style.js +10 -1
  99. package/cart/components/CartHeaderWide/index.js +1 -1
  100. package/cart/components/CartItem/CartItem.hooks.js +10 -3
  101. package/cart/components/CartItem/CartItem.js +59 -2
  102. package/cart/components/CartItem/CartItem.style.js +23 -1
  103. package/cart/components/CartItem/CartItemCoupon.connector.js +26 -5
  104. package/cart/components/CartItem/CartItemCoupon.js +167 -18
  105. package/cart/components/CartItem/CartItemCoupon.style.js +30 -2
  106. package/cart/components/CartItem/CartItemCoupon.types.js +21 -0
  107. package/cart/components/CartItem/CartItemCouponCode.js +17 -2
  108. package/cart/components/CartItem/CartItemCouponDelete.js +21 -2
  109. package/cart/components/CartItem/CartItemCouponDelete.style.js +7 -1
  110. package/cart/components/CartItem/CartItemCouponFreeShipping.js +20 -2
  111. package/cart/components/CartItem/CartItemCouponIcon.js +24 -2
  112. package/cart/components/CartItem/CartItemCouponLayout.js +81 -3
  113. package/cart/components/CartItem/CartItemCouponLayout.style.js +29 -5
  114. package/cart/components/CartItem/CartItemCouponPrice.js +37 -3
  115. package/cart/components/CartItem/CartItemCouponPrice.style.js +10 -1
  116. package/cart/components/CartItem/CartItemCouponTitle.js +20 -2
  117. package/cart/components/CartItem/CartItemCouponTitle.style.js +7 -1
  118. package/cart/components/CartItem/CartItemProduct.js +59 -3
  119. package/cart/components/CartItem/CartItemProduct.style.js +5 -1
  120. package/cart/components/CartItem/CartItemProductLayout.js +169 -4
  121. package/cart/components/CartItem/CartItemProductLayout.style.js +94 -1
  122. package/cart/components/CartItem/CartItemProductLayoutWide.js +139 -3
  123. package/cart/components/CartItem/CartItemProductLayoutWide.style.js +113 -1
  124. package/cart/components/CartItem/CartItemProductLayoutWideFulfillmentLabel.js +27 -4
  125. package/cart/components/CartItem/CartItemProductLayoutWideFulfillmentLabel.style.js +10 -1
  126. package/cart/components/CartItem/CartItemProductLayoutWideOrderDetails.js +39 -3
  127. package/cart/components/CartItem/CartItemProductLayoutWideRemoveItem.js +25 -4
  128. package/cart/components/CartItem/CartItemProductLayoutWideRemoveItem.style.js +16 -1
  129. package/cart/components/CartItem/CartItemProductOrderDetails.js +83 -3
  130. package/cart/components/CartItem/CartItemProductOrderDetails.style.js +28 -1
  131. package/cart/components/CartItem/CartItemProductPriceCaption.js +42 -4
  132. package/cart/components/CartItem/CartItemProductPriceCaption.style.js +11 -1
  133. package/cart/components/CartItem/CartItemProductPriceList.js +95 -4
  134. package/cart/components/CartItem/CartItemProductPriceListPromotion.js +178 -5
  135. package/cart/components/CartItem/CartItemProductProvider.connector.js +46 -5
  136. package/cart/components/CartItem/CartItemProductProvider.context.js +3 -1
  137. package/cart/components/CartItem/CartItemProductProvider.js +140 -6
  138. package/cart/components/CartItem/CartItemProductProvider.types.js +36 -1
  139. package/cart/components/CartItem/CartItemProductProviderLegacy.js +75 -7
  140. package/cart/components/CartItem/CartItemProductTitle.js +104 -2
  141. package/cart/components/CartItem/CartItemProductTitle.style.js +28 -1
  142. package/cart/components/CartItem/CartItemProvider.connector.js +24 -2
  143. package/cart/components/CartItem/CartItemProvider.context.js +3 -1
  144. package/cart/components/CartItem/CartItemProvider.js +67 -3
  145. package/cart/components/CartItem/CartItemQuantityPicker.js +145 -31
  146. package/cart/components/CartItem/CartItemQuantityPicker.style.js +18 -1
  147. package/cart/components/CartItem/CartItemSubstitution.connector.js +12 -2
  148. package/cart/components/CartItem/CartItemSubstitution.js +44 -3
  149. package/cart/components/CartItem/CartItemSubstitution.style.js +9 -1
  150. package/cart/components/CartItem/index.js +3 -1
  151. package/cart/components/CartItems/CartItem.connector.js +12 -2
  152. package/cart/components/CartItems/CartItemCard.js +40 -3
  153. package/cart/components/CartItems/CartItemCard.style.js +52 -1
  154. package/cart/components/CartItems/CartItemCardReservation.js +69 -3
  155. package/cart/components/CartItems/CartItemCardReservationAccordion.js +51 -4
  156. package/cart/components/CartItems/CartItemCardReservationLabel.js +57 -4
  157. package/cart/components/CartItems/CartItemCardReservationLabelChangeStore.js +36 -2
  158. package/cart/components/CartItems/CartItemCardReservationLabelChangeStore.style.js +12 -1
  159. package/cart/components/CartItems/CartItemGroup.js +34 -3
  160. package/cart/components/CartItems/CartItemGroup.style.js +39 -1
  161. package/cart/components/CartItems/CartItemGroupReservation.js +64 -4
  162. package/cart/components/CartItems/CartItemGroupReservationLabel.js +35 -4
  163. package/cart/components/CartItems/CartItemGroupShipping.js +23 -2
  164. package/cart/components/CartItems/CartItems.js +105 -3
  165. package/cart/components/CartItems/CartItems.style.js +21 -1
  166. package/cart/components/CartItems/CartItemsHeaderWide.connector.js +20 -2
  167. package/cart/components/CartItems/CartItemsHeaderWide.js +78 -3
  168. package/cart/components/CartItems/CartItemsHeaderWide.style.js +60 -1
  169. package/cart/components/CartItems/CartItemsSubscription.connector.js +9 -2
  170. package/cart/components/CartItems/CartItemsSubstitution.js +49 -2
  171. package/cart/components/CartItems/index.js +2 -1
  172. package/cart/components/CartSummaryWide/CartSummaryWide.connector.js +13 -2
  173. package/cart/components/CartSummaryWide/CartSummaryWide.js +50 -2
  174. package/cart/components/CartSummaryWide/CartSummaryWide.style.js +37 -1
  175. package/cart/components/CartSummaryWide/CartSummaryWideCheckoutButton.connector.js +9 -2
  176. package/cart/components/CartSummaryWide/CartSummaryWideCheckoutButton.js +52 -3
  177. package/cart/components/CartSummaryWide/CartSummaryWideCheckoutButton.style.js +21 -1
  178. package/cart/components/CartSummaryWide/CartSummaryWideFooter.js +19 -2
  179. package/cart/components/CartSummaryWide/index.js +1 -1
  180. package/cart/components/PaymentBar/PaymentBar.js +25 -2
  181. package/cart/components/PaymentBar/PaymentBarAppliedPromotions.connector.js +9 -2
  182. package/cart/components/PaymentBar/PaymentBarAppliedPromotions.js +57 -2
  183. package/cart/components/PaymentBar/PaymentBarCheckoutButton.connector.js +9 -2
  184. package/cart/components/PaymentBar/PaymentBarCheckoutButton.js +46 -2
  185. package/cart/components/PaymentBar/PaymentBarCheckoutButton.style.js +15 -1
  186. package/cart/components/PaymentBar/PaymentBarContent.js +60 -2
  187. package/cart/components/PaymentBar/PaymentBarContent.style.js +40 -1
  188. package/cart/components/PaymentBar/PaymentBarDiscounts.connector.js +9 -2
  189. package/cart/components/PaymentBar/PaymentBarDiscounts.js +60 -3
  190. package/cart/components/PaymentBar/PaymentBarGrandTotal.connector.js +9 -2
  191. package/cart/components/PaymentBar/PaymentBarGrandTotal.js +59 -3
  192. package/cart/components/PaymentBar/PaymentBarPromotionCouponMessages.js +73 -2
  193. package/cart/components/PaymentBar/PaymentBarPromotionCoupons.connector.js +15 -3
  194. package/cart/components/PaymentBar/PaymentBarPromotionCoupons.js +111 -2
  195. package/cart/components/PaymentBar/PaymentBarPromotionalText.js +116 -2
  196. package/cart/components/PaymentBar/PaymentBarReserveButton.connector.js +6 -1
  197. package/cart/components/PaymentBar/PaymentBarReserveButton.js +53 -4
  198. package/cart/components/PaymentBar/PaymentBarShippingCost.connector.js +9 -2
  199. package/cart/components/PaymentBar/PaymentBarShippingCost.js +57 -3
  200. package/cart/components/PaymentBar/PaymentBarSubTotal.connector.js +9 -2
  201. package/cart/components/PaymentBar/PaymentBarSubTotal.js +54 -3
  202. package/cart/components/PaymentBar/PaymentBarTax.connector.js +9 -2
  203. package/cart/components/PaymentBar/PaymentBarTax.js +61 -3
  204. package/cart/components/PaymentBar/index.js +1 -1
  205. package/cart/components/Substitution/connector.js +9 -2
  206. package/cart/components/Substitution/index.js +55 -3
  207. package/cart/components/Substitution/style.js +32 -1
  208. package/cart/components/SupplementalContent/SupplementalContent.connector.js +12 -2
  209. package/cart/components/SupplementalContent/SupplementalContent.js +31 -2
  210. package/cart/components/SupplementalContent/SupplementalContent.styles.js +29 -1
  211. package/cart/components/SupplementalContent/index.js +1 -1
  212. package/cart/index.js +54 -10
  213. package/cart/streams/index.js +1 -1
  214. package/category/actions/index.js +5 -1
  215. package/category/components/CategoryImage/connector.js +9 -2
  216. package/category/components/CategoryImage/index.js +38 -2
  217. package/category/components/CategoryList/index.js +100 -2
  218. package/category/components/CategoryList/style.js +20 -1
  219. package/category/components/index.js +2 -1
  220. package/category/constants/index.js +3 -1
  221. package/category/helpers/index.js +1 -1
  222. package/category/index.js +10 -1
  223. package/category/selectors/index.js +1 -1
  224. package/category/streams/index.js +5 -1
  225. package/checkout/action-creators/addCheckoutCampaign.js +8 -2
  226. package/checkout/action-creators/clearCheckoutCampaign.js +7 -2
  227. package/checkout/action-creators/clearCheckoutOrder.js +7 -2
  228. package/checkout/action-creators/index.js +3 -1
  229. package/checkout/action-creators/validationErrorsCheckout.js +8 -2
  230. package/checkout/actions/errorCheckout.js +69 -7
  231. package/checkout/actions/fetchCheckoutOrder.js +28 -2
  232. package/checkout/actions/fetchPaymentMethods.js +25 -2
  233. package/checkout/actions/index.js +7 -1
  234. package/checkout/actions/initializeCheckout.js +26 -2
  235. package/checkout/actions/prepareCheckout.js +84 -6
  236. package/checkout/actions/submitCheckoutOrder.js +34 -2
  237. package/checkout/actions/updateCheckoutOrder.js +33 -2
  238. package/checkout/components/AddressBook/AddressBook.js +14 -2
  239. package/checkout/components/AddressBook/AddressList.js +149 -4
  240. package/checkout/components/AddressBook/index.js +1 -1
  241. package/checkout/components/AddressBookContact/AddressBookContact.js +48 -2
  242. package/checkout/components/AddressBookContact/index.js +1 -1
  243. package/checkout/components/Checkout/Checkout.js +78 -2
  244. package/checkout/components/Checkout/CheckoutActions.js +47 -2
  245. package/checkout/components/Checkout/CheckoutAddress.js +133 -3
  246. package/checkout/components/Checkout/CheckoutHeader.js +60 -2
  247. package/checkout/components/Checkout/CheckoutPickupContactForm.config.js +62 -2
  248. package/checkout/components/Checkout/CheckoutPickupContactForm.js +94 -2
  249. package/checkout/components/Checkout/CheckoutSection.js +168 -2
  250. package/checkout/components/Checkout/CheckoutSectionInfo.js +75 -2
  251. package/checkout/components/Checkout/CheckoutSectionMessages.js +56 -2
  252. package/checkout/components/Checkout/CheckoutSummary.js +72 -2
  253. package/checkout/components/CheckoutConfirmation/CheckoutConfirmation.connector.js +13 -2
  254. package/checkout/components/CheckoutConfirmation/CheckoutConfirmation.js +257 -5
  255. package/checkout/components/CheckoutConfirmation/CheckoutConfirmationBilledTo.js +59 -2
  256. package/checkout/components/CheckoutConfirmation/CheckoutConfirmationOrderContact.js +54 -2
  257. package/checkout/components/CheckoutConfirmation/CheckoutConfirmationOrderSummary.js +62 -2
  258. package/checkout/components/CheckoutConfirmation/CheckoutConfirmationPickUpContact.js +60 -2
  259. package/checkout/components/CheckoutConfirmation/CheckoutConfirmationPickupNotes.js +24 -2
  260. package/checkout/components/CheckoutConfirmation/CheckoutConfirmationSection.js +179 -2
  261. package/checkout/components/CheckoutConfirmation/CheckoutConfirmationShippedTo.js +49 -2
  262. package/checkout/components/CheckoutConfirmation/index.js +6 -1
  263. package/checkout/components/GuestCheckout/GuestCheckout.js +75 -2
  264. package/checkout/components/GuestCheckout/GuestCheckoutOptIn.config.js +13 -2
  265. package/checkout/components/GuestCheckout/GuestCheckoutOptIn.js +68 -2
  266. package/checkout/components/GuestCheckout/GuestCheckoutPickup.js +54 -2
  267. package/checkout/components/GuestCheckout/GuestCheckoutPickupNotes.config.js +13 -2
  268. package/checkout/components/GuestCheckout/GuestCheckoutPickupNotes.js +57 -2
  269. package/checkout/components/PaymentMethodButton/PaymentMethodButton.js +61 -2
  270. package/checkout/components/PaymentMethodButton/index.js +1 -1
  271. package/checkout/components/ResponsiveBackButton/ResponsiveBackButton.js +43 -2
  272. package/checkout/components/ResponsiveBackButton/ResponsiveBackButton.style.js +25 -1
  273. package/checkout/components/ResponsiveBackButton/index.js +1 -1
  274. package/checkout/components/ShippingMethods/ShippingMethod.js +73 -2
  275. package/checkout/components/ShippingMethods/ShippingMethods.js +208 -12
  276. package/checkout/components/ShippingMethods/connector.js +12 -3
  277. package/checkout/components/ShippingMethods/index.js +1 -1
  278. package/checkout/components/SupplementalContent/SupplementalContent.connector.js +12 -2
  279. package/checkout/components/SupplementalContent/SupplementalContent.js +31 -2
  280. package/checkout/components/SupplementalContent/SupplementalContent.styles.js +29 -1
  281. package/checkout/components/SupplementalContent/index.js +1 -1
  282. package/checkout/components/index.js +7 -1
  283. package/checkout/constants/actionTypes.js +19 -1
  284. package/checkout/constants/errorCodes.js +1 -1
  285. package/checkout/constants/index.js +11 -1
  286. package/checkout/constants/routes.js +8 -1
  287. package/checkout/helpers/index.js +221 -10
  288. package/checkout/hooks/common.js +11 -3
  289. package/checkout/index.js +25 -6
  290. package/checkout/paymentMethods/context.js +2 -1
  291. package/checkout/paymentMethods/index.js +188 -19
  292. package/checkout/paymentMethods/paypal/PaypalButton.js +19 -2
  293. package/checkout/paymentMethods/paypal/PaypalButtonApp.js +52 -2
  294. package/checkout/paymentMethods/paypal/PaypalButtonWeb.js +91 -5
  295. package/checkout/paymentMethods/paypal/PaypalPayButton.js +124 -10
  296. package/checkout/paymentMethods/paypal/PaypalProvider.js +41 -4
  297. package/checkout/paymentMethods/paypal/index.js +13 -1
  298. package/checkout/paymentMethods/paypal/sdk.js +50 -3
  299. package/checkout/paymentMethods/stripe/StripeButton.connector.js +13 -3
  300. package/checkout/paymentMethods/stripe/StripeButton.js +96 -2
  301. package/checkout/paymentMethods/stripe/StripeCreditCard.js +183 -5
  302. package/checkout/paymentMethods/stripe/StripePayButton.js +58 -4
  303. package/checkout/paymentMethods/stripe/StripeProvider.connector.js +13 -3
  304. package/checkout/paymentMethods/stripe/StripeProvider.context.js +3 -1
  305. package/checkout/paymentMethods/stripe/StripeProvider.js +180 -18
  306. package/checkout/paymentMethods/stripe/index.js +11 -1
  307. package/checkout/paymentMethods/stripe/sdk.js +40 -4
  308. package/checkout/providers/AddressBookProvider.context.js +3 -1
  309. package/checkout/providers/AddressBookProvider.js +168 -4
  310. package/checkout/providers/CheckoutProvider.connector.js +48 -3
  311. package/checkout/providers/CheckoutProvider.constraints.js +34 -1
  312. package/checkout/providers/CheckoutProvider.context.js +3 -1
  313. package/checkout/providers/CheckoutProvider.js +460 -23
  314. package/checkout/reducers/index.js +89 -2
  315. package/checkout/selectors/campaign.js +20 -2
  316. package/checkout/selectors/guestCheckout.js +11 -3
  317. package/checkout/selectors/order.js +146 -17
  318. package/checkout/selectors/payment.js +23 -5
  319. package/checkout/selectors/route.js +13 -2
  320. package/checkout/streams/index.js +13 -1
  321. package/checkout/subscriptions/index.js +53 -2
  322. package/components/BrandingColorBanner/BrandingColorBanner.js +22 -2
  323. package/components/BrandingColorBanner/index.js +1 -1
  324. package/components/ChipLayout/index.js +167 -20
  325. package/components/ChipLayout/spec.js +38 -2
  326. package/components/ChipLayout/style.js +48 -2
  327. package/components/ConditionalWrapper/ConditionalWrapper.js +29 -3
  328. package/components/ConditionalWrapper/index.js +1 -1
  329. package/components/ConnectedReactPortal/index.js +27 -12
  330. package/components/Footer/Footer.js +66 -2
  331. package/components/Footer/Footer.style.js +11 -1
  332. package/components/Footer/constants.js +2 -1
  333. package/components/Footer/helpers.js +168 -36
  334. package/components/Footer/index.js +1 -1
  335. package/components/Form/Builder/Builder.constants.js +13 -1
  336. package/components/Form/Builder/Builder.js +309 -59
  337. package/components/Form/Builder/ElementCheckbox.js +48 -2
  338. package/components/Form/Builder/ElementMultiSelect.js +74 -2
  339. package/components/Form/Builder/ElementPhoneNumber.js +235 -12
  340. package/components/Form/Builder/ElementRadio.js +55 -2
  341. package/components/Form/Builder/ElementSelect.js +62 -2
  342. package/components/Form/Builder/ElementText.js +69 -3
  343. package/components/Form/Builder/FormHelper.js +36 -2
  344. package/components/Form/Builder/classes/ActionListener.constants.js +22 -2
  345. package/components/Form/Builder/classes/ActionListener.js +390 -43
  346. package/components/Form/Builder/helpers/buildCountryList.js +30 -6
  347. package/components/Form/Builder/helpers/buildFormDefaults.js +35 -6
  348. package/components/Form/Builder/helpers/buildFormElements.js +68 -10
  349. package/components/Form/Builder/helpers/buildProvinceList.js +19 -2
  350. package/components/Form/Builder/helpers/buildValidationErrorList.js +7 -2
  351. package/components/Form/Builder/helpers/common.js +3 -1
  352. package/components/Form/Builder/helpers/iso-3166-2.js +4943 -1
  353. package/components/Form/Builder/index.js +1 -1
  354. package/components/Form/Builder/stylePresets.js +153 -1
  355. package/components/Form/Form.js +64 -13
  356. package/components/Form/index.js +4 -1
  357. package/components/IntersectionVisibility/index.js +86 -14
  358. package/components/Logo/connector.js +13 -2
  359. package/components/Logo/index.js +37 -2
  360. package/components/Logo/spec.js +12 -1
  361. package/components/Logo/style.js +22 -1
  362. package/components/Menu/components/Item/index.js +43 -3
  363. package/components/Menu/components/Item/style.js +25 -2
  364. package/components/Menu/components/Position/index.js +69 -10
  365. package/components/Menu/components/Position/style.js +11 -1
  366. package/components/Menu/index.js +87 -9
  367. package/components/Menu/style.js +39 -1
  368. package/components/MessageBar/MessageBar.js +76 -2
  369. package/components/MessageBar/MessageBar.style.js +121 -5
  370. package/components/MessageBar/index.js +1 -1
  371. package/components/NavigationHandler/connector.js +17 -2
  372. package/components/NavigationHandler/index.js +49 -6
  373. package/components/NavigationHandler/spec.js +84 -1
  374. package/components/NullComponent/index.js +4 -1
  375. package/components/Picker/components/Button/index.js +27 -2
  376. package/components/Picker/components/Button/style.js +19 -1
  377. package/components/Picker/components/List/index.js +55 -2
  378. package/components/Picker/components/List/style.js +17 -1
  379. package/components/Picker/components/Modal/index.js +72 -7
  380. package/components/Picker/components/Modal/style.js +78 -1
  381. package/components/Picker/index.js +178 -21
  382. package/components/Picker/spec.js +85 -2
  383. package/components/PickerUtilize/components/Button/index.js +29 -2
  384. package/components/PickerUtilize/components/Button/style.js +42 -1
  385. package/components/PickerUtilize/index.js +103 -11
  386. package/components/PickerUtilize/spec.js +33 -2
  387. package/components/PickerUtilize/style.js +10 -1
  388. package/components/QuantityInput/QuantityInput.js +121 -7
  389. package/components/QuantityInput/helper.js +25 -4
  390. package/components/QuantityInput/index.js +1 -1
  391. package/components/QuantityLabel/QuantityLabel.js +28 -2
  392. package/components/QuantityLabel/index.js +1 -1
  393. package/components/Radio/Radio.js +119 -2
  394. package/components/Radio/index.js +1 -1
  395. package/components/RadioCard/RadioCard.js +108 -3
  396. package/components/RadioCard/index.js +1 -1
  397. package/components/RadioGroup/RadioGroup.context.js +3 -1
  398. package/components/RadioGroup/RadioGroup.js +60 -2
  399. package/components/RadioGroup/index.js +2 -1
  400. package/components/RadioGroup/useRadioGroup.js +8 -2
  401. package/components/RangeSlider/components/Handle/index.js +39 -2
  402. package/components/RangeSlider/components/Handle/style.js +15 -1
  403. package/components/RangeSlider/helper.js +48 -8
  404. package/components/RangeSlider/index.js +260 -40
  405. package/components/RangeSlider/spec.js +175 -23
  406. package/components/RangeSlider/style.js +18 -1
  407. package/components/ResponsiveContainer/ResponsiveContainer.js +42 -3
  408. package/components/ResponsiveContainer/breakpoints.js +62 -8
  409. package/components/ResponsiveContainer/condition.js +15 -2
  410. package/components/ResponsiveContainer/hooks.js +54 -5
  411. package/components/ResponsiveContainer/index.js +1 -1
  412. package/components/ResponsiveContainer/listener.js +29 -4
  413. package/components/ResponsiveContainer/mediaQuery.js +24 -4
  414. package/components/ScrollHeader/index.js +76 -2
  415. package/components/ScrollHeader/style.js +25 -1
  416. package/components/SheetDrawer/index.js +19 -3
  417. package/components/SheetList/components/Item/index.js +155 -7
  418. package/components/SheetList/components/Item/spec.js +111 -4
  419. package/components/SheetList/components/Item/style.js +76 -1
  420. package/components/SheetList/index.js +73 -5
  421. package/components/SheetList/spec.js +44 -1
  422. package/components/SheetList/style.js +36 -1
  423. package/components/SideNavigation/SideNavigation.hooks.js +6 -2
  424. package/components/SideNavigation/SideNavigation.js +31 -4
  425. package/components/SideNavigation/SideNavigationCategories.connector.js +25 -3
  426. package/components/SideNavigation/SideNavigationCategories.js +54 -4
  427. package/components/SideNavigation/SideNavigationCategories.style.js +12 -1
  428. package/components/SideNavigation/SideNavigationCategoriesItem.connector.js +31 -3
  429. package/components/SideNavigation/SideNavigationCategoriesItem.js +92 -5
  430. package/components/SideNavigation/SideNavigationCategoriesItem.style.js +41 -2
  431. package/components/SideNavigation/SideNavigationCategoriesItemChildren.js +23 -5
  432. package/components/SideNavigation/SideNavigationContent.js +49 -3
  433. package/components/SideNavigation/SideNavigationContent.style.js +6 -2
  434. package/components/SideNavigation/SideNavigationItem.js +73 -4
  435. package/components/SideNavigation/SideNavigationItem.style.js +39 -2
  436. package/components/SideNavigation/SideNavigationLinks.js +58 -2
  437. package/components/SideNavigation/SideNavigationLinksLegal.connector.js +15 -2
  438. package/components/SideNavigation/SideNavigationLinksLegal.js +30 -5
  439. package/components/SideNavigation/SideNavigationLinksQuicklinks.connector.js +15 -2
  440. package/components/SideNavigation/SideNavigationLinksQuicklinks.js +28 -3
  441. package/components/SideNavigation/SideNavigationNestedItem.js +55 -3
  442. package/components/SideNavigation/SideNavigationProvider.connector.js +20 -3
  443. package/components/SideNavigation/SideNavigationProvider.context.js +3 -1
  444. package/components/SideNavigation/SideNavigationProvider.js +74 -3
  445. package/components/SideNavigation/index.js +1 -1
  446. package/components/SideNavigation/selectors.js +28 -11
  447. package/components/SnackBarContainer/index.js +21 -3
  448. package/components/Switch/index.js +46 -2
  449. package/components/Switch/style.js +46 -1
  450. package/components/Tabs/TabContext.js +24 -3
  451. package/components/Tabs/components/Tab.js +67 -4
  452. package/components/Tabs/components/Tab.style.js +32 -1
  453. package/components/Tabs/components/TabIndicator.js +19 -2
  454. package/components/Tabs/components/TabIndicator.style.js +13 -1
  455. package/components/Tabs/components/TabPanel.js +26 -2
  456. package/components/Tabs/components/Tabs.js +142 -6
  457. package/components/Tabs/components/Tabs.style.js +19 -2
  458. package/components/Tabs/debounce.js +18 -3
  459. package/components/Tabs/index.js +3 -1
  460. package/components/Tabs/ownerDocument.js +4 -1
  461. package/components/Tabs/ownerWindow.js +8 -2
  462. package/components/Tabs/useEventCallback.js +12 -2
  463. package/components/TextLink/TextLink.js +20 -2
  464. package/components/TextLink/TextLink.style.js +10 -1
  465. package/components/TimeBoundary/index.js +78 -10
  466. package/components/TimeBoundary/spec.js +83 -6
  467. package/components/Toggle/index.js +41 -2
  468. package/components/Toggle/style.js +63 -1
  469. package/components/Typography/Typography.js +186 -4
  470. package/components/Typography/index.js +1 -1
  471. package/components/VideoPlayer/index.js +110 -10
  472. package/components/View/components/Above/index.js +27 -2
  473. package/components/View/components/Below/index.js +27 -2
  474. package/components/View/components/Content/components/ParallaxProvider/index.js +61 -7
  475. package/components/View/components/Content/index.js +214 -21
  476. package/components/View/components/Content/style.js +41 -3
  477. package/components/View/context.js +16 -1
  478. package/components/View/index.js +75 -4
  479. package/components/View/provider.js +152 -23
  480. package/components/View/style.js +12 -1
  481. package/components/constants.js +5 -1
  482. package/components/index.js +199 -9
  483. package/core/action-creators/app.js +7 -2
  484. package/core/action-creators/appPermissions.js +14 -2
  485. package/core/action-creators/index.js +5 -1
  486. package/core/action-creators/merchantSettings.js +8 -2
  487. package/core/action-creators/optIns.js +71 -7
  488. package/core/action-creators/shopSettings.js +15 -3
  489. package/core/actions/getGeolocation.js +24 -2
  490. package/core/actions/grantAppTrackingTransparencyPermission.js +15 -2
  491. package/core/actions/grantCameraPermissions.js +23 -2
  492. package/core/actions/grantGeolocationPermissions.js +28 -2
  493. package/core/actions/grantPermissions.js +152 -8
  494. package/core/actions/grantPushPermissions.js +28 -2
  495. package/core/actions/index.js +40 -7
  496. package/core/actions/requestAppPermission.js +37 -4
  497. package/core/actions/requestAppPermissionStatus.js +34 -4
  498. package/core/actions/updateStatusBarBackground.js +19 -2
  499. package/core/classes/GeolocationRequest.js +33 -5
  500. package/core/classes/GeolocationRequestApp.js +78 -8
  501. package/core/classes/GeolocationRequestBrowser.js +41 -3
  502. package/core/classes/index.js +15 -1
  503. package/core/collections/AppInitialization.js +53 -8
  504. package/core/collections/index.js +9 -1
  505. package/core/commands/analyticsSetConsent.js +13 -3
  506. package/core/commands/index.js +28 -1
  507. package/core/config/ThemeConfigResolver.js +133 -18
  508. package/core/config/config.action-creators.js +21 -4
  509. package/core/config/config.actions.js +23 -2
  510. package/core/config/config.constants.js +5 -1
  511. package/core/config/config.reducers.js +29 -2
  512. package/core/config/config.selectors.js +86 -13
  513. package/core/config/config.streams.js +17 -1
  514. package/core/config/config.subscriptions.js +16 -2
  515. package/core/config/config.types.js +19 -0
  516. package/core/config/getPageConfig.js +14 -2
  517. package/core/config/getPageSettings.js +25 -6
  518. package/core/config/getThemeAssets.js +10 -2
  519. package/core/config/getThemeColors.js +10 -2
  520. package/core/config/getThemeConfig.js +7 -2
  521. package/core/config/getThemeSettings.js +10 -2
  522. package/core/config/getThemeStyles.js +10 -2
  523. package/core/config/getWidgetConfig.js +19 -2
  524. package/core/config/getWidgetSettings.js +20 -5
  525. package/core/config/index.js +16 -1
  526. package/core/config/isBeta.js +7 -2
  527. package/core/constants/actionTypes.js +2 -1
  528. package/core/constants/appFeatures.js +3 -1
  529. package/core/constants/deviceTypes.js +2 -1
  530. package/core/constants/geolocationRequest.js +5 -1
  531. package/core/constants/index.js +44 -8
  532. package/core/constants/merchantSettings.js +11 -1
  533. package/core/constants/optIns.js +4 -1
  534. package/core/constants/pipelines.js +3 -1
  535. package/core/constants/shopSettings.js +27 -2
  536. package/core/contexts/AppContext.js +2 -1
  537. package/core/contexts/ThemeResourcesContext.js +13 -2
  538. package/core/contexts/index.js +3 -1
  539. package/core/events/index.js +1 -1
  540. package/core/helpers/androidNavigationBar.js +32 -4
  541. package/core/helpers/appFeatures.js +54 -13
  542. package/core/helpers/appPermissions.js +159 -15
  543. package/core/helpers/baseUrl.js +10 -3
  544. package/core/helpers/bridge.js +11 -2
  545. package/core/helpers/deviceType.js +8 -3
  546. package/core/helpers/environment.js +6 -2
  547. package/core/helpers/errorBehavior.js +152 -10
  548. package/core/helpers/featureFlag.js +32 -5
  549. package/core/helpers/getFullImageSource.js +83 -8
  550. package/core/helpers/getImageFormat.js +9 -2
  551. package/core/helpers/googleMaps.js +9 -2
  552. package/core/helpers/i18n.js +70 -7
  553. package/core/helpers/index.js +53 -4
  554. package/core/helpers/isIOSTheme.js +7 -1
  555. package/core/helpers/isTouchDevice.js +9 -1
  556. package/core/helpers/nl2br.js +5 -1
  557. package/core/helpers/scrollContainer.js +6 -2
  558. package/core/helpers/string.js +6 -2
  559. package/core/helpers/svgToDataUrl.js +18 -4
  560. package/core/helpers/updateLegacyNavigationBar.js +78 -5
  561. package/core/hocs/index.js +10 -1
  562. package/core/hocs/withApp.js +19 -3
  563. package/core/hocs/withCurrentProduct.js +38 -4
  564. package/core/hocs/withForwardedRef.js +21 -3
  565. package/core/hocs/withNavigation.js +37 -4
  566. package/core/hocs/withRoute.js +32 -4
  567. package/core/hocs/withTheme.js +38 -5
  568. package/core/hocs/withThemeResources.js +36 -4
  569. package/core/hocs/withWidgetSettings.js +20 -3
  570. package/core/hocs/withWidgetStyles.js +20 -3
  571. package/core/hooks/events/appEvents.d.ts +83 -0
  572. package/core/hooks/events/appEvents.js +125 -0
  573. package/core/hooks/events/index.js +4 -1
  574. package/core/hooks/events/useLongPress.js +47 -4
  575. package/core/hooks/events/usePressHandler.js +33 -5
  576. package/core/hooks/events/useScrollDirectionChange.js +86 -11
  577. package/core/hooks/html/index.js +1 -1
  578. package/core/hooks/html/useLoadImage.js +14 -2
  579. package/core/hooks/index.js +18 -1
  580. package/core/hooks/layout/index.js +1 -1
  581. package/core/hooks/layout/useElementSize.js +83 -7
  582. package/core/hooks/useApp.js +9 -2
  583. package/core/hooks/useAsyncMemo.js +27 -4
  584. package/core/hooks/useCurrentProduct.js +15 -3
  585. package/core/hooks/useFormState.js +146 -11
  586. package/core/hooks/useLocalStorage.d.ts +8 -0
  587. package/core/hooks/useLocalStorage.js +38 -0
  588. package/core/hooks/useNavigation.js +13 -2
  589. package/core/hooks/usePageConfig.js +11 -2
  590. package/core/hooks/usePageSettings.js +11 -2
  591. package/core/hooks/usePrevious.js +10 -2
  592. package/core/hooks/useRoute.js +9 -2
  593. package/core/hooks/useScrollTo.js +35 -2
  594. package/core/hooks/useTheme.js +13 -3
  595. package/core/hooks/useThemeResources.js +35 -7
  596. package/core/hooks/useWidgetConfig.js +11 -2
  597. package/core/hooks/useWidgetSettings.js +11 -2
  598. package/core/hooks/useWidgetStyles.js +13 -2
  599. package/core/index.js +35 -5
  600. package/core/initialization/index.js +146 -12
  601. package/core/providers/AppProvider.js +78 -10
  602. package/core/providers/ThemeResourcesProvider.js +36 -4
  603. package/core/providers/index.js +6 -1
  604. package/core/reducers/app.js +30 -2
  605. package/core/reducers/index.js +10 -1
  606. package/core/reducers/merchantSettings.js +38 -2
  607. package/core/reducers/shopSettings.js +52 -2
  608. package/core/router/helpers.js +36 -6
  609. package/core/selectors/app.js +9 -3
  610. package/core/selectors/index.js +20 -6
  611. package/core/selectors/merchantSettings.js +24 -4
  612. package/core/selectors/shopSettings.js +61 -10
  613. package/core/streams/app.js +36 -6
  614. package/core/streams/appPermissions.js +38 -7
  615. package/core/streams/index.js +15 -4
  616. package/core/streams/optIns.js +26 -5
  617. package/core/subscriptions/app.js +37 -6
  618. package/core/validation/index.js +2 -1
  619. package/core/validation/validation.hooks.js +31 -2
  620. package/core/validation/validation.js +52 -6
  621. package/development/action-creators/index.js +2 -1
  622. package/development/action-creators/settings.js +22 -4
  623. package/development/action-creators/storage.js +8 -2
  624. package/development/components/ClientInformation/ClientInformation.js +75 -3
  625. package/development/components/ClientInformation/actions.js +9 -2
  626. package/development/components/ClientInformation/index.js +1 -1
  627. package/development/components/DevelopmentSettings/DevelopmentSettings.js +60 -4
  628. package/development/components/DevelopmentSettings/index.js +1 -1
  629. package/development/components/DevelopmentTools/DevelopmentTools.js +22 -2
  630. package/development/components/DevelopmentTools/Shortcuts.js +16 -2
  631. package/development/components/DevelopmentTools/hooks.js +27 -3
  632. package/development/components/DevelopmentTools/index.js +1 -1
  633. package/development/components/SimulatedInsets/SimulatedInsetBottom.js +53 -2
  634. package/development/components/SimulatedInsets/SimulatedInsetTop.js +102 -5
  635. package/development/components/SimulatedInsets/SimulatedInsets.js +37 -2
  636. package/development/components/SimulatedInsets/index.js +1 -1
  637. package/development/components/index.js +2 -1
  638. package/development/constants/actionTypes.js +4 -1
  639. package/development/constants/index.js +1 -1
  640. package/development/reducers/index.js +7 -1
  641. package/development/reducers/settings.js +46 -3
  642. package/development/reducers/storage.js +35 -3
  643. package/development/selectors/index.js +2 -1
  644. package/development/selectors/settings.js +56 -11
  645. package/development/selectors/storage.js +15 -5
  646. package/development/streams/index.js +1 -1
  647. package/development/streams/insets.js +8 -2
  648. package/development/subscriptions/index.js +17 -4
  649. package/favorites/components/CommentDialog/CommentDialog.js +147 -6
  650. package/favorites/components/CommentDialog/index.js +1 -1
  651. package/favorites/components/FavoriteButtonWide/FavoriteButtonWide.js +76 -4
  652. package/favorites/components/FavoriteButtonWide/index.js +1 -1
  653. package/favorites/components/Item/Item.js +380 -9
  654. package/favorites/components/Item/ItemCharacteristics.js +34 -2
  655. package/favorites/components/Item/ItemNotes.js +99 -3
  656. package/favorites/components/Item/ItemQuantity.js +52 -3
  657. package/favorites/components/Item/index.js +1 -1
  658. package/favorites/components/ItemFulfillmentMethod/ItemFulfillmentMethod.js +31 -2
  659. package/favorites/components/ItemFulfillmentMethod/index.js +1 -1
  660. package/favorites/components/List/List.js +121 -8
  661. package/favorites/components/List/ListAccordionHeader.js +30 -2
  662. package/favorites/components/List/ListAccordionLabel.js +14 -2
  663. package/favorites/components/List/ListContent.js +72 -3
  664. package/favorites/components/List/ListItemWrapper.js +43 -2
  665. package/favorites/components/List/index.js +1 -1
  666. package/favorites/components/List/styles.js +35 -1
  667. package/favorites/components/ListChooser/ListChooser.js +60 -4
  668. package/favorites/components/ListChooser/ListChooserItem.js +52 -3
  669. package/favorites/components/ListChooser/index.js +1 -1
  670. package/favorites/components/Lists/Lists.js +287 -18
  671. package/favorites/components/Lists/ListsModal.js +78 -4
  672. package/favorites/components/Lists/index.js +1 -1
  673. package/favorites/components/RemoveButton/RemoveButton.js +40 -2
  674. package/favorites/components/RemoveButton/index.js +1 -1
  675. package/favorites/constants/Portals.js +7 -1
  676. package/favorites/constants/index.js +2 -1
  677. package/favorites/index.js +20 -5
  678. package/filter/actions/index.js +1 -1
  679. package/filter/components/FilterItem/index.js +14 -2
  680. package/filter/components/FilterItem/spec.js +14 -1
  681. package/filter/components/FilterItem/style.js +9 -1
  682. package/filter/components/FilterPageContent/components/ApplyButton/index.js +50 -2
  683. package/filter/components/FilterPageContent/components/ApplyButton/spec.js +46 -1
  684. package/filter/components/FilterPageContent/components/ApplyButton/style.js +11 -1
  685. package/filter/components/FilterPageContent/components/ResetButton/index.js +36 -2
  686. package/filter/components/FilterPageContent/components/ResetButton/spec.js +29 -1
  687. package/filter/components/FilterPageContent/components/ResetButton/style.js +6 -1
  688. package/filter/components/FilterPageContent/components/Selector/components/Selected/index.js +55 -4
  689. package/filter/components/FilterPageContent/components/Selector/components/Selected/spec.js +26 -1
  690. package/filter/components/FilterPageContent/components/Selector/components/Selected/style.js +19 -1
  691. package/filter/components/FilterPageContent/components/Selector/components/Toggle/index.js +57 -5
  692. package/filter/components/FilterPageContent/components/Selector/components/Toggle/spec.js +34 -1
  693. package/filter/components/FilterPageContent/components/Selector/components/Toggle/style.js +30 -1
  694. package/filter/components/FilterPageContent/components/Selector/components/ValueButton/index.js +60 -5
  695. package/filter/components/FilterPageContent/components/Selector/components/ValueButton/spec.js +32 -1
  696. package/filter/components/FilterPageContent/components/Selector/components/ValueButton/style.js +23 -1
  697. package/filter/components/FilterPageContent/components/Selector/index.js +160 -16
  698. package/filter/components/FilterPageContent/components/Selector/spec.js +33 -1
  699. package/filter/components/FilterPageContent/components/Selector/style.js +8 -1
  700. package/filter/components/FilterPageContent/index.js +74 -2
  701. package/filter/components/FilterPageContentWithProvider/index.js +36 -3
  702. package/filter/components/PriceSlider/components/Label/index.js +154 -7
  703. package/filter/components/PriceSlider/components/Label/spec.js +17 -1
  704. package/filter/components/PriceSlider/index.js +97 -10
  705. package/filter/components/PriceSlider/spec.js +25 -1
  706. package/filter/components/PriceSlider/style.js +95 -1
  707. package/filter/components/index.js +2 -1
  708. package/filter/constants/index.js +4 -1
  709. package/filter/constants/sort.js +30 -5
  710. package/filter/helpers/buildFilterParamsForFetchFiltersRequest.js +44 -6
  711. package/filter/helpers/buildInitialFilters.js +26 -2
  712. package/filter/helpers/buildUpdatedFilters.js +27 -5
  713. package/filter/helpers/index.js +4 -1
  714. package/filter/helpers/translateFilterLabel.js +7 -2
  715. package/filter/hocs/index.js +1 -1
  716. package/filter/hocs/withSort.js +33 -4
  717. package/filter/hooks/filterPage.js +6 -2
  718. package/filter/hooks/index.js +7 -2
  719. package/filter/index.js +12 -2
  720. package/filter/providers/FilterPageProvider.context.js +42 -9
  721. package/filter/providers/FilterPageProvider.js +231 -46
  722. package/filter/providers/SortProvider.connector.js +27 -2
  723. package/filter/providers/SortProvider.context.js +3 -1
  724. package/filter/providers/SortProvider.helpers.js +25 -4
  725. package/filter/providers/SortProvider.js +72 -4
  726. package/filter/providers/index.js +2 -1
  727. package/filter/selectors/index.js +59 -10
  728. package/filter/streams/index.js +1 -1
  729. package/i18n/countries.helpers.js +24 -2
  730. package/i18n/countries.hooks.js +10 -6
  731. package/i18n/index.js +1 -1
  732. package/index.js +4 -1
  733. package/locations/action-creators/errorInventories.js +11 -2
  734. package/locations/action-creators/errorLocations.js +10 -2
  735. package/locations/action-creators/errorProductInventories.js +11 -2
  736. package/locations/action-creators/errorProductLocations.js +10 -2
  737. package/locations/action-creators/index.js +25 -1
  738. package/locations/action-creators/provideProductAlternativeLocation.js +9 -2
  739. package/locations/action-creators/receiveInventories.js +9 -2
  740. package/locations/action-creators/receiveLocations.js +10 -2
  741. package/locations/action-creators/receiveProductInventories.js +11 -2
  742. package/locations/action-creators/receiveProductLocations.js +11 -2
  743. package/locations/action-creators/requestInventories.js +10 -2
  744. package/locations/action-creators/requestLocations.js +9 -2
  745. package/locations/action-creators/requestProductInventories.js +10 -2
  746. package/locations/action-creators/requestProductLocations.js +9 -2
  747. package/locations/action-creators/selectGlobalLocation.js +9 -2
  748. package/locations/action-creators/selectLocation.js +32 -2
  749. package/locations/action-creators/sendDefaultLocationCode.js +23 -4
  750. package/locations/action-creators/setStoreFinderSearchRadius.js +9 -2
  751. package/locations/action-creators/setUserGeolocation.js +10 -2
  752. package/locations/action-creators/setUserSearchCountryCode.js +24 -6
  753. package/locations/action-creators/setUserSearchGeolocation.js +12 -2
  754. package/locations/action-creators/setUserSearchPostalCode.js +24 -6
  755. package/locations/action-creators/storeFormInput.js +9 -2
  756. package/locations/action-creators/storeFulfillmentMethod.js +9 -2
  757. package/locations/action-creators/submitReservationError.js +11 -2
  758. package/locations/action-creators/submitReservationRequest.js +11 -2
  759. package/locations/action-creators/submitReservationSuccess.js +11 -2
  760. package/locations/actions/fetchDefaultLocation.js +22 -2
  761. package/locations/actions/fetchFulfillmentSlots.js +34 -2
  762. package/locations/actions/fetchInventories.js +39 -2
  763. package/locations/actions/fetchLocations.js +49 -2
  764. package/locations/actions/fetchProductInventories.js +28 -2
  765. package/locations/actions/fetchProductLocations.js +38 -2
  766. package/locations/actions/index.js +18 -2
  767. package/locations/actions/sendDefaultLocationCode.js +18 -2
  768. package/locations/actions/setUserGeolocation.js +22 -1
  769. package/locations/actions/setUserSearchGeolocation.js +19 -1
  770. package/locations/actions/submitReservation.js +35 -2
  771. package/locations/components/Cart/CartChangeFulfillmentMethod.connector.js +15 -3
  772. package/locations/components/Cart/CartChangeFulfillmentMethod.js +57 -7
  773. package/locations/components/Cart/CartChangeFulfillmentMethod.types.js +14 -0
  774. package/locations/components/Cart/CartContextMenuChangeFulfillment.js +36 -5
  775. package/locations/components/Cart/CartContextMenuChangeFulfillmentContent.js +50 -2
  776. package/locations/components/Cart/CartContextMenuChangeFulfillmentContent.style.js +24 -1
  777. package/locations/components/Cart/CartContextMenuItemChangeFulfillment.connector.js +12 -2
  778. package/locations/components/Cart/CartContextMenuItemChangeFulfillment.js +29 -2
  779. package/locations/components/Cart/CartContextMenuItemChangeLocation.js +34 -6
  780. package/locations/components/Cart/CartItemProductChangeLocation.connector.js +29 -3
  781. package/locations/components/Cart/CartItemProductChangeLocation.js +77 -9
  782. package/locations/components/Cart/CartItemProductChangeLocation.types.js +11 -0
  783. package/locations/components/Cart/index.js +5 -1
  784. package/locations/components/ChangeLocationButton/ChangeLocationButton.js +39 -4
  785. package/locations/components/ChangeLocationButton/ChangeLocationButton.style.js +17 -2
  786. package/locations/components/ChangeLocationButton/index.js +1 -1
  787. package/locations/components/FulfillmentPath/FulfillmentPath.js +72 -2
  788. package/locations/components/FulfillmentPath/FulfillmentPath.style.js +35 -2
  789. package/locations/components/FulfillmentPath/FulfillmentPathItem.js +32 -5
  790. package/locations/components/FulfillmentPath/index.js +1 -1
  791. package/locations/components/FulfillmentPathSelector/FulfillmentPathSelector.js +81 -7
  792. package/locations/components/FulfillmentPathSelector/FulfillmentPathSelector.style.js +4 -1
  793. package/locations/components/FulfillmentPathSelector/index.js +1 -1
  794. package/locations/components/FulfillmentSelector/FulfillmentSelector.connector.js +85 -8
  795. package/locations/components/FulfillmentSelector/FulfillmentSelector.context.js +27 -1
  796. package/locations/components/FulfillmentSelector/FulfillmentSelector.hooks.js +12 -3
  797. package/locations/components/FulfillmentSelector/FulfillmentSelector.js +202 -18
  798. package/locations/components/FulfillmentSelector/FulfillmentSelector.style.js +8 -1
  799. package/locations/components/FulfillmentSelector/FulfillmentSelector.types.js +72 -1
  800. package/locations/components/FulfillmentSelector/FulfillmentSelectorAddToCart.js +79 -8
  801. package/locations/components/FulfillmentSelector/FulfillmentSelectorAlternativeLocation.js +119 -3
  802. package/locations/components/FulfillmentSelector/FulfillmentSelectorBOPIS.js +24 -3
  803. package/locations/components/FulfillmentSelector/FulfillmentSelectorDirectShip.js +54 -4
  804. package/locations/components/FulfillmentSelector/FulfillmentSelectorHeader.js +16 -3
  805. package/locations/components/FulfillmentSelector/FulfillmentSelectorHeader.style.js +9 -1
  806. package/locations/components/FulfillmentSelector/FulfillmentSelectorImpossibleError.js +41 -2
  807. package/locations/components/FulfillmentSelector/FulfillmentSelectorImpossibleError.style.js +4 -1
  808. package/locations/components/FulfillmentSelector/FulfillmentSelectorItem.js +76 -5
  809. package/locations/components/FulfillmentSelector/FulfillmentSelectorItem.style.js +60 -1
  810. package/locations/components/FulfillmentSelector/FulfillmentSelectorLocation.js +131 -2
  811. package/locations/components/FulfillmentSelector/FulfillmentSelectorLocation.style.js +22 -1
  812. package/locations/components/FulfillmentSelector/FulfillmentSelectorLocationMethodNotAvailable.js +36 -2
  813. package/locations/components/FulfillmentSelector/FulfillmentSelectorROPIS.js +23 -2
  814. package/locations/components/FulfillmentSelector/index.js +1 -1
  815. package/locations/components/FulfillmentSheet/FulfillmentSheet.js +21 -2
  816. package/locations/components/FulfillmentSheet/FulfillmentSheet.style.js +14 -1
  817. package/locations/components/FulfillmentSheet/FulfillmentSheetContent.js +39 -2
  818. package/locations/components/FulfillmentSheet/index.js +1 -1
  819. package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotDialog.js +303 -14
  820. package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotProvider.connector.js +16 -3
  821. package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotProvider.context.js +2 -1
  822. package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotProvider.js +69 -5
  823. package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotSwitcher.connector.js +14 -2
  824. package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotSwitcher.js +67 -3
  825. package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotSwitcherBar.js +48 -2
  826. package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotSwitcherBar.style.js +42 -1
  827. package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotSwitcherDefault.js +43 -2
  828. package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotSwitcherDefault.style.js +27 -1
  829. package/locations/components/FulfillmentSlotSwitcher/index.js +2 -1
  830. package/locations/components/FulfillmentSlotSwitcher/time.js +31 -2
  831. package/locations/components/GlobalLocationSelector/GlobalLocationSelector.js +79 -6
  832. package/locations/components/GlobalLocationSelector/index.js +1 -1
  833. package/locations/components/GlobalLocationSwitcher/GlobalLocationSwitcher.connector.js +20 -3
  834. package/locations/components/GlobalLocationSwitcher/GlobalLocationSwitcher.js +66 -4
  835. package/locations/components/GlobalLocationSwitcher/GlobalLocationSwitcherBar.js +45 -2
  836. package/locations/components/GlobalLocationSwitcher/GlobalLocationSwitcherBar.style.js +39 -1
  837. package/locations/components/GlobalLocationSwitcher/GlobalLocationSwitcherDefault.js +35 -2
  838. package/locations/components/GlobalLocationSwitcher/GlobalLocationSwitcherDefault.style.js +27 -1
  839. package/locations/components/GlobalLocationSwitcher/index.js +1 -1
  840. package/locations/components/ReservationResponses/ReservationError.js +19 -2
  841. package/locations/components/ReservationResponses/ReservationResponse.style.js +28 -1
  842. package/locations/components/ReservationResponses/ReservationSuccess.js +29 -2
  843. package/locations/components/ReservationResponses/index.js +2 -1
  844. package/locations/components/ReserveForm/ReserveForm.constraints.js +33 -1
  845. package/locations/components/ReserveForm/ReserveForm.js +206 -6
  846. package/locations/components/ReserveForm/ReserveForm.style.js +77 -1
  847. package/locations/components/ReserveForm/ReserveFormPhone.connector.js +16 -3
  848. package/locations/components/ReserveForm/ReserveFormPhone.js +139 -3
  849. package/locations/components/ReserveForm/ReserveFormPhone.types.js +13 -0
  850. package/locations/components/ReserveForm/index.js +1 -1
  851. package/locations/components/StockInfo/StockInfo.defaultSettings.js +49 -1
  852. package/locations/components/StockInfo/StockInfo.js +78 -3
  853. package/locations/components/StockInfo/StockInfoInventory.js +39 -2
  854. package/locations/components/StockInfo/index.js +1 -1
  855. package/locations/components/StockInfoLists/index.js +84 -3
  856. package/locations/components/StoreDetails/components/FindMoreStores.js +92 -2
  857. package/locations/components/StoreDetails/components/GetDirectionsButton.js +50 -3
  858. package/locations/components/StoreDetails/components/StoreDetails.js +211 -3
  859. package/locations/components/StoreDetails/components/StoreFinderMap.js +122 -7
  860. package/locations/components/StoreDetails/components/StoreFinderMap.style.js +14 -1
  861. package/locations/components/StoreDetails/components/StoreLocationMap.js +33 -2
  862. package/locations/components/StoreDetails/components/StoresNearby.js +40 -2
  863. package/locations/components/StoreDetails/components/StoresNearbyListItem.js +150 -3
  864. package/locations/components/StoreDetails/index.js +24 -2
  865. package/locations/components/StoreFinder/Store.context.js +7 -1
  866. package/locations/components/StoreFinder/StoreFinder.js +28 -2
  867. package/locations/components/StoreFinder/StoreFinder.style.js +25 -1
  868. package/locations/components/StoreFinder/StoreFinderGetDirectionsButton.connector.js +14 -2
  869. package/locations/components/StoreFinder/StoreFinderGetDirectionsButton.js +38 -2
  870. package/locations/components/StoreFinder/StoreFinderGetDirectionsButton.style.js +12 -1
  871. package/locations/components/StoreFinder/StoreFinderLocation.js +33 -3
  872. package/locations/components/StoreFinder/StoreFinderLocation.style.js +10 -1
  873. package/locations/components/StoreFinder/StoreFinderLocationDetails.js +33 -2
  874. package/locations/components/StoreFinder/StoreFinderLocationDetails.style.js +15 -1
  875. package/locations/components/StoreFinder/StoreFinderLocationHeader.js +73 -2
  876. package/locations/components/StoreFinder/StoreFinderLocationHeader.style.js +74 -1
  877. package/locations/components/StoreFinder/StoreFinderLocationHeaderPhoneNumber.js +34 -2
  878. package/locations/components/StoreFinder/StoreFinderLocations.js +33 -2
  879. package/locations/components/StoreFinder/StoreFinderLocations.style.js +26 -1
  880. package/locations/components/StoreFinder/StoreFinderSearch.js +14 -2
  881. package/locations/components/StoreFinder/StoreFinderSearch.style.js +5 -1
  882. package/locations/components/StoreFinder/StoreFinderSelectLocationButton.js +32 -2
  883. package/locations/components/StoreFinder/StoreFinderStoreInfoButton.js +62 -3
  884. package/locations/components/StoreFinder/index.js +1 -1
  885. package/locations/components/StoreList/Store.context.js +6 -1
  886. package/locations/components/StoreList/Store.style.js +121 -1
  887. package/locations/components/StoreList/StoreAddress.js +63 -2
  888. package/locations/components/StoreList/StoreAddressShort.js +57 -2
  889. package/locations/components/StoreList/StoreCard.js +18 -2
  890. package/locations/components/StoreList/StoreDetails.js +33 -2
  891. package/locations/components/StoreList/StoreDetailsLine.js +34 -2
  892. package/locations/components/StoreList/StoreDistance.js +26 -2
  893. package/locations/components/StoreList/StoreHeader.js +74 -2
  894. package/locations/components/StoreList/StoreHoursToday.js +33 -2
  895. package/locations/components/StoreList/StoreList.js +12 -2
  896. package/locations/components/StoreList/StoreListLocations.js +43 -2
  897. package/locations/components/StoreList/StoreListProduct.js +46 -2
  898. package/locations/components/StoreList/StoreListProduct.style.js +43 -1
  899. package/locations/components/StoreList/StoreListProductInfo.js +37 -2
  900. package/locations/components/StoreList/StoreListProductName.js +27 -2
  901. package/locations/components/StoreList/StoreListSearch.connector.js +21 -3
  902. package/locations/components/StoreList/StoreListSearch.js +179 -10
  903. package/locations/components/StoreList/StoreListSearch.style.js +84 -1
  904. package/locations/components/StoreList/StoreListSearchRadius.connector.js +21 -3
  905. package/locations/components/StoreList/StoreListSearchRadius.js +65 -2
  906. package/locations/components/StoreList/StoreListSearchRadius.style.js +3 -1
  907. package/locations/components/StoreList/StoreOpeningHours.js +46 -2
  908. package/locations/components/StoreList/StoreOpeningHoursLine.js +33 -2
  909. package/locations/components/StoreList/StorePhoneNumber.js +38 -2
  910. package/locations/components/StoreList/StoreSelectLocationButton.js +48 -2
  911. package/locations/components/StoreList/index.js +4 -1
  912. package/locations/components/index.js +12 -1
  913. package/locations/constants/ActionTypes.js +46 -8
  914. package/locations/constants/Pipelines.js +5 -1
  915. package/locations/constants/Portals.js +31 -2
  916. package/locations/constants/Stages.js +5 -1
  917. package/locations/constants/index.js +28 -6
  918. package/locations/constants/routes.js +3 -1
  919. package/locations/helpers/createOrder.js +154 -7
  920. package/locations/helpers/formatDistance.js +43 -5
  921. package/locations/helpers/getAvailabilitySettings.js +39 -7
  922. package/locations/helpers/index.js +4 -1
  923. package/locations/helpers/productInventory.js +21 -2
  924. package/locations/helpers/showInventoryInLists.js +30 -4
  925. package/locations/index.js +40 -7
  926. package/locations/locations.context.js +78 -1
  927. package/locations/locations.hooks.js +8 -2
  928. package/locations/locations.streams.js +174 -2
  929. package/locations/locations.types.js +170 -1
  930. package/locations/providers/FulfillmentProvider.connector.js +65 -7
  931. package/locations/providers/FulfillmentProvider.js +459 -36
  932. package/locations/providers/FulfillmentProvider.types.js +50 -1
  933. package/locations/providers/StoreDetailsContext.js +2 -1
  934. package/locations/providers/StoreDetailsProvider.js +54 -4
  935. package/locations/providers/StoreFinder.connector.js +22 -2
  936. package/locations/providers/StoreFinderProvider.js +76 -7
  937. package/locations/providers/index.js +4 -1
  938. package/locations/reducers/index.js +18 -1
  939. package/locations/reducers/storage.js +153 -21
  940. package/locations/reducers/storeFinderSearch.js +27 -2
  941. package/locations/reducers/user.js +21 -2
  942. package/locations/reducers/userFormInput.js +22 -7
  943. package/locations/reducers/userSearch.js +36 -2
  944. package/locations/selectors/index.js +429 -42
  945. package/locations/subscriptions.js +363 -15
  946. package/login/action-creators/index.js +1 -1
  947. package/login/action-creators/resetPassword.js +23 -4
  948. package/login/actions/index.js +1 -1
  949. package/login/actions/resetPassword.js +22 -2
  950. package/login/components/ForgotPassword/ForgotPassword.connector.js +11 -2
  951. package/login/components/ForgotPassword/ForgotPassword.js +109 -2
  952. package/login/components/ForgotPassword/ForgotPassword.style.js +88 -1
  953. package/login/components/ForgotPassword/index.js +1 -1
  954. package/login/constants/actions.js +3 -1
  955. package/login/constants/index.js +3 -1
  956. package/login/constants/pipelines.js +1 -1
  957. package/login/constants/routes.js +1 -1
  958. package/login/index.js +3 -1
  959. package/market/index.js +9 -3
  960. package/orders/action-creators/index.js +2 -1
  961. package/orders/action-creators/orderDetails.js +27 -5
  962. package/orders/action-creators/orders.js +36 -6
  963. package/orders/actions/cancelOrder.js +43 -2
  964. package/orders/actions/fetchOrderDetails.js +19 -2
  965. package/orders/actions/fetchOrderHistory.js +23 -2
  966. package/orders/actions/index.js +3 -1
  967. package/orders/components/OrderDetails/OrderDetails.js +29 -2
  968. package/orders/components/OrderDetails/OrderDetailsAuthenticate.js +111 -2
  969. package/orders/components/OrderDetails/OrderDetailsAuthenticate.style.js +33 -1
  970. package/orders/components/OrderDetails/OrderDetailsAuthenticateForm.config.js +28 -2
  971. package/orders/components/OrderDetails/OrderDetailsContent.js +26 -2
  972. package/orders/components/OrderDetails/OrderDetailsContent.style.js +18 -1
  973. package/orders/components/OrderDetails/OrderDetailsOrder.js +83 -2
  974. package/orders/components/OrderDetails/OrderDetailsOrder.style.js +62 -1
  975. package/orders/components/OrderDetails/OrderDetailsOrderHeader.js +73 -2
  976. package/orders/components/OrderDetails/OrderDetailsOrderHeader.style.js +42 -1
  977. package/orders/components/OrderDetails/OrderDetailsOrderPickupLocation.connector.js +22 -2
  978. package/orders/components/OrderDetails/OrderDetailsOrderPickupLocation.js +59 -2
  979. package/orders/components/OrderDetails/OrderDetailsOrderPickupLocation.style.js +7 -1
  980. package/orders/components/OrderDetails/index.js +1 -1
  981. package/orders/components/OrderHistory/OrderHistory.js +44 -2
  982. package/orders/components/OrderHistory/OrderHistory.style.js +7 -1
  983. package/orders/components/OrderHistory/OrderHistoryList.js +62 -3
  984. package/orders/components/OrderHistory/OrderHistoryList.style.js +36 -1
  985. package/orders/components/OrderHistory/OrderHistoryLoader.js +40 -2
  986. package/orders/components/OrderHistory/OrderHistoryTable.js +71 -3
  987. package/orders/components/OrderHistory/OrderHistoryTable.style.js +25 -1
  988. package/orders/components/OrderHistory/index.js +1 -1
  989. package/orders/components/index.js +1 -1
  990. package/orders/constants/actionTypes.js +8 -1
  991. package/orders/constants/index.js +4 -1
  992. package/orders/constants/pipelines.js +3 -1
  993. package/orders/constants/routes.js +3 -1
  994. package/orders/constants/status.js +52 -5
  995. package/orders/helpers/index.js +1 -1
  996. package/orders/helpers/orderDetails.js +5 -2
  997. package/orders/helpers/orderStatus.js +23 -4
  998. package/orders/hooks/index.js +11 -3
  999. package/orders/index.js +8 -2
  1000. package/orders/providers/OrderDetailsPrivateProvider.connector.js +34 -4
  1001. package/orders/providers/OrderDetailsPrivateProvider.js +65 -3
  1002. package/orders/providers/OrderDetailsProvider.connector.js +36 -4
  1003. package/orders/providers/OrderDetailsProvider.constraints.js +21 -1
  1004. package/orders/providers/OrderDetailsProvider.context.js +3 -1
  1005. package/orders/providers/OrderDetailsProvider.js +172 -6
  1006. package/orders/providers/OrderHistoryProvider.connector.js +19 -3
  1007. package/orders/providers/OrderHistoryProvider.context.js +3 -1
  1008. package/orders/providers/OrderHistoryProvider.js +36 -2
  1009. package/orders/reducers/index.js +9 -1
  1010. package/orders/reducers/orders.js +45 -3
  1011. package/orders/reducers/ordersById.js +59 -3
  1012. package/orders/reducers/ordersByNumber.js +71 -3
  1013. package/orders/selectors/index.js +29 -8
  1014. package/orders/subscriptions/index.js +17 -2
  1015. package/package.json +12 -14
  1016. package/page/action-creators/index.js +39 -5
  1017. package/page/actions/index.js +1 -1
  1018. package/page/components/NotFound.js +77 -2
  1019. package/page/components/ResponsiveWidgetImage/ResponsiveWidgetImage.js +170 -9
  1020. package/page/components/ResponsiveWidgetImage/index.js +1 -1
  1021. package/page/components/WidgetHeadline/WidgetHeadline.js +68 -4
  1022. package/page/components/WidgetHeadline/index.js +1 -1
  1023. package/page/components/WidgetRichText/WidgetRichText.js +84 -2
  1024. package/page/components/WidgetRichText/index.js +1 -1
  1025. package/page/components/WidgetVideo/WidgetVideo.js +159 -0
  1026. package/page/components/WidgetVideo/index.js +1 -0
  1027. package/page/components/Widgets/Overlay.js +252 -27
  1028. package/page/components/Widgets/Tooltip.js +196 -17
  1029. package/page/components/Widgets/Widget.js +134 -7
  1030. package/page/components/Widgets/WidgetContext.js +10 -3
  1031. package/page/components/Widgets/WidgetProvider.js +39 -2
  1032. package/page/components/Widgets/Widgets.js +85 -6
  1033. package/page/components/Widgets/WidgetsPreviewContext.js +13 -3
  1034. package/page/components/Widgets/WidgetsPreviewProvider.js +31 -2
  1035. package/page/components/Widgets/constants.js +5 -2
  1036. package/page/components/Widgets/events.js +33 -6
  1037. package/page/components/Widgets/helpers.js +37 -7
  1038. package/page/components/Widgets/hooks.js +178 -27
  1039. package/page/components/Widgets/index.js +2 -1
  1040. package/page/components/index.js +4 -1
  1041. package/page/constants/actionTypes.js +3 -1
  1042. package/page/constants/index.js +20 -3
  1043. package/page/helpers/index.d.ts +14 -0
  1044. package/page/helpers/index.js +66 -8
  1045. package/page/hooks/index.js +128 -25
  1046. package/page/index.js +6 -1
  1047. package/page/reducers/index.js +126 -7
  1048. package/page/selectors/index.js +177 -14
  1049. package/page/subscriptions/index.js +7 -2
  1050. package/page/widgets/Button/Button.js +57 -2
  1051. package/page/widgets/Button/index.js +1 -1
  1052. package/page/widgets/CategoryList/CategoryList.js +40 -2
  1053. package/page/widgets/CategoryList/hooks.js +63 -6
  1054. package/page/widgets/CategoryList/index.js +1 -1
  1055. package/page/widgets/CategoryList/selectors.js +11 -3
  1056. package/page/widgets/HTML/HTML.js +92 -3
  1057. package/page/widgets/HTML/hooks.js +22 -4
  1058. package/page/widgets/HTML/index.js +1 -1
  1059. package/page/widgets/Headline/Headline.js +20 -2
  1060. package/page/widgets/Headline/index.js +1 -1
  1061. package/page/widgets/HeroBanner/HeroBanner.js +97 -2
  1062. package/page/widgets/HeroBanner/hooks.js +49 -8
  1063. package/page/widgets/HeroBanner/index.js +1 -1
  1064. package/page/widgets/Image/Image.js +44 -2
  1065. package/page/widgets/Image/hooks.js +48 -4
  1066. package/page/widgets/Image/index.js +1 -1
  1067. package/page/widgets/ImageRow/ImageRow.js +113 -2
  1068. package/page/widgets/ImageRow/hooks.js +63 -4
  1069. package/page/widgets/ImageRow/index.js +1 -1
  1070. package/page/widgets/ImageSlider/ImageSlider.js +53 -2
  1071. package/page/widgets/ImageSlider/hooks.js +146 -11
  1072. package/page/widgets/ImageSlider/index.js +1 -1
  1073. package/page/widgets/NestedCategoryFilter/NestedCategoryFilter.js +164 -0
  1074. package/page/widgets/NestedCategoryFilter/components/Picker/components/Sheet/index.js +59 -0
  1075. package/page/widgets/NestedCategoryFilter/components/Picker/components/SheetItem/index.js +60 -0
  1076. package/page/widgets/NestedCategoryFilter/components/Picker/index.js +124 -0
  1077. package/page/widgets/NestedCategoryFilter/hooks.js +35 -0
  1078. package/page/widgets/NestedCategoryFilter/index.js +1 -0
  1079. package/page/widgets/Placeholder/Placeholder.js +53 -2
  1080. package/page/widgets/Placeholder/hooks.js +11 -4
  1081. package/page/widgets/Placeholder/index.js +1 -1
  1082. package/page/widgets/ProductList/ProductList.js +81 -3
  1083. package/page/widgets/ProductList/hooks.js +50 -5
  1084. package/page/widgets/ProductList/index.js +1 -1
  1085. package/page/widgets/ProductSlider/ProductSlider.js +64 -3
  1086. package/page/widgets/ProductSlider/hooks.js +71 -5
  1087. package/page/widgets/ProductSlider/index.js +1 -1
  1088. package/page/widgets/RichText/RichText.js +28 -2
  1089. package/page/widgets/RichText/hooks.js +19 -4
  1090. package/page/widgets/RichText/index.js +1 -1
  1091. package/page/widgets/Video/Video.js +30 -0
  1092. package/page/widgets/Video/hooks.js +52 -0
  1093. package/page/widgets/Video/index.js +1 -0
  1094. package/page/widgets/index.js +14 -1
  1095. package/page/widgets/widgets.json +6 -0
  1096. package/product/collections/index.js +1 -1
  1097. package/product/components/Availability/Availability.connector.js +24 -3
  1098. package/product/components/Availability/Availability.js +48 -3
  1099. package/product/components/Availability/Availability.style.js +10 -1
  1100. package/product/components/Availability/index.js +1 -1
  1101. package/product/components/Characteristics/Characteristic/components/Sheet/index.js +178 -16
  1102. package/product/components/Characteristics/Characteristic/components/SheetItem/index.js +94 -8
  1103. package/product/components/Characteristics/Characteristic/components/SheetItem/style.js +69 -1
  1104. package/product/components/Characteristics/Characteristic/index.js +177 -16
  1105. package/product/components/Characteristics/Characteristic/style.js +40 -1
  1106. package/product/components/Characteristics/Swatch/index.js +104 -9
  1107. package/product/components/Characteristics/Swatch/style.js +28 -1
  1108. package/product/components/Characteristics/index.js +87 -10
  1109. package/product/components/Characteristics/transition.js +14 -1
  1110. package/product/components/Description/connector.js +23 -3
  1111. package/product/components/Description/index.js +53 -2
  1112. package/product/components/Description/style.js +41 -1
  1113. package/product/components/EffectivityDates/connector.js +18 -3
  1114. package/product/components/EffectivityDates/constants.js +2 -1
  1115. package/product/components/EffectivityDates/helpers.js +78 -5
  1116. package/product/components/EffectivityDates/index.js +84 -2
  1117. package/product/components/EffectivityDates/style.js +10 -1
  1118. package/product/components/FilterBar/FilterBarProvider.connector.js +22 -3
  1119. package/product/components/FilterBar/FilterBarProvider.context.js +8 -2
  1120. package/product/components/FilterBar/FilterBarProvider.js +41 -3
  1121. package/product/components/FilterBar/components/Content/actions/openFilterRoute.js +41 -2
  1122. package/product/components/FilterBar/components/Content/components/FilterButton/index.js +39 -2
  1123. package/product/components/FilterBar/components/Content/components/FilterButton/style.js +42 -1
  1124. package/product/components/FilterBar/components/Content/components/FilterChips/connector.js +16 -3
  1125. package/product/components/FilterBar/components/Content/components/FilterChips/index.js +157 -8
  1126. package/product/components/FilterBar/components/Content/components/FilterChips/style.js +14 -1
  1127. package/product/components/FilterBar/components/Content/components/Sort/components/Item/index.js +19 -2
  1128. package/product/components/FilterBar/components/Content/components/Sort/components/Item/style.js +7 -1
  1129. package/product/components/FilterBar/components/Content/components/Sort/index.js +33 -2
  1130. package/product/components/FilterBar/components/Content/components/Sort/style.js +76 -1
  1131. package/product/components/FilterBar/components/Content/index.js +49 -2
  1132. package/product/components/FilterBar/components/Content/spec.js +136 -6
  1133. package/product/components/FilterBar/components/Content/style.js +4 -1
  1134. package/product/components/FilterBar/components/FilterModal/FilterModal.js +68 -2
  1135. package/product/components/FilterBar/components/FilterModal/FilterModalContent.js +57 -2
  1136. package/product/components/FilterBar/components/FilterModal/FilterModalTitle.js +70 -2
  1137. package/product/components/FilterBar/components/FilterModal/index.js +1 -1
  1138. package/product/components/FilterBar/index.js +56 -2
  1139. package/product/components/FilterBar/mock.js +67 -4
  1140. package/product/components/FilterBar/selectors.js +6 -2
  1141. package/product/components/FilterBar/style.js +4 -1
  1142. package/product/components/Header/PriceStriked/connector.js +20 -3
  1143. package/product/components/Header/PriceStriked/index.js +55 -2
  1144. package/product/components/Header/PriceStriked/style.js +26 -1
  1145. package/product/components/Header/Shipping/components/Label/index.js +33 -3
  1146. package/product/components/Header/Shipping/components/Label/style.js +11 -1
  1147. package/product/components/Header/Shipping/connector.js +20 -3
  1148. package/product/components/Header/Shipping/index.js +36 -2
  1149. package/product/components/Header/Shipping/mock.js +38 -1
  1150. package/product/components/Header/Shipping/spec.js +33 -2
  1151. package/product/components/Header/Shipping/style.js +14 -1
  1152. package/product/components/Header/Tiers/components/Tier/index.js +38 -4
  1153. package/product/components/Header/Tiers/components/Tier/spec.js +48 -1
  1154. package/product/components/Header/Tiers/connector.js +20 -3
  1155. package/product/components/Header/Tiers/index.js +38 -2
  1156. package/product/components/Header/Tiers/spec.js +64 -1
  1157. package/product/components/Header/Tiers/style.js +17 -1
  1158. package/product/components/Header/index.js +3 -1
  1159. package/product/components/MapPriceHint/connector.js +14 -2
  1160. package/product/components/MapPriceHint/helpers.js +26 -4
  1161. package/product/components/MapPriceHint/index.js +47 -2
  1162. package/product/components/Media/FeaturedMedia.js +31 -2
  1163. package/product/components/Media/FeaturedVideo.js +10 -3
  1164. package/product/components/Media/MediaImage.js +61 -2
  1165. package/product/components/Media/MediaPlaceholder.js +25 -2
  1166. package/product/components/Media/helpers.js +31 -2
  1167. package/product/components/Media/index.js +2 -1
  1168. package/product/components/Media/props.js +13 -1
  1169. package/product/components/Media/style.js +41 -1
  1170. package/product/components/MediaSlider/components/MediaImage/index.js +26 -2
  1171. package/product/components/MediaSlider/components/MediaVideo/connector.js +9 -2
  1172. package/product/components/MediaSlider/components/MediaVideo/index.js +41 -2
  1173. package/product/components/MediaSlider/connector.js +28 -3
  1174. package/product/components/MediaSlider/constants.js +12 -2
  1175. package/product/components/MediaSlider/index.js +81 -3
  1176. package/product/components/MediaSlider/style.js +32 -1
  1177. package/product/components/Options/components/Content/connector.js +24 -3
  1178. package/product/components/Options/components/Content/index.js +99 -9
  1179. package/product/components/Options/components/Content/spec.js +73 -2
  1180. package/product/components/Options/components/Option/index.js +42 -2
  1181. package/product/components/Options/components/TextOption/components/OptionInfo/index.js +74 -3
  1182. package/product/components/Options/components/TextOption/components/OptionInfo/spec.js +63 -1
  1183. package/product/components/Options/components/TextOption/components/OptionInfo/style.js +23 -1
  1184. package/product/components/Options/components/TextOption/index.js +170 -20
  1185. package/product/components/Options/components/TextOption/style.js +37 -1
  1186. package/product/components/Options/index.js +31 -3
  1187. package/product/components/OrderQuantityHint/index.js +75 -3
  1188. package/product/components/OrderQuantityHint/style.js +6 -1
  1189. package/product/components/PriceDifference/index.js +31 -2
  1190. package/product/components/PriceDifference/style.js +18 -1
  1191. package/product/components/PriceInfo/PriceInfo.connector.js +13 -2
  1192. package/product/components/PriceInfo/PriceInfo.js +81 -3
  1193. package/product/components/PriceInfo/index.js +1 -1
  1194. package/product/components/ProductBadges/index.js +60 -2
  1195. package/product/components/ProductCard/index.js +122 -3
  1196. package/product/components/ProductCard/style.js +18 -1
  1197. package/product/components/ProductCharacteristics/connector.js +33 -4
  1198. package/product/components/ProductCharacteristics/context.js +2 -1
  1199. package/product/components/ProductCharacteristics/helpers/index.js +139 -21
  1200. package/product/components/ProductCharacteristics/index.js +286 -34
  1201. package/product/components/ProductDiscountBadge/connector.js +9 -2
  1202. package/product/components/ProductDiscountBadge/index.js +51 -2
  1203. package/product/components/ProductDiscountBadge/mock.js +35 -3
  1204. package/product/components/ProductDiscountBadge/spec.js +55 -2
  1205. package/product/components/ProductDiscountBadge/style.js +31 -1
  1206. package/product/components/ProductFilters/index.js +73 -4
  1207. package/product/components/ProductFilters/style.js +23 -1
  1208. package/product/components/ProductGrid/components/Item/components/ItemDetails/index.js +82 -2
  1209. package/product/components/ProductGrid/components/Item/components/ItemDetails/spec.js +73 -1
  1210. package/product/components/ProductGrid/components/Item/components/ItemDiscount/index.js +43 -2
  1211. package/product/components/ProductGrid/components/Item/components/ItemFavoritesButton/index.js +51 -2
  1212. package/product/components/ProductGrid/components/Item/components/ItemFavoritesButton/spec.js +33 -1
  1213. package/product/components/ProductGrid/components/Item/components/ItemImage/index.js +36 -2
  1214. package/product/components/ProductGrid/components/Item/components/ItemImage/spec.js +16 -1
  1215. package/product/components/ProductGrid/components/Item/components/ItemName/index.js +56 -2
  1216. package/product/components/ProductGrid/components/Item/components/ItemName/spec.js +20 -1
  1217. package/product/components/ProductGrid/components/Item/components/ItemPrice/index.js +35 -2
  1218. package/product/components/ProductGrid/components/Item/components/ItemPrice/spec.js +37 -1
  1219. package/product/components/ProductGrid/components/Item/index.js +89 -2
  1220. package/product/components/ProductGrid/components/Iterator/index.js +39 -2
  1221. package/product/components/ProductGrid/components/Layout/index.js +44 -2
  1222. package/product/components/ProductGrid/index.js +84 -2
  1223. package/product/components/ProductGrid/spec.js +52 -1
  1224. package/product/components/ProductGridPrice/index.js +54 -2
  1225. package/product/components/ProductGridPrice/style.js +21 -1
  1226. package/product/components/ProductImage/ProductImagePlaceholder.js +57 -2
  1227. package/product/components/ProductImage/connector.js +9 -2
  1228. package/product/components/ProductImage/index.js +165 -17
  1229. package/product/components/ProductImage/spec.js +83 -1
  1230. package/product/components/ProductImage/style.js +52 -2
  1231. package/product/components/ProductList/components/Item/index.js +204 -2
  1232. package/product/components/ProductList/components/Item/style.js +66 -2
  1233. package/product/components/ProductList/components/Iterator/index.js +45 -2
  1234. package/product/components/ProductList/components/Iterator/style.js +15 -1
  1235. package/product/components/ProductList/components/Layout/index.js +21 -2
  1236. package/product/components/ProductList/components/Layout/style.js +11 -1
  1237. package/product/components/ProductList/index.js +68 -2
  1238. package/product/components/ProductName/ProductName.js +63 -2
  1239. package/product/components/ProductName/ProductNameContent.js +31 -2
  1240. package/product/components/ProductName/index.js +1 -1
  1241. package/product/components/ProductProperties/Content.js +42 -4
  1242. package/product/components/ProductProperties/Group.js +21 -2
  1243. package/product/components/ProductProperties/GroupedProperties.js +32 -2
  1244. package/product/components/ProductProperties/Lists.js +25 -2
  1245. package/product/components/ProductProperties/ListsHTML.js +42 -2
  1246. package/product/components/ProductProperties/ProductProperties.js +25 -2
  1247. package/product/components/ProductProperties/Row.js +40 -2
  1248. package/product/components/ProductProperties/RowHTML.js +42 -2
  1249. package/product/components/ProductProperties/Rows.js +28 -2
  1250. package/product/components/ProductProperties/Wrapper.js +31 -2
  1251. package/product/components/ProductProperties/connector.js +12 -2
  1252. package/product/components/ProductProperties/helpers/getGroupsFromProperties.js +44 -7
  1253. package/product/components/ProductProperties/helpers/getPropertiesBySubgroup.js +6 -1
  1254. package/product/components/ProductProperties/helpers/getPropertiesWithoutSubgroup.js +6 -1
  1255. package/product/components/ProductProperties/helpers/getSubgroupsFromProperties.js +13 -1
  1256. package/product/components/ProductProperties/style.js +44 -1
  1257. package/product/components/ProductSlider/index.js +77 -3
  1258. package/product/components/ProductSlider/spec.js +39 -1
  1259. package/product/components/ProductSlider/style.js +8 -1
  1260. package/product/components/ProductVariants/VariantAvailability.connector.js +9 -2
  1261. package/product/components/ProductVariants/VariantAvailability.js +34 -2
  1262. package/product/components/ProductVariants/VariantAvailability.style.js +5 -1
  1263. package/product/components/ProductVariants/index.js +1 -1
  1264. package/product/components/QuantityPicker/hooks.js +24 -3
  1265. package/product/components/QuantityPicker/index.js +103 -10
  1266. package/product/components/Rating/connector.js +20 -3
  1267. package/product/components/Rating/index.js +61 -3
  1268. package/product/components/Rating/mock.js +10 -1
  1269. package/product/components/Rating/spec.js +54 -2
  1270. package/product/components/Rating/style.js +12 -1
  1271. package/product/components/RelationsSlider/RelationsSheet.connector.js +15 -3
  1272. package/product/components/RelationsSlider/RelationsSheet.js +59 -2
  1273. package/product/components/RelationsSlider/RelationsSlider.connector.js +29 -4
  1274. package/product/components/RelationsSlider/RelationsSlider.js +33 -2
  1275. package/product/components/RelationsSlider/RelationsSliderContent.js +75 -2
  1276. package/product/components/RelationsSlider/constants.js +1 -1
  1277. package/product/components/RelationsSlider/index.js +1 -1
  1278. package/product/components/RelationsSlider/style.js +56 -1
  1279. package/product/components/Swatch/Swatch.js +31 -2
  1280. package/product/components/Swatch/SwatchContent.js +54 -2
  1281. package/product/components/Swatch/VariantSwatch.js +35 -2
  1282. package/product/components/Swatch/index.js +2 -1
  1283. package/product/components/Swatch/style.js +27 -1
  1284. package/product/components/Swatches/Swatches.js +54 -2
  1285. package/product/components/Swatches/connector.js +12 -2
  1286. package/product/components/Swatches/index.js +1 -1
  1287. package/product/components/Swatches/style.js +9 -1
  1288. package/product/components/UnitQuantityPicker/CartUnitQuantityPicker.js +41 -2
  1289. package/product/components/UnitQuantityPicker/ProductUnitQuantityPicker.connector.js +18 -3
  1290. package/product/components/UnitQuantityPicker/ProductUnitQuantityPicker.js +119 -3
  1291. package/product/components/UnitQuantityPicker/UnitQuantityPicker.js +329 -9
  1292. package/product/components/UnitQuantityPicker/UnitQuantityPickerWithSection.js +83 -3
  1293. package/product/components/UnitQuantityPicker/helper.js +25 -4
  1294. package/product/components/UnitQuantityPicker/index.js +4 -1
  1295. package/product/components/UnitQuantityPicker/styles.js +7 -1
  1296. package/product/components/context.js +3 -1
  1297. package/product/components/index.js +32 -1
  1298. package/product/constants/index.js +13 -2
  1299. package/product/contexts/index.js +1 -1
  1300. package/product/helpers/index.js +85 -6
  1301. package/product/helpers/redirects.js +49 -3
  1302. package/product/hocs/index.js +6 -1
  1303. package/product/hocs/withMapPricing.js +60 -5
  1304. package/product/hocs/withPriceCalculation.js +27 -5
  1305. package/product/hocs/withProduct.js +9 -2
  1306. package/product/hocs/withProductListEntry.js +19 -3
  1307. package/product/hocs/withProductListEntryProduct.js +32 -4
  1308. package/product/hocs/withProductListType.js +19 -3
  1309. package/product/hocs/withProductStock.js +9 -2
  1310. package/product/hooks/index.js +3 -1
  1311. package/product/hooks/useLoadProductImage.js +19 -2
  1312. package/product/hooks/useProductListEntry.js +11 -3
  1313. package/product/hooks/useProductListType.js +11 -3
  1314. package/product/index.js +48 -6
  1315. package/product/product.types.js +38 -0
  1316. package/product/providers/Product/connector.js +13 -2
  1317. package/product/providers/Product/index.js +33 -2
  1318. package/product/providers/ProductListEntry/context.js +13 -2
  1319. package/product/providers/ProductListEntry/index.js +30 -2
  1320. package/product/providers/ProductListType/context.js +21 -4
  1321. package/product/providers/ProductListType/index.js +29 -2
  1322. package/product/providers/index.js +3 -1
  1323. package/product/selectors/helpers/filterProperties.js +29 -5
  1324. package/product/selectors/helpers/index.js +2 -1
  1325. package/product/selectors/helpers/wrapMemoizedSelector.js +8 -1
  1326. package/product/selectors/media.js +25 -8
  1327. package/product/selectors/price.js +23 -4
  1328. package/product/selectors/product.js +190 -25
  1329. package/product/selectors/relations.js +47 -7
  1330. package/product/selectors/variants.js +77 -5
  1331. package/product/streams/index.js +1 -1
  1332. package/push-opt-in/action-creators/index.js +2 -1
  1333. package/push-opt-in/action-creators/optInTrigger.js +43 -8
  1334. package/push-opt-in/action-creators/pushOptIn.js +14 -3
  1335. package/push-opt-in/actions/index.js +1 -1
  1336. package/push-opt-in/actions/pushOptInModal.js +31 -3
  1337. package/push-opt-in/components/PushOptInModal/connector.js +17 -3
  1338. package/push-opt-in/components/PushOptInModal/index.js +102 -3
  1339. package/push-opt-in/components/PushOptInModal/style.js +53 -1
  1340. package/push-opt-in/components/index.js +1 -1
  1341. package/push-opt-in/constants/index.js +2 -1
  1342. package/push-opt-in/constants/optInModal.js +2 -1
  1343. package/push-opt-in/constants/optInTrigger.js +9 -1
  1344. package/push-opt-in/reducers/index.js +7 -1
  1345. package/push-opt-in/reducers/optInModal.js +31 -2
  1346. package/push-opt-in/reducers/optInTrigger.js +83 -2
  1347. package/push-opt-in/selectors/index.js +2 -1
  1348. package/push-opt-in/selectors/optInModal.js +13 -4
  1349. package/push-opt-in/selectors/optInTrigger.js +38 -3
  1350. package/push-opt-in/subscriptions/index.js +6 -1
  1351. package/push-opt-in/subscriptions/optInTracking.js +103 -2
  1352. package/push-opt-in/subscriptions/optInTrigger.js +109 -6
  1353. package/registration/action-creators/index.js +30 -5
  1354. package/registration/actions/index.js +1 -1
  1355. package/registration/actions/submitRegistration.js +25 -2
  1356. package/registration/components/GuestRegistration/GuestRegistration.js +23 -2
  1357. package/registration/components/GuestRegistration/GuestRegistrationContent.js +63 -2
  1358. package/registration/components/GuestRegistration/GuestRegistrationFormPickup.config.js +58 -2
  1359. package/registration/components/GuestRegistration/GuestRegistrationFormPickup.js +84 -2
  1360. package/registration/components/Registration/Registration.js +17 -2
  1361. package/registration/components/Registration/RegistrationContent.js +34 -2
  1362. package/registration/components/Registration/RegistrationContent.style.js +58 -2
  1363. package/registration/components/Registration/RegistrationFormActions.js +43 -2
  1364. package/registration/components/Registration/RegistrationFormBase.config.js +38 -2
  1365. package/registration/components/Registration/RegistrationFormBase.js +38 -2
  1366. package/registration/components/Registration/RegistrationFormBilling.config.js +93 -2
  1367. package/registration/components/Registration/RegistrationFormBilling.js +65 -2
  1368. package/registration/components/Registration/RegistrationFormExtra.config.js +28 -2
  1369. package/registration/components/Registration/RegistrationFormExtra.js +52 -2
  1370. package/registration/components/Registration/RegistrationFormShipping.config.js +82 -2
  1371. package/registration/components/Registration/RegistrationFormShipping.js +58 -2
  1372. package/registration/components/Registration/RegistrationFormToggle.js +55 -2
  1373. package/registration/components/index.js +2 -1
  1374. package/registration/constants/actionTypes.js +4 -1
  1375. package/registration/constants/index.js +8 -1
  1376. package/registration/constants/pipelines.js +1 -1
  1377. package/registration/hooks/index.js +8 -3
  1378. package/registration/index.js +2 -1
  1379. package/registration/providers/GuestRegistrationProvider.actions.js +101 -2
  1380. package/registration/providers/GuestRegistrationProvider.connector.js +44 -3
  1381. package/registration/providers/GuestRegistrationProvider.constraints.js +144 -6
  1382. package/registration/providers/GuestRegistrationProvider.context.js +3 -1
  1383. package/registration/providers/GuestRegistrationProvider.js +348 -17
  1384. package/registration/providers/RegistrationProvider.actions.js +105 -3
  1385. package/registration/providers/RegistrationProvider.connector.js +27 -3
  1386. package/registration/providers/RegistrationProvider.constraints.js +128 -7
  1387. package/registration/providers/RegistrationProvider.context.js +3 -1
  1388. package/registration/providers/RegistrationProvider.js +252 -13
  1389. package/registration/streams/index.js +8 -2
  1390. package/registration/subscriptions/index.js +40 -4
  1391. package/reviews/actions/index.js +5 -1
  1392. package/reviews/components/Reviews/components/AllReviewsLink/connector.js +19 -3
  1393. package/reviews/components/Reviews/components/AllReviewsLink/index.js +34 -2
  1394. package/reviews/components/Reviews/components/AllReviewsLink/style.js +15 -2
  1395. package/reviews/components/Reviews/components/Header/components/AverageRating/index.js +47 -3
  1396. package/reviews/components/Reviews/components/Header/components/AverageRating/style.js +9 -1
  1397. package/reviews/components/Reviews/components/Header/components/NoReviews/index.js +32 -2
  1398. package/reviews/components/Reviews/components/Header/components/NoReviews/style.js +18 -1
  1399. package/reviews/components/Reviews/components/Header/components/ReviewsExcerpt/index.js +49 -2
  1400. package/reviews/components/Reviews/components/Header/components/ReviewsExcerpt/style.js +27 -1
  1401. package/reviews/components/Reviews/components/Header/components/WriteReviewLink/index.js +26 -2
  1402. package/reviews/components/Reviews/components/Header/components/WriteReviewLink/spec.js +32 -2
  1403. package/reviews/components/Reviews/components/Header/connector.js +10 -2
  1404. package/reviews/components/Reviews/components/Header/index.js +39 -2
  1405. package/reviews/components/Reviews/components/Header/spec.js +56 -2
  1406. package/reviews/components/Reviews/components/List/components/Info/components/Author/index.js +24 -2
  1407. package/reviews/components/Reviews/components/List/components/Info/components/ReviewDate/index.js +17 -2
  1408. package/reviews/components/Reviews/components/List/components/Info/index.js +27 -3
  1409. package/reviews/components/Reviews/components/List/components/Info/style.js +9 -1
  1410. package/reviews/components/Reviews/components/List/components/Rating/index.js +21 -2
  1411. package/reviews/components/Reviews/components/List/components/Rating/style.js +14 -1
  1412. package/reviews/components/Reviews/components/List/components/Review/index.js +25 -2
  1413. package/reviews/components/Reviews/components/List/components/Text/index.js +22 -2
  1414. package/reviews/components/Reviews/components/List/components/Text/style.js +6 -1
  1415. package/reviews/components/Reviews/components/List/components/Title/index.js +17 -2
  1416. package/reviews/components/Reviews/components/List/components/Title/style.js +5 -1
  1417. package/reviews/components/Reviews/components/List/index.js +58 -3
  1418. package/reviews/components/Reviews/components/List/spec.js +69 -1
  1419. package/reviews/components/Reviews/components/List/style.js +11 -1
  1420. package/reviews/components/Reviews/components/RatingCount/index.js +27 -2
  1421. package/reviews/components/Reviews/components/RatingCount/spec.js +18 -1
  1422. package/reviews/components/Reviews/components/RatingCount/style.js +20 -1
  1423. package/reviews/components/Reviews/components/ReviewsInfo/index.js +47 -2
  1424. package/reviews/components/Reviews/connector.js +14 -2
  1425. package/reviews/components/Reviews/index.js +45 -2
  1426. package/reviews/components/Reviews/mock.js +83 -7
  1427. package/reviews/components/Reviews/spec.js +69 -4
  1428. package/reviews/components/Reviews/style.js +11 -1
  1429. package/reviews/components/index.js +1 -1
  1430. package/reviews/constants/index.js +3 -1
  1431. package/reviews/index.js +11 -2
  1432. package/reviews/selectors/index.js +1 -1
  1433. package/reviews/streams/index.js +1 -1
  1434. package/scanner/action-creators/index.js +3 -1
  1435. package/scanner/actions/index.js +4 -1
  1436. package/scanner/classes/index.js +1 -1
  1437. package/scanner/constants/index.js +3 -1
  1438. package/scanner/helpers/index.js +1 -1
  1439. package/scanner/index.js +10 -1
  1440. package/scanner/streams/index.js +1 -1
  1441. package/search/actions/index.js +2 -1
  1442. package/search/constants/index.js +3 -1
  1443. package/search/helpers/index.js +3 -1
  1444. package/search/index.js +9 -1
  1445. package/search/selectors/index.js +1 -1
  1446. package/search/streams/index.js +1 -1
  1447. package/styles/helpers/color.js +19 -8
  1448. package/styles/helpers/cssCustomProperties.js +35 -4
  1449. package/styles/helpers/index.js +11 -1
  1450. package/styles/helpers/initCSSCustomProperties.js +70 -4
  1451. package/styles/helpers/loadCustomStyles.js +31 -3
  1452. package/styles/helpers/setPageBackgroundColor.js +18 -3
  1453. package/styles/helpers/setPageContentWidth.js +7 -2
  1454. package/styles/helpers/setViewportHeight.js +11 -2
  1455. package/styles/helpers/toggleBodyScroll.js +48 -2
  1456. package/styles/helpers/updatePageInsets.js +38 -2
  1457. package/styles/index.js +3 -1
  1458. package/styles/reset/form.js +50 -4
  1459. package/styles/reset/index.js +5 -1
  1460. package/styles/reset/media.js +20 -1
  1461. package/styles/reset/root.js +59 -3
  1462. package/styles/reset/table.js +8 -1
  1463. package/styles/reset/typography.js +24 -1
  1464. package/styles/theme/createTheme/createBreakpoints.js +100 -15
  1465. package/styles/theme/createTheme/createPalette.js +54 -2
  1466. package/styles/theme/createTheme/createSpacing.js +38 -5
  1467. package/styles/theme/createTheme/createTypography.js +74 -5
  1468. package/styles/theme/createTheme/index.js +26 -2
  1469. package/styles/theme/createTheme/transitions.js +81 -15
  1470. package/styles/theme/createTheme/zIndex.js +7 -1
  1471. package/styles/theme/hooks/index.js +4 -1
  1472. package/styles/theme/hooks/useActiveBreakpoint.js +7 -2
  1473. package/styles/theme/hooks/useMediaQuery.js +40 -7
  1474. package/styles/theme/hooks/useResponsiveValue.js +23 -4
  1475. package/styles/theme/hooks/useTheme.js +7 -2
  1476. package/styles/theme/index.js +3 -1
  1477. package/styles/theme/providers/ActiveBreakpointProvider.js +59 -6
  1478. package/styles/theme/providers/ThemeProvider.js +22 -2
  1479. package/styles/tss/index.js +21 -3
  1480. package/tracking/action-creators/cookieConsent.js +41 -5
  1481. package/tracking/action-creators/index.js +1 -1
  1482. package/tracking/actions/cookieConsent.js +89 -10
  1483. package/tracking/actions/index.js +1 -1
  1484. package/tracking/components/CookieConsentModal/connector.js +23 -3
  1485. package/tracking/components/CookieConsentModal/index.js +142 -3
  1486. package/tracking/components/CookieConsentModal/style.js +59 -1
  1487. package/tracking/components/PrivacySettings/connector.js +23 -3
  1488. package/tracking/components/PrivacySettings/index.js +154 -2
  1489. package/tracking/components/PrivacySettings/style.js +45 -1
  1490. package/tracking/components/index.js +2 -1
  1491. package/tracking/constants/index.js +5 -1
  1492. package/tracking/helpers/index.js +1 -1
  1493. package/tracking/reducers/cookieConsentModal.js +28 -2
  1494. package/tracking/reducers/cookieSettings.js +23 -2
  1495. package/tracking/reducers/index.js +7 -1
  1496. package/tracking/selectors/cookieConsent.js +69 -11
  1497. package/tracking/selectors/index.js +2 -1
  1498. package/tracking/streams/cookieConsent.js +101 -14
  1499. package/tracking/streams/index.js +1 -1
  1500. package/tracking/subscriptions/analytics.js +194 -7
  1501. package/tracking/subscriptions/cookieConsent.js +62 -8
  1502. package/tracking/subscriptions/index.js +6 -1
  1503. package/user/index.js +25 -6
  1504. package/user/selectors/data.js +15 -3
  1505. package/user/selectors/login.js +15 -3
  1506. package/types.js +0 -0
@@ -1,8 +1,124 @@
1
- import React,{useEffect,memo}from'react';import{connect}from'react-redux';import PropTypes from'prop-types';import{withWidgetSettings}from'@shopgate/engage/core';import{Grid,ResponsiveContainer,SurroundPortals}from'@shopgate/engage/components';import{MERCHANT_SETTINGS_PRODUCT_SHOW_ALTERNATIVE_LOCATION}from"../../../core/constants";import{provideProductAlternativeLocation}from"../../action-creators";import{StockInfo}from"../StockInfo";import{locationName,alternativeLocation as gridClassName}from"./FulfillmentSelectorLocation.style";import{itemColumn,itemSpacer}from"./FulfillmentSelectorItem.style";import{useFulfillmentSelectorState}from"./FulfillmentSelector.hooks";import{PRODUCT_FULFILLMENT_SELECTOR_ALTERNATIVE_LOCATION}from"../../constants/Portals";import{getProductAlternativeLocations}from"../../selectors";import{SORT_CLOSEST_LOCATION_WITH_INVENTORY}from"../../constants";/**
1
+ import React, { useEffect, memo } from 'react';
2
+ import { connect } from 'react-redux';
3
+ import PropTypes from 'prop-types';
4
+ import { withWidgetSettings } from '@shopgate/engage/core';
5
+ import { Grid, ResponsiveContainer, SurroundPortals } from '@shopgate/engage/components';
6
+ import { MERCHANT_SETTINGS_PRODUCT_SHOW_ALTERNATIVE_LOCATION } from "../../../core/constants";
7
+ import { provideProductAlternativeLocation } from "../../action-creators";
8
+ import { StockInfo } from "../StockInfo";
9
+ import { locationName, alternativeLocation as gridClassName } from "./FulfillmentSelectorLocation.style";
10
+ import { itemColumn, itemSpacer } from "./FulfillmentSelectorItem.style";
11
+ import { useFulfillmentSelectorState } from "./FulfillmentSelector.hooks";
12
+ import { PRODUCT_FULFILLMENT_SELECTOR_ALTERNATIVE_LOCATION } from "../../constants/Portals";
13
+ import { getProductAlternativeLocations } from "../../selectors";
14
+ import { SORT_CLOSEST_LOCATION_WITH_INVENTORY } from "../../constants";
15
+
16
+ /**
2
17
  * The FulfillmentSelectorLocation component
3
18
  * @returns {JSX}
4
- */function FulfillmentSelectorAlternativeLocation(_ref){var productId=_ref.productId,show=_ref.show,alternativeLocations=_ref.alternativeLocations,provideAlternativeLocation=_ref.provideAlternativeLocation,widgetSettings=_ref.widgetSettings;var _useFulfillmentSelect=useFulfillmentSelectorState(),_useFulfillmentSelect2=_useFulfillmentSelect.merchantSettings,merchantSettings=_useFulfillmentSelect2===void 0?{}:_useFulfillmentSelect2,selectedLocation=_useFulfillmentSelect.selectedLocation;var _ref2=widgetSettings||{},_ref2$alternativeLoca=_ref2.alternativeLocationOnPDP,_ref2$alternativeLoca2=_ref2$alternativeLoca===void 0?{}:_ref2$alternativeLoca,_ref2$alternativeLoca3=_ref2$alternativeLoca2.radius,radius=_ref2$alternativeLoca3===void 0?50:_ref2$alternativeLoca3;var showAlternative=merchantSettings[MERCHANT_SETTINGS_PRODUCT_SHOW_ALTERNATIVE_LOCATION]||false;useEffect(function(){if(show&&showAlternative&&productId&&!alternativeLocations){provideAlternativeLocation(productId,{sort:SORT_CLOSEST_LOCATION_WITH_INVENTORY,radius:radius});}},[productId,provideAlternativeLocation,alternativeLocations,radius,show,showAlternative]);if(!show||!showAlternative||!productId){return null;}if(!alternativeLocations||!alternativeLocations.length){return null;}var alternativeLocation=alternativeLocations.find(function(l){return l.code!==(selectedLocation===null||selectedLocation===void 0?void 0:selectedLocation.code);});return React.createElement(SurroundPortals,{portalName:PRODUCT_FULFILLMENT_SELECTOR_ALTERNATIVE_LOCATION,portalProps:{productId:productId,location:alternativeLocation}},alternativeLocation&&React.createElement(Grid,{component:"div",className:gridClassName},React.createElement(ResponsiveContainer,{appAlways:true,breakpoint:"xs"},React.createElement(Grid.Item,{className:itemColumn,grow:1,shrink:0,component:"div"},React.createElement("div",{className:locationName},alternativeLocation.name)),React.createElement(Grid.Item,{className:itemColumn,grow:1,shrink:0,component:"div"},React.createElement(StockInfo,{productId:productId,location:alternativeLocation}))),React.createElement(ResponsiveContainer,{webOnly:true,breakpoint:">xs"},React.createElement("div",{className:locationName},alternativeLocation.name,React.createElement("span",{className:itemSpacer},React.createElement(StockInfo,{productId:productId,location:alternativeLocation}))))));}FulfillmentSelectorAlternativeLocation.defaultProps={alternativeLocations:null,productId:null,widgetSettings:null};/**
19
+ */
20
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
21
+ function FulfillmentSelectorAlternativeLocation({
22
+ productId,
23
+ show,
24
+ alternativeLocations,
25
+ provideAlternativeLocation,
26
+ widgetSettings
27
+ }) {
28
+ const {
29
+ merchantSettings = {},
30
+ selectedLocation
31
+ } = useFulfillmentSelectorState();
32
+ const {
33
+ alternativeLocationOnPDP: {
34
+ radius = 50
35
+ } = {}
36
+ } = widgetSettings || {};
37
+ const showAlternative = merchantSettings[MERCHANT_SETTINGS_PRODUCT_SHOW_ALTERNATIVE_LOCATION] || false;
38
+ useEffect(() => {
39
+ if (show && showAlternative && productId && !alternativeLocations) {
40
+ provideAlternativeLocation(productId, {
41
+ sort: SORT_CLOSEST_LOCATION_WITH_INVENTORY,
42
+ radius
43
+ });
44
+ }
45
+ }, [productId, provideAlternativeLocation, alternativeLocations, radius, show, showAlternative]);
46
+ if (!show || !showAlternative || !productId) {
47
+ return null;
48
+ }
49
+ if (!alternativeLocations || !alternativeLocations.length) {
50
+ return null;
51
+ }
52
+ const alternativeLocation = alternativeLocations.find(l => l.code !== selectedLocation?.code);
53
+ return /*#__PURE__*/_jsx(SurroundPortals, {
54
+ portalName: PRODUCT_FULFILLMENT_SELECTOR_ALTERNATIVE_LOCATION,
55
+ portalProps: {
56
+ productId,
57
+ location: alternativeLocation
58
+ },
59
+ children: alternativeLocation && /*#__PURE__*/_jsxs(Grid, {
60
+ component: "div",
61
+ className: gridClassName,
62
+ children: [/*#__PURE__*/_jsxs(ResponsiveContainer, {
63
+ appAlways: true,
64
+ breakpoint: "xs",
65
+ children: [/*#__PURE__*/_jsx(Grid.Item, {
66
+ className: itemColumn,
67
+ grow: 1,
68
+ shrink: 0,
69
+ component: "div",
70
+ children: /*#__PURE__*/_jsx("div", {
71
+ className: locationName,
72
+ children: alternativeLocation.name
73
+ })
74
+ }), /*#__PURE__*/_jsx(Grid.Item, {
75
+ className: itemColumn,
76
+ grow: 1,
77
+ shrink: 0,
78
+ component: "div",
79
+ children: /*#__PURE__*/_jsx(StockInfo, {
80
+ productId: productId,
81
+ location: alternativeLocation
82
+ })
83
+ })]
84
+ }), /*#__PURE__*/_jsx(ResponsiveContainer, {
85
+ webOnly: true,
86
+ breakpoint: ">xs",
87
+ children: /*#__PURE__*/_jsxs("div", {
88
+ className: locationName,
89
+ children: [alternativeLocation.name, /*#__PURE__*/_jsx("span", {
90
+ className: itemSpacer,
91
+ children: /*#__PURE__*/_jsx(StockInfo, {
92
+ productId: productId,
93
+ location: alternativeLocation
94
+ })
95
+ })]
96
+ })
97
+ })]
98
+ })
99
+ });
100
+ }
101
+ FulfillmentSelectorAlternativeLocation.defaultProps = {
102
+ alternativeLocations: null,
103
+ productId: null,
104
+ widgetSettings: null
105
+ };
106
+
107
+ /**
5
108
  * @param {Object} state The current application state.
6
109
  * @param {Object} props The component props.
7
110
  * @return {Object}
8
- */var mapStateToProps=function mapStateToProps(state,props){var _props$widgetSettings,_props$widgetSettings2;return{alternativeLocations:getProductAlternativeLocations(state,{productId:props.productId,params:{sort:SORT_CLOSEST_LOCATION_WITH_INVENTORY,radius:((_props$widgetSettings=props.widgetSettings)===null||_props$widgetSettings===void 0?void 0:(_props$widgetSettings2=_props$widgetSettings.alternativeLocationOnPDP)===null||_props$widgetSettings2===void 0?void 0:_props$widgetSettings2.radius)||50}})};};var mapDispatchToProps={provideAlternativeLocation:provideProductAlternativeLocation};export default withWidgetSettings(connect(mapStateToProps,mapDispatchToProps)(memo(FulfillmentSelectorAlternativeLocation)),'@shopgate/engage/locations');
111
+ */
112
+ const mapStateToProps = (state, props) => ({
113
+ alternativeLocations: getProductAlternativeLocations(state, {
114
+ productId: props.productId,
115
+ params: {
116
+ sort: SORT_CLOSEST_LOCATION_WITH_INVENTORY,
117
+ radius: props.widgetSettings?.alternativeLocationOnPDP?.radius || 50
118
+ }
119
+ })
120
+ });
121
+ const mapDispatchToProps = {
122
+ provideAlternativeLocation: provideProductAlternativeLocation
123
+ };
124
+ export default withWidgetSettings(connect(mapStateToProps, mapDispatchToProps)(/*#__PURE__*/memo(FulfillmentSelectorAlternativeLocation)), '@shopgate/engage/locations');
@@ -1,4 +1,25 @@
1
- function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}import React from'react';import classNames from'classnames';import{i18n}from"../../../core";import{IN_STORE_PICKUP_BOPIS_LABEL}from"../../constants";import{itemRowDisabled}from"./FulfillmentSelectorItem.style";import{useFulfillmentSelectorState}from"./FulfillmentSelector.hooks";/**
1
+ import React from 'react';
2
+ import classNames from 'classnames';
3
+ import { i18n } from '@shopgate/engage/core/helpers';
4
+ import { IN_STORE_PICKUP_BOPIS_LABEL } from "../../constants";
5
+ import { itemRowDisabled } from "./FulfillmentSelectorItem.style";
6
+ import { useFulfillmentSelectorState } from "./FulfillmentSelector.hooks";
7
+
8
+ /**
2
9
  * Renders the FulfillmentSelectorBOPIS components.
3
- * @returns {JSX}
4
- */export function FulfillmentSelectorBOPIS(){var _useFulfillmentSelect=useFulfillmentSelectorState(),isBOPISEnabled=_useFulfillmentSelect.isBOPISEnabled,isReady=_useFulfillmentSelect.isReady;var classes=classNames(_defineProperty({},itemRowDisabled.toString(),!isReady||!isBOPISEnabled));return React.createElement("div",{className:classes},i18n.text(IN_STORE_PICKUP_BOPIS_LABEL));}
10
+ * @returns {JSX.Element}
11
+ */
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ export const FulfillmentSelectorBOPIS = () => {
14
+ const {
15
+ isBOPISEnabled,
16
+ isReady
17
+ } = useFulfillmentSelectorState();
18
+ const classes = classNames({
19
+ [itemRowDisabled.toString()]: !isReady || !isBOPISEnabled
20
+ });
21
+ return /*#__PURE__*/_jsx("div", {
22
+ className: classes,
23
+ children: i18n.text(IN_STORE_PICKUP_BOPIS_LABEL)
24
+ });
25
+ };
@@ -1,5 +1,55 @@
1
- function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}import*as React from'react';import classNames from'classnames';import{Grid}from'@shopgate/engage/components';import{i18n}from"../../../core";import{Availability}from"../../../product";import{DIRECT_SHIP_LABEL,DIRECT_SHIP}from"../../constants";import{itemRow,itemColumn,itemRowDisabled}from"./FulfillmentSelectorItem.style";import{useFulfillmentSelectorState}from"./FulfillmentSelector.hooks";import{FulfillmentSelectorImpossibleError}from"./FulfillmentSelectorImpossibleError";/**
1
+ import * as React from 'react';
2
+ import classNames from 'classnames';
3
+ import { Grid } from '@shopgate/engage/components';
4
+ import { i18n } from "../../../core";
5
+ import { Availability } from "../../../product";
6
+ import { DIRECT_SHIP_LABEL, DIRECT_SHIP } from "../../constants";
7
+ import { itemRow, itemColumn, itemRowDisabled } from "./FulfillmentSelectorItem.style";
8
+ import { useFulfillmentSelectorState } from "./FulfillmentSelector.hooks";
9
+ import { FulfillmentSelectorImpossibleError } from "./FulfillmentSelectorImpossibleError";
10
+
11
+ /**
2
12
  * Renders the direct ship item label.
3
- * @param {Object} props The component props.
4
- * @returns {JSX}
5
- */export function FulfillmentSelectorDirectShip(){var _useFulfillmentSelect=useFulfillmentSelectorState(),productId=_useFulfillmentSelect.productId,selection=_useFulfillmentSelect.selection,isOrderable=_useFulfillmentSelect.isOrderable,isDirectShipEnabled=_useFulfillmentSelect.isDirectShipEnabled,isReady=_useFulfillmentSelect.isReady;var rowClasses=React.useMemo(function(){return classNames(itemRow,_defineProperty({},itemRowDisabled.toString(),!isReady||!isDirectShipEnabled));},[isDirectShipEnabled,isReady]);var selected=selection===DIRECT_SHIP;if(selected&&!isOrderable){return React.createElement(React.Fragment,null,React.createElement("div",null,i18n.text(DIRECT_SHIP_LABEL)),React.createElement(FulfillmentSelectorImpossibleError,null));}return React.createElement(Grid,{className:rowClasses,component:"div"},React.createElement(Grid.Item,{className:itemColumn,grow:1,shrink:0,component:"div"},i18n.text(DIRECT_SHIP_LABEL)),React.createElement(Grid.Item,{className:itemColumn,grow:1,shrink:0,component:"div"},isReady&&isDirectShipEnabled&&isOrderable&&React.createElement(Availability,{productId:productId,fulfillmentSelection:DIRECT_SHIP})));}
13
+ * @returns {JSX.Element}
14
+ */
15
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
16
+ export const FulfillmentSelectorDirectShip = () => {
17
+ const {
18
+ productId,
19
+ selection,
20
+ isOrderable,
21
+ isDirectShipEnabled,
22
+ isReady
23
+ } = useFulfillmentSelectorState();
24
+ const rowClasses = React.useMemo(() => classNames(itemRow, {
25
+ [itemRowDisabled.toString()]: !isReady || !isDirectShipEnabled
26
+ }), [isDirectShipEnabled, isReady]);
27
+ const selected = selection === DIRECT_SHIP;
28
+ if (selected && !isOrderable) {
29
+ return /*#__PURE__*/_jsxs(_Fragment, {
30
+ children: [/*#__PURE__*/_jsx("div", {
31
+ children: i18n.text(DIRECT_SHIP_LABEL)
32
+ }), /*#__PURE__*/_jsx(FulfillmentSelectorImpossibleError, {})]
33
+ });
34
+ }
35
+ return /*#__PURE__*/_jsxs(Grid, {
36
+ className: rowClasses,
37
+ component: "div",
38
+ children: [/*#__PURE__*/_jsx(Grid.Item, {
39
+ className: itemColumn,
40
+ grow: 1,
41
+ shrink: 0,
42
+ component: "div",
43
+ children: i18n.text(DIRECT_SHIP_LABEL)
44
+ }), /*#__PURE__*/_jsx(Grid.Item, {
45
+ className: itemColumn,
46
+ grow: 1,
47
+ shrink: 0,
48
+ component: "div",
49
+ children: isReady && isDirectShipEnabled && isOrderable && /*#__PURE__*/_jsx(Availability, {
50
+ productId: productId,
51
+ fulfillmentSelection: DIRECT_SHIP
52
+ })
53
+ })]
54
+ });
55
+ };
@@ -1,4 +1,17 @@
1
- import React from'react';import{i18n}from'@shopgate/engage/core';import{container}from"./FulfillmentSelectorHeader.style";/**
1
+ import React from 'react';
2
+ import { i18n } from '@shopgate/engage/core/helpers';
3
+ import { container } from "./FulfillmentSelectorHeader.style";
4
+
5
+ /**
2
6
  * Renders the fulfillment selector title.
3
- * @returns {JSX}
4
- */export function FulfillmentSelectorHeader(){return React.createElement("div",{role:"heading",className:container},i18n.text('locations.fulfillment.heading'));}
7
+ * @returns {JSX.Element}
8
+ */
9
+ import { jsx as _jsx } from "react/jsx-runtime";
10
+ export const FulfillmentSelectorHeader = () =>
11
+ /*#__PURE__*/
12
+ // eslint-disable-next-line jsx-a11y/role-has-required-aria-props
13
+ _jsx("div", {
14
+ role: "heading",
15
+ className: container,
16
+ children: i18n.text('locations.fulfillment.heading')
17
+ });
@@ -1 +1,9 @@
1
- import{css}from'glamor';import{themeConfig}from'@shopgate/pwa-common/helpers/config';var variables=themeConfig.variables;export var container=css({fontWeight:500,marginBottom:variables.gap.xsmall});
1
+ import { css } from 'glamor';
2
+ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
3
+ const {
4
+ variables
5
+ } = themeConfig;
6
+ export const container = css({
7
+ fontWeight: 500,
8
+ marginBottom: variables.gap.xsmall
9
+ }).toString();
@@ -1,4 +1,43 @@
1
- import React,{useMemo,useContext}from'react';import{Availability}from'@shopgate/engage/components';import{i18n,LoadingContext,useRoute}from'@shopgate/engage/core';import{AVAILABILITY_STATE_ALERT}from'@shopgate/engage/product';import{DIRECT_SHIP,ROPIS,BOPIS}from"../../constants";import{useFulfillmentSelectorState}from"./FulfillmentSelector.hooks";import{container}from"./FulfillmentSelectorImpossibleError.style";/**
1
+ import React, { useMemo, useContext } from 'react';
2
+ import { Availability } from '@shopgate/engage/components';
3
+ import { i18n, LoadingContext, useRoute } from '@shopgate/engage/core';
4
+ import { AVAILABILITY_STATE_ALERT } from '@shopgate/engage/product';
5
+ import { DIRECT_SHIP, ROPIS, BOPIS } from "../../constants";
6
+ import { useFulfillmentSelectorState } from "./FulfillmentSelector.hooks";
7
+ import { container } from "./FulfillmentSelectorImpossibleError.style";
8
+
9
+ /**
2
10
  * Renders the "not possible" error for each item.
3
11
  * @returns {JSX}
4
- */export function FulfillmentSelectorImpossibleError(){var _useFulfillmentSelect=useFulfillmentSelectorState(),selection=_useFulfillmentSelect.selection,selectedLocation=_useFulfillmentSelect.selectedLocation;var _useRoute=useRoute(),pathname=_useRoute.pathname;var _useContext=useContext(LoadingContext),isLoading=_useContext.isLoading;var isDirectShip=useMemo(function(){return selection===DIRECT_SHIP;},[selection]);var isInStorePickup=useMemo(function(){return[ROPIS,BOPIS].includes(selection);},[selection]);if(!isDirectShip&&!isInStorePickup||isLoading(pathname)){return null;}var label=i18n.text('locations.fulfillment.error.reserve');if(isDirectShip){label=i18n.text('locations.fulfillment.error.direct_ship');}if(!isDirectShip&&!(selectedLocation===null||selectedLocation===void 0?void 0:selectedLocation.code)){label=i18n.text('locations.fulfillment.error.not_ready');}return React.createElement(Availability,{className:container,showWhenAvailable:true,text:label,state:AVAILABILITY_STATE_ALERT});}
12
+ */
13
+ import { jsx as _jsx } from "react/jsx-runtime";
14
+ export function FulfillmentSelectorImpossibleError() {
15
+ const {
16
+ selection,
17
+ selectedLocation
18
+ } = useFulfillmentSelectorState();
19
+ const {
20
+ pathname
21
+ } = useRoute();
22
+ const {
23
+ isLoading
24
+ } = useContext(LoadingContext);
25
+ const isDirectShip = useMemo(() => selection === DIRECT_SHIP, [selection]);
26
+ const isInStorePickup = useMemo(() => [ROPIS, BOPIS].includes(selection), [selection]);
27
+ if (!isDirectShip && !isInStorePickup || isLoading(pathname)) {
28
+ return null;
29
+ }
30
+ let label = i18n.text('locations.fulfillment.error.reserve');
31
+ if (isDirectShip) {
32
+ label = i18n.text('locations.fulfillment.error.direct_ship');
33
+ }
34
+ if (!isDirectShip && !selectedLocation?.code) {
35
+ label = i18n.text('locations.fulfillment.error.not_ready');
36
+ }
37
+ return /*#__PURE__*/_jsx(Availability, {
38
+ className: container,
39
+ showWhenAvailable: true,
40
+ text: label,
41
+ state: AVAILABILITY_STATE_ALERT
42
+ });
43
+ }
@@ -1 +1,4 @@
1
- import{css}from'glamor';export var container=css({fontSize:'0.625rem'}).toString();
1
+ import { css } from 'glamor';
2
+ export const container = css({
3
+ fontSize: '0.625rem'
4
+ }).toString();
@@ -1,8 +1,79 @@
1
- function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}import*as React from'react';import classNames from'classnames';import CheckedIcon from'@shopgate/pwa-ui-shared/icons/RadioCheckedIcon';import UncheckedIcon from'@shopgate/pwa-ui-shared/icons/RadioUncheckedIcon';import{radioContainer,disabled as radioContainerDisabled,activeIcon,activeIconDisabled,inactiveIcon,inactiveIconDisabled,radio,content}from"./FulfillmentSelectorItem.style";import{useFulfillmentSelectorState}from"./FulfillmentSelector.hooks";/**
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import classNames from 'classnames';
4
+ import CheckedIcon from '@shopgate/pwa-ui-shared/icons/RadioCheckedIcon';
5
+ import UncheckedIcon from '@shopgate/pwa-ui-shared/icons/RadioUncheckedIcon';
6
+ import { radioContainer, disabled as radioContainerDisabled, activeIcon, activeIconDisabled, inactiveIcon, inactiveIconDisabled, radio, content } from "./FulfillmentSelectorItem.style";
7
+ import { useFulfillmentSelectorState } from "./FulfillmentSelector.hooks";
8
+ import { DIRECT_SHIP, ROPIS, BOPIS } from "../../constants";
9
+
10
+ /** @typedef {import('./FulfillmentSelector.types').Selection} Selection */
11
+
12
+ /**
2
13
  * Renders a fulfillment selector radio item.
3
14
  * @param {Object} props The component props.
4
- * @returns {JSX}
5
- */function FulfillmentSelectorItemUnwrapped(props){var name=props.name,children=props.children,onChange=props.onChange,disabled=props.disabled;var _useFulfillmentSelect=useFulfillmentSelectorState(),selection=_useFulfillmentSelect.selection;var checked=selection===name;/**
15
+ * @param {Selection} props.name The name of the selection.
16
+ * @param {React.ReactNode} props.children The child elements.
17
+ * @param {function(Selection): void} props.onChange The change handler.
18
+ * @param {boolean} [props.disabled=false] Whether the item is disabled.
19
+ * @returns {JSX.Element} The rendered component.
20
+ */
21
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
22
+ const FulfillmentSelectorItemUnwrapped = ({
23
+ name,
24
+ children,
25
+ onChange,
26
+ disabled
27
+ }) => {
28
+ const {
29
+ selection
30
+ } = useFulfillmentSelectorState();
31
+ const checked = selection === name;
32
+
33
+ /**
6
34
  * Handle the change to the radio item.
7
- * @param {Object} event The change event.
8
- */function handleChange(event){event.preventDefault();if(disabled){return;}onChange(name);}var containerClasses=classNames(radioContainer.toString(),_defineProperty({},radioContainerDisabled.toString(),disabled));return React.createElement("label",{htmlFor:name,className:containerClasses,onClick:handleChange,role:"radio","aria-checked":checked,tabIndex:"0"},checked?React.createElement(CheckedIcon,{className:disabled?activeIconDisabled:activeIcon}):React.createElement(UncheckedIcon,{className:disabled?inactiveIconDisabled:inactiveIcon}),React.createElement("input",{type:"radio",checked:checked,name:name,className:radio,readOnly:true}),React.createElement("div",{className:content},children));}FulfillmentSelectorItemUnwrapped.defaultProps={disabled:false};export var FulfillmentSelectorItem=React.memo(FulfillmentSelectorItemUnwrapped);
35
+ * @param {React.MouseEvent<HTMLLabelElement>} event The click event.
36
+ */
37
+ const handleChange = event => {
38
+ event.preventDefault();
39
+ if (disabled) {
40
+ return;
41
+ }
42
+ onChange(name);
43
+ };
44
+ const containerClasses = classNames(radioContainer.toString(), {
45
+ [radioContainerDisabled.toString()]: disabled
46
+ });
47
+ return (
48
+ /*#__PURE__*/
49
+ // eslint-disable-next-line jsx-a11y/click-events-have-key-events
50
+ _jsxs("label", {
51
+ htmlFor: name,
52
+ className: containerClasses,
53
+ onClick: handleChange
54
+ // eslint-disable-next-line jsx-a11y/no-noninteractive-element-to-interactive-role
55
+ ,
56
+ role: "radio",
57
+ "aria-checked": checked,
58
+ tabIndex: "0",
59
+ children: [checked ? /*#__PURE__*/_jsx(CheckedIcon, {
60
+ className: disabled ? activeIconDisabled : activeIcon
61
+ }) : /*#__PURE__*/_jsx(UncheckedIcon, {
62
+ className: disabled ? inactiveIconDisabled : inactiveIcon
63
+ }), /*#__PURE__*/_jsx("input", {
64
+ type: "radio",
65
+ checked: checked,
66
+ name: name,
67
+ className: radio,
68
+ readOnly: true
69
+ }), /*#__PURE__*/_jsx("div", {
70
+ className: content,
71
+ children: children
72
+ })]
73
+ })
74
+ );
75
+ };
76
+ FulfillmentSelectorItemUnwrapped.defaultProps = {
77
+ disabled: false
78
+ };
79
+ export const FulfillmentSelectorItem = /*#__PURE__*/React.memo(FulfillmentSelectorItemUnwrapped);
@@ -1 +1,60 @@
1
- import{css}from'glamor';import{themeConfig}from'@shopgate/pwa-common/helpers/config';var variables=themeConfig.variables,colors=themeConfig.colors;export var radioContainer=css({display:'flex',flexFlow:'row nowrap',padding:"".concat(variables.gap.xsmall,"px 0")});export var disabled=css({cursor:'not-allowed'});var icon={width:24,height:24,flexShrink:0,marginTop:'-1px',marginRight:variables.gap.small,color:'var(--color-text-medium-emphasis)'};export var inactiveIcon=css(icon).toString();export var inactiveIconDisabled=css(icon,{opacity:0.3}).toString();export var activeIcon=css(icon,{color:"var(--color-primary, ".concat(colors.primary,")")}).toString();export var activeIconDisabled=css(icon,{color:"var(--color-primary, ".concat(colors.primary,")"),opacity:0.3}).toString();export var radio=css({display:'none'});export var content=css({flexGrow:1,color:'var(--color-text-high-emphasis)'});export var itemRow=css({alignContent:'stretch',alignItems:'baseline'}).toString();export var itemRowDisabled=css({opacity:0.3});export var itemSpacer=css({marginLeft:16});export var itemColumn=css({display:'block',width:'50%','&:first-of-type':{paddingRight:variables.gap.small},'&:last-of-type':{textAlign:'right'}}).toString();
1
+ import { css } from 'glamor';
2
+ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
3
+ const {
4
+ variables,
5
+ colors
6
+ } = themeConfig;
7
+ export const radioContainer = css({
8
+ display: 'flex',
9
+ flexFlow: 'row nowrap',
10
+ padding: `${variables.gap.xsmall}px 0`
11
+ });
12
+ export const disabled = css({
13
+ cursor: 'not-allowed'
14
+ });
15
+ const icon = {
16
+ width: 24,
17
+ height: 24,
18
+ flexShrink: 0,
19
+ marginTop: '-1px',
20
+ marginRight: variables.gap.small,
21
+ color: 'var(--color-text-medium-emphasis)'
22
+ };
23
+ export const inactiveIcon = css(icon).toString();
24
+ export const inactiveIconDisabled = css(icon, {
25
+ opacity: 0.3
26
+ }).toString();
27
+ export const activeIcon = css(icon, {
28
+ color: `var(--color-primary, ${colors.primary})`
29
+ }).toString();
30
+ export const activeIconDisabled = css(icon, {
31
+ color: `var(--color-primary, ${colors.primary})`,
32
+ opacity: 0.3
33
+ }).toString();
34
+ export const radio = css({
35
+ display: 'none'
36
+ }).toString();
37
+ export const content = css({
38
+ flexGrow: 1,
39
+ color: 'var(--color-text-high-emphasis)'
40
+ }).toString();
41
+ export const itemRow = css({
42
+ alignContent: 'stretch',
43
+ alignItems: 'baseline'
44
+ }).toString();
45
+ export const itemRowDisabled = css({
46
+ opacity: 0.3
47
+ });
48
+ export const itemSpacer = css({
49
+ marginLeft: 16
50
+ });
51
+ export const itemColumn = css({
52
+ display: 'block',
53
+ width: '50%',
54
+ '&:first-of-type': {
55
+ paddingRight: variables.gap.small
56
+ },
57
+ '&:last-of-type': {
58
+ textAlign: 'right'
59
+ }
60
+ }).toString();
@@ -1,4 +1,133 @@
1
- import React,{useCallback,useMemo,Fragment}from'react';import classNames from'classnames';import intersection from'lodash/intersection';import{Grid,ResponsiveContainer,SurroundPortals}from'@shopgate/engage/components';import{ROPIS,BOPIS,DIRECT_SHIP}from"../../constants";import{i18n}from"../../../core";import{isProductAvailable}from"../../helpers";import{ChangeLocationButton}from"../ChangeLocationButton";import{StockInfo}from"../StockInfo";import{FulfillmentSelectorImpossibleError}from"./FulfillmentSelectorImpossibleError";import{useFulfillmentSelectorState}from"./FulfillmentSelector.hooks";import{container,unavailable,locationName}from"./FulfillmentSelectorLocation.style";import{itemRow,itemColumn,itemSpacer}from"./FulfillmentSelectorItem.style";import{PRODUCT_FULFILLMENT_SELECTOR_LOCATION}from"../../constants/Portals";import{FulfillmentSelectorLocationMethodNotAvailable}from"./FulfillmentSelectorLocationMethodNotAvailable";import FulfillmentSelectorAlternativeLocation from"./FulfillmentSelectorAlternativeLocation";/**
1
+ import React, { useCallback, useMemo, Fragment } from 'react';
2
+ import classNames from 'classnames';
3
+ import intersection from 'lodash/intersection';
4
+ import { Grid, ResponsiveContainer, SurroundPortals } from '@shopgate/engage/components';
5
+ import { ROPIS, BOPIS, DIRECT_SHIP } from "../../constants";
6
+ import { i18n } from "../../../core";
7
+ import { isProductAvailable } from "../../helpers";
8
+ import { ChangeLocationButton } from "../ChangeLocationButton";
9
+ import { StockInfo } from "../StockInfo";
10
+ import { FulfillmentSelectorImpossibleError } from "./FulfillmentSelectorImpossibleError";
11
+ import { useFulfillmentSelectorState } from "./FulfillmentSelector.hooks";
12
+ import { container, unavailable, locationName } from "./FulfillmentSelectorLocation.style";
13
+ import { itemRow, itemColumn, itemSpacer } from "./FulfillmentSelectorItem.style";
14
+ import { PRODUCT_FULFILLMENT_SELECTOR_LOCATION } from "../../constants/Portals";
15
+ import { FulfillmentSelectorLocationMethodNotAvailable } from "./FulfillmentSelectorLocationMethodNotAvailable";
16
+ import FulfillmentSelectorAlternativeLocation from "./FulfillmentSelectorAlternativeLocation";
17
+
18
+ /**
2
19
  * The FulfillmentSelectorLocation component
3
20
  * @returns {JSX}
4
- */export function FulfillmentSelectorLocation(){var _useFulfillmentSelect=useFulfillmentSelectorState(),selection=_useFulfillmentSelect.selection,preferredLocation=_useFulfillmentSelect.preferredLocation,selectedLocation=_useFulfillmentSelect.selectedLocation,inventory=_useFulfillmentSelect.inventory,handleChange=_useFulfillmentSelect.handleChange,isReady=_useFulfillmentSelect.isReady,isROPISEnabled=_useFulfillmentSelect.isROPISEnabled,isBOPISEnabled=_useFulfillmentSelect.isBOPISEnabled,userFulfillmentMethod=_useFulfillmentSelect.userFulfillmentMethod,productFulfillmentMethods=_useFulfillmentSelect.productFulfillmentMethods,shopFulfillmentMethods=_useFulfillmentSelect.shopFulfillmentMethods,locationFulfillmentMethods=_useFulfillmentSelect.locationFulfillmentMethods,useLocationFulfillmentMethods=_useFulfillmentSelect.useLocationFulfillmentMethods,productId=_useFulfillmentSelect.productId;var usedLocation=selectedLocation||preferredLocation;var selected=[ROPIS,BOPIS].includes(selection);var isOrderable=isProductAvailable(usedLocation||{},inventory||{});var handleChangeLocation=useCallback(function(){if(selected){handleChange(userFulfillmentMethod,true);}},[handleChange,selected,userFulfillmentMethod]);var locationSupportsFulfillmentMethod=useMemo(function(){if(!useLocationFulfillmentMethods||!selected){return true;}return locationFulfillmentMethods.includes(userFulfillmentMethod);},[locationFulfillmentMethods,selected,useLocationFulfillmentMethods,userFulfillmentMethod]);var selectionAvailableForProduct=useMemo(function(){return intersection(shopFulfillmentMethods||[],productFulfillmentMethods||[]).filter(function(entry){return entry!==DIRECT_SHIP;}).includes(selection);},[shopFulfillmentMethods,productFulfillmentMethods,selection]);if(!isReady||preferredLocation&&!inventory){return null;}var isRopeMethodEnabled=isROPISEnabled||isBOPISEnabled||selectionAvailableForProduct;return React.createElement(Fragment,null,React.createElement(SurroundPortals,{portalName:PRODUCT_FULFILLMENT_SELECTOR_LOCATION,portalProps:{productId:productId,location:usedLocation,inventory:inventory}},isRopeMethodEnabled&&isOrderable&&usedLocation&&React.createElement(Grid,{className:classNames(itemRow,container),component:"div"},React.createElement(Grid,{component:"div"},React.createElement(ResponsiveContainer,{appAlways:true,breakpoint:"xs"},React.createElement(Grid.Item,{className:itemColumn,grow:1,shrink:0,component:"div"},React.createElement("div",{className:locationName},usedLocation.name)),React.createElement(Grid.Item,{className:itemColumn,grow:1,shrink:0,component:"div"},React.createElement(StockInfo,{productId:productId,location:usedLocation}))),React.createElement(ResponsiveContainer,{webOnly:true,breakpoint:">xs"},React.createElement("div",null,React.createElement("div",{className:locationName},usedLocation.name)),React.createElement("div",{className:itemSpacer},React.createElement(StockInfo,{productId:productId,location:usedLocation})))),selectionAvailableForProduct&&!locationSupportsFulfillmentMethod?React.createElement(FulfillmentSelectorLocationMethodNotAvailable,{method:userFulfillmentMethod}):null,React.createElement(ChangeLocationButton,{onClick:handleChangeLocation,disabled:!selected})),isRopeMethodEnabled&&selected&&!isOrderable&&React.createElement("div",{className:container},React.createElement("div",{className:locationName},(usedLocation===null||usedLocation===void 0?void 0:usedLocation.name)||''),React.createElement(FulfillmentSelectorImpossibleError,null),React.createElement(ChangeLocationButton,{onClick:handleChangeLocation})),false&&!isRopeMethodEnabled?React.createElement("div",{className:classNames(unavailable,container)},i18n.text('locations.no_available')):null),React.createElement(FulfillmentSelectorAlternativeLocation,{show:!!isRopeMethodEnabled&&!!usedLocation&&!!inventory&&!isOrderable,productId:productId}));}
21
+ */
22
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
23
+ export function FulfillmentSelectorLocation() {
24
+ const {
25
+ selection,
26
+ preferredLocation,
27
+ selectedLocation,
28
+ inventory,
29
+ handleChange,
30
+ isReady,
31
+ isROPISEnabled,
32
+ isBOPISEnabled,
33
+ userFulfillmentMethod,
34
+ productFulfillmentMethods,
35
+ shopFulfillmentMethods,
36
+ locationFulfillmentMethods,
37
+ useLocationFulfillmentMethods,
38
+ productId
39
+ } = useFulfillmentSelectorState();
40
+ const usedLocation = selectedLocation || preferredLocation;
41
+ const selected = [ROPIS, BOPIS].includes(selection);
42
+ const isOrderable = isProductAvailable(usedLocation || {}, inventory || {});
43
+ const handleChangeLocation = useCallback(() => {
44
+ if (selected) {
45
+ handleChange(userFulfillmentMethod, true);
46
+ }
47
+ }, [handleChange, selected, userFulfillmentMethod]);
48
+ const locationSupportsFulfillmentMethod = useMemo(() => {
49
+ if (!useLocationFulfillmentMethods || !selected) {
50
+ return true;
51
+ }
52
+ return locationFulfillmentMethods.includes(userFulfillmentMethod);
53
+ }, [locationFulfillmentMethods, selected, useLocationFulfillmentMethods, userFulfillmentMethod]);
54
+ const selectionAvailableForProduct = useMemo(() => intersection(shopFulfillmentMethods || [], productFulfillmentMethods || []).filter(entry => entry !== DIRECT_SHIP).includes(selection), [shopFulfillmentMethods, productFulfillmentMethods, selection]);
55
+ if (!isReady || preferredLocation && !inventory) {
56
+ return null;
57
+ }
58
+ const isRopeMethodEnabled = isROPISEnabled || isBOPISEnabled || selectionAvailableForProduct;
59
+ return /*#__PURE__*/_jsxs(_Fragment, {
60
+ children: [/*#__PURE__*/_jsxs(SurroundPortals, {
61
+ portalName: PRODUCT_FULFILLMENT_SELECTOR_LOCATION,
62
+ portalProps: {
63
+ productId,
64
+ location: usedLocation,
65
+ inventory
66
+ },
67
+ children: [isRopeMethodEnabled && isOrderable && usedLocation && /*#__PURE__*/_jsxs(Grid, {
68
+ className: classNames(itemRow, container),
69
+ component: "div",
70
+ children: [/*#__PURE__*/_jsxs(Grid, {
71
+ component: "div",
72
+ children: [/*#__PURE__*/_jsxs(ResponsiveContainer, {
73
+ appAlways: true,
74
+ breakpoint: "xs",
75
+ children: [/*#__PURE__*/_jsx(Grid.Item, {
76
+ className: itemColumn,
77
+ grow: 1,
78
+ shrink: 0,
79
+ component: "div",
80
+ children: /*#__PURE__*/_jsx("div", {
81
+ className: locationName,
82
+ children: usedLocation.name
83
+ })
84
+ }), /*#__PURE__*/_jsx(Grid.Item, {
85
+ className: itemColumn,
86
+ grow: 1,
87
+ shrink: 0,
88
+ component: "div",
89
+ children: /*#__PURE__*/_jsx(StockInfo, {
90
+ productId: productId,
91
+ location: usedLocation
92
+ })
93
+ })]
94
+ }), /*#__PURE__*/_jsxs(ResponsiveContainer, {
95
+ webOnly: true,
96
+ breakpoint: ">xs",
97
+ children: [/*#__PURE__*/_jsx("div", {
98
+ children: /*#__PURE__*/_jsx("div", {
99
+ className: locationName,
100
+ children: usedLocation.name
101
+ })
102
+ }), /*#__PURE__*/_jsx("div", {
103
+ className: itemSpacer,
104
+ children: /*#__PURE__*/_jsx(StockInfo, {
105
+ productId: productId,
106
+ location: usedLocation
107
+ })
108
+ })]
109
+ })]
110
+ }), selectionAvailableForProduct && !locationSupportsFulfillmentMethod ? /*#__PURE__*/_jsx(FulfillmentSelectorLocationMethodNotAvailable, {
111
+ method: userFulfillmentMethod
112
+ }) : null, /*#__PURE__*/_jsx(ChangeLocationButton, {
113
+ onClick: handleChangeLocation,
114
+ disabled: !selected
115
+ })]
116
+ }), isRopeMethodEnabled && selected && !isOrderable && /*#__PURE__*/_jsxs("div", {
117
+ className: container,
118
+ children: [/*#__PURE__*/_jsx("div", {
119
+ className: locationName,
120
+ children: usedLocation?.name || ''
121
+ }), /*#__PURE__*/_jsx(FulfillmentSelectorImpossibleError, {}), /*#__PURE__*/_jsx(ChangeLocationButton, {
122
+ onClick: handleChangeLocation
123
+ })]
124
+ }), false && !isRopeMethodEnabled ? /*#__PURE__*/_jsx("div", {
125
+ className: classNames(unavailable, container),
126
+ children: i18n.text('locations.no_available')
127
+ }) : null]
128
+ }), /*#__PURE__*/_jsx(FulfillmentSelectorAlternativeLocation, {
129
+ show: !!isRopeMethodEnabled && !!usedLocation && !!inventory && !isOrderable,
130
+ productId: productId
131
+ })]
132
+ });
133
+ }
@@ -1 +1,22 @@
1
- import{css}from'glamor';import{themeVariables,themeColors}from'@shopgate/pwa-common/helpers/config';export var container=css({fontSize:'0.75rem',padding:"0 ".concat(themeVariables.gap.big,"px ").concat(themeVariables.gap.small,"px ").concat(themeVariables.gap.big*3,"px"),marginTop:"-".concat(themeVariables.gap.small,"px"),flexDirection:'column'}).toString();export var alternativeLocation=css({fontSize:'0.825rem',padding:"0 ".concat(themeVariables.gap.big,"px ").concat(themeVariables.gap.small,"px ").concat(themeVariables.gap.big*3,"px")}).toString();export var unavailable=css({color:themeColors.dark,fontSize:'0.625rem',textTransform:'uppercase',letterSpacing:'0.05em',opacity:0.5}).toString();export var locationName=css({color:'var(--color-text-medium-emphasis)'});
1
+ import { css } from 'glamor';
2
+ import { themeVariables, themeColors } from '@shopgate/pwa-common/helpers/config';
3
+ export const container = css({
4
+ fontSize: '0.75rem',
5
+ padding: `0 ${themeVariables.gap.big}px ${themeVariables.gap.small}px ${themeVariables.gap.big * 3}px`,
6
+ marginTop: `-${themeVariables.gap.small}px`,
7
+ flexDirection: 'column'
8
+ }).toString();
9
+ export const alternativeLocation = css({
10
+ fontSize: '0.825rem',
11
+ padding: `0 ${themeVariables.gap.big}px ${themeVariables.gap.small}px ${themeVariables.gap.big * 3}px`
12
+ }).toString();
13
+ export const unavailable = css({
14
+ color: themeColors.dark,
15
+ fontSize: '0.625rem',
16
+ textTransform: 'uppercase',
17
+ letterSpacing: '0.05em',
18
+ opacity: 0.5
19
+ }).toString();
20
+ export const locationName = css({
21
+ color: 'var(--color-text-medium-emphasis)'
22
+ });