@shopgate/engage 7.32.0-beta.1 → 7.32.0-beta.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 (623) hide show
  1. package/README.md +0 -1
  2. package/account/components/Profile/Profile.provider.d.ts +1 -1
  3. package/account/components/Profile/ProfileAddressBook.d.ts.map +1 -1
  4. package/account/components/Profile/ProfileAddressBook.js +13 -22
  5. package/account/components/Profile/ProfileAddressCard.d.ts.map +1 -1
  6. package/account/components/Profile/ProfileAddressCard.js +9 -18
  7. package/account/components/Profile/ProfileForm.d.ts.map +1 -1
  8. package/account/components/Profile/ProfileForm.js +15 -42
  9. package/account/components/ProfileContact/ProfileContact.js +13 -21
  10. package/admin-preview/components/FrontendSettingsPreviewBridge/FrontendSettingsPreviewBridge.d.ts +2 -1
  11. package/admin-preview/components/FrontendSettingsPreviewBridge/FrontendSettingsPreviewBridge.d.ts.map +1 -1
  12. package/admin-preview/components/FrontendSettingsPreviewBridge/FrontendSettingsPreviewBridge.js +61 -5
  13. package/admin-preview/components/FrontendSettingsPreviewBridge/helpers.d.ts +7 -1
  14. package/admin-preview/components/FrontendSettingsPreviewBridge/helpers.d.ts.map +1 -1
  15. package/admin-preview/components/FrontendSettingsPreviewBridge/helpers.js +14 -2
  16. package/admin-preview/components/FrontendSettingsPreviewBridge/types.d.ts +15 -2
  17. package/admin-preview/components/FrontendSettingsPreviewBridge/types.d.ts.map +1 -1
  18. package/admin-preview/constants/index.d.ts +0 -12
  19. package/admin-preview/constants/index.d.ts.map +1 -1
  20. package/admin-preview/constants/index.js +0 -16
  21. package/admin-preview/helpers/_internal/detection.d.ts +53 -0
  22. package/admin-preview/helpers/_internal/detection.d.ts.map +1 -0
  23. package/admin-preview/helpers/_internal/detection.js +93 -0
  24. package/admin-preview/helpers/index.d.ts +7 -0
  25. package/admin-preview/helpers/index.d.ts.map +1 -1
  26. package/admin-preview/helpers/index.js +12 -4
  27. package/admin-preview/initialization/_internal/initialFrontendSettings.d.ts +32 -0
  28. package/admin-preview/initialization/_internal/initialFrontendSettings.d.ts.map +1 -0
  29. package/admin-preview/initialization/_internal/initialFrontendSettings.js +43 -0
  30. package/admin-preview/initialization/awaitInitialFrontendSettings.d.ts +22 -0
  31. package/admin-preview/initialization/awaitInitialFrontendSettings.d.ts.map +1 -0
  32. package/admin-preview/initialization/awaitInitialFrontendSettings.js +84 -0
  33. package/back-in-stock/components/BackInStockButton/index.js +5 -5
  34. package/back-in-stock/components/Subscriptions/components/Subscription/index.js +2 -5
  35. package/cart/components/CartItem/CartItemProductLayout.js +2 -1
  36. package/cart/components/CartItem/CartItemProductLayoutWide.js +2 -2
  37. package/cart/components/CartItem/CartItemProductLayoutWideRemoveItem.js +7 -14
  38. package/cart/components/CartItem/CartItemProductProvider.connector.js +0 -2
  39. package/cart/components/CartItem/CartItemProductProvider.js +3 -30
  40. package/cart/components/CartItem/CartItemProductProvider.types.js +0 -1
  41. package/cart/components/CartItem/CartItemQuantityPicker.js +1 -0
  42. package/cart/components/CartItems/CartItemCardReservationLabelChangeStore.js +6 -24
  43. package/cart/components/CartItems/CartItems.js +8 -10
  44. package/cart/components/CartItems/CartItemsSubstitution.js +3 -2
  45. package/cart/components/CartSummaryWide/CartSummaryWide.js +2 -2
  46. package/cart/components/CartSummaryWide/CartSummaryWideCheckoutButton.js +9 -23
  47. package/cart/components/PaymentBar/PaymentBarCheckoutButton.js +8 -30
  48. package/cart/components/PaymentBar/PaymentBarContent.js +1 -1
  49. package/cart/components/PaymentBar/testUtils/mockFactories.js +4 -11
  50. package/category/components/CategoryImage/index.js +24 -17
  51. package/checkout/components/AddressBook/AddressList.js +14 -23
  52. package/checkout/components/Checkout/CheckoutActions.js +4 -3
  53. package/checkout/components/Checkout/CheckoutAddress.js +8 -0
  54. package/checkout/components/Checkout/CheckoutSection.js +6 -2
  55. package/checkout/components/CheckoutConfirmation/CheckoutConfirmation.js +6 -7
  56. package/checkout/components/ResponsiveBackButton/ResponsiveBackButton.js +7 -17
  57. package/components/Badge/Badge.d.ts +30 -0
  58. package/components/Badge/Badge.d.ts.map +1 -0
  59. package/components/Badge/Badge.js +48 -0
  60. package/components/Badge/index.d.ts +3 -0
  61. package/components/Badge/index.d.ts.map +1 -0
  62. package/components/Badge/index.js +1 -0
  63. package/components/Card/Card.d.ts +27 -0
  64. package/components/Card/Card.d.ts.map +1 -0
  65. package/components/Card/Card.js +57 -0
  66. package/components/Card/index.d.ts +4 -0
  67. package/components/Card/index.d.ts.map +1 -0
  68. package/components/Card/index.js +2 -0
  69. package/components/Card/useCardAppearance.d.ts +11 -0
  70. package/components/Card/useCardAppearance.d.ts.map +1 -0
  71. package/components/Card/useCardAppearance.js +22 -0
  72. package/components/ChipLayout/index.js +2 -4
  73. package/components/Logo/index.d.ts.map +1 -1
  74. package/components/Logo/index.js +3 -6
  75. package/components/NavigationHandler/connector.js +1 -1
  76. package/components/NavigationHandler/index.d.ts +2 -2
  77. package/components/Paper/Paper.d.ts +48 -0
  78. package/components/Paper/Paper.d.ts.map +1 -0
  79. package/components/Paper/Paper.js +64 -0
  80. package/components/Paper/index.d.ts +3 -0
  81. package/components/Paper/index.d.ts.map +1 -0
  82. package/components/Paper/index.js +1 -0
  83. package/components/PickerUtilize/index.d.ts +2 -1
  84. package/components/PickerUtilize/index.d.ts.map +1 -1
  85. package/components/RadioCard/RadioCard.d.ts.map +1 -1
  86. package/components/RadioCard/RadioCard.js +2 -1
  87. package/components/SheetList/components/Item/index.js +8 -8
  88. package/components/Tabs/components/Tab.d.ts.map +1 -1
  89. package/components/Tabs/components/Tab.js +14 -16
  90. package/components/Typography/Typography.d.ts +1 -1
  91. package/components/View/components/Above/index.d.ts.map +1 -1
  92. package/components/View/components/Above/index.js +3 -1
  93. package/components/View/components/Below/index.d.ts.map +1 -1
  94. package/components/View/components/Below/index.js +3 -1
  95. package/components/View/components/Content/index.d.ts +2 -1
  96. package/components/View/components/Content/index.d.ts.map +1 -1
  97. package/components/View/components/Content/index.js +4 -1
  98. package/components/constants.d.ts +6 -0
  99. package/components/constants.d.ts.map +1 -0
  100. package/components/index.d.ts +5 -1
  101. package/components/index.d.ts.map +1 -1
  102. package/components/index.js +4 -2
  103. package/components/v2/Button/Button.d.ts +24 -13
  104. package/components/v2/Button/Button.d.ts.map +1 -1
  105. package/components/v2/Button/Button.js +139 -41
  106. package/components/v2/ButtonBase/ButtonBase.d.ts +50 -10
  107. package/components/v2/ButtonBase/ButtonBase.d.ts.map +1 -1
  108. package/components/v2/ButtonBase/ButtonBase.js +192 -17
  109. package/components/v2/ButtonBase/Ripple.d.ts +2 -1
  110. package/components/v2/ButtonBase/Ripple.d.ts.map +1 -1
  111. package/components/v2/ButtonBase/hooks.d.ts +0 -1
  112. package/components/v2/ButtonBase/hooks.d.ts.map +1 -1
  113. package/components/v2/ButtonBase/hooks.js +36 -12
  114. package/components/v2/ButtonGroup/ButtonGroup.d.ts +11 -5
  115. package/components/v2/ButtonGroup/ButtonGroup.d.ts.map +1 -1
  116. package/components/v2/ButtonGroup/ButtonGroup.js +49 -26
  117. package/components/v2/CircularProgress/CircularProgress.d.ts.map +1 -1
  118. package/components/v2/CircularProgress/CircularProgress.js +10 -5
  119. package/core/helpers/getFullImageSource.d.ts +5 -1
  120. package/core/helpers/getFullImageSource.d.ts.map +1 -1
  121. package/core/helpers/getFullImageSource.js +30 -14
  122. package/core/helpers/i18n.d.ts +4 -0
  123. package/core/helpers/i18n.d.ts.map +1 -1
  124. package/core/helpers/i18n.js +3 -0
  125. package/core/hooks/events/appEvents.d.ts +31 -46
  126. package/core/hooks/events/appEvents.d.ts.map +1 -0
  127. package/core/hooks/events/appEvents.js +26 -29
  128. package/core/hooks/events/index.d.ts +4 -4
  129. package/core/hooks/events/index.d.ts.map +1 -1
  130. package/core/hooks/events/useLongPress.d.ts +55 -58
  131. package/core/hooks/events/useLongPress.d.ts.map +1 -0
  132. package/core/hooks/events/useLongPress.js +23 -16
  133. package/core/hooks/events/usePressHandler.d.ts +32 -21
  134. package/core/hooks/events/usePressHandler.d.ts.map +1 -1
  135. package/core/hooks/events/usePressHandler.js +12 -10
  136. package/core/hooks/events/useScrollDirectionChange.d.ts +72 -61
  137. package/core/hooks/events/useScrollDirectionChange.d.ts.map +1 -0
  138. package/core/hooks/events/useScrollDirectionChange.js +36 -43
  139. package/core/hooks/html/useLoadImage.d.ts +3 -3
  140. package/core/hooks/html/useLoadImage.d.ts.map +1 -1
  141. package/core/hooks/html/useLoadImage.js +2 -2
  142. package/core/hooks/useLocalStorage.d.ts +8 -0
  143. package/core/hooks/useLocalStorage.d.ts.map +1 -1
  144. package/core/hooks/useLocalStorage.js +22 -15
  145. package/core/hooks/useNavigation.d.ts +10 -2
  146. package/core/hooks/useNavigation.d.ts.map +1 -1
  147. package/core/hooks/useNavigation.js +1 -2
  148. package/core/initialization/fetchSettings.d.ts +12 -0
  149. package/core/initialization/fetchSettings.d.ts.map +1 -0
  150. package/core/initialization/fetchSettings.js +134 -0
  151. package/core/initialization/index.d.ts +33 -2
  152. package/core/initialization/index.d.ts.map +1 -1
  153. package/core/initialization/index.js +44 -103
  154. package/core/router/conductor.d.ts +9 -0
  155. package/core/router/helpers.d.ts +28 -15
  156. package/core/router/helpers.d.ts.map +1 -1
  157. package/core/router/helpers.js +8 -8
  158. package/development/action-creators/index.d.ts +3 -0
  159. package/development/action-creators/index.d.ts.map +1 -0
  160. package/development/action-creators/settings.d.ts +45 -0
  161. package/development/action-creators/settings.d.ts.map +1 -0
  162. package/development/action-creators/settings.js +21 -10
  163. package/development/action-creators/storage.d.ts +17 -0
  164. package/development/action-creators/storage.d.ts.map +1 -0
  165. package/development/action-creators/storage.js +7 -4
  166. package/development/components/ClientInformation/ClientInformation.d.ts +6 -0
  167. package/development/components/ClientInformation/ClientInformation.d.ts.map +1 -0
  168. package/development/components/ClientInformation/ClientInformation.js +7 -4
  169. package/development/components/ClientInformation/actions.d.ts +6 -0
  170. package/development/components/ClientInformation/actions.d.ts.map +1 -0
  171. package/development/components/ClientInformation/actions.js +1 -1
  172. package/development/components/ClientInformation/index.d.ts +2 -0
  173. package/development/components/ClientInformation/index.d.ts.map +1 -0
  174. package/development/components/DevelopmentSettings/DevelopmentSettings.d.ts +16 -0
  175. package/development/components/DevelopmentSettings/DevelopmentSettings.d.ts.map +1 -0
  176. package/development/components/DevelopmentSettings/DevelopmentSettings.js +43 -30
  177. package/development/components/DevelopmentSettings/index.d.ts +2 -0
  178. package/development/components/DevelopmentSettings/index.d.ts.map +1 -0
  179. package/development/components/DevelopmentTools/DevelopmentTools.d.ts +10 -0
  180. package/development/components/DevelopmentTools/DevelopmentTools.d.ts.map +1 -0
  181. package/development/components/DevelopmentTools/DevelopmentTools.js +8 -8
  182. package/development/components/DevelopmentTools/Shortcuts.d.ts +6 -0
  183. package/development/components/DevelopmentTools/Shortcuts.d.ts.map +1 -0
  184. package/development/components/DevelopmentTools/Shortcuts.js +0 -1
  185. package/development/components/DevelopmentTools/hooks.d.ts +8 -0
  186. package/development/components/DevelopmentTools/hooks.d.ts.map +1 -0
  187. package/development/components/DevelopmentTools/hooks.js +2 -3
  188. package/development/components/DevelopmentTools/index.d.ts +2 -0
  189. package/development/components/DevelopmentTools/index.d.ts.map +1 -0
  190. package/development/components/SimulatedInsets/SimulatedInsetBottom.d.ts +7 -0
  191. package/development/components/SimulatedInsets/SimulatedInsetBottom.d.ts.map +1 -0
  192. package/development/components/SimulatedInsets/SimulatedInsetBottom.js +4 -9
  193. package/development/components/SimulatedInsets/SimulatedInsetTop.d.ts +7 -0
  194. package/development/components/SimulatedInsets/SimulatedInsetTop.d.ts.map +1 -0
  195. package/development/components/SimulatedInsets/SimulatedInsetTop.js +4 -9
  196. package/development/components/SimulatedInsets/SimulatedInsets.d.ts +13 -0
  197. package/development/components/SimulatedInsets/SimulatedInsets.d.ts.map +1 -0
  198. package/development/components/SimulatedInsets/SimulatedInsets.js +2 -7
  199. package/development/components/SimulatedInsets/index.d.ts +2 -0
  200. package/development/components/SimulatedInsets/index.d.ts.map +1 -0
  201. package/development/components/SimulatedInsets/types.d.ts +15 -0
  202. package/development/components/SimulatedInsets/types.d.ts.map +1 -0
  203. package/development/components/SimulatedInsets/types.js +1 -0
  204. package/development/components/index.d.ts +3 -0
  205. package/development/components/index.d.ts.map +1 -0
  206. package/development/constants/actionTypes.d.ts +6 -0
  207. package/development/constants/actionTypes.d.ts.map +1 -0
  208. package/development/constants/actionTypes.js +2 -1
  209. package/development/constants/index.d.ts +2 -0
  210. package/development/constants/index.d.ts.map +1 -0
  211. package/development/reducers/index.d.ts +24 -0
  212. package/development/reducers/index.d.ts.map +1 -0
  213. package/development/reducers/settings.d.ts +17 -0
  214. package/development/reducers/settings.d.ts.map +1 -0
  215. package/development/reducers/settings.js +48 -35
  216. package/development/reducers/storage.d.ts +17 -0
  217. package/development/reducers/storage.d.ts.map +1 -0
  218. package/development/reducers/storage.js +24 -24
  219. package/development/selectors/index.d.ts +3 -0
  220. package/development/selectors/index.d.ts.map +1 -0
  221. package/development/selectors/settings.d.ts +52 -0
  222. package/development/selectors/settings.d.ts.map +1 -0
  223. package/development/selectors/settings.js +21 -11
  224. package/development/selectors/storage.d.ts +10 -0
  225. package/development/selectors/storage.d.ts.map +1 -0
  226. package/development/selectors/storage.js +6 -18
  227. package/development/streams/index.d.ts +2 -0
  228. package/development/streams/index.d.ts.map +1 -0
  229. package/development/streams/insets.d.ts +8 -0
  230. package/development/streams/insets.d.ts.map +1 -0
  231. package/development/streams/insets.js +1 -3
  232. package/development/subscriptions/index.d.ts +15 -0
  233. package/development/subscriptions/index.d.ts.map +1 -0
  234. package/development/subscriptions/index.js +6 -2
  235. package/development/types/development.d.ts +68 -0
  236. package/development/types/development.d.ts.map +1 -0
  237. package/development/types/development.js +1 -0
  238. package/development/types/index.d.ts +2 -0
  239. package/development/types/index.d.ts.map +1 -0
  240. package/development/types/index.js +1 -0
  241. package/favorites/components/FavoriteButtonWide/FavoriteButtonWide.js +7 -17
  242. package/favorites/components/Item/Item.d.ts +1 -1
  243. package/favorites/components/Item/Item.d.ts.map +1 -1
  244. package/favorites/components/Item/Item.js +7 -7
  245. package/favorites/components/List/List.d.ts +1 -1
  246. package/favorites/components/List/List.d.ts.map +1 -1
  247. package/favorites/components/List/List.js +0 -1
  248. package/favorites/components/List/ListContent.js +4 -5
  249. package/favorites/components/Lists/Lists.js +17 -6
  250. package/filter/components/FilterPageContent/components/ApplyButton/index.js +8 -10
  251. package/filter/components/FilterPageContent/components/ResetButton/index.js +8 -6
  252. package/filter/components/PriceSlider/index.js +6 -1
  253. package/locations/components/ChangeLocationButton/ChangeLocationButton.js +10 -14
  254. package/locations/components/FulfillmentSheet/FulfillmentSheetContent.js +4 -8
  255. package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotDialog.js +4 -8
  256. package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotSwitcher.js +1 -1
  257. package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotSwitcherBar.js +9 -18
  258. package/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotSwitcherDefault.js +10 -10
  259. package/locations/components/GlobalLocationSwitcher/GlobalLocationSwitcherBar.js +9 -19
  260. package/locations/components/GlobalLocationSwitcher/GlobalLocationSwitcherDefault.js +9 -10
  261. package/locations/components/ReserveForm/ReserveForm.js +6 -7
  262. package/locations/components/StoreDetails/components/GetDirectionsButton.js +2 -4
  263. package/locations/components/StoreDetails/components/StoreDetails.js +5 -10
  264. package/locations/components/StoreDetails/components/StoresNearbyListItem.js +13 -21
  265. package/locations/components/StoreFinder/StoreFinderSelectLocationButton.js +5 -11
  266. package/locations/components/StoreFinder/StoreFinderStoreInfoButton.js +5 -11
  267. package/locations/components/StoreList/StoreListProduct.js +2 -3
  268. package/locations/components/StoreList/StoreListSearch.js +1 -0
  269. package/locations/components/StoreList/StoreSelectLocationButton.js +5 -11
  270. package/login/components/ForgotPassword/ForgotPassword.js +11 -23
  271. package/mocks/date.js +31 -0
  272. package/mocks/index.js +3 -0
  273. package/mocks/pipelineRequest.js +1 -0
  274. package/mocks/subscriptions.js +1 -0
  275. package/orders/components/OrderDetails/OrderDetailsAuthenticate.js +5 -7
  276. package/orders/components/OrderHistory/OrderHistoryList.d.ts.map +1 -1
  277. package/orders/components/OrderHistory/OrderHistoryList.js +8 -9
  278. package/orders/components/OrderHistory/OrderHistoryTable.d.ts.map +1 -1
  279. package/orders/components/OrderHistory/OrderHistoryTable.js +4 -0
  280. package/package.json +12 -12
  281. package/page/components/NotFound.d.ts +7 -0
  282. package/page/components/NotFound.d.ts.map +1 -0
  283. package/page/components/NotFound.js +8 -8
  284. package/page/components/ResponsiveWidgetImage/ResponsiveWidgetImage.d.ts +52 -0
  285. package/page/components/ResponsiveWidgetImage/ResponsiveWidgetImage.d.ts.map +1 -0
  286. package/page/components/ResponsiveWidgetImage/ResponsiveWidgetImage.js +4 -4
  287. package/page/components/ResponsiveWidgetImage/index.d.ts +2 -0
  288. package/page/components/ResponsiveWidgetImage/index.d.ts.map +1 -0
  289. package/page/components/WidgetRichText/WidgetRichText.d.ts +25 -0
  290. package/page/components/WidgetRichText/WidgetRichText.d.ts.map +1 -0
  291. package/page/components/WidgetRichText/index.d.ts +2 -0
  292. package/page/components/WidgetRichText/index.d.ts.map +1 -0
  293. package/page/components/WidgetVideo/WidgetVideo.d.ts +43 -0
  294. package/page/components/WidgetVideo/WidgetVideo.d.ts.map +1 -0
  295. package/page/components/WidgetVideo/WidgetVideo.js +33 -39
  296. package/page/components/WidgetVideo/index.d.ts +2 -0
  297. package/page/components/WidgetVideo/index.d.ts.map +1 -0
  298. package/page/components/Widgets/Overlay.d.ts +17 -0
  299. package/page/components/Widgets/Overlay.d.ts.map +1 -0
  300. package/page/components/Widgets/Overlay.js +24 -38
  301. package/page/components/Widgets/Tooltip.d.ts +20 -0
  302. package/page/components/Widgets/Tooltip.d.ts.map +1 -0
  303. package/page/components/Widgets/Tooltip.js +6 -10
  304. package/page/components/Widgets/Widget.d.ts +32 -0
  305. package/page/components/Widgets/Widget.d.ts.map +1 -0
  306. package/page/components/Widgets/Widget.js +7 -18
  307. package/page/components/Widgets/WidgetContext.d.ts +32 -38
  308. package/page/components/Widgets/WidgetContext.d.ts.map +1 -0
  309. package/page/components/Widgets/WidgetContext.js +2 -8
  310. package/page/components/Widgets/WidgetProvider.d.ts +25 -0
  311. package/page/components/Widgets/WidgetProvider.d.ts.map +1 -0
  312. package/page/components/Widgets/WidgetProvider.js +5 -12
  313. package/page/components/Widgets/Widgets.d.ts +16 -0
  314. package/page/components/Widgets/Widgets.d.ts.map +1 -0
  315. package/page/components/Widgets/Widgets.js +5 -12
  316. package/page/components/Widgets/WidgetsPreviewContext.d.ts +21 -0
  317. package/page/components/Widgets/WidgetsPreviewContext.d.ts.map +1 -0
  318. package/page/components/Widgets/WidgetsPreviewContext.js +5 -7
  319. package/page/components/Widgets/WidgetsPreviewProvider.d.ts +18 -0
  320. package/page/components/Widgets/WidgetsPreviewProvider.d.ts.map +1 -0
  321. package/page/components/Widgets/WidgetsPreviewProvider.js +5 -6
  322. package/page/components/Widgets/constants.d.ts +5 -0
  323. package/page/components/Widgets/constants.d.ts.map +1 -0
  324. package/page/components/Widgets/constants.js +3 -1
  325. package/page/components/Widgets/events.d.ts +38 -0
  326. package/page/components/Widgets/events.d.ts.map +1 -0
  327. package/page/components/Widgets/events.js +8 -12
  328. package/page/components/Widgets/helpers.d.ts +50 -0
  329. package/page/components/Widgets/helpers.d.ts.map +1 -0
  330. package/page/components/Widgets/helpers.js +8 -13
  331. package/page/components/Widgets/hooks.d.ts +13 -0
  332. package/page/components/Widgets/hooks.d.ts.map +1 -0
  333. package/page/components/Widgets/hooks.js +13 -11
  334. package/page/components/Widgets/index.d.ts +3 -0
  335. package/page/components/Widgets/index.d.ts.map +1 -0
  336. package/page/components/Widgets/types.d.ts +111 -113
  337. package/page/components/Widgets/types.d.ts.map +1 -0
  338. package/page/components/Widgets/types.js +1 -0
  339. package/page/components/index.d.ts +5 -0
  340. package/page/components/index.d.ts.map +1 -0
  341. package/page/constants/actionTypes.d.ts +4 -0
  342. package/page/constants/actionTypes.d.ts.map +1 -0
  343. package/page/constants/index.d.ts +25 -0
  344. package/page/constants/index.d.ts.map +1 -0
  345. package/page/constants/index.js +5 -3
  346. package/page/helpers/index.d.ts +70 -62
  347. package/page/helpers/index.d.ts.map +1 -0
  348. package/page/helpers/index.js +31 -29
  349. package/page/hooks/index.d.ts +54 -53
  350. package/page/hooks/index.d.ts.map +1 -0
  351. package/page/hooks/index.js +20 -15
  352. package/page/selectors/index.d.ts +32 -0
  353. package/page/selectors/index.d.ts.map +1 -0
  354. package/page/widgets/Button/Button.js +2 -3
  355. package/page/widgets/NestedCategoryFilter/NestedCategoryFilter.js +8 -8
  356. package/page/widgets/ProductList/ProductList.js +18 -14
  357. package/page/widgets/ProductSlider/ProductSlider.js +1 -15
  358. package/page/widgets/Video/Video.d.ts +6 -0
  359. package/page/widgets/Video/Video.d.ts.map +1 -0
  360. package/page/widgets/Video/Video.js +0 -2
  361. package/page/widgets/Video/hooks.d.ts +53 -0
  362. package/page/widgets/Video/hooks.d.ts.map +1 -0
  363. package/page/widgets/Video/hooks.js +4 -12
  364. package/page/widgets/Video/index.d.ts +2 -0
  365. package/page/widgets/Video/index.d.ts.map +1 -0
  366. package/product/components/Description/index.js +0 -2
  367. package/product/components/FilterBar/components/Content/components/FilterButton/index.js +2 -6
  368. package/product/components/FilterBar/components/Content/components/Sort/index.js +1 -5
  369. package/product/components/Media/FeaturedMedia.js +7 -1
  370. package/product/components/Media/MediaImage.js +24 -23
  371. package/product/components/Media/MediaPlaceholder.js +4 -7
  372. package/product/components/MediaSlider/components/MediaImage/index.js +6 -2
  373. package/product/components/MediaSlider/constants.js +1 -12
  374. package/product/components/OrderQuantityHint/index.js +16 -1
  375. package/product/components/ProductCard/index.js +36 -23
  376. package/product/components/ProductGrid/components/Item/components/ItemDetails/index.js +12 -4
  377. package/product/components/ProductGrid/components/Item/components/ItemImage/index.js +3 -6
  378. package/product/components/ProductGrid/components/Item/components/ItemName/index.js +6 -1
  379. package/product/components/ProductGrid/components/Item/index.js +10 -2
  380. package/product/components/ProductGrid/components/Layout/index.js +19 -4
  381. package/product/components/ProductGrid/constants.d.ts +2 -0
  382. package/product/components/ProductGrid/constants.d.ts.map +1 -0
  383. package/product/components/ProductGrid/constants.js +1 -0
  384. package/product/components/ProductGrid/hooks.d.ts +11 -0
  385. package/product/components/ProductGrid/hooks.d.ts.map +1 -0
  386. package/product/components/ProductGrid/hooks.js +48 -0
  387. package/product/components/ProductGrid/index.js +3 -6
  388. package/product/components/ProductGridPrice/index.js +0 -1
  389. package/product/components/ProductImage/ProductImage.d.ts +42 -0
  390. package/product/components/ProductImage/ProductImage.d.ts.map +1 -0
  391. package/product/components/ProductImage/ProductImage.js +158 -0
  392. package/product/components/ProductImage/ProductImagePlaceholder.d.ts +23 -0
  393. package/product/components/ProductImage/ProductImagePlaceholder.d.ts.map +1 -0
  394. package/product/components/ProductImage/ProductImagePlaceholder.js +12 -17
  395. package/product/components/ProductImage/constants.d.ts +7 -0
  396. package/product/components/ProductImage/constants.d.ts.map +1 -0
  397. package/product/components/ProductImage/constants.js +6 -0
  398. package/product/components/ProductImage/hooks.d.ts +8 -0
  399. package/product/components/ProductImage/hooks.d.ts.map +1 -0
  400. package/product/components/ProductImage/hooks.js +32 -0
  401. package/product/components/ProductImage/index.d.ts +3 -0
  402. package/product/components/ProductImage/index.d.ts.map +1 -0
  403. package/product/components/ProductImage/index.js +1 -201
  404. package/product/components/ProductList/components/Item/index.js +5 -3
  405. package/product/components/ProductList/components/Layout/index.js +8 -20
  406. package/product/components/ProductName/ProductName.d.ts +1 -1
  407. package/product/components/ProductName/ProductName.d.ts.map +1 -1
  408. package/product/components/ProductName/ProductNameContent.d.ts +2 -1
  409. package/product/components/ProductName/ProductNameContent.d.ts.map +1 -1
  410. package/product/components/ProductRatingStars/ProductRatingStars.d.ts +1 -1
  411. package/product/components/ProductRatingStars/ProductRatingStars.js +2 -4
  412. package/product/components/ProductSlider/constants.d.ts +3 -0
  413. package/product/components/ProductSlider/constants.d.ts.map +1 -0
  414. package/product/components/ProductSlider/constants.js +2 -0
  415. package/product/components/ProductSlider/hooks.d.ts +7 -0
  416. package/product/components/ProductSlider/hooks.d.ts.map +1 -0
  417. package/product/components/ProductSlider/hooks.js +40 -0
  418. package/product/components/ProductSlider/index.js +8 -8
  419. package/product/components/Rating/index.js +2 -4
  420. package/product/components/RelationsSlider/RelationsSheet.js +1 -5
  421. package/product/components/RelationsSlider/RelationsSliderContent.js +3 -2
  422. package/product/components/RelationsSlider/constants.d.ts +3 -0
  423. package/product/components/RelationsSlider/constants.d.ts.map +1 -0
  424. package/product/components/RelationsSlider/constants.js +2 -1
  425. package/product/components/RelationsSlider/hooks.d.ts +6 -0
  426. package/product/components/RelationsSlider/hooks.d.ts.map +1 -0
  427. package/product/components/RelationsSlider/hooks.js +34 -0
  428. package/product/components/UnitQuantityPicker/UnitQuantityPicker.d.ts.map +1 -1
  429. package/product/components/UnitQuantityPicker/UnitQuantityPicker.js +16 -34
  430. package/product/helpers/index.js +29 -11
  431. package/product/hooks/index.js +3 -1
  432. package/product/hooks/useLoadProductImage.js +4 -2
  433. package/product/hooks/useShowEmptyRatingStars.d.ts +7 -0
  434. package/product/hooks/useShowEmptyRatingStars.d.ts.map +1 -0
  435. package/product/hooks/useShowEmptyRatingStars.js +21 -0
  436. package/product/index.js +0 -1
  437. package/product/selectors/mocks/productProperties.mock.js +49 -0
  438. package/push-opt-in/components/PushOptInModal/index.js +4 -4
  439. package/registration/components/Registration/RegistrationFormActions.js +4 -4
  440. package/reviews/components/Reviews/components/AllReviewsLink/index.js +6 -6
  441. package/reviews/components/Reviews/components/Header/components/WriteReviewLink/index.js +4 -3
  442. package/settings/action-creators/appSettings.d.ts +3 -3
  443. package/settings/action-creators/appSettings.d.ts.map +1 -1
  444. package/settings/constants/appSettings.d.ts +3 -0
  445. package/settings/constants/appSettings.d.ts.map +1 -1
  446. package/settings/constants/appSettings.js +6 -1
  447. package/settings/constants/imageSettings.d.ts +52 -0
  448. package/settings/constants/imageSettings.d.ts.map +1 -0
  449. package/settings/constants/imageSettings.js +69 -0
  450. package/settings/helpers/index.d.ts +3 -0
  451. package/settings/helpers/index.d.ts.map +1 -0
  452. package/settings/helpers/index.js +1 -0
  453. package/settings/helpers/resolveImageSettings.d.ts +70 -0
  454. package/settings/helpers/resolveImageSettings.d.ts.map +1 -0
  455. package/settings/helpers/resolveImageSettings.js +171 -0
  456. package/settings/helpers/toImageQuality.d.ts +7 -0
  457. package/settings/helpers/toImageQuality.d.ts.map +1 -0
  458. package/settings/helpers/toImageQuality.js +44 -0
  459. package/settings/helpers/toThumborColor.d.ts +15 -0
  460. package/settings/helpers/toThumborColor.d.ts.map +1 -0
  461. package/settings/helpers/toThumborColor.js +51 -0
  462. package/settings/hooks/index.d.ts +2 -0
  463. package/settings/hooks/index.d.ts.map +1 -0
  464. package/settings/hooks/index.js +1 -0
  465. package/settings/hooks/useImageSettings.d.ts +28 -0
  466. package/settings/hooks/useImageSettings.d.ts.map +1 -0
  467. package/settings/hooks/useImageSettings.js +39 -0
  468. package/settings/reducers/appSettings.d.ts.map +1 -1
  469. package/settings/reducers/appSettings.js +100 -8
  470. package/settings/reducers/index.d.ts +3 -3
  471. package/settings/selectors/appSettings.d.ts +114 -1
  472. package/settings/selectors/appSettings.d.ts.map +1 -1
  473. package/settings/selectors/appSettings.js +75 -1
  474. package/settings/types/appSettings.d.ts +244 -0
  475. package/settings/types/appSettings.d.ts.map +1 -1
  476. package/settings/types/appSettings.js +124 -1
  477. package/styles/helpers/index.d.ts +2 -0
  478. package/styles/helpers/index.js +2 -0
  479. package/styles/helpers/loadFontCss.d.ts +22 -0
  480. package/styles/helpers/loadFontCss.d.ts.map +1 -0
  481. package/styles/helpers/loadFontCss.js +138 -0
  482. package/styles/helpers/loadThemeCss.d.ts +14 -0
  483. package/styles/helpers/loadThemeCss.d.ts.map +1 -0
  484. package/styles/helpers/loadThemeCss.js +123 -0
  485. package/styles/index.d.ts +1 -1
  486. package/styles/index.d.ts.map +1 -1
  487. package/styles/index.js +1 -1
  488. package/styles/reset/root.js +23 -4
  489. package/styles/reset/typographyCustomProps.d.ts +12 -0
  490. package/styles/reset/typographyCustomProps.d.ts.map +1 -0
  491. package/styles/reset/typographyCustomProps.js +11 -0
  492. package/styles/theme/createDefaultThemeOptions/index.d.ts.map +1 -1
  493. package/styles/theme/createDefaultThemeOptions/index.js +112 -4
  494. package/styles/theme/createTheme/createComponents.d.ts +2 -2
  495. package/styles/theme/createTheme/createComponents.d.ts.map +1 -1
  496. package/styles/theme/createTheme/createComponents.js +0 -1
  497. package/styles/theme/createTheme/createComponents.types.d.ts +117 -0
  498. package/styles/theme/createTheme/createComponents.types.d.ts.map +1 -1
  499. package/styles/theme/createTheme/createComponents.types.js +119 -2
  500. package/styles/theme/createTheme/createCssVarsForColorSchemeThemes.d.ts.map +1 -1
  501. package/styles/theme/createTheme/createCssVarsForColorSchemeThemes.js +13 -3
  502. package/styles/theme/createTheme/createPalette.types.d.ts +5 -0
  503. package/styles/theme/createTheme/createPalette.types.d.ts.map +1 -1
  504. package/styles/theme/createTheme/createPalette.types.js +7 -2
  505. package/styles/theme/createTheme/createShape.d.ts +3 -0
  506. package/styles/theme/createTheme/createShape.d.ts.map +1 -1
  507. package/styles/theme/createTheme/createSpacing.js +4 -1
  508. package/styles/theme/createTheme/createThemeFromColorScheme.d.ts +4 -2
  509. package/styles/theme/createTheme/createThemeFromColorScheme.d.ts.map +1 -1
  510. package/styles/theme/createTheme/createThemeFromColorScheme.js +6 -3
  511. package/styles/theme/createTheme/createTypography.d.ts +2 -1
  512. package/styles/theme/createTheme/createTypography.js +59 -18
  513. package/styles/theme/createTheme/helpers/cssVarsParser.d.ts.map +1 -1
  514. package/styles/theme/createTheme/helpers/cssVarsParser.js +10 -3
  515. package/styles/theme/createTheme/index.d.ts +2 -1
  516. package/styles/theme/createTheme/index.d.ts.map +1 -1
  517. package/styles/theme/createTheme/index.js +5 -2
  518. package/styles/theme/createTheme/layout.d.ts +23 -0
  519. package/styles/theme/createTheme/layout.d.ts.map +1 -0
  520. package/styles/theme/createTheme/layout.js +20 -0
  521. package/styles/theme/createTheme/shadows.d.ts +11 -1
  522. package/styles/theme/createTheme/shadows.d.ts.map +1 -1
  523. package/styles/theme/createTheme/shadows.js +41 -7
  524. package/styles/theme/createTheme/transitions.d.ts +4 -0
  525. package/styles/theme/createTheme/transitions.js +3 -1
  526. package/styles/theme/createTheme/types.d.ts +41 -9
  527. package/styles/theme/createTheme/types.d.ts.map +1 -1
  528. package/styles/theme/createTheme/types.js +16 -4
  529. package/styles/theme/hocs/index.d.ts +2 -0
  530. package/styles/theme/hocs/index.d.ts.map +1 -0
  531. package/styles/theme/hocs/index.js +1 -0
  532. package/styles/theme/hocs/withTheme.d.ts +21 -0
  533. package/styles/theme/hocs/withTheme.d.ts.map +1 -0
  534. package/styles/theme/hocs/withTheme.js +33 -0
  535. package/styles/theme/hooks/useColorScheme.d.ts +4 -3
  536. package/styles/theme/hooks/useColorScheme.d.ts.map +1 -1
  537. package/styles/theme/hooks/useColorScheme.js +4 -3
  538. package/styles/theme/hooks/useMediaQuery.d.ts +7 -0
  539. package/styles/theme/hooks/useMediaQuery.d.ts.map +1 -1
  540. package/styles/theme/hooks/useMediaQuery.js +5 -5
  541. package/styles/theme/hooks/useTheme.js +1 -1
  542. package/styles/theme/index.d.ts +5 -1
  543. package/styles/theme/index.d.ts.map +1 -1
  544. package/styles/theme/index.js +2 -1
  545. package/styles/theme/providers/ActiveBreakpointProvider.d.ts +1 -1
  546. package/styles/theme/providers/ColorSchemeContext.d.ts +40 -0
  547. package/styles/theme/providers/ColorSchemeContext.d.ts.map +1 -0
  548. package/styles/theme/providers/ColorSchemeContext.js +14 -0
  549. package/styles/theme/providers/ThemeContext.d.ts +3 -0
  550. package/styles/theme/providers/ThemeContext.d.ts.map +1 -0
  551. package/styles/theme/providers/ThemeContext.js +2 -0
  552. package/styles/theme/providers/ThemeProvider.d.ts +4 -14
  553. package/styles/theme/providers/ThemeProvider.d.ts.map +1 -1
  554. package/styles/theme/providers/ThemeProvider.js +95 -26
  555. package/styles/theme/utils/color.d.ts +12 -12
  556. package/styles/theme/utils/color.d.ts.map +1 -1
  557. package/tracking/components/CookieConsentModal/index.js +3 -4
  558. package/tracking/components/PrivacySettings/index.js +3 -3
  559. package/cart/components/PaymentBar/PaymentBarReserveButton.connector.js +0 -6
  560. package/cart/components/PaymentBar/PaymentBarReserveButton.js +0 -71
  561. package/components/ChipLayout/spec.js +0 -41
  562. package/components/Logo/spec.js +0 -12
  563. package/components/NavigationHandler/spec.js +0 -84
  564. package/components/Picker/spec.js +0 -94
  565. package/components/PickerUtilize/spec.js +0 -35
  566. package/components/RangeSlider/spec.js +0 -190
  567. package/components/SheetList/components/Item/spec.js +0 -101
  568. package/components/SheetList/spec.js +0 -43
  569. package/components/TimeBoundary/spec.js +0 -83
  570. package/filter/components/FilterItem/spec.js +0 -14
  571. package/filter/components/FilterPageContent/components/ApplyButton/spec.js +0 -46
  572. package/filter/components/FilterPageContent/components/ResetButton/spec.js +0 -29
  573. package/filter/components/FilterPageContent/components/Selector/components/Selected/spec.js +0 -26
  574. package/filter/components/FilterPageContent/components/Selector/components/Toggle/spec.js +0 -34
  575. package/filter/components/FilterPageContent/components/Selector/components/ValueButton/spec.js +0 -32
  576. package/filter/components/FilterPageContent/components/Selector/spec.js +0 -33
  577. package/filter/components/PriceSlider/components/Label/spec.js +0 -26
  578. package/filter/components/PriceSlider/spec.js +0 -30
  579. package/locations/components/StoreFinder/StoreFinderGetDirectionsButton.connector.js +0 -16
  580. package/locations/components/StoreFinder/StoreFinderGetDirectionsButton.js +0 -52
  581. package/product/collections/index.js +0 -1
  582. package/product/components/EffectivityDates/constants.d.ts +0 -3
  583. package/product/components/EffectivityDates/constants.d.ts.map +0 -1
  584. package/product/components/EffectivityDates/helpers.d.ts +0 -6
  585. package/product/components/EffectivityDates/helpers.d.ts.map +0 -1
  586. package/product/components/FilterBar/components/Content/spec.js +0 -136
  587. package/product/components/Header/Shipping/spec.js +0 -36
  588. package/product/components/Header/Tiers/components/Tier/spec.js +0 -48
  589. package/product/components/Header/Tiers/spec.js +0 -64
  590. package/product/components/Media/helpers.d.ts +0 -2
  591. package/product/components/Media/helpers.d.ts.map +0 -1
  592. package/product/components/Options/components/Content/spec.js +0 -73
  593. package/product/components/Options/components/TextOption/components/OptionInfo/spec.js +0 -72
  594. package/product/components/ProductDiscountBadge/spec.js +0 -58
  595. package/product/components/ProductGrid/components/Item/components/ItemDetails/spec.js +0 -73
  596. package/product/components/ProductGrid/components/Item/components/ItemFavoritesButton/spec.js +0 -33
  597. package/product/components/ProductGrid/components/Item/components/ItemImage/spec.js +0 -16
  598. package/product/components/ProductGrid/components/Item/components/ItemName/spec.js +0 -21
  599. package/product/components/ProductGrid/components/Item/components/ItemPrice/spec.js +0 -37
  600. package/product/components/ProductGrid/spec.js +0 -52
  601. package/product/components/ProductImage/connector.js +0 -12
  602. package/product/components/ProductImage/spec.js +0 -87
  603. package/product/components/ProductSlider/spec.js +0 -37
  604. package/product/components/Rating/spec.js +0 -58
  605. package/product/helpers/index.d.ts +0 -13
  606. package/product/helpers/index.d.ts.map +0 -1
  607. package/product/helpers/redirects.d.ts +0 -2
  608. package/product/helpers/redirects.d.ts.map +0 -1
  609. package/product/selectors/helpers/filterProperties.d.ts +0 -8
  610. package/product/selectors/helpers/filterProperties.d.ts.map +0 -1
  611. package/product/selectors/helpers/index.d.ts +0 -3
  612. package/product/selectors/helpers/index.d.ts.map +0 -1
  613. package/product/selectors/helpers/wrapMemoizedSelector.d.ts +0 -2
  614. package/product/selectors/helpers/wrapMemoizedSelector.d.ts.map +0 -1
  615. package/product/selectors/product.d.ts +0 -112
  616. package/product/selectors/product.d.ts.map +0 -1
  617. package/reviews/components/Reviews/components/Header/components/WriteReviewLink/spec.js +0 -52
  618. package/reviews/components/Reviews/components/Header/spec.js +0 -78
  619. package/reviews/components/Reviews/components/List/spec.js +0 -108
  620. package/reviews/components/Reviews/components/RatingCount/spec.js +0 -38
  621. package/reviews/components/Reviews/spec.js +0 -101
  622. package/tsconfig.build.json +0 -26
  623. package/tsconfig.json +0 -19
@@ -1,14 +1,18 @@
1
- import React, { useState, useEffect } from 'react';
1
+ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import Image from '@shopgate/pwa-common/components/Image';
4
- import appConfig from '@shopgate/pwa-common/helpers/config';
5
4
  import { makeStyles } from '@shopgate/engage/styles';
6
5
  import { SurroundPortals } from "../../../components";
7
6
  import { PORTAL_PRODUCT_IMAGE } from "../../../components/constants";
8
- import { useWidgetSettings } from "../../../core";
7
+ import { useProductImageShadow } from "../ProductImage/hooks";
9
8
  import { defaultProps, propTypes } from "./props";
10
9
  import MediaPlaceholder from "./MediaPlaceholder";
10
+
11
+ /**
12
+ * The widget id the legacy inner shadow setting is configured under for this component.
13
+ */
11
14
  import { jsx as _jsx } from "react/jsx-runtime";
15
+ const WIDGET_ID = '@shopgate/engage/product/MediaImage';
12
16
  const useStyles = makeStyles()({
13
17
  innerShadow: {
14
18
  ':after': {
@@ -33,41 +37,37 @@ const MediaImage = ({
33
37
  url,
34
38
  altText,
35
39
  className,
36
- resolutions
40
+ resolutions,
41
+ ratio
37
42
  }) => {
38
43
  const {
39
44
  classes,
40
45
  cx
41
46
  } = useStyles();
42
- const [placeholder, setPlaceholderEnabled] = useState(!url);
43
- const {
44
- showInnerShadow = !appConfig.hideProductImageShadow
45
- } = useWidgetSettings('@shopgate/engage/product/MediaImage');
46
- useEffect(() => setPlaceholderEnabled(!url), [url]);
47
+ const showInnerShadow = useProductImageShadow(WIDGET_ID);
47
48
  const mergedClassName = cx(className, {
48
49
  [classes.innerShadow]: showInnerShadow
49
50
  });
50
- if (placeholder) {
51
- return /*#__PURE__*/_jsx(SurroundPortals, {
52
- portalName: PORTAL_PRODUCT_IMAGE,
53
- children: /*#__PURE__*/_jsx(MediaPlaceholder, {
54
- className: mergedClassName
55
- })
56
- });
57
- }
58
51
  return /*#__PURE__*/_jsx(SurroundPortals, {
59
- portalName: PORTAL_PRODUCT_IMAGE,
60
- portalProps: {
52
+ portalName: PORTAL_PRODUCT_IMAGE
53
+ // Nothing is passed on without a url, so portals keep seeing what they saw before the
54
+ // placeholder moved into the Image component.
55
+ ,
56
+ portalProps: url ? {
61
57
  src: url,
62
- resolutions
63
- },
58
+ resolutions,
59
+ ratio
60
+ } : undefined,
64
61
  children: /*#__PURE__*/_jsx(Image, {
65
62
  src: url,
66
63
  resolutions: resolutions,
64
+ ratio: ratio,
67
65
  alt: altText,
68
66
  className: mergedClassName,
69
- backgroundColor: "transparent",
70
- onError: () => setPlaceholderEnabled(true),
67
+ backgroundColor: "transparent"
68
+ // Without the merged class name - it is already on the container this renders into.
69
+ ,
70
+ placeholder: /*#__PURE__*/_jsx(MediaPlaceholder, {}),
71
71
  animating: true
72
72
  })
73
73
  });
@@ -76,6 +76,7 @@ MediaImage.defaultProps = {
76
76
  url: defaultProps.url,
77
77
  altText: defaultProps.altText,
78
78
  className: defaultProps.className,
79
+ ratio: null,
79
80
  resolutions: undefined
80
81
  };
81
82
  export default MediaImage;
@@ -5,15 +5,12 @@ import { defaultProps, propTypes } from "./props";
5
5
  import { jsx as _jsx } from "react/jsx-runtime";
6
6
  const placeholderIconScale = 0.65;
7
7
  const useStyles = makeStyles()(theme => ({
8
+ // Fills the box its parent reserves rather than reserving one of its own.
8
9
  placeholderContainer: {
9
- position: 'relative',
10
+ position: 'absolute',
10
11
  width: '100%',
11
- ':before': {
12
- display: 'block',
13
- content: '""',
14
- width: '100%',
15
- paddingTop: '100%'
16
- }
12
+ height: '100%',
13
+ top: 0
17
14
  },
18
15
  placeholderContent: {
19
16
  position: 'absolute',
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { makeStyles } from '@shopgate/engage/styles';
4
+ import { useProductImageSettings } from '@shopgate/engage/settings/hooks';
4
5
  import { MediaImage as Image } from "../../../Media";
5
- import { PRODUCT_SLIDER_IMAGE_FORMATS } from "../../constants";
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  const useStyles = makeStyles()({
8
8
  full: {
@@ -23,6 +23,9 @@ const MediaImage = ({
23
23
  const {
24
24
  classes
25
25
  } = useStyles();
26
+ const {
27
+ pdp
28
+ } = useProductImageSettings();
26
29
  return /*#__PURE__*/_jsx("div", {
27
30
  onClick: onClick,
28
31
  onKeyDown: onClick,
@@ -32,7 +35,8 @@ const MediaImage = ({
32
35
  children: /*#__PURE__*/_jsx(Image, {
33
36
  url: media.url,
34
37
  altText: media.altText,
35
- resolutions: PRODUCT_SLIDER_IMAGE_FORMATS
38
+ resolutions: pdp.resolutions,
39
+ ratio: pdp.ratio
36
40
  })
37
41
  });
38
42
  };
@@ -1,15 +1,4 @@
1
1
  /**
2
2
  * key in the product image collection
3
3
  */
4
- export const PRODUCT_SLIDER_IMAGE_COLLECTION_KEY = 'PRODUCT_SLIDER_IMAGES';
5
-
6
- /**
7
- * themes value for the product slider image formats
8
- */
9
- export const PRODUCT_SLIDER_IMAGE_FORMATS = [{
10
- width: 440,
11
- height: 440
12
- }, {
13
- width: 1024,
14
- height: 1024
15
- }];
4
+ export const PRODUCT_SLIDER_IMAGE_COLLECTION_KEY = 'PRODUCT_SLIDER_IMAGES';
@@ -5,19 +5,28 @@ import { i18n, hasNewServices, isBeta } from '@shopgate/engage/core/helpers';
5
5
  import { useWidgetSettings } from '@shopgate/engage/core/hooks';
6
6
  import { PRODUCT_ORDER_QUANTITY } from '@shopgate/engage/product';
7
7
  import { formatFloat } from '@shopgate/engage/components/QuantityInput/helper';
8
+ import { makeStyles } from '@shopgate/engage/styles';
8
9
  import withProductStock from "../../hocs/withProductStock";
9
10
  import withProduct from "../../hocs/withProduct";
11
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
+ const useStyles = makeStyles()({
13
+ hint: {
14
+ lineHeight: 1.3
15
+ }
16
+ });
10
17
 
11
18
  /**
12
19
  * The Product Order Quantity Hint component.
13
20
  * @return {JSX}
14
21
  */
15
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
22
  const OrderQuantityHint = ({
17
23
  stock,
18
24
  product,
19
25
  className
20
26
  }) => {
27
+ const {
28
+ classes
29
+ } = useStyles();
21
30
  const {
22
31
  hasCatchWeight,
23
32
  unit: productUnit
@@ -50,6 +59,9 @@ const OrderQuantityHint = ({
50
59
  variant: "caption",
51
60
  component: "div",
52
61
  color: "textSecondary",
62
+ classes: {
63
+ caption: classes.hint
64
+ },
53
65
  children: /*#__PURE__*/_jsx(I18n.Text, {
54
66
  string: "product.minOrderQuantity",
55
67
  params: {
@@ -61,6 +73,9 @@ const OrderQuantityHint = ({
61
73
  variant: "caption",
62
74
  component: "div",
63
75
  color: "textSecondary",
76
+ classes: {
77
+ caption: classes.hint
78
+ },
64
79
  children: /*#__PURE__*/_jsx(I18n.Text, {
65
80
  string: "product.maxOrderQuantity",
66
81
  params: {
@@ -1,21 +1,34 @@
1
1
  import React, { useMemo } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { isBeta } from '@shopgate/engage/core/helpers';
4
- import { useWidgetSettings } from '@shopgate/engage/core/hooks';
5
- import { useProductListType } from '@shopgate/engage/product/hooks';
4
+ import { useProductListType, useShowEmptyRatingStars } from '@shopgate/engage/product/hooks';
6
5
  import { Link, RatingStars, DiscountBadge, SurroundPortals } from '@shopgate/engage/components';
7
6
  import { getProductRoute } from '@shopgate/engage/product';
8
7
  import { MapPriceHint, ProductImage, OrderQuantityHint, FeaturedMedia, Swatches, ProductName, ProductBadges } from '@shopgate/engage/product/components';
9
- import { getProductImageSettings } from '@shopgate/engage/product/helpers';
10
8
  import { PRODUCT_ITEM_DISCOUNT, PRODUCT_ITEM_PRICE } from '@shopgate/engage/category';
9
+ import { useSelector } from 'react-redux';
11
10
  import { makeStyles } from '@shopgate/engage/styles';
11
+ import { getProductCardNameMaxLines } from '@shopgate/engage/settings/selectors/appSettings';
12
12
  import ProductGridPrice from "../ProductGridPrice";
13
13
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
14
  const useStyles = makeStyles()(theme => ({
15
+ root: {
16
+ padding: theme.components.productCard.padding
17
+ },
18
+ image: {
19
+ padding: theme.components.productCard.imagePadding
20
+ },
15
21
  details: {
16
- padding: '12px 16px'
22
+ display: 'flex',
23
+ flexDirection: 'column',
24
+ gap: 4,
25
+ padding: theme.components.productCard.textPadding,
26
+ '& div:empty': {
27
+ display: 'none'
28
+ }
17
29
  },
18
30
  title: {
31
+ fontSize: theme.typography.body2.fontSize,
19
32
  fontWeight: theme.typography.fontWeightMedium,
20
33
  lineHeight: 1.15,
21
34
  marginTop: 1
@@ -33,7 +46,8 @@ const location = 'productCard';
33
46
  * @param {boolean} props.hidePrice Whether the price should be hidden.
34
47
  * @param {boolean} props.hideRating Whether the rating should be hidden.
35
48
  * @param {boolean} props.hideName Whether the name should be hidden.
36
- * @param {number} props.titleRows The max number of rows for the product title.
49
+ * @param {number} props.titleRows Optional override for the max number of rows for the product
50
+ * title
37
51
  * @param {string} props.url Optional alternative url for the product link
38
52
  * @return {JSX.Element}
39
53
  */
@@ -53,12 +67,8 @@ function ProductCard(props) {
53
67
  const {
54
68
  meta
55
69
  } = useProductListType();
56
- const {
57
- ListImage: gridResolutions
58
- } = getProductImageSettings();
59
- const {
60
- showEmptyRatingStars = false
61
- } = useWidgetSettings('@shopgate/engage/rating');
70
+ const productNameLines = useSelector(getProductCardNameMaxLines);
71
+ const showEmptyRatingStars = useShowEmptyRatingStars();
62
72
  const showRatings = useMemo(() => {
63
73
  if (!hideRating && product?.rating?.average > 0) {
64
74
  return true;
@@ -69,7 +79,7 @@ function ProductCard(props) {
69
79
  return false;
70
80
  }, [hideRating, product, showEmptyRatingStars]);
71
81
  return /*#__PURE__*/_jsxs(Link, {
72
- className: "engage__product-card",
82
+ className: cx(classes.root, 'engage__product-card'),
73
83
  href: url || getProductRoute(product.id),
74
84
  itemProp: "item",
75
85
  itemScope: true,
@@ -78,15 +88,18 @@ function ProductCard(props) {
78
88
  state: {
79
89
  ...meta
80
90
  },
81
- children: [isBeta() && product.featuredMedia ? /*#__PURE__*/_jsx(FeaturedMedia, {
82
- type: product.featuredMedia.type,
83
- url: product.featuredMedia.url,
84
- altText: product.featuredMedia.altText
85
- }) : /*#__PURE__*/_jsx(ProductImage, {
86
- src: product.featuredImageBaseUrl,
87
- resolutions: gridResolutions,
88
- alt: product.name,
89
- itemProp: "image"
91
+ children: [/*#__PURE__*/_jsx("div", {
92
+ className: classes.image,
93
+ children: isBeta() && product.featuredMedia ? /*#__PURE__*/_jsx(FeaturedMedia, {
94
+ type: product.featuredMedia.type,
95
+ url: product.featuredMedia.url,
96
+ altText: product.featuredMedia.altText
97
+ }) : /*#__PURE__*/_jsx(ProductImage, {
98
+ src: product.featuredImageBaseUrl,
99
+ context: "list",
100
+ alt: product.name,
101
+ itemProp: "image"
102
+ })
90
103
  }), /*#__PURE__*/_jsx(ProductBadges, {
91
104
  location: location,
92
105
  productId: product.id,
@@ -113,7 +126,7 @@ function ProductCard(props) {
113
126
  className: classes.title,
114
127
  testId: `Productname: ${product.name}`,
115
128
  itemProp: "name",
116
- rows: titleRows || 3
129
+ rows: titleRows || productNameLines
117
130
  }), /*#__PURE__*/_jsx(MapPriceHint, {
118
131
  productId: product.id
119
132
  }), /*#__PURE__*/_jsx(OrderQuantityHint, {
@@ -149,7 +162,7 @@ ProductCard.defaultProps = {
149
162
  hideName: false,
150
163
  hidePrice: false,
151
164
  hideRating: false,
152
- titleRows: 3,
165
+ titleRows: null,
153
166
  url: null
154
167
  };
155
168
  export default ProductCard;
@@ -8,17 +8,25 @@ import { makeStyles } from '@shopgate/engage/styles';
8
8
  import ItemName from "../ItemName";
9
9
  import ItemPrice from "../ItemPrice";
10
10
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
11
- const useStyles = makeStyles()({
11
+ const useStyles = makeStyles()(theme => ({
12
12
  root: {
13
13
  lineHeight: 1.2,
14
+ display: 'flex',
15
+ flexDirection: 'column',
16
+ gap: theme.spacing(0.5),
14
17
  ':not(:empty)': {
15
- padding: '12px 0 16px'
18
+ padding: theme.components.tiles.textPadding,
19
+ // Floored at the favorites button overhang so a small configured inner padding
20
+ // can't let the button overlap the product name.
21
+ paddingTop: theme.components.tiles.textPaddingTop
16
22
  }
17
23
  },
18
24
  quantityHint: {
19
- paddingTop: 8
25
+ ':empty': {
26
+ display: 'none'
27
+ }
20
28
  }
21
- });
29
+ }));
22
30
 
23
31
  /**
24
32
  * The Product Grid Item Detail component.
@@ -2,17 +2,14 @@ import React, { useMemo, memo } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { SurroundPortals } from '@shopgate/engage/components';
4
4
  import { PRODUCT_ITEM_IMAGE } from '@shopgate/engage/category/constants';
5
- import { getProductImageSettings, ProductImage } from '@shopgate/engage/product';
6
- import { jsx as _jsx } from "react/jsx-runtime";
7
- const {
8
- ListImage: gridResolutions
9
- } = getProductImageSettings();
5
+ import { ProductImage } from '@shopgate/engage/product';
10
6
 
11
7
  /**
12
8
  * The item image component.
13
9
  * @param {Object} props The component props.
14
10
  * @returns {JSX.Element}
15
11
  */
12
+ import { jsx as _jsx } from "react/jsx-runtime";
16
13
  const ItemImage = ({
17
14
  productId,
18
15
  name,
@@ -27,7 +24,7 @@ const ItemImage = ({
27
24
  children: /*#__PURE__*/_jsx(ProductImage, {
28
25
  alt: name,
29
26
  src: imageUrl,
30
- resolutions: gridResolutions,
27
+ context: "list",
31
28
  itemProp: "image"
32
29
  })
33
30
  });
@@ -1,12 +1,15 @@
1
1
  import React, { memo, useMemo } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { PRODUCT_ITEM_NAME, PRODUCT_ITEM_NAME_BEFORE, PRODUCT_ITEM_NAME_AFTER } from '@shopgate/engage/category/constants';
4
+ import { useSelector } from 'react-redux';
4
5
  import { Portal } from '@shopgate/engage/components';
5
6
  import { ProductName, ProductRatingStars } from '@shopgate/engage/product';
6
7
  import { makeStyles } from '@shopgate/engage/styles';
8
+ import { getProductTileNameMaxLines } from '@shopgate/engage/settings/selectors/appSettings';
7
9
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
8
10
  const useStyles = makeStyles()(theme => ({
9
11
  root: {
12
+ fontSize: theme.typography.body2.fontSize,
10
13
  fontWeight: theme.typography.fontWeightMedium,
11
14
  marginTop: 1,
12
15
  wordBreak: ['keep-all', 'break-word'],
@@ -28,6 +31,7 @@ const ItemName = ({
28
31
  classes,
29
32
  cx
30
33
  } = useStyles();
34
+ const productNameLines = useSelector(getProductTileNameMaxLines);
31
35
  const portalProps = useMemo(() => ({
32
36
  productId,
33
37
  display
@@ -53,7 +57,8 @@ const ItemName = ({
53
57
  className: cx(classes.root, 'theme__product-grid__item__item-name'),
54
58
  portalName: PRODUCT_ITEM_NAME,
55
59
  portalProps: portalProps,
56
- testId: `Productname: ${name}`
60
+ testId: `Productname: ${name}`,
61
+ rows: productNameLines
57
62
  })]
58
63
  });
59
64
  };
@@ -17,8 +17,15 @@ const useStyles = makeStyles()((theme, {
17
17
  position: 'relative',
18
18
  display: 'flex',
19
19
  flexDirection: 'column',
20
- background: theme.palette.background.surface,
21
- height: '100%'
20
+ height: '100%',
21
+ padding: theme.components.tiles.padding,
22
+ background: theme.components.tiles.backgroundColor,
23
+ border: theme.components.tiles.border,
24
+ borderRadius: theme.components.tiles.borderRadius
25
+ },
26
+ image: {
27
+ display: 'block',
28
+ padding: theme.components.tiles.imagePadding
22
29
  },
23
30
  itemDetails: {
24
31
  position: 'relative',
@@ -51,6 +58,7 @@ const Item = ({
51
58
  return /*#__PURE__*/_jsxs("div", {
52
59
  className: cx(classes.root, 'theme__product-grid__item'),
53
60
  children: [/*#__PURE__*/_jsx(Link, {
61
+ className: classes.image,
54
62
  role: "none",
55
63
  href: getProductRoute(product.id),
56
64
  state: {
@@ -9,11 +9,26 @@ const useStyles = makeStyles()((theme, {
9
9
  root: {
10
10
  padding: '0 16px',
11
11
  ':not(:empty)': {
12
- marginTop: 16
12
+ marginTop: 16,
13
+ marginBottom: 16
13
14
  },
14
- display: 'grid',
15
- gridGap: '0 16px',
16
- gridTemplateColumns: `repeat(${columns}, 1fr)`
15
+ ...(columns <= 2 ? {
16
+ rowGap: 16,
17
+ '& > *': {
18
+ padding: '0px 8px',
19
+ width: `${100 / columns}%`,
20
+ [`&:nth-of-type(${columns}n)`]: {
21
+ paddingRight: 0
22
+ },
23
+ [`&:nth-of-type(${columns}n+1)`]: {
24
+ paddingLeft: 0
25
+ }
26
+ }
27
+ } : {
28
+ display: 'grid',
29
+ gridGap: 16,
30
+ gridTemplateColumns: `repeat(${columns}, 1fr)`
31
+ })
17
32
  }
18
33
  }));
19
34
 
@@ -0,0 +1,2 @@
1
+ export const WIDGET_ID: "@shopgate/engage/product/ProductGrid";
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../product/components/ProductGrid/constants.js"],"names":[],"mappings":"AAAA,wBAAyB,sCAAsC,CAAC"}
@@ -0,0 +1 @@
1
+ export const WIDGET_ID = '@shopgate/engage/product/ProductGrid';
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Resolves the number of product columns for the ProductGrid, keyed by the
3
+ * active breakpoint.
4
+ *
5
+ * Precedence:
6
+ * - Once the app settings are hydrated from a source (admin sync / jsonp), they
7
+ * are authoritative everywhere.
8
+ * @returns The resolved number of columns for the active breakpoint.
9
+ */
10
+ export declare const useProductGridColumns: () => number;
11
+ //# sourceMappingURL=hooks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../product/components/ProductGrid/hooks.ts"],"names":[],"mappings":"AAiBA;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB,QAAO,MAmCxC,CAAC"}
@@ -0,0 +1,48 @@
1
+ import "core-js/modules/es.array.reduce.js";
2
+ import { useContext, useMemo } from 'react';
3
+ import { useSelector } from 'react-redux';
4
+ import { WidgetContext } from '@shopgate/engage/page/components/Widgets/WidgetContext';
5
+ import { useWidgetSettings } from '@shopgate/engage/core/hooks';
6
+ import { useResponsiveValue } from '@shopgate/engage/styles';
7
+ import { getAreAppSettingsHydrated, getProductGridColumns } from '@shopgate/engage/settings/selectors/appSettings';
8
+ import { SCREEN_SIZE_BREAKPOINTS } from '@shopgate/engage/settings/constants/appSettings';
9
+ import { WIDGET_ID } from "./constants";
10
+
11
+ /**
12
+ * Resolves the number of product columns for the ProductGrid, keyed by the
13
+ * active breakpoint.
14
+ *
15
+ * Precedence:
16
+ * - Once the app settings are hydrated from a source (admin sync / jsonp), they
17
+ * are authoritative everywhere.
18
+ * @returns The resolved number of columns for the active breakpoint.
19
+ */
20
+ export const useProductGridColumns = () => {
21
+ // Widget-scope detection: the WidgetContext carries a `code` only when the
22
+ // grid renders inside a page-builder widget (WidgetProvider).
23
+ const {
24
+ code: widgetCode
25
+ } = useContext(WidgetContext);
26
+ const isInsideWidget = Boolean(widgetCode);
27
+ const areAppSettingsHydrated = useSelector(getAreAppSettingsHydrated);
28
+ // The built-in default { small: 2, large: 4 } until hydrated, the source value after.
29
+ const appSettingsColumns = useSelector(getProductGridColumns);
30
+ const {
31
+ columns: legacyColumns
32
+ } = useWidgetSettings(WIDGET_ID) || {};
33
+ const sizes = useMemo(() => {
34
+ // Only special case: pre-hydration, outside a widget, honor the legacy
35
+ // scalar flat across every breakpoint.
36
+ if (!areAppSettingsHydrated && !isInsideWidget && typeof legacyColumns === 'number') {
37
+ return {
38
+ small: legacyColumns
39
+ };
40
+ }
41
+ return appSettingsColumns;
42
+ }, [areAppSettingsHydrated, isInsideWidget, legacyColumns, appSettingsColumns]);
43
+ const breakpoints = useMemo(() => Object.entries(sizes).reduce((acc, [size, value]) => {
44
+ acc[SCREEN_SIZE_BREAKPOINTS[size]] = value;
45
+ return acc;
46
+ }, {}), [sizes]);
47
+ return useResponsiveValue(breakpoints);
48
+ };
@@ -4,11 +4,11 @@ import PropTypes from 'prop-types';
4
4
  import { ViewContext, InfiniteContainer, LoadingIndicator } from '@shopgate/engage/components';
5
5
  import { ProductListTypeProvider } from '@shopgate/engage/product';
6
6
  import { ITEMS_PER_LOAD } from '@shopgate/engage/core/constants';
7
- import { useResponsiveValue } from '@shopgate/engage/styles';
8
7
  import Iterator from "./components/Iterator";
9
8
  import Layout from "./components/Layout";
9
+ import { useProductGridColumns } from "./hooks";
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
11
- export const WIDGET_ID = '@shopgate/engage/product/ProductGrid';
11
+ export { WIDGET_ID } from "./constants";
12
12
 
13
13
  /**
14
14
  * The Product Grid component.
@@ -46,10 +46,7 @@ const ProductGrid = ({
46
46
  const {
47
47
  getContentRef
48
48
  } = useContext(ViewContext);
49
- const columns = useResponsiveValue({
50
- xs: 2,
51
- md: 4
52
- });
49
+ const columns = useProductGridColumns();
53
50
  if (!infiniteLoad) {
54
51
  return /*#__PURE__*/_jsx(Layout, {
55
52
  columns: columns,
@@ -7,7 +7,6 @@ import { makeStyles } from '@shopgate/engage/styles';
7
7
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
8
8
  const useStyles = makeStyles()(theme => ({
9
9
  priceWrapper: {
10
- marginTop: 4,
11
10
  alignItems: 'center'
12
11
  },
13
12
  strikedPrice: {
@@ -0,0 +1,42 @@
1
+ import type { ImageProps } from '@shopgate/pwa-common/components/Image';
2
+ import type { ImageResolution, ProductImageContext } from '@shopgate/engage/settings/types/appSettings';
3
+ /**
4
+ * Everything the underlying Image accepts is forwarded, minus the two this component owns:
5
+ * `backgroundColor`, derived from `noBackground`, and `placeholder`.
6
+ */
7
+ export interface ProductImageProps extends Omit<ImageProps, 'backgroundColor' | 'placeholder'> {
8
+ /**
9
+ * The surface this image is rendered on. Determines the resolutions and aspect ratio, which are
10
+ * configured app wide. Ignored when an explicit `resolutions` prop is passed.
11
+ */
12
+ context?: ProductImageContext | null;
13
+ /**
14
+ * Drops the background behind the image.
15
+ */
16
+ noBackground?: boolean;
17
+ /**
18
+ * Image to show instead of the placeholder icon. The shop wide setting wins over this.
19
+ */
20
+ placeholderSrc?: string | null;
21
+ /**
22
+ * @deprecated Pass a `context` instead, so the image follows the configured aspect ratio.
23
+ */
24
+ ratio?: number[] | null;
25
+ /**
26
+ * @deprecated Pass a `context` instead, so the image follows the configured aspect ratio.
27
+ * Still honored, and still takes precedence over `context`.
28
+ */
29
+ resolutions?: ImageResolution[];
30
+ }
31
+ /**
32
+ * The product image component.
33
+ *
34
+ * Behaves like the core Image component, with a product placeholder for a missing or failed image.
35
+ * @param props The component props.
36
+ * @returns The rendered component.
37
+ */
38
+ declare const ProductImage: (props: ProductImageProps) => import("react").JSX.Element;
39
+ export { ProductImage as UnwrappedProductImage };
40
+ declare const _default: import("react").MemoExoticComponent<(props: ProductImageProps) => import("react").JSX.Element>;
41
+ export default _default;
42
+ //# sourceMappingURL=ProductImage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProductImage.d.ts","sourceRoot":"","sources":["../../../../product/components/ProductImage/ProductImage.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAMxE,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACpB,MAAM,6CAA6C,CAAC;AA0BrD;;;GAGG;AACH,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,UAAU,EAAE,iBAAiB,GAAG,aAAa,CAAC;IAC5F;;;OAGG;IACH,OAAO,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACrC;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACxB;;;OAGG;IACH,WAAW,CAAC,EAAE,eAAe,EAAE,CAAC;CACjC;AAuCD;;;;;;GAMG;AACH,QAAA,MAAM,YAAY,GAAI,OAAO,iBAAiB,gCA4E7C,CAAC;AAEF,OAAO,EAAE,YAAY,IAAI,qBAAqB,EAAE,CAAC;oEAOX,iBAAiB;AAOvD,wBAA2C"}