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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (501) hide show
  1. package/dist/cjs/article/components/ArticleImage.js +1 -1
  2. package/dist/cjs/article/components/ArticleImage.liquid.js +6 -6
  3. package/dist/cjs/article/components/ArticleList.js +1 -1
  4. package/dist/cjs/article/index.js +1 -1
  5. package/dist/cjs/article/settings/configs/article-image/settings.js +1 -1
  6. package/dist/cjs/article/settings/configs/article-image/ui-v2.js +1 -1
  7. package/dist/cjs/builder.js +1 -1
  8. package/dist/cjs/button/common/helpers.js +2 -2
  9. package/dist/cjs/cart/components/CartList.js +1 -1
  10. package/dist/cjs/cart/index.js +1 -1
  11. package/dist/cjs/collection/index.js +1 -1
  12. package/dist/cjs/common/components/Loading.js +1 -1
  13. package/dist/cjs/common/const.js +1 -1
  14. package/dist/cjs/common/helpers.js +1 -0
  15. package/dist/cjs/common/hooks/useElementWidth.js +1 -0
  16. package/dist/cjs/common/hooks/useLoadingProgress.js +1 -0
  17. package/dist/cjs/grid/components/row/Row.liquid.js +12 -12
  18. package/dist/cjs/grid/components/section/Section.js +1 -1
  19. package/dist/cjs/grid/index.js +1 -1
  20. package/dist/cjs/header/components/kind/basic/index.js +1 -1
  21. package/dist/cjs/header/components/kind/modern/index.js +1 -1
  22. package/dist/cjs/header/index.js +1 -1
  23. package/dist/cjs/hero-banner/common/styles.js +1 -1
  24. package/dist/cjs/hero-banner/components/HeroBannerItem.js +1 -1
  25. package/dist/cjs/hero-banner/components/HeroBannerItem.liquid.js +5 -5
  26. package/dist/cjs/hero-banner/index.js +1 -1
  27. package/dist/cjs/image/common/adaptiveSources.js +1 -0
  28. package/dist/cjs/image/common/attrs.js +1 -1
  29. package/dist/cjs/image/common/classes.js +1 -1
  30. package/dist/cjs/image/common/helpers.js +2 -2
  31. package/dist/cjs/image/common/liquidSrcset.js +1 -0
  32. package/dist/cjs/image/common/listContext.js +1 -0
  33. package/dist/cjs/image/common/listImageContext.js +1 -0
  34. package/dist/cjs/image/common/sizes.js +1 -0
  35. package/dist/cjs/image/common/srcset.js +1 -0
  36. package/dist/cjs/image/components/AdaptiveImage.js +1 -1
  37. package/dist/cjs/image/components/AdaptiveImage.liquid.js +10 -12
  38. package/dist/cjs/image/components/Image.js +1 -1
  39. package/dist/cjs/image/components/Image.liquid.js +10 -10
  40. package/dist/cjs/image/components/NextImage.js +1 -1
  41. package/dist/cjs/image/components/NextImage.liquid.js +4 -5
  42. package/dist/cjs/image/constants.js +1 -1
  43. package/dist/cjs/image/index.js +1 -1
  44. package/dist/cjs/image/settings/configs/settings.js +1 -1
  45. package/dist/cjs/image/settings/configs/ui-v2.js +1 -1
  46. package/dist/cjs/image-comparison/common/attrs.js +1 -1
  47. package/dist/cjs/image-comparison/components/CompareImage.js +1 -1
  48. package/dist/cjs/image-comparison/components/CompareImage.liquid.js +14 -14
  49. package/dist/cjs/image-comparison/components/ImageComparison.liquid.js +3 -3
  50. package/dist/cjs/image-comparison/index.js +1 -1
  51. package/dist/cjs/image-comparison/settings/configs/settings.js +1 -1
  52. package/dist/cjs/image-comparison/settings/configs/ui-v2.js +1 -1
  53. package/dist/cjs/index.js +1 -1
  54. package/dist/cjs/post-purchase/callout-banner/index.js +1 -1
  55. package/dist/cjs/post-purchase/product/components/ProductPrice.js +1 -1
  56. package/dist/cjs/post-purchase/product/components/ProductQuantity.js +1 -1
  57. package/dist/cjs/post-purchase/product/components/product-offer/components/ProductOffer.js +1 -1
  58. package/dist/cjs/post-purchase/product/components/product-offer/helpers/getOfferErrorText.js +1 -0
  59. package/dist/cjs/post-purchase/product/components/product-offer/hooks/useProductOfferData.js +1 -1
  60. package/dist/cjs/post-purchase/product/hooks/useHandleQuantity.js +1 -1
  61. package/dist/cjs/post-purchase/product/index.js +1 -1
  62. package/dist/cjs/post-purchase/product/settings/product-quantity/configs/settings.js +1 -1
  63. package/dist/cjs/post-purchase/product/settings/product-quantity/configs/ui-v2.js +1 -1
  64. package/dist/cjs/product/components/product-badge/ProductBadge.js +1 -1
  65. package/dist/cjs/product/components/product-badge/common/styles.js +1 -1
  66. package/dist/cjs/product/components/product-bundle/ProductBundleDiscount.js +1 -1
  67. package/dist/cjs/product/components/product-bundle/ProductBundleDiscountWarning.js +2 -0
  68. package/dist/cjs/product/components/product-bundle/common/classes.js +1 -1
  69. package/dist/cjs/product/components/product-bundle/hooks/useProductBundleDataState.js +3 -3
  70. package/dist/cjs/product/components/product-discount-tag/ProductDiscountTag.js +1 -1
  71. package/dist/cjs/product/components/product-discount-tag/common/helpers.js +1 -0
  72. package/dist/cjs/product/components/product-images/ProductImagesLightBox.js +1 -1
  73. package/dist/cjs/product/components/product-images-v2/common/common.js +1 -1
  74. package/dist/cjs/product/components/product-images-v2/components/child/ProductFeaturedImageOnly.js +1 -1
  75. package/dist/cjs/product/components/product-images-v2/components/child/ProductGalleryGrid.js +1 -1
  76. package/dist/cjs/product/components/product-images-v2/components/feature-gallery/FeatureImageWithGallery.liquid.js +41 -41
  77. package/dist/cjs/product/components/product-images-v2/components/gallery-carousel/GalleryCarousel.js +1 -1
  78. package/dist/cjs/product/components/product-images-v2/components/gallery-carousel/GalleryCarousel.liquid.js +13 -13
  79. package/dist/cjs/product/components/product-images-v2/components/gallery-grid/GalleryGrid.liquid.js +23 -23
  80. package/dist/cjs/product/components/product-images-v2/components/lightbox/ProductImagesLightBox.js +1 -1
  81. package/dist/cjs/product/components/product-images-v3/ProductImagesV3.liquid.js +3 -3
  82. package/dist/cjs/product/components/product-images-v3/common/common.js +1 -1
  83. package/dist/cjs/product/components/product-images-v3/components/child/ProductFeaturedImageOnly.js +1 -1
  84. package/dist/cjs/product/components/product-images-v3/components/child/ProductGalleryGrid.js +1 -1
  85. package/dist/cjs/product/components/product-images-v3/components/feature-gallery/FeatureImageWithGallery.liquid.js +40 -40
  86. package/dist/cjs/product/components/product-images-v3/components/feature-gallery/FeatureImageWithGalleryEmbla.liquid.js +40 -40
  87. package/dist/cjs/product/components/product-images-v3/components/gallery-carousel/GalleryCarousel.js +1 -1
  88. package/dist/cjs/product/components/product-images-v3/components/gallery-carousel/GalleryCarousel.liquid.js +12 -12
  89. package/dist/cjs/product/components/product-images-v3/components/gallery-carousel/GalleryCarouselEmbla.liquid.js +12 -12
  90. package/dist/cjs/product/components/product-images-v3/components/gallery-grid/GalleryGrid.liquid.js +23 -23
  91. package/dist/cjs/product/components/product-images-v3/components/lightbox/ProductImagesLightBox.js +1 -1
  92. package/dist/cjs/product/components/product-list/ProductList.js +1 -1
  93. package/dist/cjs/product/components/product-list/ProductListCarouselLayout.js +1 -1
  94. package/dist/cjs/product/components/product-list/ProductListCarouselLayout.liquid.js +9 -7
  95. package/dist/cjs/product/components/product-list/ProductListGridLayout.js +1 -1
  96. package/dist/cjs/product/components/product-list/ProductListGridLayout.liquid.js +16 -14
  97. package/dist/cjs/product/components/product-list/common/helpers.js +1 -1
  98. package/dist/cjs/product/components/product-list/common/imagePriority.js +17 -0
  99. package/dist/cjs/product/components/product-list/common/imagePriorityHints.js +1 -0
  100. package/dist/cjs/product/components/product-list-v3/ProductList.js +1 -1
  101. package/dist/cjs/product/components/product-list-v3/ProductListCarouselLayout.js +1 -1
  102. package/dist/cjs/product/components/product-list-v3/ProductListCarouselLayout.liquid.js +11 -9
  103. package/dist/cjs/product/components/product-list-v3/ProductListGridLayout.js +1 -1
  104. package/dist/cjs/product/components/product-list-v3/ProductListGridLayout.liquid.js +16 -14
  105. package/dist/cjs/product/components/product-price/hooks/useGpPrice.js +1 -1
  106. package/dist/cjs/product/components/product-wrap/Product.js +1 -1
  107. package/dist/cjs/product/components/product-wrap/hook/useProductSetting.js +1 -1
  108. package/dist/cjs/product/helpers/product-bundle.js +1 -1
  109. package/dist/cjs/product/index.js +1 -1
  110. package/dist/cjs/product/settings/product-image-v2/configs/setting-v2/index.js +1 -1
  111. package/dist/cjs/product/settings/product-image-v2/configs/ui-v2.js +1 -1
  112. package/dist/cjs/product/settings/product-image-v3/configs/setting-v2/index.js +1 -1
  113. package/dist/cjs/product/settings/product-image-v3/configs/ui-v2.js +1 -1
  114. package/dist/cjs/stock-counter/common/attrs.js +1 -1
  115. package/dist/cjs/stock-counter/common/helpers.js +23 -23
  116. package/dist/cjs/stock-counter/hooks/useStockCounter.js +1 -1
  117. package/dist/cjs/third-party/common/helpers.js +4 -4
  118. package/dist/cjs/third-party/components/KlarnaMessaging.liquid.js +29 -4
  119. package/dist/cjs/third-party/settings/AftershipEmailMarketingsms/index.js +1 -1
  120. package/dist/cjs/third-party/settings/AirProductReviewsAppUgc/index.js +2 -2
  121. package/dist/cjs/third-party/settings/AliReviews/index.js +1 -1
  122. package/dist/cjs/third-party/settings/AlsoBoughtCbb/index.js +1 -1
  123. package/dist/cjs/third-party/settings/AovBundlesVolumeDiscounts/index.js +2 -2
  124. package/dist/cjs/third-party/settings/AovFreeGiftBuyXGetYBogo/index.js +2 -2
  125. package/dist/cjs/third-party/settings/AppointmentBookingCowlendar/index.js +2 -2
  126. package/dist/cjs/third-party/settings/AppstleBundlesDiscounts/index.js +2 -2
  127. package/dist/cjs/third-party/settings/AppstleLoyaltyRewardProgram/index.js +1 -1
  128. package/dist/cjs/third-party/settings/AppstleSubscriptions/index.js +1 -1
  129. package/dist/cjs/third-party/settings/BestBuyFulfillment/index.js +1 -1
  130. package/dist/cjs/third-party/settings/BfSizeChartSizeGuide/index.js +1 -1
  131. package/dist/cjs/third-party/settings/BirdChime/index.js +4 -4
  132. package/dist/cjs/third-party/settings/BloyRewardsProgramLoyalty/index.js +1 -1
  133. package/dist/cjs/third-party/settings/Bogos/index.js +1 -1
  134. package/dist/cjs/third-party/settings/BoldProductOptions/index.js +4 -4
  135. package/dist/cjs/third-party/settings/BoldSubscriptions/index.js +1 -1
  136. package/dist/cjs/third-party/settings/BonLoyaltyRewardsReferrals/index.js +1 -1
  137. package/dist/cjs/third-party/settings/BonySubscriptionsApp/index.js +2 -2
  138. package/dist/cjs/third-party/settings/BoostAISearchDiscovery/index.js +1 -1
  139. package/dist/cjs/third-party/settings/Bundler/index.js +1 -1
  140. package/dist/cjs/third-party/settings/CleanSizeCharts/index.js +1 -1
  141. package/dist/cjs/third-party/settings/CrossSellCartUpsell/index.js +1 -1
  142. package/dist/cjs/third-party/settings/CustomProductOptionsVariant/index.js +2 -2
  143. package/dist/cjs/third-party/settings/DealeasyVolumeDiscounts/index.js +2 -2
  144. package/dist/cjs/third-party/settings/DiscountyBulkDiscountSales/index.js +2 -2
  145. package/dist/cjs/third-party/settings/EasifyProductOptions/index.js +1 -1
  146. package/dist/cjs/third-party/settings/EasyBundleBuilderSkailama/index.js +2 -2
  147. package/dist/cjs/third-party/settings/EasySellCOD/index.js +4 -4
  148. package/dist/cjs/third-party/settings/EcoboostifyShoppableReelUgc/index.js +2 -2
  149. package/dist/cjs/third-party/settings/EcomsendBackInStockAlert/index.js +1 -1
  150. package/dist/cjs/third-party/settings/EssentPreorderBackInStock/index.js +2 -2
  151. package/dist/cjs/third-party/settings/EssentialAnnouncementBar/index.js +1 -1
  152. package/dist/cjs/third-party/settings/EssentialCountdownTimerBar/index.js +2 -2
  153. package/dist/cjs/third-party/settings/EstimatedDeliveryDatePlus/index.js +2 -2
  154. package/dist/cjs/third-party/settings/FastBundleBundlesDiscounts/index.js +2 -2
  155. package/dist/cjs/third-party/settings/FeraReviews/index.js +1 -1
  156. package/dist/cjs/third-party/settings/FirePush/index.js +1 -1
  157. package/dist/cjs/third-party/settings/FlyBundlesUpsellsFbt/index.js +1 -1
  158. package/dist/cjs/third-party/settings/FordeerProductLabels/index.js +2 -2
  159. package/dist/cjs/third-party/settings/FrequentlyBoughtTogether/index.js +1 -1
  160. package/dist/cjs/third-party/settings/GloColorSwatchvariantImage/index.js +1 -1
  161. package/dist/cjs/third-party/settings/GloboProductOptionsVariant/index.js +1 -1
  162. package/dist/cjs/third-party/settings/GoogleReviewsByReputon/index.js +1 -1
  163. package/dist/cjs/third-party/settings/Growave/index.js +1 -1
  164. package/dist/cjs/third-party/settings/GrowthSuiteDiscountCodes/index.js +2 -2
  165. package/dist/cjs/third-party/settings/HextomCountdownTimerBar/index.js +2 -2
  166. package/dist/cjs/third-party/settings/HextomFreeShippingBar/index.js +2 -2
  167. package/dist/cjs/third-party/settings/HulkFormBuilder/index.js +1 -1
  168. package/dist/cjs/third-party/settings/HulkProductOptions/index.js +1 -1
  169. package/dist/cjs/third-party/settings/InfiniteOptions/index.js +1 -1
  170. package/dist/cjs/third-party/settings/Instafeed/index.js +1 -1
  171. package/dist/cjs/third-party/settings/InstasellShoppableInstagram/index.js +1 -1
  172. package/dist/cjs/third-party/settings/JudgemeReviews/index.js +1 -1
  173. package/dist/cjs/third-party/settings/JunipProductReviewsUgc/index.js +1 -1
  174. package/dist/cjs/third-party/settings/KachingBundles/index.js +1 -1
  175. package/dist/cjs/third-party/settings/KachingSubscriptionsApp/index.js +1 -1
  176. package/dist/cjs/third-party/settings/KingProductOptions/index.js +1 -1
  177. package/dist/cjs/third-party/settings/KiteFreeGiftDiscount/index.js +2 -2
  178. package/dist/cjs/third-party/settings/KlarnaMessaging/index.js +2 -2
  179. package/dist/cjs/third-party/settings/Klaviyo/index.js +4 -4
  180. package/dist/cjs/third-party/settings/KoalaBundleQuantityDiscount/index.js +1 -1
  181. package/dist/cjs/third-party/settings/LaiProductReviews/index.js +1 -1
  182. package/dist/cjs/third-party/settings/LoloyalLoyaltyReferrals/index.js +1 -1
  183. package/dist/cjs/third-party/settings/LoopSubscriptions/index.js +1 -1
  184. package/dist/cjs/third-party/settings/LooxReviews/index.js +1 -1
  185. package/dist/cjs/third-party/settings/MaxbundleProductBundles/index.js +1 -1
  186. package/dist/cjs/third-party/settings/MbcBundleVolumeDiscount/index.js +1 -1
  187. package/dist/cjs/third-party/settings/MyappgurusProductReviews/index.js +1 -1
  188. package/dist/cjs/third-party/settings/NotifyBackInStockPreOrder/index.js +1 -1
  189. package/dist/cjs/third-party/settings/OkendoReviewsLoyalty/index.js +1 -1
  190. package/dist/cjs/third-party/settings/Omnisend/index.js +1 -1
  191. package/dist/cjs/third-party/settings/Opinew/index.js +1 -1
  192. package/dist/cjs/third-party/settings/ParcelPanel/index.js +1 -1
  193. package/dist/cjs/third-party/settings/PickyStory/index.js +4 -4
  194. package/dist/cjs/third-party/settings/PowerfulContactFormBuilder/index.js +1 -1
  195. package/dist/cjs/third-party/settings/PreorderNowPreOrderPq/index.js +2 -2
  196. package/dist/cjs/third-party/settings/PreorderNowWodPresale/index.js +1 -1
  197. package/dist/cjs/third-party/settings/ProductOptionsCustomizer/index.js +2 -2
  198. package/dist/cjs/third-party/settings/ProductOptionsVariantOption/index.js +2 -2
  199. package/dist/cjs/third-party/settings/PumperBundlesVolumeDiscount/index.js +2 -2
  200. package/dist/cjs/third-party/settings/PushOwl/index.js +1 -1
  201. package/dist/cjs/third-party/settings/QikifyUpsell/index.js +2 -2
  202. package/dist/cjs/third-party/settings/RapiBundleQuantityBreaks/index.js +2 -2
  203. package/dist/cjs/third-party/settings/RechargeSubscriptions/index.js +1 -1
  204. package/dist/cjs/third-party/settings/RecurpaySubscriptionApp/index.js +1 -1
  205. package/dist/cjs/third-party/settings/Releasit/index.js +1 -1
  206. package/dist/cjs/third-party/settings/RequestQuoteHidePrice/index.js +1 -1
  207. package/dist/cjs/third-party/settings/ReviewxpoProductReviewsApp/index.js +1 -1
  208. package/dist/cjs/third-party/settings/Rivyo/index.js +1 -1
  209. package/dist/cjs/third-party/settings/Ryviu/index.js +1 -1
  210. package/dist/cjs/third-party/settings/SealSubscriptions/index.js +2 -2
  211. package/dist/cjs/third-party/settings/SegunoEmailMarketing/index.js +1 -1
  212. package/dist/cjs/third-party/settings/Selleasy/index.js +1 -1
  213. package/dist/cjs/third-party/settings/SeoantTrustBadgesIcon/index.js +2 -2
  214. package/dist/cjs/third-party/settings/ShopifyForms/index.js +1 -1
  215. package/dist/cjs/third-party/settings/ShopifySubscriptions/index.js +2 -2
  216. package/dist/cjs/third-party/settings/SimpleBundlesKits/index.js +1 -1
  217. package/dist/cjs/third-party/settings/SkioSubscriptionsYcS20/index.js +1 -1
  218. package/dist/cjs/third-party/settings/SmartSearchBarAndFilters/index.js +4 -4
  219. package/dist/cjs/third-party/settings/SproutPlantTreesGrowSales/index.js +1 -1
  220. package/dist/cjs/third-party/settings/Stamped.js +1 -1
  221. package/dist/cjs/third-party/settings/StellarDeliveryDatePickup/index.js +1 -1
  222. package/dist/cjs/third-party/settings/SubifySubscriptionsApp/index.js +2 -2
  223. package/dist/cjs/third-party/settings/TagembedSocialPostReview/index.js +2 -2
  224. package/dist/cjs/third-party/settings/TagshopShoppableVideosUgc/index.js +2 -2
  225. package/dist/cjs/third-party/settings/TeeinblueProductPersonalizer/index.js +2 -2
  226. package/dist/cjs/third-party/settings/TrustBadgesBear/index.js +2 -2
  227. package/dist/cjs/third-party/settings/TrustMe/index.js +4 -4
  228. package/dist/cjs/third-party/settings/TrustedsiteTrustBadges/index.js +1 -1
  229. package/dist/cjs/third-party/settings/Trustoo/index.js +1 -1
  230. package/dist/cjs/third-party/settings/TrustreviewsProductReviews/index.js +1 -1
  231. package/dist/cjs/third-party/settings/TrustshopProductReviews/index.js +1 -1
  232. package/dist/cjs/third-party/settings/UltimateSalesBoost/index.js +1 -1
  233. package/dist/cjs/third-party/settings/UnlimitedBundlesDiscounts/index.js +2 -2
  234. package/dist/cjs/third-party/settings/UppromoteAffiliateMarketing/setting.js +2 -2
  235. package/dist/cjs/third-party/settings/Vitals/index.js +1 -1
  236. package/dist/cjs/third-party/settings/WcWishlistBackInStock/index.js +1 -1
  237. package/dist/cjs/third-party/settings/WhatmoreShoppableVideosreel/index.js +1 -1
  238. package/dist/cjs/third-party/settings/WideBundle/index.js +4 -4
  239. package/dist/cjs/third-party/settings/Wiser/index.js +1 -1
  240. package/dist/cjs/third-party/settings/WishlistKing/index.js +2 -2
  241. package/dist/cjs/third-party/settings/WishlistPlus/index.js +2 -2
  242. package/dist/cjs/third-party/settings/YotpoReviews/index.js +1 -1
  243. package/dist/cjs/video/common/attrs.js +1 -1
  244. package/dist/cjs/video/components/HTML5Embed.js +1 -1
  245. package/dist/cjs/video/components/HTML5Embed.liquid.js +11 -11
  246. package/dist/cjs/video/components/LiteVimeoEmbed.liquid.js +11 -11
  247. package/dist/cjs/video/components/LiteYouTubeEmbed.js +1 -1
  248. package/dist/cjs/video/components/LiteYouTubeEmbed.liquid.js +11 -11
  249. package/dist/cjs/video/components/Video.liquid.js +1 -1
  250. package/dist/esm/article/components/ArticleImage.js +1 -1
  251. package/dist/esm/article/components/ArticleImage.liquid.js +7 -7
  252. package/dist/esm/article/components/ArticleList.js +1 -1
  253. package/dist/esm/article/index.js +1 -1
  254. package/dist/esm/article/settings/configs/article-image/settings.js +1 -1
  255. package/dist/esm/article/settings/configs/article-image/ui-v2.js +1 -1
  256. package/dist/esm/builder.js +1 -1
  257. package/dist/esm/button/common/helpers.js +2 -2
  258. package/dist/esm/cart/components/CartList.js +1 -1
  259. package/dist/esm/cart/index.js +1 -1
  260. package/dist/esm/collection/index.js +1 -1
  261. package/dist/esm/common/components/Loading.js +1 -1
  262. package/dist/esm/common/const.js +1 -1
  263. package/dist/esm/common/helpers.js +1 -0
  264. package/dist/esm/common/hooks/useElementWidth.js +1 -0
  265. package/dist/esm/common/hooks/useLoadingProgress.js +1 -0
  266. package/dist/esm/grid/components/row/Row.liquid.js +10 -10
  267. package/dist/esm/grid/components/section/Section.js +1 -1
  268. package/dist/esm/grid/index.js +1 -1
  269. package/dist/esm/header/components/kind/basic/index.js +1 -1
  270. package/dist/esm/header/components/kind/modern/index.js +1 -1
  271. package/dist/esm/header/index.js +1 -1
  272. package/dist/esm/hero-banner/common/styles.js +1 -1
  273. package/dist/esm/hero-banner/components/HeroBannerItem.js +1 -1
  274. package/dist/esm/hero-banner/components/HeroBannerItem.liquid.js +10 -10
  275. package/dist/esm/hero-banner/index.js +1 -1
  276. package/dist/esm/image/common/adaptiveSources.js +1 -0
  277. package/dist/esm/image/common/attrs.js +1 -1
  278. package/dist/esm/image/common/classes.js +1 -1
  279. package/dist/esm/image/common/helpers.js +2 -2
  280. package/dist/esm/image/common/liquidSrcset.js +1 -0
  281. package/dist/esm/image/common/listContext.js +1 -0
  282. package/dist/esm/image/common/listImageContext.js +1 -0
  283. package/dist/esm/image/common/sizes.js +1 -0
  284. package/dist/esm/image/common/srcset.js +1 -0
  285. package/dist/esm/image/components/AdaptiveImage.js +1 -1
  286. package/dist/esm/image/components/AdaptiveImage.liquid.js +11 -13
  287. package/dist/esm/image/components/Image.js +1 -1
  288. package/dist/esm/image/components/Image.liquid.js +3 -3
  289. package/dist/esm/image/components/NextImage.js +1 -1
  290. package/dist/esm/image/components/NextImage.liquid.js +5 -6
  291. package/dist/esm/image/constants.js +1 -1
  292. package/dist/esm/image/index.js +1 -1
  293. package/dist/esm/image/settings/configs/settings.js +1 -1
  294. package/dist/esm/image/settings/configs/ui-v2.js +1 -1
  295. package/dist/esm/image-comparison/common/attrs.js +1 -1
  296. package/dist/esm/image-comparison/components/CompareImage.js +1 -1
  297. package/dist/esm/image-comparison/components/CompareImage.liquid.js +17 -17
  298. package/dist/esm/image-comparison/components/ImageComparison.liquid.js +3 -3
  299. package/dist/esm/image-comparison/index.js +1 -1
  300. package/dist/esm/image-comparison/settings/configs/settings.js +1 -1
  301. package/dist/esm/image-comparison/settings/configs/ui-v2.js +1 -1
  302. package/dist/esm/index.js +1 -1
  303. package/dist/esm/post-purchase/callout-banner/index.js +1 -1
  304. package/dist/esm/post-purchase/product/components/ProductPrice.js +1 -1
  305. package/dist/esm/post-purchase/product/components/ProductQuantity.js +1 -1
  306. package/dist/esm/post-purchase/product/components/product-offer/components/ProductOffer.js +1 -1
  307. package/dist/esm/post-purchase/product/components/product-offer/helpers/getOfferErrorText.js +1 -0
  308. package/dist/esm/post-purchase/product/components/product-offer/hooks/useProductOfferData.js +1 -1
  309. package/dist/esm/post-purchase/product/hooks/useHandleQuantity.js +1 -1
  310. package/dist/esm/post-purchase/product/index.js +1 -1
  311. package/dist/esm/post-purchase/product/settings/product-quantity/configs/settings.js +1 -1
  312. package/dist/esm/post-purchase/product/settings/product-quantity/configs/ui-v2.js +1 -1
  313. package/dist/esm/product/components/product-badge/ProductBadge.js +1 -1
  314. package/dist/esm/product/components/product-badge/common/styles.js +1 -1
  315. package/dist/esm/product/components/product-bundle/ProductBundleDiscount.js +1 -1
  316. package/dist/esm/product/components/product-bundle/ProductBundleDiscountWarning.js +2 -0
  317. package/dist/esm/product/components/product-bundle/common/classes.js +1 -1
  318. package/dist/esm/product/components/product-bundle/hooks/useProductBundleDataState.js +3 -3
  319. package/dist/esm/product/components/product-discount-tag/ProductDiscountTag.js +1 -1
  320. package/dist/esm/product/components/product-discount-tag/common/helpers.js +1 -0
  321. package/dist/esm/product/components/product-images/ProductImagesLightBox.js +1 -1
  322. package/dist/esm/product/components/product-images-v2/common/common.js +1 -1
  323. package/dist/esm/product/components/product-images-v2/components/child/ProductFeaturedImageOnly.js +1 -1
  324. package/dist/esm/product/components/product-images-v2/components/child/ProductGalleryGrid.js +1 -1
  325. package/dist/esm/product/components/product-images-v2/components/feature-gallery/FeatureImageWithGallery.liquid.js +35 -35
  326. package/dist/esm/product/components/product-images-v2/components/gallery-carousel/GalleryCarousel.js +1 -1
  327. package/dist/esm/product/components/product-images-v2/components/gallery-carousel/GalleryCarousel.liquid.js +13 -13
  328. package/dist/esm/product/components/product-images-v2/components/gallery-grid/GalleryGrid.liquid.js +29 -29
  329. package/dist/esm/product/components/product-images-v2/components/lightbox/ProductImagesLightBox.js +1 -1
  330. package/dist/esm/product/components/product-images-v3/ProductImagesV3.liquid.js +3 -3
  331. package/dist/esm/product/components/product-images-v3/common/common.js +1 -1
  332. package/dist/esm/product/components/product-images-v3/components/child/ProductFeaturedImageOnly.js +1 -1
  333. package/dist/esm/product/components/product-images-v3/components/child/ProductGalleryGrid.js +1 -1
  334. package/dist/esm/product/components/product-images-v3/components/feature-gallery/FeatureImageWithGallery.liquid.js +24 -24
  335. package/dist/esm/product/components/product-images-v3/components/feature-gallery/FeatureImageWithGalleryEmbla.liquid.js +24 -24
  336. package/dist/esm/product/components/product-images-v3/components/gallery-carousel/GalleryCarousel.js +1 -1
  337. package/dist/esm/product/components/product-images-v3/components/gallery-carousel/GalleryCarousel.liquid.js +5 -5
  338. package/dist/esm/product/components/product-images-v3/components/gallery-carousel/GalleryCarouselEmbla.liquid.js +5 -5
  339. package/dist/esm/product/components/product-images-v3/components/gallery-grid/GalleryGrid.liquid.js +30 -30
  340. package/dist/esm/product/components/product-images-v3/components/lightbox/ProductImagesLightBox.js +1 -1
  341. package/dist/esm/product/components/product-list/ProductList.js +1 -1
  342. package/dist/esm/product/components/product-list/ProductListCarouselLayout.js +1 -1
  343. package/dist/esm/product/components/product-list/ProductListCarouselLayout.liquid.js +11 -9
  344. package/dist/esm/product/components/product-list/ProductListGridLayout.js +1 -1
  345. package/dist/esm/product/components/product-list/ProductListGridLayout.liquid.js +18 -16
  346. package/dist/esm/product/components/product-list/common/helpers.js +1 -1
  347. package/dist/esm/product/components/product-list/common/imagePriority.js +17 -0
  348. package/dist/esm/product/components/product-list/common/imagePriorityHints.js +1 -0
  349. package/dist/esm/product/components/product-list-v3/ProductList.js +1 -1
  350. package/dist/esm/product/components/product-list-v3/ProductListCarouselLayout.js +1 -1
  351. package/dist/esm/product/components/product-list-v3/ProductListCarouselLayout.liquid.js +12 -10
  352. package/dist/esm/product/components/product-list-v3/ProductListGridLayout.js +1 -1
  353. package/dist/esm/product/components/product-list-v3/ProductListGridLayout.liquid.js +18 -16
  354. package/dist/esm/product/components/product-price/hooks/useGpPrice.js +1 -1
  355. package/dist/esm/product/components/product-wrap/Product.js +1 -1
  356. package/dist/esm/product/components/product-wrap/hook/useProductSetting.js +1 -1
  357. package/dist/esm/product/helpers/product-bundle.js +1 -1
  358. package/dist/esm/product/index.js +1 -1
  359. package/dist/esm/product/settings/product-image-v2/configs/setting-v2/index.js +1 -1
  360. package/dist/esm/product/settings/product-image-v2/configs/ui-v2.js +1 -1
  361. package/dist/esm/product/settings/product-image-v3/configs/setting-v2/index.js +1 -1
  362. package/dist/esm/product/settings/product-image-v3/configs/ui-v2.js +1 -1
  363. package/dist/esm/stock-counter/common/attrs.js +1 -1
  364. package/dist/esm/stock-counter/common/helpers.js +21 -21
  365. package/dist/esm/stock-counter/components/StockCounter.liquid.js +1 -1
  366. package/dist/esm/stock-counter/hooks/useStockCounter.js +1 -1
  367. package/dist/esm/third-party/common/helpers.js +5 -5
  368. package/dist/esm/third-party/components/KlarnaMessaging.liquid.js +30 -5
  369. package/dist/esm/third-party/settings/AftershipEmailMarketingsms/index.js +2 -2
  370. package/dist/esm/third-party/settings/AirProductReviewsAppUgc/index.js +2 -2
  371. package/dist/esm/third-party/settings/AliReviews/index.js +2 -2
  372. package/dist/esm/third-party/settings/AlsoBoughtCbb/index.js +2 -2
  373. package/dist/esm/third-party/settings/AovBundlesVolumeDiscounts/index.js +2 -2
  374. package/dist/esm/third-party/settings/AovFreeGiftBuyXGetYBogo/index.js +2 -2
  375. package/dist/esm/third-party/settings/AppointmentBookingCowlendar/index.js +2 -2
  376. package/dist/esm/third-party/settings/AppstleBundlesDiscounts/index.js +2 -2
  377. package/dist/esm/third-party/settings/AppstleLoyaltyRewardProgram/index.js +2 -2
  378. package/dist/esm/third-party/settings/AppstleSubscriptions/index.js +2 -2
  379. package/dist/esm/third-party/settings/BestBuyFulfillment/index.js +2 -2
  380. package/dist/esm/third-party/settings/BfSizeChartSizeGuide/index.js +2 -2
  381. package/dist/esm/third-party/settings/BirdChime/index.js +4 -4
  382. package/dist/esm/third-party/settings/BloyRewardsProgramLoyalty/index.js +2 -2
  383. package/dist/esm/third-party/settings/Bogos/index.js +4 -4
  384. package/dist/esm/third-party/settings/BoldProductOptions/index.js +4 -4
  385. package/dist/esm/third-party/settings/BoldSubscriptions/index.js +2 -2
  386. package/dist/esm/third-party/settings/BonLoyaltyRewardsReferrals/index.js +2 -2
  387. package/dist/esm/third-party/settings/BonySubscriptionsApp/index.js +2 -2
  388. package/dist/esm/third-party/settings/BoostAISearchDiscovery/index.js +2 -2
  389. package/dist/esm/third-party/settings/Bundler/index.js +4 -4
  390. package/dist/esm/third-party/settings/CleanSizeCharts/index.js +2 -2
  391. package/dist/esm/third-party/settings/CrossSellCartUpsell/index.js +2 -2
  392. package/dist/esm/third-party/settings/CustomProductOptionsVariant/index.js +2 -2
  393. package/dist/esm/third-party/settings/DealeasyVolumeDiscounts/index.js +2 -2
  394. package/dist/esm/third-party/settings/DiscountyBulkDiscountSales/index.js +2 -2
  395. package/dist/esm/third-party/settings/EasifyProductOptions/index.js +2 -2
  396. package/dist/esm/third-party/settings/EasyBundleBuilderSkailama/index.js +2 -2
  397. package/dist/esm/third-party/settings/EasySellCOD/index.js +4 -4
  398. package/dist/esm/third-party/settings/EcoboostifyShoppableReelUgc/index.js +2 -2
  399. package/dist/esm/third-party/settings/EcomsendBackInStockAlert/index.js +2 -2
  400. package/dist/esm/third-party/settings/EssentPreorderBackInStock/index.js +2 -2
  401. package/dist/esm/third-party/settings/EssentialAnnouncementBar/index.js +2 -2
  402. package/dist/esm/third-party/settings/EssentialCountdownTimerBar/index.js +2 -2
  403. package/dist/esm/third-party/settings/EstimatedDeliveryDatePlus/index.js +2 -2
  404. package/dist/esm/third-party/settings/FastBundleBundlesDiscounts/index.js +2 -2
  405. package/dist/esm/third-party/settings/FeraReviews/index.js +4 -4
  406. package/dist/esm/third-party/settings/FirePush/index.js +2 -2
  407. package/dist/esm/third-party/settings/FlyBundlesUpsellsFbt/index.js +2 -2
  408. package/dist/esm/third-party/settings/FordeerProductLabels/index.js +2 -2
  409. package/dist/esm/third-party/settings/FrequentlyBoughtTogether/index.js +2 -2
  410. package/dist/esm/third-party/settings/GloColorSwatchvariantImage/index.js +2 -2
  411. package/dist/esm/third-party/settings/GloboProductOptionsVariant/index.js +2 -2
  412. package/dist/esm/third-party/settings/GoogleReviewsByReputon/index.js +2 -2
  413. package/dist/esm/third-party/settings/Growave/index.js +4 -4
  414. package/dist/esm/third-party/settings/GrowthSuiteDiscountCodes/index.js +2 -2
  415. package/dist/esm/third-party/settings/HextomCountdownTimerBar/index.js +2 -2
  416. package/dist/esm/third-party/settings/HextomFreeShippingBar/index.js +2 -2
  417. package/dist/esm/third-party/settings/HulkFormBuilder/index.js +2 -2
  418. package/dist/esm/third-party/settings/HulkProductOptions/index.js +2 -2
  419. package/dist/esm/third-party/settings/InfiniteOptions/index.js +2 -2
  420. package/dist/esm/third-party/settings/Instafeed/index.js +2 -2
  421. package/dist/esm/third-party/settings/InstasellShoppableInstagram/index.js +2 -2
  422. package/dist/esm/third-party/settings/JudgemeReviews/index.js +2 -2
  423. package/dist/esm/third-party/settings/JunipProductReviewsUgc/index.js +2 -2
  424. package/dist/esm/third-party/settings/KachingBundles/index.js +2 -2
  425. package/dist/esm/third-party/settings/KachingSubscriptionsApp/index.js +2 -2
  426. package/dist/esm/third-party/settings/KingProductOptions/index.js +2 -2
  427. package/dist/esm/third-party/settings/KiteFreeGiftDiscount/index.js +2 -2
  428. package/dist/esm/third-party/settings/KlarnaMessaging/index.js +4 -4
  429. package/dist/esm/third-party/settings/Klaviyo/index.js +4 -4
  430. package/dist/esm/third-party/settings/KoalaBundleQuantityDiscount/index.js +2 -2
  431. package/dist/esm/third-party/settings/LaiProductReviews/index.js +2 -2
  432. package/dist/esm/third-party/settings/LoloyalLoyaltyReferrals/index.js +2 -2
  433. package/dist/esm/third-party/settings/LoopSubscriptions/index.js +2 -2
  434. package/dist/esm/third-party/settings/LooxReviews/index.js +4 -4
  435. package/dist/esm/third-party/settings/MaxbundleProductBundles/index.js +2 -2
  436. package/dist/esm/third-party/settings/MbcBundleVolumeDiscount/index.js +2 -2
  437. package/dist/esm/third-party/settings/MyappgurusProductReviews/index.js +2 -2
  438. package/dist/esm/third-party/settings/NotifyBackInStockPreOrder/index.js +2 -2
  439. package/dist/esm/third-party/settings/OkendoReviewsLoyalty/index.js +2 -2
  440. package/dist/esm/third-party/settings/Omnisend/index.js +4 -4
  441. package/dist/esm/third-party/settings/Opinew/index.js +4 -4
  442. package/dist/esm/third-party/settings/ParcelPanel/index.js +4 -4
  443. package/dist/esm/third-party/settings/PickyStory/index.js +4 -4
  444. package/dist/esm/third-party/settings/PowerfulContactFormBuilder/index.js +2 -2
  445. package/dist/esm/third-party/settings/PreorderNowPreOrderPq/index.js +2 -2
  446. package/dist/esm/third-party/settings/PreorderNowWodPresale/index.js +2 -2
  447. package/dist/esm/third-party/settings/ProductOptionsCustomizer/index.js +2 -2
  448. package/dist/esm/third-party/settings/ProductOptionsVariantOption/index.js +2 -2
  449. package/dist/esm/third-party/settings/PumperBundlesVolumeDiscount/index.js +2 -2
  450. package/dist/esm/third-party/settings/PushOwl/index.js +4 -4
  451. package/dist/esm/third-party/settings/QikifyUpsell/index.js +2 -2
  452. package/dist/esm/third-party/settings/RapiBundleQuantityBreaks/index.js +2 -2
  453. package/dist/esm/third-party/settings/RechargeSubscriptions/index.js +2 -2
  454. package/dist/esm/third-party/settings/RecurpaySubscriptionApp/index.js +2 -2
  455. package/dist/esm/third-party/settings/Releasit/index.js +4 -4
  456. package/dist/esm/third-party/settings/RequestQuoteHidePrice/index.js +3 -3
  457. package/dist/esm/third-party/settings/ReviewxpoProductReviewsApp/index.js +2 -2
  458. package/dist/esm/third-party/settings/Rivyo/index.js +4 -4
  459. package/dist/esm/third-party/settings/Ryviu/index.js +4 -4
  460. package/dist/esm/third-party/settings/SealSubscriptions/index.js +2 -2
  461. package/dist/esm/third-party/settings/SegunoEmailMarketing/index.js +2 -2
  462. package/dist/esm/third-party/settings/Selleasy/index.js +2 -2
  463. package/dist/esm/third-party/settings/SeoantTrustBadgesIcon/index.js +2 -2
  464. package/dist/esm/third-party/settings/ShopifyForms/index.js +2 -2
  465. package/dist/esm/third-party/settings/ShopifySubscriptions/index.js +2 -2
  466. package/dist/esm/third-party/settings/SimpleBundlesKits/index.js +2 -2
  467. package/dist/esm/third-party/settings/SkioSubscriptionsYcS20/index.js +2 -2
  468. package/dist/esm/third-party/settings/SmartSearchBarAndFilters/index.js +4 -4
  469. package/dist/esm/third-party/settings/SproutPlantTreesGrowSales/index.js +2 -2
  470. package/dist/esm/third-party/settings/Stamped.js +4 -4
  471. package/dist/esm/third-party/settings/StellarDeliveryDatePickup/index.js +2 -2
  472. package/dist/esm/third-party/settings/SubifySubscriptionsApp/index.js +2 -2
  473. package/dist/esm/third-party/settings/TagembedSocialPostReview/index.js +2 -2
  474. package/dist/esm/third-party/settings/TagshopShoppableVideosUgc/index.js +2 -2
  475. package/dist/esm/third-party/settings/TeeinblueProductPersonalizer/index.js +2 -2
  476. package/dist/esm/third-party/settings/TrustBadgesBear/index.js +2 -2
  477. package/dist/esm/third-party/settings/TrustMe/index.js +4 -4
  478. package/dist/esm/third-party/settings/TrustedsiteTrustBadges/index.js +2 -2
  479. package/dist/esm/third-party/settings/Trustoo/index.js +2 -2
  480. package/dist/esm/third-party/settings/TrustreviewsProductReviews/index.js +2 -2
  481. package/dist/esm/third-party/settings/TrustshopProductReviews/index.js +2 -2
  482. package/dist/esm/third-party/settings/UltimateSalesBoost/index.js +2 -2
  483. package/dist/esm/third-party/settings/UnlimitedBundlesDiscounts/index.js +2 -2
  484. package/dist/esm/third-party/settings/UppromoteAffiliateMarketing/setting.js +2 -2
  485. package/dist/esm/third-party/settings/Vitals/index.js +4 -4
  486. package/dist/esm/third-party/settings/WcWishlistBackInStock/index.js +3 -3
  487. package/dist/esm/third-party/settings/WhatmoreShoppableVideosreel/index.js +2 -2
  488. package/dist/esm/third-party/settings/WideBundle/index.js +4 -4
  489. package/dist/esm/third-party/settings/Wiser/index.js +4 -4
  490. package/dist/esm/third-party/settings/WishlistKing/index.js +2 -2
  491. package/dist/esm/third-party/settings/WishlistPlus/index.js +2 -2
  492. package/dist/esm/third-party/settings/YotpoReviews/index.js +4 -4
  493. package/dist/esm/video/common/attrs.js +1 -1
  494. package/dist/esm/video/components/HTML5Embed.js +1 -1
  495. package/dist/esm/video/components/HTML5Embed.liquid.js +8 -8
  496. package/dist/esm/video/components/LiteVimeoEmbed.liquid.js +11 -11
  497. package/dist/esm/video/components/LiteYouTubeEmbed.js +1 -1
  498. package/dist/esm/video/components/LiteYouTubeEmbed.liquid.js +9 -9
  499. package/dist/esm/video/components/Video.liquid.js +1 -1
  500. package/dist/types/index.d.ts +26 -8
  501. package/package.json +11 -8
@@ -1,28 +1,28 @@
1
- import{makeStyleResponsive as e,template as i,getResponsiveValueByScreen as a,cls as t}from"@gem-sdk/core";import{getProductImagesClassName as o}from"../../composables/getProductImagesClassName.js";import{getZoomImageClass as s,getZoomLenClass as d}from"../../common/productFeaturedImage.js";import{getProductImagesStyles as r}from"../../composables/getProductImagesStyles.js";import{getShapeByLayout as l,getZoomDisplay as m}from"../../common/productGallery.js";import p from"../../../../../video/components/HTML5Embed.liquid.js";import g from"../../../../../image/components/NextImage.liquid.js";import c from"../../../../../image/components/Modal3d.liquid.js";import{getAspectRatio as n,getSrcImage as u}from"../../common/common.js";import{Liquid as h,LiquidFor as y,LiquidIf as C,If as v}from"@gem-sdk/system";import f from"../../../../../image/components/Video.liquid.js";import{getStyleOfObject as w}from"../../../../helpers/function.js";let _=({builderPropUID:_,wrapperStyle:$,children:b,pageContext:x,...L})=>{let{galleryItemClasses:F,galleryGridWrapperClasses:V}=o(L),{galleryGridStyles:q,galleryGridItemStyles:I}=r(L),M=l({shape:L.shape,shapeForBottom:L.shapeForBottom,shapeFor1Col:L.shapeFor1Col,shapeFor2Col:L.shapeFor2Col,shapeForFtOnly:L.shapeForFtOnly,shapeForInsideBottom:L.shapeForInsideBottom,shapeForInside:L.shapeForInside},L.position),j=(i=!1)=>{let t={desktop:"none",tablet:"none",mobile:"none"};return["desktop","mobile","tablet"].forEach(e=>{let o=a(L?.position,e)||"",s="one-col"===o||"two-col"===o;t[e]=(i?!s:s)?"block":"none"}),e("d",t)},k=()=>j(),S=()=>j(!0),Z=(e,a)=>i`
2
- ${g({srcIsLiquidCode:!0,src:`${u("media.preview_image")}`,width:"{{media.width}}",height:"{{media.height}}",alt:"{{media.alt | escape}}",baseSrc:"{{media.preview_image | image_url}}",setting:e,style:a,className:"!gp-rounded-none",customLazyload:!1,pageContext:x})}
3
- ${v(L?.galleryHoverEffect!=="none",`<div class="${t("zoom-element !gp-max-w-none gp-w-full gp-h-full",s())}">
4
- ${g({srcIsLiquidCode:!0,src:`${u("media.preview_image")}`,width:"{{media.width}}",height:"{{media.height}}",baseSrc:"{{media.preview_image | image_url}}",alt:"{{media.alt | escape}}",setting:e,style:a,className:"!gp-rounded-none gp-w-full gp-h-full",customLazyload:!1,pageContext:x})}
1
+ import{makeStyleResponsive as e,template as i,getResponsiveValueByScreen as a,cls as t}from"@gem-sdk/core";import{getProductImagesClassName as o}from"../../composables/getProductImagesClassName.js";import{getZoomImageClass as s,getZoomLenClass as r}from"../../common/productFeaturedImage.js";import{getProductImagesStyles as d}from"../../composables/getProductImagesStyles.js";import{getLiquidImageSrcset as l}from"../../../../../image/common/liquidSrcset.js";import{getShapeByLayout as m,getZoomDisplay as p}from"../../common/productGallery.js";import g from"../../../../../video/components/HTML5Embed.liquid.js";import c from"../../../../../image/components/NextImage.liquid.js";import n from"../../../../../image/components/Modal3d.liquid.js";import{Liquid as u,LiquidFor as h,LiquidIf as y,If as C}from"@gem-sdk/system";import v from"../../../../../image/components/Video.liquid.js";import{getStyleOfObject as f}from"../../../../helpers/function.js";import{getAspectRatio as w}from"../../common/common.js";let _=({builderPropUID:_,wrapperStyle:$,children:b,pageContext:x,...L})=>{let{galleryItemClasses:F,galleryGridWrapperClasses:q}=o(L),{galleryGridStyles:V,galleryGridItemStyles:I}=d(L),j=m({shape:L.shape,shapeForBottom:L.shapeForBottom,shapeFor1Col:L.shapeFor1Col,shapeFor2Col:L.shapeFor2Col,shapeForFtOnly:L.shapeForFtOnly,shapeForInsideBottom:L.shapeForInsideBottom,shapeForInside:L.shapeForInside},L.position),M=(i=!1)=>{let t={desktop:"none",tablet:"none",mobile:"none"};return["desktop","mobile","tablet"].forEach(e=>{let o=a(L?.position,e)||"",s="one-col"===o||"two-col"===o;t[e]=(i?!s:s)?"block":"none"}),e("d",t)},k=()=>M(),S=()=>M(!0),P=l({liquidSrc:"media.preview_image",sizeTarget:"ProductFeatureImage",qualityType:L.qualityType,qualityPercent:L.qualityPercent}),Z=(e,a)=>i`
2
+ ${c({srcIsLiquidCode:!0,src:"{{media.preview_image | image_url}}",srcset:P,width:"{{media.width}}",height:"{{media.height}}",alt:"{{media.alt | escape}}",setting:e,style:a,className:"!gp-rounded-none"})}
3
+ ${C(L?.galleryHoverEffect!=="none",`<div class="${t("zoom-element !gp-max-w-none gp-w-full gp-h-full",s())}">
4
+ ${c({srcIsLiquidCode:!0,src:"{{media.preview_image | image_url}}",srcset:P,width:"{{media.width}}",height:"{{media.height}}",alt:"{{media.alt | escape}}",setting:e,style:a,className:"!gp-rounded-none gp-w-full gp-h-full"})}
5
5
  </div>`," ")}
6
- ${v(L?.galleryHoverEffect=="zoom"&&L?.galleryZoomType=="glasses",`<div class="${t("zoom-lens-element",d())}" style="opacity: 0; background-image: url('{{media.preview_image | product_img_url: '1024x1024'}}')">
6
+ ${C(L?.galleryHoverEffect=="zoom"&&L?.galleryZoomType=="glasses",`<div class="${t("zoom-lens-element",r())}" style="opacity: 0; background-image: url('{{media.preview_image | product_img_url: '1024x1024'}}')">
7
7
  </div>
8
8
  `," ")}
9
- `,z=()=>c({src:C("media.sources.first.url contains '.glb'","{{ media.sources.first.url }}","{{media.sources.last.url}}"),alt:"{{media.preview_image.alt}}",poster:"{{media.preview_image.src | product_img_url: '1024x1024'}}",cameraControls:!0,arStatus:"not-presenting",style:{width:"100%",height:"100%"},aspectRatio:n(M)}),B=()=>f({src:"{{mediaSourceVideo}}",alt:"{{media.alt | escape}}",autoplay:!1,allowfullscreen:!0,controls:!0,style:{width:"100%",height:"100%"}}),H=()=>p({src:"{{mediaSourceVideo}}",title:"{{media.alt | escape}}",autoplay:!1,controls:!0,style:{width:"100%","max-height":"100%"},pageContext:x}),P=()=>i`
10
- ${C("media.media_type == 'video' or media.media_type == 'external_video'",`<div class="gp-absolute gp-pb-1 gp-pr-1 gp-right-0 gp-bottom-0" >
9
+ `,T=()=>n({src:y("media.sources.first.url contains '.glb'","{{ media.sources.first.url }}","{{media.sources.last.url}}"),alt:"{{media.preview_image.alt}}",poster:"{{media.preview_image.src | product_img_url: '1024x1024'}}",cameraControls:!0,arStatus:"not-presenting",style:{width:"100%",height:"100%"},aspectRatio:w(j)}),B=()=>v({src:"{{mediaSourceVideo}}",alt:"{{media.alt | escape}}",autoplay:!1,allowfullscreen:!0,controls:!0,style:{width:"100%",height:"100%"}}),H=()=>g({src:"{{mediaSourceVideo}}",title:"{{media.alt | escape}}",autoplay:!1,controls:!0,style:{width:"100%","max-height":"100%"}}),z=()=>i`
10
+ ${y("media.media_type == 'video' or media.media_type == 'external_video'",`<div class="gp-absolute gp-pb-1 gp-pr-1 gp-right-0 gp-bottom-0" >
11
11
  <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
12
12
  <rect opacity="0.9" width="24" height="24" rx="3" fill="#212121"/>
13
13
  <path d="M17.6869 12.2646L17.6868 12.2646L6.78379 18.4464C6.78378 18.4464 6.78376 18.4464 6.78374 18.4464C6.52931 18.5903 6.1665 18.4179 6.1665 18.0416V5.95844C6.1665 5.58218 6.52917 5.40981 6.7836 5.55354C6.78366 5.55357 6.78373 5.55361 6.78379 5.55365L17.6868 11.7354L17.6869 11.7354C17.8819 11.846 17.8819 12.154 17.6869 12.2646Z" stroke="#F9F9F9" stroke-miterlimit="10"/>
14
14
  </svg>
15
15
  </div>`)}
16
- ${C("media.media_type == 'model'",`<div class="gp-absolute gp-pb-1 gp-pr-1 gp-right-0 gp-bottom-0">
16
+ ${y("media.media_type == 'model'",`<div class="gp-absolute gp-pb-1 gp-pr-1 gp-right-0 gp-bottom-0">
17
17
  <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
18
18
  <rect opacity="0.9" width="24" height="24" rx="3" fill="#212121"/>
19
19
  <path fill-rule="evenodd" clip-rule="evenodd" d="M11.7441 4.57034C11.9017 4.47655 12.098 4.47655 12.2555 4.57034L18.5889 8.33957C18.7404 8.42971 18.8332 8.59296 18.8332 8.76923V15.2308C18.8332 15.407 18.7404 15.5703 18.5889 15.6604L12.2555 19.4297C12.098 19.5234 11.9017 19.5234 11.7441 19.4297L5.41079 15.6604C5.25932 15.5703 5.1665 15.407 5.1665 15.2308V8.76923C5.1665 8.59296 5.25932 8.42971 5.41079 8.33957L11.7441 4.57034ZM6.1665 9.64865V14.9465L11.4998 18.1206V12.8227L6.1665 9.64865ZM12.4998 12.8227V18.1206L17.8332 14.9465V9.64865L12.4998 12.8227ZM17.3555 8.76923L11.9998 11.9566L6.64417 8.76923L11.9998 5.58185L17.3555 8.76923Z" fill="#F9F9F9"/>
20
20
  </svg>
21
21
  </div>`)}
22
- ${Z({aspectRatio:n(M),layout:L?.layout,qualityType:L?.qualityType,qualityPercent:L?.qualityPercent},{width:"100%",height:"100%"})}
22
+ ${Z({aspectRatio:w(j),layout:L?.layout,qualityType:L?.qualityType,qualityPercent:L?.qualityPercent},{width:"100%",height:"100%"})}
23
23
 
24
24
  <div class="gp-absolute gp-inset-0 gp-flex gp-cursor-pointer gp-items-center gp-justify-center gp-bg-black/50 gp-opacity-0 gp-transition-opacity gp-duration-100 group-hover:gp-opacity-100"
25
- style="${w(m(L?.clickOpenLightBox))}" >
25
+ style="${f(p(L?.clickOpenLightBox))}" >
26
26
  <svg
27
27
  height="100%"
28
28
  width="100%"
@@ -40,9 +40,9 @@ import{makeStyleResponsive as e,template as i,getResponsiveValueByScreen as a,cl
40
40
  </svg>
41
41
  </div>
42
42
  `,N=i=>`
43
- ${C("media.media_type == 'video'","{% assign mediaSourceUrl = media.sources.last.url %}")}
44
- ${C("media.media_type == 'external_video'","{% assign mediaSourceUrl = media | external_video_url %}{% assign mediaSource = media | json %}")}
45
- ${C("media.media_type == 'image'","{% assign mediaSourceUrl = media.src %}")}
43
+ ${y("media.media_type == 'video'","{% assign mediaSourceUrl = media.sources.last.url %}")}
44
+ ${y("media.media_type == 'external_video'","{% assign mediaSourceUrl = media | external_video_url %}{% assign mediaSource = media | json %}")}
45
+ ${y("media.media_type == 'image'","{% assign mediaSourceUrl = media.src %}")}
46
46
  <div
47
47
  aria-hidden
48
48
  id="{{imageID}}"
@@ -54,18 +54,18 @@ import{makeStyleResponsive as e,template as i,getResponsiveValueByScreen as a,cl
54
54
  grid-index="{{forloop.index}}"
55
55
  data-outline="${i?"active":"deactive"}"
56
56
  class="${F(`gem-slider-item-${_}-{{product.id}} gp-gallery-image-item ${i}`)}"
57
- style="${w(I)}"
57
+ style="${f(I)}"
58
58
  >
59
- ${C("media.media_type == 'external_video' or media.media_type == 'video' or media.media_type == 'model'","{% assign isMedia = true %}")}
59
+ ${y("media.media_type == 'external_video' or media.media_type == 'video' or media.media_type == 'model'","{% assign isMedia = true %}")}
60
60
 
61
- ${C("media.media_type == 'external_video' or media.media_type == 'video'","{% assign isVideo = true %}")}
61
+ ${y("media.media_type == 'external_video' or media.media_type == 'video'","{% assign isVideo = true %}")}
62
62
 
63
- <div class="gp-h-full gp-w-full" style="${C("media == null or media.media_type == 'image'","display: block !important;")} ${C("isVideo == true",w({...S()}))}">
64
- ${C("media != null",P(),T())}
63
+ <div class="gp-h-full gp-w-full" style="${y("media == null or media.media_type == 'image'","display: block !important;")} ${y("isVideo == true",f({...S()}))}">
64
+ ${y("media != null",z(),E())}
65
65
  </div>
66
66
 
67
- <div class="${C("isMedia","gp-flex gp-justify-center gp-items-center")}"
68
- style="${C("isMedia",w({...e("aspect",n(M))}))} ${w({...k()})}"
67
+ <div class="${y("isMedia","gp-flex gp-justify-center gp-items-center")}"
68
+ style="${y("isMedia",f({...e("aspect",w(j))}))} ${f({...k()})}"
69
69
  >
70
70
  {% case media.media_type %}
71
71
  {% when 'external_video' %}
@@ -75,19 +75,19 @@ import{makeStyleResponsive as e,template as i,getResponsiveValueByScreen as a,cl
75
75
  {% assign mediaSourceVideo = media.sources.last.url %}
76
76
  ${H()}
77
77
  {% when 'model' %}
78
- ${z()}
78
+ ${T()}
79
79
  {% endcase %}
80
80
  </div>
81
81
  {% assign isVideo= false %}
82
82
  {% assign isMedia= false %}
83
- </div>`,T=()=>i`
84
- ${g({srcIsLiquidCode:!0,src:"https://cdn.shopify.com/s/assets/no-image-2048-5e88c1b20e087fb7bbe9a3771824e743c244f437e4f8ba93bbf7b11b53f7824c_large.gif",alt:"No Image",sizes:"(max-width: 768px) 50vw, 100vw",setting:{aspectRatio:n(M),layout:L?.layout,qualityType:L?.qualityType,qualityPercent:L?.qualityPercent},className:"!gp-rounded-none",customLazyload:!1,pageContext:x})}`;return h(`
83
+ </div>`,E=()=>i`
84
+ ${c({srcIsLiquidCode:!0,src:"https://cdn.shopify.com/s/assets/no-image-2048-5e88c1b20e087fb7bbe9a3771824e743c244f437e4f8ba93bbf7b11b53f7824c_large.gif",alt:"No Image",setting:{aspectRatio:w(j),layout:L?.layout,qualityType:L?.qualityType,qualityPercent:L?.qualityPercent},className:"!gp-rounded-none"})}`;return u(`
85
85
  <div type="grid-gallery"
86
- class="${V}"
87
- style="${w(q)}}"
86
+ class="${q}"
87
+ style="${f(V)}}"
88
88
  >
89
- ${y("media in product.media",`${C("media.media_type == 'image'",y("image in product.images",C("image.src == media.src","{% assign imageID = image.id %}{% break %}")),"{% assign imageID = '' %}")}
90
- ${C("media.id == product.featured_media.id ",N(L?.borderActive?.border!=="none"?"active":""),N())}`)}
91
- ${C("product.media.size > 0",b)}
92
- ${C("product.media.size < 1",N())}
89
+ ${h("media in product.media",`${y("media.media_type == 'image'",h("image in product.images",y("image.src == media.src","{% assign imageID = image.id %}{% break %}")),"{% assign imageID = '' %}")}
90
+ ${y("media.id == product.featured_media.id ",N(L?.borderActive?.border!=="none"?"active":""),N())}`)}
91
+ ${y("product.media.size > 0",b)}
92
+ ${y("product.media.size < 1",N())}
93
93
  </div>`)};export{_ as default};
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import{useFeaturedImageGlobal as i,useEditorMode as l,cls as s}from"@gem-sdk/core";import{isFeatureMedia as n}from"../../common/productFeaturedImage.js";import r from"../../../../../image/components/NextImage.js";import d from"../../../../../carousel/components/item/CarouselItem.js";import m from"../../../../../carousel/components/root/Carousel.js";import p from"../child/ProductFeatureVideo.js";import"../../../../../modal/components/confirm.js";import a from"../../../../../modal/components/Modal.js";import c from"../child/MediaIcon.js";import{useMemo as g}from"react";let h=({builderPropUID:h,productImages:u,open:b,imageRatio:f,onHandleClose:k})=>{let y=i(),E=g(()=>{let e=u?.findIndex(e=>e.id===y?.id);return e&&e>0?e:0},[u,y]),I={desktop:u&&u.length>1,mobile:u&&u?.length>1,tablet:u&&u?.length>1},j=l(),C=e=>"edit"!==j&&["VIDEO","EXTERNAL_VIDEO"].includes(e?.contentType||"");return e(a,{setting:{open:b},styles:{width:"80%"},closeOnClickOutside:!0,onClose:()=>{k(),console.log("onHandleClose")},disableIframeClickEvent:!0,contentClass:"mobile:!gp-w-[100%] gp-px-2 gp-pb-10",children:e(m,{setting:{loop:{desktop:!1,mobile:!1,tablet:!1},slidesToShow:{desktop:1,tablet:1,mobile:1},defaultCurrentSlider:E,dot:{desktop:!0,mobile:!0,tablet:!0},dotStyle:{desktop:"outside",mobile:"outside",tablet:"outside"},dotColor:{desktop:"#E2E2E2",mobile:"#E2E2E2",tablet:"#E2E2E2"},dotActiveColor:{desktop:"#121212",mobile:"#121212",tablet:"#121212"},dotSize:{desktop:12},dotGapToCarousel:{desktop:12},navigationEnable:I,navigationStyle:{desktop:"outside"},arrowIconSize:{desktop:24}},styles:{sizeSetting:{desktop:{height:"80vh"},tablet:{height:"80vh"},mobile:{height:"60vh"}}},moveToIdx:E,hiddenDotWhenOnlyOne:!0,isHiddenArrowWhenDisabled:!0,builderProps:{uid:h},fullHeight:!0,children:u?.map(i=>e(d,{className:`gem-slider-item gem-slider-item-${h} gp-flex gp-items-center gp-justify-center gp-px-4`,children:C(i)?e(p,{type:i?.contentType,url:i.src??"",aspectRatio:f}):t(o,{children:[e(r,{src:n(i?.contentType)?i?.previewImage:i?.src,width:i?.width,height:i?.height,alt:i?.alt,"content-type":i?.contentType,setting:{aspectRatio:f},className:s("gp-h-full gp-w-full gp-object-contain")},i?.id),e(c,{contentType:i?.contentType??""})]})},i?.id))})})};export{h as default};
2
+ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import{useFeaturedImageGlobal as i,useEditorMode as l,cls as s}from"@gem-sdk/core";import{isFeatureMedia as n}from"../../common/productFeaturedImage.js";import d from"../../../../../image/components/NextImage.js";import r from"../../../../../carousel/components/item/CarouselItem.js";import p from"../../../../../carousel/components/root/Carousel.js";import m from"../child/ProductFeatureVideo.js";import"../../../../../modal/components/confirm.js";import a from"../../../../../modal/components/Modal.js";import c from"../child/MediaIcon.js";import{useMemo as g}from"react";let h={desktop:"finest"},u=({builderPropUID:u,productImages:b,open:f,imageRatio:k,onHandleClose:y})=>{let E=i(),I=g(()=>{let e=b?.findIndex(e=>e.id===E?.id);return e&&e>0?e:0},[b,E]),j={desktop:b&&b.length>1,mobile:b&&b?.length>1,tablet:b&&b?.length>1},C=l(),T=e=>"edit"!==C&&["VIDEO","EXTERNAL_VIDEO"].includes(e?.contentType||"");return e(a,{setting:{open:f},styles:{width:"80%"},closeOnClickOutside:!0,onClose:()=>{y(),console.log("onHandleClose")},disableIframeClickEvent:!0,contentClass:"mobile:!gp-w-[100%] gp-px-2 gp-pb-10",children:e(p,{setting:{loop:{desktop:!1,mobile:!1,tablet:!1},slidesToShow:{desktop:1,tablet:1,mobile:1},defaultCurrentSlider:I,dot:{desktop:!0,mobile:!0,tablet:!0},dotStyle:{desktop:"outside",mobile:"outside",tablet:"outside"},dotColor:{desktop:"#E2E2E2",mobile:"#E2E2E2",tablet:"#E2E2E2"},dotActiveColor:{desktop:"#121212",mobile:"#121212",tablet:"#121212"},dotSize:{desktop:12},dotGapToCarousel:{desktop:12},navigationEnable:j,navigationStyle:{desktop:"outside"},arrowIconSize:{desktop:24}},styles:{sizeSetting:{desktop:{height:"80vh"},tablet:{height:"80vh"},mobile:{height:"60vh"}}},moveToIdx:I,hiddenDotWhenOnlyOne:!0,isHiddenArrowWhenDisabled:!0,builderProps:{uid:u},fullHeight:!0,children:b?.map(i=>e(r,{className:`gem-slider-item gem-slider-item-${u} gp-flex gp-items-center gp-justify-center gp-px-4`,children:T(i)?e(m,{type:i?.contentType,url:i.src??"",aspectRatio:k}):t(o,{children:[e(d,{src:n(i?.contentType)?i?.previewImage:i?.src,width:i?.width,height:i?.height,alt:i?.alt,"content-type":i?.contentType,setting:{aspectRatio:k,qualityType:h},className:s("gp-h-full gp-w-full gp-object-contain")},i?.id),e(c,{contentType:i?.contentType??""})]})},i?.id))})})};export{u as default};
@@ -9,8 +9,8 @@ import{getConditionRenderGalleryImages as e,getStyleInsideLayout as o,setDefault
9
9
  "collectionUrl": {{ collection.url | json }},
10
10
  "collection": {% if collection %}{"handle":{{ collection.handle | json }}}{% else %}null{% endif %}
11
11
  }
12
- `,B=u({"section-id":"{{section.id}}","data-id":`${b?.uid}`}),{isOnlyFeatureAllDevices:U,isRenderGalleryGrid:k}=e(N?.position,G?.type),q=k?{}:u({"data-only-image":g("product.media.size > 1","false","true")}),{wrapperClasses:E,productImagesGalleryClasses:J}=n(C),w=f({"gp-grid gp-w-full !gp-m-0 gp-relative":!0}),T=f({"gp-w-full !gp-m-0 gp-relative":!0}),{wrapContainerStyle:x,wrapContainerStyleOnlyOneImage:L,galleryImageStyle:M}=h(N),R=d({shape:N.shape,shapeForBottom:N.shapeForBottom,shapeFor1Col:N.shapeFor1Col,shapeFor2Col:N.shapeFor2Col,shapeForFtOnly:N.shapeForFtOnly,shapeForInsideBottom:N.shapeForInsideBottom??m,shapeForInside:N.shapeForInside??m},N.position),V=o(N.position,R,N?.spacing),W=()=>s`
13
- ${a({uid:b?.uid||"",customProps:O?.[0].customProps},O?.map(e=>{if(e)return s`${l({...e,isInsideProductImage:!0,imageData:{imageShape:D?.ftShape,imageAlign:D?.align,imageLayout:D?.position},dotData:{dotSize:G?.ftDotSize,dotGapToCarousel:G?.ftDotGapToCarousel,dotStyle:G?.ftDotStyle}})}`}))}
12
+ `,B=u({"section-id":"{{section.id}}","data-id":`${b?.uid}`}),{isOnlyFeatureAllDevices:U,isRenderGalleryGrid:k}=e(N?.position,G?.type),q=k?{}:u({"data-only-image":g("product.media.size > 1","false","true")}),{wrapperClasses:E,productImagesGalleryClasses:J}=n(C),w=f({"gp-grid gp-w-full !gp-m-0 gp-relative":!0}),T=f({"gp-w-full !gp-m-0 gp-relative":!0}),{wrapContainerStyle:x,wrapContainerStyleOnlyOneImage:L,galleryImageStyle:M}=h(N),R=d({shape:N.shape,shapeForBottom:N.shapeForBottom,shapeFor1Col:N.shapeFor1Col,shapeFor2Col:N.shapeFor2Col,shapeForFtOnly:N.shapeForFtOnly,shapeForInsideBottom:N.shapeForInsideBottom??m,shapeForInside:N.shapeForInside??m},N.position),V=o(N.position,R,N?.spacing),W=(e=!1)=>s`
13
+ ${a({uid:b?.uid||"",customProps:O?.[0].customProps},O?.map(o=>{if(o)return s`${l({...o,isInsideProductImage:!0,isInsideImageList:e,imageData:{imageShape:D?.ftShape,imageAlign:D?.align,imageLayout:D?.position},dotData:{dotSize:G?.ftDotSize,dotGapToCarousel:G?.ftDotGapToCarousel,dotStyle:G?.ftDotStyle}})}`}))}
14
14
  `;return s`
15
15
  ${y(G?.borderActive?.border!=="none",g("product.media.size > 1",`<style>${F({settings:N,uid:b?.uid,type:"Liquid"})}</style>`),"")}
16
16
  ${$(`
@@ -35,7 +35,7 @@ import{getConditionRenderGalleryImages as e,getStyleInsideLayout as o,setDefault
35
35
  ${{...q}}
36
36
  >
37
37
  ${g("product.media.size > 1",c({builderPropUID:`gp-gallery-${b?.uid}`,...N,pageContext:_}))}
38
- ${y(k,S({builderPropUID:b?.uid,wrapperStyle:{...V},children:W(),...N,pageContext:_}))}
38
+ ${y(k,S({builderPropUID:b?.uid,wrapperStyle:{...V},children:W(!0),...N,pageContext:_}))}
39
39
  </div>
40
40
  `)}
41
41
  </div>
@@ -1 +1 @@
1
- import{getResponsiveValueByScreen as e,makeAspectRatio as t,DEVICES as o,makeStyleResponsive as r,removeNullUndefined as l}from"@gem-sdk/core";import{getCarouselElementSelector as i}from"../../../../carousel-v3/common/selectors.js";let a=(e,t)=>(t??e).length>1,n=(t,o,r)=>{let l=e(t?.ftShape,o)?.shape==="original",i=l?e(t?.ftNavigationPosition,o):"";return[JSON.stringify(t?.position),i,o,r].join("|")},s=(e,t)=>{let o=e=>e.replace(/[^a-zA-Z0-9_-]+/g,"-").replace(/^-+|-+$/g,""),r=o(e||"product-images"),l=o(t);return[r||"product-images",l||"instance"].join("-")},u=({carouselInstanceUID:e,builderPropUID:t})=>`${e??t}-carousel`,d=e=>i(u(e)),c=e=>{let t=e?.desktop,o=e?.tablet===void 0?t:e?.tablet,r=e?.mobile===void 0?o:e?.mobile;return{desktop:t,tablet:o,mobile:r}},m=(e,t)=>{if(!e)return t;if("number"==typeof e)return e;let o=e.replaceAll("px","").replaceAll("%","").replaceAll("rem","").replaceAll("em","");return isNaN(Number(o))?t:Number(o)},g=e=>{if(!e)return{desktop:5};let t=m(e.desktop,5),o=m(e.tablet,t),r=m(e.mobile,o);return{desktop:t,tablet:o,mobile:r}},p=(e,t)=>{let o={};return["desktop","mobile","tablet"].forEach(r=>{o={...o,[`--d${"desktop"===r?"":`-${r}`}`]:`${e(r)?"none":t}`}}),o},b=e=>{let t=e?.["--radius"],o=e?.["--bblr"]||"0px",r=e?.["--bbrr"]||"0px",l=e?.["--btlr"]||"0px",i=e?.["--btrr"]||"0px";return t&&!t.toString().includes("none")&&"0"!==t.toString()||"0px"!==o||"0px"!==r||"0px"!==l||"0px"!==i},f=o=>{let r={};return["desktop","mobile","tablet"].forEach(t=>{let l=e(o,t)?.shapeValue;if(l)r={...r,[t]:l};else{let l=e(o,t)?.shape;switch(l){case"square":r={...r,[t]:"1/1"};break;case"vertical":r={...r,[t]:"3/4"};break;case"horizontal":r={...r,[t]:"4/3"};break;case"original":r={...r,[t]:""}}}}),t(r)},h=t=>{let r={"--gtc":"minmax(0, 12fr)","--gtc-tablet":"minmax(0, 12fr)","--gtc-mobile":"minmax(0, 12fr)"};if(!t.isHiddenGalleryImages){let l=!1;o.forEach(o=>{let i=e(t.position,o),a=e(t.ratioLayout,o),n=e(t.ratioLayoutRight,o),s="desktop"===o?"--gtc":`--gtc-${o}`,u="desktop"===o?"--gtr":`--gtr-${o}`,d="left"===i?a:n,c=["left","right"].includes(i||"");c&&d?(l=!0,Object.assign(r={...r,[s]:`minmax(0, ${d[0]}fr) minmax(0, ${d[1]}fr)`},{[u]:"fit-content(0)"})):l&&Object.assign(r,{[u]:"unset"})})}return r},y=t=>{let o={"--o":"0","--o-tablet":"0","--o-mobile":"0"};return["desktop","mobile","tablet"].forEach(r=>{let l=e(t.position,r),i="desktop"===r?"--o":`--o-${r}`;o={...o,[i]:"left"===l?"1":"0"}}),o},$=t=>{let o={"--o":"1","--o-tablet":"1","--o-mobile":"1"};return["desktop","mobile","tablet"].forEach(r=>{let l=e(t.position,r),i="desktop"===r?"--o":`--o-${r}`;o={...o,[i]:"left"===l?"0":"1"}}),o},k=e=>`{{${e} | image_url: width: 480}} 480w, {{${e} | image_url: width: 768}} 768w, {{${e} | image_url: width: 1024}} 1024w, {{${e} | image_url: width: 1440}} 1440w`,N=e=>{let t=parseInt(e)?`${2*parseInt(e)}px`:`${e} * 2`;return t},S=(t,o,i)=>{let a={},n={},s={},u={},d={},c={};return["desktop","mobile","tablet"].forEach(r=>{let l=e(t,r),m=e(o,r)?.width,g=e(i,r);if(a={...a,[r]:["inside-bottom","inside-left","inside-right"].includes(l)?"absolute":"static"},["inside-bottom"].includes(l)){let e=N(g);m=`calc(100% - ${e})`}["bottom-center","two-col","one-col"].includes(l)&&(m="100%"),s={...s,[r]:"inside-bottom"===l?`${g}`:"auto"},u={...u,[r]:["inside-left","inside-right"].includes(l)?`${g}`:"auto"},c={...c,[r]:["inside-bottom","inside-left"].includes(l)?`${g}`:"auto"},d={...d,[r]:"inside-right"===l?`${g}`:"auto"},n={...n,[r]:m}}),{...r("pos",a),...r("w",l(n)),...r("bottom",l(s)),...r("top",l(u)),...r("left",l(c)),...r("right",l(d))}},x=(t,o)=>{let r=!0,l=!1;return["desktop","mobile","tablet"].forEach(i=>{let a=e(t,i),n=e(o,i);a&&"only-feature"!==a&&(r=!1),(["two-col","one-col"].includes(a)||"images"===n)&&(l=!0)}),{isOnlyFeatureAllDevices:r,isRenderGalleryGrid:l}},w=e=>({...e,setting:{...e.setting}}),I=e=>{let t=e.match(/\d+/g);return t?t[0]:e},v=t=>{let o=f(t),r={desktop:"auto",mobile:"auto",tablet:"auto"};return["desktop","mobile","tablet"].forEach(l=>{let i=e(t,l),a=i?.height,n=i?.width||"",s=I(a||""),u=n.toString().match(/px/g)?I(n):n;if(a&&n&&!isNaN(Number(s))&&!isNaN(Number(u))){r={...r,[l]:`${Number(s)/Number(u)*100}%`};return}if(a&&!isNaN(Number(s))){r={...r,[l]:a};return}let d=o?.[l]!=="auto"&&o?.[l]?o?.[l]?.split("/").reverse().join("/"):"{%if largestRatio == 0%} 100 / 100 {%else%} {{largestRatio}} {%endif%}";r={...r,[l]:`calc((${d})*100%)`}}),r},G=["only-feature","one-col","two-col"],E=t=>{let r={};return o.forEach(o=>{let l=e(t,o);r[o]=null==l||!G.includes(l)}),r};export{b as checkAddOverFlowClass,g as convertSpacing,N as convertSpacingForIndisdeLayout,m as convertUnitToNumber,f as getAspectRatio,x as getConditionRenderGalleryImages,p as getDisplayStyle,n as getFeatureGalleryComponentKey,u as getGalleryCarouselRootId,d as getGalleryCarouselSelector,E as getGalleryCarouselShouldInitByLayout,v as getPaddingBottomByShapeSetting,s as getProductImagesCarouselInstanceId,k as getSrcImage,h as getStyleGridLayout,y as getStyleGridOrderForFeature,$ as getStyleGridOrderForGallery,S as getStyleInsideLayout,c as getTypeWidthDevice,w as setDefaultWhenUndefineSetting,a as shouldRenderProductImageGallery};
1
+ import{getResponsiveValueByScreen as e,makeAspectRatio as t,DEVICES as o,makeStyleResponsive as r,removeNullUndefined as l}from"@gem-sdk/core";import{getCarouselElementSelector as i}from"../../../../carousel-v3/common/selectors.js";let a=(e,t)=>(t??e).length>1,n=(t,o,r)=>{let l=e(t?.ftShape,o)?.shape==="original",i=l?e(t?.ftNavigationPosition,o):"";return[JSON.stringify(t?.position),i,o,r].join("|")},s=(e,t)=>{let o=e=>e.replace(/[^a-zA-Z0-9_-]+/g,"-").replace(/^-+|-+$/g,""),r=o(e||"product-images"),l=o(t);return[r||"product-images",l||"instance"].join("-")},u=({carouselInstanceUID:e,builderPropUID:t})=>`${e??t}-carousel`,c=e=>i(u(e)),d=e=>{let t=e?.desktop,o=e?.tablet===void 0?t:e?.tablet,r=e?.mobile===void 0?o:e?.mobile;return{desktop:t,tablet:o,mobile:r}},m=(e,t)=>{if(!e)return t;if("number"==typeof e)return e;let o=e.replaceAll("px","").replaceAll("%","").replaceAll("rem","").replaceAll("em","");return isNaN(Number(o))?t:Number(o)},p=e=>{if(!e)return{desktop:5};let t=m(e.desktop,5),o=m(e.tablet,t),r=m(e.mobile,o);return{desktop:t,tablet:o,mobile:r}},b=(e,t)=>{let o={};return["desktop","mobile","tablet"].forEach(r=>{o={...o,[`--d${"desktop"===r?"":`-${r}`}`]:`${e(r)?"none":t}`}}),o},g=e=>{let t=e?.["--radius"],o=e?.["--bblr"]||"0px",r=e?.["--bbrr"]||"0px",l=e?.["--btlr"]||"0px",i=e?.["--btrr"]||"0px";return t&&!t.toString().includes("none")&&"0"!==t.toString()||"0px"!==o||"0px"!==r||"0px"!==l||"0px"!==i},f=o=>{let r={};return["desktop","mobile","tablet"].forEach(t=>{let l=e(o,t)?.shapeValue;if(l)r={...r,[t]:l};else{let l=e(o,t)?.shape;switch(l){case"square":r={...r,[t]:"1/1"};break;case"vertical":r={...r,[t]:"3/4"};break;case"horizontal":r={...r,[t]:"4/3"};break;case"original":r={...r,[t]:""}}}}),t(r)},h=t=>{let r={"--gtc":"minmax(0, 12fr)","--gtc-tablet":"minmax(0, 12fr)","--gtc-mobile":"minmax(0, 12fr)"};if(!t.isHiddenGalleryImages){let l=!1;o.forEach(o=>{let i=e(t.position,o),a=e(t.ratioLayout,o),n=e(t.ratioLayoutRight,o),s="desktop"===o?"--gtc":`--gtc-${o}`,u="desktop"===o?"--gtr":`--gtr-${o}`,c="left"===i?a:n,d=["left","right"].includes(i||"");d&&c?(l=!0,Object.assign(r={...r,[s]:`minmax(0, ${c[0]}fr) minmax(0, ${c[1]}fr)`},{[u]:"fit-content(0)"})):l&&Object.assign(r,{[u]:"unset"})})}return r},y=t=>{let o={"--o":"0","--o-tablet":"0","--o-mobile":"0"};return["desktop","mobile","tablet"].forEach(r=>{let l=e(t.position,r),i="desktop"===r?"--o":`--o-${r}`;o={...o,[i]:"left"===l?"1":"0"}}),o},k=t=>{let o={"--o":"1","--o-tablet":"1","--o-mobile":"1"};return["desktop","mobile","tablet"].forEach(r=>{let l=e(t.position,r),i="desktop"===r?"--o":`--o-${r}`;o={...o,[i]:"left"===l?"0":"1"}}),o},$=e=>{let t=parseInt(e)?`${2*parseInt(e)}px`:`${e} * 2`;return t},N=(t,o,i)=>{let a={},n={},s={},u={},c={},d={};return["desktop","mobile","tablet"].forEach(r=>{let l=e(t,r),m=e(o,r)?.width,p=e(i,r);if(a={...a,[r]:["inside-bottom","inside-left","inside-right"].includes(l)?"absolute":"static"},["inside-bottom"].includes(l)){let e=$(p);m=`calc(100% - ${e})`}["bottom-center","two-col","one-col"].includes(l)&&(m="100%"),s={...s,[r]:"inside-bottom"===l?`${p}`:"auto"},u={...u,[r]:["inside-left","inside-right"].includes(l)?`${p}`:"auto"},d={...d,[r]:["inside-bottom","inside-left"].includes(l)?`${p}`:"auto"},c={...c,[r]:"inside-right"===l?`${p}`:"auto"},n={...n,[r]:m}}),{...r("pos",a),...r("w",l(n)),...r("bottom",l(s)),...r("top",l(u)),...r("left",l(d)),...r("right",l(c))}},x=(t,o)=>{let r=!0,l=!1;return["desktop","mobile","tablet"].forEach(i=>{let a=e(t,i),n=e(o,i);a&&"only-feature"!==a&&(r=!1),(["two-col","one-col"].includes(a)||"images"===n)&&(l=!0)}),{isOnlyFeatureAllDevices:r,isRenderGalleryGrid:l}},S=e=>({...e,setting:{...e.setting}}),I=e=>{let t=e.match(/\d+/g);return t?t[0]:e},v=t=>{let o=f(t),r={desktop:"auto",mobile:"auto",tablet:"auto"};return["desktop","mobile","tablet"].forEach(l=>{let i=e(t,l),a=i?.height,n=i?.width||"",s=I(a||""),u=n.toString().match(/px/g)?I(n):n;if(a&&n&&!isNaN(Number(s))&&!isNaN(Number(u))){r={...r,[l]:`${Number(s)/Number(u)*100}%`};return}if(a&&!isNaN(Number(s))){r={...r,[l]:a};return}let c=o?.[l]!=="auto"&&o?.[l]?o?.[l]?.split("/").reverse().join("/"):"{%if largestRatio == 0%} 100 / 100 {%else%} {{largestRatio}} {%endif%}";r={...r,[l]:`calc((${c})*100%)`}}),r},G=["only-feature","one-col","two-col"],E=t=>{let r={};return o.forEach(o=>{let l=e(t,o);r[o]=null==l||!G.includes(l)}),r};export{g as checkAddOverFlowClass,p as convertSpacing,$ as convertSpacingForIndisdeLayout,m as convertUnitToNumber,f as getAspectRatio,x as getConditionRenderGalleryImages,b as getDisplayStyle,n as getFeatureGalleryComponentKey,u as getGalleryCarouselRootId,c as getGalleryCarouselSelector,E as getGalleryCarouselShouldInitByLayout,v as getPaddingBottomByShapeSetting,s as getProductImagesCarouselInstanceId,h as getStyleGridLayout,y as getStyleGridOrderForFeature,k as getStyleGridOrderForGallery,N as getStyleInsideLayout,d as getTypeWidthDevice,S as setDefaultWhenUndefineSetting,a as shouldRenderProductImageGallery};
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- import{jsx as e,Fragment as t,jsxs as r}from"react/jsx-runtime";import{useProduct as o,useCurrentDevice as i,useShopStore as a,useRenderMode as c,getResponsiveValueByScreen as n,cls as l,makeStyle as s}from"@gem-sdk/core";import{isFeatureMedia as h,getZoomImageClass as f,getZoomLenClass as p}from"../../common/productFeaturedImage.js";import m from"../../../../../image/components/NextImage.js";import g from"./ProductFeatureVideo.js";import{memo as d,useMemo as u,useCallback as y}from"react";import v from"./MediaIcon.js";let E={src:"https://cdn.shopify.com/s/assets/no-image-2048-5e88c1b20e087fb7bbe9a3771824e743c244f437e4f8ba93bbf7b11b53f7824c_large.gif",id:"noImageError",width:480,height:480,alt:"no image",contentType:"IMAGE"};var T=d(({image:d,imageShowWhenHover:T,setting:b,aspectRatio:w})=>{let I=o(),k=i(),x=a(e=>e.storefrontUrl),{isEditMode:L,isPreviewSharePageMode:N}=c(),O=u(()=>"none"!==n(b.ftClickOpenLightBox,k),[k,b.ftClickOpenLightBox]),j=u(()=>!L&&["VIDEO","EXTERNAL_VIDEO"].includes(d?.contentType||"")&&!O,[L,d?.contentType,O]),R=u(()=>d?{...d,src:j?d.src:h(d?.contentType)?d?.previewImage:d.src}:E,[d,j]),C=u(()=>{if(N)return"javascript:void(0)";if(!x)return"#";let e=new URL(x);return I?`${e.protocol}//${e.host}/products/${I.handle}`:"#"},[x,I,N]),$=u(()=>b?.hoverEffect!=="none"&&!h(R?.contentType),[R?.contentType,b?.hoverEffect]),_=u(()=>b?.hoverEffect=="zoom"&&b?.zoomType=="glasses"&&!h(R?.contentType),[R?.contentType,b?.hoverEffect,b?.zoomType]),z=y(e=>"IMAGE"!==e.contentType?e.previewImage:e.src,[]),A=u(()=>T?"other"!==b.hoverEffect?z(R):z(T):E.src,[T,R,b.hoverEffect,z]);return e(t,{children:(t=>{if("product-link"===n(b.ftClickOpenLightBox,k)){let r=b.ftClickOpenNewTab?"_blank":"_self";return e("a",{title:I?.title,href:C,className:"gp-w-full",target:r,children:t})}return t})(e(t,{children:j?e(g,{type:R?.contentType,url:R.src??"",thumbnail:R?.previewImage,aspectRatio:w}):r(t,{children:[e(m,{draggable:"false",src:R.src,width:R?.width,height:R?.height,alt:R?.alt,setting:{aspectRatio:w,layout:b?.ftLayout},priority:b?.preload,className:"featured-image-only",style:{width:"100%",height:"100%",cursor:"pointer"}}),e(v,{contentType:R?.contentType??""}),$&&e(m,{draggable:"false",src:A,width:b?.hoverEffect==="other"?T?.width:R.width,height:b?.hoverEffect==="other"?T?.height:R.height,alt:b?.hoverEffect==="other"?T?.alt:R.alt,setting:{layout:b.ftLayout,aspectRatio:w},style:{width:"100%",height:"100%"},className:l("hover-image featured-image-only !gp-max-w-none",f()),priority:b?.preload}),_&&e("div",{className:l(p(),"room-len"),style:{...s({bgi:`url("${R?.src}")`})}})]})}))})});export{T as default};
2
+ import{jsx as e,Fragment as t,jsxs as r}from"react/jsx-runtime";import{useProduct as o,useCurrentDevice as i,useShopStore as a,useRenderMode as c,getResponsiveValueByScreen as n,cls as l,makeStyle as s}from"@gem-sdk/core";import{isFeatureMedia as p,getZoomImageClass as h,getZoomLenClass as f}from"../../common/productFeaturedImage.js";import m from"../../../../../image/components/NextImage.js";import u from"./ProductFeatureVideo.js";import{memo as y,useMemo as g,useCallback as d}from"react";import T from"./MediaIcon.js";let v={src:"https://cdn.shopify.com/s/assets/no-image-2048-5e88c1b20e087fb7bbe9a3771824e743c244f437e4f8ba93bbf7b11b53f7824c_large.gif",id:"noImageError",width:480,height:480,alt:"no image",contentType:"IMAGE"};var w=y(({image:y,imageShowWhenHover:w,setting:E,aspectRatio:I})=>{let b=o(),q=i(),P=a(e=>e.storefrontUrl),{isEditMode:k,isPreviewSharePageMode:x}=c(),L=g(()=>"none"!==n(E.ftClickOpenLightBox,q),[q,E.ftClickOpenLightBox]),N=g(()=>!k&&["VIDEO","EXTERNAL_VIDEO"].includes(y?.contentType||"")&&!L,[k,y?.contentType,L]),O=g(()=>y?{...y,src:N?y.src:p(y?.contentType)?y?.previewImage:y.src}:v,[y,N]),j=g(()=>{if(x)return"javascript:void(0)";if(!P)return"#";let e=new URL(P);return b?`${e.protocol}//${e.host}/products/${b.handle}`:"#"},[P,b,x]),z=g(()=>E?.hoverEffect!=="none"&&!p(O?.contentType),[O?.contentType,E?.hoverEffect]),A=g(()=>E?.hoverEffect=="zoom"&&E?.zoomType=="glasses"&&!p(O?.contentType),[O?.contentType,E?.hoverEffect,E?.zoomType]),F=d(e=>"IMAGE"!==e.contentType?e.previewImage:e.src,[]),R=g(()=>w?"other"!==E.hoverEffect?F(O):F(w):v.src,[w,O,E.hoverEffect,F]);return e(t,{children:(t=>{if("product-link"===n(E.ftClickOpenLightBox,q)){let r=E.ftClickOpenNewTab?"_blank":"_self";return e("a",{title:b?.title,href:j,className:"gp-w-full",target:r,children:t})}return t})(e(t,{children:N?e(u,{type:O?.contentType,url:O.src??"",thumbnail:O?.previewImage,aspectRatio:I}):r(t,{children:[e(m,{sizeTarget:"ProductFeatureImage",listAware:!0,src:O.src,width:O?.width,height:O?.height,alt:O?.alt,setting:{qualityType:E?.qualityType,qualityPercent:E?.qualityPercent,aspectRatio:I,layout:E?.ftLayout},priority:E?.preload,className:"featured-image-only",style:{width:"100%",height:"100%",cursor:"pointer"}}),e(T,{contentType:O?.contentType??""}),z&&e(m,{sizeTarget:"ProductFeatureImage",listAware:!0,src:R,width:E?.hoverEffect==="other"?w?.width:O.width,height:E?.hoverEffect==="other"?w?.height:O.height,alt:E?.hoverEffect==="other"?w?.alt:O.alt,setting:{qualityType:E?.qualityType,qualityPercent:E?.qualityPercent,layout:E.ftLayout,aspectRatio:I},style:{width:"100%",height:"100%"},className:l("hover-image featured-image-only !gp-max-w-none",h()),priority:E?.preload}),A&&e("div",{className:l(f(),"room-len"),style:{...s({bgi:`url("${O?.src}")`})}})]})}))})});export{w as default};
@@ -1 +1 @@
1
- import{jsx as e,Fragment as o,jsxs as t}from"react/jsx-runtime";import{isFeatureMedia as r,getZoomImageClass as i,getZoomLenClass as a}from"../../common/productFeaturedImage.js";import{getProductImagesClassName as m}from"../../composables/getProductImagesClassName.js";import{getProductImagesStyles as l}from"../../composables/getProductImagesStyles.js";import{useCurrentDevice as c,useRenderMode as s,getResponsiveValueByScreen as n,cls as d,makeStyle as p}from"@gem-sdk/core";import{handleMouseOut as g,handleMouseMove as h}from"../../common/hoverAction.js";import{useProductGalleryGrid as y}from"../../hooks/useProductGalleryGrid.js";import u from"../../../../../image/components/NextImage.js";import f from"../lightbox/ButtonOpenLightBox.js";import v from"./ProductFeatureVideo.js";import{getAspectRatio as j}from"../../common/common.js";import T from"./MediaIcon.js";import{memo as w}from"react";var I=w(w=>{let{builderPropUID:I,productImages:b,onHandleClick:E,activeIndexFromFeatureImage:x,children:N,isHiddenInteraction:O,...P}=w,{isDisplay:k,shapeByLayout:G,imageActiveIndex:M,enableOpenLightBox:R,isEnableBorderActive:$,filteredProductImages:z}=y(w),A=c(),{isEditMode:B}=s(),H=n(P.position,A)||"",L=["one-col","two-col"].includes(H),V="bottom-center"===H,{galleryGridWrapperClasses:Z,galleryItemClasses:C}=m(P),{galleryGridStyles:D,galleryGridItemStyles:F}=l(P),S=V?"none":P.galleryHoverEffect;return e(o,{children:k&&t("div",{"data-slot":"children","data-id":I,className:Z,style:D,"gp-data-hidden":`${O}`,children:[z?.map((m,l)=>{let c=l===M,s=r(m.contentType)?m.previewImage:m.src,y=!B&&L&&!R&&["VIDEO","EXTERNAL_VIDEO"].includes(m?.contentType||"");return t("div",{"aria-hidden":!0,className:C(`gp-gallery-image-item gem-slider-item-${I} ${c&&$?"gem-slider-item-active":""}`),onClick:()=>E(m?.id||"",R),style:F,onMouseMove:e=>h(e,{hoverEffect:S,zoom:P.galleryZoom,zoomType:P.galleryZoomType}),onMouseOut:e=>g(e),"data-border":c&&P?.borderActive?"active":"deactive",children:[y?e(v,{type:m?.contentType,url:m?.src??"",thumbnail:m?.previewImage,aspectRatio:j(G)}):t(o,{children:[e(u,{src:s,width:m?.width,height:m?.height,alt:m?.alt,setting:{aspectRatio:j(G),layout:P?.layout},style:{width:"100%",height:"100%"}},m?.id),e(T,{contentType:m?.contentType||""})]}),P?.galleryHoverEffect!=="none"&&!r(m?.contentType)&&e(u,{src:s,width:m?.width,height:m?.height,alt:m?.alt,setting:{layout:P.layout,aspectRatio:j(G)},className:d("hover-image !gp-max-w-none",i())}),P?.galleryHoverEffect=="zoom"&&P?.galleryZoomType=="glasses"&&["one-col","two-col"].includes(n(P.position,A)||"")&&!r(m?.contentType)&&e("div",{className:d(a(),"room-len"),style:{...p({bgi:`url("${m?.src}")`})}}),n(P?.clickOpenLightBox,A)&&e(f,{})]},m?.id)}),N]})})});export{I as default};
1
+ import{jsx as e,Fragment as t,jsxs as o}from"react/jsx-runtime";import{isFeatureMedia as r,getZoomImageClass as i,getZoomLenClass as a}from"../../common/productFeaturedImage.js";import{getProductImagesClassName as l}from"../../composables/getProductImagesClassName.js";import{getProductImagesStyles as m}from"../../composables/getProductImagesStyles.js";import{useCurrentDevice as c,useRenderMode as s,getResponsiveValueByScreen as n,cls as d,makeStyle as p}from"@gem-sdk/core";import{handleMouseOut as y,handleMouseMove as g}from"../../common/hoverAction.js";import{useProductGalleryGrid as u}from"../../hooks/useProductGalleryGrid.js";import h from"../../../../../image/components/NextImage.js";import f from"../lightbox/ButtonOpenLightBox.js";import v from"./ProductFeatureVideo.js";import{getAspectRatio as T}from"../../common/common.js";import w from"./MediaIcon.js";import{memo as j}from"react";var I=j(j=>{let{builderPropUID:I,productImages:P,onHandleClick:b,activeIndexFromFeatureImage:q,children:E,isHiddenInteraction:x,...N}=j,{isDisplay:z,shapeByLayout:A,imageActiveIndex:O,enableOpenLightBox:k,isEnableBorderActive:F,filteredProductImages:G}=u(j),M=c(),{isEditMode:R}=s(),$=n(N.position,M)||"",B=["one-col","two-col"].includes($),H="bottom-center"===$,{galleryGridWrapperClasses:L,galleryItemClasses:V}=l(N),{galleryGridStyles:Z,galleryGridItemStyles:C}=m(N),D=H?"none":N.galleryHoverEffect;return e(t,{children:z&&o("div",{"data-slot":"children","data-id":I,className:L,style:Z,"gp-data-hidden":`${x}`,children:[G?.map((l,m)=>{let c=m===O,s=r(l.contentType)?l.previewImage:l.src,u=!R&&B&&!k&&["VIDEO","EXTERNAL_VIDEO"].includes(l?.contentType||"");return o("div",{"aria-hidden":!0,className:V(`gp-gallery-image-item gem-slider-item-${I} ${c&&F?"gem-slider-item-active":""}`),onClick:()=>b(l?.id||"",k),style:C,onMouseMove:e=>g(e,{hoverEffect:D,zoom:N.galleryZoom,zoomType:N.galleryZoomType}),onMouseOut:e=>y(e),"data-border":c&&N?.borderActive?"active":"deactive",children:[u?e(v,{type:l?.contentType,url:l?.src??"",thumbnail:l?.previewImage,aspectRatio:T(A)}):o(t,{children:[e(h,{sizeTarget:"ProductFeatureImage",listAware:!0,src:s,width:l?.width,height:l?.height,alt:l?.alt,setting:{qualityType:N?.qualityType,qualityPercent:N?.qualityPercent,aspectRatio:T(A),layout:N?.layout},style:{width:"100%",height:"100%"}},l?.id),e(w,{contentType:l?.contentType||""})]}),N?.galleryHoverEffect!=="none"&&!r(l?.contentType)&&e(h,{sizeTarget:"ProductFeatureImage",listAware:!0,src:s,width:l?.width,height:l?.height,alt:l?.alt,setting:{qualityType:N?.qualityType,qualityPercent:N?.qualityPercent,layout:N.layout,aspectRatio:T(A)},className:d("hover-image !gp-max-w-none",i())}),N?.galleryHoverEffect=="zoom"&&N?.galleryZoomType=="glasses"&&["one-col","two-col"].includes(n(N.position,M)||"")&&!r(l?.contentType)&&e("div",{className:d(a(),"room-len"),style:{...p({bgi:`url("${l?.src}")`})}}),n(N?.clickOpenLightBox,M)&&e(f,{})]},l?.id)}),E]})})});export{I as default};
@@ -1,36 +1,36 @@
1
- import{checkRenderFeaturedCarousel as e,getZoomImageClass as a,getZoomLenClass as i,getVideoHeight as t}from"../../common/productFeaturedImage.js";import{getAspectRatio as r,getPaddingBottomByShapeSetting as s,getSrcImage as d}from"../../common/common.js";import{FEATURE_MEDIA_CENTER_CLASSES as o}from"../../common/classes.js";import{makeStyleResponsive as u,cls as m,template as l}from"@gem-sdk/core";import p from"../../../../../carousel-v3/components/item/CarouselItem.liquid.js";import{getProductImagesClassName as g}from"../../composables/getProductImagesClassName.js";import n from"../../../../../carousel-v3/components/root/Carousel.liquid.js";import{getProductImagesStyles as c}from"../../composables/getProductImagesStyles.js";import{If as f,LiquidIf as h,LiquidFor as y,Liquid as M,createStyle as _}from"@gem-sdk/system";import{getProductImagesAttr as w}from"../../composables/getProductImagesAttr.js";import v from"../../../../../video/components/HTML5Embed.liquid.js";import b from"../../../../../image/components/NextImage.liquid.js";import $ from"../../../../../image/components/Modal3d.liquid.js";import I from"../../../../../image/components/Video.liquid.js";import{getStyleOfObject as x}from"../../../../helpers/function.js";let q=({builderPropUID:q,children:S,pageContext:z,...j})=>{let{featuredImageCarouselClasses:L,galleryItemClasses:P,featuredCarouselItemClasses:R}=g({...j,builderProps:{uid:q}}),{featuredImageCarouselStyle:T,featureImageStyle:W,featureImageCarouselOnlyOneImageStyle:C,featureImageOnlyOneImageStyle:N,featureImageCarouselItemStyle:k}=c(j),{featuredImageCarouselSettingAttrs:E}=w(j),O=r(j.ftShape),A=f("other"==j.hoverEffect,h("product.media.size > 1","group-hover:gp-opacity-0")),D=()=>`
1
+ import{checkRenderFeaturedCarousel as e,getZoomImageClass as a,getZoomLenClass as i,getVideoHeight as t}from"../../common/productFeaturedImage.js";import{getAspectRatio as r,getPaddingBottomByShapeSetting as s}from"../../common/common.js";import{FEATURE_MEDIA_CENTER_CLASSES as d}from"../../common/classes.js";import{makeStyleResponsive as o,cls as u,template as m}from"@gem-sdk/core";import l from"../../../../../carousel-v3/components/item/CarouselItem.liquid.js";import{getProductImagesClassName as p}from"../../composables/getProductImagesClassName.js";import g from"../../../../../carousel-v3/components/root/Carousel.liquid.js";import{getProductImagesStyles as n}from"../../composables/getProductImagesStyles.js";import{getLiquidImageSrcset as c}from"../../../../../image/common/liquidSrcset.js";import{If as f,LiquidIf as h,LiquidFor as y,Liquid as M,createStyle as _}from"@gem-sdk/system";import{getProductImagesAttr as b}from"../../composables/getProductImagesAttr.js";import v from"../../../../../video/components/HTML5Embed.liquid.js";import w from"../../../../../image/components/NextImage.liquid.js";import $ from"../../../../../image/components/Modal3d.liquid.js";import I from"../../../../../image/components/Video.liquid.js";import{getStyleOfObject as q}from"../../../../helpers/function.js";let x=({builderPropUID:x,children:S,pageContext:P,...T})=>{let{featuredImageCarouselClasses:j,galleryItemClasses:z,featuredCarouselItemClasses:L}=p({...T,builderProps:{uid:x}}),{featuredImageCarouselStyle:R,featureImageStyle:W,featureImageCarouselOnlyOneImageStyle:C,featureImageOnlyOneImageStyle:k,featureImageCarouselItemStyle:N}=n(T),{featuredImageCarouselSettingAttrs:E}=b(T),O=r(T.ftShape),A=f("other"==T.hoverEffect,h("product.media.size > 1","group-hover:gp-opacity-0")),D=()=>`
2
2
  {% case featureMedia.media_type %}
3
3
  {% when 'image' %}
4
4
  ${B()}
5
5
  {% when 'external_video' %}
6
6
  {% assign mediaSourceVideo = featureMedia | external_video_url %}
7
- ${H()}
7
+ ${F()}
8
8
  {% when 'video' %}
9
9
  {% assign mediaSourceVideo = featureMedia.sources.last.url %}
10
- ${F()}
10
+ ${H()}
11
11
  {% when 'model' %}
12
12
  ${V()}
13
13
  {% else %}
14
14
  ${J()}
15
15
  {% endcase %}
16
- `,V=()=>$({src:h("featureMedia.sources.first.url contains '.glb'","{{ featureMedia.sources.first.url }}","{{featureMedia.sources.last.url}}"),alt:"{{featureMedia.preview_image.alt}}",poster:"{{featureMedia.preview_image.src | product_img_url: '1024x1024'}}",cameraControls:!0,arStatus:"not-presenting",style:{width:"100%"},aspectRatio:O}),H=()=>I({src:"{{mediaSourceVideo}}",alt:"{{featureMedia.alt | escape}}",autoplay:!1,allowfullscreen:!0,controls:!0,style:{width:"100%",height:"100%"},aspectRatio:O}),F=()=>{let e=_({...t({ftLayout:j?.ftLayout,ftShape:j?.ftShape}),...u("objf",j?.ftLayout)}),a=_({...t({ftLayout:j?.ftLayout,ftShape:j?.ftShape})});return v({src:"{{mediaSourceVideo}}",title:"{{featureMedia.alt | escape}}",autoplay:!1,controls:!0,thumbnail:"{{featureMedia.preview_image.src | product_img_url: '1024x1024'}}",isCheckLoaded:!0,wrapperStyles:a,poster:{altText:"{{featureMedia.alt | escape}}"},style:{width:"100%","max-height":"100%",...e},className:"gp-invisible",pageContext:z})},B=()=>l`
17
- ${G(m("gp-w-full gp-transition-opacity",A,"{{shouldHidden}}"))}
18
- ${f(j?.hoverEffect!=="none",`<div class="${m("zoom-element !gp-max-w-none",a())}">
16
+ `,V=()=>$({src:h("featureMedia.sources.first.url contains '.glb'","{{ featureMedia.sources.first.url }}","{{featureMedia.sources.last.url}}"),alt:"{{featureMedia.preview_image.alt}}",poster:"{{featureMedia.preview_image.src | product_img_url: '1024x1024'}}",cameraControls:!0,arStatus:"not-presenting",style:{width:"100%"},aspectRatio:O}),F=()=>I({src:"{{mediaSourceVideo}}",alt:"{{featureMedia.alt | escape}}",autoplay:!1,allowfullscreen:!0,controls:!0,style:{width:"100%",height:"100%"},aspectRatio:O}),H=()=>{let e=_({...t({ftLayout:T?.ftLayout,ftShape:T?.ftShape}),...o("objf",T?.ftLayout)}),a=_({...t({ftLayout:T?.ftLayout,ftShape:T?.ftShape})}),i=c({liquidSrc:"featureMedia.preview_image",sizeTarget:"ProductFeatureImage",qualityType:T.qualityType,qualityPercent:T.qualityPercent});return v({src:"{{mediaSourceVideo}}",title:"{{featureMedia.alt | escape}}",autoplay:!1,controls:!0,thumbnail:"{{featureMedia.preview_image.src | product_img_url: '1024x1024'}}",thumbnailImage:{srcset:i&&h("featureMedia.preview_image != blank",i)},isCheckLoaded:!0,wrapperStyles:a,poster:{altText:"{{featureMedia.alt | escape}}",preload:T?.preload},style:{width:"100%","max-height":"100%",...e},className:"gp-invisible"})},B=()=>m`
17
+ ${G(u("gp-w-full gp-transition-opacity",A,"{{shouldHidden}}"))}
18
+ ${f(T?.hoverEffect!=="none",`<div class="${u("zoom-element !gp-max-w-none",a())}">
19
19
  ${G("image-zoom",!0)}
20
20
  </div>`," ")}
21
- ${f(j?.hoverEffect=="zoom"&&j?.zoomType=="glasses",`<div class="${m("zoom-lens-element",i())}" style="opacity: 0; background-image: url('{{ featureMedia.src | img_url: "1024x1024"}}')"></div>`," ")}
22
- `,G=(e,a)=>l`
21
+ ${f(T?.hoverEffect=="zoom"&&T?.zoomType=="glasses",`<div class="${u("zoom-lens-element",i())}" style="opacity: 0; background-image: url('{{ featureMedia.src | img_url: "1024x1024"}}')"></div>`," ")}
22
+ `,G=(e,a)=>{let i=c({liquidSrc:"src",sizeTarget:"ProductFeatureImage",qualityType:T.qualityType,qualityPercent:T.qualityPercent});return m`
23
23
  {% assign src = featureMedia.src %}
24
- ${f(a&&"other"==j.hoverEffect,`{% assign media_length = product.media | size %}
25
- {% assign other_image_index = ${j.otherImage} | plus: 0 %}
24
+ ${f(a&&"other"==T.hoverEffect,`{% assign media_length = product.media | size %}
25
+ {% assign other_image_index = ${T.otherImage} | plus: 0 %}
26
26
  {% if other_image_index >= media_length %}
27
27
  {% assign other_image_index = media_length | minus: 1 %}
28
28
  {% endif %}
29
29
  {% assign otherImage = product.media[other_image_index] %}
30
30
  ${h("otherImage.media_type != 'image'","{% assign src = otherImage.preview_image.src %}","{% assign src = otherImage.src %}")}
31
31
  `)}
32
- ${b({srcIsLiquidCode:!0,src:h("src != null",d("src"),"https://cdn.shopify.com/s/assets/no-image-2048-5e88c1b20e087fb7bbe9a3771824e743c244f437e4f8ba93bbf7b11b53f7824c_large.gif"),id:h("featureMedia != null","{{featureMedia.id}}"),width:"{{featureMedia.width}}",height:"{{featureMedia.height}}",alt:"{{featureMedia.alt | escape}}",srcset:`${d("src")}`,baseSrc:"{{src | image_url}}",sizes:"(max-width: 768px) 50vw, 100vw",setting:{layout:j?.ftLayout,aspectRatio:O,qualityType:j?.qualityType,qualityPercent:j?.qualityPercent},priority:j?.preload,className:`gp-w-full gp-h-full gp-absolute gp-top-0 gp-left-0 featured-image-only gp-cursor-pointer !gp-rounded-none ${e??""}`,pageContext:z})}`,J=()=>l`
33
- ${b({srcIsLiquidCode:!0,src:"https://cdn.shopify.com/s/assets/no-image-2048-5e88c1b20e087fb7bbe9a3771824e743c244f437e4f8ba93bbf7b11b53f7824c_large.gif",alt:"No Image",sizes:"(max-width: 768px) 50vw, 100vw",setting:{layout:j?.ftLayout,aspectRatio:O,qualityType:j?.qualityType,qualityPercent:j?.qualityPercent},priority:j?.preload,className:"gp-w-full gp-h-full gp-absolute gp-top-0 gp-left-0 featured-image-only gp-cursor-pointer !gp-rounded-none",pageContext:z})}`,K=s(j.ftShape),Q=e(j),U="gp-featured-image-wrapper",X=h("product.media.size > 0",`{% assign largestRatio = 0 %}
32
+ ${w({srcIsLiquidCode:!0,src:h("src != null","{{src | image_url}}","https://cdn.shopify.com/s/assets/no-image-2048-5e88c1b20e087fb7bbe9a3771824e743c244f437e4f8ba93bbf7b11b53f7824c_large.gif"),id:h("featureMedia != null","{{featureMedia.id}}"),width:"{{featureMedia.width}}",height:"{{featureMedia.height}}",alt:"{{featureMedia.alt | escape}}",srcset:i&&h("src != null",i),setting:{layout:T?.ftLayout,aspectRatio:O,qualityType:T?.qualityType,qualityPercent:T?.qualityPercent},priority:T?.preload,className:`gp-w-full gp-h-full gp-absolute gp-top-0 gp-left-0 featured-image-only gp-cursor-pointer !gp-rounded-none ${e??""}`})}`},J=()=>m`
33
+ ${w({srcIsLiquidCode:!0,src:"https://cdn.shopify.com/s/assets/no-image-2048-5e88c1b20e087fb7bbe9a3771824e743c244f437e4f8ba93bbf7b11b53f7824c_large.gif",alt:"No Image",setting:{layout:T?.ftLayout,aspectRatio:O,qualityType:T?.qualityType,qualityPercent:T?.qualityPercent},priority:T?.preload,className:"gp-w-full gp-h-full gp-absolute gp-top-0 gp-left-0 featured-image-only gp-cursor-pointer !gp-rounded-none"})}`,K=s(T.ftShape),Q=e(T),U="gp-featured-image-wrapper",X=h("product.media.size > 0",`{% assign largestRatio = 0 %}
34
34
  ${y("featureMedia in product.media",`
35
35
  ${h("featureMedia.media_type == 'video' and featureMedia.preview_image",`{% assign height = featureMedia.preview_image.height | times: 1.0 %}
36
36
  {% assign width = featureMedia.preview_image.width | times: 1.0 %}`,`{% assign height = featureMedia.height | times: 1.0 %}
@@ -47,22 +47,22 @@ import{checkRenderFeaturedCarousel as e,getZoomImageClass as a,getZoomLenClass a
47
47
  {% else %}
48
48
  {% assign productImageWidth = featureMedia.preview_image.width %}
49
49
  {% endcase %}`)}
50
- ${p({id:"{{section.id}}-{{imageID}}",contentType:"productImage",className:`${P("gp-ft-image-item !gp-min-w-full !gp-max-w-full ")}`,parentId:`ft-${q}-{{section.id}}-{{product.id}}`,style:k,customStyle:{width:"{{productImageWidth}}px"},children:`
50
+ ${l({id:"{{section.id}}-{{imageID}}",contentType:"productImage",className:`${z("gp-ft-image-item !gp-min-w-full !gp-max-w-full ")}`,parentId:`ft-${x}-{{section.id}}-{{product.id}}`,style:N,customStyle:{width:"{{productImageWidth}}px"},children:`
51
51
  <div
52
- class="gp-w-full gp-relative ${h("featureMedia == null or featureMedia.media_type == 'image'","{{ 'gp-h-0' }}","{{ 'gp-h-full !gp-pb-0' }}")} ${h("featureMedia.media_type == 'video' or featureMedia.media_type == 'external_video'",`{{ '${o}' }}`)}"
53
- style="${x(u("pb",K))}"
52
+ class="gp-w-full gp-relative ${h("featureMedia == null or featureMedia.media_type == 'image'","{{ 'gp-h-0' }}","{{ 'gp-h-full !gp-pb-0' }}")} ${h("featureMedia.media_type == 'video' or featureMedia.media_type == 'external_video'",`{{ '${d}' }}`)}"
53
+ style="${q(o("pb",K))}"
54
54
  >
55
55
  ${D()}
56
56
  </div>
57
57
  `})}`)}
58
- `,b({src:"https://cdn.shopify.com/s/assets/no-image-2048-5e88c1b20e087fb7bbe9a3771824e743c244f437e4f8ba93bbf7b11b53f7824c_large.gif",id:"noImageError",width:"480",height:"480",alt:"no image",priority:j?.preload,setting:{layout:j?.ftLayout,aspectRatio:O,qualityType:j?.qualityType,qualityPercent:j?.qualityPercent},style:{height:"100%"},className:"gp-w-full featured-image-only !gp-rounded-none",customLazyload:!0,pageContext:z}));return M(`
58
+ `,w({src:"https://cdn.shopify.com/s/assets/no-image-2048-5e88c1b20e087fb7bbe9a3771824e743c244f437e4f8ba93bbf7b11b53f7824c_large.gif",id:"noImageError",width:"480",height:"480",alt:"no image",priority:T?.preload,setting:{layout:T?.ftLayout,aspectRatio:O,qualityType:T?.qualityType,qualityPercent:T?.qualityPercent},style:{height:"100%"},className:"gp-w-full featured-image-only !gp-rounded-none"}));return M(`
59
59
  {% capture featureImageOnlyOne %}
60
60
  ${M(`
61
61
  {% assign featureMedia = variant.featured_media %}
62
62
  {% unless featureMedia %}
63
63
  {% assign featureMedia = product.featured_media %}
64
64
  {% endunless %}
65
- ${h("product.media.size > 1",(()=>{switch(j?.preDisplay){case"1st-images":return`
65
+ ${h("product.media.size > 1",(()=>{switch(T?.preDisplay){case"1st-images":return`
66
66
  {% assign featureMedia = product.media.first %}
67
67
  `;case"1st-3d-mode":return y("media in product.media",h("media.media_type == 'model'","{% assign featureMedia = media %}{% break %}"));case"1st-video":return y("media in product.media",h("media.media_type == 'video' or media.media_type == 'external_video'","{% assign featureMedia = media %}{% break %}"));default:return`
68
68
  {% assign featureMedia = variant.featured_media %}
@@ -85,23 +85,23 @@ import{checkRenderFeaturedCarousel as e,getZoomImageClass as a,getZoomLenClass a
85
85
  ${h("featureMedia == null","{% assign productImageWidth = 1600 %}")}
86
86
  <div
87
87
  class='gp-feature-image-carousel gp-feature-image-only'
88
- style="${x(W)}"
88
+ style="${q(W)}"
89
89
  >
90
90
  <div
91
91
  class="gp-relative"
92
- style="${x(N)}"
92
+ style="${q(k)}"
93
93
  >
94
94
  ${S}
95
95
  <div
96
96
  type="gp-feature-image-only"
97
97
  product-id="{{product.id}}"
98
98
  product-media="{{product.media.size}}"
99
- class="${R(U)}"
100
- style="${x(C)}"
99
+ class="${L(U)}"
100
+ style="${q(C)}"
101
101
  >
102
102
  <div
103
103
  class="gp-w-full gp-relative ${h("featureMedia == null or featureMedia.media_type == 'image'","{{ 'gp-h-0' }}","{{ 'gp-h-full !gp-pb-0' }}")}"
104
- style="${x(u("pb",K))} ${h("featureMedia.media_type == 'video' or featureMedia.media_type == 'external_video'","{{ 'display: flex; align-items: center; justify-content: center' }}")}"
104
+ style="${q(o("pb",K))} ${h("featureMedia.media_type == 'video' or featureMedia.media_type == 'external_video'","{{ 'display: flex; align-items: center; justify-content: center' }}")}"
105
105
  >
106
106
  ${D()}
107
107
  </div>
@@ -112,8 +112,8 @@ import{checkRenderFeaturedCarousel as e,getZoomImageClass as a,getZoomLenClass a
112
112
  {% endcapture %}
113
113
  ${h("product.media.size > 1",`
114
114
  ${f(Q,`
115
- ${n({builderProps:{uid:q},rootId:`ft-${q}-{{section.id}}-{{product.id}}`,conditionAppendJs:"product.media.size > 1",wrapperClass:U,rootClass:`${L}`,rootAttrs:{type:"gp-feature-image-carousel","product-id":"{{product.id}}","product-media":"{{product.media.size}}"},isHiddenArrowWhenDisabled:!0,setting:E,rootStyles:W,styles:T,style:{playSpeed:600},disableMarginAuto:!0,children:X,productBadgeLiquid:S||"",carouselType:"feature_image"})}
115
+ ${g({builderProps:{uid:x},rootId:`ft-${x}-{{section.id}}-{{product.id}}`,conditionAppendJs:"product.media.size > 1",wrapperClass:U,rootClass:`${j}`,rootAttrs:{type:"gp-feature-image-carousel","product-id":"{{product.id}}","product-media":"{{product.media.size}}"},isHiddenArrowWhenDisabled:!0,setting:E,rootStyles:W,styles:R,style:{playSpeed:600},disableMarginAuto:!0,children:X,productBadgeLiquid:S||"",carouselType:"feature_image"})}
116
116
  `," ")}
117
117
  ${f(!Q,"{{ featureImageOnlyOne }}"," ")}
118
118
  `,"{{ featureImageOnlyOne }}")}
119
- `)};export{q as default};
119
+ `)};export{x as default};
@@ -1,36 +1,36 @@
1
- import{checkRenderFeaturedCarousel as e,getZoomImageClass as a,getZoomLenClass as i,getVideoHeight as t}from"../../common/productFeaturedImage.js";import{getAspectRatio as r,getPaddingBottomByShapeSetting as s,getSrcImage as d}from"../../common/common.js";import{FEATURE_MEDIA_CENTER_CLASSES as o}from"../../common/classes.js";import{makeStyleResponsive as u,cls as m,template as l}from"@gem-sdk/core";import p from"../../../../../carousel-v3/components/item/CarouselItem.liquid.js";import{getProductImagesClassName as g}from"../../composables/getProductImagesClassName.js";import n from"../../../../../carousel-v3/components/root/CarouselEmbla.liquid.js";import{getProductImagesStyles as c}from"../../composables/getProductImagesStyles.js";import{If as f,LiquidIf as h,LiquidFor as y,Liquid as M,createStyle as _}from"@gem-sdk/system";import{getProductImagesAttr as w}from"../../composables/getProductImagesAttr.js";import v from"../../../../../video/components/HTML5Embed.liquid.js";import b from"../../../../../image/components/NextImage.liquid.js";import $ from"../../../../../image/components/Modal3d.liquid.js";import I from"../../../../../image/components/Video.liquid.js";import{getStyleOfObject as x}from"../../../../helpers/function.js";let q=({builderPropUID:q,children:S,pageContext:z,...j})=>{let{featuredImageCarouselClasses:L,galleryItemClasses:P,featuredCarouselItemClasses:R}=g({...j,builderProps:{uid:q}}),{featuredImageCarouselStyle:T,featureImageStyle:W,featureImageCarouselOnlyOneImageStyle:C,featureImageOnlyOneImageStyle:N,featureImageCarouselItemStyle:k}=c(j),{featuredImageCarouselSettingAttrs:E}=w(j),O=r(j.ftShape),A=f("other"==j.hoverEffect,h("product.media.size > 1","group-hover:gp-opacity-0")),D=()=>`
1
+ import{checkRenderFeaturedCarousel as e,getZoomImageClass as a,getZoomLenClass as i,getVideoHeight as t}from"../../common/productFeaturedImage.js";import{getAspectRatio as r,getPaddingBottomByShapeSetting as s}from"../../common/common.js";import{FEATURE_MEDIA_CENTER_CLASSES as d}from"../../common/classes.js";import{makeStyleResponsive as o,cls as u,template as m}from"@gem-sdk/core";import l from"../../../../../carousel-v3/components/item/CarouselItem.liquid.js";import{getProductImagesClassName as p}from"../../composables/getProductImagesClassName.js";import g from"../../../../../carousel-v3/components/root/CarouselEmbla.liquid.js";import{getProductImagesStyles as n}from"../../composables/getProductImagesStyles.js";import{getLiquidImageSrcset as c}from"../../../../../image/common/liquidSrcset.js";import{If as f,LiquidIf as h,LiquidFor as y,Liquid as M,createStyle as _}from"@gem-sdk/system";import{getProductImagesAttr as b}from"../../composables/getProductImagesAttr.js";import v from"../../../../../video/components/HTML5Embed.liquid.js";import w from"../../../../../image/components/NextImage.liquid.js";import $ from"../../../../../image/components/Modal3d.liquid.js";import I from"../../../../../image/components/Video.liquid.js";import{getStyleOfObject as q}from"../../../../helpers/function.js";let x=({builderPropUID:x,children:S,pageContext:P,...T})=>{let{featuredImageCarouselClasses:j,galleryItemClasses:z,featuredCarouselItemClasses:L}=p({...T,builderProps:{uid:x}}),{featuredImageCarouselStyle:R,featureImageStyle:W,featureImageCarouselOnlyOneImageStyle:C,featureImageOnlyOneImageStyle:k,featureImageCarouselItemStyle:N}=n(T),{featuredImageCarouselSettingAttrs:E}=b(T),O=r(T.ftShape),A=f("other"==T.hoverEffect,h("product.media.size > 1","group-hover:gp-opacity-0")),D=()=>`
2
2
  {% case featureMedia.media_type %}
3
3
  {% when 'image' %}
4
4
  ${B()}
5
5
  {% when 'external_video' %}
6
6
  {% assign mediaSourceVideo = featureMedia | external_video_url %}
7
- ${H()}
7
+ ${F()}
8
8
  {% when 'video' %}
9
9
  {% assign mediaSourceVideo = featureMedia.sources.last.url %}
10
- ${F()}
10
+ ${H()}
11
11
  {% when 'model' %}
12
12
  ${V()}
13
13
  {% else %}
14
14
  ${J()}
15
15
  {% endcase %}
16
- `,V=()=>$({src:h("featureMedia.sources.first.url contains '.glb'","{{ featureMedia.sources.first.url }}","{{featureMedia.sources.last.url}}"),alt:"{{featureMedia.preview_image.alt}}",poster:"{{featureMedia.preview_image.src | product_img_url: '1024x1024'}}",cameraControls:!0,arStatus:"not-presenting",style:{width:"100%"},aspectRatio:O}),H=()=>I({src:"{{mediaSourceVideo}}",alt:"{{featureMedia.alt | escape}}",autoplay:!1,allowfullscreen:!0,controls:!0,style:{width:"100%",height:"100%"},aspectRatio:O}),F=()=>{let e=_({...t({ftLayout:j?.ftLayout,ftShape:j?.ftShape}),...u("objf",j?.ftLayout)}),a=_({...t({ftLayout:j?.ftLayout,ftShape:j?.ftShape})});return v({src:"{{mediaSourceVideo}}",title:"{{featureMedia.alt | escape}}",autoplay:!1,controls:!0,thumbnail:"{{featureMedia.preview_image.src | product_img_url: '1024x1024'}}",isCheckLoaded:!0,wrapperStyles:a,poster:{altText:"{{featureMedia.alt | escape}}"},style:{width:"100%","max-height":"100%",...e},className:"gp-invisible"})},B=()=>l`
17
- ${G(m("gp-w-full gp-transition-opacity",A,"{{shouldHidden}}"))}
18
- ${f(j?.hoverEffect!=="none",`<div class="${m("zoom-element !gp-max-w-none",a())}">
16
+ `,V=()=>$({src:h("featureMedia.sources.first.url contains '.glb'","{{ featureMedia.sources.first.url }}","{{featureMedia.sources.last.url}}"),alt:"{{featureMedia.preview_image.alt}}",poster:"{{featureMedia.preview_image.src | product_img_url: '1024x1024'}}",cameraControls:!0,arStatus:"not-presenting",style:{width:"100%"},aspectRatio:O}),F=()=>I({src:"{{mediaSourceVideo}}",alt:"{{featureMedia.alt | escape}}",autoplay:!1,allowfullscreen:!0,controls:!0,style:{width:"100%",height:"100%"},aspectRatio:O}),H=()=>{let e=_({...t({ftLayout:T?.ftLayout,ftShape:T?.ftShape}),...o("objf",T?.ftLayout)}),a=_({...t({ftLayout:T?.ftLayout,ftShape:T?.ftShape})}),i=c({liquidSrc:"featureMedia.preview_image",sizeTarget:"ProductFeatureImage",qualityType:T.qualityType,qualityPercent:T.qualityPercent});return v({src:"{{mediaSourceVideo}}",title:"{{featureMedia.alt | escape}}",autoplay:!1,controls:!0,thumbnail:"{{featureMedia.preview_image.src | product_img_url: '1024x1024'}}",thumbnailImage:{srcset:i&&h("featureMedia.preview_image != blank",i)},isCheckLoaded:!0,wrapperStyles:a,poster:{altText:"{{featureMedia.alt | escape}}",preload:T?.preload},style:{width:"100%","max-height":"100%",...e},className:"gp-invisible"})},B=()=>m`
17
+ ${G(u("gp-w-full gp-transition-opacity",A,"{{shouldHidden}}"))}
18
+ ${f(T?.hoverEffect!=="none",`<div class="${u("zoom-element !gp-max-w-none",a())}">
19
19
  ${G("image-zoom",!0)}
20
20
  </div>`," ")}
21
- ${f(j?.hoverEffect=="zoom"&&j?.zoomType=="glasses",`<div class="${m("zoom-lens-element",i())}" style="opacity: 0; background-image: url('{{ featureMedia.src | img_url: "1024x1024"}}')"></div>`," ")}
22
- `,G=(e,a)=>l`
21
+ ${f(T?.hoverEffect=="zoom"&&T?.zoomType=="glasses",`<div class="${u("zoom-lens-element",i())}" style="opacity: 0; background-image: url('{{ featureMedia.src | img_url: "1024x1024"}}')"></div>`," ")}
22
+ `,G=(e,a)=>{let i=c({liquidSrc:"src",sizeTarget:"ProductFeatureImage",qualityType:T.qualityType,qualityPercent:T.qualityPercent});return m`
23
23
  {% assign src = featureMedia.src %}
24
- ${f(a&&"other"==j.hoverEffect,`{% assign media_length = product.media | size %}
25
- {% assign other_image_index = ${j.otherImage} | plus: 0 %}
24
+ ${f(a&&"other"==T.hoverEffect,`{% assign media_length = product.media | size %}
25
+ {% assign other_image_index = ${T.otherImage} | plus: 0 %}
26
26
  {% if other_image_index >= media_length %}
27
27
  {% assign other_image_index = media_length | minus: 1 %}
28
28
  {% endif %}
29
29
  {% assign otherImage = product.media[other_image_index] %}
30
30
  ${h("otherImage.media_type != 'image'","{% assign src = otherImage.preview_image.src %}","{% assign src = otherImage.src %}")}
31
31
  `)}
32
- ${b({srcIsLiquidCode:!0,src:h("src != null",d("src"),"https://cdn.shopify.com/s/assets/no-image-2048-5e88c1b20e087fb7bbe9a3771824e743c244f437e4f8ba93bbf7b11b53f7824c_large.gif"),id:h("featureMedia != null","{{featureMedia.id}}"),width:"{{featureMedia.width}}",height:"{{featureMedia.height}}",alt:"{{featureMedia.alt | escape}}",srcset:`${d("src")}`,baseSrc:"{{src | image_url}}",sizes:"(max-width: 768px) 50vw, 100vw",setting:{layout:j?.ftLayout,aspectRatio:O,qualityType:j?.qualityType,qualityPercent:j?.qualityPercent},priority:j?.preload,className:`gp-w-full gp-h-full gp-absolute gp-top-0 gp-left-0 featured-image-only gp-cursor-pointer !gp-rounded-none ${e??""}`,pageContext:z})}`,J=()=>l`
33
- ${b({srcIsLiquidCode:!0,src:"https://cdn.shopify.com/s/assets/no-image-2048-5e88c1b20e087fb7bbe9a3771824e743c244f437e4f8ba93bbf7b11b53f7824c_large.gif",alt:"No Image",sizes:"(max-width: 768px) 50vw, 100vw",setting:{layout:j?.ftLayout,aspectRatio:O,qualityType:j?.qualityType,qualityPercent:j?.qualityPercent},priority:j?.preload,className:"gp-w-full gp-h-full gp-absolute gp-top-0 gp-left-0 featured-image-only gp-cursor-pointer !gp-rounded-none",pageContext:z})}`,K=s(j.ftShape),Q=e(j),U="gp-featured-image-wrapper",X=h("product.media.size > 0",`{% assign largestRatio = 0 %}
32
+ ${w({srcIsLiquidCode:!0,src:h("src != null","{{src | image_url}}","https://cdn.shopify.com/s/assets/no-image-2048-5e88c1b20e087fb7bbe9a3771824e743c244f437e4f8ba93bbf7b11b53f7824c_large.gif"),id:h("featureMedia != null","{{featureMedia.id}}"),width:"{{featureMedia.width}}",height:"{{featureMedia.height}}",alt:"{{featureMedia.alt | escape}}",srcset:i&&h("src != null",i),setting:{layout:T?.ftLayout,aspectRatio:O,qualityType:T?.qualityType,qualityPercent:T?.qualityPercent},priority:T?.preload,className:`gp-w-full gp-h-full gp-absolute gp-top-0 gp-left-0 featured-image-only gp-cursor-pointer !gp-rounded-none ${e??""}`})}`},J=()=>m`
33
+ ${w({srcIsLiquidCode:!0,src:"https://cdn.shopify.com/s/assets/no-image-2048-5e88c1b20e087fb7bbe9a3771824e743c244f437e4f8ba93bbf7b11b53f7824c_large.gif",alt:"No Image",setting:{layout:T?.ftLayout,aspectRatio:O,qualityType:T?.qualityType,qualityPercent:T?.qualityPercent},priority:T?.preload,className:"gp-w-full gp-h-full gp-absolute gp-top-0 gp-left-0 featured-image-only gp-cursor-pointer !gp-rounded-none"})}`,K=s(T.ftShape),Q=e(T),U="gp-featured-image-wrapper",X=h("product.media.size > 0",`{% assign largestRatio = 0 %}
34
34
  ${y("featureMedia in product.media",`
35
35
  ${h("featureMedia.media_type == 'video' and featureMedia.preview_image",`{% assign height = featureMedia.preview_image.height | times: 1.0 %}
36
36
  {% assign width = featureMedia.preview_image.width | times: 1.0 %}`,`{% assign height = featureMedia.height | times: 1.0 %}
@@ -47,22 +47,22 @@ import{checkRenderFeaturedCarousel as e,getZoomImageClass as a,getZoomLenClass a
47
47
  {% else %}
48
48
  {% assign productImageWidth = featureMedia.preview_image.width %}
49
49
  {% endcase %}`)}
50
- ${p({id:"{{section.id}}-{{imageID}}",contentType:"productImage",className:`${P("gp-ft-image-item !gp-min-w-full !gp-max-w-full ")}`,parentId:`ft-${q}-{{section.id}}-{{product.id}}`,style:k,customStyle:{width:"{{productImageWidth}}px"},children:`
50
+ ${l({id:"{{section.id}}-{{imageID}}",contentType:"productImage",className:`${z("gp-ft-image-item !gp-min-w-full !gp-max-w-full ")}`,parentId:`ft-${x}-{{section.id}}-{{product.id}}`,style:N,customStyle:{width:"{{productImageWidth}}px"},children:`
51
51
  <div
52
- class="gp-w-full gp-relative ${h("featureMedia == null or featureMedia.media_type == 'image'","{{ 'gp-h-0' }}","{{ 'gp-h-full !gp-pb-0' }}")} ${h("featureMedia.media_type == 'video' or featureMedia.media_type == 'external_video'",`{{ '${o}' }}`)}"
53
- style="${x(u("pb",K))}"
52
+ class="gp-w-full gp-relative ${h("featureMedia == null or featureMedia.media_type == 'image'","{{ 'gp-h-0' }}","{{ 'gp-h-full !gp-pb-0' }}")} ${h("featureMedia.media_type == 'video' or featureMedia.media_type == 'external_video'",`{{ '${d}' }}`)}"
53
+ style="${q(o("pb",K))}"
54
54
  >
55
55
  ${D()}
56
56
  </div>
57
57
  `})}`)}
58
- `,b({src:"https://cdn.shopify.com/s/assets/no-image-2048-5e88c1b20e087fb7bbe9a3771824e743c244f437e4f8ba93bbf7b11b53f7824c_large.gif",id:"noImageError",width:"480",height:"480",alt:"no image",priority:j?.preload,setting:{layout:j?.ftLayout,aspectRatio:O,qualityType:j?.qualityType,qualityPercent:j?.qualityPercent},style:{height:"100%"},className:"gp-w-full featured-image-only !gp-rounded-none",customLazyload:!0,pageContext:z}));return M(`
58
+ `,w({src:"https://cdn.shopify.com/s/assets/no-image-2048-5e88c1b20e087fb7bbe9a3771824e743c244f437e4f8ba93bbf7b11b53f7824c_large.gif",id:"noImageError",width:"480",height:"480",alt:"no image",priority:T?.preload,setting:{layout:T?.ftLayout,aspectRatio:O,qualityType:T?.qualityType,qualityPercent:T?.qualityPercent},style:{height:"100%"},className:"gp-w-full featured-image-only !gp-rounded-none"}));return M(`
59
59
  {% capture featureImageOnlyOne %}
60
60
  ${M(`
61
61
  {% assign featureMedia = variant.featured_media %}
62
62
  {% unless featureMedia %}
63
63
  {% assign featureMedia = product.featured_media %}
64
64
  {% endunless %}
65
- ${h("product.media.size > 1",(()=>{switch(j?.preDisplay){case"1st-images":return`
65
+ ${h("product.media.size > 1",(()=>{switch(T?.preDisplay){case"1st-images":return`
66
66
  {% assign featureMedia = product.media.first %}
67
67
  `;case"1st-3d-mode":return y("media in product.media",h("media.media_type == 'model'","{% assign featureMedia = media %}{% break %}"));case"1st-video":return y("media in product.media",h("media.media_type == 'video' or media.media_type == 'external_video'","{% assign featureMedia = media %}{% break %}"));default:return`
68
68
  {% assign featureMedia = variant.featured_media %}
@@ -85,23 +85,23 @@ import{checkRenderFeaturedCarousel as e,getZoomImageClass as a,getZoomLenClass a
85
85
  ${h("featureMedia == null","{% assign productImageWidth = 1600 %}")}
86
86
  <div
87
87
  class='gp-feature-image-carousel gp-feature-image-only'
88
- style="${x(W)}"
88
+ style="${q(W)}"
89
89
  >
90
90
  <div
91
91
  class="gp-relative"
92
- style="${x(N)}"
92
+ style="${q(k)}"
93
93
  >
94
94
  ${S}
95
95
  <div
96
96
  type="gp-feature-image-only"
97
97
  product-id="{{product.id}}"
98
98
  product-media="{{product.media.size}}"
99
- class="${R(U)}"
100
- style="${x(C)}"
99
+ class="${L(U)}"
100
+ style="${q(C)}"
101
101
  >
102
102
  <div
103
103
  class="gp-w-full gp-relative ${h("featureMedia == null or featureMedia.media_type == 'image'","{{ 'gp-h-0' }}","{{ 'gp-h-full !gp-pb-0' }}")}"
104
- style="${x(u("pb",K))} ${h("featureMedia.media_type == 'video' or featureMedia.media_type == 'external_video'","{{ 'display: flex; align-items: center; justify-content: center' }}")}"
104
+ style="${q(o("pb",K))} ${h("featureMedia.media_type == 'video' or featureMedia.media_type == 'external_video'","{{ 'display: flex; align-items: center; justify-content: center' }}")}"
105
105
  >
106
106
  ${D()}
107
107
  </div>
@@ -112,8 +112,8 @@ import{checkRenderFeaturedCarousel as e,getZoomImageClass as a,getZoomLenClass a
112
112
  {% endcapture %}
113
113
  ${h("product.media.size > 1",`
114
114
  ${f(Q,`
115
- ${n({builderProps:{uid:q},rootId:`ft-${q}-{{section.id}}-{{product.id}}`,conditionAppendJs:"product.media.size > 1",wrapperClass:U,rootClass:`${L}`,rootAttrs:{type:"gp-feature-image-carousel","product-id":"{{product.id}}","product-media":"{{product.media.size}}"},isHiddenArrowWhenDisabled:!0,setting:E,rootStyles:W,styles:T,style:{playSpeed:600},disableMarginAuto:!0,children:X,productBadgeLiquid:S||"",carouselType:"feature_image"})}
115
+ ${g({builderProps:{uid:x},rootId:`ft-${x}-{{section.id}}-{{product.id}}`,conditionAppendJs:"product.media.size > 1",wrapperClass:U,rootClass:`${j}`,rootAttrs:{type:"gp-feature-image-carousel","product-id":"{{product.id}}","product-media":"{{product.media.size}}"},isHiddenArrowWhenDisabled:!0,setting:E,rootStyles:W,styles:R,style:{playSpeed:600},disableMarginAuto:!0,children:X,productBadgeLiquid:S||"",carouselType:"feature_image"})}
116
116
  `," ")}
117
117
  ${f(!Q,"{{ featureImageOnlyOne }}"," ")}
118
118
  `,"{{ featureImageOnlyOne }}")}
119
- `)};export{q as default};
119
+ `)};export{x as default};
@@ -1 +1 @@
1
- import{jsx as e,Fragment as o,jsxs as t}from"react/jsx-runtime";import r from"../../../../../carousel-v3/components/item/CarouselItem.js";import s from"../../../../../carousel-v3/components/root/Carousel.js";import{getProductImagesClassName as m}from"../../composables/getProductImagesClassName.js";import{getProductImagesStyles as i}from"../../composables/getProductImagesStyles.js";import{getProductImagesAttr as a}from"../../composables/getProductImagesAttr.js";import{getEditorMinHeightClass as l}from"../../common/productGallery.js";import{useGalleryCarousel as n}from"../../hooks/useGalleryCarousel.js";import{isFeatureMedia as c}from"../../common/productFeaturedImage.js";import p from"../../../../../image/components/NextImage.js";import d from"../lightbox/ButtonOpenLightBox.js";import{getAspectRatio as u,getGalleryCarouselRootId as g}from"../../common/common.js";import{useCurrentDevice as y}from"@gem-sdk/core";import h from"../child/MediaIcon.js";import{If as f}from"@gem-sdk/system";let j=j=>{let{builderPropUID:I,productImages:C,onSwiperReady:b,activeIndexFormFeatureImage:P,onClickFeatureArrow:T,builderPropsClass:v,carouselInstanceUID:w,arrow:x,priorityFeatureImage:k,...q}=j,N=y(),{galleryItemClasses:A}=m(q),{galleryCarouselSettingAttrs:G}=a(q),{galleryCarouselStyle:S,galleryCarouselItemStyle:$}=i(q),{moveToIdx:B,isDisplay:H,shapeByLayout:L,isEnableBorderActive:M,isShowButtonLightbox:R,filteredProductImages:D,handleClickCarouselItem:E,safeMoveToIdx:F,setSliderReady:O}=n(j);return e(o,{children:H&&e(s,{parentClass:v,rootClass:v,setting:G,styles:S,slidesClass:l(N,q.position,q.navigationPosition),builderProps:{uid:`${I}-carousel`},rootId:g({carouselInstanceUID:w,builderPropUID:I}),moveToIdx:F,isHiddenArrowWhenDisabled:!0,disableMarginAuto:!0,isEnableCheckHasScrollableContent:!0,onLoaded:e=>{e&&O(!0)},onSwiperReady:b,children:D?.map((o,s)=>{let m=c(o.contentType)?o.previewImage:o.src;return t(r,{contentType:"productImage",className:A(`gp-gallery-image-item gem-slider-item-${I} ${s===B&&M?"gem-slider-item-active":""}`),onClickItem:()=>E(o?.id),style:$,"data-id":o?.id,children:[e(p,{draggable:"false",src:m,width:o?.width,height:o?.height,alt:o?.alt,setting:{aspectRatio:u(L),layout:q?.layout,qualityPercent:q?.qualityPercent,qualityType:q?.qualityType},style:{width:"100%",height:"100%",cursor:"pointer"},className:"product-list-image"}),e(h,{contentType:o?.contentType||""}),f(R,e(d,{}))]},o?.id)})})})};export{j as default};
1
+ import{jsx as e,Fragment as o,jsxs as t}from"react/jsx-runtime";import r from"../../../../../carousel-v3/components/item/CarouselItem.js";import s from"../../../../../carousel-v3/components/root/Carousel.js";import{getProductImagesClassName as i}from"../../composables/getProductImagesClassName.js";import{getProductImagesStyles as m}from"../../composables/getProductImagesStyles.js";import{getProductImagesAttr as a}from"../../composables/getProductImagesAttr.js";import{getEditorMinHeightClass as l}from"../../common/productGallery.js";import{useGalleryCarousel as n}from"../../hooks/useGalleryCarousel.js";import{isFeatureMedia as c}from"../../common/productFeaturedImage.js";import p from"../../../../../image/components/NextImage.js";import d from"../lightbox/ButtonOpenLightBox.js";import{getAspectRatio as u,getGalleryCarouselRootId as g}from"../../common/common.js";import{useCurrentDevice as y}from"@gem-sdk/core";import h from"../child/MediaIcon.js";import{If as f}from"@gem-sdk/system";let j=j=>{let{builderPropUID:I,productImages:C,onSwiperReady:b,activeIndexFormFeatureImage:P,onClickFeatureArrow:T,builderPropsClass:w,carouselInstanceUID:v,arrow:x,priorityFeatureImage:k,...q}=j,A=y(),{galleryItemClasses:G}=i(q),{galleryCarouselSettingAttrs:N}=a(q),{galleryCarouselStyle:L,galleryCarouselItemStyle:S}=m(q),{moveToIdx:$,isDisplay:B,shapeByLayout:H,isEnableBorderActive:M,isShowButtonLightbox:R,filteredProductImages:z,handleClickCarouselItem:D,safeMoveToIdx:E,setSliderReady:F}=n(j);return e(o,{children:B&&e(s,{parentClass:w,rootClass:w,setting:N,styles:L,slidesClass:l(A,q.position,q.navigationPosition),builderProps:{uid:`${I}-carousel`},rootId:g({carouselInstanceUID:v,builderPropUID:I}),moveToIdx:E,isHiddenArrowWhenDisabled:!0,disableMarginAuto:!0,isEnableCheckHasScrollableContent:!0,onLoaded:e=>{e&&F(!0)},onSwiperReady:b,children:z?.map((o,s)=>{let i=c(o.contentType)?o.previewImage:o.src;return t(r,{contentType:"productImage",className:G(`gp-gallery-image-item gem-slider-item-${I} ${s===$&&M?"gem-slider-item-active":""}`),onClickItem:()=>D(o?.id),style:S,"data-id":o?.id,children:[e(p,{sizeTarget:"GalleryList",listAware:!0,src:i,width:o?.width,height:o?.height,alt:o?.alt,setting:{aspectRatio:u(H),layout:q?.layout,qualityPercent:q?.qualityPercent,qualityType:q?.qualityType},style:{width:"100%",height:"100%",cursor:"pointer"},className:"product-list-image"}),e(h,{contentType:o?.contentType||""}),f(R,e(d,{}))]},o?.id)})})})};export{j as default};