@gem-sdk/components 23.1.3 → 24.0.0-dev.9

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 (501) hide show
  1. package/dist/cjs/article/components/ArticleImage.js +1 -1
  2. package/dist/cjs/article/components/ArticleImage.liquid.js +6 -6
  3. package/dist/cjs/article/components/ArticleList.js +1 -1
  4. package/dist/cjs/article/index.js +1 -1
  5. package/dist/cjs/article/settings/configs/article-image/settings.js +1 -1
  6. package/dist/cjs/article/settings/configs/article-image/ui-v2.js +1 -1
  7. package/dist/cjs/builder.js +1 -1
  8. package/dist/cjs/button/common/helpers.js +2 -2
  9. package/dist/cjs/cart/components/CartList.js +1 -1
  10. package/dist/cjs/cart/index.js +1 -1
  11. package/dist/cjs/collection/index.js +1 -1
  12. package/dist/cjs/common/components/Loading.js +1 -1
  13. package/dist/cjs/common/const.js +1 -1
  14. package/dist/cjs/common/helpers.js +1 -0
  15. package/dist/cjs/common/hooks/useElementWidth.js +1 -0
  16. package/dist/cjs/common/hooks/useLoadingProgress.js +1 -0
  17. package/dist/cjs/grid/components/row/Row.liquid.js +12 -12
  18. package/dist/cjs/grid/components/section/Section.js +1 -1
  19. package/dist/cjs/grid/index.js +1 -1
  20. package/dist/cjs/header/components/kind/basic/index.js +1 -1
  21. package/dist/cjs/header/components/kind/modern/index.js +1 -1
  22. package/dist/cjs/header/index.js +1 -1
  23. package/dist/cjs/hero-banner/common/styles.js +1 -1
  24. package/dist/cjs/hero-banner/components/HeroBannerItem.js +1 -1
  25. package/dist/cjs/hero-banner/components/HeroBannerItem.liquid.js +5 -5
  26. package/dist/cjs/hero-banner/index.js +1 -1
  27. package/dist/cjs/image/common/adaptiveSources.js +1 -0
  28. package/dist/cjs/image/common/attrs.js +1 -1
  29. package/dist/cjs/image/common/classes.js +1 -1
  30. package/dist/cjs/image/common/helpers.js +2 -2
  31. package/dist/cjs/image/common/liquidSrcset.js +1 -0
  32. package/dist/cjs/image/common/listContext.js +1 -0
  33. package/dist/cjs/image/common/listImageContext.js +1 -0
  34. package/dist/cjs/image/common/sizes.js +1 -0
  35. package/dist/cjs/image/common/srcset.js +1 -0
  36. package/dist/cjs/image/components/AdaptiveImage.js +1 -1
  37. package/dist/cjs/image/components/AdaptiveImage.liquid.js +10 -12
  38. package/dist/cjs/image/components/Image.js +1 -1
  39. package/dist/cjs/image/components/Image.liquid.js +10 -10
  40. package/dist/cjs/image/components/NextImage.js +1 -1
  41. package/dist/cjs/image/components/NextImage.liquid.js +4 -5
  42. package/dist/cjs/image/constants.js +1 -1
  43. package/dist/cjs/image/index.js +1 -1
  44. package/dist/cjs/image/settings/configs/settings.js +1 -1
  45. package/dist/cjs/image/settings/configs/ui-v2.js +1 -1
  46. package/dist/cjs/image-comparison/common/attrs.js +1 -1
  47. package/dist/cjs/image-comparison/components/CompareImage.js +1 -1
  48. package/dist/cjs/image-comparison/components/CompareImage.liquid.js +14 -14
  49. package/dist/cjs/image-comparison/components/ImageComparison.liquid.js +3 -3
  50. package/dist/cjs/image-comparison/index.js +1 -1
  51. package/dist/cjs/image-comparison/settings/configs/settings.js +1 -1
  52. package/dist/cjs/image-comparison/settings/configs/ui-v2.js +1 -1
  53. package/dist/cjs/index.js +1 -1
  54. package/dist/cjs/post-purchase/callout-banner/index.js +1 -1
  55. package/dist/cjs/post-purchase/product/components/ProductPrice.js +1 -1
  56. package/dist/cjs/post-purchase/product/components/ProductQuantity.js +1 -1
  57. package/dist/cjs/post-purchase/product/components/product-offer/components/ProductOffer.js +1 -1
  58. package/dist/cjs/post-purchase/product/components/product-offer/helpers/getOfferErrorText.js +1 -0
  59. package/dist/cjs/post-purchase/product/components/product-offer/hooks/useProductOfferData.js +1 -1
  60. package/dist/cjs/post-purchase/product/hooks/useHandleQuantity.js +1 -1
  61. package/dist/cjs/post-purchase/product/index.js +1 -1
  62. package/dist/cjs/post-purchase/product/settings/product-quantity/configs/settings.js +1 -1
  63. package/dist/cjs/post-purchase/product/settings/product-quantity/configs/ui-v2.js +1 -1
  64. package/dist/cjs/product/components/product-badge/ProductBadge.js +1 -1
  65. package/dist/cjs/product/components/product-badge/common/styles.js +1 -1
  66. package/dist/cjs/product/components/product-bundle/ProductBundleDiscount.js +1 -1
  67. package/dist/cjs/product/components/product-bundle/ProductBundleDiscountWarning.js +2 -0
  68. package/dist/cjs/product/components/product-bundle/common/classes.js +1 -1
  69. package/dist/cjs/product/components/product-bundle/hooks/useProductBundleDataState.js +3 -3
  70. package/dist/cjs/product/components/product-discount-tag/ProductDiscountTag.js +1 -1
  71. package/dist/cjs/product/components/product-discount-tag/common/helpers.js +1 -0
  72. package/dist/cjs/product/components/product-images/ProductImagesLightBox.js +1 -1
  73. package/dist/cjs/product/components/product-images-v2/common/common.js +1 -1
  74. package/dist/cjs/product/components/product-images-v2/components/child/ProductFeaturedImageOnly.js +1 -1
  75. package/dist/cjs/product/components/product-images-v2/components/child/ProductGalleryGrid.js +1 -1
  76. package/dist/cjs/product/components/product-images-v2/components/feature-gallery/FeatureImageWithGallery.liquid.js +41 -41
  77. package/dist/cjs/product/components/product-images-v2/components/gallery-carousel/GalleryCarousel.js +1 -1
  78. package/dist/cjs/product/components/product-images-v2/components/gallery-carousel/GalleryCarousel.liquid.js +13 -13
  79. package/dist/cjs/product/components/product-images-v2/components/gallery-grid/GalleryGrid.liquid.js +23 -23
  80. package/dist/cjs/product/components/product-images-v2/components/lightbox/ProductImagesLightBox.js +1 -1
  81. package/dist/cjs/product/components/product-images-v3/ProductImagesV3.liquid.js +3 -3
  82. package/dist/cjs/product/components/product-images-v3/common/common.js +1 -1
  83. package/dist/cjs/product/components/product-images-v3/components/child/ProductFeaturedImageOnly.js +1 -1
  84. package/dist/cjs/product/components/product-images-v3/components/child/ProductGalleryGrid.js +1 -1
  85. package/dist/cjs/product/components/product-images-v3/components/feature-gallery/FeatureImageWithGallery.liquid.js +40 -40
  86. package/dist/cjs/product/components/product-images-v3/components/feature-gallery/FeatureImageWithGalleryEmbla.liquid.js +40 -40
  87. package/dist/cjs/product/components/product-images-v3/components/gallery-carousel/GalleryCarousel.js +1 -1
  88. package/dist/cjs/product/components/product-images-v3/components/gallery-carousel/GalleryCarousel.liquid.js +12 -12
  89. package/dist/cjs/product/components/product-images-v3/components/gallery-carousel/GalleryCarouselEmbla.liquid.js +12 -12
  90. package/dist/cjs/product/components/product-images-v3/components/gallery-grid/GalleryGrid.liquid.js +23 -23
  91. package/dist/cjs/product/components/product-images-v3/components/lightbox/ProductImagesLightBox.js +1 -1
  92. package/dist/cjs/product/components/product-list/ProductList.js +1 -1
  93. package/dist/cjs/product/components/product-list/ProductListCarouselLayout.js +1 -1
  94. package/dist/cjs/product/components/product-list/ProductListCarouselLayout.liquid.js +9 -7
  95. package/dist/cjs/product/components/product-list/ProductListGridLayout.js +1 -1
  96. package/dist/cjs/product/components/product-list/ProductListGridLayout.liquid.js +16 -14
  97. package/dist/cjs/product/components/product-list/common/helpers.js +1 -1
  98. package/dist/cjs/product/components/product-list/common/imagePriority.js +17 -0
  99. package/dist/cjs/product/components/product-list/common/imagePriorityHints.js +1 -0
  100. package/dist/cjs/product/components/product-list-v3/ProductList.js +1 -1
  101. package/dist/cjs/product/components/product-list-v3/ProductListCarouselLayout.js +1 -1
  102. package/dist/cjs/product/components/product-list-v3/ProductListCarouselLayout.liquid.js +11 -9
  103. package/dist/cjs/product/components/product-list-v3/ProductListGridLayout.js +1 -1
  104. package/dist/cjs/product/components/product-list-v3/ProductListGridLayout.liquid.js +16 -14
  105. package/dist/cjs/product/components/product-price/hooks/useGpPrice.js +1 -1
  106. package/dist/cjs/product/components/product-wrap/Product.js +1 -1
  107. package/dist/cjs/product/components/product-wrap/hook/useProductSetting.js +1 -1
  108. package/dist/cjs/product/helpers/product-bundle.js +1 -1
  109. package/dist/cjs/product/index.js +1 -1
  110. package/dist/cjs/product/settings/product-image-v2/configs/setting-v2/index.js +1 -1
  111. package/dist/cjs/product/settings/product-image-v2/configs/ui-v2.js +1 -1
  112. package/dist/cjs/product/settings/product-image-v3/configs/setting-v2/index.js +1 -1
  113. package/dist/cjs/product/settings/product-image-v3/configs/ui-v2.js +1 -1
  114. package/dist/cjs/stock-counter/common/attrs.js +1 -1
  115. package/dist/cjs/stock-counter/common/helpers.js +23 -23
  116. package/dist/cjs/stock-counter/hooks/useStockCounter.js +1 -1
  117. package/dist/cjs/third-party/common/helpers.js +4 -4
  118. package/dist/cjs/third-party/components/KlarnaMessaging.liquid.js +29 -4
  119. package/dist/cjs/third-party/settings/AftershipEmailMarketingsms/index.js +1 -1
  120. package/dist/cjs/third-party/settings/AirProductReviewsAppUgc/index.js +2 -2
  121. package/dist/cjs/third-party/settings/AliReviews/index.js +1 -1
  122. package/dist/cjs/third-party/settings/AlsoBoughtCbb/index.js +1 -1
  123. package/dist/cjs/third-party/settings/AovBundlesVolumeDiscounts/index.js +2 -2
  124. package/dist/cjs/third-party/settings/AovFreeGiftBuyXGetYBogo/index.js +2 -2
  125. package/dist/cjs/third-party/settings/AppointmentBookingCowlendar/index.js +2 -2
  126. package/dist/cjs/third-party/settings/AppstleBundlesDiscounts/index.js +2 -2
  127. package/dist/cjs/third-party/settings/AppstleLoyaltyRewardProgram/index.js +1 -1
  128. package/dist/cjs/third-party/settings/AppstleSubscriptions/index.js +1 -1
  129. package/dist/cjs/third-party/settings/BestBuyFulfillment/index.js +1 -1
  130. package/dist/cjs/third-party/settings/BfSizeChartSizeGuide/index.js +1 -1
  131. package/dist/cjs/third-party/settings/BirdChime/index.js +4 -4
  132. package/dist/cjs/third-party/settings/BloyRewardsProgramLoyalty/index.js +1 -1
  133. package/dist/cjs/third-party/settings/Bogos/index.js +1 -1
  134. package/dist/cjs/third-party/settings/BoldProductOptions/index.js +4 -4
  135. package/dist/cjs/third-party/settings/BoldSubscriptions/index.js +1 -1
  136. package/dist/cjs/third-party/settings/BonLoyaltyRewardsReferrals/index.js +1 -1
  137. package/dist/cjs/third-party/settings/BonySubscriptionsApp/index.js +2 -2
  138. package/dist/cjs/third-party/settings/BoostAISearchDiscovery/index.js +1 -1
  139. package/dist/cjs/third-party/settings/Bundler/index.js +1 -1
  140. package/dist/cjs/third-party/settings/CleanSizeCharts/index.js +1 -1
  141. package/dist/cjs/third-party/settings/CrossSellCartUpsell/index.js +1 -1
  142. package/dist/cjs/third-party/settings/CustomProductOptionsVariant/index.js +2 -2
  143. package/dist/cjs/third-party/settings/DealeasyVolumeDiscounts/index.js +2 -2
  144. package/dist/cjs/third-party/settings/DiscountyBulkDiscountSales/index.js +2 -2
  145. package/dist/cjs/third-party/settings/EasifyProductOptions/index.js +1 -1
  146. package/dist/cjs/third-party/settings/EasyBundleBuilderSkailama/index.js +2 -2
  147. package/dist/cjs/third-party/settings/EasySellCOD/index.js +4 -4
  148. package/dist/cjs/third-party/settings/EcoboostifyShoppableReelUgc/index.js +2 -2
  149. package/dist/cjs/third-party/settings/EcomsendBackInStockAlert/index.js +1 -1
  150. package/dist/cjs/third-party/settings/EssentPreorderBackInStock/index.js +2 -2
  151. package/dist/cjs/third-party/settings/EssentialAnnouncementBar/index.js +1 -1
  152. package/dist/cjs/third-party/settings/EssentialCountdownTimerBar/index.js +2 -2
  153. package/dist/cjs/third-party/settings/EstimatedDeliveryDatePlus/index.js +2 -2
  154. package/dist/cjs/third-party/settings/FastBundleBundlesDiscounts/index.js +2 -2
  155. package/dist/cjs/third-party/settings/FeraReviews/index.js +1 -1
  156. package/dist/cjs/third-party/settings/FirePush/index.js +1 -1
  157. package/dist/cjs/third-party/settings/FlyBundlesUpsellsFbt/index.js +1 -1
  158. package/dist/cjs/third-party/settings/FordeerProductLabels/index.js +2 -2
  159. package/dist/cjs/third-party/settings/FrequentlyBoughtTogether/index.js +1 -1
  160. package/dist/cjs/third-party/settings/GloColorSwatchvariantImage/index.js +1 -1
  161. package/dist/cjs/third-party/settings/GloboProductOptionsVariant/index.js +1 -1
  162. package/dist/cjs/third-party/settings/GoogleReviewsByReputon/index.js +1 -1
  163. package/dist/cjs/third-party/settings/Growave/index.js +1 -1
  164. package/dist/cjs/third-party/settings/GrowthSuiteDiscountCodes/index.js +2 -2
  165. package/dist/cjs/third-party/settings/HextomCountdownTimerBar/index.js +2 -2
  166. package/dist/cjs/third-party/settings/HextomFreeShippingBar/index.js +2 -2
  167. package/dist/cjs/third-party/settings/HulkFormBuilder/index.js +1 -1
  168. package/dist/cjs/third-party/settings/HulkProductOptions/index.js +1 -1
  169. package/dist/cjs/third-party/settings/InfiniteOptions/index.js +1 -1
  170. package/dist/cjs/third-party/settings/Instafeed/index.js +1 -1
  171. package/dist/cjs/third-party/settings/InstasellShoppableInstagram/index.js +1 -1
  172. package/dist/cjs/third-party/settings/JudgemeReviews/index.js +1 -1
  173. package/dist/cjs/third-party/settings/JunipProductReviewsUgc/index.js +1 -1
  174. package/dist/cjs/third-party/settings/KachingBundles/index.js +1 -1
  175. package/dist/cjs/third-party/settings/KachingSubscriptionsApp/index.js +1 -1
  176. package/dist/cjs/third-party/settings/KingProductOptions/index.js +1 -1
  177. package/dist/cjs/third-party/settings/KiteFreeGiftDiscount/index.js +2 -2
  178. package/dist/cjs/third-party/settings/KlarnaMessaging/index.js +2 -2
  179. package/dist/cjs/third-party/settings/Klaviyo/index.js +4 -4
  180. package/dist/cjs/third-party/settings/KoalaBundleQuantityDiscount/index.js +1 -1
  181. package/dist/cjs/third-party/settings/LaiProductReviews/index.js +1 -1
  182. package/dist/cjs/third-party/settings/LoloyalLoyaltyReferrals/index.js +1 -1
  183. package/dist/cjs/third-party/settings/LoopSubscriptions/index.js +1 -1
  184. package/dist/cjs/third-party/settings/LooxReviews/index.js +1 -1
  185. package/dist/cjs/third-party/settings/MaxbundleProductBundles/index.js +1 -1
  186. package/dist/cjs/third-party/settings/MbcBundleVolumeDiscount/index.js +1 -1
  187. package/dist/cjs/third-party/settings/MyappgurusProductReviews/index.js +1 -1
  188. package/dist/cjs/third-party/settings/NotifyBackInStockPreOrder/index.js +1 -1
  189. package/dist/cjs/third-party/settings/OkendoReviewsLoyalty/index.js +1 -1
  190. package/dist/cjs/third-party/settings/Omnisend/index.js +1 -1
  191. package/dist/cjs/third-party/settings/Opinew/index.js +1 -1
  192. package/dist/cjs/third-party/settings/ParcelPanel/index.js +1 -1
  193. package/dist/cjs/third-party/settings/PickyStory/index.js +4 -4
  194. package/dist/cjs/third-party/settings/PowerfulContactFormBuilder/index.js +1 -1
  195. package/dist/cjs/third-party/settings/PreorderNowPreOrderPq/index.js +2 -2
  196. package/dist/cjs/third-party/settings/PreorderNowWodPresale/index.js +1 -1
  197. package/dist/cjs/third-party/settings/ProductOptionsCustomizer/index.js +2 -2
  198. package/dist/cjs/third-party/settings/ProductOptionsVariantOption/index.js +2 -2
  199. package/dist/cjs/third-party/settings/PumperBundlesVolumeDiscount/index.js +2 -2
  200. package/dist/cjs/third-party/settings/PushOwl/index.js +1 -1
  201. package/dist/cjs/third-party/settings/QikifyUpsell/index.js +2 -2
  202. package/dist/cjs/third-party/settings/RapiBundleQuantityBreaks/index.js +2 -2
  203. package/dist/cjs/third-party/settings/RechargeSubscriptions/index.js +1 -1
  204. package/dist/cjs/third-party/settings/RecurpaySubscriptionApp/index.js +1 -1
  205. package/dist/cjs/third-party/settings/Releasit/index.js +1 -1
  206. package/dist/cjs/third-party/settings/RequestQuoteHidePrice/index.js +1 -1
  207. package/dist/cjs/third-party/settings/ReviewxpoProductReviewsApp/index.js +1 -1
  208. package/dist/cjs/third-party/settings/Rivyo/index.js +1 -1
  209. package/dist/cjs/third-party/settings/Ryviu/index.js +1 -1
  210. package/dist/cjs/third-party/settings/SealSubscriptions/index.js +2 -2
  211. package/dist/cjs/third-party/settings/SegunoEmailMarketing/index.js +1 -1
  212. package/dist/cjs/third-party/settings/Selleasy/index.js +1 -1
  213. package/dist/cjs/third-party/settings/SeoantTrustBadgesIcon/index.js +2 -2
  214. package/dist/cjs/third-party/settings/ShopifyForms/index.js +1 -1
  215. package/dist/cjs/third-party/settings/ShopifySubscriptions/index.js +2 -2
  216. package/dist/cjs/third-party/settings/SimpleBundlesKits/index.js +1 -1
  217. package/dist/cjs/third-party/settings/SkioSubscriptionsYcS20/index.js +1 -1
  218. package/dist/cjs/third-party/settings/SmartSearchBarAndFilters/index.js +4 -4
  219. package/dist/cjs/third-party/settings/SproutPlantTreesGrowSales/index.js +1 -1
  220. package/dist/cjs/third-party/settings/Stamped.js +1 -1
  221. package/dist/cjs/third-party/settings/StellarDeliveryDatePickup/index.js +1 -1
  222. package/dist/cjs/third-party/settings/SubifySubscriptionsApp/index.js +2 -2
  223. package/dist/cjs/third-party/settings/TagembedSocialPostReview/index.js +2 -2
  224. package/dist/cjs/third-party/settings/TagshopShoppableVideosUgc/index.js +2 -2
  225. package/dist/cjs/third-party/settings/TeeinblueProductPersonalizer/index.js +2 -2
  226. package/dist/cjs/third-party/settings/TrustBadgesBear/index.js +2 -2
  227. package/dist/cjs/third-party/settings/TrustMe/index.js +4 -4
  228. package/dist/cjs/third-party/settings/TrustedsiteTrustBadges/index.js +1 -1
  229. package/dist/cjs/third-party/settings/Trustoo/index.js +1 -1
  230. package/dist/cjs/third-party/settings/TrustreviewsProductReviews/index.js +1 -1
  231. package/dist/cjs/third-party/settings/TrustshopProductReviews/index.js +1 -1
  232. package/dist/cjs/third-party/settings/UltimateSalesBoost/index.js +1 -1
  233. package/dist/cjs/third-party/settings/UnlimitedBundlesDiscounts/index.js +2 -2
  234. package/dist/cjs/third-party/settings/UppromoteAffiliateMarketing/setting.js +2 -2
  235. package/dist/cjs/third-party/settings/Vitals/index.js +1 -1
  236. package/dist/cjs/third-party/settings/WcWishlistBackInStock/index.js +1 -1
  237. package/dist/cjs/third-party/settings/WhatmoreShoppableVideosreel/index.js +1 -1
  238. package/dist/cjs/third-party/settings/WideBundle/index.js +4 -4
  239. package/dist/cjs/third-party/settings/Wiser/index.js +1 -1
  240. package/dist/cjs/third-party/settings/WishlistKing/index.js +2 -2
  241. package/dist/cjs/third-party/settings/WishlistPlus/index.js +2 -2
  242. package/dist/cjs/third-party/settings/YotpoReviews/index.js +1 -1
  243. package/dist/cjs/video/common/attrs.js +1 -1
  244. package/dist/cjs/video/components/HTML5Embed.js +1 -1
  245. package/dist/cjs/video/components/HTML5Embed.liquid.js +11 -11
  246. package/dist/cjs/video/components/LiteVimeoEmbed.liquid.js +11 -11
  247. package/dist/cjs/video/components/LiteYouTubeEmbed.js +1 -1
  248. package/dist/cjs/video/components/LiteYouTubeEmbed.liquid.js +11 -11
  249. package/dist/cjs/video/components/Video.liquid.js +1 -1
  250. package/dist/esm/article/components/ArticleImage.js +1 -1
  251. package/dist/esm/article/components/ArticleImage.liquid.js +7 -7
  252. package/dist/esm/article/components/ArticleList.js +1 -1
  253. package/dist/esm/article/index.js +1 -1
  254. package/dist/esm/article/settings/configs/article-image/settings.js +1 -1
  255. package/dist/esm/article/settings/configs/article-image/ui-v2.js +1 -1
  256. package/dist/esm/builder.js +1 -1
  257. package/dist/esm/button/common/helpers.js +2 -2
  258. package/dist/esm/cart/components/CartList.js +1 -1
  259. package/dist/esm/cart/index.js +1 -1
  260. package/dist/esm/collection/index.js +1 -1
  261. package/dist/esm/common/components/Loading.js +1 -1
  262. package/dist/esm/common/const.js +1 -1
  263. package/dist/esm/common/helpers.js +1 -0
  264. package/dist/esm/common/hooks/useElementWidth.js +1 -0
  265. package/dist/esm/common/hooks/useLoadingProgress.js +1 -0
  266. package/dist/esm/grid/components/row/Row.liquid.js +10 -10
  267. package/dist/esm/grid/components/section/Section.js +1 -1
  268. package/dist/esm/grid/index.js +1 -1
  269. package/dist/esm/header/components/kind/basic/index.js +1 -1
  270. package/dist/esm/header/components/kind/modern/index.js +1 -1
  271. package/dist/esm/header/index.js +1 -1
  272. package/dist/esm/hero-banner/common/styles.js +1 -1
  273. package/dist/esm/hero-banner/components/HeroBannerItem.js +1 -1
  274. package/dist/esm/hero-banner/components/HeroBannerItem.liquid.js +10 -10
  275. package/dist/esm/hero-banner/index.js +1 -1
  276. package/dist/esm/image/common/adaptiveSources.js +1 -0
  277. package/dist/esm/image/common/attrs.js +1 -1
  278. package/dist/esm/image/common/classes.js +1 -1
  279. package/dist/esm/image/common/helpers.js +2 -2
  280. package/dist/esm/image/common/liquidSrcset.js +1 -0
  281. package/dist/esm/image/common/listContext.js +1 -0
  282. package/dist/esm/image/common/listImageContext.js +1 -0
  283. package/dist/esm/image/common/sizes.js +1 -0
  284. package/dist/esm/image/common/srcset.js +1 -0
  285. package/dist/esm/image/components/AdaptiveImage.js +1 -1
  286. package/dist/esm/image/components/AdaptiveImage.liquid.js +11 -13
  287. package/dist/esm/image/components/Image.js +1 -1
  288. package/dist/esm/image/components/Image.liquid.js +3 -3
  289. package/dist/esm/image/components/NextImage.js +1 -1
  290. package/dist/esm/image/components/NextImage.liquid.js +5 -6
  291. package/dist/esm/image/constants.js +1 -1
  292. package/dist/esm/image/index.js +1 -1
  293. package/dist/esm/image/settings/configs/settings.js +1 -1
  294. package/dist/esm/image/settings/configs/ui-v2.js +1 -1
  295. package/dist/esm/image-comparison/common/attrs.js +1 -1
  296. package/dist/esm/image-comparison/components/CompareImage.js +1 -1
  297. package/dist/esm/image-comparison/components/CompareImage.liquid.js +17 -17
  298. package/dist/esm/image-comparison/components/ImageComparison.liquid.js +3 -3
  299. package/dist/esm/image-comparison/index.js +1 -1
  300. package/dist/esm/image-comparison/settings/configs/settings.js +1 -1
  301. package/dist/esm/image-comparison/settings/configs/ui-v2.js +1 -1
  302. package/dist/esm/index.js +1 -1
  303. package/dist/esm/post-purchase/callout-banner/index.js +1 -1
  304. package/dist/esm/post-purchase/product/components/ProductPrice.js +1 -1
  305. package/dist/esm/post-purchase/product/components/ProductQuantity.js +1 -1
  306. package/dist/esm/post-purchase/product/components/product-offer/components/ProductOffer.js +1 -1
  307. package/dist/esm/post-purchase/product/components/product-offer/helpers/getOfferErrorText.js +1 -0
  308. package/dist/esm/post-purchase/product/components/product-offer/hooks/useProductOfferData.js +1 -1
  309. package/dist/esm/post-purchase/product/hooks/useHandleQuantity.js +1 -1
  310. package/dist/esm/post-purchase/product/index.js +1 -1
  311. package/dist/esm/post-purchase/product/settings/product-quantity/configs/settings.js +1 -1
  312. package/dist/esm/post-purchase/product/settings/product-quantity/configs/ui-v2.js +1 -1
  313. package/dist/esm/product/components/product-badge/ProductBadge.js +1 -1
  314. package/dist/esm/product/components/product-badge/common/styles.js +1 -1
  315. package/dist/esm/product/components/product-bundle/ProductBundleDiscount.js +1 -1
  316. package/dist/esm/product/components/product-bundle/ProductBundleDiscountWarning.js +2 -0
  317. package/dist/esm/product/components/product-bundle/common/classes.js +1 -1
  318. package/dist/esm/product/components/product-bundle/hooks/useProductBundleDataState.js +3 -3
  319. package/dist/esm/product/components/product-discount-tag/ProductDiscountTag.js +1 -1
  320. package/dist/esm/product/components/product-discount-tag/common/helpers.js +1 -0
  321. package/dist/esm/product/components/product-images/ProductImagesLightBox.js +1 -1
  322. package/dist/esm/product/components/product-images-v2/common/common.js +1 -1
  323. package/dist/esm/product/components/product-images-v2/components/child/ProductFeaturedImageOnly.js +1 -1
  324. package/dist/esm/product/components/product-images-v2/components/child/ProductGalleryGrid.js +1 -1
  325. package/dist/esm/product/components/product-images-v2/components/feature-gallery/FeatureImageWithGallery.liquid.js +35 -35
  326. package/dist/esm/product/components/product-images-v2/components/gallery-carousel/GalleryCarousel.js +1 -1
  327. package/dist/esm/product/components/product-images-v2/components/gallery-carousel/GalleryCarousel.liquid.js +13 -13
  328. package/dist/esm/product/components/product-images-v2/components/gallery-grid/GalleryGrid.liquid.js +29 -29
  329. package/dist/esm/product/components/product-images-v2/components/lightbox/ProductImagesLightBox.js +1 -1
  330. package/dist/esm/product/components/product-images-v3/ProductImagesV3.liquid.js +3 -3
  331. package/dist/esm/product/components/product-images-v3/common/common.js +1 -1
  332. package/dist/esm/product/components/product-images-v3/components/child/ProductFeaturedImageOnly.js +1 -1
  333. package/dist/esm/product/components/product-images-v3/components/child/ProductGalleryGrid.js +1 -1
  334. package/dist/esm/product/components/product-images-v3/components/feature-gallery/FeatureImageWithGallery.liquid.js +24 -24
  335. package/dist/esm/product/components/product-images-v3/components/feature-gallery/FeatureImageWithGalleryEmbla.liquid.js +24 -24
  336. package/dist/esm/product/components/product-images-v3/components/gallery-carousel/GalleryCarousel.js +1 -1
  337. package/dist/esm/product/components/product-images-v3/components/gallery-carousel/GalleryCarousel.liquid.js +5 -5
  338. package/dist/esm/product/components/product-images-v3/components/gallery-carousel/GalleryCarouselEmbla.liquid.js +5 -5
  339. package/dist/esm/product/components/product-images-v3/components/gallery-grid/GalleryGrid.liquid.js +30 -30
  340. package/dist/esm/product/components/product-images-v3/components/lightbox/ProductImagesLightBox.js +1 -1
  341. package/dist/esm/product/components/product-list/ProductList.js +1 -1
  342. package/dist/esm/product/components/product-list/ProductListCarouselLayout.js +1 -1
  343. package/dist/esm/product/components/product-list/ProductListCarouselLayout.liquid.js +11 -9
  344. package/dist/esm/product/components/product-list/ProductListGridLayout.js +1 -1
  345. package/dist/esm/product/components/product-list/ProductListGridLayout.liquid.js +18 -16
  346. package/dist/esm/product/components/product-list/common/helpers.js +1 -1
  347. package/dist/esm/product/components/product-list/common/imagePriority.js +17 -0
  348. package/dist/esm/product/components/product-list/common/imagePriorityHints.js +1 -0
  349. package/dist/esm/product/components/product-list-v3/ProductList.js +1 -1
  350. package/dist/esm/product/components/product-list-v3/ProductListCarouselLayout.js +1 -1
  351. package/dist/esm/product/components/product-list-v3/ProductListCarouselLayout.liquid.js +12 -10
  352. package/dist/esm/product/components/product-list-v3/ProductListGridLayout.js +1 -1
  353. package/dist/esm/product/components/product-list-v3/ProductListGridLayout.liquid.js +18 -16
  354. package/dist/esm/product/components/product-price/hooks/useGpPrice.js +1 -1
  355. package/dist/esm/product/components/product-wrap/Product.js +1 -1
  356. package/dist/esm/product/components/product-wrap/hook/useProductSetting.js +1 -1
  357. package/dist/esm/product/helpers/product-bundle.js +1 -1
  358. package/dist/esm/product/index.js +1 -1
  359. package/dist/esm/product/settings/product-image-v2/configs/setting-v2/index.js +1 -1
  360. package/dist/esm/product/settings/product-image-v2/configs/ui-v2.js +1 -1
  361. package/dist/esm/product/settings/product-image-v3/configs/setting-v2/index.js +1 -1
  362. package/dist/esm/product/settings/product-image-v3/configs/ui-v2.js +1 -1
  363. package/dist/esm/stock-counter/common/attrs.js +1 -1
  364. package/dist/esm/stock-counter/common/helpers.js +21 -21
  365. package/dist/esm/stock-counter/components/StockCounter.liquid.js +1 -1
  366. package/dist/esm/stock-counter/hooks/useStockCounter.js +1 -1
  367. package/dist/esm/third-party/common/helpers.js +5 -5
  368. package/dist/esm/third-party/components/KlarnaMessaging.liquid.js +30 -5
  369. package/dist/esm/third-party/settings/AftershipEmailMarketingsms/index.js +2 -2
  370. package/dist/esm/third-party/settings/AirProductReviewsAppUgc/index.js +2 -2
  371. package/dist/esm/third-party/settings/AliReviews/index.js +2 -2
  372. package/dist/esm/third-party/settings/AlsoBoughtCbb/index.js +2 -2
  373. package/dist/esm/third-party/settings/AovBundlesVolumeDiscounts/index.js +2 -2
  374. package/dist/esm/third-party/settings/AovFreeGiftBuyXGetYBogo/index.js +2 -2
  375. package/dist/esm/third-party/settings/AppointmentBookingCowlendar/index.js +2 -2
  376. package/dist/esm/third-party/settings/AppstleBundlesDiscounts/index.js +2 -2
  377. package/dist/esm/third-party/settings/AppstleLoyaltyRewardProgram/index.js +2 -2
  378. package/dist/esm/third-party/settings/AppstleSubscriptions/index.js +2 -2
  379. package/dist/esm/third-party/settings/BestBuyFulfillment/index.js +2 -2
  380. package/dist/esm/third-party/settings/BfSizeChartSizeGuide/index.js +2 -2
  381. package/dist/esm/third-party/settings/BirdChime/index.js +4 -4
  382. package/dist/esm/third-party/settings/BloyRewardsProgramLoyalty/index.js +2 -2
  383. package/dist/esm/third-party/settings/Bogos/index.js +4 -4
  384. package/dist/esm/third-party/settings/BoldProductOptions/index.js +4 -4
  385. package/dist/esm/third-party/settings/BoldSubscriptions/index.js +2 -2
  386. package/dist/esm/third-party/settings/BonLoyaltyRewardsReferrals/index.js +2 -2
  387. package/dist/esm/third-party/settings/BonySubscriptionsApp/index.js +2 -2
  388. package/dist/esm/third-party/settings/BoostAISearchDiscovery/index.js +2 -2
  389. package/dist/esm/third-party/settings/Bundler/index.js +4 -4
  390. package/dist/esm/third-party/settings/CleanSizeCharts/index.js +2 -2
  391. package/dist/esm/third-party/settings/CrossSellCartUpsell/index.js +2 -2
  392. package/dist/esm/third-party/settings/CustomProductOptionsVariant/index.js +2 -2
  393. package/dist/esm/third-party/settings/DealeasyVolumeDiscounts/index.js +2 -2
  394. package/dist/esm/third-party/settings/DiscountyBulkDiscountSales/index.js +2 -2
  395. package/dist/esm/third-party/settings/EasifyProductOptions/index.js +2 -2
  396. package/dist/esm/third-party/settings/EasyBundleBuilderSkailama/index.js +2 -2
  397. package/dist/esm/third-party/settings/EasySellCOD/index.js +4 -4
  398. package/dist/esm/third-party/settings/EcoboostifyShoppableReelUgc/index.js +2 -2
  399. package/dist/esm/third-party/settings/EcomsendBackInStockAlert/index.js +2 -2
  400. package/dist/esm/third-party/settings/EssentPreorderBackInStock/index.js +2 -2
  401. package/dist/esm/third-party/settings/EssentialAnnouncementBar/index.js +2 -2
  402. package/dist/esm/third-party/settings/EssentialCountdownTimerBar/index.js +2 -2
  403. package/dist/esm/third-party/settings/EstimatedDeliveryDatePlus/index.js +2 -2
  404. package/dist/esm/third-party/settings/FastBundleBundlesDiscounts/index.js +2 -2
  405. package/dist/esm/third-party/settings/FeraReviews/index.js +4 -4
  406. package/dist/esm/third-party/settings/FirePush/index.js +2 -2
  407. package/dist/esm/third-party/settings/FlyBundlesUpsellsFbt/index.js +2 -2
  408. package/dist/esm/third-party/settings/FordeerProductLabels/index.js +2 -2
  409. package/dist/esm/third-party/settings/FrequentlyBoughtTogether/index.js +2 -2
  410. package/dist/esm/third-party/settings/GloColorSwatchvariantImage/index.js +2 -2
  411. package/dist/esm/third-party/settings/GloboProductOptionsVariant/index.js +2 -2
  412. package/dist/esm/third-party/settings/GoogleReviewsByReputon/index.js +2 -2
  413. package/dist/esm/third-party/settings/Growave/index.js +4 -4
  414. package/dist/esm/third-party/settings/GrowthSuiteDiscountCodes/index.js +2 -2
  415. package/dist/esm/third-party/settings/HextomCountdownTimerBar/index.js +2 -2
  416. package/dist/esm/third-party/settings/HextomFreeShippingBar/index.js +2 -2
  417. package/dist/esm/third-party/settings/HulkFormBuilder/index.js +2 -2
  418. package/dist/esm/third-party/settings/HulkProductOptions/index.js +2 -2
  419. package/dist/esm/third-party/settings/InfiniteOptions/index.js +2 -2
  420. package/dist/esm/third-party/settings/Instafeed/index.js +2 -2
  421. package/dist/esm/third-party/settings/InstasellShoppableInstagram/index.js +2 -2
  422. package/dist/esm/third-party/settings/JudgemeReviews/index.js +2 -2
  423. package/dist/esm/third-party/settings/JunipProductReviewsUgc/index.js +2 -2
  424. package/dist/esm/third-party/settings/KachingBundles/index.js +2 -2
  425. package/dist/esm/third-party/settings/KachingSubscriptionsApp/index.js +2 -2
  426. package/dist/esm/third-party/settings/KingProductOptions/index.js +2 -2
  427. package/dist/esm/third-party/settings/KiteFreeGiftDiscount/index.js +2 -2
  428. package/dist/esm/third-party/settings/KlarnaMessaging/index.js +4 -4
  429. package/dist/esm/third-party/settings/Klaviyo/index.js +4 -4
  430. package/dist/esm/third-party/settings/KoalaBundleQuantityDiscount/index.js +2 -2
  431. package/dist/esm/third-party/settings/LaiProductReviews/index.js +2 -2
  432. package/dist/esm/third-party/settings/LoloyalLoyaltyReferrals/index.js +2 -2
  433. package/dist/esm/third-party/settings/LoopSubscriptions/index.js +2 -2
  434. package/dist/esm/third-party/settings/LooxReviews/index.js +4 -4
  435. package/dist/esm/third-party/settings/MaxbundleProductBundles/index.js +2 -2
  436. package/dist/esm/third-party/settings/MbcBundleVolumeDiscount/index.js +2 -2
  437. package/dist/esm/third-party/settings/MyappgurusProductReviews/index.js +2 -2
  438. package/dist/esm/third-party/settings/NotifyBackInStockPreOrder/index.js +2 -2
  439. package/dist/esm/third-party/settings/OkendoReviewsLoyalty/index.js +2 -2
  440. package/dist/esm/third-party/settings/Omnisend/index.js +4 -4
  441. package/dist/esm/third-party/settings/Opinew/index.js +4 -4
  442. package/dist/esm/third-party/settings/ParcelPanel/index.js +4 -4
  443. package/dist/esm/third-party/settings/PickyStory/index.js +4 -4
  444. package/dist/esm/third-party/settings/PowerfulContactFormBuilder/index.js +2 -2
  445. package/dist/esm/third-party/settings/PreorderNowPreOrderPq/index.js +2 -2
  446. package/dist/esm/third-party/settings/PreorderNowWodPresale/index.js +2 -2
  447. package/dist/esm/third-party/settings/ProductOptionsCustomizer/index.js +2 -2
  448. package/dist/esm/third-party/settings/ProductOptionsVariantOption/index.js +2 -2
  449. package/dist/esm/third-party/settings/PumperBundlesVolumeDiscount/index.js +2 -2
  450. package/dist/esm/third-party/settings/PushOwl/index.js +4 -4
  451. package/dist/esm/third-party/settings/QikifyUpsell/index.js +2 -2
  452. package/dist/esm/third-party/settings/RapiBundleQuantityBreaks/index.js +2 -2
  453. package/dist/esm/third-party/settings/RechargeSubscriptions/index.js +2 -2
  454. package/dist/esm/third-party/settings/RecurpaySubscriptionApp/index.js +2 -2
  455. package/dist/esm/third-party/settings/Releasit/index.js +4 -4
  456. package/dist/esm/third-party/settings/RequestQuoteHidePrice/index.js +3 -3
  457. package/dist/esm/third-party/settings/ReviewxpoProductReviewsApp/index.js +2 -2
  458. package/dist/esm/third-party/settings/Rivyo/index.js +4 -4
  459. package/dist/esm/third-party/settings/Ryviu/index.js +4 -4
  460. package/dist/esm/third-party/settings/SealSubscriptions/index.js +2 -2
  461. package/dist/esm/third-party/settings/SegunoEmailMarketing/index.js +2 -2
  462. package/dist/esm/third-party/settings/Selleasy/index.js +2 -2
  463. package/dist/esm/third-party/settings/SeoantTrustBadgesIcon/index.js +2 -2
  464. package/dist/esm/third-party/settings/ShopifyForms/index.js +2 -2
  465. package/dist/esm/third-party/settings/ShopifySubscriptions/index.js +2 -2
  466. package/dist/esm/third-party/settings/SimpleBundlesKits/index.js +2 -2
  467. package/dist/esm/third-party/settings/SkioSubscriptionsYcS20/index.js +2 -2
  468. package/dist/esm/third-party/settings/SmartSearchBarAndFilters/index.js +4 -4
  469. package/dist/esm/third-party/settings/SproutPlantTreesGrowSales/index.js +2 -2
  470. package/dist/esm/third-party/settings/Stamped.js +4 -4
  471. package/dist/esm/third-party/settings/StellarDeliveryDatePickup/index.js +2 -2
  472. package/dist/esm/third-party/settings/SubifySubscriptionsApp/index.js +2 -2
  473. package/dist/esm/third-party/settings/TagembedSocialPostReview/index.js +2 -2
  474. package/dist/esm/third-party/settings/TagshopShoppableVideosUgc/index.js +2 -2
  475. package/dist/esm/third-party/settings/TeeinblueProductPersonalizer/index.js +2 -2
  476. package/dist/esm/third-party/settings/TrustBadgesBear/index.js +2 -2
  477. package/dist/esm/third-party/settings/TrustMe/index.js +4 -4
  478. package/dist/esm/third-party/settings/TrustedsiteTrustBadges/index.js +2 -2
  479. package/dist/esm/third-party/settings/Trustoo/index.js +2 -2
  480. package/dist/esm/third-party/settings/TrustreviewsProductReviews/index.js +2 -2
  481. package/dist/esm/third-party/settings/TrustshopProductReviews/index.js +2 -2
  482. package/dist/esm/third-party/settings/UltimateSalesBoost/index.js +2 -2
  483. package/dist/esm/third-party/settings/UnlimitedBundlesDiscounts/index.js +2 -2
  484. package/dist/esm/third-party/settings/UppromoteAffiliateMarketing/setting.js +2 -2
  485. package/dist/esm/third-party/settings/Vitals/index.js +4 -4
  486. package/dist/esm/third-party/settings/WcWishlistBackInStock/index.js +3 -3
  487. package/dist/esm/third-party/settings/WhatmoreShoppableVideosreel/index.js +2 -2
  488. package/dist/esm/third-party/settings/WideBundle/index.js +4 -4
  489. package/dist/esm/third-party/settings/Wiser/index.js +4 -4
  490. package/dist/esm/third-party/settings/WishlistKing/index.js +2 -2
  491. package/dist/esm/third-party/settings/WishlistPlus/index.js +2 -2
  492. package/dist/esm/third-party/settings/YotpoReviews/index.js +4 -4
  493. package/dist/esm/video/common/attrs.js +1 -1
  494. package/dist/esm/video/components/HTML5Embed.js +1 -1
  495. package/dist/esm/video/components/HTML5Embed.liquid.js +8 -8
  496. package/dist/esm/video/components/LiteVimeoEmbed.liquid.js +11 -11
  497. package/dist/esm/video/components/LiteYouTubeEmbed.js +1 -1
  498. package/dist/esm/video/components/LiteYouTubeEmbed.liquid.js +9 -9
  499. package/dist/esm/video/components/Video.liquid.js +1 -1
  500. package/dist/types/index.d.ts +26 -8
  501. package/package.json +11 -8
@@ -1,36 +1,38 @@
1
- import t from"./ProductListGridItem.liquid.js";import{getStaticLocale as i}from"../../../helpers.js";import{RenderIf as o,template as s}from"@gem-sdk/core";import{getClass as r}from"./common/classes.js";import{getStyle as e}from"./common/styles.js";import{getAttr as d}from"./common/attrs.js";let a=a=>{let{setting:n,builderProps:p,styles:c,productListId:m,productSrc:l}=a,{gridLayoutStyle:u}=e(a),{gridLayoutClass:f}=r(a),{productListAttr:g}=d(a),$=()=>s`
1
+ import{getListImagePriorityLiquid as t,LIST_PRELOAD_ROWS as i}from"../product-list/common/imagePriority.js";import o from"./ProductListGridItem.liquid.js";import{getStaticLocale as s}from"../../../helpers.js";import{RenderIf as r,template as e}from"@gem-sdk/core";import{getClass as d}from"./common/classes.js";import{getStyle as a}from"./common/styles.js";import{getAttr as m}from"./common/attrs.js";let n=n=>{let{setting:p,builderProps:c,styles:l,productListId:u,productSrc:f}=n,{gridLayoutStyle:g}=a(n),{gridLayoutClass:$}=d(n),{productListAttr:h}=m(n),v=t({slidesToShow:p?.slidesToShow,rows:i.GRID}),_=()=>e`
2
2
  {%- assign count = 0 -%}
3
3
  {%- for product in products limit: limit -%}
4
4
  {%- if product.id != empty -%}
5
5
  {%- assign count = count | plus: 1 -%}
6
+ ${v.item}
6
7
  {%- assign variant = product.selected_or_first_available_variant -%}
7
- {%- assign product_form_id = 'product-form-' | append: "${p?.uid}" | append: product.id -%}
8
- ${t({...a})}
8
+ {%- assign product_form_id = 'product-form-' | append: "${c?.uid}" | append: product.id -%}
9
+ ${o({...n})}
9
10
  {%- endif -%}
10
11
  {% endfor %}
11
- {%- if count == 0 and ${m?.length} == 0 -%}
12
- {% if '${l}' == 'RelatedProduct' -%}
13
- <div>${i("ProductList","no_related_products")}</div>
12
+ ${v.reset}
13
+ {%- if count == 0 and ${u?.length} == 0 -%}
14
+ {% if '${f}' == 'RelatedProduct' -%}
15
+ <div>${s("ProductList","no_related_products")}</div>
14
16
  {% else %}
15
- <div>${i("ProductList","no_products_found")}</div>
17
+ <div>${s("ProductList","no_products_found")}</div>
16
18
  {%- endif -%}
17
19
  {%- endif -%}
18
- `;return s`
20
+ `;return e`
19
21
  <div
20
- ${g}
21
- style="${u}"
22
- class="${f}"
22
+ ${h}
23
+ style="${g}"
24
+ class="${$}"
23
25
  >
24
- ${o(n?.sameHeight,s`
26
+ ${r(p?.sameHeight,e`
25
27
  <gp-same-height
26
28
  class="gp-contents"
27
29
  style="visibility: hidden"
28
30
  >
29
- <script gp-data type="application/json">${JSON.stringify({targetUid:p?.builderData?.childrens?.[0],slidesToShow:n?.slidesToShow,rowGap:c?.horizontalGutter})}
31
+ <script gp-data type="application/json">${JSON.stringify({targetUid:c?.builderData?.childrens?.[0],slidesToShow:p?.slidesToShow,rowGap:l?.horizontalGutter})}
30
32
  </script>
31
- ${`${$()}`}
33
+ ${`${_()}`}
32
34
  </gp-same-height>
33
35
  `)}
34
- ${o(!n?.sameHeight,s`${$()}`)}
36
+ ${r(!p?.sameHeight,e`${_()}`)}
35
37
  </div>
36
- `};export{a as default};
38
+ `};export{n as default};
@@ -1 +1 @@
1
- import{useEditorMode as e,useQuantity as r,useCurrentVariant as t,useProductBundleDiscount as i,convertDecimalToNumber as c,useInteraction as a,useProduct as o,useShopStore as n,useMoneyFormat as p,useFormatMoney as u}from"@gem-sdk/core";import{calculateBundleFixedDiscount as d,getMoneyFormatDecimals as l}from"../../../helpers/product-bundle.js";import{useTransition as m}from"../../product-variants/common/common.js";import{useRef as s,useMemo as g}from"react";let h=h=>{let{setting:b,builderProps:P}=h,y=s(null),f=e(),{quantity:v,hasUpdatePrice:w}=r(),q=t(),{useProductCompareAtPrice:k}=i(),C=h["bundle-item"],j=c(q?.price)??0,x=c(q?.salePrice)??0,D=b?.priceType==="compare",{trigger:E}=a(),I=o(),N=I?.baseID?.replace("gid://shopify/Product/",""),V=n(e=>e.showPriceCurrency),{moneyFormat:$}=p(),G=g(()=>C?.quantity?C.quantity:w&&v||1,[v,w,C?.quantity]),L=g(()=>C?d(j,{...C,quantity:G},l($)):0,[C,j,G,$]),M=g(()=>C?.discountValue?k?(x||j)*G:j*G:x*G,[C?.discountValue,j,G,x,k]),S=g(()=>{let e=j*G;return D?M:L?Math.max(0,e-L):e},[j,G,L,M,D]),T=g(()=>!!D&&(!(x>j)||!(x>=0)),[D,x,j]),z=(e,r)=>{E({event:"price"===r?"gp:rollback:price-change":"gp:rollback:compare-price-change",selector:`[data-id="${P?.uid}"]`,element:y.current}),E({event:"price"===r?"gp:price-change":"gp:compare-price-change",data:e,selector:`[data-id="${P?.uid}"]`,element:y.current})};m(e=>{e!==j&&z(j,"price")},[j]),m(e=>{e!==x&&z(x,"compare")},[x]);let A=u(S??0,V||!1),B=D&&!S;return{elementRef:y,moneyFormatted:A,currentProductId:N,isNoComparePrice:B,isNoComparePriceILP:"edit"!==f&&B,emitNoDataSignal:()=>{if("edit"!==f)return;let e=new CustomEvent("editor:product-source-no-data-warning",{bubbles:!0,detail:{uid:P?.uid,value:!S&&D,tag:"ProductPrice"}});window.dispatchEvent(e)},shouldHiddenComparePrice:T}};export{h as useGpPrice};
1
+ import{useEditorMode as e,useQuantity as r,useCurrentVariant as t,useProductBundleDiscount as i,convertDecimalToNumber as c,useInteraction as a,useProduct as u,useShopStore as n,useMoneyFormat as o,useFormatMoney as p}from"@gem-sdk/core";import{calculateBundleFixedDiscount as d,getMoneyFormatDecimals as l}from"../../../helpers/product-bundle.js";import{useTransition as m}from"../../product-variants/common/common.js";import{useRef as s,useMemo as g}from"react";let b=b=>{let{setting:y,builderProps:h}=b,P=s(null),f=e(),{quantity:N,hasUpdatePrice:q}=r(),v=t(),{useProductCompareAtPrice:w}=i(),k=b["bundle-item"],C=c(v?.price)??0,I=c(v?.salePrice)??0,V=y?.priceType==="compare",{trigger:j}=a(),x=u(),D=x?.baseID?.replace("gid://shopify/Product/",""),E=n(e=>e.showPriceCurrency),{moneyFormat:T}=o(),$=g(()=>{if(!k)return!0;let e=Number(k.quantity);return Number.isInteger(e)&&e>0},[k?.quantity]),F=g(()=>{let e=Number(k?.discountValue);return Number.isFinite(e)&&e>0},[k?.discountValue]),G=g(()=>k?$?Number(k.quantity):1:q&&N||1,[N,q,k?.quantity,$]),L=g(()=>k&&$?d(C,{...k,quantity:G},l(T)):0,[k?.quantity,k?.discountType,k?.discountValue,$,C,G,T]),M=g(()=>F?w?(I||C)*G:C*G:I*G,[F,C,G,I,w]),S=g(()=>{let e=C*G;return V?M:L?Math.max(0,e-L):e},[C,G,L,M,V]),z=g(()=>!!V&&(!(I>C)||!(I>=0)),[V,I,C]),A=(e,r)=>{j({event:"price"===r?"gp:rollback:price-change":"gp:rollback:compare-price-change",selector:`[data-id="${h?.uid}"]`,element:P.current}),j({event:"price"===r?"gp:price-change":"gp:compare-price-change",data:e,selector:`[data-id="${h?.uid}"]`,element:P.current})};m(e=>{e!==C&&A(C,"price")},[C]),m(e=>{e!==I&&A(I,"compare")},[I]);let B=p(S??0,E||!1),H=V&&!S;return{elementRef:P,moneyFormatted:B,currentProductId:D,isNoComparePrice:H,isNoComparePriceILP:"edit"!==f&&H,emitNoDataSignal:()=>{if("edit"!==f)return;let e=new CustomEvent("editor:product-source-no-data-warning",{bubbles:!0,detail:{uid:h?.uid,value:!S&&V,tag:"ProductPrice"}});window.dispatchEvent(e)},shouldHiddenComparePrice:z}};export{b as useGpPrice};
@@ -1 +1 @@
1
- import{jsx as r,Fragment as o,jsxs as t}from"react/jsx-runtime";import{isEmptyChildren as e,ProductProvider as i}from"@gem-sdk/core";import m from"../../../grid/components/ChildrenDroppable.js";import{useProductSetting as d}from"./hook/useProductSetting.js";import{getData as s}from"./common/helpers.js";import"../../../common/const.js";import"react";import c from"../../../common/components/Loading.js";import{If as n}from"@gem-sdk/system";import l from"../../../grid/components/row/Row.js";import p from"next/dynamic";let u=p(()=>import("../ProductNotFound.js"),{loading:c}),a=p=>{let{builderProps:a,children:h,setting:f,style:g,builderAttrs:j}=p,{isAuto:P}=f??{},{isLoading:b,isProductPage:y,isProductNotFound:k,showProductNotFound:x,errorLoadProduct:A,product:v,isEditor:w,productProviderData:C,setShowProductNotFound:D}=d(p),{rowSetting:S,rowStyles:E}=s(p);return y&&P?r(o,{children:e(h)?r(m,{}):h}):r(o,{children:n(!k,r(o,{children:b?r(c,{}):r(o,{children:A?t("div",{children:["Error: ",A?.message]}):v?r(i,{...C,children:r(l,{builderProps:a,builderAttrs:j,style:g,styles:E,setting:S,customAttrs:w?{"data-product-id":v?.baseID?.replace("gid://shopify/Product/","")??""}:void 0,children:e(h)?r(m,{}):h})}):null})}),r(o,{children:n(x,r(u,{builderAttrs:j,productSrc:"PickProduct",onClose:()=>D(!1),children:h}))}))})};export{a as default};
1
+ import{jsx as r,Fragment as o,jsxs as t}from"react/jsx-runtime";import{isEmptyChildren as e,ProductProvider as i}from"@gem-sdk/core";import m from"../../../grid/components/ChildrenDroppable.js";import{useProductSetting as d}from"./hook/useProductSetting.js";import{getElementLabel as s}from"../../../common/helpers.js";import"../../../common/const.js";import"react";import c from"../../../common/components/Loading.js";import{getData as n}from"./common/helpers.js";import{If as l}from"@gem-sdk/system";import p from"../../../grid/components/row/Row.js";import u from"next/dynamic";let a=u(()=>import("../ProductNotFound.js"),{loading:c}),h=u=>{let{builderProps:h,children:f,setting:g,style:j,builderAttrs:b}=u,{isAuto:P}=g??{},{isLoadingProduct:y,isProductPage:k,isProductNotFound:D,showProductNotFound:x,errorLoadProduct:A,product:v,isEditor:w,productProviderData:C,setShowProductNotFound:S}=d(u),{rowSetting:E,rowStyles:F}=n(u);return k&&P?r(o,{children:e(f)?r(m,{}):f}):r(o,{children:l(!D,r(o,{children:y?r(c,{label:s({builderData:h?.builderData})}):r(o,{children:A?t("div",{children:["Error: ",A?.message]}):v?r(i,{...C,children:r(p,{builderProps:h,builderAttrs:b,style:j,styles:F,setting:E,customAttrs:w?{"data-product-id":v?.baseID?.replace("gid://shopify/Product/","")??""}:void 0,children:e(f)?r(m,{}):f})}):null})}),r(o,{children:l(x,r(a,{builderAttrs:b,productSrc:"PickProduct",onClose:()=>S(!1),children:f}))}))})};export{h as default};
@@ -1 +1 @@
1
- import{usePageType as t,usePageStore as r,useRenderMode as e}from"@gem-sdk/core";import d from"./useProductQuery.js";import{useState as a,useMemo as i}from"react";let o=o=>{let{setting:c}=o,{productSetting:u,quantity:s,readOnly:P,isSyncProduct:m}=c??{},l=t(),n=r(t=>t.dynamicProduct),{isEditMode:p}=e(),S=u?.productId??"latest",y=u?.productStatus=="dynamic"?{...u,...n}:u,f=y?.initialVariantId,g=y?.initialVariantBaseId,{productData:{data:h,isLoading:I,error:k}}=d({id:S}),[D,V]=a(!0),$=(k||!h&&!I)&&p,j=i(()=>({product:h,initialVariantId:f,initialVariantBaseId:g,quantity:s,readOnly:P,isSyncProduct:m,key:`uid-${h?.id}-${f??""}`,hasPreSelected:u?.hasPreSelected}),[g,f,m,h,u?.hasPreSelected,s,P]);return{forceProductSetting:y,isProductPage:"PRODUCT"===l,isProductNotFound:$,showProductNotFound:D,isLoading:I,product:h,errorLoadProduct:k,isEditor:p,productProviderData:j,setShowProductNotFound:V}};export{o as useProductSetting};
1
+ import{usePageType as t,usePageStore as r,useRenderMode as e}from"@gem-sdk/core";import{isQueryLoading as o}from"../../../../common/helpers.js";import"../../../../common/const.js";import"react/jsx-runtime";import{useState as a,useMemo as d}from"react";import i from"./useProductQuery.js";let c=c=>{let{setting:m}=c,{productSetting:s,quantity:u,readOnly:n,isSyncProduct:p}=m??{},P=t(),l=r(t=>t.dynamicProduct),{isEditMode:h}=e(),y=s?.productId??"latest",S=s?.productStatus=="dynamic"?{...s,...l}:s,f=S?.initialVariantId,j=S?.initialVariantBaseId,{productData:{data:g,isLoading:I,error:k}}=i({id:y}),[x,D]=a(!0),Q=o({hasQuery:!!y,data:g,error:k,isLoading:I}),V=(k||!g&&!Q)&&h,$=d(()=>({product:g,initialVariantId:f,initialVariantBaseId:j,quantity:u,readOnly:n,isSyncProduct:p,key:`uid-${g?.id}-${f??""}`,hasPreSelected:s?.hasPreSelected}),[j,f,p,g,s?.hasPreSelected,u,n]);return{forceProductSetting:S,isProductPage:"PRODUCT"===P,isProductNotFound:V,showProductNotFound:x,isLoadingProduct:Q,product:g,errorLoadProduct:k,isEditor:h,productProviderData:$,setShowProductNotFound:D}};export{c as useProductSetting};
@@ -1 +1 @@
1
- import{convertDecimalToNumber as t,formatMoney as o}from"@gem-sdk/core";import{DiscountType as e}from"../components/constants/product-bundle.js";let n=t=>({discountPercentAmount:0,discountAmount:o("0",t)}),r=r=>{let{currentVariant:a,bundleItem:s,options:l}=r;if(!l?.useProductCompareAtPrice&&s?.discountType===e.NoDiscount||!s||!a?.price)return n(l?.moneyFormat||"${{amount}}");let p=t(a?.price)??0,y=t(a?.salePrice)??p,P=Number(s?.quantity),A=c(p,s,i(l?.moneyFormat)),F=d(A,P*p),M=p*P-A,f=y*P;return y<=p&&A<=0?n(l?.moneyFormat||"${{amount}}"):{discountPercentAmount:l?.useProductCompareAtPrice?u(M,f):F,discountAmount:l?.useProductCompareAtPrice?m(M,f,l?.moneyFormat):o(A.toString(),l?.moneyFormat)}},u=(t,o)=>Math.round((o-t)/o*100),m=(t,e,n)=>o((e-t).toString(),n),c=(t,o,n=2)=>{let r=Number(o?.discountValue);return o?.discountType===e.Percentage?a(t*(r/100),n)*o.quantity:o?.discountType===e.FixedAmount?r:0},i=t=>t?.includes("amount_no_decimals")?0:2,a=(t,o=2)=>{let e=10**o;return Math.floor(Math.round(1e6*(t*e))/1e6)/e},d=(t,o)=>Math.round(t/o*100);export{r as applyBundleDiscountAmount,c as calculateBundleFixedDiscount,a as floorToMinorUnit,i as getMoneyFormatDecimals};
1
+ import{convertDecimalToNumber as t,formatMoney as e}from"@gem-sdk/core";import{DiscountType as o}from"../components/constants/product-bundle.js";let n=t=>({discountPercentAmount:0,discountAmount:e("0",t)}),r=t=>{let e=Number(t);return Number.isInteger(e)&&e>0?e:void 0},u=u=>{let{currentVariant:d,bundleItem:l,options:p}=u;if(!p?.useProductCompareAtPrice&&l?.discountType===o.NoDiscount||!l||!d?.price)return n(p?.moneyFormat||"${{amount}}");let y=t(d?.price)??0,F=t(d?.salePrice)??y,P=r(l.quantity);if(void 0===P)return n(p?.moneyFormat||"${{amount}}");let A=c(y,l,a(p?.moneyFormat)),f=s(A,P*y),g=y*P-A,M=F*P;return F<=y&&A<=0?n(p?.moneyFormat||"${{amount}}"):{discountPercentAmount:p?.useProductCompareAtPrice?i(g,M):f,discountAmount:p?.useProductCompareAtPrice?m(g,M,p?.moneyFormat):e(A.toString(),p?.moneyFormat)}},i=(t,e)=>Math.round((e-t)/e*100),m=(t,o,n)=>e((o-t).toString(),n),c=(t,e,n=2)=>{let u=Number(e?.discountValue);if(!Number.isFinite(u)||u<0)return 0;if(e?.discountType===o.Percentage){let o=r(e?.quantity);return void 0===o?0:d(t*(u/100),n)*o}return e?.discountType===o.FixedAmount?u:0},a=t=>t?.includes("amount_no_decimals")?0:2,d=(t,e=2)=>{let o=10**e;return Math.floor(Math.round(1e6*(t*o))/1e6)/o},s=(t,e)=>Math.round(t/e*100);export{u as applyBundleDiscountAmount,c as calculateBundleFixedDiscount,d as floorToMinorUnit,a as getMoneyFormatDecimals};
@@ -1 +1 @@
1
- import"react/jsx-runtime";import"react";import"@gem-sdk/core";import"./components/product-bundle/common/styles.js";import"./components/product-bundle/common/classes.js";import"@gem-sdk/system";import"next/link";import"./components/constants/product-bundle.js";import"../common/const.js";import"./components/product-variants/components/variants/index.js";import"../carousel-v3/components/swiper/Swiper.js";import"next/image";import"../video/components/Video.js";import"../modal/components/confirm.js";import"react-dom";import"@gem-sdk/keen-slider/react";export{default as ProductQuickView}from"./components/product-quick-view/QuickView.js";import"../notification/components/Notifications.js";import"../notification/components/Notice.js";import"./components/product-button/types.js";export{default as ProductListV3}from"./components/product-list-v3/ProductList.js";import"./components/product-badge/types.js";import"./components/product-badge/constants.js";import"./components/product-badge/utils/shape.js";export{default as ProductList}from"./components/product-list/ProductList.js";export{default as Product}from"./components/product-wrap/Product.js";import t from"./components/product-bundle/setting/ProductBundleDiscountItem.js";import o from"./components/product-bundle/setting/ProductBundleDiscount.js";import r from"./settings/product-image-v3/ProductImages.js";import s from"./settings/product-image-v2/ProductImages.js";import i from"./settings/ProductDescription.js";import e from"./settings/ProductProperties.js";import m from"./components/file-upload/settings/index.js";import c from"./settings/ProductViewMore.js";import n from"./settings/ProductVariants.js";import p from"./settings/ProductQuantity.js";import u from"./settings/DynamicCheckout.js";import d from"./settings/ProductListV3.js";import a from"./settings/ProductImages.js";import P from"./settings/ProductButton.js";import g from"./settings/ProductTitle.js";import j from"./settings/ProductPrice.js";import f from"./settings/ProductBadge.js";import l from"./settings/ProductList.js";import V from"./settings/ProductTag.js";import k from"./settings/Vendor.js";import x from"./settings/Product.js";import b from"./settings/Sku.js";let v={Product:x,ProductQuantity:p,ProductTitle:g,ProductButton:P,ProductPrice:j,ProductVariants:n,ProductImages:a,ProductImagesV2:s,ProductImagesV3:r,ProductDescription:i,ProductProperties:e,ProductTag:V,ProductListV3:d,ProductList:l,DynamicCheckout:u,ProductVendor:k,ProductSku:b,ProductBundleDiscount:o,ProductBundleDiscountItem:t,ProductViewMore:c,ProductBadge:f,FileUpload:m};export{v as productSetting};
1
+ import"react/jsx-runtime";import"react";import"@gem-sdk/core";import"./components/product-bundle/common/classes.js";import"./components/product-bundle/common/styles.js";import"@gem-sdk/system";import"next/link";import"./components/constants/product-bundle.js";import"../common/const.js";import"./components/product-variants/components/variants/index.js";import"../carousel-v3/components/swiper/Swiper.js";import"../image/common/listImageContext.js";import"../image/common/listContext.js";import"../video/components/Video.js";import"../modal/components/confirm.js";import"react-dom";import"@gem-sdk/keen-slider/react";export{default as ProductQuickView}from"./components/product-quick-view/QuickView.js";import"../notification/components/Notifications.js";import"../notification/components/Notice.js";import"./components/product-button/types.js";export{default as ProductListV3}from"./components/product-list-v3/ProductList.js";import"./components/product-badge/types.js";import"./components/product-badge/constants.js";import"./components/product-badge/utils/shape.js";export{default as ProductList}from"./components/product-list/ProductList.js";export{default as Product}from"./components/product-wrap/Product.js";import t from"./components/product-bundle/setting/ProductBundleDiscountItem.js";import o from"./components/product-bundle/setting/ProductBundleDiscount.js";import r from"./settings/product-image-v3/ProductImages.js";import s from"./settings/product-image-v2/ProductImages.js";import i from"./settings/ProductDescription.js";import e from"./settings/ProductProperties.js";import m from"./components/file-upload/settings/index.js";import c from"./settings/ProductViewMore.js";import n from"./settings/ProductVariants.js";import p from"./settings/ProductQuantity.js";import u from"./settings/DynamicCheckout.js";import d from"./settings/ProductListV3.js";import a from"./settings/ProductImages.js";import P from"./settings/ProductButton.js";import g from"./settings/ProductTitle.js";import j from"./settings/ProductPrice.js";import f from"./settings/ProductBadge.js";import l from"./settings/ProductList.js";import V from"./settings/ProductTag.js";import k from"./settings/Vendor.js";import x from"./settings/Product.js";import b from"./settings/Sku.js";let I={Product:x,ProductQuantity:p,ProductTitle:g,ProductButton:P,ProductPrice:j,ProductVariants:n,ProductImages:a,ProductImagesV2:s,ProductImagesV3:r,ProductDescription:i,ProductProperties:e,ProductTag:V,ProductListV3:d,ProductList:l,DynamicCheckout:u,ProductVendor:k,ProductSku:b,ProductBundleDiscount:o,ProductBundleDiscountItem:t,ProductViewMore:c,ProductBadge:f,FileUpload:m};export{I as productSetting};
@@ -1 +1 @@
1
- import{productSelectDisplaySetting as e,productFeatureImageSetting as t,productFeatureImageStyle as l}from"./ProductFeatureImage.js";import{productGalleryImageSetting as a,productGalleryImageStyle as i}from"./ProductGalleryImage.js";let o=[{id:"setting",controls:[{id:"displayByVariant",label:"Option Label",type:"toggle",default:!1},{id:"variantSelect",type:"variant:listing"},{id:"select-display",type:"group",label:"Select images to display",controls:e},{id:"featured-image",type:"group",label:"Featured Image",controls:t},{id:"gallery-images",type:"group",label:"Gallery Images",controls:a},{id:"qualityType",type:"select",label:"Quality",devices:{desktop:{default:"high"}},options:[{title:"Finest",value:"finest"},{title:"High",value:"high"},{title:"Medium",value:"medium"},{title:"Custom",value:"custom",tooltip:"You can choose it for advanced page loading optimization."}]},{id:"preload",type:"toggle",label:"Preload",default:!1},{id:"qualityPercent",type:"input:slider",label:"",units:["%"],min:100,max:400,step:50,useOnlyUnitInit:!0,devices:{desktop:{default:100}}}]},{id:"style",controls:[{id:"position",label:"Layout",type:"layout-selector",iconViewBox:"0 0 50 50",enableItemBackground:!0,itemPerRow:3,itemSpacing:"large",enableItemOpacity:!0,options:[{label:"Featured top",value:"bottom-center",type:"p-image-layout",iconName:"gp-product-image-layout-bottom"},{label:"Featured right",value:"left",type:"p-image-layout",iconName:"gp-product-image-layout-left"},{label:"Featured left",value:"right",type:"p-image-layout",iconName:"gp-product-image-layout-right"},{label:"Image list inside bottom",value:"inside-bottom",type:"p-image-layout",iconName:"gp-product-image-layout-bottom-inside"},{label:"Image list inside left",value:"inside-left",type:"p-image-layout",iconName:"gp-product-image-layout-left-inside"},{label:"Image list inside right",value:"inside-right",type:"p-image-layout",iconName:"gp-product-image-layout-right-inside"},{label:"Featured only",value:"only-feature",type:"p-image-layout",iconName:"gp-product-image-layout-featured-only"},{label:"Image list 1 col",value:"one-col",type:"p-image-layout",iconName:"gp-product-image-layout-one-col",noPadding:"y"},{label:"Image list 2 col",value:"two-col",type:"p-image-layout",iconName:"gp-product-image-layout-two-col"}],devices:{desktop:{default:"bottom-center"},mobile:{default:"bottom-center"}}},{id:"spacing",label:"Spacing Item",type:"input:slider",units:["px"],ignoreMax:!0,max:40,devices:{desktop:{default:"8px"}}},{id:"ratioLayout",label:"Ratio",type:"column-with-slider",fallbackArrayValue:[2,10],devices:{desktop:{default:[2,10]}}},{id:"ratioLayoutRight",label:"Ratio",type:"column-with-slider",fallbackArrayValue:[10,2],devices:{desktop:{default:[10,2]}}},{id:"dimensions",type:"group",label:"Featured Image",controls:l},{id:"galleryStyles",type:"group",label:"Gallery",controls:i},{id:"align",label:"Alignment",type:"segment",options:[{label:"Start",value:"flex-start",type:"align-flex",tooltip:"Align left"},{label:"Center",value:"center",type:"align-flex",tooltip:"Align center"},{label:"End",value:"flex-end",type:"align-flex",tooltip:"Align right"}],devices:{desktop:{default:"flex-start"}}}]}];export{o as ProductImageSettingsV2};
1
+ import{productSelectDisplaySetting as e,productFeatureImageSetting as t,productFeatureImageStyle as l}from"./ProductFeatureImage.js";import{productGalleryImageSetting as a,productGalleryImageStyle as i}from"./ProductGalleryImage.js";let o=[{id:"setting",controls:[{id:"displayByVariant",label:"Option Label",type:"toggle",default:!1},{id:"variantSelect",type:"variant:listing"},{id:"select-display",type:"group",label:"Select images to display",controls:e},{id:"featured-image",type:"group",label:"Featured Image",controls:t},{id:"gallery-images",type:"group",label:"Gallery Images",controls:a},{id:"qualityType",type:"select",label:"Quality",devices:{desktop:{default:"high"}},options:[{title:"Finest",value:"finest"},{title:"High",value:"high"},{title:"Medium",value:"medium"},{title:"Custom",value:"custom",tooltip:"You can choose it for advanced page loading optimization."}]},{id:"preload",type:"toggle",label:"Preload",default:!1},{id:"qualityPercent",type:"input:slider",label:"",units:["%"],min:20,max:400,step:20,useOnlyUnitInit:!0,devices:{desktop:{default:100}}}]},{id:"style",controls:[{id:"position",label:"Layout",type:"layout-selector",iconViewBox:"0 0 50 50",enableItemBackground:!0,itemPerRow:3,itemSpacing:"large",enableItemOpacity:!0,options:[{label:"Featured top",value:"bottom-center",type:"p-image-layout",iconName:"gp-product-image-layout-bottom"},{label:"Featured right",value:"left",type:"p-image-layout",iconName:"gp-product-image-layout-left"},{label:"Featured left",value:"right",type:"p-image-layout",iconName:"gp-product-image-layout-right"},{label:"Image list inside bottom",value:"inside-bottom",type:"p-image-layout",iconName:"gp-product-image-layout-bottom-inside"},{label:"Image list inside left",value:"inside-left",type:"p-image-layout",iconName:"gp-product-image-layout-left-inside"},{label:"Image list inside right",value:"inside-right",type:"p-image-layout",iconName:"gp-product-image-layout-right-inside"},{label:"Featured only",value:"only-feature",type:"p-image-layout",iconName:"gp-product-image-layout-featured-only"},{label:"Image list 1 col",value:"one-col",type:"p-image-layout",iconName:"gp-product-image-layout-one-col",noPadding:"y"},{label:"Image list 2 col",value:"two-col",type:"p-image-layout",iconName:"gp-product-image-layout-two-col"}],devices:{desktop:{default:"bottom-center"},mobile:{default:"bottom-center"}}},{id:"spacing",label:"Spacing Item",type:"input:slider",units:["px"],ignoreMax:!0,max:40,devices:{desktop:{default:"8px"}}},{id:"ratioLayout",label:"Ratio",type:"column-with-slider",fallbackArrayValue:[2,10],devices:{desktop:{default:[2,10]}}},{id:"ratioLayoutRight",label:"Ratio",type:"column-with-slider",fallbackArrayValue:[10,2],devices:{desktop:{default:[10,2]}}},{id:"dimensions",type:"group",label:"Featured Image",controls:l},{id:"galleryStyles",type:"group",label:"Gallery",controls:i},{id:"align",label:"Alignment",type:"segment",options:[{label:"Start",value:"flex-start",type:"align-flex",tooltip:"Align left"},{label:"Center",value:"center",type:"align-flex",tooltip:"Align center"},{label:"End",value:"flex-end",type:"align-flex",tooltip:"Align right"}],devices:{desktop:{default:"flex-start"}}}]}];export{o as ProductImageSettingsV2};
@@ -1 +1 @@
1
- import{ImageListNavigation as i}from"./ui/ImageListNavigation.js";import{FeatureNavigation as o}from"./ui/FeatureNavigation.js";import{FeatureDots as t}from"./ui/FeatureDots.js";let e='((type == "slider" || position == "left" || position == "right") && position !== "one-col" && position != "two-col")',n='(["bottom-center", "left", "right", "only-feature", "inside-bottom", "inside-left", "inside-right"].includes(position))',l=[{label:"Layout",controls:[{layout:"vertical",setting:{id:"position"},options:{isComboLayout:!0},controls:[{label:"Ratio",type:"control",setting:{id:"ratioLayout"},layout:"vertical",conditionDisplay:'position == "left"'},{label:"Ratio",type:"control",setting:{id:"ratioLayoutRight"},layout:"vertical",conditionDisplay:'position == "right"'}]}]},{label:"Featured image",conditionDisplay:n,controls:[{setting:{id:"ftShape"},hiddenOnMobile:!0,layout:"vertical",controlChangeTrigger:{settings:[{condition:"ftShape.shape === 'original'",source:["ftShape"],action:{controlId:"ftLayout",newValue:"contain",groupType:"style",controlType:"style"}}],options:{noRecordHistory:!0}}},{conditionDisplay:"ftShape.shape !== 'original'",label:"Image scale",setting:{id:"ftLayout"}},{...t,hiddenOnMobile:!0,conditionDisplay:`${n} && position === "only-feature"`},{...o,hiddenOnMobile:!0,conditionDisplay:`${n}`}],moreSettings:{type:"collapse",controls:[{label:"Corner",hiddenOnMobile:!0,setting:{id:"ftCorner"}},{type:"combo",label:"Hover action",conditionDisplay:n,hiddenOnMobile:!0,iconName:"gp-trigger-action-hover",getValueFromSettingID:"hoverEffect",isShowSettingTitle:!0,defaultValueWhenClear:"none",compoDefaultValue:"zoom",controls:[{label:"When hover",setting:{id:"hoverEffect"}},{label:"Zoom type",conditionDisplay:'hoverEffect == "zoom"',setting:{id:"zoomType"}},{label:"Zoom value",conditionDisplay:'hoverEffect == "zoom"',setting:{id:"zoom"}},{label:"Other image",conditionDisplay:'hoverEffect == "other"',setting:{id:"otherImage"}}]},{type:"combo",label:"Click action",hiddenOnMobile:!0,iconName:"gp-trigger-action-click",conditionDisplay:n,getValueFromSettingID:"ftClickOpenLightBox",isShowSettingTitle:!0,defaultValueWhenClear:"none",compoDefaultValue:"popup",controls:[{label:"After click",setting:{id:"ftClickOpenLightBox"}},{label:"Open new tab",setting:{id:"ftClickOpenNewTab"},conditionDisplay:'ftClickOpenLightBox === "product-link"'}]},{type:"control",label:"Slide speed",setting:{id:"ftAnimationSpeed"}},{type:"control",label:"Animation",setting:{id:"ftAnimationMode"}},{label:"Drag / swipe",setting:{id:"ftDragToScroll"}},{label:"Infinity loop",setting:{id:"ftLoop"}}]}},{label:"Image list",conditionDisplay:'(position !== "only-feature")',controls:[{label:"Display",hiddenOnMobile:!0,conditionDisplay:'position === "bottom-center" || position === "bottom-left" || position === "inside-bottom"',setting:{id:"type"}},{setting:{id:"shape"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'["left", "right"].includes(position)'},{setting:{id:"shapeForBottom"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'["bottom-left", "bottom-center"].includes(position)'},{setting:{id:"shapeForInsideBottom"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'["inside-bottom"].includes(position)'},{setting:{id:"shapeForInside"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'["inside-left", "inside-right"].includes(position)'},{setting:{id:"shapeForFtOnly"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'position == "only-feature"'},{setting:{id:"shapeFor2Col"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'position == "two-col"'},{setting:{id:"shapeFor1Col"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'position == "one-col"'},{label:"Image gap",setting:{id:"itemSpacing"}},{conditionDisplay:"(position == 'one-col' && shapeFor1Col.shape !== 'original') || (position == 'two-col' && shapeFor2Col.shape !== 'original') || (position == 'only-feature' && shapeForFtOnly.shape !== 'original') || ([\"inside-left\", \"inside-right\"].includes(position) && shapeForInside.shape !== 'original') || ([\"inside-bottom\"].includes(position) && shapeForInsideBottom.shape !== 'original') || ([\"bottom-left\", \"bottom-center\"].includes(position) && shapeForBottom.shape !== 'original') || ([\"left\", \"right\"].includes(position) && shape.shape !== 'original')",label:"Image scale",setting:{id:"layout"}},{...i,hiddenOnMobile:!0,conditionDisplay:e}],moreSettings:{type:"collapse",controls:[{label:"Corner",hiddenOnMobile:!0,setting:{id:"corner"}},{label:"Active border",hiddenOnMobile:!0,conditionDisplay:'!["one-col", "two-col"].includes(position)',setting:{id:"borderActive"}},{type:"combo",label:"Hover action",conditionDisplay:'(position == "one-col" || position == "two-col")',hiddenOnMobile:!0,iconName:"gp-trigger-action-hover",getValueFromSettingID:"galleryHoverEffect",defaultValueWhenClear:"none",compoDefaultValue:"zoom",controls:[{label:"When hover",setting:{id:"galleryHoverEffect"},conditionDisplay:'galleryHoverEffect == "none"'},{label:"Zoom type",conditionDisplay:'galleryHoverEffect == "zoom"',setting:{id:"galleryZoomType"}},{label:"Zoom value",conditionDisplay:'galleryHoverEffect == "zoom"',setting:{id:"galleryZoom"}},{label:"Other image",conditionDisplay:'galleryHoverEffect == "other"',setting:{id:"otherImage"}}]},{label:"Click action",setting:{id:"clickOpenLightBox"}},{conditionDisplay:e,label:"Drag / swipe",setting:{id:"dragToScroll"}},{conditionDisplay:e,label:"Infinity loop",setting:{id:"loop"}}]}},{label:"Item spacing",hiddenOnMobile:!0,conditionDisplay:'["bottom-center", "left", "right", "inside-bottom", "inside-left", "inside-right"].includes(position)',controls:[{label:"Gap",setting:{id:"spacing"}}]},{label:"Display condition",conditionDisplay:'["bottom-center", "left", "right", "only-feature", "inside-bottom", "inside-left", "inside-right"].includes(position)',controls:[{label:"Default item",setting:{id:"preDisplay"}}]},{label:"Optimize LCP",conditionDisplay:'pageType !== "STATIC"',controls:[{label:"Preload",conditionDisplay:'["bottom-center", "left", "right", "only-feature", "inside-bottom", "inside-left", "inside-right"].includes(position)',setting:{id:"preload"}},{label:"Quality",setting:{id:"qualityType"},conditionDisplay:"preload === false"},{layout:"horizontal",label:" ",conditionDisplay:'qualityType == "custom" && preload === false',setting:{id:"qualityPercent"}}]},{hiddenOnMobile:!0,controls:[{label:"Align",setting:{id:"align"},options:{labelVariant:"primary"}}]}];export{l as SettingUIV2};
1
+ import{ImageListNavigation as i}from"./ui/ImageListNavigation.js";import{FeatureNavigation as o}from"./ui/FeatureNavigation.js";import{FeatureDots as t}from"./ui/FeatureDots.js";let e='((type == "slider" || position == "left" || position == "right") && position !== "one-col" && position != "two-col")',n='(["bottom-center", "left", "right", "only-feature", "inside-bottom", "inside-left", "inside-right"].includes(position))',l=[{label:"Layout",controls:[{layout:"vertical",setting:{id:"position"},options:{isComboLayout:!0},controls:[{label:"Ratio",type:"control",setting:{id:"ratioLayout"},layout:"vertical",conditionDisplay:'position == "left"'},{label:"Ratio",type:"control",setting:{id:"ratioLayoutRight"},layout:"vertical",conditionDisplay:'position == "right"'}]}]},{label:"Featured image",conditionDisplay:n,controls:[{setting:{id:"ftShape"},hiddenOnMobile:!0,layout:"vertical",controlChangeTrigger:{settings:[{condition:"ftShape.shape === 'original'",source:["ftShape"],action:{controlId:"ftLayout",newValue:"contain",groupType:"style",controlType:"style"}}],options:{noRecordHistory:!0}}},{conditionDisplay:"ftShape.shape !== 'original'",label:"Image scale",setting:{id:"ftLayout"}},{...t,hiddenOnMobile:!0,conditionDisplay:`${n} && position === "only-feature"`},{...o,hiddenOnMobile:!0,conditionDisplay:`${n}`}],moreSettings:{type:"collapse",controls:[{label:"Corner",hiddenOnMobile:!0,setting:{id:"ftCorner"}},{type:"combo",label:"Hover action",conditionDisplay:n,hiddenOnMobile:!0,iconName:"gp-trigger-action-hover",getValueFromSettingID:"hoverEffect",isShowSettingTitle:!0,defaultValueWhenClear:"none",compoDefaultValue:"zoom",controls:[{label:"When hover",setting:{id:"hoverEffect"}},{label:"Zoom type",conditionDisplay:'hoverEffect == "zoom"',setting:{id:"zoomType"}},{label:"Zoom value",conditionDisplay:'hoverEffect == "zoom"',setting:{id:"zoom"}},{label:"Other image",conditionDisplay:'hoverEffect == "other"',setting:{id:"otherImage"}}]},{type:"combo",label:"Click action",hiddenOnMobile:!0,iconName:"gp-trigger-action-click",conditionDisplay:n,getValueFromSettingID:"ftClickOpenLightBox",isShowSettingTitle:!0,defaultValueWhenClear:"none",compoDefaultValue:"popup",controls:[{label:"After click",setting:{id:"ftClickOpenLightBox"}},{label:"Open new tab",setting:{id:"ftClickOpenNewTab"},conditionDisplay:'ftClickOpenLightBox === "product-link"'}]},{type:"control",label:"Slide speed",setting:{id:"ftAnimationSpeed"}},{type:"control",label:"Animation",setting:{id:"ftAnimationMode"}},{label:"Drag / swipe",setting:{id:"ftDragToScroll"}},{label:"Infinity loop",setting:{id:"ftLoop"}}]}},{label:"Image list",conditionDisplay:'(position !== "only-feature")',controls:[{label:"Display",hiddenOnMobile:!0,conditionDisplay:'position === "bottom-center" || position === "bottom-left" || position === "inside-bottom"',setting:{id:"type"}},{setting:{id:"shape"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'["left", "right"].includes(position)'},{setting:{id:"shapeForBottom"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'["bottom-left", "bottom-center"].includes(position)'},{setting:{id:"shapeForInsideBottom"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'["inside-bottom"].includes(position)'},{setting:{id:"shapeForInside"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'["inside-left", "inside-right"].includes(position)'},{setting:{id:"shapeForFtOnly"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'position == "only-feature"'},{setting:{id:"shapeFor2Col"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'position == "two-col"'},{setting:{id:"shapeFor1Col"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'position == "one-col"'},{label:"Image gap",setting:{id:"itemSpacing"}},{conditionDisplay:"(position == 'one-col' && shapeFor1Col.shape !== 'original') || (position == 'two-col' && shapeFor2Col.shape !== 'original') || (position == 'only-feature' && shapeForFtOnly.shape !== 'original') || ([\"inside-left\", \"inside-right\"].includes(position) && shapeForInside.shape !== 'original') || ([\"inside-bottom\"].includes(position) && shapeForInsideBottom.shape !== 'original') || ([\"bottom-left\", \"bottom-center\"].includes(position) && shapeForBottom.shape !== 'original') || ([\"left\", \"right\"].includes(position) && shape.shape !== 'original')",label:"Image scale",setting:{id:"layout"}},{...i,hiddenOnMobile:!0,conditionDisplay:e}],moreSettings:{type:"collapse",controls:[{label:"Corner",hiddenOnMobile:!0,setting:{id:"corner"}},{label:"Active border",hiddenOnMobile:!0,conditionDisplay:'!["one-col", "two-col"].includes(position)',setting:{id:"borderActive"}},{type:"combo",label:"Hover action",conditionDisplay:'(position == "one-col" || position == "two-col")',hiddenOnMobile:!0,iconName:"gp-trigger-action-hover",getValueFromSettingID:"galleryHoverEffect",defaultValueWhenClear:"none",compoDefaultValue:"zoom",controls:[{label:"When hover",setting:{id:"galleryHoverEffect"},conditionDisplay:'galleryHoverEffect == "none"'},{label:"Zoom type",conditionDisplay:'galleryHoverEffect == "zoom"',setting:{id:"galleryZoomType"}},{label:"Zoom value",conditionDisplay:'galleryHoverEffect == "zoom"',setting:{id:"galleryZoom"}},{label:"Other image",conditionDisplay:'galleryHoverEffect == "other"',setting:{id:"otherImage"}}]},{label:"Click action",setting:{id:"clickOpenLightBox"}},{conditionDisplay:e,label:"Drag / swipe",setting:{id:"dragToScroll"}},{conditionDisplay:e,label:"Infinity loop",setting:{id:"loop"}}]}},{label:"Item spacing",hiddenOnMobile:!0,conditionDisplay:'["bottom-center", "left", "right", "inside-bottom", "inside-left", "inside-right"].includes(position)',controls:[{label:"Gap",setting:{id:"spacing"}}]},{label:"Display condition",conditionDisplay:'["bottom-center", "left", "right", "only-feature", "inside-bottom", "inside-left", "inside-right"].includes(position)',controls:[{label:"Default item",setting:{id:"preDisplay"}}]},{label:"Optimize LCP",conditionDisplay:'pageType !== "STATIC"',controls:[{label:"Preload",setting:{id:"preload"}},{label:"Quality",setting:{id:"qualityType"}},{layout:"horizontal",label:" ",conditionDisplay:'qualityType == "custom"',setting:{id:"qualityPercent"}}]},{hiddenOnMobile:!0,controls:[{label:"Align",setting:{id:"align"},options:{labelVariant:"primary"}}]}];export{l as SettingUIV2};
@@ -1 +1 @@
1
- import{productSelectDisplaySetting as e,productFeatureImageSetting as t,productFeatureImageStyle as l}from"./ProductFeatureImage.js";import{productGalleryImageSetting as a,productGalleryImageStyle as i}from"./ProductGalleryImage.js";let o=[{id:"setting",controls:[{id:"filterByVariant",type:"select",label:"Filter images by variant",default:"all_images",options:[{label:"All images",value:"all_images"},{label:"Selected variant",value:"selected_variant"}]},{id:"displayByVariant",label:"Option Label",type:"toggle",default:!1},{id:"variantSelect",type:"variant:listing"},{id:"select-display",type:"group",label:"Select images to display",controls:e},{id:"featured-image",type:"group",label:"Featured Image",controls:t},{id:"gallery-images",type:"group",label:"Gallery Images",controls:a},{id:"qualityType",type:"select",label:"Quality",devices:{desktop:{default:"high"}},options:[{title:"Finest",value:"finest"},{title:"High",value:"high"},{title:"Medium",value:"medium"},{title:"Custom",value:"custom",tooltip:"You can choose it for advanced page loading optimization."}]},{id:"preload",type:"toggle",label:"Preload",default:!1},{id:"qualityPercent",type:"input:slider",label:"",units:["%"],min:100,max:400,step:50,useOnlyUnitInit:!0,devices:{desktop:{default:100}}}]},{id:"style",controls:[{id:"position",label:"Layout",type:"layout-selector",iconViewBox:"0 0 50 50",enableItemBackground:!0,itemPerRow:3,itemSpacing:"large",enableItemOpacity:!0,options:[{label:"Featured top",value:"bottom-center",type:"p-image-layout",iconName:"gp-product-image-layout-bottom"},{label:"Featured right",value:"left",type:"p-image-layout",iconName:"gp-product-image-layout-left"},{label:"Featured left",value:"right",type:"p-image-layout",iconName:"gp-product-image-layout-right"},{label:"Image list inside bottom",value:"inside-bottom",type:"p-image-layout",iconName:"gp-product-image-layout-bottom-inside"},{label:"Image list inside left",value:"inside-left",type:"p-image-layout",iconName:"gp-product-image-layout-left-inside"},{label:"Image list inside right",value:"inside-right",type:"p-image-layout",iconName:"gp-product-image-layout-right-inside"},{label:"Featured only",value:"only-feature",type:"p-image-layout",iconName:"gp-product-image-layout-featured-only"},{label:"Image list 1 col",value:"one-col",type:"p-image-layout",iconName:"gp-product-image-layout-one-col",noPadding:"y"},{label:"Image list 2 col",value:"two-col",type:"p-image-layout",iconName:"gp-product-image-layout-two-col"}],devices:{desktop:{default:"bottom-center"},mobile:{default:"bottom-center"}}},{id:"spacing",label:"Spacing Item",type:"input:slider",units:["px"],ignoreMax:!0,max:40,devices:{desktop:{default:"8px"}}},{id:"ratioLayout",label:"Ratio",type:"column-with-slider",fallbackArrayValue:[2,10],devices:{desktop:{default:[2,10]}}},{id:"ratioLayoutRight",label:"Ratio",type:"column-with-slider",fallbackArrayValue:[10,2],devices:{desktop:{default:[10,2]}}},{id:"dimensions",type:"group",label:"Featured Image",controls:l},{id:"galleryStyles",type:"group",label:"Gallery",controls:i},{id:"align",label:"Alignment",type:"segment",options:[{label:"Start",value:"flex-start",type:"align-flex",tooltip:"Align left"},{label:"Center",value:"center",type:"align-flex",tooltip:"Align center"},{label:"End",value:"flex-end",type:"align-flex",tooltip:"Align right"}],devices:{desktop:{default:"flex-start"}}}]}];export{o as ProductImageSettingsV2};
1
+ import{productSelectDisplaySetting as e,productFeatureImageSetting as t,productFeatureImageStyle as l}from"./ProductFeatureImage.js";import{productGalleryImageSetting as a,productGalleryImageStyle as i}from"./ProductGalleryImage.js";let o=[{id:"setting",controls:[{id:"filterByVariant",type:"select",label:"Filter images by variant",default:"all_images",options:[{label:"All images",value:"all_images"},{label:"Selected variant",value:"selected_variant"}]},{id:"displayByVariant",label:"Option Label",type:"toggle",default:!1},{id:"variantSelect",type:"variant:listing"},{id:"select-display",type:"group",label:"Select images to display",controls:e},{id:"featured-image",type:"group",label:"Featured Image",controls:t},{id:"gallery-images",type:"group",label:"Gallery Images",controls:a},{id:"qualityType",type:"select",label:"Quality",devices:{desktop:{default:"high"}},options:[{title:"Finest",value:"finest"},{title:"High",value:"high"},{title:"Medium",value:"medium"},{title:"Custom",value:"custom",tooltip:"You can choose it for advanced page loading optimization."}]},{id:"preload",type:"toggle",label:"Preload",default:!1},{id:"qualityPercent",type:"input:slider",label:"",units:["%"],min:20,max:400,step:200,useOnlyUnitInit:!0,devices:{desktop:{default:100}}}]},{id:"style",controls:[{id:"position",label:"Layout",type:"layout-selector",iconViewBox:"0 0 50 50",enableItemBackground:!0,itemPerRow:3,itemSpacing:"large",enableItemOpacity:!0,options:[{label:"Featured top",value:"bottom-center",type:"p-image-layout",iconName:"gp-product-image-layout-bottom"},{label:"Featured right",value:"left",type:"p-image-layout",iconName:"gp-product-image-layout-left"},{label:"Featured left",value:"right",type:"p-image-layout",iconName:"gp-product-image-layout-right"},{label:"Image list inside bottom",value:"inside-bottom",type:"p-image-layout",iconName:"gp-product-image-layout-bottom-inside"},{label:"Image list inside left",value:"inside-left",type:"p-image-layout",iconName:"gp-product-image-layout-left-inside"},{label:"Image list inside right",value:"inside-right",type:"p-image-layout",iconName:"gp-product-image-layout-right-inside"},{label:"Featured only",value:"only-feature",type:"p-image-layout",iconName:"gp-product-image-layout-featured-only"},{label:"Image list 1 col",value:"one-col",type:"p-image-layout",iconName:"gp-product-image-layout-one-col",noPadding:"y"},{label:"Image list 2 col",value:"two-col",type:"p-image-layout",iconName:"gp-product-image-layout-two-col"}],devices:{desktop:{default:"bottom-center"},mobile:{default:"bottom-center"}}},{id:"spacing",label:"Spacing Item",type:"input:slider",units:["px"],ignoreMax:!0,max:40,devices:{desktop:{default:"8px"}}},{id:"ratioLayout",label:"Ratio",type:"column-with-slider",fallbackArrayValue:[2,10],devices:{desktop:{default:[2,10]}}},{id:"ratioLayoutRight",label:"Ratio",type:"column-with-slider",fallbackArrayValue:[10,2],devices:{desktop:{default:[10,2]}}},{id:"dimensions",type:"group",label:"Featured Image",controls:l},{id:"galleryStyles",type:"group",label:"Gallery",controls:i},{id:"align",label:"Alignment",type:"segment",options:[{label:"Start",value:"flex-start",type:"align-flex",tooltip:"Align left"},{label:"Center",value:"center",type:"align-flex",tooltip:"Align center"},{label:"End",value:"flex-end",type:"align-flex",tooltip:"Align right"}],devices:{desktop:{default:"flex-start"}}}]}];export{o as ProductImageSettingsV2};
@@ -1 +1 @@
1
- import{ImageListNavigation as i}from"./ui/ImageListNavigation.js";import{FeatureNavigation as o}from"./ui/FeatureNavigation.js";import{FeatureDots as t}from"./ui/FeatureDots.js";let e='((type == "slider" || position == "left" || position == "right") && position !== "one-col" && position != "two-col")',n='(["bottom-center", "left", "right", "only-feature", "inside-bottom", "inside-left", "inside-right"].includes(position))',l=[{label:"Layout",controls:[{layout:"vertical",setting:{id:"position"},options:{isComboLayout:!0},controls:[{label:"Ratio",type:"control",setting:{id:"ratioLayout"},layout:"vertical",conditionDisplay:'position == "left"'},{label:"Ratio",type:"control",setting:{id:"ratioLayoutRight"},layout:"vertical",conditionDisplay:'position == "right"'}]}]},{label:"Featured image",conditionDisplay:n,controls:[{setting:{id:"ftShape"},hiddenOnMobile:!0,layout:"vertical",controlChangeTrigger:{settings:[{condition:"ftShape.shape === 'original'",source:["ftShape"],action:{controlId:"ftLayout",newValue:"contain",groupType:"style",controlType:"style"}}],options:{noRecordHistory:!0}}},{conditionDisplay:"ftShape.shape !== 'original'",label:"Image scale",setting:{id:"ftLayout"}},{...t,hiddenOnMobile:!0,conditionDisplay:`${n} && position === "only-feature"`},{...o,hiddenOnMobile:!0,conditionDisplay:`${n}`}],moreSettings:{type:"collapse",controls:[{label:"Corner",setting:{id:"ftCorner"},hiddenOnMobile:!0},{type:"combo",label:"Hover action",conditionDisplay:n,iconName:"gp-trigger-action-hover",getValueFromSettingID:"hoverEffect",isShowSettingTitle:!0,defaultValueWhenClear:"none",compoDefaultValue:"zoom",hiddenOnMobile:!0,controls:[{label:"When hover",setting:{id:"hoverEffect"}},{label:"Zoom type",conditionDisplay:'hoverEffect == "zoom"',setting:{id:"zoomType"}},{label:"Zoom value",conditionDisplay:'hoverEffect == "zoom"',setting:{id:"zoom"}},{label:"Other image",conditionDisplay:'hoverEffect == "other"',setting:{id:"otherImage"}}]},{type:"combo",label:"Click action",hiddenOnMobile:!0,iconName:"gp-trigger-action-click",conditionDisplay:n,getValueFromSettingID:"ftClickOpenLightBox",isShowSettingTitle:!0,defaultValueWhenClear:"none",compoDefaultValue:"popup",controls:[{label:"After click",setting:{id:"ftClickOpenLightBox"}},{label:"Open new tab",setting:{id:"ftClickOpenNewTab"},conditionDisplay:'ftClickOpenLightBox === "product-link"'}]},{type:"control",label:"Slide speed",setting:{id:"ftAnimationSpeed"}},{type:"control",label:"Animation",setting:{id:"ftAnimationMode"}},{label:"Drag / swipe",setting:{id:"ftDragToScroll"}},{label:"Infinity loop",setting:{id:"ftLoop"}}]}},{label:"Image list",conditionDisplay:'(position !== "only-feature")',controls:[{label:"Display",hiddenOnMobile:!0,conditionDisplay:'position === "bottom-center" || position === "bottom-left" || position === "inside-bottom"',setting:{id:"type"}},{setting:{id:"shape"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'["left", "right"].includes(position)'},{setting:{id:"shapeForBottom"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'["bottom-left", "bottom-center"].includes(position)'},{setting:{id:"shapeForInsideBottom"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'["inside-bottom"].includes(position)'},{setting:{id:"shapeForInside"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'["inside-left", "inside-right"].includes(position)'},{setting:{id:"shapeForFtOnly"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'position == "only-feature"'},{setting:{id:"shapeFor2Col"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'position == "two-col"'},{setting:{id:"shapeFor1Col"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'position == "one-col"'},{label:"Image gap",setting:{id:"itemSpacing"}},{conditionDisplay:"(position == 'one-col' && shapeFor1Col.shape !== 'original') || (position == 'two-col' && shapeFor2Col.shape !== 'original') || (position == 'only-feature' && shapeForFtOnly.shape !== 'original') || ([\"inside-left\", \"inside-right\"].includes(position) && shapeForInside.shape !== 'original') || ([\"inside-bottom\"].includes(position) && shapeForInsideBottom.shape !== 'original') || ([\"bottom-left\", \"bottom-center\"].includes(position) && shapeForBottom.shape !== 'original') || ([\"left\", \"right\"].includes(position) && shape.shape !== 'original')",label:"Image scale",setting:{id:"layout"}},{...i,hiddenOnMobile:!0,conditionDisplay:e}],moreSettings:{type:"collapse",controls:[{label:"Corner",hiddenOnMobile:!0,setting:{id:"corner"}},{label:"Active border",hiddenOnMobile:!0,conditionDisplay:'!["one-col", "two-col"].includes(position)',setting:{id:"borderActive"}},{type:"combo",label:"Hover action",conditionDisplay:'(position == "one-col" || position == "two-col")',iconName:"gp-trigger-action-hover",getValueFromSettingID:"galleryHoverEffect",defaultValueWhenClear:"none",hiddenOnMobile:!0,compoDefaultValue:"zoom",controls:[{label:"When hover",setting:{id:"galleryHoverEffect"},conditionDisplay:'galleryHoverEffect == "none"'},{label:"Zoom type",conditionDisplay:'galleryHoverEffect == "zoom"',setting:{id:"galleryZoomType"}},{label:"Zoom value",conditionDisplay:'galleryHoverEffect == "zoom"',setting:{id:"galleryZoom"}},{label:"Other image",conditionDisplay:'galleryHoverEffect == "other"',setting:{id:"otherImage"}}]},{label:"Click action",setting:{id:"clickOpenLightBox"}},{conditionDisplay:e,label:"Drag / swipe",setting:{id:"dragToScroll"}},{conditionDisplay:e,label:"Infinity loop",setting:{id:"loop"}}]}},{label:"Item spacing",hiddenOnMobile:!0,conditionDisplay:'["bottom-center", "left", "right", "inside-bottom", "inside-left", "inside-right"].includes(position)',controls:[{label:"Gap",setting:{id:"spacing"}}]},{label:"Display condition",controls:[{conditionDisplay:'["bottom-center", "left", "right", "only-feature", "inside-bottom", "inside-left", "inside-right"].includes(position)',label:"Default item",setting:{id:"preDisplay"}},{label:"Image list",setting:{id:"filterByVariant"}}],messageConfig:{type:"info",message:'Image list can display based on the selected variants. <a class="text-white" target="_blank" href="https://gempages.co/display-selected-variant">How to setup</a>'}},{label:"Optimize LCP",conditionDisplay:'pageType !== "STATIC"',controls:[{label:"Preload",conditionDisplay:'["bottom-center", "left", "right", "only-feature", "inside-bottom", "inside-left", "inside-right"].includes(position)',setting:{id:"preload"}},{label:"Quality",setting:{id:"qualityType"},conditionDisplay:'preload === false || (preload === true && (position === "one-col" || position === "two-col"))'},{layout:"horizontal",label:"Quality",conditionDisplay:'qualityType == "custom" && (preload === false || (preload === true && (position === "one-col" || position === "two-col")))',setting:{id:"qualityPercent"}}]},{hiddenOnMobile:!0,controls:[{label:"Align",setting:{id:"align"},options:{labelVariant:"primary"}}]}];export{l as SettingUIV2};
1
+ import{ImageListNavigation as i}from"./ui/ImageListNavigation.js";import{FeatureNavigation as o}from"./ui/FeatureNavigation.js";import{FeatureDots as t}from"./ui/FeatureDots.js";let e='((type == "slider" || position == "left" || position == "right") && position !== "one-col" && position != "two-col")',n='(["bottom-center", "left", "right", "only-feature", "inside-bottom", "inside-left", "inside-right"].includes(position))',l=[{label:"Layout",controls:[{layout:"vertical",setting:{id:"position"},options:{isComboLayout:!0},controls:[{label:"Ratio",type:"control",setting:{id:"ratioLayout"},layout:"vertical",conditionDisplay:'position == "left"'},{label:"Ratio",type:"control",setting:{id:"ratioLayoutRight"},layout:"vertical",conditionDisplay:'position == "right"'}]}]},{label:"Featured image",conditionDisplay:n,controls:[{setting:{id:"ftShape"},hiddenOnMobile:!0,layout:"vertical",controlChangeTrigger:{settings:[{condition:"ftShape.shape === 'original'",source:["ftShape"],action:{controlId:"ftLayout",newValue:"contain",groupType:"style",controlType:"style"}}],options:{noRecordHistory:!0}}},{conditionDisplay:"ftShape.shape !== 'original'",label:"Image scale",setting:{id:"ftLayout"}},{...t,hiddenOnMobile:!0,conditionDisplay:`${n} && position === "only-feature"`},{...o,hiddenOnMobile:!0,conditionDisplay:`${n}`}],moreSettings:{type:"collapse",controls:[{label:"Corner",setting:{id:"ftCorner"},hiddenOnMobile:!0},{type:"combo",label:"Hover action",conditionDisplay:n,iconName:"gp-trigger-action-hover",getValueFromSettingID:"hoverEffect",isShowSettingTitle:!0,defaultValueWhenClear:"none",compoDefaultValue:"zoom",hiddenOnMobile:!0,controls:[{label:"When hover",setting:{id:"hoverEffect"}},{label:"Zoom type",conditionDisplay:'hoverEffect == "zoom"',setting:{id:"zoomType"}},{label:"Zoom value",conditionDisplay:'hoverEffect == "zoom"',setting:{id:"zoom"}},{label:"Other image",conditionDisplay:'hoverEffect == "other"',setting:{id:"otherImage"}}]},{type:"combo",label:"Click action",hiddenOnMobile:!0,iconName:"gp-trigger-action-click",conditionDisplay:n,getValueFromSettingID:"ftClickOpenLightBox",isShowSettingTitle:!0,defaultValueWhenClear:"none",compoDefaultValue:"popup",controls:[{label:"After click",setting:{id:"ftClickOpenLightBox"}},{label:"Open new tab",setting:{id:"ftClickOpenNewTab"},conditionDisplay:'ftClickOpenLightBox === "product-link"'}]},{type:"control",label:"Slide speed",setting:{id:"ftAnimationSpeed"}},{type:"control",label:"Animation",setting:{id:"ftAnimationMode"}},{label:"Drag / swipe",setting:{id:"ftDragToScroll"}},{label:"Infinity loop",setting:{id:"ftLoop"}}]}},{label:"Image list",conditionDisplay:'(position !== "only-feature")',controls:[{label:"Display",hiddenOnMobile:!0,conditionDisplay:'position === "bottom-center" || position === "bottom-left" || position === "inside-bottom"',setting:{id:"type"}},{setting:{id:"shape"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'["left", "right"].includes(position)'},{setting:{id:"shapeForBottom"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'["bottom-left", "bottom-center"].includes(position)'},{setting:{id:"shapeForInsideBottom"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'["inside-bottom"].includes(position)'},{setting:{id:"shapeForInside"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'["inside-left", "inside-right"].includes(position)'},{setting:{id:"shapeForFtOnly"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'position == "only-feature"'},{setting:{id:"shapeFor2Col"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'position == "two-col"'},{setting:{id:"shapeFor1Col"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'position == "one-col"'},{label:"Image gap",setting:{id:"itemSpacing"}},{conditionDisplay:"(position == 'one-col' && shapeFor1Col.shape !== 'original') || (position == 'two-col' && shapeFor2Col.shape !== 'original') || (position == 'only-feature' && shapeForFtOnly.shape !== 'original') || ([\"inside-left\", \"inside-right\"].includes(position) && shapeForInside.shape !== 'original') || ([\"inside-bottom\"].includes(position) && shapeForInsideBottom.shape !== 'original') || ([\"bottom-left\", \"bottom-center\"].includes(position) && shapeForBottom.shape !== 'original') || ([\"left\", \"right\"].includes(position) && shape.shape !== 'original')",label:"Image scale",setting:{id:"layout"}},{...i,hiddenOnMobile:!0,conditionDisplay:e}],moreSettings:{type:"collapse",controls:[{label:"Corner",hiddenOnMobile:!0,setting:{id:"corner"}},{label:"Active border",hiddenOnMobile:!0,conditionDisplay:'!["one-col", "two-col"].includes(position)',setting:{id:"borderActive"}},{type:"combo",label:"Hover action",conditionDisplay:'(position == "one-col" || position == "two-col")',iconName:"gp-trigger-action-hover",getValueFromSettingID:"galleryHoverEffect",defaultValueWhenClear:"none",hiddenOnMobile:!0,compoDefaultValue:"zoom",controls:[{label:"When hover",setting:{id:"galleryHoverEffect"},conditionDisplay:'galleryHoverEffect == "none"'},{label:"Zoom type",conditionDisplay:'galleryHoverEffect == "zoom"',setting:{id:"galleryZoomType"}},{label:"Zoom value",conditionDisplay:'galleryHoverEffect == "zoom"',setting:{id:"galleryZoom"}},{label:"Other image",conditionDisplay:'galleryHoverEffect == "other"',setting:{id:"otherImage"}}]},{label:"Click action",setting:{id:"clickOpenLightBox"}},{conditionDisplay:e,label:"Drag / swipe",setting:{id:"dragToScroll"}},{conditionDisplay:e,label:"Infinity loop",setting:{id:"loop"}}]}},{label:"Item spacing",hiddenOnMobile:!0,conditionDisplay:'["bottom-center", "left", "right", "inside-bottom", "inside-left", "inside-right"].includes(position)',controls:[{label:"Gap",setting:{id:"spacing"}}]},{label:"Display condition",controls:[{conditionDisplay:'["bottom-center", "left", "right", "only-feature", "inside-bottom", "inside-left", "inside-right"].includes(position)',label:"Default item",setting:{id:"preDisplay"}},{label:"Image list",setting:{id:"filterByVariant"}}],messageConfig:{type:"info",message:'Image list can display based on the selected variants. <a class="text-white" target="_blank" href="https://gempages.co/display-selected-variant">How to setup</a>'}},{label:"Optimize LCP",conditionDisplay:'pageType !== "STATIC"',controls:[{label:"Preload",setting:{id:"preload"}},{label:"Quality",setting:{id:"qualityType"}},{layout:"horizontal",label:"Quality",conditionDisplay:'qualityType == "custom"',setting:{id:"qualityPercent"}}]},{hiddenOnMobile:!0,controls:[{label:"Align",setting:{id:"align"},options:{labelVariant:"primary"}}]}];export{l as SettingUIV2};
@@ -1 +1 @@
1
- let t=(t,a,e)=>{let{displayByDefault:i,scarcityThreshold:s=0,template:l,outOfStockMessage:r,continueSelling:d,unlimitedQuantityMessage:o,hiddenCounterWhenOutOfStock:p}=a??{},{displayProgressBar:c,textColor:g,oosTextColor:n,typo:u}=e??{},y=u?.attrs?.color;return{"data-id":t?.uid??"","data-visible":"{{ should_display }}","data-policy":"{{ variant_policy_list | escape }}","gp-setting":JSON.stringify({displayByDefault:i,displayProgressBar:c,scarcityThreshold:s,template:l,outOfStockMessage:r,continueSelling:d,unlimitedQuantityMessage:o,color:g||"brand",hiddenCounterWhenOutOfStock:p,oosTextColor:n,typoColor:y}).replaceAll('"',"&#34;")}},a=()=>({"data-slot-type":"message"}),e=t=>({"data-id":t?.uid??""}),i=(t,a)=>({"data-slot-type":t?"oos-icon":"has-stock-icon","data-visible":a?"true":"false"});export{i as getIconAttrs,t as getLiquidTagAttrs,a as getLiquidTextAttrs,e as getWrapperAttrs};
1
+ import{getMainColor as t}from"./helpers.js";let e=(e,a,i)=>{let{displayByDefault:s,scarcityThreshold:l=0,template:r,outOfStockMessage:o,continueSelling:d,unlimitedQuantityMessage:p,hiddenCounterWhenOutOfStock:c}=a??{},{displayProgressBar:g,oosTextColor:n,typo:u}=i??{},y=u?.attrs?.color,m=t(i);return{"data-id":e?.uid??"","data-visible":"{{ should_display }}","data-policy":"{{ variant_policy_list | escape }}","gp-setting":JSON.stringify({displayByDefault:s,displayProgressBar:g,scarcityThreshold:l,template:r,outOfStockMessage:o,continueSelling:d,unlimitedQuantityMessage:p,color:m,hiddenCounterWhenOutOfStock:c,oosTextColor:n,typoColor:y}).replaceAll('"',"&#34;")}},a=()=>({"data-slot-type":"message"}),i=t=>({"data-id":t?.uid??""}),s=(t,e)=>({"data-slot-type":t?"oos-icon":"has-stock-icon","data-visible":e?"true":"false"});export{s as getIconAttrs,e as getLiquidTagAttrs,a as getLiquidTextAttrs,i as getWrapperAttrs};
@@ -1,12 +1,12 @@
1
- let e={AUTO:"auto",MANUAL:"manual"},a={SHOW:"show",HIDE:"hide"},i="%number%",t="mark",n=0,r=12,s=12,l=20,o=0,_=10,d=100,g=10,u=20,p=10,y=5,v=20,T="CONTINUE",c=e=>{let{templateStringDisplay:a,outOfStockMessageDisplay:i,continueSellingDisplay:t,unlimitedQuantityMessageDisplay:n}=e??{};return`{% if inventory_management == null and inventory_quantity <= 0 %}
1
+ import{isColor as e}from"@gem-sdk/core";let t={AUTO:"auto",MANUAL:"manual"},a={SHOW:"show",HIDE:"hide"},i="%number%",n="mark",r=0,s=12,l=12,o=20,_=0,d=10,g=100,u=10,p=20,y=10,v=5,T=20,c="CONTINUE",f=e=>{let{templateStringDisplay:t,outOfStockMessageDisplay:a,continueSellingDisplay:i,unlimitedQuantityMessageDisplay:n}=e??{};return`{% if inventory_management == null and inventory_quantity <= 0 %}
2
2
  ${n}
3
3
  {% elsif available == false %}
4
+ ${a}
5
+ {% elsif available and inventory_policy == '${c.toLowerCase()}' and inventory_quantity <= 0 %}
4
6
  ${i}
5
- {% elsif available and inventory_policy == '${T.toLowerCase()}' and inventory_quantity <= 0 %}
6
- ${t}
7
7
  {% else %}
8
- ${a}
9
- {% endif %}`},f=(e,a)=>{let{scarcityThreshold:i=0,hiddenCounterWhenOutOfStock:t,displayByDefault:n}=e??{},{displayProgressBar:r}=a??{},s=!!i&&i>0;return`{%- liquid
8
+ ${t}
9
+ {% endif %}`},$=(e,t)=>{let{scarcityThreshold:a=0,hiddenCounterWhenOutOfStock:i,displayByDefault:n}=e??{},{displayProgressBar:r}=t??{},s=!!a&&a>0;return`{%- liquid
10
10
  assign current_variant = variant
11
11
  assign available = current_variant.available | default: false
12
12
  assign inventory_management = current_variant.inventory_management | default: null
@@ -15,7 +15,7 @@ let e={AUTO:"auto",MANUAL:"manual"},a={SHOW:"show",HIDE:"hide"},i="%number%",t="
15
15
  assign scarcityThreshold = ${s}
16
16
  assign check_display = ${!!n}
17
17
 
18
- if inventory_management != null and available == false and inventory_quantity <= 0 and inventory_policy != '${T.toLowerCase()}'
18
+ if inventory_management != null and available == false and inventory_quantity <= 0 and inventory_policy != '${c.toLowerCase()}'
19
19
  assign is_out_of_stock = true
20
20
  else
21
21
  assign is_out_of_stock = false
@@ -23,13 +23,13 @@ let e={AUTO:"auto",MANUAL:"manual"},a={SHOW:"show",HIDE:"hide"},i="%number%",t="
23
23
 
24
24
  if check_display == true
25
25
  assign should_display = true
26
- elsif ${s} and inventory_quantity >= 0 and inventory_quantity < ${i}
26
+ elsif ${s} and inventory_quantity >= 0 and inventory_quantity < ${a}
27
27
  assign should_display = true
28
28
  else
29
29
  assign should_display = false
30
30
  endif
31
31
 
32
- if ${!0===t} and available == false
32
+ if ${!0===i} and available == false
33
33
  assign should_display = false
34
34
  endif
35
35
 
@@ -46,26 +46,26 @@ let e={AUTO:"auto",MANUAL:"manual"},a={SHOW:"show",HIDE:"hide"},i="%number%",t="
46
46
  "{{ variant.id }}_management":"{{ variant.inventory_management }}"{% if forloop.last == false %},{% endif %}
47
47
  {% endfor %}
48
48
  }
49
- {% endcapture %}`},$=(e,a)=>{let{templateStringDisplay:i,outOfStockMessageDisplay:t,continueSellingDisplay:n,unlimitedQuantityMessageDisplay:r}=e??{},{textColor:s}=a??{},l=s||"brand";return`
50
- <div class="gp-hidden gp-text-white gp-py-1 gp-px-2 gp-mr-1 gp-inline-block gp-my-[1px] gp-text-g-${l} gp-bg-g-${l}" >
49
+ {% endcapture %}`},E=e=>{let{textColor:t,typo:a}=e??{};return a?.attrs?.color||t||"text-2"},b=(t,a)=>{let{templateStringDisplay:i,outOfStockMessageDisplay:n,continueSellingDisplay:r,unlimitedQuantityMessageDisplay:s}=t??{},l=E(a),o=e(l)?"":`gp-text-g-${l} gp-bg-g-${l}`;return`
50
+ <div class="gp-hidden gp-text-white gp-py-1 gp-px-2 gp-mr-1 gp-inline-block gp-my-[1px] ${o}" >
51
51
  <div id="template">${i}</div>
52
- <div id="out-of-stock-message">${t}</div>
53
- <div id="continue-selling">${n}</div>
54
- <div id="unlimited-quantity-message">${r}</div>
55
- </div>`},b=(e,a)=>{let i=E(a);if(e)return`
52
+ <div id="out-of-stock-message">${n}</div>
53
+ <div id="continue-selling">${r}</div>
54
+ <div id="unlimited-quantity-message">${s}</div>
55
+ </div>`},m=(e,t)=>{let a=A(t);if(e)return`
56
56
  [data-id="${e}"] {
57
57
  .gp-sc-progress-bar{
58
- ${i}
58
+ ${a}
59
59
  }
60
60
  .gp-sc-progress-bar:before{
61
- ${i}
61
+ ${a}
62
62
  }
63
- }`},E=e=>`
63
+ }`},A=e=>`
64
64
  border-top-left-radius: ${e?.bbrr??"0px"};
65
65
  border-top-right-radius: ${e?.bblr??"0px"};
66
66
  border-bottom-left-radius: ${e?.btrr??"0px"};
67
- border-bottom-right-radius: ${e?.btlr??"0px"};`,m=(e,a)=>{if(!e.includes(`<${t}>`))return e;let i="gp-text-white gp-py-1 gp-px-2 gp-mr-1 gp-inline-block gp-my-[1px]",n=`<${t}>`;return n=a.includes("#")?`
68
- <${t} class='${i}' style='background-color: ${a}'>
67
+ border-bottom-right-radius: ${e?.btlr??"0px"};`,N=(t,a)=>{if(!t.includes(`<${n}>`))return t;let i="gp-text-white gp-py-1 gp-px-2 gp-mr-1 gp-inline-block gp-my-[1px]",r=`<${n}>`;return r=e(a)?`
68
+ <${n} class='${i}' style='background-color: ${a}'>
69
69
  `:`
70
- <${t} class='${i} gp-bg-g-${a}'>
71
- `,e.replaceAll(`<${t}>`,n)},A=(e,a,t)=>{if(!e.includes(i))return e;let n="";return n=a.includes("#")?`<span style='--c: ${a}'><$quantity$></span>`:`<span class='gp-text-g-${a}'><$quantity$></span>`,t&&(n=n.replace("<$quantity$>",t.toString())),e.replaceAll(i,n)},N=e=>{let a={};return e["--size"]&&(a["--w"]=e["--size"]),e["--size-tablet"]&&(a["--w-tablet"]=e["--size-tablet"]),e["--size-mobile"]&&(a["--w-mobile"]=e["--size-mobile"]),a};export{T as CONTINUE_SELLING_WHEN_OUT_OF_STOCK,u as DEFAULT_FONT_SIZE,t as DEFAULT_HIGHLIGHT_TAG,p as DEFAULT_PROGRESS_BAR_HEIGHT,i as DEFAULT_QUANTITY_TEMPLATE,g as DEFAULT_RANGE_STEP,l as DEFAULT_REMAINING_PERCENT,s as DEFAULT_REMAINING_QUANTITY,r as DEFAULT_SCARCITY_THRESHOLD,v as MAX_PROGRESS_BAR_HEIGHT,d as MAX_REMAINING_PERCENT,y as MIN_PROGRESS_BAR_HEIGHT,_ as MIN_REMAINING_PERCENT,o as MIN_REMAINING_QUANTITY,n as NO_PRODUCT_LEFT,a as OUT_OF_STOCK,e as QUANTITY_SOURCE,N as convertSizeToWidth,b as getInlineCss,f as getLiquidInitData,c as getLiquidTextContent,$ as getTextDisplayData,m as transformHighlighTag,A as transformNumberTag};
70
+ <${n} class='${i} gp-bg-g-${a}'>
71
+ `,t.replaceAll(`<${n}>`,r)},I=(t,a,n)=>{if(!t.includes(i))return t;let r="";return r=e(a)?`<span style='--c: ${a}'><$quantity$></span>`:`<span class='gp-text-g-${a}'><$quantity$></span>`,n&&(r=r.replace("<$quantity$>",n.toString())),t.replaceAll(i,r)},R=e=>{let t={};return e["--size"]&&(t["--w"]=e["--size"]),e["--size-tablet"]&&(t["--w-tablet"]=e["--size-tablet"]),e["--size-mobile"]&&(t["--w-mobile"]=e["--size-mobile"]),t};export{c as CONTINUE_SELLING_WHEN_OUT_OF_STOCK,p as DEFAULT_FONT_SIZE,n as DEFAULT_HIGHLIGHT_TAG,y as DEFAULT_PROGRESS_BAR_HEIGHT,i as DEFAULT_QUANTITY_TEMPLATE,u as DEFAULT_RANGE_STEP,o as DEFAULT_REMAINING_PERCENT,l as DEFAULT_REMAINING_QUANTITY,s as DEFAULT_SCARCITY_THRESHOLD,T as MAX_PROGRESS_BAR_HEIGHT,g as MAX_REMAINING_PERCENT,v as MIN_PROGRESS_BAR_HEIGHT,d as MIN_REMAINING_PERCENT,_ as MIN_REMAINING_QUANTITY,r as NO_PRODUCT_LEFT,a as OUT_OF_STOCK,t as QUANTITY_SOURCE,R as convertSizeToWidth,m as getInlineCss,$ as getLiquidInitData,f as getLiquidTextContent,E as getMainColor,b as getTextDisplayData,N as transformHighlighTag,I as transformNumberTag};
@@ -1,4 +1,4 @@
1
- import{composeClasses as s,RenderIf as t,template as i,isLocalEnv as e,baseAssetURL as o}from"@gem-sdk/core";import{getContainerClasses as l,getLiquidTagClasses as c,getWrapperIconClasses as d,getOuterIconClasses as r,getIconClasses as a,getWrapperClasses as $,getTextClasses as p}from"../common/classes.js";import{getLiquidInitData as u,getInlineCss as n,getTextDisplayData as m,getLiquidTextContent as f}from"../common/helpers.js";import{getContainerStyles as v,getWrapperStyles as g,getIconStyles as k,getTextStyles as y}from"../common/styles.js";import{getDynamicSourceLocales as S,createSettingId as I,getSettingPreloadData as O}from"../../helpers.js";import{StockCounter as b}from"../settings/configs/translate.js";import{getLiquidTagAttrs as j,getLiquidTextAttrs as _,getIconAttrs as V}from"../common/attrs.js";import{createAttr as h,createStyle as E,createClass as M,LiquidIf as A}from"@gem-sdk/system";let C=({setting:C,styles:G,style:Q,advanced:R,builderProps:x,pageContext:N})=>{let{borderRadius:P}=G??{},{showIcon:T,icon:q,oosIcon:w,layout:z="full",template:B,outOfStockMessage:D,continueSelling:F,unlimitedQuantityMessage:H}=C??{},J=n(x?.uid,P),K=S({val:B,uid:x?.uid,settingId:I({id:b?.template?.id}),pageContext:N,isReplaceInventoryQuantity:!0}),L=S({val:D,uid:x?.uid,settingId:I({id:b?.outOfStockMessage?.id}),pageContext:N}),U=S({val:F,uid:x?.uid,settingId:I({id:b?.continueSelling?.id}),pageContext:N}),W=S({val:H,uid:x?.uid,settingId:I({id:b?.unlimitedQuantityMessage?.id}),pageContext:N}),X=h({...j(x,C,G)}),Y=E({...v(G)}),Z=M({...l(C)}),ss=M({...c(R)}),st=E({...Q}),si=E({...g(G)}),se=u(C,G),so=f({templateStringDisplay:K,outOfStockMessageDisplay:L,continueSellingDisplay:U,unlimitedQuantityMessageDisplay:W}),sl=M({...d(C)}),sc=M({...s("gp-stock-counter-icon data-[visible=true]:gp-block data-[visible=false]:gp-hidden"),...a(),...r()}),sd=M({...$(C)}),sr=s=>E({...k(G,C,s)}),sa=({isOutOfStockIcon:s,isVisible:t})=>h({...V(s,t)}),s$=M({...p(G),...s("gp-stock-counter-mark")}),sp=s=>E({...y(G,s)}),su=h({..._()}),sn=m({templateStringDisplay:K,outOfStockMessageDisplay:L,continueSellingDisplay:U,unlimitedQuantityMessageDisplay:W},G);return i`
1
+ import{composeClasses as s,RenderIf as t,template as i,isLocalEnv as e,baseAssetURL as o}from"@gem-sdk/core";import{getContainerClasses as l,getLiquidTagClasses as c,getWrapperIconClasses as d,getOuterIconClasses as r,getIconClasses as a,getWrapperClasses as $,getTextClasses as p}from"../common/classes.js";import{getTextDisplayData as u,getLiquidInitData as n,getInlineCss as m,getLiquidTextContent as f}from"../common/helpers.js";import{getContainerStyles as v,getWrapperStyles as g,getIconStyles as k,getTextStyles as y}from"../common/styles.js";import{getDynamicSourceLocales as S,createSettingId as I,getSettingPreloadData as O}from"../../helpers.js";import{StockCounter as b}from"../settings/configs/translate.js";import{getLiquidTagAttrs as j,getLiquidTextAttrs as _,getIconAttrs as V}from"../common/attrs.js";import{createAttr as h,createStyle as E,createClass as M,LiquidIf as A}from"@gem-sdk/system";let C=({setting:C,styles:G,style:Q,advanced:R,builderProps:x,pageContext:N})=>{let{borderRadius:P}=G??{},{showIcon:T,icon:q,oosIcon:w,layout:z="full",template:B,outOfStockMessage:D,continueSelling:F,unlimitedQuantityMessage:H}=C??{},J=m(x?.uid,P),K=S({val:B,uid:x?.uid,settingId:I({id:b?.template?.id}),pageContext:N,isReplaceInventoryQuantity:!0}),L=S({val:D,uid:x?.uid,settingId:I({id:b?.outOfStockMessage?.id}),pageContext:N}),U=S({val:F,uid:x?.uid,settingId:I({id:b?.continueSelling?.id}),pageContext:N}),W=S({val:H,uid:x?.uid,settingId:I({id:b?.unlimitedQuantityMessage?.id}),pageContext:N}),X=h({...j(x,C,G)}),Y=E({...v(G)}),Z=M({...l(C)}),ss=M({...c(R)}),st=E({...Q}),si=E({...g(G)}),se=n(C,G),so=f({templateStringDisplay:K,outOfStockMessageDisplay:L,continueSellingDisplay:U,unlimitedQuantityMessageDisplay:W}),sl=M({...d(C)}),sc=M({...s("gp-stock-counter-icon data-[visible=true]:gp-block data-[visible=false]:gp-hidden"),...a(),...r()}),sd=M({...$(C)}),sr=s=>E({...k(G,C,s)}),sa=({isOutOfStockIcon:s,isVisible:t})=>h({...V(s,t)}),s$=M({...p(G),...s("gp-stock-counter-mark")}),sp=s=>E({...y(G,s)}),su=h({..._()}),sn=u({templateStringDisplay:K,outOfStockMessageDisplay:L,continueSellingDisplay:U,unlimitedQuantityMessageDisplay:W},G);return i`
2
2
  ${se}
3
3
  <gp-product-stock-counter ${{...X}} class="${ss}"
4
4
  style="${st}">
@@ -1 +1 @@
1
- import{NO_PRODUCT_LEFT as t,CONTINUE_SELLING_WHEN_OUT_OF_STOCK as e,transformHighlighTag as r,transformNumberTag as o}from"../common/helpers.js";import{useEditorMode as n,useCurrentVariant as a}from"@gem-sdk/core";import{useMemo as i}from"react";let u=(u,l)=>{let s=n(),{template:c,outOfStockMessage:y,continueSelling:d,unlimitedQuantityMessage:m}=u??{},{textColor:f}=l??{},p=f||"brand",h=a(),k=i(()=>Number(h?h.inventoryQuantity:0),[h]),C=!h||h.manageInventory,O=h?h.inventoryPolicy:"deny",g=C&&k<=t&&O!==e,v=O===e&&k<=t,S=!C&&m;function b(){return S?r(m,p):g?r(y||"",p):v?r(d||"",p):r(o(c||"",p,k),p)}let B=i(()=>{if("edit"===s)return!1;let t=!u?.displayByDefault&&k>=(u?.scarcityThreshold??0),e=u?.hiddenCounterWhenOutOfStock&&g;return t||e},[k,g,s,u?.displayByDefault,u?.hiddenCounterWhenOutOfStock,u?.scarcityThreshold]);return{outputMessage:()=>{let t=l?.typo?.attrs?.transform==="capitalize";return t?b()?.toLocaleLowerCase():b()},isOutOfStock:g,inventoryQuantity:k,shouldHideCounter:B}};export{u as useStockCounter};
1
+ import{useEditorMode as t,useCurrentVariant as e}from"@gem-sdk/core";import{useMemo as r}from"react";import{NO_PRODUCT_LEFT as o,CONTINUE_SELLING_WHEN_OUT_OF_STOCK as n,transformHighlighTag as i,transformNumberTag as u,getMainColor as a}from"../common/helpers.js";let l=(l,s)=>{let c=t(),{template:y,outOfStockMessage:m,continueSelling:d,unlimitedQuantityMessage:f}=l??{},p=a(s),h=e(),k=r(()=>Number(h?h.inventoryQuantity:0),[h]),C=!h||h.manageInventory,O=h?h.inventoryPolicy:"deny",g=C&&k<=o&&O!==n,v=O===n&&k<=o,S=!C&&f;function B(){return S?i(f,p):g?i(m||"",p):v?i(d||"",p):i(u(y||"",p,k),p)}let D=r(()=>{if("edit"===c)return!1;let t=!l?.displayByDefault&&k>=(l?.scarcityThreshold??0),e=l?.hiddenCounterWhenOutOfStock&&g;return t||e},[k,g,c,l?.displayByDefault,l?.hiddenCounterWhenOutOfStock,l?.scarcityThreshold]);return{outputMessage:()=>{let t=s?.typo?.attrs?.transform==="capitalize";return t?B()?.toLocaleLowerCase():B()},isOutOfStock:g,inventoryQuantity:k,shouldHideCounter:D}};export{l as useStockCounter};
@@ -1,13 +1,13 @@
1
- import{makeStyleResponsive as e,template as r}from"@gem-sdk/core";let t=e=>{if(!e)return"";let r="";return e.replace(/data-yotpo-instance-id ?= ?"([^"]+)"/gi,t=>(r=(r=(r=(r=t).replace("data-yotpo-instance-id=","")).replace(/['"]+/g,"")).replace(/["']+/g,""),e)),r},p=e=>{if(!e)return"";let r="";return(e.replace(/src ?= ?"([^"]+)"/gi,t=>(r=(r=(r=(r=t).replace("src=","")).replace(/['"]+/g,"")).replace(/["']+/g,""),e)),r)?r:""},l=(t,p,l)=>r`
1
+ import{makeStyleResponsive as e,template as t}from"@gem-sdk/core";let p=e=>{if(!e)return"";let t="";return e.replace(/data-yotpo-instance-id ?= ?"([^"]+)"/gi,p=>(t=(t=(t=(t=p).replace("data-yotpo-instance-id=","")).replace(/['"]+/g,"")).replace(/["']+/g,""),e)),t},r=e=>{if(!e)return"";let t="";return(e.replace(/src ?= ?"([^"]+)"/gi,p=>(t=(t=(t=(t=p).replace("src=","")).replace(/['"]+/g,"")).replace(/["']+/g,""),e)),t)?t:""},o=(p,r,o)=>t`
2
2
  {% assign app_blocks = section.blocks | where: "type", "@app" %}
3
3
  <div
4
- class="gp-flex gp-w-full gp-items-center ${l}"
5
- style="${{...e("jc",p)}}"
4
+ class="gp-flex gp-w-full gp-items-center ${o}"
5
+ style="${{...e("jc",r)}}"
6
6
  >
7
7
  {% for block in app_blocks %}
8
- {% if block.type == '@app' and block.id contains '${t}' %}
8
+ {% if block.type == '@app' and block.id contains '${p}' %}
9
9
  {% render block %}
10
10
  {% endif %}
11
11
  {% endfor %}
12
12
  </div>
13
- `,c=({handle:e})=>`https://help.gempages.net/articles/${e}`;export{c as get3rdPartyInstallLink,l as getLiquidForAppBlock,t as getYotpoFormCode,p as getYotpoUri};
13
+ `,a=({handle:e})=>`https://help.gempages.net/articles/${e}`,c=({handle:e})=>`https://apps.shopify.com/${e}`;export{c as get3rdPartyAppStoreLink,a as get3rdPartyInstallLink,o as getLiquidForAppBlock,p as getYotpoFormCode,r as getYotpoUri};
@@ -1,11 +1,36 @@
1
- import{makeStyleResponsive as o,template as t}from"@gem-sdk/core";let e=({setting:e,advanced:r})=>{let{widgetType:a,align:i}=e??{};return t`
1
+ import{makeStyleResponsive as e,template as t}from"@gem-sdk/core";let o=({setting:o,advanced:a})=>{let{widgetType:r,align:i}=o??{};return t`
2
2
  <div
3
- class="${r?.cssClass}"
4
- style="${{...o("ta",i)}}"
3
+ class="${a?.cssClass}"
4
+ style="${{...e("ta",i)}}"
5
5
  >
6
6
  <klarna-placement
7
- data-key=${(()=>{switch(a){case"topStripPromotionBadge":default:return"top-strip-promotion-badge";case"topStripPromotionAutoSize":return"top-strip-promotion-auto-size";case"footerPromotionAutoSize":return"footer-promotion-auto-size";case"infoPage":return"info-page";case"creditPromotionBadge":return"credit-promotion-badge";case"creditPromotionAutoSize":return"credit-promotion-auto-size"}})()}
7
+ data-key=${(()=>{switch(r){case"topStripPromotionBadge":default:return"top-strip-promotion-badge";case"topStripPromotionAutoSize":return"top-strip-promotion-auto-size";case"footerPromotionAutoSize":return"footer-promotion-auto-size";case"infoPage":return"info-page";case"creditPromotionBadge":return"credit-promotion-badge";case"creditPromotionAutoSize":return"credit-promotion-auto-size"}})()}
8
8
  data-locale={{ request.locale.iso_code }}-{{ localization.country.iso_code }}
9
9
  ></klarna-placement>
10
+ <script>
11
+ (function () {
12
+ var placement = document.currentScript.previousElementSibling;
13
+ var index = 0;
14
+ var id = 'gp-klarna-placement';
15
+ while (document.getElementById(id)) {
16
+ id = 'gp-klarna-placement-' + (++index);
17
+ }
18
+ placement.id = id;
19
+
20
+ // Register with the Shopify app so it initializes the SDK and validates the market.
21
+ var placements = window.klarnaAppBlocksManager || (window.appBlockPlacements ||= []);
22
+ placements.push({
23
+ selector: id,
24
+ dataKey: placement.getAttribute('data-key'),
25
+ productVariants: {{ product.variants | json | replace: '<', '\\u003c' }} || [],
26
+ templateName: {{ template.name | json }},
27
+ storefrontCurrency: {{ cart.currency.iso_code | json }},
28
+ storefrontCountry: {{ localization.country.iso_code | json }},
29
+ storefrontLanguage: {{ request.locale.iso_code | split: '-' | first | json }},
30
+ variantPrice: {{ product.selected_or_first_available_variant.price | default: 0 | append: '' | json }},
31
+ cartPrice: {{ cart.total_price | default: 0 | append: '' | json }}
32
+ });
33
+ })();
34
+ </script>
10
35
  </div>
11
- `};export{e as default};
36
+ `};export{o as default};
@@ -1,4 +1,4 @@
1
- import e from"../../configs/AftershipEmailMarketingsms.js";import{get3rdPartyInstallLink as t}from"../../common/helpers.js";import i from"./uiV2.js";let l={tag:e.tag,label:e.label,icon:'<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/b8bc9d365792ea16185361099864182c/icon/COb3zP2Pwv4CEAE=.png?width=22&height=22">',editorConfigs:{component:{isThirdParty:!0}},presets:[{id:e.id,name:e.label,hideTextContent:!0,icon:{desktop:`<div class="w-full flex flex-col items-center">
1
+ import e from"../../configs/AftershipEmailMarketingsms.js";import{get3rdPartyInstallLink as t,get3rdPartyAppStoreLink as i}from"../../common/helpers.js";import l from"./uiV2.js";let a={tag:e.tag,label:e.label,icon:'<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/b8bc9d365792ea16185361099864182c/icon/COb3zP2Pwv4CEAE=.png?width=22&height=22">',editorConfigs:{component:{isThirdParty:!0}},presets:[{id:e.id,name:e.label,hideTextContent:!0,icon:{desktop:`<div class="w-full flex flex-col items-center">
2
2
  <img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/b8bc9d365792ea16185361099864182c/icon/COb3zP2Pwv4CEAE=.png?width=22&height=22">
3
3
  <span class="preset-item-title">AfterShip Email Marketing,SMS</span>
4
- </div>`},components:[{tag:e.tag}]}],settings:[{id:"setting",controls:[{id:"appBlockId",type:"input",default:""},{id:"widgetType",label:"Choose widget",type:"select",options:[{label:"Embeded_form",value:"embeded_form"}],default:"embeded_form"},{id:"install",type:"open-link",target:"_blank",linkType:"install",href:t({handle:"aftership-email-marketing-sms"}),appName:e.label},{id:"formId",type:"input",default:""},{id:"getFormId",type:"group"},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"https://marketing.automizely.com",appName:e.label},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:[],uiV2:i};export{l as default};
4
+ </div>`},components:[{tag:e.tag}]}],settings:[{id:"setting",controls:[{id:"appBlockId",type:"input",default:""},{id:"widgetType",label:"Choose widget",type:"select",options:[{label:"Embeded_form",value:"embeded_form"}],default:"embeded_form"},{id:"install",type:"open-link",target:"_blank",linkType:"install",href:t({handle:"aftership-email-marketing-sms"}),appName:e.label},{id:"formId",type:"input",default:""},{id:"getFormId",type:"group"},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:i({handle:"automizely-messages"}),appName:e.label},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:[],uiV2:l};export{a as default};
@@ -1,4 +1,4 @@
1
- import e from"../../configs/AirProductReviewsAppUgc.js";import{get3rdPartyInstallLink as i}from"../../common/helpers.js";import t from"./uiV2.js";let a={tag:e.tag,label:e.label,icon:'<img class="gp-w-6 gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/d636d73c74c4684a910d23211e0e6ddf/icon/CJbfpYa_9oYDEAE=.jpeg?width=22&height=22">',editorConfigs:{component:{isThirdParty:!0}},presets:[{id:e.id,name:e.label,hideTextContent:!0,icon:{desktop:`<div class="w-full flex flex-col items-center">
1
+ import e from"../../configs/AirProductReviewsAppUgc.js";import{get3rdPartyInstallLink as i,get3rdPartyAppStoreLink as t}from"../../common/helpers.js";import l from"./uiV2.js";let a={tag:e.tag,label:e.label,icon:'<img class="gp-w-6 gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/d636d73c74c4684a910d23211e0e6ddf/icon/CJbfpYa_9oYDEAE=.jpeg?width=22&height=22">',editorConfigs:{component:{isThirdParty:!0}},presets:[{id:e.id,name:e.label,hideTextContent:!0,icon:{desktop:`<div class="w-full flex flex-col items-center">
2
2
  <img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/d636d73c74c4684a910d23211e0e6ddf/icon/CJbfpYa_9oYDEAE=.jpeg?width=22&height=22">
3
3
  <span class="preset-item-title">Air: Product Reviews app & UGC</span>
4
- </div>`},components:[{tag:e.tag}]}],settings:[{id:"setting",controls:[{id:"install",type:"open-link",target:"_blank",linkType:"install",href:i({handle:"air-product-reviews-app-ugc"}),appName:e.label},{id:"widgetType",label:"Choose widget",type:"select",options:[{label:"Review box",value:"review_box"},{label:"Star Rating",value:"star_rating"},{label:"Review carousel",value:"review_carousel"}],default:"review_box"},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"https://admin.shopify.com/?redirect=/apps/air-reviews-1",appName:e.label},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:[],uiV2:t};export{a as default};
4
+ </div>`},components:[{tag:e.tag}]}],settings:[{id:"setting",controls:[{id:"install",type:"open-link",target:"_blank",linkType:"install",href:i({handle:"air-product-reviews-app-ugc"}),appName:e.label},{id:"widgetType",label:"Choose widget",type:"select",options:[{label:"Review box",value:"review_box"},{label:"Star Rating",value:"star_rating"},{label:"Review carousel",value:"review_carousel"}],default:"review_box"},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:t({handle:"air-reviews"}),appName:e.label},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:[],uiV2:l};export{a as default};
@@ -1,6 +1,6 @@
1
- import{get3rdPartyInstallLink as e}from"../../common/helpers.js";import t from"../../configs/AliReviews.js";import l from"./uiV2.js";let i=[{value:"starRating",label:"Star Rating"},{value:"reviewBox",label:"Review box"}],a={tag:t.tag,label:t.label,icon:`<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="${t.logoUrl}?width=22&height=22">`,editorConfigs:{component:{isThirdParty:!0}},presets:[{id:t.id,name:t.label,hideTextContent:!0,icon:{desktop:`
1
+ import{get3rdPartyInstallLink as e,get3rdPartyAppStoreLink as l}from"../../common/helpers.js";import t from"../../configs/AliReviews.js";import i from"./uiV2.js";let a=[{value:"starRating",label:"Star Rating"},{value:"reviewBox",label:"Review box"}],n={tag:t.tag,label:t.label,icon:`<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="${t.logoUrl}?width=22&height=22">`,editorConfigs:{component:{isThirdParty:!0}},presets:[{id:t.id,name:t.label,hideTextContent:!0,icon:{desktop:`
2
2
  <div class="w-full flex flex-col items-center">
3
3
  <img class="w-24 border border-dark-200 rounded-medium" src="${t.logoUrl}?width=22&height=22">
4
4
  <span class="preset-item-title">${t.label}</span>
5
5
  </div>
6
- `},components:[{tag:t.tag}]}],settings:[{id:"setting",controls:[{id:"install",type:"open-link",target:"_blank",linkType:"install",href:e({handle:"ali-reviews-kudosi-reviews"}),appName:t.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"https://admin.shopify.com/?redirect=/apps/ali-reviews",appName:t.label},{id:"widgetType",label:"Choose widget",type:"select",default:"starRating",options:i},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:[],uiV2:l};export{i as WidgetOptions,a as default};
6
+ `},components:[{tag:t.tag}]}],settings:[{id:"setting",controls:[{id:"install",type:"open-link",target:"_blank",linkType:"install",href:e({handle:"ali-reviews-kudosi-reviews"}),appName:t.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:l({handle:"ali-reviews"}),appName:t.label},{id:"widgetType",label:"Choose widget",type:"select",default:"starRating",options:a},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:[],uiV2:i};export{a as WidgetOptions,n as default};
@@ -1,4 +1,4 @@
1
- import{get3rdPartyInstallLink as e}from"../../common/helpers.js";import t from"../../configs/AlsoBoughtCbb.js";import i from"./uiV2.js";let l={tag:t.tag,label:t.label,icon:'<img class="gp-w-6 gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/55a595d2413473dd0c6e6a315690886a/icon/CITkod-6vf0CEAE=.png?width=22&height=22">',editorConfigs:{placeholder:{flowPage:"GP_PRODUCT"},component:{isThirdParty:!0}},presets:[{id:t.id,name:t.label,hideTextContent:!0,icon:{desktop:`<div class="w-full flex flex-col items-center">
1
+ import{get3rdPartyInstallLink as e,get3rdPartyAppStoreLink as t}from"../../common/helpers.js";import l from"../../configs/AlsoBoughtCbb.js";import i from"./uiV2.js";let a={tag:l.tag,label:l.label,icon:'<img class="gp-w-6 gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/55a595d2413473dd0c6e6a315690886a/icon/CITkod-6vf0CEAE=.png?width=22&height=22">',editorConfigs:{placeholder:{flowPage:"GP_PRODUCT"},component:{isThirdParty:!0}},presets:[{id:l.id,name:l.label,hideTextContent:!0,icon:{desktop:`<div class="w-full flex flex-col items-center">
2
2
  <img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/55a595d2413473dd0c6e6a315690886a/icon/CITkod-6vf0CEAE=.png?width=22&height=22">
3
3
  <span class="preset-item-title">Also Bought • CBB</span>
4
- </div>`},components:[{tag:t.tag}]}],settings:[{id:"setting",controls:[{id:"install",type:"open-link",target:"_blank",linkType:"install",href:e({handle:"also-bought-cbb"}),appName:t.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"https://admin.shopify.com/?redirect=/apps/also-bought",appName:t.label},{id:"guideId",type:"group"},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:[],uiV2:i};export{l as default};
4
+ </div>`},components:[{tag:l.tag}]}],settings:[{id:"setting",controls:[{id:"install",type:"open-link",target:"_blank",linkType:"install",href:e({handle:"also-bought-cbb"}),appName:l.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:t({handle:"also-bought"}),appName:l.label},{id:"guideId",type:"group"},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:[],uiV2:i};export{a as default};
@@ -1,4 +1,4 @@
1
- import e from"../../configs/AovBundlesVolumeDiscounts.js";import l from"./uiV2.js";let t={tag:e.tag,label:e.label,icon:'<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/0cf2a4359de6605e10e663ebf70249cb/icon/CI6xy4Hqu44DEAE=.png?width=22&height=22">',editorConfigs:{placeholder:{flowTag:["Product"]},component:{isThirdParty:!0}},presets:[{id:e.id,name:e.label,hideTextContent:!0,icon:{desktop:`<div class="w-full flex flex-col items-center">
1
+ import{get3rdPartyAppStoreLink as e}from"../../common/helpers.js";import l from"../../configs/AovBundlesVolumeDiscounts.js";import t from"./uiV2.js";let i={tag:l.tag,label:l.label,icon:'<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/0cf2a4359de6605e10e663ebf70249cb/icon/CI6xy4Hqu44DEAE=.png?width=22&height=22">',editorConfigs:{placeholder:{flowTag:["Product"]},component:{isThirdParty:!0}},presets:[{id:l.id,name:l.label,hideTextContent:!0,icon:{desktop:`<div class="w-full flex flex-col items-center">
2
2
  <img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/0cf2a4359de6605e10e663ebf70249cb/icon/CI6xy4Hqu44DEAE=.png?width=22&height=22">
3
3
  <span class="preset-item-title">AOV Bundles Volume Discounts</span>
4
- </div>`},components:[{tag:e.tag}]}],settings:[{id:"setting",controls:[{id:"appBlockId",type:"input",default:""},{id:"widgetType",label:"Choose widget",type:"select",options:[{label:"AOV Bundle Builder",value:"offer-bundle-builder"},{label:"AOV Child Product List",value:"offer-fixed"},{label:"AOV Frequently Bought",value:"offer-inline"},{label:"AOV Mix Match Bundle",value:"mix-match-offer-inline"},{label:"AOV Volume Discount",value:"offer-volume"}],default:"offer-bundle-builder"},{id:"install",type:"open-link",target:"_blank",linkType:"install",href:"",appName:e.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"https://admin.shopify.com/?redirect=/apps/aov-bundle-upsell",appName:e.label},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:[],uiV2:l};export{t as default};
4
+ </div>`},components:[{tag:l.tag}]}],settings:[{id:"setting",controls:[{id:"appBlockId",type:"input",default:""},{id:"widgetType",label:"Choose widget",type:"select",options:[{label:"AOV Bundle Builder",value:"offer-bundle-builder"},{label:"AOV Child Product List",value:"offer-fixed"},{label:"AOV Frequently Bought",value:"offer-inline"},{label:"AOV Mix Match Bundle",value:"mix-match-offer-inline"},{label:"AOV Volume Discount",value:"offer-volume"}],default:"offer-bundle-builder"},{id:"install",type:"open-link",target:"_blank",linkType:"install",href:"",appName:l.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:e({handle:"aov-bundle-upsell"}),appName:l.label},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:[],uiV2:t};export{i as default};
@@ -1,4 +1,4 @@
1
- import e from"../../configs/AovFreeGiftBuyXGetYBogo.js";import t from"./uiV2.js";let a={tag:e.tag,label:e.label,icon:'<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/b957b53ca225f32cac0ad2cd41f89a1f/icon/CI6dsMjDr4cDEAE=.png?width=22&height=22">',editorConfigs:{placeholder:{flowPage:"GP_PRODUCT"},component:{isThirdParty:!0}},presets:[{id:e.id,name:e.label,hideTextContent:!0,icon:{desktop:`<div class="w-full flex flex-col items-center">
1
+ import{get3rdPartyAppStoreLink as e}from"../../common/helpers.js";import t from"../../configs/AovFreeGiftBuyXGetYBogo.js";import a from"./uiV2.js";let i={tag:t.tag,label:t.label,icon:'<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/b957b53ca225f32cac0ad2cd41f89a1f/icon/CI6dsMjDr4cDEAE=.png?width=22&height=22">',editorConfigs:{placeholder:{flowPage:"GP_PRODUCT"},component:{isThirdParty:!0}},presets:[{id:t.id,name:t.label,hideTextContent:!0,icon:{desktop:`<div class="w-full flex flex-col items-center">
2
2
  <img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/b957b53ca225f32cac0ad2cd41f89a1f/icon/CI6dsMjDr4cDEAE=.png?width=22&height=22">
3
3
  <span class="preset-item-title">AOV Free Gift Buy X Get Y BOGO</span>
4
- </div>`},components:[{tag:e.tag}]}],settings:[{id:"setting",controls:[{id:"appBlockId",type:"input",default:""},{id:"widgetType",label:"Choose widget",type:"select",options:[{label:"AOV Promotion Card",value:"avada-promotion-card"}],default:"avada-promotion-card"},{id:"install",type:"open-link",target:"_blank",linkType:"install",href:"",appName:e.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"https://admin.shopify.com/?redirect=/apps/avada-upsell",appName:e.label},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:[],uiV2:t};export{a as default};
4
+ </div>`},components:[{tag:t.tag}]}],settings:[{id:"setting",controls:[{id:"appBlockId",type:"input",default:""},{id:"widgetType",label:"Choose widget",type:"select",options:[{label:"AOV Promotion Card",value:"avada-promotion-card"}],default:"avada-promotion-card"},{id:"install",type:"open-link",target:"_blank",linkType:"install",href:"",appName:t.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:e({handle:"avada-upsell"}),appName:t.label},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:[],uiV2:a};export{i as default};