@gem-sdk/components 19.1.0-staging.9 → 20.0.0

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 (303) hide show
  1. package/dist/cjs/accordion/components/Accordion.liquid.js +5 -4
  2. package/dist/cjs/accordion/next.js +1 -1
  3. package/dist/cjs/article/components/ArticleContent.js +2 -2
  4. package/dist/cjs/article/components/ArticleExcerpt.js +1 -1
  5. package/dist/cjs/article/components/ArticleList.js +1 -1
  6. package/dist/cjs/article/index.js +1 -1
  7. package/dist/cjs/article/next.js +1 -1
  8. package/dist/cjs/breadcrumb/next.js +1 -1
  9. package/dist/cjs/button/components/Button.liquid.js +14 -14
  10. package/dist/cjs/button/next.js +1 -1
  11. package/dist/cjs/carousel/components/root/Carousel.liquid.js +4 -5
  12. package/dist/cjs/carousel/components/root/common/helpers.js +1 -1
  13. package/dist/cjs/carousel/next.js +1 -1
  14. package/dist/cjs/carousel-v3/components/root/Carousel.liquid.js +5 -6
  15. package/dist/cjs/carousel-v3/components/root/CarouselEmbla.liquid.js +5 -6
  16. package/dist/cjs/carousel-v3/components/root/common/helpers.js +1 -1
  17. package/dist/cjs/carousel-v3/next.js +1 -1
  18. package/dist/cjs/cart/components/CartList.js +1 -1
  19. package/dist/cjs/cart/components/shop-pay-button/ShopPayButton.liquid.js +2 -2
  20. package/dist/cjs/cart/index.js +1 -1
  21. package/dist/cjs/cart/next.js +1 -1
  22. package/dist/cjs/code/next.js +1 -1
  23. package/dist/cjs/collection/components/collection-description/CollectionDescription.liquid.js +8 -7
  24. package/dist/cjs/collection/components/collection-paginator/CollectionPaginator.liquid.js +3 -4
  25. package/dist/cjs/collection/components/collection-toolbar/CollectionToolbar.liquid.js +1 -1
  26. package/dist/cjs/collection/next.js +1 -1
  27. package/dist/cjs/common/const.js +1 -1
  28. package/dist/cjs/countdown-timer/components/Countdown.liquid.js +15 -16
  29. package/dist/cjs/countdown-timer/next.js +1 -1
  30. package/dist/cjs/coupon/next.js +1 -1
  31. package/dist/cjs/dialog/index.js +1 -1
  32. package/dist/cjs/dialog/next.js +1 -1
  33. package/dist/cjs/estimate-delivery/next.js +1 -1
  34. package/dist/cjs/form/components/form-dropdown/FormDropdown.liquid.js +10 -10
  35. package/dist/cjs/form/next.js +1 -1
  36. package/dist/cjs/grid/components/row/Row.liquid.js +3 -8
  37. package/dist/cjs/grid/components/row/common/helpers.js +1 -1
  38. package/dist/cjs/grid/components/section/Section.js +1 -1
  39. package/dist/cjs/grid/index.js +1 -1
  40. package/dist/cjs/header/components/kind/basic/index.js +1 -1
  41. package/dist/cjs/header/components/kind/modern/index.js +1 -1
  42. package/dist/cjs/header/index.js +1 -1
  43. package/dist/cjs/header/next.js +1 -1
  44. package/dist/cjs/hero-banner/common/helpers.js +1 -1
  45. package/dist/cjs/hero-banner/components/HeroBanner.liquid.js +3 -3
  46. package/dist/cjs/hero-banner/components/HeroBannerItem.js +1 -1
  47. package/dist/cjs/hero-banner/index.js +1 -1
  48. package/dist/cjs/hero-banner/next.js +1 -1
  49. package/dist/cjs/icon/next.js +1 -1
  50. package/dist/cjs/icon-list/next.js +1 -1
  51. package/dist/cjs/icon-list-hoz/next.js +1 -1
  52. package/dist/cjs/icon-list-v2/components/IconList.liquid.js +7 -7
  53. package/dist/cjs/icon-list-v2/next.js +1 -1
  54. package/dist/cjs/image-comparison/components/CompareImage.liquid.js +6 -6
  55. package/dist/cjs/image-comparison/next.js +1 -1
  56. package/dist/cjs/image-detection/next.js +1 -1
  57. package/dist/cjs/input/next.js +1 -1
  58. package/dist/cjs/line/next.js +1 -1
  59. package/dist/cjs/link/next.js +1 -1
  60. package/dist/cjs/marquee/components/Marquee.liquid.js +21 -21
  61. package/dist/cjs/marquee/next.js +1 -1
  62. package/dist/cjs/menu/next.js +1 -1
  63. package/dist/cjs/modal/next.js +1 -1
  64. package/dist/cjs/pagination/next.js +1 -1
  65. package/dist/cjs/post-purchase/advanced-list/next.js +1 -1
  66. package/dist/cjs/post-purchase/button/next.js +1 -1
  67. package/dist/cjs/post-purchase/buyer-consent/next.js +1 -1
  68. package/dist/cjs/post-purchase/callout-banner/components/CalloutBox.js +1 -1
  69. package/dist/cjs/post-purchase/callout-banner/index.js +1 -1
  70. package/dist/cjs/post-purchase/callout-banner/next.js +1 -1
  71. package/dist/cjs/post-purchase/countdown-timer/next.js +1 -1
  72. package/dist/cjs/post-purchase/image/next.js +1 -1
  73. package/dist/cjs/post-purchase/line/next.js +1 -1
  74. package/dist/cjs/post-purchase/link/next.js +1 -1
  75. package/dist/cjs/post-purchase/product/components/product-offer/components/ProductOffer.js +1 -1
  76. package/dist/cjs/post-purchase/product/components/product-offer/components/ProductOfferItem.js +1 -1
  77. package/dist/cjs/post-purchase/product/index.js +1 -1
  78. package/dist/cjs/post-purchase/product/next.js +1 -1
  79. package/dist/cjs/post-purchase/text/next.js +1 -1
  80. package/dist/cjs/product/components/ProductImages.liquid.js +9 -9
  81. package/dist/cjs/product/components/dynamic-checkout/Button.liquid.js +9 -9
  82. package/dist/cjs/product/components/file-upload/UploadFile.liquid.js +3 -2
  83. package/dist/cjs/product/components/product-badge/ProductBadge.js +1 -1
  84. package/dist/cjs/product/components/product-badge/ProductBadge.liquid.js +5 -5
  85. package/dist/cjs/product/components/product-bundle/ProductBundleDiscount.liquid.js +3 -4
  86. package/dist/cjs/product/components/product-button/ProductButton.liquid.js +7 -8
  87. package/dist/cjs/product/components/product-description/ProductDescription.liquid.js +2 -2
  88. package/dist/cjs/product/components/product-discount-tag/ProductDiscountTag.js +1 -1
  89. package/dist/cjs/product/components/product-discount-tag/ProductDiscountTag.liquid.js +5 -5
  90. package/dist/cjs/product/components/product-images-v2/ProductImagesV2.liquid.js +9 -9
  91. package/dist/cjs/product/components/product-images-v2/components/child/ProductFeaturedImageOnly.js +1 -1
  92. package/dist/cjs/product/components/product-images-v3/ProductImagesV3.liquid.js +6 -6
  93. package/dist/cjs/product/components/product-images-v3/ProductImagesV3Embla.liquid.js +9 -9
  94. package/dist/cjs/product/components/product-images-v3/components/child/ProductFeaturedImageOnly.js +1 -1
  95. package/dist/cjs/product/components/product-list/ProductList.js +1 -1
  96. package/dist/cjs/product/components/product-list/ProductListCarouselItem.liquid.js +6 -5
  97. package/dist/cjs/product/components/product-list/ProductListGridItem.liquid.js +8 -7
  98. package/dist/cjs/product/components/product-list/ProductListGridLayout.liquid.js +4 -6
  99. package/dist/cjs/product/components/product-list-v3/ProductList.js +1 -1
  100. package/dist/cjs/product/components/product-list-v3/ProductListCarouselItem.liquid.js +6 -6
  101. package/dist/cjs/product/components/product-list-v3/ProductListGridItem.liquid.js +8 -7
  102. package/dist/cjs/product/components/product-list-v3/ProductListGridLayout.liquid.js +4 -6
  103. package/dist/cjs/product/components/product-list-v3/common/helpers.js +1 -1
  104. package/dist/cjs/product/components/product-price/ProductPrice.liquid.js +4 -4
  105. package/dist/cjs/product/components/product-quick-view/ProductQuickView.js +1 -1
  106. package/dist/cjs/product/components/product-sku/Sku.liquid.js +3 -4
  107. package/dist/cjs/product/components/product-title/ProductTitle.liquid.js +8 -7
  108. package/dist/cjs/product/components/product-variants/ProductVariants.liquid.js +29 -29
  109. package/dist/cjs/product/components/product-wrap/Product.js +1 -1
  110. package/dist/cjs/product/components/product-wrap/Product.liquid.js +9 -9
  111. package/dist/cjs/product/components/product-wrap/hook/useProductSetting.js +1 -1
  112. package/dist/cjs/product/index.js +1 -1
  113. package/dist/cjs/product/next.js +1 -1
  114. package/dist/cjs/radio/next.js +1 -1
  115. package/dist/cjs/select/next.js +1 -1
  116. package/dist/cjs/shop-pay-installment/next.js +1 -1
  117. package/dist/cjs/sticky/components/Sticky.liquid.js +5 -4
  118. package/dist/cjs/sticky/index.js +1 -1
  119. package/dist/cjs/sticky/next.js +1 -1
  120. package/dist/cjs/stock-counter/next.js +1 -1
  121. package/dist/cjs/tab/components/Tabs.liquid.js +6 -7
  122. package/dist/cjs/tab/next.js +1 -1
  123. package/dist/cjs/text/components/Text.liquid.js +3 -3
  124. package/dist/cjs/textarea/next.js +1 -1
  125. package/dist/cjs/third-party/next.js +1 -1
  126. package/dist/cjs/third-party/settings/AppstleBundlesDiscounts/index.js +2 -2
  127. package/dist/cjs/third-party/settings/BoldSubscriptions/index.js +1 -1
  128. package/dist/cjs/third-party/settings/BoldSubscriptions/uiV2.js +1 -1
  129. package/dist/cjs/third-party/settings/GloColorSwatchvariantImage/index.js +1 -1
  130. package/dist/cjs/third-party/settings/HextomCountdownTimerBar/index.js +2 -2
  131. package/dist/cjs/third-party/settings/LoopSubscriptions/index.js +1 -1
  132. package/dist/cjs/third-party/settings/LoopSubscriptions/uiV2.js +1 -1
  133. package/dist/cjs/third-party/settings/RechargeSubscriptions/index.js +1 -1
  134. package/dist/cjs/third-party/settings/SeoantTrustBadgesIcon/uiV2.js +1 -1
  135. package/dist/cjs/third-party/settings/ShopifyForms/uiV2.js +1 -1
  136. package/dist/cjs/third-party/settings/SkioSubscriptionsYcS20/index.js +2 -2
  137. package/dist/cjs/third-party/settings/SproutPlantTreesGrowSales/index.js +1 -1
  138. package/dist/cjs/third-party/settings/TrustshopProductReviews/index.js +2 -2
  139. package/dist/cjs/third-party/settings/WcWishlistBackInStock/index.js +2 -2
  140. package/dist/cjs/third-party-instant/next.js +1 -1
  141. package/dist/cjs/third-party-slot/next.js +1 -1
  142. package/dist/cjs/video/components/LiteVimeoEmbed.liquid.js +7 -8
  143. package/dist/cjs/video/components/LiteYouTubeEmbed.liquid.js +4 -5
  144. package/dist/cjs/video/next.js +1 -1
  145. package/dist/esm/accordion/components/Accordion.liquid.js +9 -8
  146. package/dist/esm/accordion/next.js +1 -1
  147. package/dist/esm/article/components/ArticleContent.js +2 -2
  148. package/dist/esm/article/components/ArticleExcerpt.js +1 -1
  149. package/dist/esm/article/components/ArticleList.js +1 -1
  150. package/dist/esm/article/index.js +1 -1
  151. package/dist/esm/article/next.js +1 -1
  152. package/dist/esm/breadcrumb/next.js +1 -1
  153. package/dist/esm/button/components/Button.liquid.js +23 -23
  154. package/dist/esm/button/next.js +1 -1
  155. package/dist/esm/carousel/components/root/Carousel.liquid.js +3 -4
  156. package/dist/esm/carousel/components/root/common/helpers.js +1 -1
  157. package/dist/esm/carousel/next.js +1 -1
  158. package/dist/esm/carousel-v3/components/root/Carousel.liquid.js +3 -4
  159. package/dist/esm/carousel-v3/components/root/CarouselEmbla.liquid.js +3 -4
  160. package/dist/esm/carousel-v3/components/root/common/helpers.js +1 -1
  161. package/dist/esm/carousel-v3/next.js +1 -1
  162. package/dist/esm/cart/components/CartList.js +1 -1
  163. package/dist/esm/cart/components/shop-pay-button/ShopPayButton.liquid.js +2 -2
  164. package/dist/esm/cart/index.js +1 -1
  165. package/dist/esm/cart/next.js +1 -1
  166. package/dist/esm/code/next.js +1 -1
  167. package/dist/esm/collection/components/collection-description/CollectionDescription.liquid.js +7 -6
  168. package/dist/esm/collection/components/collection-paginator/CollectionPaginator.liquid.js +3 -4
  169. package/dist/esm/collection/components/collection-toolbar/CollectionToolbar.liquid.js +3 -3
  170. package/dist/esm/collection/next.js +1 -1
  171. package/dist/esm/common/const.js +1 -1
  172. package/dist/esm/countdown-timer/components/Countdown.liquid.js +20 -21
  173. package/dist/esm/countdown-timer/next.js +1 -1
  174. package/dist/esm/coupon/next.js +1 -1
  175. package/dist/esm/dialog/index.js +1 -1
  176. package/dist/esm/dialog/next.js +1 -1
  177. package/dist/esm/estimate-delivery/next.js +1 -1
  178. package/dist/esm/form/components/form-dropdown/FormDropdown.liquid.js +9 -9
  179. package/dist/esm/form/next.js +1 -1
  180. package/dist/esm/grid/components/row/Row.liquid.js +3 -8
  181. package/dist/esm/grid/components/row/common/helpers.js +1 -1
  182. package/dist/esm/grid/components/section/Section.js +1 -1
  183. package/dist/esm/grid/index.js +1 -1
  184. package/dist/esm/header/components/kind/basic/index.js +1 -1
  185. package/dist/esm/header/components/kind/modern/index.js +1 -1
  186. package/dist/esm/header/index.js +1 -1
  187. package/dist/esm/header/next.js +1 -1
  188. package/dist/esm/hero-banner/common/helpers.js +1 -1
  189. package/dist/esm/hero-banner/components/HeroBanner.liquid.js +5 -5
  190. package/dist/esm/hero-banner/components/HeroBannerItem.js +1 -1
  191. package/dist/esm/hero-banner/index.js +1 -1
  192. package/dist/esm/hero-banner/next.js +1 -1
  193. package/dist/esm/icon/next.js +1 -1
  194. package/dist/esm/icon-list/next.js +1 -1
  195. package/dist/esm/icon-list-hoz/next.js +1 -1
  196. package/dist/esm/icon-list-v2/components/IconList.liquid.js +7 -7
  197. package/dist/esm/icon-list-v2/next.js +1 -1
  198. package/dist/esm/image-comparison/components/CompareImage.liquid.js +7 -7
  199. package/dist/esm/image-comparison/next.js +1 -1
  200. package/dist/esm/image-detection/next.js +1 -1
  201. package/dist/esm/input/next.js +1 -1
  202. package/dist/esm/line/next.js +1 -1
  203. package/dist/esm/link/next.js +1 -1
  204. package/dist/esm/marquee/components/Marquee.liquid.js +21 -21
  205. package/dist/esm/marquee/next.js +1 -1
  206. package/dist/esm/menu/next.js +1 -1
  207. package/dist/esm/modal/next.js +1 -1
  208. package/dist/esm/pagination/next.js +1 -1
  209. package/dist/esm/post-purchase/advanced-list/next.js +1 -1
  210. package/dist/esm/post-purchase/button/next.js +1 -1
  211. package/dist/esm/post-purchase/buyer-consent/next.js +1 -1
  212. package/dist/esm/post-purchase/callout-banner/components/CalloutBox.js +1 -1
  213. package/dist/esm/post-purchase/callout-banner/index.js +1 -1
  214. package/dist/esm/post-purchase/callout-banner/next.js +1 -1
  215. package/dist/esm/post-purchase/countdown-timer/next.js +1 -1
  216. package/dist/esm/post-purchase/image/next.js +1 -1
  217. package/dist/esm/post-purchase/line/next.js +1 -1
  218. package/dist/esm/post-purchase/link/next.js +1 -1
  219. package/dist/esm/post-purchase/product/components/product-offer/components/ProductOffer.js +1 -1
  220. package/dist/esm/post-purchase/product/components/product-offer/components/ProductOfferItem.js +1 -1
  221. package/dist/esm/post-purchase/product/index.js +1 -1
  222. package/dist/esm/post-purchase/product/next.js +1 -1
  223. package/dist/esm/post-purchase/text/next.js +1 -1
  224. package/dist/esm/product/components/ProductImages.liquid.js +12 -12
  225. package/dist/esm/product/components/dynamic-checkout/Button.liquid.js +14 -14
  226. package/dist/esm/product/components/file-upload/UploadFile.liquid.js +4 -3
  227. package/dist/esm/product/components/product-badge/ProductBadge.js +1 -1
  228. package/dist/esm/product/components/product-badge/ProductBadge.liquid.js +6 -6
  229. package/dist/esm/product/components/product-bundle/ProductBundleDiscount.liquid.js +7 -8
  230. package/dist/esm/product/components/product-button/ProductButton.liquid.js +6 -7
  231. package/dist/esm/product/components/product-description/ProductDescription.liquid.js +4 -4
  232. package/dist/esm/product/components/product-discount-tag/ProductDiscountTag.js +1 -1
  233. package/dist/esm/product/components/product-discount-tag/ProductDiscountTag.liquid.js +8 -8
  234. package/dist/esm/product/components/product-images-v2/ProductImagesV2.liquid.js +12 -12
  235. package/dist/esm/product/components/product-images-v2/components/child/ProductFeaturedImageOnly.js +1 -1
  236. package/dist/esm/product/components/product-images-v3/ProductImagesV3.liquid.js +12 -12
  237. package/dist/esm/product/components/product-images-v3/ProductImagesV3Embla.liquid.js +14 -14
  238. package/dist/esm/product/components/product-images-v3/components/child/ProductFeaturedImageOnly.js +1 -1
  239. package/dist/esm/product/components/product-list/ProductList.js +1 -1
  240. package/dist/esm/product/components/product-list/ProductListCarouselItem.liquid.js +6 -5
  241. package/dist/esm/product/components/product-list/ProductListGridItem.liquid.js +8 -7
  242. package/dist/esm/product/components/product-list/ProductListGridLayout.liquid.js +7 -9
  243. package/dist/esm/product/components/product-list-v3/ProductList.js +1 -1
  244. package/dist/esm/product/components/product-list-v3/ProductListCarouselItem.liquid.js +6 -6
  245. package/dist/esm/product/components/product-list-v3/ProductListGridItem.liquid.js +8 -7
  246. package/dist/esm/product/components/product-list-v3/ProductListGridLayout.liquid.js +7 -9
  247. package/dist/esm/product/components/product-list-v3/common/helpers.js +1 -1
  248. package/dist/esm/product/components/product-price/ProductPrice.liquid.js +3 -3
  249. package/dist/esm/product/components/product-quick-view/ProductQuickView.js +1 -1
  250. package/dist/esm/product/components/product-sku/Sku.liquid.js +5 -6
  251. package/dist/esm/product/components/product-title/ProductTitle.liquid.js +6 -5
  252. package/dist/esm/product/components/product-variants/ProductVariants.liquid.js +44 -44
  253. package/dist/esm/product/components/product-wrap/Product.js +1 -1
  254. package/dist/esm/product/components/product-wrap/Product.liquid.js +6 -6
  255. package/dist/esm/product/components/product-wrap/hook/useProductSetting.js +1 -1
  256. package/dist/esm/product/index.js +1 -1
  257. package/dist/esm/product/next.js +1 -1
  258. package/dist/esm/radio/next.js +1 -1
  259. package/dist/esm/select/next.js +1 -1
  260. package/dist/esm/shop-pay-installment/next.js +1 -1
  261. package/dist/esm/sticky/components/Sticky.liquid.js +12 -11
  262. package/dist/esm/sticky/index.js +1 -1
  263. package/dist/esm/sticky/next.js +1 -1
  264. package/dist/esm/stock-counter/next.js +1 -1
  265. package/dist/esm/tab/components/Tabs.liquid.js +11 -12
  266. package/dist/esm/tab/next.js +1 -1
  267. package/dist/esm/text/components/Text.liquid.js +3 -3
  268. package/dist/esm/textarea/next.js +1 -1
  269. package/dist/esm/third-party/next.js +1 -1
  270. package/dist/esm/third-party/settings/AppstleBundlesDiscounts/index.js +2 -2
  271. package/dist/esm/third-party/settings/BoldSubscriptions/index.js +1 -1
  272. package/dist/esm/third-party/settings/BoldSubscriptions/uiV2.js +1 -1
  273. package/dist/esm/third-party/settings/GloColorSwatchvariantImage/index.js +1 -1
  274. package/dist/esm/third-party/settings/HextomCountdownTimerBar/index.js +2 -2
  275. package/dist/esm/third-party/settings/LoopSubscriptions/index.js +1 -1
  276. package/dist/esm/third-party/settings/LoopSubscriptions/uiV2.js +1 -1
  277. package/dist/esm/third-party/settings/RechargeSubscriptions/index.js +1 -1
  278. package/dist/esm/third-party/settings/SeoantTrustBadgesIcon/uiV2.js +1 -1
  279. package/dist/esm/third-party/settings/ShopifyForms/uiV2.js +1 -1
  280. package/dist/esm/third-party/settings/SkioSubscriptionsYcS20/index.js +2 -2
  281. package/dist/esm/third-party/settings/SproutPlantTreesGrowSales/index.js +1 -1
  282. package/dist/esm/third-party/settings/TrustshopProductReviews/index.js +2 -2
  283. package/dist/esm/third-party/settings/WcWishlistBackInStock/index.js +2 -2
  284. package/dist/esm/third-party-instant/next.js +1 -1
  285. package/dist/esm/third-party-slot/next.js +1 -1
  286. package/dist/esm/video/components/LiteVimeoEmbed.liquid.js +3 -4
  287. package/dist/esm/video/components/LiteYouTubeEmbed.liquid.js +4 -5
  288. package/dist/esm/video/next.js +1 -1
  289. package/package.json +5 -5
  290. package/dist/cjs/product/components/product-list-v3/constants/index.js +0 -1
  291. package/dist/cjs/product/components/product-list-v3/hooks/useCollectionQuery.js +0 -1
  292. package/dist/cjs/product/components/product-list-v3/hooks/useMainRelatedProductQuery.js +0 -1
  293. package/dist/cjs/product/components/product-list-v3/hooks/useProductRelatedQuery.js +0 -1
  294. package/dist/cjs/product/components/product-list-v3/hooks/useProductsQuery.js +0 -1
  295. package/dist/cjs/product/components/product-list-v3/hooks/useRelatedProductIDAssigned.js +0 -1
  296. package/dist/cjs/product/components/product-wrap/hook/useProductQuery.js +0 -1
  297. package/dist/esm/product/components/product-list-v3/constants/index.js +0 -1
  298. package/dist/esm/product/components/product-list-v3/hooks/useCollectionQuery.js +0 -1
  299. package/dist/esm/product/components/product-list-v3/hooks/useMainRelatedProductQuery.js +0 -1
  300. package/dist/esm/product/components/product-list-v3/hooks/useProductRelatedQuery.js +0 -1
  301. package/dist/esm/product/components/product-list-v3/hooks/useProductsQuery.js +0 -1
  302. package/dist/esm/product/components/product-list-v3/hooks/useRelatedProductIDAssigned.js +0 -1
  303. package/dist/esm/product/components/product-wrap/hook/useProductQuery.js +0 -1
@@ -1 +1 @@
1
- import o from"next/dynamic";import t from"../../common/components/Loading.js";import"react/jsx-runtime";import"react";import"@gem-sdk/core";import"../../common/const.js";let n=o(()=>import("./components/ProductTitle.js"),{loading:t}),r=o(()=>import("./components/ProductDescription.js"),{ssr:!1,loading:t}),i=o(()=>import("./components/ProductPrice.js"),{loading:t}),c=o(()=>import("./components/product-variant/components/ProductVariant.js"),{loading:t}),m=o(()=>import("./components/AcceptButton.js"),{loading:t}),p=o(()=>import("./components/ProductQuantity.js"),{loading:t}),s=o(()=>import("./components/product-subscription/ProductSubscription.js"),{loading:t}),e=o(()=>import("./components/ProductPriceBreakdown.js"),{loading:t}),d=o(()=>import("./components/product-offer/components/ProductOffer.js"),{loading:t}),a=o(()=>import("./components/ProductDiscountTag.js"),{loading:t}),u=o(()=>import("./components/product-image/index.js"),{loading:t});var g={PostPurchaseProductTitle:n,PostPurchaseProductDescription:r,PostPurchaseProductPrice:i,PostPurchaseProductVariants:c,PostPurchaseAcceptButton:m,PostPurchaseProductQuantity:p,PostPurchaseProductPriceBreakdown:e,PostPurchaseProductOffer:d,PostPurchaseProductDiscountTag:a,PostPurchaseProductImages:u,PostPurchaseProductSubscription:s};export{g as default};
1
+ import o from"next/dynamic";import t from"../../common/components/Loading.js";import"react/jsx-runtime";import"react";import"@gem-sdk/core";let n=o(()=>import("./components/ProductTitle.js"),{loading:t}),r=o(()=>import("./components/ProductDescription.js"),{ssr:!1,loading:t}),i=o(()=>import("./components/ProductPrice.js"),{loading:t}),c=o(()=>import("./components/product-variant/components/ProductVariant.js"),{loading:t}),p=o(()=>import("./components/AcceptButton.js"),{loading:t}),m=o(()=>import("./components/ProductQuantity.js"),{loading:t}),s=o(()=>import("./components/product-subscription/ProductSubscription.js"),{loading:t}),e=o(()=>import("./components/ProductPriceBreakdown.js"),{loading:t}),d=o(()=>import("./components/product-offer/components/ProductOffer.js"),{loading:t}),a=o(()=>import("./components/ProductDiscountTag.js"),{loading:t}),u=o(()=>import("./components/product-image/index.js"),{loading:t});var g={PostPurchaseProductTitle:n,PostPurchaseProductDescription:r,PostPurchaseProductPrice:i,PostPurchaseProductVariants:c,PostPurchaseAcceptButton:p,PostPurchaseProductQuantity:m,PostPurchaseProductPriceBreakdown:e,PostPurchaseProductOffer:d,PostPurchaseProductDiscountTag:a,PostPurchaseProductImages:u,PostPurchaseProductSubscription:s};export{g as default};
@@ -1 +1 @@
1
- import o from"next/dynamic";import t from"../../common/components/Loading.js";import"react/jsx-runtime";import"react";import"@gem-sdk/core";import"../../common/const.js";let m=o(()=>import("./components/Text.js"),{loading:t}),r=o(()=>import("./components/Text.js"),{loading:t});var e={PostPurchaseText:m,PostPurchaseHeading:r};export{e as default};
1
+ import o from"next/dynamic";import t from"../../common/components/Loading.js";import"react/jsx-runtime";import"react";import"@gem-sdk/core";let m=o(()=>import("./components/Text.js"),{loading:t}),e=o(()=>import("./components/Text.js"),{loading:t});var r={PostPurchaseText:m,PostPurchaseHeading:e};export{r as default};
@@ -1,9 +1,9 @@
1
- import{cls as t,makeStyle as e,RenderIf as i,isLocalEnv as r,baseAssetURL as s,template as o,getResponsiveValueByScreen as l}from"@gem-sdk/core";import{getFlexDirection as a}from"../helpers/product-image.js";import{checkAddOverFlowClass as p,getStyleAlignment as d,getDisplayStyle as m}from"./product-images/common/helpers.js";import g from"./product-images/ProductFeaturedImage.liquid.js";import u from"./product-images/ProductGalleryCarousel.liquid.js";import c from"./product-images/ProductGalleryGrid.liquid.js";import{getStyleGallerySpacing as n,getStyleWidthForGallery as f}from"./product-images/common/productGallery.js";import{getSettingPreloadData as y}from"../../helpers.js";let b=b=>{let{setting:j,styles:$,builderProps:h,style:v}=b,S={...b.styles,...b.setting},w={...b.styles,...b.setting},x=t=>l($?.position,t),I=`
1
+ import{cls as e,makeStyle as t,RenderIf as i,isLocalEnv as r,baseAssetURL as s,template as o,getResponsiveValueByScreen as l}from"@gem-sdk/core";import{getFlexDirection as a}from"../helpers/product-image.js";import{checkAddOverFlowClass as p,getStyleAlignment as d,getDisplayStyle as m}from"./product-images/common/helpers.js";import g from"./product-images/ProductFeaturedImage.liquid.js";import u from"./product-images/ProductGalleryCarousel.liquid.js";import c from"./product-images/ProductGalleryGrid.liquid.js";import{getStyleGallerySpacing as f,getStyleWidthForGallery as n}from"./product-images/common/productGallery.js";import{getSettingPreloadData as b}from"../../helpers.js";let y=y=>{let{setting:$,styles:j,builderProps:h,style:v}=y,S={...y.styles,...y.setting},w={...y.styles,...y.setting},x=e=>l(j?.position,e),I=`
2
2
  {
3
3
  "id":${JSON.stringify(h?.uid)},
4
- "setting":${JSON.stringify(j)},
5
- "styles":${JSON.stringify($)},
6
- "product":{{ product | json }}
4
+ "setting":${JSON.stringify($)},
5
+ "styles":${JSON.stringify(j)},
6
+ "product":{{ product | json | escape }}
7
7
  }
8
8
  `;return o`
9
9
  {% assign featured_image = product.featured_image %}
@@ -11,19 +11,19 @@ import{cls as t,makeStyle as e,RenderIf as i,isLocalEnv as r,baseAssetURL as s,t
11
11
  {% assign featured_image = variant.featured_image %}
12
12
  {%- endif -%}
13
13
  <gp-product-images
14
+ gp-data='${I}'
14
15
  style="${{...v}}"
15
- class="${t({"gp-overflow-hidden":p(v)})}"
16
+ class="${e({"gp-overflow-hidden":p(v)})}"
16
17
  >
17
- <script gp-data type="application/json">${I}</script>
18
18
  <div
19
- class="${t("gp-flex gp-w-full",{...a(b)})}"
20
- style="${{...d($?.align,$?.position)}}"
19
+ class="${e("gp-flex gp-w-full",{...a(y)})}"
20
+ style="${{...d(j?.align,j?.position)}}"
21
21
  >
22
22
  ${g({...S})}
23
23
  {%- if product.media.size > 1 -%}
24
24
  <div
25
- class="${t("gallery-wrapper gp-product-images-gallery gp-inline-flex gp-h-fit gp-max-w-full",{"gp-justify-start":"bottom-left"==x("desktop"),"tablet:gp-justify-start":"bottom-left"==x("tablet"),"mobile:gp-justify-start":"bottom-left"==x("mobile"),"gp-justify-center":"bottom-center"==x("desktop"),"tablet:gp-justify-center":"bottom-center"==x("tablet"),"mobile:gp-justify-center":"bottom-center"==x("mobile"),"gp-mx-auto":"bottom-center"==x("desktop"),"tablet:gp-mx-auto":"bottom-center"==x("tablet"),"mobile:gp-mx-auto":"bottom-center"==x("mobile")})}"
26
- style="${{...e({fs:"1.23"}),...m(t=>!!j?.galleryVisible&&!l(j?.galleryVisible,t),"inline-flex"),...f({galleryVisible:j?.galleryVisible,featureImageVisible:j?.featureImageVisible,position:$?.position,width:$?.width,widthHorizontalLayout:$?.widthHorizontalLayout}),...n($?.position,$?.gallerySpacing)}}"
25
+ class="${e("gallery-wrapper gp-product-images-gallery gp-inline-flex gp-h-fit gp-max-w-full",{"gp-justify-start":"bottom-left"==x("desktop"),"tablet:gp-justify-start":"bottom-left"==x("tablet"),"mobile:gp-justify-start":"bottom-left"==x("mobile"),"gp-justify-center":"bottom-center"==x("desktop"),"tablet:gp-justify-center":"bottom-center"==x("tablet"),"mobile:gp-justify-center":"bottom-center"==x("mobile"),"gp-mx-auto":"bottom-center"==x("desktop"),"tablet:gp-mx-auto":"bottom-center"==x("tablet"),"mobile:gp-mx-auto":"bottom-center"==x("mobile")})}"
26
+ style="${{...t({fs:"1.23"}),...m(e=>!!$?.galleryVisible&&!l($?.galleryVisible,e),"inline-flex"),...n({galleryVisible:$?.galleryVisible,featureImageVisible:$?.featureImageVisible,position:j?.position,width:j?.width,widthHorizontalLayout:j?.widthHorizontalLayout}),...f(j?.position,j?.gallerySpacing)}}"
27
27
  >
28
28
  ${u({builderPropUID:h?.uid,...w})}
29
29
  ${c({builderPropUID:h?.uid,...w})}
@@ -31,5 +31,5 @@ import{cls as t,makeStyle as e,RenderIf as i,isLocalEnv as r,baseAssetURL as s,t
31
31
  {%- endif -%}
32
32
  </div>
33
33
  </gp-product-images>
34
- ${i(r,`<script ${y('class="gps-link" delay',"src")}="{{ 'gp-product-images.js' | asset_url }}" defer="defer"></script>`,`<script ${y('class="gps-link" delay',"src")}="${s}/assets-v2/gp-product-images.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
35
- `};export{b as default};
34
+ ${i(r,`<script ${b('class="gps-link" delay',"src")}="{{ 'gp-product-images.js' | asset_url }}" defer="defer"></script>`,`<script ${b('class="gps-link" delay',"src")}="${s}/assets-v2/gp-product-images.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
35
+ `};export{y as default};
@@ -1,20 +1,20 @@
1
- import{dataStringify as t,isLocalEnv as s,baseAssetURL as a,template as i}from"@gem-sdk/core";import{createClass as e,createStateOrContext as o,Liquid as n,LiquidFor as r,If as l}from"@gem-sdk/system";import{getSettingPreloadData as p}from"../../../helpers.js";import{getButtonClasses as d}from"./common/classes.js";import{getButtonStyles as m}from"./common/styles.js";let c=({setting:c,advanced:u,styles:y,builderProps:_,className:g=""})=>{let f=e({...!!g&&{[g]:!0},...d({styles:y,uid:_?.uid})}),$=m({styles:y,uid:_?.uid}),v=o({setting:{label:c?.label},totalVariant:"{{total_combinations}}"});return i`
2
- ${n("{%- assign total_combinations = 1 -%}")}
3
- ${r("option in product.options_with_values","{%- assign total_combinations = total_combinations | times: option.values.size -%}")}
4
- ${n(`
1
+ import{isLocalEnv as t,baseAssetURL as s,template as a}from"@gem-sdk/core";import{createClass as i,createStateOrContext as e,Liquid as o,LiquidFor as n,If as l}from"@gem-sdk/system";import{getSettingPreloadData as r}from"../../../helpers.js";import{getButtonClasses as d}from"./common/classes.js";import{getButtonStyles as p}from"./common/styles.js";let m=({setting:m,advanced:c,styles:u,builderProps:y,className:g=""})=>{let _=i({...!!g&&{[g]:!0},...d({styles:u,uid:y?.uid})}),f=p({styles:u,uid:y?.uid}),$=e({setting:{label:m?.label},totalVariant:"{{total_combinations}}"});return a`
2
+ ${o("{%- assign total_combinations = 1 -%}")}
3
+ ${n("option in product.options_with_values","{%- assign total_combinations = total_combinations | times: option.values.size -%}")}
4
+ ${o(`
5
5
  {%- liquid
6
6
  assign inventory_quantity = variant.inventory_quantity | default: 0
7
7
  assign supported_payment_methods = shop.enabled_payment_types
8
8
  -%}
9
9
  `)}
10
- <gp-product-dynamic data-id="${_?.uid}" data-translate-label='${c?.label}' class="${u?.cssClass}">
11
- <script gp-data type="application/json">${t(v)}</script>
12
- <div class="${f}">
13
- {{ form | payment_button }}
14
- </div>
15
- {% style %}
16
- ${$}
17
- {% endstyle %}
10
+ <gp-product-dynamic data-id="${y?.uid}" data-translate-label='${m?.label}' class="${c?.cssClass}" gp-data='${JSON.stringify($).replaceAll("'","&#039;")}
11
+ '>
12
+ <div class="${_}">
13
+ {{ form | payment_button }}
14
+ </div>
15
+ {% style %}
16
+ ${f}
17
+ {% endstyle %}
18
18
  </gp-product-dynamic>
19
- ${l(s,`<script ${p('class="gps-link" delay',"src")}="{{ 'gp-product-dynamic-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${p('class="gps-link" delay',"src")}="${a}/assets-v2/gp-product-dynamic-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
20
- `};export{c as default};
19
+ ${l(t,`<script ${r('class="gps-link" delay',"src")}="{{ 'gp-product-dynamic-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${r('class="gps-link" delay',"src")}="${s}/assets-v2/gp-product-dynamic-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
20
+ `};export{m as default};
@@ -1,6 +1,7 @@
1
- import{template as e,RenderIf as s,isLocalEnv as i,baseAssetURL as l}from"@gem-sdk/core";import{getSettingPreloadData as r}from"../../../helpers.js";import{createClass as t,createStyle as d,createAttr as o,createStateOrContext as a,If as c}from"@gem-sdk/system";import{createLayoutClasses as v,createTypoClasses as f,createPreviewClasses as p,createPreviewItemClasses as m,createPreviewRemoveClasses as $,createMessageClasses as n,createContentWidthClasses as u,createInputClasses as g,composeClasses as y,createWrapContainerClasses as b,createIconContentClasses as j}from"./common/classes.js";import{createLayoutStyles as E,createTypoStyles as H,createMessageStyles as S,createContainerStyles as h,createWrapContentWidthStyles as k,createContentWithStyles as q,createIconContainerStyles as w,createIconContentStyles as F}from"./common/style.js";import{getInputAttr as O}from"./common/attr.js";import{removeHoverStyles as x,getDisplayText as R}from"./common/helpers.js";let I=({setting:I,styles:P,builderProps:C,pageContext:J})=>{let L=t(v(I,C?.uid)),N=d({...x(E(I,P),P?.enableHoverEffect)}),U=t(f(P)),V=d({...x(H(P),P?.enableHoverEffect)}),_=t(p()),z=t(m()),A=t($()),B=t(n()),D=d(S()),G=t(u()),K=t(g()),M=t(y("gp-flex gp-items-center")),Q=o({...O(I?.isRequired,I?.numberOfFiles)}),T=d({...x(h(P?.align,P?.textColor),P?.enableHoverEffect)}),W=d({...x(k(I),P?.enableHoverEffect)}),X=t(b(C?.uid)),Y=d({...x(q(I,P),P?.enableHoverEffect)}),Z=d({...x(w(I),P?.enableHoverEffect)}),ee=t(j()),es=d({...x(F(I,P),P?.enableHoverEffect)}),ei=R("Liquid",{uid:C?.uid,setting:I,styles:P,pageContext:J}),el=a({settings:{isShowPreviewImage:I?.isShowPreviewImage,numberOfFiles:I?.numberOfFiles,isRequired:I?.isRequired}});return e`
2
- <gp-file-upload>
3
- <script gp-data type="application/json">${JSON.stringify(el)}</script>
1
+ import{template as e,RenderIf as s,isLocalEnv as i,baseAssetURL as l}from"@gem-sdk/core";import{getSettingPreloadData as r}from"../../../helpers.js";import{createClass as t,createStyle as d,createAttr as o,createStateOrContext as a,If as c}from"@gem-sdk/system";import{createLayoutClasses as v,createTypoClasses as f,createPreviewClasses as m,createPreviewItemClasses as p,createPreviewRemoveClasses as $,createMessageClasses as n,createContentWidthClasses as u,createInputClasses as g,composeClasses as y,createWrapContainerClasses as b,createIconContentClasses as j}from"./common/classes.js";import{createLayoutStyles as E,createTypoStyles as H,createMessageStyles as S,createContainerStyles as h,createWrapContentWidthStyles as k,createContentWithStyles as q,createIconContainerStyles as w,createIconContentStyles as F}from"./common/style.js";import{getInputAttr as O}from"./common/attr.js";import{removeHoverStyles as x,getDisplayText as R}from"./common/helpers.js";let I=({setting:I,styles:P,builderProps:C,pageContext:J})=>{let L=t(v(I,C?.uid)),N=d({...x(E(I,P),P?.enableHoverEffect)}),U=t(f(P)),V=d({...x(H(P),P?.enableHoverEffect)}),_=t(m()),z=t(p()),A=t($()),B=t(n()),D=d(S()),G=t(u()),K=t(g()),M=t(y("gp-flex gp-items-center")),Q=o({...O(I?.isRequired,I?.numberOfFiles)}),T=d({...x(h(P?.align,P?.textColor),P?.enableHoverEffect)}),W=d({...x(k(I),P?.enableHoverEffect)}),X=t(b(C?.uid)),Y=d({...x(q(I,P),P?.enableHoverEffect)}),Z=d({...x(w(I),P?.enableHoverEffect)}),ee=t(j()),es=d({...x(F(I,P),P?.enableHoverEffect)}),ei=R("Liquid",{uid:C?.uid,setting:I,styles:P,pageContext:J}),el=a({settings:{isShowPreviewImage:I?.isShowPreviewImage,numberOfFiles:I?.numberOfFiles,isRequired:I?.isRequired}});return e`
2
+ <gp-file-upload
3
+ gp-data='${JSON.stringify(el)}'
4
+ >
4
5
  <div class="${X}" style="${T}">
5
6
  <input ${Q} class="${K}">
6
7
  <div class="${M}" style="${W}">
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- import{jsxs as e,jsx as s}from"react/jsx-runtime";import{useI18nStore as m,useProduct as o,useCurrentVariant as t,useMoneyFormat as r,useCurrentDevice as i,useProductBundleDiscount as l,useEditorMode as c,useRenderMode as a,usePageType as n,useSafeGetProductListSettings as d,filterToolbarPreview as p}from"@gem-sdk/core";import{getBadgeContent as h,getIsNoDiscountState as y}from"./utils/common.js";import"./constants.js";import f from"../../../common/components/NoDataState.js";import N from"../../../common/components/TooltipHover.js";import"../../../common/const.js";import{createClass as j,createStyle as u,createAttr as g,If as v}from"@gem-sdk/system";import{getEditTooltipAttrs as T,getSubWrapperAttrs as k,getContainerAttrs as x,getTextContentAttrs as C,getImageAttr as H}from"./common/attrs.js";import{getContainerClasses as S,getWrapperClasses as b,getSubWrapperClass as w,getTextContainerClasses as A,getTextWrapperClasses as B,getTextContentClasses as D,getImageContainerClasses as I,getImageClasses as M}from"./common/classes.js";import{getContainerStyle as P,getSubWrapperStyle as q,getContentStyleInternal as z,getTextBadgeWrapperStyles as E,getTextContentStyle as F,getImageContainerStyles as G}from"./common/styles.js";let J=J=>{let{t:K}=m(),{setting:L,styles:O,children:Q,builderAttrs:R,...U}=J,V=o(),W=t(),{moneyFormat:X}=r(),Y=i(),{useProductCompareAtPrice:Z}=l(),$=U?.["bundle-item"],_=c(),{isEditMode:ee}=a(),es="STATIC"===n(),{settings:em}=d(),eo=em?.sameHeight,et=h({detail:V,currentVariant:W,bundleItem:$,useProductCompareAtPrice:Z},L?.displayContent,X),er=y({props:J,product:V,currentVariant:W,moneyFormat:X,useProductCompareAtPrice:Z}),ei=j({...S({mode:_,isInstant:es,product:V,currentVariant:W,props:J,isSameHeightInProductList:eo})}),el=u({...P(J)}),ec=g({...T(J,ee)}),ea=j({...b(J)}),en=j({...w(J,Y)}),ed=u({...q({props:J,product:V,currentVariant:W,isEditMode:ee})}),ep=g({...k(J,V)}),eh=z(J),ey=j({...A()}),ef=g({...x(J)}),eN=j({...B()}),ej=u({...E({setting:L,styles:O})}),eu=j({...D(O)}),eg=u({...F({setting:L,styles:O})}),ev=g({...C()}),eT=j({...I()}),ek=u({...G({setting:L,styles:O})}),ex=j({...M()}),eC=g({...H({setting:L})});return V?e("div",{...ef,style:el,className:ei,children:[v(ee&&er,s(N,{...ec,children:s(f,{...R,elementType:"secondary",description:K("No discount"),rawMode:!0})}),s("div",{className:ea,children:e("div",{...ep,className:en,style:ed,children:[s("style",{children:eh}),v(L?.shape!=="image",s("div",{className:ey,children:s("div",{className:eN,style:ej,children:s("pre",{...ev,className:eu,style:eg,children:et})})}),s("div",{className:eT,style:ek,children:s("img",{...eC,className:ex,alt:""})}))]})})),p(Q,!0)]}):null};export{J as default};
2
+ import{jsxs as e,jsx as s}from"react/jsx-runtime";import{useI18nStore as m,useProduct as o,useCurrentVariant as t,useMoneyFormat as r,useCurrentDevice as i,useProductBundleDiscount as l,useEditorMode as a,useRenderMode as c,usePageType as n,useSafeGetProductListSettings as d,filterToolbarPreview as p}from"@gem-sdk/core";import{getBadgeContent as h,getIsNoDiscountState as y}from"./utils/common.js";import"./constants.js";import f from"../../../common/components/NoDataState.js";import N from"../../../common/components/TooltipHover.js";import{createClass as j,createStyle as u,createAttr as g,If as v}from"@gem-sdk/system";import{getEditTooltipAttrs as T,getSubWrapperAttrs as k,getContainerAttrs as x,getTextContentAttrs as C,getImageAttr as H}from"./common/attrs.js";import{getContainerClasses as S,getWrapperClasses as b,getSubWrapperClass as w,getTextContainerClasses as A,getTextWrapperClasses as B,getTextContentClasses as D,getImageContainerClasses as I,getImageClasses as M}from"./common/classes.js";import{getContainerStyle as P,getSubWrapperStyle as q,getContentStyleInternal as z,getTextBadgeWrapperStyles as E,getTextContentStyle as F,getImageContainerStyles as G}from"./common/styles.js";let J=J=>{let{t:K}=m(),{setting:L,styles:O,children:Q,builderAttrs:R,...U}=J,V=o(),W=t(),{moneyFormat:X}=r(),Y=i(),{useProductCompareAtPrice:Z}=l(),$=U?.["bundle-item"],_=a(),{isEditMode:ee}=c(),es="STATIC"===n(),{settings:em}=d(),eo=em?.sameHeight,et=h({detail:V,currentVariant:W,bundleItem:$,useProductCompareAtPrice:Z},L?.displayContent,X),er=y({props:J,product:V,currentVariant:W,moneyFormat:X,useProductCompareAtPrice:Z}),ei=j({...S({mode:_,isInstant:es,product:V,currentVariant:W,props:J,isSameHeightInProductList:eo})}),el=u({...P(J)}),ea=g({...T(J,ee)}),ec=j({...b(J)}),en=j({...w(J,Y)}),ed=u({...q({props:J,product:V,currentVariant:W,isEditMode:ee})}),ep=g({...k(J,V)}),eh=z(J),ey=j({...A()}),ef=g({...x(J)}),eN=j({...B()}),ej=u({...E({setting:L,styles:O})}),eu=j({...D(O)}),eg=u({...F({setting:L,styles:O})}),ev=g({...C()}),eT=j({...I()}),ek=u({...G({setting:L,styles:O})}),ex=j({...M()}),eC=g({...H({setting:L})});return V?e("div",{...ef,style:el,className:ei,children:[v(ee&&er,s(N,{...ea,children:s(f,{...R,elementType:"secondary",description:K("No discount"),rawMode:!0})}),s("div",{className:ec,children:e("div",{...ep,className:en,style:ed,children:[s("style",{children:eh}),v(L?.shape!=="image",s("div",{className:ey,children:s("div",{className:eN,style:ej,children:s("pre",{...ev,className:eu,style:eg,children:et})})}),s("div",{className:eT,style:ek,children:s("img",{...eC,className:ex,alt:""})}))]})})),p(Q,!0)]}):null};export{J as default};
@@ -1,14 +1,14 @@
1
- import{sanitizeLiquid as e,dataStringify as t,RenderIf as s,template as i,isLocalEnv as r,baseAssetURL as a}from"@gem-sdk/core";import{getDynamicSourceLocales as o,getSettingPreloadData as c}from"../../../helpers.js";import{generateBadgeContent as n}from"./utils/generateLiquidContent.js";import{renderBadgeInFirstTime as p}from"./utils/renderBadgeLiquid.js";import{createClass as d,createStyle as l,createAttr as u,createStateOrContext as m}from"@gem-sdk/system";import{IS_LIQUID as g}from"./constants.js";import{getContainerStyle as y,getSubWrapperStyle as $,getContentStyleInternal as v,getTextBadgeWrapperStyles as f,getTextContentStyle as j,getImageContainerStyles as P}from"./common/styles.js";import{getContainerClasses as S,getWrapperClasses as D,getSubWrapperClass as V,getTextContainerClasses as b,getTextWrapperClasses as h,getTextContentClasses as C,getImageContainerClasses as I,getImageClasses as L}from"./common/classes.js";import{getSubWrapperAttrs as T,getContainerAttrs as k,getTextContentAttrs as q,getImageAttr as E}from"./common/attrs.js";import{checkDiscountContentProductBadge as K}from"./utils/common.js";import{ProductBadge as N}from"../../settings/product-badge/configs/translate.js";let _=_=>{let{styles:A,setting:B,builderProps:O,pageContext:Q}=_,w=B?.shape!=="image",G=w&&B?.displayContent?.trim()==="",H=K(B?.displayContent),J=d({...S({isInstant:!1,props:_})}),x=l({...y(_,g)}),M=d({...D(_)}),R=d({...V(_)}),Y=l({...$({props:_})}),z=u({...T(_)}),F=v(_),U=d({...b()}),W=u({...k(_)}),X=d({...h()}),Z=l({...f({setting:B,styles:A})}),ee=d({...C(A)}),et=l({...j({setting:B,styles:A})}),es=u({...q()}),ei=d({...I()}),er=l({...P({setting:B,styles:A})}),ea=d({...L()}),eo=u({...E({setting:B})}),ec=m({minPrice:"{{ minPriceValue | replace: '\"', '\\\"' | escape }}",variantIDs:'{{ product.variants | map: "id" | json | escape }}',variantInventoryQuantities:'{{ product.variants | map: "inventory_quantity" | json | escape }}',amountDiscount:"{{amountDiscountValue | replace: '\"', '\\\"' | escape }}",percentDiscount:"{{percentDiscountValue}}",price:"{{price}}",displayTrigger:JSON.parse(JSON.stringify(B?.displayTrigger)),uid:_.builderProps?.uid,productCreatedAt:'{{product.created_at | date: "%Y-%m-%d" }}',productTags:"{{ product.tags | join: \",\" | replace: '\"', '\\\"' | escape }}",isTextBadge:w,isSettingSameHeightProductList:"{{ isSettingSameHeightProductList }}"}),{displayContent:en}=B??{},ep=o({val:en?.trim(),uid:O?.uid,settingId:N?.displayContent?.id,isLiquid:!0,pageContext:Q});return i`
1
+ import{dataStringify as e,sanitizeLiquid as t,RenderIf as s,template as i,isLocalEnv as r,baseAssetURL as a}from"@gem-sdk/core";import{getDynamicSourceLocales as o,getSettingPreloadData as c}from"../../../helpers.js";import{generateBadgeContent as n}from"./utils/generateLiquidContent.js";import{renderBadgeInFirstTime as d}from"./utils/renderBadgeLiquid.js";import{createClass as p,createStyle as l,createAttr as u,createStateOrContext as m}from"@gem-sdk/system";import{IS_LIQUID as g}from"./constants.js";import{getContainerStyle as y,getSubWrapperStyle as $,getContentStyleInternal as v,getTextBadgeWrapperStyles as f,getTextContentStyle as j,getImageContainerStyles as P}from"./common/styles.js";import{getContainerClasses as S,getWrapperClasses as D,getSubWrapperClass as V,getTextContainerClasses as b,getTextWrapperClasses as h,getTextContentClasses as C,getImageContainerClasses as I,getImageClasses as L}from"./common/classes.js";import{getSubWrapperAttrs as T,getContainerAttrs as k,getTextContentAttrs as q,getImageAttr as A}from"./common/attrs.js";import{checkDiscountContentProductBadge as E}from"./utils/common.js";import{ProductBadge as K}from"../../settings/product-badge/configs/translate.js";let N=N=>{let{styles:_,setting:B,builderProps:O,pageContext:Q}=N,w=B?.shape!=="image",G=w&&B?.displayContent?.trim()==="",H=E(B?.displayContent),J=p({...S({isInstant:!1,props:N})}),x=l({...y(N,g)}),M=p({...D(N)}),R=p({...V(N)}),Y=l({...$({props:N})}),z=u({...T(N)}),F=v(N),U=p({...b()}),W=u({...k(N)}),X=p({...h()}),Z=l({...f({setting:B,styles:_})}),ee=p({...C(_)}),et=l({...j({setting:B,styles:_})}),es=u({...q()}),ei=p({...I()}),er=l({...P({setting:B,styles:_})}),ea=p({...L()}),eo=u({...A({setting:B})}),ec=m({minPrice:"{{ minPriceValue | replace: '\"', '\\\"' | escape }}",variantIDs:'{{ product.variants | map: "id" | json | escape }}',variantInventoryQuantities:'{{ product.variants | map: "inventory_quantity" | json | escape }}',amountDiscount:"{{amountDiscountValue | replace: '\"', '\\\"' | escape }}",percentDiscount:"{{percentDiscountValue}}",price:"{{price}}",displayTrigger:JSON.parse(JSON.stringify(B?.displayTrigger).replaceAll("'","&#039;")),uid:N.builderProps?.uid,productCreatedAt:'{{product.created_at | date: "%Y-%m-%d" }}',productTags:"{{ product.tags | join: \",\" | replace: '\"', '\\\"' | escape }}",isTextBadge:w,isSettingSameHeightProductList:"{{ isSettingSameHeightProductList }}"}),{displayContent:en}=B??{},ed=o({val:en?.trim(),uid:O?.uid,settingId:K?.displayContent?.id,isLiquid:!0,pageContext:Q});return i`
2
2
  {% if product %}
3
- ${n(ep,Q?.isPreviewing)}
4
- ${p(B?.displayTrigger,!G,H)}
3
+ ${n(ed,Q?.isPreviewing)}
4
+ ${d(B?.displayTrigger,!G,H)}
5
5
  <gp-product-badge
6
6
  ${{...W}}
7
+ gp-data='${e(ec)}'
7
8
  class="${J} {{ className }}"
8
9
  style="${x}"
9
- data-display-content="${Q?.isPreviewing?ep:e(`{{${ep}}}`)}"
10
+ data-display-content="${Q?.isPreviewing?ed:t(`{{${ed}}}`)}"
10
11
  >
11
- <script gp-data type="application/json">${t(ec)}</script>
12
12
  <div class="${M}">
13
13
  <div
14
14
  ${{...z}}
@@ -36,4 +36,4 @@ import{sanitizeLiquid as e,dataStringify as t,RenderIf as s,template as i,isLoca
36
36
  </gp-product-badge>
37
37
  ${s(r,`<script ${c('class="gps-link" delay',"src")}="{{ 'gp-product-badge-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${c('class="gps-link" delay',"src")}="${a}/assets-v2/gp-product-badge-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
38
38
  {% endif %}
39
- `};export{_ as default};
39
+ `};export{N as default};
@@ -1,16 +1,15 @@
1
- import{template as t,RenderIf as e,isLocalEnv as s,baseAssetURL as r}from"@gem-sdk/core";import{getSettingPreloadData as a}from"../../../helpers.js";import{createStyle as d,createClass as o,createStateOrContext as p,Liquid as i,LiquidIf as n}from"@gem-sdk/system";import{getSizeSettings as l,getContainerStyles as c}from"./common/styles.js";import{getContainerClasses as u}from"./common/classes.js";import m from"./ProductBundleDiscountChildrenItem.liquid.js";let f=({rawChildren:f,setting:g,styles:I,advanced:$,style:P})=>{let y=g?.hasPreSelectItem?g?.selectItemDefault??0:-1,S=t=>y===t,_=(t,e)=>m({rawChildrenItem:f?.[e],setting:g,styles:I,isSelected:S(e),bundleItem:t}),h=d(l(I)?.gap),B=o(u(g,$?.cssClass)),j=d(c(h,I,P)),A=p({styles:I,settings:{useProductCompareAtPrice:g?.useProductCompareAtPrice,selectItemDefault:g?.selectItemDefault,hideNoDiscountItem:g?.hideNoDiscountItem,hasPreSelectItem:g?.hasPreSelectItem,iconItemColor:g?.iconItemColor,applyToInBetweenQuantities:g?.applyToInBetweenQuantities}});return t`
1
+ import{template as t,RenderIf as e,isLocalEnv as s,baseAssetURL as r}from"@gem-sdk/core";import{getSettingPreloadData as d}from"../../../helpers.js";import{createStyle as a,createClass as o,createStateOrContext as i,Liquid as p,LiquidIf as n}from"@gem-sdk/system";import{getSizeSettings as l,getContainerStyles as u}from"./common/styles.js";import{getContainerClasses as c}from"./common/classes.js";import m from"./ProductBundleDiscountChildrenItem.liquid.js";let f=({rawChildren:f,setting:g,styles:I,advanced:$,style:P})=>{let y=g?.hasPreSelectItem?g?.selectItemDefault??0:-1,S=t=>y===t,_=(t,e)=>m({rawChildrenItem:f?.[e],setting:g,styles:I,isSelected:S(e),bundleItem:t}),h=a(l(I)?.gap),B=o(c(g,$?.cssClass)),A=a(u(h,I,P)),j=i({styles:I,settings:{useProductCompareAtPrice:g?.useProductCompareAtPrice,selectItemDefault:g?.selectItemDefault,hideNoDiscountItem:g?.hideNoDiscountItem,hasPreSelectItem:g?.hasPreSelectItem,iconItemColor:g?.iconItemColor,applyToInBetweenQuantities:g?.applyToInBetweenQuantities}});return t`
2
2
  <gp-product-bundle-discount
3
- style="${j}"
4
- class="${B}"
5
- >
6
- <script gp-data type="application/json">${JSON.stringify(A)}</script>
7
- ${i(`
3
+ gp-data='${JSON.stringify(j)}'
4
+ style="${A}"
5
+ class="${B}">
6
+ ${p(`
8
7
  {%- assign gempages_product_bundle = product.metafields.gp_discount.gp_discount_selected_products -%}
9
8
  {% assign productBundleItem = gempages_product_bundle | split: '($1)' %}
10
9
  `)}
11
10
  ${f?.map((e,s)=>t`
12
11
  {% for productBundle in productBundleItem %}
13
- ${i(`
12
+ ${p(`
14
13
  {% assign attrs = productBundle | split: '($3)' %}
15
14
  {% assign parsedAttrs = '' %}
16
15
  {% for attr in attrs %}
@@ -29,6 +28,6 @@ import{template as t,RenderIf as e,isLocalEnv as s,baseAssetURL as r}from"@gem-s
29
28
  </gp-product-bundle-discount>
30
29
 
31
30
  {% if productBundleItem %}
32
- ${e(s,`<script ${a('class="gps-link" delay',"src")}="{{ 'gp-product-bundle-discount-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${a('class="gps-link" delay',"src")}="${r}/assets-v2/gp-product-bundle-discount-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
31
+ ${e(s,`<script ${d('class="gps-link" delay',"src")}="{{ 'gp-product-bundle-discount-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${d('class="gps-link" delay',"src")}="${r}/assets-v2/gp-product-bundle-discount-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
33
32
  {% endif %}
34
33
  `};export{f as default};
@@ -1,6 +1,6 @@
1
- import{getSplitStyle as t}from"./common/styles.js";import{getGPProductButtonState as e,escapeSingleQuoteForAttr as s}from"./common/helpers.js";import{template as r,isLocalEnv as a,baseAssetURL as o}from"@gem-sdk/core";import{createStateOrContext as i,Liquid as n,LiquidFor as p,If as l}from"@gem-sdk/system";import{getInsertLinkData as c,getSettingPreloadData as u}from"../../../helpers.js";import{getButtonDynamicSourceLocales as d}from"./helpers/getButtonDynamicSourceLocales.js";import{SoldOutButton as m}from"./SoldOutButton.liquid.js";import{AddToCartButton as g}from"./AddToCartButton.liquid.js";let f=f=>{let{setting:$,builderProps:y,style:b,styles:v,pageContext:_}=f,{wrapStyle:h,restStyle:S}=t(b),{outOfStockButtonLabel:j,unavailableButtonLabel:q,variantSelectionRequiredMessage:k,successMessage:E,errorMessage:M}=d({setting:$,pageContext:_,builderProps:y}),{urlData:A}=c("",$?.actionEffect==="open-cart-drawer"?{link:"/cart",target:"_self"}:$?.customURL),B=i(e({styles:v,setting:$})),G=s(E??$?.successMessage),P=s(M??$?.errorMessage),w=s(k??$?.variantSelectionRequiredMessage);return r`
1
+ import{getSplitStyle as t}from"./common/styles.js";import{getGPProductButtonState as e,escapeSingleQuoteForAttr as s}from"./common/helpers.js";import{template as r,isLocalEnv as o,baseAssetURL as a}from"@gem-sdk/core";import{createStateOrContext as i,Liquid as n,LiquidFor as l,If as p}from"@gem-sdk/system";import{getInsertLinkData as c,getSettingPreloadData as u}from"../../../helpers.js";import{getButtonDynamicSourceLocales as m}from"./helpers/getButtonDynamicSourceLocales.js";import{SoldOutButton as d}from"./SoldOutButton.liquid.js";import{AddToCartButton as g}from"./AddToCartButton.liquid.js";let f=f=>{let{setting:$,builderProps:b,style:y,styles:v,pageContext:_}=f,{wrapStyle:h,restStyle:S}=t(y),{outOfStockButtonLabel:j,unavailableButtonLabel:k,variantSelectionRequiredMessage:q,successMessage:E,errorMessage:M}=m({setting:$,pageContext:_,builderProps:b}),{urlData:A}=c("",$?.actionEffect==="open-cart-drawer"?{link:"/cart",target:"_self"}:$?.customURL),B=i(e({styles:v,setting:$})),G=s(E??$?.successMessage),P=s(M??$?.errorMessage),w=s(q??$?.variantSelectionRequiredMessage);return r`
2
2
  ${n("{%- assign total_combinations = 1 -%}")}
3
- ${p("option in product.options_with_values","{%- assign total_combinations = total_combinations | times: option.values.size -%}")}
3
+ ${l("option in product.options_with_values","{%- assign total_combinations = total_combinations | times: option.values.size -%}")}
4
4
  {%- liquid
5
5
  assign inventory_quantity = variant.inventory_quantity | default: 0
6
6
  assign is_in_stock = variant.available
@@ -11,16 +11,15 @@ import{getSplitStyle as t}from"./common/styles.js";import{getGPProductButtonStat
11
11
  gp-href="${A.href}"
12
12
  class="gp-product-button"
13
13
  gp-label-out-of-stock="${j}"
14
- gp-label-unavailable="${q}"
14
+ gp-label-unavailable="${k}"
15
+ gp-data='${JSON.stringify(B)}'
15
16
  data-variant-selection-required-message="${w}"
16
17
  gp-enable-third-partycart="{{shop.metafields.GEMPAGES.enableThirdPartyCart}}"
17
18
  gp-error-message="${P}"
18
19
  gp-success-message="${G}"
19
- data-variant-selection-required-message="${k}"
20
20
  >
21
- <script gp-data type="application/json">${JSON.stringify(B)}</script>
22
21
  ${g({...f,style:S})}
23
- ${m({...f,style:S,label:j})}
22
+ ${d({...f,style:S,label:j})}
24
23
  </gp-product-button>
25
- ${l(a,`<script ${u('class="gps-link" delay',"src")}="{{ 'gp-product-button-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${u('class="gps-link" delay',"src")}="${o}/assets-v2/gp-product-button-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
24
+ ${p(o,`<script ${u('class="gps-link" delay',"src")}="{{ 'gp-product-button-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${u('class="gps-link" delay',"src")}="${a}/assets-v2/gp-product-button-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
26
25
  `};export{f as default};
@@ -1,11 +1,11 @@
1
- import{makeStyleResponsive as t,makeLineClamp as e,dataStringify as s,template as i,baseAssetURL as o,isLocalEnv as p}from"@gem-sdk/core";import{getDynamicSourceLocales as r,createSettingId as a,getSettingPreloadData as n}from"../../../helpers.js";import{createClass as d,createStyle as c,createAttr as l,createStateOrContext as m,LiquidIf as $,Liquid as u,LiquidUnless as g,If as v}from"@gem-sdk/system";import{getClasses as f,getButtonClasses as x,getClassPreBuilt as w}from"./common/classes.js";import{getTextStyle as h,getButtonStyle as y,getStaticCss as C}from"./common/styles.js";import{ICON_SVG as j}from"./common/helpers.js";import{ProductDescription as b}from"../../settings/product-description/configs/translate.js";let M=M=>{let{setting:S,advanced:I,builderProps:L,pageContext:T}=M,{htmlTag:k,viewMoreText:E,viewLessText:P}=S??{},V="html"===k?"div":"p",A=d({"gp-product-description":!0,[I?.cssClass]:!0}),D=d(f({setting:S,isLiquid:!0})),G=d(x({setting:S})),_=d({"gp-show-more-text":!0}),q=d({"gp-show-more-icon gp-ml-1":!0}),H=c({...h({setting:S,renderMaxHeight:!0}),...t("line-clamp",e(S?.lineClamp,S?.hasLineClamp))}),N=d(w()),O=c(y({setting:S})),R=l({"data-id":`${L?.uid}`}),z=l({"data-gp-text":""}),{textDescriptionCss:B,gpDescriptionCss:F}=C(),J="product.description == blank",K=r({val:E,uid:L?.uid,settingId:a({id:b?.viewMoreText?.id}),pageContext:T??{}}),Q=r({val:P,uid:L?.uid,settingId:a({id:b?.viewLessText?.id}),pageContext:T??{}}),U=m({setting:{lineClamp:S?.lineClamp,hasLineClamp:S?.hasLineClamp,viewMoreText:K,viewLessText:Q,enableViewMoreIcon:S?.enableViewMoreIcon},textStyle:H});return $(J,"",u(i`
1
+ import{makeStyleResponsive as e,makeLineClamp as t,dataStringify as s,template as i,baseAssetURL as o,isLocalEnv as r}from"@gem-sdk/core";import{getDynamicSourceLocales as p,createSettingId as a,getSettingPreloadData as n}from"../../../helpers.js";import{createClass as d,createStyle as l,createAttr as c,createStateOrContext as m,LiquidIf as u,Liquid as $,LiquidUnless as g,If as v}from"@gem-sdk/system";import{getClasses as f,getButtonClasses as x,getClassPreBuilt as w}from"./common/classes.js";import{getTextStyle as h,getButtonStyle as C,getStaticCss as y}from"./common/styles.js";import{ICON_SVG as b}from"./common/helpers.js";import{ProductDescription as j}from"../../settings/product-description/configs/translate.js";let M=M=>{let{setting:S,advanced:I,builderProps:L,pageContext:T}=M,{htmlTag:k,viewMoreText:E,viewLessText:P}=S??{},V="html"===k?"div":"p",A=d({"gp-product-description":!0,[I?.cssClass]:!0}),D=d(f({setting:S,isLiquid:!0})),G=d(x({setting:S})),_=d({"gp-show-more-text":!0}),q=d({"gp-show-more-icon gp-ml-1":!0}),H=l({...h({setting:S,renderMaxHeight:!0}),...e("line-clamp",t(S?.lineClamp,S?.hasLineClamp))}),N=d(w()),O=l(C({setting:S})),R=c({"data-id":`${L?.uid}`}),z=c({"data-gp-text":""}),{textDescriptionCss:B,gpDescriptionCss:F}=y(),J="product.description == blank",K=p({val:E,uid:L?.uid,settingId:a({id:j?.viewMoreText?.id}),pageContext:T??{}}),Q=p({val:P,uid:L?.uid,settingId:a({id:j?.viewLessText?.id}),pageContext:T??{}}),U=m({setting:{lineClamp:S?.lineClamp,hasLineClamp:S?.hasLineClamp,viewMoreText:K,viewLessText:Q,enableViewMoreIcon:S?.enableViewMoreIcon},textStyle:H});return u(J,"",$(i`
2
2
  <gp-product-description
3
3
  ${R}
4
4
  class="${A}"
5
+ gp-data='${s(U).replaceAll("'","\\u0027")}'
5
6
  data-view-more-text="${K}"
6
7
  data-view-less-text="${Q}"
7
8
  >
8
- <script gp-data type="application/json">${s(U)}</script>
9
9
  <style>${B}${F}</style>
10
10
  <div class="${N}" ></div>
11
11
  ${g("product","<p>Product not found</p>",i`<${V} ${z} class="${D}" style="${H}">
@@ -15,9 +15,9 @@ import{makeStyleResponsive as t,makeLineClamp as e,dataStringify as s,template a
15
15
  <span class="${_}">
16
16
  ${v(!1,Q?.toString(),K?.toString())}
17
17
  </span>
18
- ${v(S?.enableViewMoreIcon,i`<span class="${q}">${j}</span>`," ")}
18
+ ${v(S?.enableViewMoreIcon,i`<span class="${q}">${b}</span>`," ")}
19
19
  </button>`)}`)}
20
20
  </gp-product-description>
21
21
 
22
- ${(()=>{let t=p?"{{ 'gp-product-description-v7-5.js' | asset_url }}":`${o}/assets-v2/gp-product-description-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}`;return`<script ${n('class="gps-link" delay',"src")}="${t}" defer="defer"></script>`})()}
22
+ ${(()=>{let e=r?"{{ 'gp-product-description-v7-5.js' | asset_url }}":`${o}/assets-v2/gp-product-description-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}`;return`<script ${n('class="gps-link" delay',"src")}="${e}" defer="defer"></script>`})()}
23
23
  `))};export{M as default};
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- import{jsx as e,jsxs as t}from"react/jsx-runtime";import{useI18nStore as s,makeStyleResponsive as o}from"@gem-sdk/core";import i from"../../../common/components/NoDataState.js";import l from"../../../common/components/TooltipHover.js";import"../../../common/const.js";import r from"../../../text/components/Text.js";import{createStyle as m,createClass as n,If as d}from"@gem-sdk/system";import{getWrapperTextStyle as p,getContainerStyle as a}from"./common/styles.js";import{getWrapperTextClass as c,getContainerClass as u,getRootClass as x}from"./common/classes.js";import{useGpDiscountTag as f}from"./hooks/useGpDiscountTag.js";let g=({setting:g,styles:y,builderProps:h,...b})=>{let{customContent:j}=g??{},N=b["bundle-item"],{textAlign:v}=y??{},{t:T}=s(),{mode:k,product:w,salePrice:A,priceSave:D,currentProductId:F,unitCustomDisplay:S,shouldPlaceholderNoDiscount:$}=f({setting:g,styles:y,builderProps:h,...b});if($)return e(l,{enable:!0,text:T("Not be displayed when published"),position:"bottom",width:"205px",children:e(i,{builderAttrs:h?.builderData,elementType:"secondary",description:T("No discount"),rawMode:!0,customClass:"!gp-p-[5px]"})});let q=m(p(y)),C=m(a(y)),I=n(c(y)),E=n(u()),G=n(x({mode:k,salePrice:A,priceSave:D,bundleItem:N}));return e("div",{className:G,style:{...o("ta",v)},id:`shopify-text-element-${h?.uid}`,"data-id":h?.uid,"data-product-id":F,"gp-data-hidden":"false",children:d(!w," ",e("div",{className:E,style:C,children:e("div",{className:I,style:q,children:t("div",{className:"gp-flex gp-break-all gp-items-center",children:[e(r,{styles:y,setting:{...g,text:j?.prefix?.replaceAll(" ","&nbsp;"),options:{useState:!0,uniqueId:`${h?.uid}-prefix`},excludeFlex:!0}}),e(r,{styles:y,setting:{...g,text:S,options:{isCannotEditing:!0},excludeFlex:!0}}),e(r,{styles:y,setting:{...g,text:j?.suffix?.replaceAll(" ","&nbsp;"),excludeFlex:!0,options:{useState:!0,uniqueId:`${h?.uid}-suffix`}}})]})})}))})};export{g as default};
2
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{useI18nStore as s,makeStyleResponsive as o}from"@gem-sdk/core";import i from"../../../common/components/NoDataState.js";import l from"../../../common/components/TooltipHover.js";import r from"../../../text/components/Text.js";import{createStyle as d,createClass as m,If as n}from"@gem-sdk/system";import{getWrapperTextStyle as a,getContainerStyle as p}from"./common/styles.js";import{getWrapperTextClass as c,getContainerClass as u,getRootClass as x}from"./common/classes.js";import{useGpDiscountTag as f}from"./hooks/useGpDiscountTag.js";let g=({setting:g,styles:y,builderProps:h,...b})=>{let{customContent:j}=g??{},N=b["bundle-item"],{textAlign:v}=y??{},{t:T}=s(),{mode:k,product:w,salePrice:A,priceSave:D,currentProductId:F,unitCustomDisplay:S,shouldPlaceholderNoDiscount:$}=f({setting:g,styles:y,builderProps:h,...b});if($)return e(l,{enable:!0,text:T("Not be displayed when published"),position:"bottom",width:"205px",children:e(i,{builderAttrs:h?.builderData,elementType:"secondary",description:T("No discount"),rawMode:!0,customClass:"!gp-p-[5px]"})});let q=d(a(y)),C=d(p(y)),I=m(c(y)),E=m(u()),G=m(x({mode:k,salePrice:A,priceSave:D,bundleItem:N}));return e("div",{className:G,style:{...o("ta",v)},id:`shopify-text-element-${h?.uid}`,"data-id":h?.uid,"data-product-id":F,"gp-data-hidden":"false",children:n(!w," ",e("div",{className:E,style:C,children:e("div",{className:I,style:q,children:t("div",{className:"gp-flex gp-break-all",children:[e(r,{styles:y,setting:{...g,text:j?.prefix?.replaceAll(" ","&nbsp;"),options:{useState:!0,uniqueId:`${h?.uid}-prefix`},excludeFlex:!0}}),e(r,{styles:y,setting:{...g,text:S,options:{isCannotEditing:!0},excludeFlex:!0}}),e(r,{styles:y,setting:{...g,text:j?.suffix?.replaceAll(" ","&nbsp;"),excludeFlex:!0,options:{useState:!0,uniqueId:`${h?.uid}-suffix`}}})]})})}))})};export{g as default};
@@ -1,14 +1,14 @@
1
- import{template as e,baseAssetURL as i,isLocalEnv as s}from"@gem-sdk/core";import{getDynamicSourceLocales as a,createSettingId as r,getSettingPreloadData as t}from"../../../helpers.js";import p from"../../../text/components/Text.liquid.js";import{createStyle as n,createClass as c,LiquidIf as o,Liquid as d,If as l}from"@gem-sdk/system";import{getWrapperTextClass as u,getContainerClass as g,getProductTagClass as f}from"./common/classes.js";import{getRootClass as m,getWrapperTextStyle as v,getContainerStyle as x}from"./common/styles.js";import{ProductTag as y}from"../../settings/product-discount-tag/configs/translate.js";let $=({setting:$,styles:S,builderProps:P,advanced:V,pageContext:_})=>{let{customContent:h}=$??{},j=$?.moneyWithCurrentFormat?"money_with_currency":"money",C=y?.customContent?.id?a({val:h?.prefix,uid:P?.uid,settingId:r({id:y.customContent.id,suffix:"prefix"}),isLiquid:!0,pageContext:_??{}}):h?.prefix,F=y?.customContent?.id?a({val:h?.suffix,uid:P?.uid,settingId:r({id:y.customContent.id,suffix:"suffix"}),isLiquid:!0,pageContext:_??{}}):h?.suffix,M=n(m(S)),q=n(v(S)),w=n(x(S)),E=c(u(S)),N=c(g()),O=c(f(V)),T=h?.unit==="percentage";return e`
1
+ import{template as e,baseAssetURL as i,isLocalEnv as s}from"@gem-sdk/core";import{getDynamicSourceLocales as a,createSettingId as r,getSettingPreloadData as t}from"../../../helpers.js";import p from"../../../text/components/Text.liquid.js";import{createStyle as n,createClass as c,LiquidIf as o,Liquid as d,If as l}from"@gem-sdk/system";import{getWrapperTextClass as u,getContainerClass as g,getProductTagClass as f}from"./common/classes.js";import{getRootClass as m,getWrapperTextStyle as v,getContainerStyle as x}from"./common/styles.js";import{ProductTag as $}from"../../settings/product-discount-tag/configs/translate.js";let y=({setting:y,styles:S,builderProps:P,advanced:V,pageContext:_})=>{let{customContent:h}=y??{},C=y?.moneyWithCurrentFormat?"money_with_currency":"money",j=$?.customContent?.id?a({val:h?.prefix,uid:P?.uid,settingId:r({id:$.customContent.id,suffix:"prefix"}),isLiquid:!0,pageContext:_??{}}):h?.prefix,F=$?.customContent?.id?a({val:h?.suffix,uid:P?.uid,settingId:r({id:$.customContent.id,suffix:"suffix"}),isLiquid:!0,pageContext:_??{}}):h?.suffix,M=n(m(S)),q=n(v(S)),w=n(x(S)),E=c(u(S)),N=c(g()),O=c(f(V)),T=h?.unit==="percentage";return e`
2
2
  {% liquid
3
3
  assign price = variant.price | times: 1.0
4
4
  assign salePrice = variant.compare_at_price | times: 1.0
5
5
  assign priceSave = salePrice | minus: price
6
- assign prefixVal = ${_?.isPreviewing?JSON.stringify(C):C}
6
+ assign prefixVal = ${_?.isPreviewing?JSON.stringify(j):j}
7
7
  assign suffixVal = ${_?.isPreviewing?JSON.stringify(F):F}
8
8
  %}
9
- ${o("salePrice == null or price == null",d(`{% assign pricePercentage = prefixVal ${l(T,"| append: ' 0% '",`| ${j} | append: ' '`)} | append: suffixVal %}`),`${l(T,`{% assign salePercent = priceSave | divided_by: salePrice | times: 100 | round %}
10
- {% assign pricePercentage = prefixVal | append: ' ' | append: salePercent | append: '% ' | append: suffixVal %}`,o("priceSave > 0",`{% assign priceSaveMoney = priceSave | ${j} %}
11
- {% assign pricePercentage = prefixVal | append: ' ' | append: priceSaveMoney | append: ' ' | append: suffixVal %}`,`{% assign priceSaveMoney = 0 | ${j} %}
9
+ ${o("salePrice == null or price == null",d(`{% assign pricePercentage = prefixVal ${l(T,"| append: ' 0% '",`| ${C} | append: ' '`)} | append: suffixVal %}`),`${l(T,`{% assign salePercent = priceSave | divided_by: salePrice | times: 100 | round %}
10
+ {% assign pricePercentage = prefixVal | append: ' ' | append: salePercent | append: '% ' | append: suffixVal %}`,o("priceSave > 0",`{% assign priceSaveMoney = priceSave | ${C} %}
11
+ {% assign pricePercentage = prefixVal | append: ' ' | append: priceSaveMoney | append: ' ' | append: suffixVal %}`,`{% assign priceSaveMoney = 0 | ${C} %}
12
12
  {% assign pricePercentage = prefixVal | append: ' ' | append: priceSaveMoney | append: ' ' | append: suffixVal %}`))}`)}
13
13
 
14
14
  <gp-product-tag
@@ -16,15 +16,15 @@ import{template as e,baseAssetURL as i,isLocalEnv as s}from"@gem-sdk/core";impor
16
16
  style="${M}"
17
17
  data-id="${P?.uid}"
18
18
  data-disabled="${o(`${l(T,"salePercent","priceSave")} > 0`,"false","true")}"
19
+ gp-data='{"setting":${JSON.stringify(y).replaceAll("'","&#039;")}, "id": "${P?.uid}", "locale": "{{shop.locale}}", "currency": "{{shop.currency}}", "moneyFormat": "{{ ${y?.moneyWithCurrentFormat?"shop.money_with_currency_format":"shop.money_format"} | replace: '"', '\\"' | escape }}"}'
19
20
  price-save="{{priceSave}}"
20
21
  >
21
- <script gp-data type="application/json">{"setting":${JSON.stringify($).replaceAll("'","&#039;")}, "id": "${P?.uid}", "locale": "{{shop.locale}}", "currency": "{{shop.currency}}", "moneyFormat": "{{ ${$?.moneyWithCurrentFormat?"shop.money_with_currency_format":"shop.money_format"} | replace: '"', '\\"' | escape }}"}'</script>
22
22
  <div class="${N}" style="${w}">
23
23
  <div class="${E}" style="${q}">
24
- ${p({styles:S,id:`p-tag-${P?.uid}`,setting:{...$,text:"{{ pricePercentage }}",excludeFlex:!0,isForceValue:!0}})}
24
+ ${p({styles:S,id:`p-tag-${P?.uid}`,setting:{...y,text:"{{ pricePercentage }}",excludeFlex:!0,isForceValue:!0}})}
25
25
  </div>
26
26
  </div>
27
27
 
28
28
  </gp-product-tag>
29
29
  ${(()=>{let e=s?"{{ 'gp-product-tag-v7-5.js' | asset_url }}":`${i}/assets-v2/gp-product-tag-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}`;return`<script ${t('class="gps-link" delay',"src")}="${e}" defer="defer"></script>`})()}
30
- `};export{$ as default};
30
+ `};export{y as default};
@@ -1,44 +1,44 @@
1
- import{isLocalEnv as e,baseAssetURL as o,template as r,WrapRenderChildren as t,RenderChildren as s}from"@gem-sdk/core";import{getConditionRenderGalleryImages as i,getStyleInsideLayout as a,setDefaultWhenUndefineSetting as p}from"./common/common.js";import l from"./components/feature-gallery/FeatureImageWithGallery.liquid.js";import d from"./components/gallery-carousel/GalleryCarousel.liquid.js";import m from"./components/gallery-grid/GalleryGrid.liquid.js";import{filterPageContext as c,getSettingPreloadData as u}from"../../../helpers.js";import{getShapeByLayout as n,sizeSettingDefaultForNewLayout as g}from"./common/productGallery.js";import{getProductImagesClassName as f}from"./composables/getProductImagesClassName.js";import{getProductImagesStyles as y}from"./composables/getProductImagesStyles.js";import{createAttr as $,LiquidIf as h,createClass as j,If as S,Liquid as v}from"@gem-sdk/system";import{getBorderActiveCss as F}from"./common/getBorderActiveCss.js";import{getStyleOfObject as I}from"../../helpers/function.js";let C=C=>{let P=p(C),{setting:G,styles:D,builderProps:b,style:z}=P,{rawChildren:O,pageContext:_}=C,N={...G,...D},A=`
1
+ import{isLocalEnv as e,baseAssetURL as o,template as r,WrapRenderChildren as s,RenderChildren as t}from"@gem-sdk/core";import{getConditionRenderGalleryImages as i,getStyleInsideLayout as a,setDefaultWhenUndefineSetting as p}from"./common/common.js";import l from"./components/feature-gallery/FeatureImageWithGallery.liquid.js";import d from"./components/gallery-carousel/GalleryCarousel.liquid.js";import m from"./components/gallery-grid/GalleryGrid.liquid.js";import{filterPageContext as c,getSettingPreloadData as u}from"../../../helpers.js";import{getShapeByLayout as n,sizeSettingDefaultForNewLayout as g}from"./common/productGallery.js";import{getProductImagesClassName as f}from"./composables/getProductImagesClassName.js";import{getProductImagesStyles as $}from"./composables/getProductImagesStyles.js";import{createAttr as y,LiquidIf as h,createClass as S,If as j,Liquid as v}from"@gem-sdk/system";import{getBorderActiveCss as F}from"./common/getBorderActiveCss.js";import{getStyleOfObject as I}from"../../helpers/function.js";let C=C=>{let P=p(C),{setting:G,styles:D,builderProps:b,style:z}=P,{rawChildren:O,pageContext:_}=C,N={...G,...D},A=`
2
2
  {
3
3
  "id":${JSON.stringify(b?.uid)},
4
4
  "pageContext": ${JSON.stringify(c(_))},
5
5
  "setting":${JSON.stringify(G)},
6
6
  "styles":${JSON.stringify(D)},
7
- "productUrl":{{product.url | json }},
8
- "product":{{product | json }},
9
- "collectionUrl": {{ collection.url | json }},
10
- "collection": {{ collection | json }}
7
+ "productUrl":{{product.url | json | escape}},
8
+ "product":{{product | json | escape}},
9
+ "collectionUrl": {{ collection.url | json | escape }},
10
+ "collection": {{ collection | json | escape}}
11
11
  }
12
- `,B=$({"section-id":"{{section.id}}","data-id":`${b?.uid}`}),{isOnlyFeatureAllDevices:U,isRenderGalleryGrid:k}=i(N?.position,G?.type),q=k?{}:$({"data-only-image":h("product.media.size > 1","false","true")}),{wrapperClasses:E,productImagesGalleryClasses:J}=f(C),w=j({"gp-grid gp-w-full !gp-m-0 gp-relative":!0}),T=j({"gp-w-full !gp-m-0 gp-relative":!0}),{wrapContainerStyle:x,wrapContainerStyleOnlyOneImage:L,galleryImageStyle:M}=y(N),R=n({shape:N.shape,shapeForBottom:N.shapeForBottom,shapeFor1Col:N.shapeFor1Col,shapeFor2Col:N.shapeFor2Col,shapeForFtOnly:N.shapeForFtOnly,shapeForInsideBottom:N.shapeForInsideBottom??g,shapeForInside:N.shapeForInside??g},N.position),V=a(N.position,R,N?.spacing),W=()=>r`
13
- ${t({uid:b?.uid||"",customProps:O?.[0].customProps},O?.map(e=>{if(e)return r`${s({...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=y({"section-id":"{{section.id}}","data-id":`${b?.uid}`}),{isOnlyFeatureAllDevices:U,isRenderGalleryGrid:k}=i(N?.position,G?.type),q=k?{}:y({"data-only-image":h("product.media.size > 1","false","true")}),{wrapperClasses:E,productImagesGalleryClasses:J}=f(C),w=S({"gp-grid gp-w-full !gp-m-0 gp-relative":!0}),T=S({"gp-w-full !gp-m-0 gp-relative":!0}),{wrapContainerStyle:x,wrapContainerStyleOnlyOneImage:L,galleryImageStyle:M}=$(N),R=n({shape:N.shape,shapeForBottom:N.shapeForBottom,shapeFor1Col:N.shapeFor1Col,shapeFor2Col:N.shapeFor2Col,shapeForFtOnly:N.shapeForFtOnly,shapeForInsideBottom:N.shapeForInsideBottom??g,shapeForInside:N.shapeForInside??g},N.position),V=a(N.position,R,N?.spacing),W=()=>r`
13
+ ${s({uid:b?.uid||"",customProps:O?.[0].customProps},O?.map(e=>{if(e)return r`${t({...e,isInsideProductImage:!0,imageData:{imageShape:D?.ftShape,imageAlign:D?.align,imageLayout:D?.position},dotData:{dotSize:G?.ftDotSize,dotGapToCarousel:G?.ftDotGapToCarousel,dotStyle:G?.ftDotStyle}})}`}))}
14
14
  `;return r`
15
- ${S(G?.borderActive?.border!=="none",h("product.media.size > 1",`<style>${F({settings:N,uid:b?.uid,type:"Liquid"})}</style>`),"")}
15
+ ${j(G?.borderActive?.border!=="none",h("product.media.size > 1",`<style>${F({settings:N,uid:b?.uid,type:"Liquid"})}</style>`),"")}
16
16
  ${v(`
17
17
  {% assign featured_image = product.featured_image %}
18
18
  ${h("variant != null and variant.featured_image != null","{% assign featured_image = variant.featured_image %}")}
19
19
  `)}
20
20
  <gp-product-images
21
+ gp-data='${A}'
21
22
  ${{...B}}
22
23
  style="${{...z}}"
23
24
  class="${E}"
24
25
  >
25
- <script gp-data type="application/json">${A}</script>
26
26
  <div
27
27
  class="${h("product.media.size > 1",`${w}`,`${T}`)}"
28
28
  style="${h("product.media.size > 1",I(x),I(L))}"
29
29
  >
30
30
  ${l({builderPropUID:`gp-carousel-${b?.uid}`,...N,children:W(),pageContext:_})}
31
- ${S(!U,r`
31
+ ${j(!U,r`
32
32
  <div
33
33
  class="${J}"
34
34
  style="${I(M)}"
35
35
  ${{...q}}
36
36
  >
37
37
  ${h("product.media.size > 1",d({builderPropUID:`gp-gallery-${b?.uid}`,...N,pageContext:_}))}
38
- ${S(k,m({builderPropUID:b?.uid,wrapperStyle:{...V},children:W(),...N,pageContext:_}))}
38
+ ${j(k,m({builderPropUID:b?.uid,wrapperStyle:{...V},children:W(),...N,pageContext:_}))}
39
39
  </div>
40
40
  `)}
41
41
  </div>
42
42
  </gp-product-images>
43
- ${S(e,`<script ${u('class="gps-link" delay',"src")}="{{ 'gp-product-images-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${u('class="gps-link" delay',"src")}="${o}/assets-v2/gp-product-images-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
43
+ ${j(e,`<script ${u('class="gps-link" delay',"src")}="{{ 'gp-product-images-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${u('class="gps-link" delay',"src")}="${o}/assets-v2/gp-product-images-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
44
44
  `};export{C as default};
@@ -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{memo as h,useMemo as f}from"react";import p from"../../../../../image/components/NextImage.js";import m from"./MediaIcon.js";import{isFeatureMedia as g,getZoomImageClass as d,getZoomLenClass as u}from"../../common/productFeaturedImage.js";import y from"./ProductFeatureVideo.js";let T={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 b=h(({image:h,imageShowWhenHover:b,setting:v,aspectRatio:E})=>{let w=o(),I=i(),k=a(e=>e.storefrontUrl),{isEditMode:x,isPreviewSharePageMode:L}=c(),N=f(()=>"none"!==n(v.ftClickOpenLightBox,I),[I,v.ftClickOpenLightBox]),O=f(()=>!x&&["VIDEO","EXTERNAL_VIDEO"].includes(h?.contentType||"")&&!N,[x,h?.contentType,N]),j=f(()=>h?{...h,src:O?h.src:g(h?.contentType)?h?.previewImage:h.src}:T,[h,O]),R=f(()=>{if(L)return"javascript:void(0)";if(!k)return"#";let e=new URL(k);return w?`${e.protocol}//${e.host}/products/${w.handle}`:"#"},[k,w,L]),C=f(()=>v?.hoverEffect!=="none"&&!g(j?.contentType),[j?.contentType,v?.hoverEffect]),$=f(()=>v?.hoverEffect=="zoom"&&v?.zoomType=="glasses"&&!g(j?.contentType),[j?.contentType,v?.hoverEffect,v?.zoomType]);return e(t,{children:(t=>{if("product-link"===n(v.ftClickOpenLightBox,I)){let r=v.ftClickOpenNewTab?"_blank":"_self";return e("a",{title:w?.title,href:R,className:"gp-w-full",target:r,children:t})}return t})(e(t,{children:O?e(y,{type:j?.contentType,url:j.src??"",aspectRatio:E}):r(t,{children:[e(p,{draggable:"false",src:j.src,width:j?.width,height:j?.height,alt:j?.alt,setting:{aspectRatio:E,layout:v?.ftLayout},priority:v?.preload,className:"featured-image-only",style:{width:"100%",height:"100%",cursor:"pointer"}}),e(m,{contentType:j?.contentType??""}),C&&e(p,{draggable:"false",src:v?.hoverEffect==="other"?b?.src:j.src,width:v?.hoverEffect==="other"?b?.width:j.width,height:v?.hoverEffect==="other"?b?.height:j.height,alt:v?.hoverEffect==="other"?b?.alt:j.alt,setting:{layout:v.ftLayout,aspectRatio:E},style:{width:"100%",height:"100%"},className:l("hover-image featured-image-only !gp-max-w-none",d()),priority:v?.preload}),$&&e("div",{className:l(u(),"room-len"),style:{...s({bgi:`url("${j?.src}")`})}})]})}))})});export{b as default};
2
+ import{jsx as e,Fragment as t,jsxs as o}from"react/jsx-runtime";import{useProduct as r,useCurrentDevice as i,useShopStore as a,useRenderMode as c,getResponsiveValueByScreen as n,cls as s,makeStyle as h}from"@gem-sdk/core";import{memo as l,useMemo as f}from"react";import p from"../../../../../image/components/NextImage.js";import m from"./MediaIcon.js";import{isFeatureMedia as d,getZoomImageClass as g,getZoomLenClass as y}from"../../common/productFeaturedImage.js";import u from"./ProductFeatureVideo.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 E=l(({image:l,imageShowWhenHover:E,setting:T,aspectRatio:b})=>{var w;let I=r(),x=i(),L=a(e=>e.storefrontUrl),{isEditMode:j,isPreviewSharePageMode:N}=c(),O=f(()=>"none"!==n(T.ftClickOpenLightBox,x),[x,T.ftClickOpenLightBox]),k=f(()=>!j&&["VIDEO","EXTERNAL_VIDEO"].includes(l?.contentType||"")&&!O,[j,l?.contentType,O]),R=f(()=>l?{...l,src:k?l.src:d(l?.contentType)?l?.previewImage:l.src}:v,[l,k]),$=f(()=>{if(N)return"javascript:void(0)";if(!L)return"#";let e=new URL(L);return I?`${e.protocol}//${e.host}/products/${I.handle}`:"#"},[L,I,N]),z=f(()=>T?.hoverEffect!=="none"&&!d(R?.contentType),[R?.contentType,T?.hoverEffect]),B=f(()=>T?.hoverEffect=="zoom"&&T?.zoomType=="glasses"&&!d(R?.contentType),[R?.contentType,T?.hoverEffect,T?.zoomType]);return e(t,{children:(w=e(t,{children:k?e(u,{type:R?.contentType,url:R.src??"",aspectRatio:b}):o(t,{children:[e(p,{draggable:"false",src:R.src,width:R?.width,height:R?.height,alt:R?.alt,setting:{aspectRatio:b,layout:T?.ftLayout},priority:T?.preload,className:"featured-image-only",style:{width:"100%",height:"100%",cursor:"pointer"}}),e(m,{contentType:R?.contentType??""}),z&&e(p,{draggable:"false",src:T?.hoverEffect==="other"?E?.src:R.src,width:T?.hoverEffect==="other"?E?.width:R.width,height:T?.hoverEffect==="other"?E?.height:R.height,alt:T?.hoverEffect==="other"?E?.alt:R.alt,setting:{layout:T.ftLayout,aspectRatio:b},style:{width:"100%",height:"100%"},className:s("hover-image featured-image-only !gp-max-w-none",g()),priority:T?.preload}),B&&e("div",{className:s(y(),"room-len"),style:{...h({bgi:`url("${R?.src}")`})}})]})}),"product-link"===n(T.ftClickOpenLightBox,x)?e("a",{title:I?.title,href:$,className:"gp-w-full",children:w}):w)})});export{E as default};
@@ -1,44 +1,44 @@
1
- import{isLocalEnv as e,baseAssetURL as o,template as i,WrapRenderChildren as t,RenderChildren as r}from"@gem-sdk/core";import{getConditionRenderGalleryImages as s,getStyleInsideLayout as a,setDefaultWhenUndefineSetting as l}from"./common/common.js";import p from"./components/feature-gallery/FeatureImageWithGallery.liquid.js";import d from"./components/gallery-carousel/GalleryCarousel.liquid.js";import m from"./components/gallery-grid/GalleryGrid.liquid.js";import{filterPageContext as n,getSettingPreloadData as c}from"../../../helpers.js";import{getShapeByLayout as u,sizeSettingDefaultForNewLayout as g}from"./common/productGallery.js";import{getProductImagesClassName as f}from"./composables/getProductImagesClassName.js";import{getProductImagesStyles as y}from"./composables/getProductImagesStyles.js";import{createAttr as $,LiquidIf as h,createClass as j,If as v,Liquid as S}from"@gem-sdk/system";import{getBorderActiveCss as F}from"./common/getBorderActiveCss.js";import{getStyleOfObject as I}from"../../helpers/function.js";let C=C=>{let P=l(C),{setting:G,styles:D,builderProps:b,style:z}=P,{rawChildren:O,pageContext:_}=C,N={...G,...D},A=`
1
+ import{isLocalEnv as e,baseAssetURL as o,template as r,WrapRenderChildren as i,RenderChildren as t}from"@gem-sdk/core";import{getConditionRenderGalleryImages as s,getStyleInsideLayout as a,setDefaultWhenUndefineSetting as l}from"./common/common.js";import d from"./components/feature-gallery/FeatureImageWithGallery.liquid.js";import p from"./components/gallery-carousel/GalleryCarousel.liquid.js";import m from"./components/gallery-grid/GalleryGrid.liquid.js";import{filterPageContext as n,getSettingPreloadData as u}from"../../../helpers.js";import{getShapeByLayout as c,sizeSettingDefaultForNewLayout as g}from"./common/productGallery.js";import{getProductImagesClassName as f}from"./composables/getProductImagesClassName.js";import{getProductImagesStyles as $}from"./composables/getProductImagesStyles.js";import{createAttr as y,LiquidIf as h,createClass as v,If as j,Liquid as S}from"@gem-sdk/system";import{getBorderActiveCss as F}from"./common/getBorderActiveCss.js";import{getStyleOfObject as I}from"../../helpers/function.js";let C=C=>{let P=l(C),{setting:G,styles:D,builderProps:b,style:z}=P,{rawChildren:O,pageContext:_}=C,N={...G,...D},A=`
2
2
  {
3
3
  "id":${JSON.stringify(b?.uid)},
4
4
  "pageContext": ${JSON.stringify(n(_))},
5
5
  "setting":${JSON.stringify(G)},
6
6
  "styles":${JSON.stringify(D)},
7
7
  "productUrl":{{product.url | json }},
8
- "product":{% if product %}{"id":{{ product.id | json }},"handle":{{ product.handle | json }},"media":{{ product.media | json }}}{% else %}null{% endif %},
8
+ "product":{% if product %}{"id":{{ product.id | json }},"handle":{{ product.handle | json }},"media":{{ product.media | json | escape }}}{% else %}null{% endif %},
9
9
  "collectionUrl": {{ collection.url | json }},
10
10
  "collection": {% if collection %}{"handle":{{ collection.handle | json }}}{% else %}null{% endif %}
11
11
  }
12
- `,B=$({"section-id":"{{section.id}}","data-id":`${b?.uid}`}),{isOnlyFeatureAllDevices:U,isRenderGalleryGrid:k}=s(N?.position,G?.type),q=k?{}:$({"data-only-image":h("product.media.size > 1","false","true")}),{wrapperClasses:E,productImagesGalleryClasses:J}=f(C),w=j({"gp-grid gp-w-full !gp-m-0 gp-relative":!0}),T=j({"gp-w-full !gp-m-0 gp-relative":!0}),{wrapContainerStyle:x,wrapContainerStyleOnlyOneImage:L,galleryImageStyle:M}=y(N),R=u({shape:N.shape,shapeForBottom:N.shapeForBottom,shapeFor1Col:N.shapeFor1Col,shapeFor2Col:N.shapeFor2Col,shapeForFtOnly:N.shapeForFtOnly,shapeForInsideBottom:N.shapeForInsideBottom??g,shapeForInside:N.shapeForInside??g},N.position),V=a(N.position,R,N?.spacing),W=()=>i`
13
- ${t({uid:b?.uid||"",customProps:O?.[0].customProps},O?.map(e=>{if(e)return i`${r({...e,isInsideProductImage:!0,imageData:{imageShape:D?.ftShape,imageAlign:D?.align,imageLayout:D?.position},dotData:{dotSize:G?.ftDotSize,dotGapToCarousel:G?.ftDotGapToCarousel,dotStyle:G?.ftDotStyle}})}`}))}
14
- `;return i`
15
- ${v(G?.borderActive?.border!=="none",h("product.media.size > 1",`<style>${F({settings:N,uid:b?.uid,type:"Liquid"})}</style>`),"")}
12
+ `,B=y({"section-id":"{{section.id}}","data-id":`${b?.uid}`}),{isOnlyFeatureAllDevices:U,isRenderGalleryGrid:k}=s(N?.position,G?.type),q=k?{}:y({"data-only-image":h("product.media.size > 1","false","true")}),{wrapperClasses:E,productImagesGalleryClasses:J}=f(C),w=v({"gp-grid gp-w-full !gp-m-0 gp-relative":!0}),T=v({"gp-w-full !gp-m-0 gp-relative":!0}),{wrapContainerStyle:x,wrapContainerStyleOnlyOneImage:L,galleryImageStyle:M}=$(N),R=c({shape:N.shape,shapeForBottom:N.shapeForBottom,shapeFor1Col:N.shapeFor1Col,shapeFor2Col:N.shapeFor2Col,shapeForFtOnly:N.shapeForFtOnly,shapeForInsideBottom:N.shapeForInsideBottom??g,shapeForInside:N.shapeForInside??g},N.position),V=a(N.position,R,N?.spacing),W=()=>r`
13
+ ${i({uid:b?.uid||"",customProps:O?.[0].customProps},O?.map(e=>{if(e)return r`${t({...e,isInsideProductImage:!0,imageData:{imageShape:D?.ftShape,imageAlign:D?.align,imageLayout:D?.position},dotData:{dotSize:G?.ftDotSize,dotGapToCarousel:G?.ftDotGapToCarousel,dotStyle:G?.ftDotStyle}})}`}))}
14
+ `;return r`
15
+ ${j(G?.borderActive?.border!=="none",h("product.media.size > 1",`<style>${F({settings:N,uid:b?.uid,type:"Liquid"})}</style>`),"")}
16
16
  ${S(`
17
17
  {% assign featured_image = product.featured_image %}
18
18
  ${h("variant != null and variant.featured_image != null","{% assign featured_image = variant.featured_image %}")}
19
19
  `)}
20
20
  <gp-product-images-v3
21
+ gp-data='${A}'
21
22
  ${{...B}}
22
23
  style="${{...z}}"
23
24
  class="${E}"
24
25
  >
25
- <script gp-data type="application/json">${A}</script>
26
26
  <div
27
27
  class="${h("product.media.size > 1",`${w}`,`${T}`)}"
28
28
  style="${h("product.media.size > 1",I(x),I(L))}"
29
29
  >
30
- ${p({builderPropUID:`gp-carousel-${b?.uid}`,...N,children:W(),pageContext:_})}
31
- ${v(!U,i`
30
+ ${d({builderPropUID:`gp-carousel-${b?.uid}`,...N,children:W(),pageContext:_})}
31
+ ${j(!U,r`
32
32
  <div
33
33
  class="${J}"
34
34
  style="${I(M)}"
35
35
  ${{...q}}
36
36
  >
37
- ${h("product.media.size > 1",d({builderPropUID:`gp-gallery-${b?.uid}`,...N,pageContext:_}))}
38
- ${v(k,m({builderPropUID:b?.uid,wrapperStyle:{...V},children:W(),...N,pageContext:_}))}
37
+ ${h("product.media.size > 1",p({builderPropUID:`gp-gallery-${b?.uid}`,...N,pageContext:_}))}
38
+ ${j(k,m({builderPropUID:b?.uid,wrapperStyle:{...V},children:W(),...N,pageContext:_}))}
39
39
  </div>
40
40
  `)}
41
41
  </div>
42
42
  </gp-product-images-v3>
43
- ${v(e,`<script ${c('class="gps-link" delay',"src")}="{{ 'gp-product-images-v3-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${c('class="gps-link" delay',"src")}="${o}/assets-v2/gp-product-images-v3-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
43
+ ${j(e,`<script ${u('class="gps-link" delay',"src")}="{{ 'gp-product-images-v3-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${u('class="gps-link" delay',"src")}="${o}/assets-v2/gp-product-images-v3-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
44
44
  `};export{C as default};