@gem-sdk/components 23.1.2 → 24.0.0-dev.10

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 (519) 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/attrs.js +1 -1
  74. package/dist/cjs/product/components/product-images-v2/common/common.js +1 -1
  75. package/dist/cjs/product/components/product-images-v2/components/child/ProductFeaturedImageOnly.js +1 -1
  76. package/dist/cjs/product/components/product-images-v2/components/child/ProductGalleryGrid.js +1 -1
  77. package/dist/cjs/product/components/product-images-v2/components/feature-gallery/FeatureImageWithGallery.liquid.js +41 -41
  78. package/dist/cjs/product/components/product-images-v2/components/gallery-carousel/GalleryCarousel.js +1 -1
  79. package/dist/cjs/product/components/product-images-v2/components/gallery-carousel/GalleryCarousel.liquid.js +13 -13
  80. package/dist/cjs/product/components/product-images-v2/components/gallery-grid/GalleryGrid.liquid.js +23 -23
  81. package/dist/cjs/product/components/product-images-v2/components/lightbox/ProductImagesLightBox.js +1 -1
  82. package/dist/cjs/product/components/product-images-v3/ProductImagesV3.liquid.js +3 -3
  83. package/dist/cjs/product/components/product-images-v3/common/attrs.js +1 -1
  84. package/dist/cjs/product/components/product-images-v3/common/common.js +1 -1
  85. package/dist/cjs/product/components/product-images-v3/components/child/ProductFeaturedImageOnly.js +1 -1
  86. package/dist/cjs/product/components/product-images-v3/components/child/ProductGalleryGrid.js +1 -1
  87. package/dist/cjs/product/components/product-images-v3/components/feature-gallery/FeatureImageWithGallery.js +1 -1
  88. package/dist/cjs/product/components/product-images-v3/components/feature-gallery/FeatureImageWithGallery.liquid.js +40 -40
  89. package/dist/cjs/product/components/product-images-v3/components/feature-gallery/FeatureImageWithGalleryEmbla.liquid.js +40 -40
  90. package/dist/cjs/product/components/product-images-v3/components/gallery-carousel/GalleryCarousel.js +1 -1
  91. package/dist/cjs/product/components/product-images-v3/components/gallery-carousel/GalleryCarousel.liquid.js +12 -12
  92. package/dist/cjs/product/components/product-images-v3/components/gallery-carousel/GalleryCarouselEmbla.liquid.js +12 -12
  93. package/dist/cjs/product/components/product-images-v3/components/gallery-grid/GalleryGrid.liquid.js +23 -23
  94. package/dist/cjs/product/components/product-images-v3/components/lightbox/ProductImagesLightBox.js +1 -1
  95. package/dist/cjs/product/components/product-images-v3/composables/getProductImagesStyles.js +1 -1
  96. package/dist/cjs/product/components/product-list/ProductList.js +1 -1
  97. package/dist/cjs/product/components/product-list/ProductListCarouselLayout.js +1 -1
  98. package/dist/cjs/product/components/product-list/ProductListCarouselLayout.liquid.js +9 -7
  99. package/dist/cjs/product/components/product-list/ProductListGridLayout.js +1 -1
  100. package/dist/cjs/product/components/product-list/ProductListGridLayout.liquid.js +16 -14
  101. package/dist/cjs/product/components/product-list/common/helpers.js +1 -1
  102. package/dist/cjs/product/components/product-list/common/imagePriority.js +17 -0
  103. package/dist/cjs/product/components/product-list/common/imagePriorityHints.js +1 -0
  104. package/dist/cjs/product/components/product-list-v3/ProductList.js +1 -1
  105. package/dist/cjs/product/components/product-list-v3/ProductListCarouselLayout.js +1 -1
  106. package/dist/cjs/product/components/product-list-v3/ProductListCarouselLayout.liquid.js +11 -9
  107. package/dist/cjs/product/components/product-list-v3/ProductListGridLayout.js +1 -1
  108. package/dist/cjs/product/components/product-list-v3/ProductListGridLayout.liquid.js +16 -14
  109. package/dist/cjs/product/components/product-price/hooks/useGpPrice.js +1 -1
  110. package/dist/cjs/product/components/product-wrap/Product.js +1 -1
  111. package/dist/cjs/product/components/product-wrap/hook/useProductSetting.js +1 -1
  112. package/dist/cjs/product/helpers/product-bundle.js +1 -1
  113. package/dist/cjs/product/helpers/productImagesDrag.js +1 -0
  114. package/dist/cjs/product/index.js +1 -1
  115. package/dist/cjs/product/settings/product-image-v2/configs/setting-v2/ProductFeatureImage.js +2 -2
  116. package/dist/cjs/product/settings/product-image-v2/configs/setting-v2/ProductGalleryImage.js +2 -2
  117. package/dist/cjs/product/settings/product-image-v2/configs/setting-v2/index.js +1 -1
  118. package/dist/cjs/product/settings/product-image-v2/configs/ui-v2.js +1 -1
  119. package/dist/cjs/product/settings/product-image-v3/configs/setting-v2/ProductFeatureImage.js +2 -2
  120. package/dist/cjs/product/settings/product-image-v3/configs/setting-v2/ProductGalleryImage.js +2 -2
  121. package/dist/cjs/product/settings/product-image-v3/configs/setting-v2/index.js +1 -1
  122. package/dist/cjs/product/settings/product-image-v3/configs/ui-v2.js +1 -1
  123. package/dist/cjs/stock-counter/common/attrs.js +1 -1
  124. package/dist/cjs/stock-counter/common/helpers.js +23 -23
  125. package/dist/cjs/stock-counter/hooks/useStockCounter.js +1 -1
  126. package/dist/cjs/third-party/common/helpers.js +4 -4
  127. package/dist/cjs/third-party/components/KlarnaMessaging.liquid.js +29 -4
  128. package/dist/cjs/third-party/settings/AftershipEmailMarketingsms/index.js +1 -1
  129. package/dist/cjs/third-party/settings/AirProductReviewsAppUgc/index.js +2 -2
  130. package/dist/cjs/third-party/settings/AliReviews/index.js +1 -1
  131. package/dist/cjs/third-party/settings/AlsoBoughtCbb/index.js +1 -1
  132. package/dist/cjs/third-party/settings/AovBundlesVolumeDiscounts/index.js +2 -2
  133. package/dist/cjs/third-party/settings/AovFreeGiftBuyXGetYBogo/index.js +2 -2
  134. package/dist/cjs/third-party/settings/AppointmentBookingCowlendar/index.js +2 -2
  135. package/dist/cjs/third-party/settings/AppstleBundlesDiscounts/index.js +2 -2
  136. package/dist/cjs/third-party/settings/AppstleLoyaltyRewardProgram/index.js +1 -1
  137. package/dist/cjs/third-party/settings/AppstleSubscriptions/index.js +1 -1
  138. package/dist/cjs/third-party/settings/BestBuyFulfillment/index.js +1 -1
  139. package/dist/cjs/third-party/settings/BfSizeChartSizeGuide/index.js +1 -1
  140. package/dist/cjs/third-party/settings/BirdChime/index.js +4 -4
  141. package/dist/cjs/third-party/settings/BloyRewardsProgramLoyalty/index.js +1 -1
  142. package/dist/cjs/third-party/settings/Bogos/index.js +1 -1
  143. package/dist/cjs/third-party/settings/BoldProductOptions/index.js +4 -4
  144. package/dist/cjs/third-party/settings/BoldSubscriptions/index.js +1 -1
  145. package/dist/cjs/third-party/settings/BonLoyaltyRewardsReferrals/index.js +1 -1
  146. package/dist/cjs/third-party/settings/BonySubscriptionsApp/index.js +2 -2
  147. package/dist/cjs/third-party/settings/BoostAISearchDiscovery/index.js +1 -1
  148. package/dist/cjs/third-party/settings/Bundler/index.js +1 -1
  149. package/dist/cjs/third-party/settings/CleanSizeCharts/index.js +1 -1
  150. package/dist/cjs/third-party/settings/CrossSellCartUpsell/index.js +1 -1
  151. package/dist/cjs/third-party/settings/CustomProductOptionsVariant/index.js +2 -2
  152. package/dist/cjs/third-party/settings/DealeasyVolumeDiscounts/index.js +2 -2
  153. package/dist/cjs/third-party/settings/DiscountyBulkDiscountSales/index.js +2 -2
  154. package/dist/cjs/third-party/settings/EasifyProductOptions/index.js +1 -1
  155. package/dist/cjs/third-party/settings/EasyBundleBuilderSkailama/index.js +2 -2
  156. package/dist/cjs/third-party/settings/EasySellCOD/index.js +4 -4
  157. package/dist/cjs/third-party/settings/EcoboostifyShoppableReelUgc/index.js +2 -2
  158. package/dist/cjs/third-party/settings/EcomsendBackInStockAlert/index.js +1 -1
  159. package/dist/cjs/third-party/settings/EssentPreorderBackInStock/index.js +2 -2
  160. package/dist/cjs/third-party/settings/EssentialAnnouncementBar/index.js +1 -1
  161. package/dist/cjs/third-party/settings/EssentialCountdownTimerBar/index.js +2 -2
  162. package/dist/cjs/third-party/settings/EstimatedDeliveryDatePlus/index.js +2 -2
  163. package/dist/cjs/third-party/settings/FastBundleBundlesDiscounts/index.js +2 -2
  164. package/dist/cjs/third-party/settings/FeraReviews/index.js +1 -1
  165. package/dist/cjs/third-party/settings/FirePush/index.js +1 -1
  166. package/dist/cjs/third-party/settings/FlyBundlesUpsellsFbt/index.js +1 -1
  167. package/dist/cjs/third-party/settings/FordeerProductLabels/index.js +2 -2
  168. package/dist/cjs/third-party/settings/FrequentlyBoughtTogether/index.js +1 -1
  169. package/dist/cjs/third-party/settings/GloColorSwatchvariantImage/index.js +1 -1
  170. package/dist/cjs/third-party/settings/GloboProductOptionsVariant/index.js +1 -1
  171. package/dist/cjs/third-party/settings/GoogleReviewsByReputon/index.js +1 -1
  172. package/dist/cjs/third-party/settings/Growave/index.js +1 -1
  173. package/dist/cjs/third-party/settings/GrowthSuiteDiscountCodes/index.js +2 -2
  174. package/dist/cjs/third-party/settings/HextomCountdownTimerBar/index.js +2 -2
  175. package/dist/cjs/third-party/settings/HextomFreeShippingBar/index.js +2 -2
  176. package/dist/cjs/third-party/settings/HulkFormBuilder/index.js +1 -1
  177. package/dist/cjs/third-party/settings/HulkProductOptions/index.js +1 -1
  178. package/dist/cjs/third-party/settings/InfiniteOptions/index.js +1 -1
  179. package/dist/cjs/third-party/settings/Instafeed/index.js +1 -1
  180. package/dist/cjs/third-party/settings/InstasellShoppableInstagram/index.js +1 -1
  181. package/dist/cjs/third-party/settings/JudgemeReviews/index.js +1 -1
  182. package/dist/cjs/third-party/settings/JunipProductReviewsUgc/index.js +1 -1
  183. package/dist/cjs/third-party/settings/KachingBundles/index.js +1 -1
  184. package/dist/cjs/third-party/settings/KachingSubscriptionsApp/index.js +1 -1
  185. package/dist/cjs/third-party/settings/KingProductOptions/index.js +1 -1
  186. package/dist/cjs/third-party/settings/KiteFreeGiftDiscount/index.js +2 -2
  187. package/dist/cjs/third-party/settings/KlarnaMessaging/index.js +2 -2
  188. package/dist/cjs/third-party/settings/Klaviyo/index.js +4 -4
  189. package/dist/cjs/third-party/settings/KoalaBundleQuantityDiscount/index.js +1 -1
  190. package/dist/cjs/third-party/settings/LaiProductReviews/index.js +1 -1
  191. package/dist/cjs/third-party/settings/LoloyalLoyaltyReferrals/index.js +1 -1
  192. package/dist/cjs/third-party/settings/LoopSubscriptions/index.js +1 -1
  193. package/dist/cjs/third-party/settings/LooxReviews/index.js +1 -1
  194. package/dist/cjs/third-party/settings/MaxbundleProductBundles/index.js +1 -1
  195. package/dist/cjs/third-party/settings/MbcBundleVolumeDiscount/index.js +1 -1
  196. package/dist/cjs/third-party/settings/MyappgurusProductReviews/index.js +1 -1
  197. package/dist/cjs/third-party/settings/NotifyBackInStockPreOrder/index.js +1 -1
  198. package/dist/cjs/third-party/settings/OkendoReviewsLoyalty/index.js +1 -1
  199. package/dist/cjs/third-party/settings/Omnisend/index.js +1 -1
  200. package/dist/cjs/third-party/settings/Opinew/index.js +1 -1
  201. package/dist/cjs/third-party/settings/ParcelPanel/index.js +1 -1
  202. package/dist/cjs/third-party/settings/PickyStory/index.js +4 -4
  203. package/dist/cjs/third-party/settings/PowerfulContactFormBuilder/index.js +1 -1
  204. package/dist/cjs/third-party/settings/PreorderNowPreOrderPq/index.js +2 -2
  205. package/dist/cjs/third-party/settings/PreorderNowWodPresale/index.js +1 -1
  206. package/dist/cjs/third-party/settings/ProductOptionsCustomizer/index.js +2 -2
  207. package/dist/cjs/third-party/settings/ProductOptionsVariantOption/index.js +2 -2
  208. package/dist/cjs/third-party/settings/PumperBundlesVolumeDiscount/index.js +2 -2
  209. package/dist/cjs/third-party/settings/PushOwl/index.js +1 -1
  210. package/dist/cjs/third-party/settings/QikifyUpsell/index.js +2 -2
  211. package/dist/cjs/third-party/settings/RapiBundleQuantityBreaks/index.js +2 -2
  212. package/dist/cjs/third-party/settings/RechargeSubscriptions/index.js +1 -1
  213. package/dist/cjs/third-party/settings/RecurpaySubscriptionApp/index.js +1 -1
  214. package/dist/cjs/third-party/settings/Releasit/index.js +1 -1
  215. package/dist/cjs/third-party/settings/RequestQuoteHidePrice/index.js +1 -1
  216. package/dist/cjs/third-party/settings/ReviewxpoProductReviewsApp/index.js +1 -1
  217. package/dist/cjs/third-party/settings/Rivyo/index.js +1 -1
  218. package/dist/cjs/third-party/settings/Ryviu/index.js +1 -1
  219. package/dist/cjs/third-party/settings/SealSubscriptions/index.js +2 -2
  220. package/dist/cjs/third-party/settings/SegunoEmailMarketing/index.js +1 -1
  221. package/dist/cjs/third-party/settings/Selleasy/index.js +1 -1
  222. package/dist/cjs/third-party/settings/SeoantTrustBadgesIcon/index.js +2 -2
  223. package/dist/cjs/third-party/settings/ShopifyForms/index.js +1 -1
  224. package/dist/cjs/third-party/settings/ShopifySubscriptions/index.js +2 -2
  225. package/dist/cjs/third-party/settings/SimpleBundlesKits/index.js +1 -1
  226. package/dist/cjs/third-party/settings/SkioSubscriptionsYcS20/index.js +1 -1
  227. package/dist/cjs/third-party/settings/SmartSearchBarAndFilters/index.js +4 -4
  228. package/dist/cjs/third-party/settings/SproutPlantTreesGrowSales/index.js +1 -1
  229. package/dist/cjs/third-party/settings/Stamped.js +1 -1
  230. package/dist/cjs/third-party/settings/StellarDeliveryDatePickup/index.js +1 -1
  231. package/dist/cjs/third-party/settings/SubifySubscriptionsApp/index.js +2 -2
  232. package/dist/cjs/third-party/settings/TagembedSocialPostReview/index.js +2 -2
  233. package/dist/cjs/third-party/settings/TagshopShoppableVideosUgc/index.js +2 -2
  234. package/dist/cjs/third-party/settings/TeeinblueProductPersonalizer/index.js +2 -2
  235. package/dist/cjs/third-party/settings/TrustBadgesBear/index.js +2 -2
  236. package/dist/cjs/third-party/settings/TrustMe/index.js +4 -4
  237. package/dist/cjs/third-party/settings/TrustedsiteTrustBadges/index.js +1 -1
  238. package/dist/cjs/third-party/settings/Trustoo/index.js +1 -1
  239. package/dist/cjs/third-party/settings/TrustreviewsProductReviews/index.js +1 -1
  240. package/dist/cjs/third-party/settings/TrustshopProductReviews/index.js +1 -1
  241. package/dist/cjs/third-party/settings/UltimateSalesBoost/index.js +1 -1
  242. package/dist/cjs/third-party/settings/UnlimitedBundlesDiscounts/index.js +2 -2
  243. package/dist/cjs/third-party/settings/UppromoteAffiliateMarketing/setting.js +2 -2
  244. package/dist/cjs/third-party/settings/Vitals/index.js +1 -1
  245. package/dist/cjs/third-party/settings/WcWishlistBackInStock/index.js +1 -1
  246. package/dist/cjs/third-party/settings/WhatmoreShoppableVideosreel/index.js +1 -1
  247. package/dist/cjs/third-party/settings/WideBundle/index.js +4 -4
  248. package/dist/cjs/third-party/settings/Wiser/index.js +1 -1
  249. package/dist/cjs/third-party/settings/WishlistKing/index.js +2 -2
  250. package/dist/cjs/third-party/settings/WishlistPlus/index.js +2 -2
  251. package/dist/cjs/third-party/settings/YotpoReviews/index.js +1 -1
  252. package/dist/cjs/video/common/attrs.js +1 -1
  253. package/dist/cjs/video/components/HTML5Embed.js +1 -1
  254. package/dist/cjs/video/components/HTML5Embed.liquid.js +11 -11
  255. package/dist/cjs/video/components/LiteVimeoEmbed.liquid.js +11 -11
  256. package/dist/cjs/video/components/LiteYouTubeEmbed.js +1 -1
  257. package/dist/cjs/video/components/LiteYouTubeEmbed.liquid.js +11 -11
  258. package/dist/cjs/video/components/Video.liquid.js +1 -1
  259. package/dist/esm/article/components/ArticleImage.js +1 -1
  260. package/dist/esm/article/components/ArticleImage.liquid.js +7 -7
  261. package/dist/esm/article/components/ArticleList.js +1 -1
  262. package/dist/esm/article/index.js +1 -1
  263. package/dist/esm/article/settings/configs/article-image/settings.js +1 -1
  264. package/dist/esm/article/settings/configs/article-image/ui-v2.js +1 -1
  265. package/dist/esm/builder.js +1 -1
  266. package/dist/esm/button/common/helpers.js +2 -2
  267. package/dist/esm/cart/components/CartList.js +1 -1
  268. package/dist/esm/cart/index.js +1 -1
  269. package/dist/esm/collection/index.js +1 -1
  270. package/dist/esm/common/components/Loading.js +1 -1
  271. package/dist/esm/common/const.js +1 -1
  272. package/dist/esm/common/helpers.js +1 -0
  273. package/dist/esm/common/hooks/useElementWidth.js +1 -0
  274. package/dist/esm/common/hooks/useLoadingProgress.js +1 -0
  275. package/dist/esm/grid/components/row/Row.liquid.js +10 -10
  276. package/dist/esm/grid/components/section/Section.js +1 -1
  277. package/dist/esm/grid/index.js +1 -1
  278. package/dist/esm/header/components/kind/basic/index.js +1 -1
  279. package/dist/esm/header/components/kind/modern/index.js +1 -1
  280. package/dist/esm/header/index.js +1 -1
  281. package/dist/esm/hero-banner/common/styles.js +1 -1
  282. package/dist/esm/hero-banner/components/HeroBannerItem.js +1 -1
  283. package/dist/esm/hero-banner/components/HeroBannerItem.liquid.js +10 -10
  284. package/dist/esm/hero-banner/index.js +1 -1
  285. package/dist/esm/image/common/adaptiveSources.js +1 -0
  286. package/dist/esm/image/common/attrs.js +1 -1
  287. package/dist/esm/image/common/classes.js +1 -1
  288. package/dist/esm/image/common/helpers.js +2 -2
  289. package/dist/esm/image/common/liquidSrcset.js +1 -0
  290. package/dist/esm/image/common/listContext.js +1 -0
  291. package/dist/esm/image/common/listImageContext.js +1 -0
  292. package/dist/esm/image/common/sizes.js +1 -0
  293. package/dist/esm/image/common/srcset.js +1 -0
  294. package/dist/esm/image/components/AdaptiveImage.js +1 -1
  295. package/dist/esm/image/components/AdaptiveImage.liquid.js +11 -13
  296. package/dist/esm/image/components/Image.js +1 -1
  297. package/dist/esm/image/components/Image.liquid.js +3 -3
  298. package/dist/esm/image/components/NextImage.js +1 -1
  299. package/dist/esm/image/components/NextImage.liquid.js +5 -6
  300. package/dist/esm/image/constants.js +1 -1
  301. package/dist/esm/image/index.js +1 -1
  302. package/dist/esm/image/settings/configs/settings.js +1 -1
  303. package/dist/esm/image/settings/configs/ui-v2.js +1 -1
  304. package/dist/esm/image-comparison/common/attrs.js +1 -1
  305. package/dist/esm/image-comparison/components/CompareImage.js +1 -1
  306. package/dist/esm/image-comparison/components/CompareImage.liquid.js +17 -17
  307. package/dist/esm/image-comparison/components/ImageComparison.liquid.js +3 -3
  308. package/dist/esm/image-comparison/index.js +1 -1
  309. package/dist/esm/image-comparison/settings/configs/settings.js +1 -1
  310. package/dist/esm/image-comparison/settings/configs/ui-v2.js +1 -1
  311. package/dist/esm/index.js +1 -1
  312. package/dist/esm/post-purchase/callout-banner/index.js +1 -1
  313. package/dist/esm/post-purchase/product/components/ProductPrice.js +1 -1
  314. package/dist/esm/post-purchase/product/components/ProductQuantity.js +1 -1
  315. package/dist/esm/post-purchase/product/components/product-offer/components/ProductOffer.js +1 -1
  316. package/dist/esm/post-purchase/product/components/product-offer/helpers/getOfferErrorText.js +1 -0
  317. package/dist/esm/post-purchase/product/components/product-offer/hooks/useProductOfferData.js +1 -1
  318. package/dist/esm/post-purchase/product/hooks/useHandleQuantity.js +1 -1
  319. package/dist/esm/post-purchase/product/index.js +1 -1
  320. package/dist/esm/post-purchase/product/settings/product-quantity/configs/settings.js +1 -1
  321. package/dist/esm/post-purchase/product/settings/product-quantity/configs/ui-v2.js +1 -1
  322. package/dist/esm/product/components/product-badge/ProductBadge.js +1 -1
  323. package/dist/esm/product/components/product-badge/common/styles.js +1 -1
  324. package/dist/esm/product/components/product-bundle/ProductBundleDiscount.js +1 -1
  325. package/dist/esm/product/components/product-bundle/ProductBundleDiscountWarning.js +2 -0
  326. package/dist/esm/product/components/product-bundle/common/classes.js +1 -1
  327. package/dist/esm/product/components/product-bundle/hooks/useProductBundleDataState.js +3 -3
  328. package/dist/esm/product/components/product-discount-tag/ProductDiscountTag.js +1 -1
  329. package/dist/esm/product/components/product-discount-tag/common/helpers.js +1 -0
  330. package/dist/esm/product/components/product-images/ProductImagesLightBox.js +1 -1
  331. package/dist/esm/product/components/product-images-v2/common/attrs.js +1 -1
  332. package/dist/esm/product/components/product-images-v2/common/common.js +1 -1
  333. package/dist/esm/product/components/product-images-v2/components/child/ProductFeaturedImageOnly.js +1 -1
  334. package/dist/esm/product/components/product-images-v2/components/child/ProductGalleryGrid.js +1 -1
  335. package/dist/esm/product/components/product-images-v2/components/feature-gallery/FeatureImageWithGallery.liquid.js +35 -35
  336. package/dist/esm/product/components/product-images-v2/components/gallery-carousel/GalleryCarousel.js +1 -1
  337. package/dist/esm/product/components/product-images-v2/components/gallery-carousel/GalleryCarousel.liquid.js +13 -13
  338. package/dist/esm/product/components/product-images-v2/components/gallery-grid/GalleryGrid.liquid.js +29 -29
  339. package/dist/esm/product/components/product-images-v2/components/lightbox/ProductImagesLightBox.js +1 -1
  340. package/dist/esm/product/components/product-images-v3/ProductImagesV3.liquid.js +3 -3
  341. package/dist/esm/product/components/product-images-v3/common/attrs.js +1 -1
  342. package/dist/esm/product/components/product-images-v3/common/common.js +1 -1
  343. package/dist/esm/product/components/product-images-v3/components/child/ProductFeaturedImageOnly.js +1 -1
  344. package/dist/esm/product/components/product-images-v3/components/child/ProductGalleryGrid.js +1 -1
  345. package/dist/esm/product/components/product-images-v3/components/feature-gallery/FeatureImageWithGallery.js +1 -1
  346. package/dist/esm/product/components/product-images-v3/components/feature-gallery/FeatureImageWithGallery.liquid.js +24 -24
  347. package/dist/esm/product/components/product-images-v3/components/feature-gallery/FeatureImageWithGalleryEmbla.liquid.js +24 -24
  348. package/dist/esm/product/components/product-images-v3/components/gallery-carousel/GalleryCarousel.js +1 -1
  349. package/dist/esm/product/components/product-images-v3/components/gallery-carousel/GalleryCarousel.liquid.js +5 -5
  350. package/dist/esm/product/components/product-images-v3/components/gallery-carousel/GalleryCarouselEmbla.liquid.js +5 -5
  351. package/dist/esm/product/components/product-images-v3/components/gallery-grid/GalleryGrid.liquid.js +30 -30
  352. package/dist/esm/product/components/product-images-v3/components/lightbox/ProductImagesLightBox.js +1 -1
  353. package/dist/esm/product/components/product-images-v3/composables/getProductImagesStyles.js +1 -1
  354. package/dist/esm/product/components/product-list/ProductList.js +1 -1
  355. package/dist/esm/product/components/product-list/ProductListCarouselLayout.js +1 -1
  356. package/dist/esm/product/components/product-list/ProductListCarouselLayout.liquid.js +11 -9
  357. package/dist/esm/product/components/product-list/ProductListGridLayout.js +1 -1
  358. package/dist/esm/product/components/product-list/ProductListGridLayout.liquid.js +18 -16
  359. package/dist/esm/product/components/product-list/common/helpers.js +1 -1
  360. package/dist/esm/product/components/product-list/common/imagePriority.js +17 -0
  361. package/dist/esm/product/components/product-list/common/imagePriorityHints.js +1 -0
  362. package/dist/esm/product/components/product-list-v3/ProductList.js +1 -1
  363. package/dist/esm/product/components/product-list-v3/ProductListCarouselLayout.js +1 -1
  364. package/dist/esm/product/components/product-list-v3/ProductListCarouselLayout.liquid.js +12 -10
  365. package/dist/esm/product/components/product-list-v3/ProductListGridLayout.js +1 -1
  366. package/dist/esm/product/components/product-list-v3/ProductListGridLayout.liquid.js +18 -16
  367. package/dist/esm/product/components/product-price/hooks/useGpPrice.js +1 -1
  368. package/dist/esm/product/components/product-wrap/Product.js +1 -1
  369. package/dist/esm/product/components/product-wrap/hook/useProductSetting.js +1 -1
  370. package/dist/esm/product/helpers/product-bundle.js +1 -1
  371. package/dist/esm/product/helpers/productImagesDrag.js +1 -0
  372. package/dist/esm/product/index.js +1 -1
  373. package/dist/esm/product/settings/product-image-v2/configs/setting-v2/ProductFeatureImage.js +2 -2
  374. package/dist/esm/product/settings/product-image-v2/configs/setting-v2/ProductGalleryImage.js +2 -2
  375. package/dist/esm/product/settings/product-image-v2/configs/setting-v2/index.js +1 -1
  376. package/dist/esm/product/settings/product-image-v2/configs/ui-v2.js +1 -1
  377. package/dist/esm/product/settings/product-image-v3/configs/setting-v2/ProductFeatureImage.js +2 -2
  378. package/dist/esm/product/settings/product-image-v3/configs/setting-v2/ProductGalleryImage.js +2 -2
  379. package/dist/esm/product/settings/product-image-v3/configs/setting-v2/index.js +1 -1
  380. package/dist/esm/product/settings/product-image-v3/configs/ui-v2.js +1 -1
  381. package/dist/esm/stock-counter/common/attrs.js +1 -1
  382. package/dist/esm/stock-counter/common/helpers.js +21 -21
  383. package/dist/esm/stock-counter/components/StockCounter.liquid.js +1 -1
  384. package/dist/esm/stock-counter/hooks/useStockCounter.js +1 -1
  385. package/dist/esm/third-party/common/helpers.js +5 -5
  386. package/dist/esm/third-party/components/KlarnaMessaging.liquid.js +30 -5
  387. package/dist/esm/third-party/settings/AftershipEmailMarketingsms/index.js +2 -2
  388. package/dist/esm/third-party/settings/AirProductReviewsAppUgc/index.js +2 -2
  389. package/dist/esm/third-party/settings/AliReviews/index.js +2 -2
  390. package/dist/esm/third-party/settings/AlsoBoughtCbb/index.js +2 -2
  391. package/dist/esm/third-party/settings/AovBundlesVolumeDiscounts/index.js +2 -2
  392. package/dist/esm/third-party/settings/AovFreeGiftBuyXGetYBogo/index.js +2 -2
  393. package/dist/esm/third-party/settings/AppointmentBookingCowlendar/index.js +2 -2
  394. package/dist/esm/third-party/settings/AppstleBundlesDiscounts/index.js +2 -2
  395. package/dist/esm/third-party/settings/AppstleLoyaltyRewardProgram/index.js +2 -2
  396. package/dist/esm/third-party/settings/AppstleSubscriptions/index.js +2 -2
  397. package/dist/esm/third-party/settings/BestBuyFulfillment/index.js +2 -2
  398. package/dist/esm/third-party/settings/BfSizeChartSizeGuide/index.js +2 -2
  399. package/dist/esm/third-party/settings/BirdChime/index.js +4 -4
  400. package/dist/esm/third-party/settings/BloyRewardsProgramLoyalty/index.js +2 -2
  401. package/dist/esm/third-party/settings/Bogos/index.js +4 -4
  402. package/dist/esm/third-party/settings/BoldProductOptions/index.js +4 -4
  403. package/dist/esm/third-party/settings/BoldSubscriptions/index.js +2 -2
  404. package/dist/esm/third-party/settings/BonLoyaltyRewardsReferrals/index.js +2 -2
  405. package/dist/esm/third-party/settings/BonySubscriptionsApp/index.js +2 -2
  406. package/dist/esm/third-party/settings/BoostAISearchDiscovery/index.js +2 -2
  407. package/dist/esm/third-party/settings/Bundler/index.js +4 -4
  408. package/dist/esm/third-party/settings/CleanSizeCharts/index.js +2 -2
  409. package/dist/esm/third-party/settings/CrossSellCartUpsell/index.js +2 -2
  410. package/dist/esm/third-party/settings/CustomProductOptionsVariant/index.js +2 -2
  411. package/dist/esm/third-party/settings/DealeasyVolumeDiscounts/index.js +2 -2
  412. package/dist/esm/third-party/settings/DiscountyBulkDiscountSales/index.js +2 -2
  413. package/dist/esm/third-party/settings/EasifyProductOptions/index.js +2 -2
  414. package/dist/esm/third-party/settings/EasyBundleBuilderSkailama/index.js +2 -2
  415. package/dist/esm/third-party/settings/EasySellCOD/index.js +4 -4
  416. package/dist/esm/third-party/settings/EcoboostifyShoppableReelUgc/index.js +2 -2
  417. package/dist/esm/third-party/settings/EcomsendBackInStockAlert/index.js +2 -2
  418. package/dist/esm/third-party/settings/EssentPreorderBackInStock/index.js +2 -2
  419. package/dist/esm/third-party/settings/EssentialAnnouncementBar/index.js +2 -2
  420. package/dist/esm/third-party/settings/EssentialCountdownTimerBar/index.js +2 -2
  421. package/dist/esm/third-party/settings/EstimatedDeliveryDatePlus/index.js +2 -2
  422. package/dist/esm/third-party/settings/FastBundleBundlesDiscounts/index.js +2 -2
  423. package/dist/esm/third-party/settings/FeraReviews/index.js +4 -4
  424. package/dist/esm/third-party/settings/FirePush/index.js +2 -2
  425. package/dist/esm/third-party/settings/FlyBundlesUpsellsFbt/index.js +2 -2
  426. package/dist/esm/third-party/settings/FordeerProductLabels/index.js +2 -2
  427. package/dist/esm/third-party/settings/FrequentlyBoughtTogether/index.js +2 -2
  428. package/dist/esm/third-party/settings/GloColorSwatchvariantImage/index.js +2 -2
  429. package/dist/esm/third-party/settings/GloboProductOptionsVariant/index.js +2 -2
  430. package/dist/esm/third-party/settings/GoogleReviewsByReputon/index.js +2 -2
  431. package/dist/esm/third-party/settings/Growave/index.js +4 -4
  432. package/dist/esm/third-party/settings/GrowthSuiteDiscountCodes/index.js +2 -2
  433. package/dist/esm/third-party/settings/HextomCountdownTimerBar/index.js +2 -2
  434. package/dist/esm/third-party/settings/HextomFreeShippingBar/index.js +2 -2
  435. package/dist/esm/third-party/settings/HulkFormBuilder/index.js +2 -2
  436. package/dist/esm/third-party/settings/HulkProductOptions/index.js +2 -2
  437. package/dist/esm/third-party/settings/InfiniteOptions/index.js +2 -2
  438. package/dist/esm/third-party/settings/Instafeed/index.js +2 -2
  439. package/dist/esm/third-party/settings/InstasellShoppableInstagram/index.js +2 -2
  440. package/dist/esm/third-party/settings/JudgemeReviews/index.js +2 -2
  441. package/dist/esm/third-party/settings/JunipProductReviewsUgc/index.js +2 -2
  442. package/dist/esm/third-party/settings/KachingBundles/index.js +2 -2
  443. package/dist/esm/third-party/settings/KachingSubscriptionsApp/index.js +2 -2
  444. package/dist/esm/third-party/settings/KingProductOptions/index.js +2 -2
  445. package/dist/esm/third-party/settings/KiteFreeGiftDiscount/index.js +2 -2
  446. package/dist/esm/third-party/settings/KlarnaMessaging/index.js +4 -4
  447. package/dist/esm/third-party/settings/Klaviyo/index.js +4 -4
  448. package/dist/esm/third-party/settings/KoalaBundleQuantityDiscount/index.js +2 -2
  449. package/dist/esm/third-party/settings/LaiProductReviews/index.js +2 -2
  450. package/dist/esm/third-party/settings/LoloyalLoyaltyReferrals/index.js +2 -2
  451. package/dist/esm/third-party/settings/LoopSubscriptions/index.js +2 -2
  452. package/dist/esm/third-party/settings/LooxReviews/index.js +4 -4
  453. package/dist/esm/third-party/settings/MaxbundleProductBundles/index.js +2 -2
  454. package/dist/esm/third-party/settings/MbcBundleVolumeDiscount/index.js +2 -2
  455. package/dist/esm/third-party/settings/MyappgurusProductReviews/index.js +2 -2
  456. package/dist/esm/third-party/settings/NotifyBackInStockPreOrder/index.js +2 -2
  457. package/dist/esm/third-party/settings/OkendoReviewsLoyalty/index.js +2 -2
  458. package/dist/esm/third-party/settings/Omnisend/index.js +4 -4
  459. package/dist/esm/third-party/settings/Opinew/index.js +4 -4
  460. package/dist/esm/third-party/settings/ParcelPanel/index.js +4 -4
  461. package/dist/esm/third-party/settings/PickyStory/index.js +4 -4
  462. package/dist/esm/third-party/settings/PowerfulContactFormBuilder/index.js +2 -2
  463. package/dist/esm/third-party/settings/PreorderNowPreOrderPq/index.js +2 -2
  464. package/dist/esm/third-party/settings/PreorderNowWodPresale/index.js +2 -2
  465. package/dist/esm/third-party/settings/ProductOptionsCustomizer/index.js +2 -2
  466. package/dist/esm/third-party/settings/ProductOptionsVariantOption/index.js +2 -2
  467. package/dist/esm/third-party/settings/PumperBundlesVolumeDiscount/index.js +2 -2
  468. package/dist/esm/third-party/settings/PushOwl/index.js +4 -4
  469. package/dist/esm/third-party/settings/QikifyUpsell/index.js +2 -2
  470. package/dist/esm/third-party/settings/RapiBundleQuantityBreaks/index.js +2 -2
  471. package/dist/esm/third-party/settings/RechargeSubscriptions/index.js +2 -2
  472. package/dist/esm/third-party/settings/RecurpaySubscriptionApp/index.js +2 -2
  473. package/dist/esm/third-party/settings/Releasit/index.js +4 -4
  474. package/dist/esm/third-party/settings/RequestQuoteHidePrice/index.js +3 -3
  475. package/dist/esm/third-party/settings/ReviewxpoProductReviewsApp/index.js +2 -2
  476. package/dist/esm/third-party/settings/Rivyo/index.js +4 -4
  477. package/dist/esm/third-party/settings/Ryviu/index.js +4 -4
  478. package/dist/esm/third-party/settings/SealSubscriptions/index.js +2 -2
  479. package/dist/esm/third-party/settings/SegunoEmailMarketing/index.js +2 -2
  480. package/dist/esm/third-party/settings/Selleasy/index.js +2 -2
  481. package/dist/esm/third-party/settings/SeoantTrustBadgesIcon/index.js +2 -2
  482. package/dist/esm/third-party/settings/ShopifyForms/index.js +2 -2
  483. package/dist/esm/third-party/settings/ShopifySubscriptions/index.js +2 -2
  484. package/dist/esm/third-party/settings/SimpleBundlesKits/index.js +2 -2
  485. package/dist/esm/third-party/settings/SkioSubscriptionsYcS20/index.js +2 -2
  486. package/dist/esm/third-party/settings/SmartSearchBarAndFilters/index.js +4 -4
  487. package/dist/esm/third-party/settings/SproutPlantTreesGrowSales/index.js +2 -2
  488. package/dist/esm/third-party/settings/Stamped.js +4 -4
  489. package/dist/esm/third-party/settings/StellarDeliveryDatePickup/index.js +2 -2
  490. package/dist/esm/third-party/settings/SubifySubscriptionsApp/index.js +2 -2
  491. package/dist/esm/third-party/settings/TagembedSocialPostReview/index.js +2 -2
  492. package/dist/esm/third-party/settings/TagshopShoppableVideosUgc/index.js +2 -2
  493. package/dist/esm/third-party/settings/TeeinblueProductPersonalizer/index.js +2 -2
  494. package/dist/esm/third-party/settings/TrustBadgesBear/index.js +2 -2
  495. package/dist/esm/third-party/settings/TrustMe/index.js +4 -4
  496. package/dist/esm/third-party/settings/TrustedsiteTrustBadges/index.js +2 -2
  497. package/dist/esm/third-party/settings/Trustoo/index.js +2 -2
  498. package/dist/esm/third-party/settings/TrustreviewsProductReviews/index.js +2 -2
  499. package/dist/esm/third-party/settings/TrustshopProductReviews/index.js +2 -2
  500. package/dist/esm/third-party/settings/UltimateSalesBoost/index.js +2 -2
  501. package/dist/esm/third-party/settings/UnlimitedBundlesDiscounts/index.js +2 -2
  502. package/dist/esm/third-party/settings/UppromoteAffiliateMarketing/setting.js +2 -2
  503. package/dist/esm/third-party/settings/Vitals/index.js +4 -4
  504. package/dist/esm/third-party/settings/WcWishlistBackInStock/index.js +3 -3
  505. package/dist/esm/third-party/settings/WhatmoreShoppableVideosreel/index.js +2 -2
  506. package/dist/esm/third-party/settings/WideBundle/index.js +4 -4
  507. package/dist/esm/third-party/settings/Wiser/index.js +4 -4
  508. package/dist/esm/third-party/settings/WishlistKing/index.js +2 -2
  509. package/dist/esm/third-party/settings/WishlistPlus/index.js +2 -2
  510. package/dist/esm/third-party/settings/YotpoReviews/index.js +4 -4
  511. package/dist/esm/video/common/attrs.js +1 -1
  512. package/dist/esm/video/components/HTML5Embed.js +1 -1
  513. package/dist/esm/video/components/HTML5Embed.liquid.js +8 -8
  514. package/dist/esm/video/components/LiteVimeoEmbed.liquid.js +11 -11
  515. package/dist/esm/video/components/LiteYouTubeEmbed.js +1 -1
  516. package/dist/esm/video/components/LiteYouTubeEmbed.liquid.js +9 -9
  517. package/dist/esm/video/components/Video.liquid.js +1 -1
  518. package/dist/types/index.d.ts +26 -8
  519. package/package.json +11 -8
@@ -1 +1 @@
1
- "use strict";var t=require("@gem-sdk/core"),e=require("../components/constants/product-bundle.js");const o=e=>({discountPercentAmount:0,discountAmount:t.formatMoney("0",e)}),n=(t,e)=>Math.round((e-t)/e*100),r=(e,o,n)=>t.formatMoney((o-e).toString(),n),u=(t,o,n=2)=>{let r=Number(o?.discountValue);return o?.discountType===e.DiscountType.Percentage?i(t*(r/100),n)*o.quantity:o?.discountType===e.DiscountType.FixedAmount?r:0},c=t=>t?.includes("amount_no_decimals")?0:2,i=(t,e=2)=>{let o=10**e;return Math.floor(Math.round(1e6*(t*o))/1e6)/o},m=(t,e)=>Math.round(t/e*100);exports.applyBundleDiscountAmount=i=>{let{currentVariant:a,bundleItem:s,options:d}=i;if(!d?.useProductCompareAtPrice&&s?.discountType===e.DiscountType.NoDiscount||!s||!a?.price)return o(d?.moneyFormat||"${{amount}}");let l=t.convertDecimalToNumber(a?.price)??0,p=t.convertDecimalToNumber(a?.salePrice)??l,y=Number(s?.quantity),P=u(l,s,c(d?.moneyFormat)),A=m(P,y*l),D=l*y-P,M=p*y;return p<=l&&P<=0?o(d?.moneyFormat||"${{amount}}"):{discountPercentAmount:d?.useProductCompareAtPrice?n(D,M):A,discountAmount:d?.useProductCompareAtPrice?r(D,M,d?.moneyFormat):t.formatMoney(P.toString(),d?.moneyFormat)}},exports.calculateBundleFixedDiscount=u,exports.floorToMinorUnit=i,exports.getMoneyFormatDecimals=c;
1
+ "use strict";var e=require("@gem-sdk/core"),t=require("../components/constants/product-bundle.js");const o=t=>({discountPercentAmount:0,discountAmount:e.formatMoney("0",t)}),r=e=>{let t=Number(e);return Number.isInteger(t)&&t>0?t:void 0},n=(e,t)=>Math.round((t-e)/t*100),u=(t,o,r)=>e.formatMoney((o-t).toString(),r),i=(e,o,n=2)=>{let u=Number(o?.discountValue);if(!Number.isFinite(u)||u<0)return 0;if(o?.discountType===t.DiscountType.Percentage){let t=r(o?.quantity);return void 0===t?0:m(e*(u/100),n)*t}return o?.discountType===t.DiscountType.FixedAmount?u:0},c=e=>e?.includes("amount_no_decimals")?0:2,m=(e,t=2)=>{let o=10**t;return Math.floor(Math.round(1e6*(e*o))/1e6)/o},a=(e,t)=>Math.round(e/t*100);exports.applyBundleDiscountAmount=m=>{let{currentVariant:s,bundleItem:d,options:l}=m;if(!l?.useProductCompareAtPrice&&d?.discountType===t.DiscountType.NoDiscount||!d||!s?.price)return o(l?.moneyFormat||"${{amount}}");let p=e.convertDecimalToNumber(s?.price)??0,y=e.convertDecimalToNumber(s?.salePrice)??p,F=r(d.quantity);if(void 0===F)return o(l?.moneyFormat||"${{amount}}");let P=i(p,d,c(l?.moneyFormat)),f=a(P,F*p),A=p*F-P,D=y*F;return y<=p&&P<=0?o(l?.moneyFormat||"${{amount}}"):{discountPercentAmount:l?.useProductCompareAtPrice?n(A,D):f,discountAmount:l?.useProductCompareAtPrice?u(A,D,l?.moneyFormat):e.formatMoney(P.toString(),l?.moneyFormat)}},exports.calculateBundleFixedDiscount=i,exports.floorToMinorUnit=m,exports.getMoneyFormatDecimals=c;
@@ -0,0 +1 @@
1
+ "use strict";exports.PRODUCT_IMAGES_DRAG_TO_SCROLL_DEFAULT=!0,exports.getProductImagesEnableDrag=({dragToScroll:e})=>{let t=e??!0;return{desktop:t,tablet:t,mobile:t}};
@@ -1 +1 @@
1
- "use strict";require("react/jsx-runtime"),require("react"),require("@gem-sdk/core"),require("./components/product-bundle/common/styles.js"),require("./components/product-bundle/common/classes.js"),require("@gem-sdk/system"),require("next/link"),require("./components/constants/product-bundle.js"),require("../common/const.js"),require("./components/product-variants/components/variants/index.js"),require("../carousel-v3/components/swiper/Swiper.js"),require("next/image"),require("../video/components/Video.js"),require("../modal/components/confirm.js"),require("react-dom"),require("@gem-sdk/keen-slider/react");var e=require("./components/product-quick-view/QuickView.js");require("../notification/components/Notifications.js"),require("../notification/components/Notice.js"),require("./components/product-button/types.js");var t=require("./components/product-list-v3/ProductList.js");require("./components/product-badge/types.js"),require("./components/product-badge/constants.js"),require("./components/product-badge/utils/shape.js");var r=require("./components/product-list/ProductList.js"),u=require("./components/product-wrap/Product.js"),s=require("./components/product-bundle/setting/ProductBundleDiscountItem.js"),o=require("./components/product-bundle/setting/ProductBundleDiscount.js"),i=require("./settings/product-image-v3/ProductImages.js"),c=require("./settings/product-image-v2/ProductImages.js"),d=require("./settings/ProductDescription.js"),n=require("./settings/ProductProperties.js"),a=require("./components/file-upload/settings/index.js"),p=require("./settings/ProductViewMore.js"),l=require("./settings/ProductVariants.js"),q=require("./settings/ProductQuantity.js"),P=require("./settings/DynamicCheckout.js"),m=require("./settings/ProductListV3.js"),g=require("./settings/ProductImages.js"),j=require("./settings/ProductButton.js"),f=require("./settings/ProductTitle.js"),V=require("./settings/ProductPrice.js"),k=require("./settings/ProductBadge.js"),v=require("./settings/ProductList.js"),x=require("./settings/ProductTag.js"),b=require("./settings/Vendor.js"),w=require("./settings/Product.js"),y=require("./settings/Sku.js");const B={Product:w.default,ProductQuantity:q.default,ProductTitle:f.default,ProductButton:j.default,ProductPrice:V.default,ProductVariants:l.default,ProductImages:g.default,ProductImagesV2:c.default,ProductImagesV3:i.default,ProductDescription:d.default,ProductProperties:n.default,ProductTag:x.default,ProductListV3:m.default,ProductList:v.default,DynamicCheckout:P.default,ProductVendor:b.default,ProductSku:y.default,ProductBundleDiscount:o.default,ProductBundleDiscountItem:s.default,ProductViewMore:p.default,ProductBadge:k.default,FileUpload:a.default};exports.ProductQuickView=e.default,exports.ProductListV3=t.default,exports.ProductList=r.default,exports.Product=u.default,exports.productSetting=B;
1
+ "use strict";require("react/jsx-runtime"),require("react"),require("@gem-sdk/core"),require("./components/product-bundle/common/classes.js"),require("./components/product-bundle/common/styles.js"),require("@gem-sdk/system"),require("next/link"),require("./components/constants/product-bundle.js"),require("../common/const.js"),require("./components/product-variants/components/variants/index.js"),require("../carousel-v3/components/swiper/Swiper.js"),require("../image/common/listImageContext.js"),require("../image/common/listContext.js"),require("../video/components/Video.js"),require("../modal/components/confirm.js"),require("react-dom"),require("@gem-sdk/keen-slider/react");var e=require("./components/product-quick-view/QuickView.js");require("../notification/components/Notifications.js"),require("../notification/components/Notice.js"),require("./components/product-button/types.js");var t=require("./components/product-list-v3/ProductList.js");require("./components/product-badge/types.js"),require("./components/product-badge/constants.js"),require("./components/product-badge/utils/shape.js");var r=require("./components/product-list/ProductList.js"),s=require("./components/product-wrap/Product.js"),u=require("./components/product-bundle/setting/ProductBundleDiscountItem.js"),o=require("./components/product-bundle/setting/ProductBundleDiscount.js"),i=require("./settings/product-image-v3/ProductImages.js"),c=require("./settings/product-image-v2/ProductImages.js"),n=require("./settings/ProductDescription.js"),d=require("./settings/ProductProperties.js"),a=require("./components/file-upload/settings/index.js"),p=require("./settings/ProductViewMore.js"),m=require("./settings/ProductVariants.js"),l=require("./settings/ProductQuantity.js"),q=require("./settings/DynamicCheckout.js"),P=require("./settings/ProductListV3.js"),g=require("./settings/ProductImages.js"),j=require("./settings/ProductButton.js"),f=require("./settings/ProductTitle.js"),V=require("./settings/ProductPrice.js"),k=require("./settings/ProductBadge.js"),v=require("./settings/ProductList.js"),x=require("./settings/ProductTag.js"),b=require("./settings/Vendor.js"),I=require("./settings/Product.js"),w=require("./settings/Sku.js");const y={Product:I.default,ProductQuantity:l.default,ProductTitle:f.default,ProductButton:j.default,ProductPrice:V.default,ProductVariants:m.default,ProductImages:g.default,ProductImagesV2:c.default,ProductImagesV3:i.default,ProductDescription:n.default,ProductProperties:d.default,ProductTag:x.default,ProductListV3:P.default,ProductList:v.default,DynamicCheckout:q.default,ProductVendor:b.default,ProductSku:w.default,ProductBundleDiscount:o.default,ProductBundleDiscountItem:u.default,ProductViewMore:p.default,ProductBadge:k.default,FileUpload:a.default};exports.ProductQuickView=e.default,exports.ProductListV3=t.default,exports.ProductList=r.default,exports.Product=s.default,exports.productSetting=y;
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("../../../../../carousel/plugins/animation.js");const l=e=>({desktop:{default:e}}),t=[{id:"hoverEffect",label:"Hover Effect",type:"select",hide:!0,hideOnMode:{mobileOnly:!0},options:[{title:"Zoom",value:"zoom"},{title:"Show other image",value:"other"}],default:"none"},{id:"zoomType",type:"option:value",label:"Zoom Type",hide:!0,default:"default",hideOnMode:{mobileOnly:!0},options:[{label:"Default",value:"default"},{label:"Glasses",value:"glasses"}]},{id:"zoom",type:"input:slider",label:"Zoom Value",min:100,max:200,step:10,default:150,units:["%"],showDefaultUnit:!0,useOnlyUnitInit:!0,isNumber:!0},{id:"otherImage",label:"Other image",type:"dropdown:input",isNumber:!0,isIndexValue:!0,displayOptions:[{label:"Image 1",value:1},{label:"Image 2",value:2},{label:"Image 3",value:3},{label:"Image 4",value:4},{label:"Last image",value:"Last image"}],default:0},{id:"ftClickOpenLightBox",label:"Click Effect",type:"select",options:[{title:"Open gallery",value:"popup"},{title:"Open product",value:"product-link"}],devices:l("none")},{id:"ftClickOpenNewTab",type:"option:value",options:[{label:"Yes",value:!0},{label:"No",value:!1}],default:!1},{id:"ftNavigationPosition",label:"Navigation",type:"option:illustration",enableTooltip:!0,options:[{label:"No navigation",value:"none",type:"slide-control",hide:!0},{label:"Outside",value:"outside",type:"slide-control",svgName:"gp-slide-control-outside"},{label:"Inside",value:"inside",type:"slide-control",svgName:"gp-slide-control-inside"}],devices:l("none")},{id:"ftLoop",type:"toggle",devices:l(!0)},{id:"ftPauseOnHover",label:"Pause On Hover",type:"toggle",hide:!0,default:!0},{id:"ftAnimationSpeed",label:"Slide speed",type:"input:slider",useOnlyUnitInit:!0,min:100,max:5e3,step:50,units:["ms"],showDefaultUnit:!0,isNumber:!0,default:500},{id:"ftAnimationMode",label:"Animation",type:"select",default:e.CAROUSEL_ANIMATION.EASE_OUT.value,options:[{label:"Ease in",value:e.CAROUSEL_ANIMATION.EASE_IN.value},{label:"Ease out",value:e.CAROUSEL_ANIMATION.EASE_OUT.value},{label:"Ease in out",value:e.CAROUSEL_ANIMATION.EASE_IN_OUT.value}]},{id:"ftArrowIcon",type:"icon",hide:!0,label:"Custom Arrow",info:"Choose from list or paste any SVG icon",default:`<svg height="20" width="20" data-name="caret-right-regular" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" data-id="508418455613473128">
2
- <path fill="currentColor" strokeLinecap="round" strokeLinejoin="round" fill="currentColor" d="M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z" /></svg>`},{id:"ftArrowIconColor",label:"Icon color",type:"color-picker-v2",default:"#121212"},{id:"ftArrowIconSize",label:"Number per show",type:"input:stepper",min:1,devices:{desktop:{default:16}}},{id:"ftDragToScroll",label:"Drag to scroll",type:"toggle",hide:!0,default:!0},{id:"ftArrowNavColor",label:"Nav. color",type:"color-picker-v2",default:"#FFFFFF"},{id:"ftArrowNavBorder",label:"Nav. border",type:"border",compoDefaultValue:{color:"line-3",borderType:"none",border:"solid",borderWidth:"1px",width:"1px 1px 1px 1px",isCustom:!1}},{id:"ftArrowNavRadius",label:"Nav. corner",type:"radius-preset",default:{btrr:"9999px",bblr:"9999px",bbrr:"9999px",btlr:"9999px",radiusType:"circle"}},{id:"ftArrowNavShadow",type:"shadow-v2"},{id:"ftDotStyle",label:"Dot style",type:"option:illustration",enableTooltip:!0,options:[{label:"None",value:"none",type:"carousel-dot",hide:!0},{label:"Inside",value:"inside",type:"carousel-dot",svgName:"gp-carousel-dot-inside"},{label:"Outside",value:"outside",type:"carousel-dot",svgName:"gp-carousel-dot-outside"}],devices:{desktop:{default:"none"}}},{id:"ftDotSize",label:"Dots size",type:"input:stepper",min:1,devices:{desktop:{default:16}}},{id:"ftDotGapToCarousel",label:"Gap to carousel",type:"input:slider",min:0,max:80,isNumber:!0,ignoreMax:!0,devices:{desktop:{default:16}}},{id:"ftDotColor",label:"Dot color",type:"color-picker-v2",devices:{desktop:{default:"#121212"}}},{id:"ftDotActiveColor",label:"Dot color active",type:"color-picker-v2",devices:{desktop:{default:"#FFFFFF"}}}],a=[{id:"ftShape",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"100%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["full"]}},hiddenSettings:["padding","gap"]},{id:"ftLayout",type:"option:illustration",enableTooltip:!0,label:"Image scale",options:[{label:"Fill image",value:"cover",type:"image",svgName:"gp-image-cover"},{label:"Fit image",value:"contain",type:"image",svgName:"gp-image-contain"}],devices:l("cover")},{id:"ftCorner",type:"radius-preset",label:"Corner",default:{btrr:"0px",bblr:"0px",bbrr:"0px",btlr:"0px",radiusType:"none"},state:{hover:!0,normal:!0}}];exports.productFeatureImageSetting=t,exports.productFeatureImageStyle=a,exports.productSelectDisplaySetting=[{id:"typeDisplay",type:"select",options:[{title:"All images",value:"all-images"},{title:"Select manually",value:"select-manual"}],default:"all-images"},{id:"preDisplay",type:"select",label:"Pre-display",default:"1st-available-variant",options:[{title:"1st available variant",value:"1st-available-variant"},{title:"1st image",value:"1st-images"},{title:"1st video",value:"1st-video"},{title:"1st 3D model",value:"1st-3d-mode"}]}];
1
+ "use strict";var e=require("../../../../../carousel/plugins/animation.js"),l=require("../../../../helpers/productImagesDrag.js");const t=e=>({desktop:{default:e}}),a=[{id:"hoverEffect",label:"Hover Effect",type:"select",hide:!0,hideOnMode:{mobileOnly:!0},options:[{title:"Zoom",value:"zoom"},{title:"Show other image",value:"other"}],default:"none"},{id:"zoomType",type:"option:value",label:"Zoom Type",hide:!0,default:"default",hideOnMode:{mobileOnly:!0},options:[{label:"Default",value:"default"},{label:"Glasses",value:"glasses"}]},{id:"zoom",type:"input:slider",label:"Zoom Value",min:100,max:200,step:10,default:150,units:["%"],showDefaultUnit:!0,useOnlyUnitInit:!0,isNumber:!0},{id:"otherImage",label:"Other image",type:"dropdown:input",isNumber:!0,isIndexValue:!0,displayOptions:[{label:"Image 1",value:1},{label:"Image 2",value:2},{label:"Image 3",value:3},{label:"Image 4",value:4},{label:"Last image",value:"Last image"}],default:0},{id:"ftClickOpenLightBox",label:"Click Effect",type:"select",options:[{title:"Open gallery",value:"popup"},{title:"Open product",value:"product-link"}],devices:t("none")},{id:"ftClickOpenNewTab",type:"option:value",options:[{label:"Yes",value:!0},{label:"No",value:!1}],default:!1},{id:"ftNavigationPosition",label:"Navigation",type:"option:illustration",enableTooltip:!0,options:[{label:"No navigation",value:"none",type:"slide-control",hide:!0},{label:"Outside",value:"outside",type:"slide-control",svgName:"gp-slide-control-outside"},{label:"Inside",value:"inside",type:"slide-control",svgName:"gp-slide-control-inside"}],devices:t("none")},{id:"ftLoop",type:"toggle",devices:t(!0)},{id:"ftPauseOnHover",label:"Pause On Hover",type:"toggle",hide:!0,default:!0},{id:"ftAnimationSpeed",label:"Slide speed",type:"input:slider",useOnlyUnitInit:!0,min:100,max:5e3,step:50,units:["ms"],showDefaultUnit:!0,isNumber:!0,default:500},{id:"ftAnimationMode",label:"Animation",type:"select",default:e.CAROUSEL_ANIMATION.EASE_OUT.value,options:[{label:"Ease in",value:e.CAROUSEL_ANIMATION.EASE_IN.value},{label:"Ease out",value:e.CAROUSEL_ANIMATION.EASE_OUT.value},{label:"Ease in out",value:e.CAROUSEL_ANIMATION.EASE_IN_OUT.value}]},{id:"ftArrowIcon",type:"icon",hide:!0,label:"Custom Arrow",info:"Choose from list or paste any SVG icon",default:`<svg height="20" width="20" data-name="caret-right-regular" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" data-id="508418455613473128">
2
+ <path fill="currentColor" strokeLinecap="round" strokeLinejoin="round" fill="currentColor" d="M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z" /></svg>`},{id:"ftArrowIconColor",label:"Icon color",type:"color-picker-v2",default:"#121212"},{id:"ftArrowIconSize",label:"Number per show",type:"input:stepper",min:1,devices:{desktop:{default:16}}},{id:"ftDragToScroll",label:"Drag to scroll",type:"toggle",hide:!0,default:l.PRODUCT_IMAGES_DRAG_TO_SCROLL_DEFAULT},{id:"ftArrowNavColor",label:"Nav. color",type:"color-picker-v2",default:"#FFFFFF"},{id:"ftArrowNavBorder",label:"Nav. border",type:"border",compoDefaultValue:{color:"line-3",borderType:"none",border:"solid",borderWidth:"1px",width:"1px 1px 1px 1px",isCustom:!1}},{id:"ftArrowNavRadius",label:"Nav. corner",type:"radius-preset",default:{btrr:"9999px",bblr:"9999px",bbrr:"9999px",btlr:"9999px",radiusType:"circle"}},{id:"ftArrowNavShadow",type:"shadow-v2"},{id:"ftDotStyle",label:"Dot style",type:"option:illustration",enableTooltip:!0,options:[{label:"None",value:"none",type:"carousel-dot",hide:!0},{label:"Inside",value:"inside",type:"carousel-dot",svgName:"gp-carousel-dot-inside"},{label:"Outside",value:"outside",type:"carousel-dot",svgName:"gp-carousel-dot-outside"}],devices:{desktop:{default:"none"}}},{id:"ftDotSize",label:"Dots size",type:"input:stepper",min:1,devices:{desktop:{default:16}}},{id:"ftDotGapToCarousel",label:"Gap to carousel",type:"input:slider",min:0,max:80,isNumber:!0,ignoreMax:!0,devices:{desktop:{default:16}}},{id:"ftDotColor",label:"Dot color",type:"color-picker-v2",devices:{desktop:{default:"#121212"}}},{id:"ftDotActiveColor",label:"Dot color active",type:"color-picker-v2",devices:{desktop:{default:"#FFFFFF"}}}],o=[{id:"ftShape",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"100%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["full"]}},hiddenSettings:["padding","gap"]},{id:"ftLayout",type:"option:illustration",enableTooltip:!0,label:"Image scale",options:[{label:"Fill image",value:"cover",type:"image",svgName:"gp-image-cover"},{label:"Fit image",value:"contain",type:"image",svgName:"gp-image-contain"}],devices:t("cover")},{id:"ftCorner",type:"radius-preset",label:"Corner",default:{btrr:"0px",bblr:"0px",bbrr:"0px",btlr:"0px",radiusType:"none"},state:{hover:!0,normal:!0}}];exports.productFeatureImageSetting=a,exports.productFeatureImageStyle=o,exports.productSelectDisplaySetting=[{id:"typeDisplay",type:"select",options:[{title:"All images",value:"all-images"},{title:"Select manually",value:"select-manual"}],default:"all-images"},{id:"preDisplay",type:"select",label:"Pre-display",default:"1st-available-variant",options:[{title:"1st available variant",value:"1st-available-variant"},{title:"1st image",value:"1st-images"},{title:"1st video",value:"1st-video"},{title:"1st 3D model",value:"1st-3d-mode"}]}];
@@ -1,3 +1,3 @@
1
- "use strict";const e=e=>({desktop:{default:e}}),i=[{id:"type",label:"Gallery Type",type:"segment",hide:!0,options:[{label:"Slide",value:"slider"},{label:"All",value:"images"}],devices:e("slider")},{id:"galleryHoverEffect",label:"Hover Effect",type:"select",hide:!0,hideOnMode:{mobileOnly:!0},options:[{title:"None",value:"none"},{title:"Zoom",value:"zoom"}],default:"none"},{id:"galleryZoomType",type:"select",label:"Zoom Type",hide:!0,default:"default",hideOnMode:{mobileOnly:!0},options:[{title:"Default",value:"default"},{title:"Glasses",value:"glasses"}]},{id:"galleryZoom",type:"input:slider",label:"Zoom Value",min:100,max:200,step:10,default:150,units:["%"],useOnlyUnitInit:!0,isNumber:!0},{id:"clickOpenLightBox",label:"Large view in pop-up",type:"select",options:[{label:"View in featured",value:!1},{label:"Open Gallery",value:!0}],devices:e(!1)},{id:"borderActive",label:"Active border",type:"border",default:{borderType:"none",border:"solid",borderWidth:"1px",width:"1px 1px 1px 1px",isCustom:!1,color:"line-3"},compoDefaultValue:{borderType:"none",border:"solid",borderWidth:"1px",width:"1px 1px 1px 1px",isCustom:!1,color:"line-3"}},{id:"navigationPosition",label:"Navigation",type:"option:illustration",enableTooltip:!0,options:[{label:"No navigation",value:"none",type:"slide-control",hide:!0},{label:"Outside",value:"outside",type:"slide-control",svgName:"gp-slide-control-outside"},{label:"Inside",value:"inside",type:"slide-control",svgName:"gp-slide-control-inside"}],devices:e("inside")},{id:"loop",type:"toggle",devices:e(!0)},{id:"pauseOnHover",label:"Pause On Hover",type:"toggle",hide:!0,default:!0},{id:"speed",type:"input:slider",label:"Speed (s)",hide:!0,min:0,max:60,step:1,default:1},{id:"arrowIcon",type:"icon",hide:!0,label:"Custom Arrow",info:"Choose from list or paste any SVG icon",default:`<svg data-name="arrow" width="100%" height="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
1
+ "use strict";var e=require("../../../../helpers/productImagesDrag.js");const i=e=>({desktop:{default:e}}),l=[{id:"type",label:"Gallery Type",type:"segment",hide:!0,options:[{label:"Slide",value:"slider"},{label:"All",value:"images"}],devices:i("slider")},{id:"galleryHoverEffect",label:"Hover Effect",type:"select",hide:!0,hideOnMode:{mobileOnly:!0},options:[{title:"None",value:"none"},{title:"Zoom",value:"zoom"}],default:"none"},{id:"galleryZoomType",type:"select",label:"Zoom Type",hide:!0,default:"default",hideOnMode:{mobileOnly:!0},options:[{title:"Default",value:"default"},{title:"Glasses",value:"glasses"}]},{id:"galleryZoom",type:"input:slider",label:"Zoom Value",min:100,max:200,step:10,default:150,units:["%"],useOnlyUnitInit:!0,isNumber:!0},{id:"clickOpenLightBox",label:"Large view in pop-up",type:"select",options:[{label:"View in featured",value:!1},{label:"Open Gallery",value:!0}],devices:i(!1)},{id:"borderActive",label:"Active border",type:"border",default:{borderType:"none",border:"solid",borderWidth:"1px",width:"1px 1px 1px 1px",isCustom:!1,color:"line-3"},compoDefaultValue:{borderType:"none",border:"solid",borderWidth:"1px",width:"1px 1px 1px 1px",isCustom:!1,color:"line-3"}},{id:"navigationPosition",label:"Navigation",type:"option:illustration",enableTooltip:!0,options:[{label:"No navigation",value:"none",type:"slide-control",hide:!0},{label:"Outside",value:"outside",type:"slide-control",svgName:"gp-slide-control-outside"},{label:"Inside",value:"inside",type:"slide-control",svgName:"gp-slide-control-inside"}],devices:i("inside")},{id:"loop",type:"toggle",devices:i(!0)},{id:"pauseOnHover",label:"Pause On Hover",type:"toggle",hide:!0,default:!0},{id:"speed",type:"input:slider",label:"Speed (s)",hide:!0,min:0,max:60,step:1,default:1},{id:"arrowIcon",type:"icon",hide:!0,label:"Custom Arrow",info:"Choose from list or paste any SVG icon",default:`<svg data-name="arrow" width="100%" height="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
2
  <path fill-rule="evenodd" clip-rule="evenodd" d="M12 0C18.6274 0 24 5.37258 24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0ZM10.6828 8.13017C10.5266 7.95661 10.2734 7.95661 10.1172 8.13017C9.96095 8.30374 9.96095 8.58515 10.1172 8.75871L13.0343 12L10.1172 15.2413C9.96095 15.4149 9.96095 15.6963 10.1172 15.8698C10.2734 16.0434 10.5266 16.0434 10.6828 15.8698L13.8828 12.3143C14.0391 12.1407 14.0391 11.8593 13.8828 11.6857L10.6828 8.13017Z" fill="currentColor"/>
3
- </svg>`},{id:"arrowIconSize",label:"Number per show",type:"input:stepper",min:1,devices:{desktop:{default:24}}},{id:"arrowIconColor",label:"Icon color",type:"color-picker-v2",default:"#000000"},{id:"dragToScroll",label:"Drag to scroll",type:"toggle",hide:!0,default:!0},{id:"arrowNavColor",label:"Nav. color",type:"color-picker-v2"},{id:"arrowNavBorder",label:"Nav. border",type:"border",default:{borderType:"none",border:"none",borderWidth:"1px",width:"1px 1px 1px 1px",isCustom:!1}},{id:"arrowNavRadius",label:"Nav. corner",type:"radius-preset",default:{btrr:"0px",bblr:"0px",bbrr:"0px",btlr:"0px",radiusType:"none"}},{id:"arrowNavShadow",type:"shadow-v2",default:{type:"shadow-1",distance:"4px",blur:"12px",spread:"0px",color:"rgba(0, 0, 0, 0.20)",angle:90,enable:!1}}],l=[{id:"shape",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"100%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["full"]}},hiddenSettings:["padding","gap"]},{id:"shapeForFtOnly",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"100%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["full"]}},hiddenSettings:["padding","gap"]},{id:"shapeForBottom",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"20%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["full","small","medium","large"],sizeConfig:{small:"10%",medium:"20%",large:"25%"}}},hiddenSettings:["padding","gap"]},{id:"shapeForInsideBottom",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"20%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["small","medium","large"],sizeConfig:{small:"10%",medium:"20%",large:"25%"}}},hiddenSettings:["padding","gap"]},{id:"shapeForInside",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"20%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["small","medium","large"],sizeConfig:{small:"10%",medium:"20%",large:"25%"}}},hiddenSettings:["padding","gap"]},{id:"shapeFor2Col",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"50%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["full","small","medium","large"],sizeConfig:{small:"25%",medium:"33%",large:"50%"}}},hiddenSettings:["padding","gap"]},{id:"shapeFor1Col",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"100%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["full","small","medium","large"],sizeConfig:{small:"25%",medium:"33%",large:"50%"}}},hiddenSettings:["padding","gap"]},{id:"layout",type:"option:illustration",enableTooltip:!0,label:"Image scale",options:[{label:"Fill image",value:"cover",type:"image",svgName:"gp-image-cover"},{label:"Fit image",value:"contain",type:"image",svgName:"gp-image-contain"}],devices:e("cover")},{id:"itemSpacing",label:"Gallery Item Spacing",type:"input:slider",units:["px"],devices:{desktop:{default:"8px"}}},{id:"corner",type:"radius-preset",label:"Corner",default:{btrr:"0px",bblr:"0px",bbrr:"0px",btlr:"0px",radiusType:"none"},state:{hover:!0,normal:!0}}];exports.productGalleryImageSetting=i,exports.productGalleryImageStyle=l;
3
+ </svg>`},{id:"arrowIconSize",label:"Number per show",type:"input:stepper",min:1,devices:{desktop:{default:24}}},{id:"arrowIconColor",label:"Icon color",type:"color-picker-v2",default:"#000000"},{id:"dragToScroll",label:"Drag to scroll",type:"toggle",hide:!0,default:e.PRODUCT_IMAGES_DRAG_TO_SCROLL_DEFAULT},{id:"arrowNavColor",label:"Nav. color",type:"color-picker-v2"},{id:"arrowNavBorder",label:"Nav. border",type:"border",default:{borderType:"none",border:"none",borderWidth:"1px",width:"1px 1px 1px 1px",isCustom:!1}},{id:"arrowNavRadius",label:"Nav. corner",type:"radius-preset",default:{btrr:"0px",bblr:"0px",bbrr:"0px",btlr:"0px",radiusType:"none"}},{id:"arrowNavShadow",type:"shadow-v2",default:{type:"shadow-1",distance:"4px",blur:"12px",spread:"0px",color:"rgba(0, 0, 0, 0.20)",angle:90,enable:!1}}],t=[{id:"shape",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"100%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["full"]}},hiddenSettings:["padding","gap"]},{id:"shapeForFtOnly",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"100%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["full"]}},hiddenSettings:["padding","gap"]},{id:"shapeForBottom",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"20%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["full","small","medium","large"],sizeConfig:{small:"10%",medium:"20%",large:"25%"}}},hiddenSettings:["padding","gap"]},{id:"shapeForInsideBottom",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"20%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["small","medium","large"],sizeConfig:{small:"10%",medium:"20%",large:"25%"}}},hiddenSettings:["padding","gap"]},{id:"shapeForInside",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"20%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["small","medium","large"],sizeConfig:{small:"10%",medium:"20%",large:"25%"}}},hiddenSettings:["padding","gap"]},{id:"shapeFor2Col",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"50%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["full","small","medium","large"],sizeConfig:{small:"25%",medium:"33%",large:"50%"}}},hiddenSettings:["padding","gap"]},{id:"shapeFor1Col",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"100%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["full","small","medium","large"],sizeConfig:{small:"25%",medium:"33%",large:"50%"}}},hiddenSettings:["padding","gap"]},{id:"layout",type:"option:illustration",enableTooltip:!0,label:"Image scale",options:[{label:"Fill image",value:"cover",type:"image",svgName:"gp-image-cover"},{label:"Fit image",value:"contain",type:"image",svgName:"gp-image-contain"}],devices:i("cover")},{id:"itemSpacing",label:"Gallery Item Spacing",type:"input:slider",units:["px"],devices:{desktop:{default:"8px"}}},{id:"corner",type:"radius-preset",label:"Corner",default:{btrr:"0px",bblr:"0px",bbrr:"0px",btlr:"0px",radiusType:"none"},state:{hover:!0,normal:!0}}];exports.productGalleryImageSetting=l,exports.productGalleryImageStyle=t;
@@ -1 +1 @@
1
- "use strict";var e=require("./ProductFeatureImage.js"),t=require("./ProductGalleryImage.js");const l=[{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.productSelectDisplaySetting},{id:"featured-image",type:"group",label:"Featured Image",controls:e.productFeatureImageSetting},{id:"gallery-images",type:"group",label:"Gallery Images",controls:t.productGalleryImageSetting},{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:e.productFeatureImageStyle},{id:"galleryStyles",type:"group",label:"Gallery",controls:t.productGalleryImageStyle},{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"}}}]}];exports.ProductImageSettingsV2=l;
1
+ "use strict";var e=require("./ProductFeatureImage.js"),t=require("./ProductGalleryImage.js");const l=[{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.productSelectDisplaySetting},{id:"featured-image",type:"group",label:"Featured Image",controls:e.productFeatureImageSetting},{id:"gallery-images",type:"group",label:"Gallery Images",controls:t.productGalleryImageSetting},{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:e.productFeatureImageStyle},{id:"galleryStyles",type:"group",label:"Gallery",controls:t.productGalleryImageStyle},{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"}}}]}];exports.ProductImageSettingsV2=l;
@@ -1 +1 @@
1
- "use strict";var i=require("./ui/ImageListNavigation.js"),o=require("./ui/FeatureNavigation.js"),e=require("./ui/FeatureDots.js");const t='((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"}},{...e.FeatureDots,hiddenOnMobile:!0,conditionDisplay:`${n} && position === "only-feature"`},{...o.FeatureNavigation,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.ImageListNavigation,hiddenOnMobile:!0,conditionDisplay:t}],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:t,label:"Drag / swipe",setting:{id:"dragToScroll"}},{conditionDisplay:t,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"}}]}];exports.SettingUIV2=l;
1
+ "use strict";var i=require("./ui/ImageListNavigation.js"),o=require("./ui/FeatureNavigation.js"),e=require("./ui/FeatureDots.js");const t='((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"}},{...e.FeatureDots,hiddenOnMobile:!0,conditionDisplay:`${n} && position === "only-feature"`},{...o.FeatureNavigation,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.ImageListNavigation,hiddenOnMobile:!0,conditionDisplay:t}],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:t,label:"Drag / swipe",setting:{id:"dragToScroll"}},{conditionDisplay:t,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"}}]}];exports.SettingUIV2=l;
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("../../../../../carousel-v3/plugins/animation.js");const t=e=>({desktop:{default:e}}),l=[{id:"hoverEffect",label:"Hover Effect",type:"select",hide:!0,hideOnMode:{mobileOnly:!0},options:[{title:"Zoom",value:"zoom"},{title:"Show other image",value:"other"}],default:"none"},{id:"zoomType",type:"option:value",label:"Zoom Type",hide:!0,default:"default",hideOnMode:{mobileOnly:!0},options:[{label:"Default",value:"default"},{label:"Glasses",value:"glasses"}]},{id:"zoom",type:"input:slider",label:"Zoom Value",min:100,max:200,step:10,default:150,units:["%"],showDefaultUnit:!0,useOnlyUnitInit:!0,isNumber:!0},{id:"otherImage",label:"Other image",type:"dropdown:input",isNumber:!0,isIndexValue:!0,displayOptions:[{label:"Image 1",value:1},{label:"Image 2",value:2},{label:"Image 3",value:3},{label:"Image 4",value:4},{label:"Last image",value:"Last image"}],default:1},{id:"ftClickOpenLightBox",label:"Click Effect",type:"select",options:[{title:"Open gallery",value:"popup"},{title:"Open product",value:"product-link"}],devices:t("none")},{id:"ftClickOpenNewTab",type:"option:value",options:[{label:"Yes",value:!0},{label:"No",value:!1}],default:!1},{id:"ftNavigationPosition",label:"Navigation",type:"option:illustration",enableTooltip:!0,options:[{label:"No navigation",value:"none",type:"slide-control",hide:!0},{label:"Outside",value:"outside",type:"slide-control",svgName:"gp-slide-control-outside"},{label:"Inside",value:"inside",type:"slide-control",svgName:"gp-slide-control-inside"}],devices:t("none")},{id:"ftLoop",type:"toggle",devices:t(!0)},{id:"ftPauseOnHover",label:"Pause On Hover",type:"toggle",hide:!0,default:!0},{id:"ftAnimationSpeed",label:"Slide speed",type:"input:slider",useOnlyUnitInit:!0,min:100,max:5e3,step:50,units:["ms"],showDefaultUnit:!0,isNumber:!0,default:500},{id:"ftAnimationMode",label:"Animation",type:"select",default:e.CAROUSEL_ANIMATION.EASE_OUT.value,options:[{label:"Ease in",value:e.CAROUSEL_ANIMATION.EASE_IN.value},{label:"Ease out",value:e.CAROUSEL_ANIMATION.EASE_OUT.value},{label:"Ease in out",value:e.CAROUSEL_ANIMATION.EASE_IN_OUT.value}]},{id:"ftArrowIcon",type:"icon",hide:!0,label:"Custom Arrow",info:"Choose from list or paste any SVG icon",default:`<svg height="20" width="20" data-name="caret-right-regular" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" data-id="508418455613473128">
2
- <path fill="currentColor" strokeLinecap="round" strokeLinejoin="round" fill="currentColor" d="M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z" /></svg>`},{id:"ftArrowIconColor",label:"Icon color",type:"color-picker-v2",default:"text-1"},{id:"ftArrowIconSize",label:"Number per show",type:"input:stepper",min:1,devices:{desktop:{default:16}}},{id:"ftDragToScroll",label:"Drag to scroll",type:"toggle",hide:!0,default:!0},{id:"ftArrowNavColor",label:"Nav. color",type:"color-picker-v2",default:"bg-3",compoDefaultValue:"bg-3"},{id:"ftArrowNavSize",type:"size-setting",settingConfig:{width:{name:"Width",units:["px"],displayOptions:["auto"]},height:{name:"Height",units:["px"],displayOptions:["auto"]}},default:{width:"Auto",height:"Auto",padding:{top:"12px",bottom:"12px",left:"12px",right:"12px"},shapeLinked:!0,shape:"square",shapeValue:"1/1"},hiddenSettings:["gap","padding","proportion"]},{id:"ftArrowNavBorder",label:"Nav. border",type:"border",compoDefaultValue:{color:"line-3",borderType:"none",border:"solid",borderWidth:"1px",width:"1px 1px 1px 1px",isCustom:!1}},{id:"ftArrowNavRadius",label:"Nav. corner",type:"radius-preset",default:{btrr:"9999px",bblr:"9999px",bbrr:"9999px",btlr:"9999px",radiusType:"circle"}},{id:"ftArrowNavShadow",type:"shadow-v2"},{id:"ftDotStyle",label:"Dot style",type:"option:illustration",enableTooltip:!0,options:[{label:"None",value:"none",type:"carousel-dot",hide:!0},{label:"Inside",value:"inside",type:"carousel-dot",svgName:"gp-carousel-dot-inside"},{label:"Outside",value:"outside",type:"carousel-dot",svgName:"gp-carousel-dot-outside"}],devices:{desktop:{default:"none"}}},{id:"ftDotSize",label:"Dots size",type:"input:stepper",min:1,devices:{desktop:{default:12}}},{id:"ftDotGapToCarousel",label:"Gap to carousel",type:"input:slider",min:0,max:80,isNumber:!0,ignoreMax:!0,devices:{desktop:{default:16}}},{id:"ftDotColor",label:"Dot color",type:"color-picker-v2",devices:{desktop:{default:"bg-1"}}},{id:"ftDotActiveColor",label:"Dot color active",type:"color-picker-v2",devices:{desktop:{default:"line-3"}}}],a=[{id:"ftShape",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"100%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["full"]}},hiddenSettings:["padding","gap"]},{id:"ftLayout",type:"option:illustration",enableTooltip:!0,label:"Image scale",options:[{label:"Fill image",value:"cover",type:"image",svgName:"gp-image-cover"},{label:"Fit image",value:"contain",type:"image",svgName:"gp-image-contain"}],devices:t("cover")},{id:"ftCorner",type:"radius-preset",label:"Corner",default:{btrr:"0px",bblr:"0px",bbrr:"0px",btlr:"0px",radiusType:"none"},state:{hover:!0,normal:!0}}];exports.productFeatureImageSetting=l,exports.productFeatureImageStyle=a,exports.productSelectDisplaySetting=[{id:"typeDisplay",type:"select",options:[{title:"All images",value:"all-images"},{title:"Select manually",value:"select-manual"}],default:"all-images"},{id:"preDisplay",type:"select",label:"Pre-display",default:"1st-available-variant",options:[{title:"1st available variant",value:"1st-available-variant"},{title:"1st image",value:"1st-images"},{title:"1st video",value:"1st-video"},{title:"1st 3D model",value:"1st-3d-mode"}]}];
1
+ "use strict";var e=require("../../../../../carousel-v3/plugins/animation.js"),t=require("../../../../helpers/productImagesDrag.js");const l=e=>({desktop:{default:e}}),a=[{id:"hoverEffect",label:"Hover Effect",type:"select",hide:!0,hideOnMode:{mobileOnly:!0},options:[{title:"Zoom",value:"zoom"},{title:"Show other image",value:"other"}],default:"none"},{id:"zoomType",type:"option:value",label:"Zoom Type",hide:!0,default:"default",hideOnMode:{mobileOnly:!0},options:[{label:"Default",value:"default"},{label:"Glasses",value:"glasses"}]},{id:"zoom",type:"input:slider",label:"Zoom Value",min:100,max:200,step:10,default:150,units:["%"],showDefaultUnit:!0,useOnlyUnitInit:!0,isNumber:!0},{id:"otherImage",label:"Other image",type:"dropdown:input",isNumber:!0,isIndexValue:!0,displayOptions:[{label:"Image 1",value:1},{label:"Image 2",value:2},{label:"Image 3",value:3},{label:"Image 4",value:4},{label:"Last image",value:"Last image"}],default:1},{id:"ftClickOpenLightBox",label:"Click Effect",type:"select",options:[{title:"Open gallery",value:"popup"},{title:"Open product",value:"product-link"}],devices:l("none")},{id:"ftClickOpenNewTab",type:"option:value",options:[{label:"Yes",value:!0},{label:"No",value:!1}],default:!1},{id:"ftNavigationPosition",label:"Navigation",type:"option:illustration",enableTooltip:!0,options:[{label:"No navigation",value:"none",type:"slide-control",hide:!0},{label:"Outside",value:"outside",type:"slide-control",svgName:"gp-slide-control-outside"},{label:"Inside",value:"inside",type:"slide-control",svgName:"gp-slide-control-inside"}],devices:l("none")},{id:"ftLoop",type:"toggle",devices:l(!0)},{id:"ftPauseOnHover",label:"Pause On Hover",type:"toggle",hide:!0,default:!0},{id:"ftAnimationSpeed",label:"Slide speed",type:"input:slider",useOnlyUnitInit:!0,min:100,max:5e3,step:50,units:["ms"],showDefaultUnit:!0,isNumber:!0,default:500},{id:"ftAnimationMode",label:"Animation",type:"select",default:e.CAROUSEL_ANIMATION.EASE_OUT.value,options:[{label:"Ease in",value:e.CAROUSEL_ANIMATION.EASE_IN.value},{label:"Ease out",value:e.CAROUSEL_ANIMATION.EASE_OUT.value},{label:"Ease in out",value:e.CAROUSEL_ANIMATION.EASE_IN_OUT.value}]},{id:"ftArrowIcon",type:"icon",hide:!0,label:"Custom Arrow",info:"Choose from list or paste any SVG icon",default:`<svg height="20" width="20" data-name="caret-right-regular" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" data-id="508418455613473128">
2
+ <path fill="currentColor" strokeLinecap="round" strokeLinejoin="round" fill="currentColor" d="M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z" /></svg>`},{id:"ftArrowIconColor",label:"Icon color",type:"color-picker-v2",default:"text-1"},{id:"ftArrowIconSize",label:"Number per show",type:"input:stepper",min:1,devices:{desktop:{default:16}}},{id:"ftDragToScroll",label:"Drag to scroll",type:"toggle",hide:!0,default:t.PRODUCT_IMAGES_DRAG_TO_SCROLL_DEFAULT},{id:"ftArrowNavColor",label:"Nav. color",type:"color-picker-v2",default:"bg-3",compoDefaultValue:"bg-3"},{id:"ftArrowNavSize",type:"size-setting",settingConfig:{width:{name:"Width",units:["px"],displayOptions:["auto"]},height:{name:"Height",units:["px"],displayOptions:["auto"]}},default:{width:"Auto",height:"Auto",padding:{top:"12px",bottom:"12px",left:"12px",right:"12px"},shapeLinked:!0,shape:"square",shapeValue:"1/1"},hiddenSettings:["gap","padding","proportion"]},{id:"ftArrowNavBorder",label:"Nav. border",type:"border",compoDefaultValue:{color:"line-3",borderType:"none",border:"solid",borderWidth:"1px",width:"1px 1px 1px 1px",isCustom:!1}},{id:"ftArrowNavRadius",label:"Nav. corner",type:"radius-preset",default:{btrr:"9999px",bblr:"9999px",bbrr:"9999px",btlr:"9999px",radiusType:"circle"}},{id:"ftArrowNavShadow",type:"shadow-v2"},{id:"ftDotStyle",label:"Dot style",type:"option:illustration",enableTooltip:!0,options:[{label:"None",value:"none",type:"carousel-dot",hide:!0},{label:"Inside",value:"inside",type:"carousel-dot",svgName:"gp-carousel-dot-inside"},{label:"Outside",value:"outside",type:"carousel-dot",svgName:"gp-carousel-dot-outside"}],devices:{desktop:{default:"none"}}},{id:"ftDotSize",label:"Dots size",type:"input:stepper",min:1,devices:{desktop:{default:12}}},{id:"ftDotGapToCarousel",label:"Gap to carousel",type:"input:slider",min:0,max:80,isNumber:!0,ignoreMax:!0,devices:{desktop:{default:16}}},{id:"ftDotColor",label:"Dot color",type:"color-picker-v2",devices:{desktop:{default:"bg-1"}}},{id:"ftDotActiveColor",label:"Dot color active",type:"color-picker-v2",devices:{desktop:{default:"line-3"}}}],i=[{id:"ftShape",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"100%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["full"]}},hiddenSettings:["padding","gap"]},{id:"ftLayout",type:"option:illustration",enableTooltip:!0,label:"Image scale",options:[{label:"Fill image",value:"cover",type:"image",svgName:"gp-image-cover"},{label:"Fit image",value:"contain",type:"image",svgName:"gp-image-contain"}],devices:l("cover")},{id:"ftCorner",type:"radius-preset",label:"Corner",default:{btrr:"0px",bblr:"0px",bbrr:"0px",btlr:"0px",radiusType:"none"},state:{hover:!0,normal:!0}}];exports.productFeatureImageSetting=a,exports.productFeatureImageStyle=i,exports.productSelectDisplaySetting=[{id:"typeDisplay",type:"select",options:[{title:"All images",value:"all-images"},{title:"Select manually",value:"select-manual"}],default:"all-images"},{id:"preDisplay",type:"select",label:"Pre-display",default:"1st-available-variant",options:[{title:"1st available variant",value:"1st-available-variant"},{title:"1st image",value:"1st-images"},{title:"1st video",value:"1st-video"},{title:"1st 3D model",value:"1st-3d-mode"}]}];
@@ -1,2 +1,2 @@
1
- "use strict";const e=e=>({desktop:{default:e}}),i=[{id:"type",label:"Gallery Type",type:"segment",hide:!0,options:[{label:"Slide",value:"slider"},{label:"All",value:"images"}],devices:e("slider")},{id:"galleryHoverEffect",label:"Hover Effect",type:"select",hide:!0,hideOnMode:{mobileOnly:!0},options:[{title:"None",value:"none"},{title:"Zoom",value:"zoom"}],default:"none"},{id:"galleryZoomType",type:"select",label:"Zoom Type",hide:!0,default:"default",hideOnMode:{mobileOnly:!0},options:[{title:"Default",value:"default"},{title:"Glasses",value:"glasses"}]},{id:"galleryZoom",type:"input:slider",label:"Zoom Value",min:100,max:200,step:10,default:150,units:["%"],useOnlyUnitInit:!0,isNumber:!0},{id:"clickOpenLightBox",label:"Large view in pop-up",type:"select",options:[{label:"View in featured",value:!1},{label:"Open Gallery",value:!0}],devices:e(!1)},{id:"borderActive",label:"Active border",type:"border",default:{borderType:"none",border:"solid",borderWidth:"1px",width:"1px 1px 1px 1px",isCustom:!1,color:"line-3"},compoDefaultValue:{borderType:"none",border:"solid",borderWidth:"1px",width:"1px 1px 1px 1px",isCustom:!1,color:"line-3"}},{id:"navigationPosition",label:"Navigation",type:"option:illustration",enableTooltip:!0,options:[{label:"No navigation",value:"none",type:"slide-control",hide:!0},{label:"Outside",value:"outside",type:"slide-control",svgName:"gp-slide-control-outside"},{label:"Inside",value:"inside",type:"slide-control",svgName:"gp-slide-control-inside"}],devices:e("inside")},{id:"loop",type:"toggle",devices:e(!0)},{id:"pauseOnHover",label:"Pause On Hover",type:"toggle",hide:!0,default:!0},{id:"speed",type:"input:slider",label:"Speed (s)",hide:!0,min:0,max:60,step:1,default:1},{id:"arrowIcon",type:"icon",hide:!0,label:"Custom Arrow",info:"Choose from list or paste any SVG icon",default:`<svg height="20px" width="20px" data-name="caret-right-bold" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" data-id="508817562042106216">
2
- <path fill="currentColor" strokelinecap="round" strokelinejoin="round" d="M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"></path></svg>`},{id:"arrowIconSize",label:"Number per show",type:"input:stepper",min:1,devices:{desktop:{default:16}}},{id:"arrowIconColor",label:"Icon color",type:"color-picker-v2",default:"text-1"},{id:"dragToScroll",label:"Drag to scroll",type:"toggle",hide:!0,default:!0},{id:"arrowNavColor",label:"Nav. color",type:"color-picker-v2",default:"bg-3",compoDefaultValue:"bg-3"},{id:"arrowNavSize",type:"size-setting",settingConfig:{width:{name:"Width",units:["px"],displayOptions:["auto"]},height:{name:"Height",units:["px"],displayOptions:["auto"]}},default:{width:"Auto",height:"Auto",padding:{top:"12px",bottom:"12px",left:"12px",right:"12px"},shapeLinked:!0,shape:"square",shapeValue:"1/1"},hiddenSettings:["gap","padding","proportion"]},{id:"arrowNavBorder",label:"Nav. border",type:"border",default:{borderType:"none",border:"none",borderWidth:"1px",width:"1px 1px 1px 1px",isCustom:!1}},{id:"arrowNavRadius",label:"Nav. corner",type:"radius-preset",default:{btrr:"9999px",bblr:"9999px",bbrr:"9999px",btlr:"9999px",radiusType:"circle"}},{id:"arrowNavShadow",type:"shadow-v2",default:{type:"shadow-1",distance:"4px",blur:"12px",spread:"0px",color:"rgba(0, 0, 0, 0.20)",angle:90,enable:!1}}],t=[{id:"shape",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"100%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["full"]}},hiddenSettings:["padding","gap"]},{id:"shapeForFtOnly",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"100%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["full"]}},hiddenSettings:["padding","gap"]},{id:"shapeForBottom",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"20%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["full","small","medium","large"],sizeConfig:{small:"10%",medium:"20%",large:"25%"}}},hiddenSettings:["padding","gap"]},{id:"shapeForInsideBottom",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"20%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["small","medium","large"],sizeConfig:{small:"10%",medium:"20%",large:"25%"}}},hiddenSettings:["padding","gap"]},{id:"shapeForInside",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"20%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["small","medium","large"],sizeConfig:{small:"10%",medium:"20%",large:"25%"}}},hiddenSettings:["padding","gap"]},{id:"shapeFor2Col",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"50%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["full","small","medium","large"],sizeConfig:{small:"25%",medium:"33%",large:"50%"}}},hiddenSettings:["padding","gap"]},{id:"shapeFor1Col",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"100%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["full","small","medium","large"],sizeConfig:{small:"25%",medium:"33%",large:"50%"}}},hiddenSettings:["padding","gap"]},{id:"layout",type:"option:illustration",enableTooltip:!0,label:"Image scale",options:[{label:"Fill image",value:"cover",type:"image",svgName:"gp-image-cover"},{label:"Fit image",value:"contain",type:"image",svgName:"gp-image-contain"}],devices:e("cover")},{id:"itemSpacing",label:"Gallery Item Spacing",type:"input:slider",units:["px"],devices:{desktop:{default:"8px"}}},{id:"corner",type:"radius-preset",label:"Corner",default:{btrr:"0px",bblr:"0px",bbrr:"0px",btlr:"0px",radiusType:"none"},state:{hover:!0,normal:!0}}];exports.productGalleryImageSetting=i,exports.productGalleryImageStyle=t;
1
+ "use strict";var e=require("../../../../helpers/productImagesDrag.js");const i=e=>({desktop:{default:e}}),t=[{id:"type",label:"Gallery Type",type:"segment",hide:!0,options:[{label:"Slide",value:"slider"},{label:"All",value:"images"}],devices:i("slider")},{id:"galleryHoverEffect",label:"Hover Effect",type:"select",hide:!0,hideOnMode:{mobileOnly:!0},options:[{title:"None",value:"none"},{title:"Zoom",value:"zoom"}],default:"none"},{id:"galleryZoomType",type:"select",label:"Zoom Type",hide:!0,default:"default",hideOnMode:{mobileOnly:!0},options:[{title:"Default",value:"default"},{title:"Glasses",value:"glasses"}]},{id:"galleryZoom",type:"input:slider",label:"Zoom Value",min:100,max:200,step:10,default:150,units:["%"],useOnlyUnitInit:!0,isNumber:!0},{id:"clickOpenLightBox",label:"Large view in pop-up",type:"select",options:[{label:"View in featured",value:!1},{label:"Open Gallery",value:!0}],devices:i(!1)},{id:"borderActive",label:"Active border",type:"border",default:{borderType:"none",border:"solid",borderWidth:"1px",width:"1px 1px 1px 1px",isCustom:!1,color:"line-3"},compoDefaultValue:{borderType:"none",border:"solid",borderWidth:"1px",width:"1px 1px 1px 1px",isCustom:!1,color:"line-3"}},{id:"navigationPosition",label:"Navigation",type:"option:illustration",enableTooltip:!0,options:[{label:"No navigation",value:"none",type:"slide-control",hide:!0},{label:"Outside",value:"outside",type:"slide-control",svgName:"gp-slide-control-outside"},{label:"Inside",value:"inside",type:"slide-control",svgName:"gp-slide-control-inside"}],devices:i("inside")},{id:"loop",type:"toggle",devices:i(!0)},{id:"pauseOnHover",label:"Pause On Hover",type:"toggle",hide:!0,default:!0},{id:"speed",type:"input:slider",label:"Speed (s)",hide:!0,min:0,max:60,step:1,default:1},{id:"arrowIcon",type:"icon",hide:!0,label:"Custom Arrow",info:"Choose from list or paste any SVG icon",default:`<svg height="20px" width="20px" data-name="caret-right-bold" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" data-id="508817562042106216">
2
+ <path fill="currentColor" strokelinecap="round" strokelinejoin="round" d="M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"></path></svg>`},{id:"arrowIconSize",label:"Number per show",type:"input:stepper",min:1,devices:{desktop:{default:16}}},{id:"arrowIconColor",label:"Icon color",type:"color-picker-v2",default:"text-1"},{id:"dragToScroll",label:"Drag to scroll",type:"toggle",hide:!0,default:e.PRODUCT_IMAGES_DRAG_TO_SCROLL_DEFAULT},{id:"arrowNavColor",label:"Nav. color",type:"color-picker-v2",default:"bg-3",compoDefaultValue:"bg-3"},{id:"arrowNavSize",type:"size-setting",settingConfig:{width:{name:"Width",units:["px"],displayOptions:["auto"]},height:{name:"Height",units:["px"],displayOptions:["auto"]}},default:{width:"Auto",height:"Auto",padding:{top:"12px",bottom:"12px",left:"12px",right:"12px"},shapeLinked:!0,shape:"square",shapeValue:"1/1"},hiddenSettings:["gap","padding","proportion"]},{id:"arrowNavBorder",label:"Nav. border",type:"border",default:{borderType:"none",border:"none",borderWidth:"1px",width:"1px 1px 1px 1px",isCustom:!1}},{id:"arrowNavRadius",label:"Nav. corner",type:"radius-preset",default:{btrr:"9999px",bblr:"9999px",bbrr:"9999px",btlr:"9999px",radiusType:"circle"}},{id:"arrowNavShadow",type:"shadow-v2",default:{type:"shadow-1",distance:"4px",blur:"12px",spread:"0px",color:"rgba(0, 0, 0, 0.20)",angle:90,enable:!1}}],l=[{id:"shape",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"100%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["full"]}},hiddenSettings:["padding","gap"]},{id:"shapeForFtOnly",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"100%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["full"]}},hiddenSettings:["padding","gap"]},{id:"shapeForBottom",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"20%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["full","small","medium","large"],sizeConfig:{small:"10%",medium:"20%",large:"25%"}}},hiddenSettings:["padding","gap"]},{id:"shapeForInsideBottom",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"20%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["small","medium","large"],sizeConfig:{small:"10%",medium:"20%",large:"25%"}}},hiddenSettings:["padding","gap"]},{id:"shapeForInside",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"20%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["small","medium","large"],sizeConfig:{small:"10%",medium:"20%",large:"25%"}}},hiddenSettings:["padding","gap"]},{id:"shapeFor2Col",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"50%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["full","small","medium","large"],sizeConfig:{small:"25%",medium:"33%",large:"50%"}}},hiddenSettings:["padding","gap"]},{id:"shapeFor1Col",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"100%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["full","small","medium","large"],sizeConfig:{small:"25%",medium:"33%",large:"50%"}}},hiddenSettings:["padding","gap"]},{id:"layout",type:"option:illustration",enableTooltip:!0,label:"Image scale",options:[{label:"Fill image",value:"cover",type:"image",svgName:"gp-image-cover"},{label:"Fit image",value:"contain",type:"image",svgName:"gp-image-contain"}],devices:i("cover")},{id:"itemSpacing",label:"Gallery Item Spacing",type:"input:slider",units:["px"],devices:{desktop:{default:"8px"}}},{id:"corner",type:"radius-preset",label:"Corner",default:{btrr:"0px",bblr:"0px",bbrr:"0px",btlr:"0px",radiusType:"none"},state:{hover:!0,normal:!0}}];exports.productGalleryImageSetting=t,exports.productGalleryImageStyle=l;
@@ -1 +1 @@
1
- "use strict";var e=require("./ProductFeatureImage.js"),t=require("./ProductGalleryImage.js");const l=[{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.productSelectDisplaySetting},{id:"featured-image",type:"group",label:"Featured Image",controls:e.productFeatureImageSetting},{id:"gallery-images",type:"group",label:"Gallery Images",controls:t.productGalleryImageSetting},{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:e.productFeatureImageStyle},{id:"galleryStyles",type:"group",label:"Gallery",controls:t.productGalleryImageStyle},{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"}}}]}];exports.ProductImageSettingsV2=l;
1
+ "use strict";var e=require("./ProductFeatureImage.js"),t=require("./ProductGalleryImage.js");const l=[{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.productSelectDisplaySetting},{id:"featured-image",type:"group",label:"Featured Image",controls:e.productFeatureImageSetting},{id:"gallery-images",type:"group",label:"Gallery Images",controls:t.productGalleryImageSetting},{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:e.productFeatureImageStyle},{id:"galleryStyles",type:"group",label:"Gallery",controls:t.productGalleryImageStyle},{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"}}}]}];exports.ProductImageSettingsV2=l;
@@ -1 +1 @@
1
- "use strict";var i=require("./ui/ImageListNavigation.js"),o=require("./ui/FeatureNavigation.js"),e=require("./ui/FeatureDots.js");const t='((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"}},{...e.FeatureDots,hiddenOnMobile:!0,conditionDisplay:`${n} && position === "only-feature"`},{...o.FeatureNavigation,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.ImageListNavigation,hiddenOnMobile:!0,conditionDisplay:t}],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:t,label:"Drag / swipe",setting:{id:"dragToScroll"}},{conditionDisplay:t,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"}}]}];exports.SettingUIV2=l;
1
+ "use strict";var i=require("./ui/ImageListNavigation.js"),o=require("./ui/FeatureNavigation.js"),e=require("./ui/FeatureDots.js");const t='((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"}},{...e.FeatureDots,hiddenOnMobile:!0,conditionDisplay:`${n} && position === "only-feature"`},{...o.FeatureNavigation,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.ImageListNavigation,hiddenOnMobile:!0,conditionDisplay:t}],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:t,label:"Drag / swipe",setting:{id:"dragToScroll"}},{conditionDisplay:t,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"}}]}];exports.SettingUIV2=l;
@@ -1 +1 @@
1
- "use strict";exports.getIconAttrs=(t,e)=>({"data-slot-type":t?"oos-icon":"has-stock-icon","data-visible":e?"true":"false"}),exports.getLiquidTagAttrs=(t,e,a)=>{let{displayByDefault:s,scarcityThreshold:i=0,template:r,outOfStockMessage:o,continueSelling:l,unlimitedQuantityMessage:d,hiddenCounterWhenOutOfStock:p}=e??{},{displayProgressBar:c,textColor:g,oosTextColor:n,typo:u}=a??{},y=u?.attrs?.color;return{"data-id":t?.uid??"","data-visible":"{{ should_display }}","data-policy":"{{ variant_policy_list | escape }}","gp-setting":JSON.stringify({displayByDefault:s,displayProgressBar:c,scarcityThreshold:i,template:r,outOfStockMessage:o,continueSelling:l,unlimitedQuantityMessage:d,color:g||"brand",hiddenCounterWhenOutOfStock:p,oosTextColor:n,typoColor:y}).replaceAll('"',"&#34;")}},exports.getLiquidTextAttrs=()=>({"data-slot-type":"message"}),exports.getWrapperAttrs=t=>({"data-id":t?.uid??""});
1
+ "use strict";var t=require("./helpers.js");exports.getIconAttrs=(t,e)=>({"data-slot-type":t?"oos-icon":"has-stock-icon","data-visible":e?"true":"false"}),exports.getLiquidTagAttrs=(e,a,s)=>{let{displayByDefault:i,scarcityThreshold:r=0,template:o,outOfStockMessage:l,continueSelling:p,unlimitedQuantityMessage:d,hiddenCounterWhenOutOfStock:c}=a??{},{displayProgressBar:g,oosTextColor:u,typo:n}=s??{},y=n?.attrs?.color,x=t.getMainColor(s);return{"data-id":e?.uid??"","data-visible":"{{ should_display }}","data-policy":"{{ variant_policy_list | escape }}","gp-setting":JSON.stringify({displayByDefault:i,displayProgressBar:g,scarcityThreshold:r,template:o,outOfStockMessage:l,continueSelling:p,unlimitedQuantityMessage:d,color:x,hiddenCounterWhenOutOfStock:c,oosTextColor:u,typoColor:y}).replaceAll('"',"&#34;")}},exports.getLiquidTextAttrs=()=>({"data-slot-type":"message"}),exports.getWrapperAttrs=t=>({"data-id":t?.uid??""});
@@ -1,8 +1,8 @@
1
- "use strict";const e="%number%",t="mark",a="CONTINUE",i=e=>`
1
+ "use strict";var e=require("@gem-sdk/core");const t="%number%",a="mark",i="CONTINUE",r=e=>{let{textColor:t,typo:a}=e??{};return a?.attrs?.color||t||"text-2"},n=e=>`
2
2
  border-top-left-radius: ${e?.bbrr??"0px"};
3
3
  border-top-right-radius: ${e?.bblr??"0px"};
4
4
  border-bottom-left-radius: ${e?.btrr??"0px"};
5
- border-bottom-right-radius: ${e?.btlr??"0px"};`;exports.CONTINUE_SELLING_WHEN_OUT_OF_STOCK=a,exports.DEFAULT_FONT_SIZE=20,exports.DEFAULT_HIGHLIGHT_TAG=t,exports.DEFAULT_PROGRESS_BAR_HEIGHT=10,exports.DEFAULT_QUANTITY_TEMPLATE=e,exports.DEFAULT_RANGE_STEP=10,exports.DEFAULT_REMAINING_PERCENT=20,exports.DEFAULT_REMAINING_QUANTITY=12,exports.DEFAULT_SCARCITY_THRESHOLD=12,exports.MAX_PROGRESS_BAR_HEIGHT=20,exports.MAX_REMAINING_PERCENT=100,exports.MIN_PROGRESS_BAR_HEIGHT=5,exports.MIN_REMAINING_PERCENT=10,exports.MIN_REMAINING_QUANTITY=0,exports.NO_PRODUCT_LEFT=0,exports.OUT_OF_STOCK={SHOW:"show",HIDE:"hide"},exports.QUANTITY_SOURCE={AUTO:"auto",MANUAL:"manual"},exports.convertSizeToWidth=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},exports.getInlineCss=(e,t)=>{let a=i(t);if(e)return`
5
+ border-bottom-right-radius: ${e?.btlr??"0px"};`;exports.CONTINUE_SELLING_WHEN_OUT_OF_STOCK=i,exports.DEFAULT_FONT_SIZE=20,exports.DEFAULT_HIGHLIGHT_TAG=a,exports.DEFAULT_PROGRESS_BAR_HEIGHT=10,exports.DEFAULT_QUANTITY_TEMPLATE=t,exports.DEFAULT_RANGE_STEP=10,exports.DEFAULT_REMAINING_PERCENT=20,exports.DEFAULT_REMAINING_QUANTITY=12,exports.DEFAULT_SCARCITY_THRESHOLD=12,exports.MAX_PROGRESS_BAR_HEIGHT=20,exports.MAX_REMAINING_PERCENT=100,exports.MIN_PROGRESS_BAR_HEIGHT=5,exports.MIN_REMAINING_PERCENT=10,exports.MIN_REMAINING_QUANTITY=0,exports.NO_PRODUCT_LEFT=0,exports.OUT_OF_STOCK={SHOW:"show",HIDE:"hide"},exports.QUANTITY_SOURCE={AUTO:"auto",MANUAL:"manual"},exports.convertSizeToWidth=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},exports.getInlineCss=(e,t)=>{let a=n(t);if(e)return`
6
6
  [data-id="${e}"] {
7
7
  .gp-sc-progress-bar{
8
8
  ${a}
@@ -10,16 +10,16 @@
10
10
  .gp-sc-progress-bar:before{
11
11
  ${a}
12
12
  }
13
- }`},exports.getLiquidInitData=(e,t)=>{let{scarcityThreshold:i=0,hiddenCounterWhenOutOfStock:n,displayByDefault:r}=e??{},{displayProgressBar:s}=t??{},l=!!i&&i>0;return`{%- liquid
13
+ }`},exports.getLiquidInitData=(e,t)=>{let{scarcityThreshold:a=0,hiddenCounterWhenOutOfStock:r,displayByDefault:n}=e??{},{displayProgressBar:s}=t??{},o=!!a&&a>0;return`{%- liquid
14
14
  assign current_variant = variant
15
15
  assign available = current_variant.available | default: false
16
16
  assign inventory_management = current_variant.inventory_management | default: null
17
17
  assign inventory_policy = current_variant.inventory_policy | default: 'deny'
18
18
  assign inventory_quantity = current_variant.inventory_quantity | default: 0
19
- assign scarcityThreshold = ${l}
20
- assign check_display = ${!!r}
19
+ assign scarcityThreshold = ${o}
20
+ assign check_display = ${!!n}
21
21
 
22
- if inventory_management != null and available == false and inventory_quantity <= 0 and inventory_policy != '${a.toLowerCase()}'
22
+ if inventory_management != null and available == false and inventory_quantity <= 0 and inventory_policy != '${i.toLowerCase()}'
23
23
  assign is_out_of_stock = true
24
24
  else
25
25
  assign is_out_of_stock = false
@@ -27,13 +27,13 @@
27
27
 
28
28
  if check_display == true
29
29
  assign should_display = true
30
- elsif ${l} and inventory_quantity >= 0 and inventory_quantity < ${i}
30
+ elsif ${o} and inventory_quantity >= 0 and inventory_quantity < ${a}
31
31
  assign should_display = true
32
32
  else
33
33
  assign should_display = false
34
34
  endif
35
35
 
36
- if ${!0===n} and available == false
36
+ if ${!0===r} and available == false
37
37
  assign should_display = false
38
38
  endif
39
39
 
@@ -50,22 +50,22 @@
50
50
  "{{ variant.id }}_management":"{{ variant.inventory_management }}"{% if forloop.last == false %},{% endif %}
51
51
  {% endfor %}
52
52
  }
53
- {% endcapture %}`},exports.getLiquidTextContent=e=>{let{templateStringDisplay:t,outOfStockMessageDisplay:i,continueSellingDisplay:n,unlimitedQuantityMessageDisplay:r}=e??{};return`{% if inventory_management == null and inventory_quantity <= 0 %}
54
- ${r}
55
- {% elsif available == false %}
56
- ${i}
57
- {% elsif available and inventory_policy == '${a.toLowerCase()}' and inventory_quantity <= 0 %}
53
+ {% endcapture %}`},exports.getLiquidTextContent=e=>{let{templateStringDisplay:t,outOfStockMessageDisplay:a,continueSellingDisplay:r,unlimitedQuantityMessageDisplay:n}=e??{};return`{% if inventory_management == null and inventory_quantity <= 0 %}
58
54
  ${n}
55
+ {% elsif available == false %}
56
+ ${a}
57
+ {% elsif available and inventory_policy == '${i.toLowerCase()}' and inventory_quantity <= 0 %}
58
+ ${r}
59
59
  {% else %}
60
60
  ${t}
61
- {% endif %}`},exports.getTextDisplayData=(e,t)=>{let{templateStringDisplay:a,outOfStockMessageDisplay:i,continueSellingDisplay:n,unlimitedQuantityMessageDisplay:r}=e??{},{textColor:s}=t??{},l=s||"brand";return`
62
- <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}" >
63
- <div id="template">${a}</div>
64
- <div id="out-of-stock-message">${i}</div>
65
- <div id="continue-selling">${n}</div>
66
- <div id="unlimited-quantity-message">${r}</div>
67
- </div>`},exports.transformHighlighTag=(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}'>
61
+ {% endif %}`},exports.getMainColor=r,exports.getTextDisplayData=(t,a)=>{let{templateStringDisplay:i,outOfStockMessageDisplay:n,continueSellingDisplay:s,unlimitedQuantityMessageDisplay:o}=t??{},l=r(a),p=e.isColor(l)?"":`gp-text-g-${l} gp-bg-g-${l}`;return`
62
+ <div class="gp-hidden gp-text-white gp-py-1 gp-px-2 gp-mr-1 gp-inline-block gp-my-[1px] ${p}" >
63
+ <div id="template">${i}</div>
64
+ <div id="out-of-stock-message">${n}</div>
65
+ <div id="continue-selling">${s}</div>
66
+ <div id="unlimited-quantity-message">${o}</div>
67
+ </div>`},exports.transformHighlighTag=(t,i)=>{if(!t.includes(`<${a}>`))return t;let r="gp-text-white gp-py-1 gp-px-2 gp-mr-1 gp-inline-block gp-my-[1px]",n=`<${a}>`;return n=e.isColor(i)?`
68
+ <${a} class='${r}' style='background-color: ${i}'>
69
69
  `:`
70
- <${t} class='${i} gp-bg-g-${a}'>
71
- `,e.replaceAll(`<${t}>`,n)},exports.transformNumberTag=(t,a,i)=>{if(!t.includes(e))return t;let n="";return n=a.includes("#")?`<span style='--c: ${a}'><$quantity$></span>`:`<span class='gp-text-g-${a}'><$quantity$></span>`,i&&(n=n.replace("<$quantity$>",i.toString())),t.replaceAll(e,n)};
70
+ <${a} class='${r} gp-bg-g-${i}'>
71
+ `,t.replaceAll(`<${a}>`,n)},exports.transformNumberTag=(a,i,r)=>{if(!a.includes(t))return a;let n="";return n=e.isColor(i)?`<span style='--c: ${i}'><$quantity$></span>`:`<span class='gp-text-g-${i}'><$quantity$></span>`,r&&(n=n.replace("<$quantity$>",r.toString())),a.replaceAll(t,n)};
@@ -1 +1 @@
1
- "use strict";var e=require("../common/helpers.js"),r=require("@gem-sdk/core"),t=require("react");exports.useStockCounter=(n,o)=>{let a=r.useEditorMode(),{template:i,outOfStockMessage:u,continueSelling:s,unlimitedQuantityMessage:l}=n??{},{textColor:h}=o??{},T=h||"brand",g=r.useCurrentVariant(),O=t.useMemo(()=>Number(g?g.inventoryQuantity:0),[g]),c=!g||g.manageInventory,d=g?g.inventoryPolicy:"deny",m=c&&O<=e.NO_PRODUCT_LEFT&&d!==e.CONTINUE_SELLING_WHEN_OUT_OF_STOCK,_=d===e.CONTINUE_SELLING_WHEN_OUT_OF_STOCK&&O<=e.NO_PRODUCT_LEFT,y=!c&&l;function f(){return y?e.transformHighlighTag(l,T):m?e.transformHighlighTag(u||"",T):_?e.transformHighlighTag(s||"",T):e.transformHighlighTag(e.transformNumberTag(i||"",T,O),T)}let N=t.useMemo(()=>{if("edit"===a)return!1;let e=!n?.displayByDefault&&O>=(n?.scarcityThreshold??0),r=n?.hiddenCounterWhenOutOfStock&&m;return e||r},[O,m,a,n?.displayByDefault,n?.hiddenCounterWhenOutOfStock,n?.scarcityThreshold]);return{outputMessage:()=>{let e=o?.typo?.attrs?.transform==="capitalize";return e?f()?.toLocaleLowerCase():f()},isOutOfStock:m,inventoryQuantity:O,shouldHideCounter:N}};
1
+ "use strict";var e=require("@gem-sdk/core"),r=require("react"),t=require("../common/helpers.js");exports.useStockCounter=(o,n)=>{let a=e.useEditorMode(),{template:i,outOfStockMessage:u,continueSelling:s,unlimitedQuantityMessage:l}=o??{},g=t.getMainColor(n),h=e.useCurrentVariant(),T=r.useMemo(()=>Number(h?h.inventoryQuantity:0),[h]),O=!h||h.manageInventory,c=h?h.inventoryPolicy:"deny",m=O&&T<=t.NO_PRODUCT_LEFT&&c!==t.CONTINUE_SELLING_WHEN_OUT_OF_STOCK,_=c===t.CONTINUE_SELLING_WHEN_OUT_OF_STOCK&&T<=t.NO_PRODUCT_LEFT,d=!O&&l;function y(){return d?t.transformHighlighTag(l,g):m?t.transformHighlighTag(u||"",g):_?t.transformHighlighTag(s||"",g):t.transformHighlighTag(t.transformNumberTag(i||"",g,T),g)}let f=r.useMemo(()=>{if("edit"===a)return!1;let e=!o?.displayByDefault&&T>=(o?.scarcityThreshold??0),r=o?.hiddenCounterWhenOutOfStock&&m;return e||r},[T,m,a,o?.displayByDefault,o?.hiddenCounterWhenOutOfStock,o?.scarcityThreshold]);return{outputMessage:()=>{let e=n?.typo?.attrs?.transform==="capitalize";return e?y()?.toLocaleLowerCase():y()},isOutOfStock:m,inventoryQuantity:T,shouldHideCounter:f}};
@@ -1,8 +1,8 @@
1
- "use strict";var e=require("@gem-sdk/core");exports.get3rdPartyInstallLink=({handle:e})=>`https://help.gempages.net/articles/${e}`,exports.getLiquidForAppBlock=(t,r,p)=>e.template`
1
+ "use strict";var e=require("@gem-sdk/core");exports.get3rdPartyAppStoreLink=({handle:e})=>`https://apps.shopify.com/${e}`,exports.get3rdPartyInstallLink=({handle:e})=>`https://help.gempages.net/articles/${e}`,exports.getLiquidForAppBlock=(t,p,r)=>e.template`
2
2
  {% assign app_blocks = section.blocks | where: "type", "@app" %}
3
3
  <div
4
- class="gp-flex gp-w-full gp-items-center ${p}"
5
- style="${{...e.makeStyleResponsive("jc",r)}}"
4
+ class="gp-flex gp-w-full gp-items-center ${r}"
5
+ style="${{...e.makeStyleResponsive("jc",p)}}"
6
6
  >
7
7
  {% for block in app_blocks %}
8
8
  {% if block.type == '@app' and block.id contains '${t}' %}
@@ -10,4 +10,4 @@
10
10
  {% endif %}
11
11
  {% endfor %}
12
12
  </div>
13
- `,exports.getYotpoFormCode=e=>{if(!e)return"";let t="";return e.replace(/data-yotpo-instance-id ?= ?"([^"]+)"/gi,r=>(t=(t=(t=(t=r).replace("data-yotpo-instance-id=","")).replace(/['"]+/g,"")).replace(/["']+/g,""),e)),t},exports.getYotpoUri=e=>{if(!e)return"";let t="";return(e.replace(/src ?= ?"([^"]+)"/gi,r=>(t=(t=(t=(t=r).replace("src=","")).replace(/['"]+/g,"")).replace(/["']+/g,""),e)),t)?t:""};
13
+ `,exports.getYotpoFormCode=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},exports.getYotpoUri=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:""};
@@ -1,11 +1,36 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@gem-sdk/core");exports.default=({setting:o,advanced:t})=>{let{widgetType:r,align:a}=o??{};return e.template`
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@gem-sdk/core");exports.default=({setting:t,advanced:o})=>{let{widgetType:a,align:r}=t??{};return e.template`
2
2
  <div
3
- class="${t?.cssClass}"
4
- style="${{...e.makeStyleResponsive("ta",a)}}"
3
+ class="${o?.cssClass}"
4
+ style="${{...e.makeStyleResponsive("ta",r)}}"
5
5
  >
6
6
  <klarna-placement
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"}})()}
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"}})()}
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
36
  `};
@@ -1,4 +1,4 @@
1
1
  "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../configs/AftershipEmailMarketingsms.js"),t=require("../../common/helpers.js"),i=require("./uiV2.js");const l={tag:e.default.tag,label:e.default.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.default.id,name:e.default.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.default.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.get3rdPartyInstallLink({handle:"aftership-email-marketing-sms"}),appName:e.default.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.default.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.default};exports.default=l;
4
+ </div>`},components:[{tag:e.default.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.get3rdPartyInstallLink({handle:"aftership-email-marketing-sms"}),appName:e.default.label},{id:"formId",type:"input",default:""},{id:"getFormId",type:"group"},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:t.get3rdPartyAppStoreLink({handle:"automizely-messages"}),appName:e.default.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.default};exports.default=l;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../configs/AirProductReviewsAppUgc.js"),t=require("../../common/helpers.js"),i=require("./uiV2.js");const a={tag:e.default.tag,label:e.default.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.default.id,name:e.default.label,hideTextContent:!0,icon:{desktop:`<div class="w-full flex flex-col items-center">
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../configs/AirProductReviewsAppUgc.js"),t=require("../../common/helpers.js"),l=require("./uiV2.js");const a={tag:e.default.tag,label:e.default.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.default.id,name:e.default.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.default.tag}]}],settings:[{id:"setting",controls:[{id:"install",type:"open-link",target:"_blank",linkType:"install",href:t.get3rdPartyInstallLink({handle:"air-product-reviews-app-ugc"}),appName:e.default.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.default.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.default};exports.default=a;
4
+ </div>`},components:[{tag:e.default.tag}]}],settings:[{id:"setting",controls:[{id:"install",type:"open-link",target:"_blank",linkType:"install",href:t.get3rdPartyInstallLink({handle:"air-product-reviews-app-ugc"}),appName:e.default.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.get3rdPartyAppStoreLink({handle:"air-reviews"}),appName:e.default.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.default};exports.default=a;
@@ -3,4 +3,4 @@
3
3
  <img class="w-24 border border-dark-200 rounded-medium" src="${t.default.logoUrl}?width=22&height=22">
4
4
  <span class="preset-item-title">${t.default.label}</span>
5
5
  </div>
6
- `},components:[{tag:t.default.tag}]}],settings:[{id:"setting",controls:[{id:"install",type:"open-link",target:"_blank",linkType:"install",href:e.get3rdPartyInstallLink({handle:"ali-reviews-kudosi-reviews"}),appName:t.default.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"https://admin.shopify.com/?redirect=/apps/ali-reviews",appName:t.default.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:l.default};exports.WidgetOptions=a,exports.default=i;
6
+ `},components:[{tag:t.default.tag}]}],settings:[{id:"setting",controls:[{id:"install",type:"open-link",target:"_blank",linkType:"install",href:e.get3rdPartyInstallLink({handle:"ali-reviews-kudosi-reviews"}),appName:t.default.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:e.get3rdPartyAppStoreLink({handle:"ali-reviews"}),appName:t.default.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:l.default};exports.WidgetOptions=a,exports.default=i;
@@ -1,4 +1,4 @@
1
1
  "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../common/helpers.js"),t=require("../../configs/AlsoBoughtCbb.js"),l=require("./uiV2.js");const a={tag:t.default.tag,label:t.default.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.default.id,name:t.default.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.default.tag}]}],settings:[{id:"setting",controls:[{id:"install",type:"open-link",target:"_blank",linkType:"install",href:e.get3rdPartyInstallLink({handle:"also-bought-cbb"}),appName:t.default.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"https://admin.shopify.com/?redirect=/apps/also-bought",appName:t.default.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:l.default};exports.default=a;
4
+ </div>`},components:[{tag:t.default.tag}]}],settings:[{id:"setting",controls:[{id:"install",type:"open-link",target:"_blank",linkType:"install",href:e.get3rdPartyInstallLink({handle:"also-bought-cbb"}),appName:t.default.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:e.get3rdPartyAppStoreLink({handle:"also-bought"}),appName:t.default.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:l.default};exports.default=a;