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

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 (305) 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/hooks/useSticky.js +1 -1
  119. package/dist/cjs/sticky/index.js +1 -1
  120. package/dist/cjs/sticky/next.js +1 -1
  121. package/dist/cjs/stock-counter/next.js +1 -1
  122. package/dist/cjs/tab/components/Tabs.liquid.js +6 -7
  123. package/dist/cjs/tab/next.js +1 -1
  124. package/dist/cjs/text/components/Text.liquid.js +3 -3
  125. package/dist/cjs/textarea/next.js +1 -1
  126. package/dist/cjs/third-party/next.js +1 -1
  127. package/dist/cjs/third-party/settings/AppstleBundlesDiscounts/index.js +2 -2
  128. package/dist/cjs/third-party/settings/BoldSubscriptions/index.js +1 -1
  129. package/dist/cjs/third-party/settings/BoldSubscriptions/uiV2.js +1 -1
  130. package/dist/cjs/third-party/settings/GloColorSwatchvariantImage/index.js +1 -1
  131. package/dist/cjs/third-party/settings/HextomCountdownTimerBar/index.js +2 -2
  132. package/dist/cjs/third-party/settings/LoopSubscriptions/index.js +1 -1
  133. package/dist/cjs/third-party/settings/LoopSubscriptions/uiV2.js +1 -1
  134. package/dist/cjs/third-party/settings/RechargeSubscriptions/index.js +1 -1
  135. package/dist/cjs/third-party/settings/SeoantTrustBadgesIcon/uiV2.js +1 -1
  136. package/dist/cjs/third-party/settings/ShopifyForms/uiV2.js +1 -1
  137. package/dist/cjs/third-party/settings/SkioSubscriptionsYcS20/index.js +2 -2
  138. package/dist/cjs/third-party/settings/SproutPlantTreesGrowSales/index.js +1 -1
  139. package/dist/cjs/third-party/settings/TrustshopProductReviews/index.js +2 -2
  140. package/dist/cjs/third-party/settings/WcWishlistBackInStock/index.js +2 -2
  141. package/dist/cjs/third-party-instant/next.js +1 -1
  142. package/dist/cjs/third-party-slot/next.js +1 -1
  143. package/dist/cjs/video/components/LiteVimeoEmbed.liquid.js +7 -8
  144. package/dist/cjs/video/components/LiteYouTubeEmbed.liquid.js +4 -5
  145. package/dist/cjs/video/next.js +1 -1
  146. package/dist/esm/accordion/components/Accordion.liquid.js +9 -8
  147. package/dist/esm/accordion/next.js +1 -1
  148. package/dist/esm/article/components/ArticleContent.js +2 -2
  149. package/dist/esm/article/components/ArticleExcerpt.js +1 -1
  150. package/dist/esm/article/components/ArticleList.js +1 -1
  151. package/dist/esm/article/index.js +1 -1
  152. package/dist/esm/article/next.js +1 -1
  153. package/dist/esm/breadcrumb/next.js +1 -1
  154. package/dist/esm/button/components/Button.liquid.js +23 -23
  155. package/dist/esm/button/next.js +1 -1
  156. package/dist/esm/carousel/components/root/Carousel.liquid.js +3 -4
  157. package/dist/esm/carousel/components/root/common/helpers.js +1 -1
  158. package/dist/esm/carousel/next.js +1 -1
  159. package/dist/esm/carousel-v3/components/root/Carousel.liquid.js +3 -4
  160. package/dist/esm/carousel-v3/components/root/CarouselEmbla.liquid.js +3 -4
  161. package/dist/esm/carousel-v3/components/root/common/helpers.js +1 -1
  162. package/dist/esm/carousel-v3/next.js +1 -1
  163. package/dist/esm/cart/components/CartList.js +1 -1
  164. package/dist/esm/cart/components/shop-pay-button/ShopPayButton.liquid.js +2 -2
  165. package/dist/esm/cart/index.js +1 -1
  166. package/dist/esm/cart/next.js +1 -1
  167. package/dist/esm/code/next.js +1 -1
  168. package/dist/esm/collection/components/collection-description/CollectionDescription.liquid.js +7 -6
  169. package/dist/esm/collection/components/collection-paginator/CollectionPaginator.liquid.js +3 -4
  170. package/dist/esm/collection/components/collection-toolbar/CollectionToolbar.liquid.js +3 -3
  171. package/dist/esm/collection/next.js +1 -1
  172. package/dist/esm/common/const.js +1 -1
  173. package/dist/esm/countdown-timer/components/Countdown.liquid.js +20 -21
  174. package/dist/esm/countdown-timer/next.js +1 -1
  175. package/dist/esm/coupon/next.js +1 -1
  176. package/dist/esm/dialog/index.js +1 -1
  177. package/dist/esm/dialog/next.js +1 -1
  178. package/dist/esm/estimate-delivery/next.js +1 -1
  179. package/dist/esm/form/components/form-dropdown/FormDropdown.liquid.js +9 -9
  180. package/dist/esm/form/next.js +1 -1
  181. package/dist/esm/grid/components/row/Row.liquid.js +3 -8
  182. package/dist/esm/grid/components/row/common/helpers.js +1 -1
  183. package/dist/esm/grid/components/section/Section.js +1 -1
  184. package/dist/esm/grid/index.js +1 -1
  185. package/dist/esm/header/components/kind/basic/index.js +1 -1
  186. package/dist/esm/header/components/kind/modern/index.js +1 -1
  187. package/dist/esm/header/index.js +1 -1
  188. package/dist/esm/header/next.js +1 -1
  189. package/dist/esm/hero-banner/common/helpers.js +1 -1
  190. package/dist/esm/hero-banner/components/HeroBanner.liquid.js +5 -5
  191. package/dist/esm/hero-banner/components/HeroBannerItem.js +1 -1
  192. package/dist/esm/hero-banner/index.js +1 -1
  193. package/dist/esm/hero-banner/next.js +1 -1
  194. package/dist/esm/icon/next.js +1 -1
  195. package/dist/esm/icon-list/next.js +1 -1
  196. package/dist/esm/icon-list-hoz/next.js +1 -1
  197. package/dist/esm/icon-list-v2/components/IconList.liquid.js +7 -7
  198. package/dist/esm/icon-list-v2/next.js +1 -1
  199. package/dist/esm/image-comparison/components/CompareImage.liquid.js +7 -7
  200. package/dist/esm/image-comparison/next.js +1 -1
  201. package/dist/esm/image-detection/next.js +1 -1
  202. package/dist/esm/input/next.js +1 -1
  203. package/dist/esm/line/next.js +1 -1
  204. package/dist/esm/link/next.js +1 -1
  205. package/dist/esm/marquee/components/Marquee.liquid.js +21 -21
  206. package/dist/esm/marquee/next.js +1 -1
  207. package/dist/esm/menu/next.js +1 -1
  208. package/dist/esm/modal/next.js +1 -1
  209. package/dist/esm/pagination/next.js +1 -1
  210. package/dist/esm/post-purchase/advanced-list/next.js +1 -1
  211. package/dist/esm/post-purchase/button/next.js +1 -1
  212. package/dist/esm/post-purchase/buyer-consent/next.js +1 -1
  213. package/dist/esm/post-purchase/callout-banner/components/CalloutBox.js +1 -1
  214. package/dist/esm/post-purchase/callout-banner/index.js +1 -1
  215. package/dist/esm/post-purchase/callout-banner/next.js +1 -1
  216. package/dist/esm/post-purchase/countdown-timer/next.js +1 -1
  217. package/dist/esm/post-purchase/image/next.js +1 -1
  218. package/dist/esm/post-purchase/line/next.js +1 -1
  219. package/dist/esm/post-purchase/link/next.js +1 -1
  220. package/dist/esm/post-purchase/product/components/product-offer/components/ProductOffer.js +1 -1
  221. package/dist/esm/post-purchase/product/components/product-offer/components/ProductOfferItem.js +1 -1
  222. package/dist/esm/post-purchase/product/index.js +1 -1
  223. package/dist/esm/post-purchase/product/next.js +1 -1
  224. package/dist/esm/post-purchase/text/next.js +1 -1
  225. package/dist/esm/product/components/ProductImages.liquid.js +12 -12
  226. package/dist/esm/product/components/dynamic-checkout/Button.liquid.js +14 -14
  227. package/dist/esm/product/components/file-upload/UploadFile.liquid.js +4 -3
  228. package/dist/esm/product/components/product-badge/ProductBadge.js +1 -1
  229. package/dist/esm/product/components/product-badge/ProductBadge.liquid.js +6 -6
  230. package/dist/esm/product/components/product-bundle/ProductBundleDiscount.liquid.js +7 -8
  231. package/dist/esm/product/components/product-button/ProductButton.liquid.js +6 -7
  232. package/dist/esm/product/components/product-description/ProductDescription.liquid.js +4 -4
  233. package/dist/esm/product/components/product-discount-tag/ProductDiscountTag.js +1 -1
  234. package/dist/esm/product/components/product-discount-tag/ProductDiscountTag.liquid.js +8 -8
  235. package/dist/esm/product/components/product-images-v2/ProductImagesV2.liquid.js +12 -12
  236. package/dist/esm/product/components/product-images-v2/components/child/ProductFeaturedImageOnly.js +1 -1
  237. package/dist/esm/product/components/product-images-v3/ProductImagesV3.liquid.js +12 -12
  238. package/dist/esm/product/components/product-images-v3/ProductImagesV3Embla.liquid.js +14 -14
  239. package/dist/esm/product/components/product-images-v3/components/child/ProductFeaturedImageOnly.js +1 -1
  240. package/dist/esm/product/components/product-list/ProductList.js +1 -1
  241. package/dist/esm/product/components/product-list/ProductListCarouselItem.liquid.js +6 -5
  242. package/dist/esm/product/components/product-list/ProductListGridItem.liquid.js +8 -7
  243. package/dist/esm/product/components/product-list/ProductListGridLayout.liquid.js +7 -9
  244. package/dist/esm/product/components/product-list-v3/ProductList.js +1 -1
  245. package/dist/esm/product/components/product-list-v3/ProductListCarouselItem.liquid.js +6 -6
  246. package/dist/esm/product/components/product-list-v3/ProductListGridItem.liquid.js +8 -7
  247. package/dist/esm/product/components/product-list-v3/ProductListGridLayout.liquid.js +7 -9
  248. package/dist/esm/product/components/product-list-v3/common/helpers.js +1 -1
  249. package/dist/esm/product/components/product-price/ProductPrice.liquid.js +3 -3
  250. package/dist/esm/product/components/product-quick-view/ProductQuickView.js +1 -1
  251. package/dist/esm/product/components/product-sku/Sku.liquid.js +5 -6
  252. package/dist/esm/product/components/product-title/ProductTitle.liquid.js +6 -5
  253. package/dist/esm/product/components/product-variants/ProductVariants.liquid.js +44 -44
  254. package/dist/esm/product/components/product-wrap/Product.js +1 -1
  255. package/dist/esm/product/components/product-wrap/Product.liquid.js +6 -6
  256. package/dist/esm/product/components/product-wrap/hook/useProductSetting.js +1 -1
  257. package/dist/esm/product/index.js +1 -1
  258. package/dist/esm/product/next.js +1 -1
  259. package/dist/esm/radio/next.js +1 -1
  260. package/dist/esm/select/next.js +1 -1
  261. package/dist/esm/shop-pay-installment/next.js +1 -1
  262. package/dist/esm/sticky/components/Sticky.liquid.js +12 -11
  263. package/dist/esm/sticky/hooks/useSticky.js +1 -1
  264. package/dist/esm/sticky/index.js +1 -1
  265. package/dist/esm/sticky/next.js +1 -1
  266. package/dist/esm/stock-counter/next.js +1 -1
  267. package/dist/esm/tab/components/Tabs.liquid.js +11 -12
  268. package/dist/esm/tab/next.js +1 -1
  269. package/dist/esm/text/components/Text.liquid.js +3 -3
  270. package/dist/esm/textarea/next.js +1 -1
  271. package/dist/esm/third-party/next.js +1 -1
  272. package/dist/esm/third-party/settings/AppstleBundlesDiscounts/index.js +2 -2
  273. package/dist/esm/third-party/settings/BoldSubscriptions/index.js +1 -1
  274. package/dist/esm/third-party/settings/BoldSubscriptions/uiV2.js +1 -1
  275. package/dist/esm/third-party/settings/GloColorSwatchvariantImage/index.js +1 -1
  276. package/dist/esm/third-party/settings/HextomCountdownTimerBar/index.js +2 -2
  277. package/dist/esm/third-party/settings/LoopSubscriptions/index.js +1 -1
  278. package/dist/esm/third-party/settings/LoopSubscriptions/uiV2.js +1 -1
  279. package/dist/esm/third-party/settings/RechargeSubscriptions/index.js +1 -1
  280. package/dist/esm/third-party/settings/SeoantTrustBadgesIcon/uiV2.js +1 -1
  281. package/dist/esm/third-party/settings/ShopifyForms/uiV2.js +1 -1
  282. package/dist/esm/third-party/settings/SkioSubscriptionsYcS20/index.js +2 -2
  283. package/dist/esm/third-party/settings/SproutPlantTreesGrowSales/index.js +1 -1
  284. package/dist/esm/third-party/settings/TrustshopProductReviews/index.js +2 -2
  285. package/dist/esm/third-party/settings/WcWishlistBackInStock/index.js +2 -2
  286. package/dist/esm/third-party-instant/next.js +1 -1
  287. package/dist/esm/third-party-slot/next.js +1 -1
  288. package/dist/esm/video/components/LiteVimeoEmbed.liquid.js +3 -4
  289. package/dist/esm/video/components/LiteYouTubeEmbed.liquid.js +4 -5
  290. package/dist/esm/video/next.js +1 -1
  291. package/package.json +5 -5
  292. package/dist/cjs/product/components/product-list-v3/constants/index.js +0 -1
  293. package/dist/cjs/product/components/product-list-v3/hooks/useCollectionQuery.js +0 -1
  294. package/dist/cjs/product/components/product-list-v3/hooks/useMainRelatedProductQuery.js +0 -1
  295. package/dist/cjs/product/components/product-list-v3/hooks/useProductRelatedQuery.js +0 -1
  296. package/dist/cjs/product/components/product-list-v3/hooks/useProductsQuery.js +0 -1
  297. package/dist/cjs/product/components/product-list-v3/hooks/useRelatedProductIDAssigned.js +0 -1
  298. package/dist/cjs/product/components/product-wrap/hook/useProductQuery.js +0 -1
  299. package/dist/esm/product/components/product-list-v3/constants/index.js +0 -1
  300. package/dist/esm/product/components/product-list-v3/hooks/useCollectionQuery.js +0 -1
  301. package/dist/esm/product/components/product-list-v3/hooks/useMainRelatedProductQuery.js +0 -1
  302. package/dist/esm/product/components/product-list-v3/hooks/useProductRelatedQuery.js +0 -1
  303. package/dist/esm/product/components/product-list-v3/hooks/useProductsQuery.js +0 -1
  304. package/dist/esm/product/components/product-list-v3/hooks/useRelatedProductIDAssigned.js +0 -1
  305. package/dist/esm/product/components/product-wrap/hook/useProductQuery.js +0 -1
@@ -1 +1 @@
1
- let t=[{controls:[{setting:{id:"install"},layout:"vertical"}]},{controls:[{label:"Choose widget",setting:{id:"widgetType"}}]},{controls:[{setting:{id:"openApp"},layout:"vertical"}]},{controls:[{label:"Align",setting:{id:"align"}}]}];export{t as default};
1
+ let t=[{controls:[{setting:{id:"install"},layout:"vertical"}]},{controls:[{label:"Choose widget",setting:{id:"widgetType"}}]},{controls:[{label:"Align",setting:{id:"align"}}]}];export{t as default};
@@ -1,4 +1,4 @@
1
1
  import e from"../../configs/RechargeSubscriptions.js";import t from"./uiV2.js";import{get3rdPartyInstallLink as i}from"../../common/helpers.js";let l={tag:e.tag,label:e.label,icon:'<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://ucarecdn.com/c566bfce-491d-4642-817a-6f4ffc023065/-/format/auto/-/preview/3000x3000/-/quality/lighter/?width=22&height=22">',editorConfigs:{placeholder:{flowTag:["Product"]},component:{isThirdParty:!0}},presets:[{id:e.id,name:e.label,hideTextContent:!0,icon:{desktop:`<div class="w-full flex flex-col items-center">
2
2
  <img class="w-24 border border-dark-200 rounded-medium" src="https://ucarecdn.com/c566bfce-491d-4642-817a-6f4ffc023065/-/format/auto/-/preview/3000x3000/-/quality/lighter/?width=22&height=22">
3
3
  <span class="preset-item-title">Recharge Subscriptions</span>
4
- </div>`},components:[{tag:e.tag}]}],settings:[{id:"setting",controls:[{id:"appBlockId",type:"input",default:""},{id:"productHandle",type:"product-handle",hide:!0},{id:"widgetType",label:"Choose widget",type:"select",options:[{label:"Subscription Widget",value:"subscription-widget"},{label:"Subscription Widget 2.0",value:"subscription-widget-v2"}],default:"subscription-widget"},{id:"install",type:"open-link",target:"_blank",linkType:"install",href:i({handle:"recharge-subscriptions"}),appName:e.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"https://admin.shopify.com/?redirect=/apps/0009de8c024a6126315f5dcd4250fd61",appName:e.label},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:[],uiV2:t};export{l as default};
4
+ </div>`},components:[{tag:e.tag}]}],settings:[{id:"setting",controls:[{id:"appBlockId",type:"input",default:""},{id:"productHandle",type:"product-handle",hide:!0},{id:"widgetType",label:"Choose widget",type:"select",options:[{label:"Subscription Widget",value:"subscription-widget"},{label:"Subscription Widget 2.0",value:"subscription-widget-v2"}],default:"subscription-widget"},{id:"install",type:"open-link",target:"_blank",linkType:"install",href:i({handle:"recharge-subscriptions"}),appName:e.label},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:[],uiV2:t};export{l as default};
@@ -1 +1 @@
1
- let t=[{controls:[{setting:{id:"install"},layout:"vertical"}]},{controls:[{type:"combo",label:"Badge ID",iconName:"polaris-text-block",getValueFromSettingID:"BadgeId",isHideClear:!0,popoverLabel:"Badge ID",controls:[{label:"Content",options:{fullWidth:!0},layout:"vertical",setting:{id:"BadgeId"}}]}]},{controls:[{setting:{id:"openApp"},layout:"vertical"}]},{controls:[{label:"Align",setting:{id:"align"}}]}];export{t as default};
1
+ let t=[{controls:[{setting:{id:"install"},layout:"vertical"}]},{controls:[{type:"combo",label:"Badge ID",iconName:"polaris-text-block",getValueFromSettingID:"BadgeId",isHideClear:!0,popoverLabel:"Badge ID",controls:[{label:"Content",options:{fullWidth:!0},layout:"vertical",setting:{id:"BadgeId"}}]}]},{controls:[{label:"Align",setting:{id:"align"}}]}];export{t as default};
@@ -1 +1 @@
1
- let t=[{controls:[{setting:{id:"install"},layout:"vertical"}]},{controls:[{type:"combo",label:"Form ID",iconName:"polaris-text-block",getValueFromSettingID:"formId",isHideClear:!0,popoverLabel:"Form ID",controls:[{label:"Content",options:{fullWidth:!0},layout:"vertical",setting:{id:"formId"}}]}]},{controls:[{setting:{id:"openApp"},layout:"vertical"}]},{controls:[{label:"Align",setting:{id:"align"}}]}];export{t as default};
1
+ let t=[{controls:[{setting:{id:"install"},layout:"vertical"}]},{controls:[{type:"combo",label:"Form ID",iconName:"polaris-text-block",getValueFromSettingID:"formId",isHideClear:!0,popoverLabel:"Form ID",controls:[{label:"Content",options:{fullWidth:!0},layout:"vertical",setting:{id:"formId"}}]}]},{controls:[{label:"Align",setting:{id:"align"}}]}];export{t as default};
@@ -1,4 +1,4 @@
1
- import e from"../../configs/SkioSubscriptionsYcS20.js";import t from"./uiV2.js";import{get3rdPartyInstallLink as i}from"../../common/helpers.js";let l={tag:e.tag,label:e.label,icon:'<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/8dd0dfb789ffd9e447e7eb98210ccde7/icon/CNW2qO36iIQDEAE=.png?width=22&height=22">',editorConfigs:{placeholder:{flowTag:["Product"]},component:{isThirdParty:!0}},presets:[{id:e.id,name:e.label,hideTextContent:!0,icon:{desktop:`<div class="w-full flex flex-col items-center">
1
+ import e from"../../configs/SkioSubscriptionsYcS20.js";import t from"./uiV2.js";let i={tag:e.tag,label:e.label,icon:'<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/8dd0dfb789ffd9e447e7eb98210ccde7/icon/CNW2qO36iIQDEAE=.png?width=22&height=22">',editorConfigs:{placeholder:{flowTag:["Product"]},component:{isThirdParty:!0}},presets:[{id:e.id,name:e.label,hideTextContent:!0,icon:{desktop:`<div class="w-full flex flex-col items-center">
2
2
  <img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/8dd0dfb789ffd9e447e7eb98210ccde7/icon/CNW2qO36iIQDEAE=.png?width=22&height=22">
3
3
  <span class="preset-item-title">Skio Subscriptions (YC S20)</span>
4
- </div>`},components:[{tag:e.tag}]}],settings:[{id:"setting",controls:[{id:"appBlockId",type:"input",default:""},{id:"widgetType",label:"Choose widget",type:"select",options:[{label:"App Block",value:"app-block"}],default:"app-block"},{id:"sellingPlanId",type:"input",default:""},{id:"install",type:"open-link",target:"_blank",linkType:"install",href:i({handle:"skio-subscriptions-app"}),appName:e.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"https://admin.shopify.com/?redirect=/apps/8dd0dfb789ffd9e447e7eb98210ccde7",appName:e.label},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:[],uiV2:t};export{l as default};
4
+ </div>`},components:[{tag:e.tag}]}],settings:[{id:"setting",controls:[{id:"appBlockId",type:"input",default:""},{id:"widgetType",label:"Choose widget",type:"select",options:[{label:"App Block",value:"app-block"}],default:"app-block"},{id:"sellingPlanId",type:"input",default:""},{id:"install",type:"open-link",target:"_blank",linkType:"install",href:"",appName:e.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"",appName:e.label},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:[],uiV2:t};export{i as default};
@@ -1,4 +1,4 @@
1
1
  import e from"../../configs/SproutPlantTreesGrowSales.js";import t from"./uiV2.js";import{get3rdPartyInstallLink as a}from"../../common/helpers.js";let l={tag:e.tag,label:e.label,icon:'<img class="gp-w-6 gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/864c36881d230c8394a4183ce5904daa/icon/CKWWhLbF0_YCEAE=.png?width=22&height=22">',editorConfigs:{component:{isThirdParty:!0}},presets:[{id:e.id,name:e.label,hideTextContent:!0,icon:{desktop:`<div class="w-full flex flex-col items-center">
2
2
  <img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/864c36881d230c8394a4183ce5904daa/icon/CKWWhLbF0_YCEAE=.png?width=22&height=22">
3
3
  <span class="preset-item-title">Sprout: Plant Trees Grow Sales</span>
4
- </div>`},components:[{tag:e.tag}]}],settings:[{id:"setting",controls:[{id:"appBlockId",type:"input",default:""},{id:"widgetType",label:"Choose widget",type:"select",options:[{label:"Badge",value:"badge"},{label:"Impact Banner",value:"impact-banner"}],default:"badge"},{id:"install",type:"open-link",target:"_blank",linkType:"install",href:a({handle:"sprout-plant-trees-grow-sales"}),appName:e.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"https://admin.shopify.com/?redirect=/apps/864c36881d230c8394a4183ce5904daa",appName:e.label},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:[],uiV2:t};export{l as default};
4
+ </div>`},components:[{tag:e.tag}]}],settings:[{id:"setting",controls:[{id:"appBlockId",type:"input",default:""},{id:"widgetType",label:"Choose widget",type:"select",options:[{label:"Badge",value:"badge"},{label:"Impact Banner",value:"impact-banner"}],default:"badge"},{id:"install",type:"open-link",target:"_blank",linkType:"install",href:a({handle:"sprout-plant-trees-grow-sales"}),appName:e.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"",appName:e.label},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:[],uiV2:t};export{l as default};
@@ -1,4 +1,4 @@
1
- import e from"../../configs/TrustshopProductReviews.js";import t from"./uiV2.js";import{get3rdPartyInstallLink as i}from"../../common/helpers.js";let l={tag:e.tag,label:e.label,icon:'<img class="gp-w-6 gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/97bd740ed0597c4d5220e15ae930308d/icon/CKub0pnr1okDEAE=.png?width=22&height=22">',editorConfigs:{placeholder:{flowTag:["Product"]},component:{isThirdParty:!0}},presets:[{id:e.id,name:e.label,hideTextContent:!0,icon:{desktop:`<div class="w-full flex flex-col items-center">
1
+ import e from"../../configs/TrustshopProductReviews.js";import t from"./uiV2.js";let i={tag:e.tag,label:e.label,icon:'<img class="gp-w-6 gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/97bd740ed0597c4d5220e15ae930308d/icon/CKub0pnr1okDEAE=.png?width=22&height=22">',editorConfigs:{placeholder:{flowTag:["Product"]},component:{isThirdParty:!0}},presets:[{id:e.id,name:e.label,hideTextContent:!0,icon:{desktop:`<div class="w-full flex flex-col items-center">
2
2
  <img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/97bd740ed0597c4d5220e15ae930308d/icon/CKub0pnr1okDEAE=.png?width=22&height=22">
3
3
  <span class="preset-item-title">TrustShop: Product Reviews</span>
4
- </div>`},components:[{tag:e.tag}]}],settings:[{id:"setting",controls:[{id:"appBlockId",type:"input",default:""},{id:"productHandle",type:"product-handle",hide:!0},{id:"widgetType",label:"Choose widget",type:"select",options:[{label:"Widget Product Rating",value:"widget-product-rating"},{label:"All Reviews",value:"all-reviews"},{label:"Widget Box",value:"widget-box"},{label:"Review Testimonial",value:"review-testimonial"}],default:"widget-product-rating"},{id:"install",type:"open-link",target:"_blank",linkType:"install",href:i({handle:"trustshop-product-reviews"}),appName:e.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"https://admin.shopify.com/?redirect=/apps/97bd740ed0597c4d5220e15ae930308d",appName:e.label},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:[],uiV2:t};export{l as default};
4
+ </div>`},components:[{tag:e.tag}]}],settings:[{id:"setting",controls:[{id:"appBlockId",type:"input",default:""},{id:"productHandle",type:"product-handle",hide:!0},{id:"widgetType",label:"Choose widget",type:"select",options:[{label:"Widget Product Rating",value:"widget-product-rating"},{label:"All Reviews",value:"all-reviews"},{label:"Widget Box",value:"widget-box"},{label:"Review Testimonial",value:"review-testimonial"}],default:"widget-product-rating"},{id:"install",type:"open-link",target:"_blank",linkType:"install",href:"",appName:e.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"",appName:e.label},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:[],uiV2:t};export{i as default};
@@ -1,7 +1,7 @@
1
- import e from"../../configs/WcWishlistBackInStock.js";import i from"./uiV2.js";import{get3rdPartyInstallLink as t}from"../../common/helpers.js";let l={tag:e.tag,label:e.label,icon:'<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/6c6bdd5180d0848b68f89d106476f116/icon/CLyD5I2Al_0CEAE=.jpeg?width=22&height=22">',editorConfigs:{placeholder:{flowTag:["Product"]},component:{isThirdParty:!0}},presets:[{id:"wishlist-collection",name:e.label,hideTextContent:!0,icon:{desktop:`<div class="w-full flex flex-col items-center">
1
+ import e from"../../configs/WcWishlistBackInStock.js";import i from"./uiV2.js";let t={tag:e.tag,label:e.label,icon:'<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/6c6bdd5180d0848b68f89d106476f116/icon/CLyD5I2Al_0CEAE=.jpeg?width=22&height=22">',editorConfigs:{placeholder:{flowTag:["Product"]},component:{isThirdParty:!0}},presets:[{id:"wishlist-collection",name:e.label,hideTextContent:!0,icon:{desktop:`<div class="w-full flex flex-col items-center">
2
2
  <img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/6c6bdd5180d0848b68f89d106476f116/icon/CLyD5I2Al_0CEAE=.jpeg?width=22&height=22">
3
3
  <span class="preset-item-title">WC Wishlist & Back in Stock</span>
4
4
  </div>`},components:[{tag:e.tag,settings:{widgetType:"wishlist-collection-block"}}]},{id:"wishlist-product",name:e.label,hideTextContent:!0,icon:{desktop:`<div class="w-full flex flex-col items-center">
5
5
  <img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/6c6bdd5180d0848b68f89d106476f116/icon/CLyD5I2Al_0CEAE=.jpeg?width=22&height=22">
6
6
  <span class="preset-item-title">WC Wishlist & Back in Stock</span>
7
- </div>`},components:[{tag:e.tag,settings:{widgetType:"wishlist-bis-block"}}]}],settings:[{id:"setting",controls:[{id:"widgetType",label:"Choose widget",type:"select",default:"wishlist-bis-block",options:[{label:"Back in Stock Product",value:"wishlist-bis-block",hideOnPage:["ARTICLE","BLOG","COLLECTION","GP_ARTICLE","GP_BLOG","GP_COLLECTION","GP_INDEX","GP_STATIC","STATIC"]},{label:"Wishlist Product",value:"wishlist-block",hideOnPage:["ARTICLE","BLOG","COLLECTION","GP_ARTICLE","GP_BLOG","GP_COLLECTION","GP_INDEX","GP_STATIC","STATIC"]},{label:"Wishlist Collection",value:"wishlist-collection-block",hideOnPage:["ARTICLE","BLOG","PRODUCT","GP_ARTICLE","GP_BLOG","GP_PRODUCT","GP_INDEX","GP_STATIC","STATIC"]},{label:"Back in Stock Collection",value:"wishlist-bis-collection",hideOnPage:["ARTICLE","BLOG","PRODUCT","GP_ARTICLE","GP_BLOG","GP_PRODUCT","GP_INDEX","GP_STATIC","STATIC"]}]},{id:"install",type:"open-link",target:"_blank",linkType:"install",href:t({handle:"wc-wishlist-back-in-stock"}),appName:e.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"https://admin.shopify.com/?redirect=/apps/6c6bdd5180d0848b68f89d106476f116",appName:e.label},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:[],uiV2:i};export{l as default};
7
+ </div>`},components:[{tag:e.tag,settings:{widgetType:"wishlist-bis-block"}}]}],settings:[{id:"setting",controls:[{id:"widgetType",label:"Choose widget",type:"select",default:"wishlist-bis-block",options:[{label:"Back in Stock Product",value:"wishlist-bis-block",hideOnPage:["ARTICLE","BLOG","COLLECTION","GP_ARTICLE","GP_BLOG","GP_COLLECTION","GP_INDEX","GP_STATIC","STATIC"]},{label:"Wishlist Product",value:"wishlist-block",hideOnPage:["ARTICLE","BLOG","COLLECTION","GP_ARTICLE","GP_BLOG","GP_COLLECTION","GP_INDEX","GP_STATIC","STATIC"]},{label:"Wishlist Collection",value:"wishlist-collection-block",hideOnPage:["ARTICLE","BLOG","PRODUCT","GP_ARTICLE","GP_BLOG","GP_PRODUCT","GP_INDEX","GP_STATIC","STATIC"]},{label:"Back in Stock Collection",value:"wishlist-bis-collection",hideOnPage:["ARTICLE","BLOG","PRODUCT","GP_ARTICLE","GP_BLOG","GP_PRODUCT","GP_INDEX","GP_STATIC","STATIC"]}]},{id:"install",type:"open-link",target:"_blank",linkType:"install",href:"https://apps.shopify.com/wishlist-club?utm_source=gempages",appName:e.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"",appName:e.label},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:[],uiV2:i};export{t 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 n=o(()=>import("./components/InstantJudgemeReviews.js"),{ssr:!1,loading:t}),s=o(()=>import("./components/InstantLooxReviews.js"),{ssr:!1,loading:t}),m=o(()=>import("./components/InstantKlaviyo.js"),{ssr:!1,loading:t}),r=o(()=>import("./components/InstantYotpoLoyalty.js"),{ssr:!1,loading:t});var i={InstantJudgemeReviews:n,InstantLooxReviews:s,InstantKlaviyo:m,InstantYotpoLoyalty:r};export{i 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/InstantJudgemeReviews.js"),{ssr:!1,loading:t}),s=o(()=>import("./components/InstantLooxReviews.js"),{ssr:!1,loading:t}),r=o(()=>import("./components/InstantKlaviyo.js"),{ssr:!1,loading:t}),m=o(()=>import("./components/InstantYotpoLoyalty.js"),{ssr:!1,loading:t});var e={InstantJudgemeReviews:n,InstantLooxReviews:s,InstantKlaviyo:r,InstantYotpoLoyalty:m};export{e 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 r=o(()=>import("./components/ThirdPartySlot.js"),{loading:t});var m={ThirdPartySlot:r};export{m 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 r=o(()=>import("./components/ThirdPartySlot.js"),{loading:t});var m={ThirdPartySlot:r};export{m as default};
@@ -1,6 +1,5 @@
1
- import{template as e,RenderIf as t,isLocalEnv as s,baseAssetURL as i}from"@gem-sdk/core";import{getSettingPreloadData as r}from"../../helpers.js";import{createStateOrContext as l,createStyle as a,createClass as m,If as o}from"@gem-sdk/system";import{getArticleVimeoClasses as p,getImageVimeoClasses as c,getButtonVimeoClasses as d,getIframeVimeoClasses as n}from"../common/classes.js";import{getIframeVimeoStyle as f,getArticleVimeoStyle as g}from"../common/styles.js";import{getVimeoParams as y}from"../common/helpers.js";import $ from"../../image/components/NextImage.liquid.js";let h=h=>{let{title:u,id:b,lazy:v,aspectRatio:j,autoplay:S,muted:w,thumbnailLink:x,poster:E,translatedVideoUrl:k,pageContext:N}=h,{iframeSrc:A}=y(h),I=!v,T=h.thumbnail,V=l({id:b,thumbnail:x,lazy:v,iframeSrc:A,title:u,autoplay:S,muted:w,style:h?.vimeoStyleIframe||"",translatedVideoUrl:k}),C=a({...f(j)}),G=a({...g(j,"")}),L=m({...p(T,j)}),M=m({...c(I)}),O=m({...d(I)}),P=m({...n()});return e`
2
- <gp-lite-vimeo-embed>
3
- <script gp-data type="application/json">${JSON.stringify(V)}</script>
1
+ import{template as e,RenderIf as t,isLocalEnv as s,baseAssetURL as i}from"@gem-sdk/core";import{getSettingPreloadData as l}from"../../helpers.js";import{createStateOrContext as r,createStyle as a,createClass as m,If as o}from"@gem-sdk/system";import{getArticleVimeoClasses as p,getImageVimeoClasses as c,getButtonVimeoClasses as d,getIframeVimeoClasses as f}from"../common/classes.js";import{getIframeVimeoStyle as g,getArticleVimeoStyle as n}from"../common/styles.js";import{getVimeoParams as y}from"../common/helpers.js";import $ from"../../image/components/NextImage.liquid.js";let h=h=>{let{title:u,id:b,lazy:v,aspectRatio:S,autoplay:j,muted:w,thumbnailLink:x,poster:E,translatedVideoUrl:k,pageContext:N}=h,{iframeSrc:A}=y(h),I=!v,T=h.thumbnail,V=r({id:b,thumbnail:x,lazy:v,iframeSrc:A,title:u,autoplay:j,muted:w,style:h?.vimeoStyleIframe||"",translatedVideoUrl:k}),C=a({...g(S)}),G=a({...n(S,"")}),L=m({...p(T,S)}),M=m({...c(I)}),O=m({...d(I)}),P=m({...f()});return e`
2
+ <gp-lite-vimeo-embed gp-data='${JSON.stringify(V)}'>
4
3
  <article
5
4
  aria-hidden
6
5
  class="${L}"
@@ -29,5 +28,5 @@ import{template as e,RenderIf as t,isLocalEnv as s,baseAssetURL as i}from"@gem-s
29
28
  ></iframe>`)}
30
29
  </article>
31
30
  </gp-lite-vimeo-embed>
32
- ${t(s,`<script ${r('class="gps-link" delay',"src")}="{{ 'gp-lite-vimeo-embed-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${r('class="gps-link" delay',"src")}="${i}/assets-v2/gp-lite-vimeo-embed-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
31
+ ${t(s,`<script ${l('class="gps-link" delay',"src")}="{{ 'gp-lite-vimeo-embed-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${l('class="gps-link" delay',"src")}="${i}/assets-v2/gp-lite-vimeo-embed-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
33
32
  `};export{h as default};
@@ -1,13 +1,12 @@
1
- import{RenderIf as e,isLocalEnv as t,baseAssetURL as s,template as r}from"@gem-sdk/core";import i from"../../image/components/NextImage.liquid.js";import{getSettingPreloadData as a}from"../../helpers.js";import{createStateOrContext as l,createClass as o,createStyle as p,If as m}from"@gem-sdk/system";import{getButtonYoutubeClasses as c,getImageYoutubeClasses as d,getArticleYoutubeClasses as n,getIframeYoutubeClasses as u,getYoutubeContentClasses as y}from"../common/classes.js";import{getIframeYoutubeStyle as f,getArticleYoutubeStyle as $}from"../common/styles.js";import{getYoutubeParams as g}from"../common/helpers.js";let b=b=>{let{style:h,iframeClass:v,wrapperClass:S,title:j,poster:w,translatedVideoUrl:z,autoplay:C,pageContext:E}=b,N=`gp-video-${b.uid}`,{posterUrl:k,iframeSrc:x}=g(b),B=!!b.thumbnail,T=w?.preload,A=l({lazy:b.lazy,hasThumbnail:B,style:h,title:j,iframeSrc:x,translatedVideoUrl:z,autoplay:C,isHeroBanner:b.isHeroBanner}),H=!b.lazy&&(!B||!!b.autoplay),M=o({...c(H)}),G=o({...d()}),I=o({...n(T||!1,S)}),L=o({...u(v)}),O=p({...f(h)}),P=p({...$(h,k)}),_=o({...y()});return r`
2
- <gp-lite-youtube-embed>
3
- <script gp-data type="application/json">${JSON.stringify(A)}</script>
1
+ import{RenderIf as e,isLocalEnv as t,baseAssetURL as s,template as r}from"@gem-sdk/core";import a from"../../image/components/NextImage.liquid.js";import{getSettingPreloadData as l}from"../../helpers.js";import{createStateOrContext as i,createClass as o,createStyle as p,If as m}from"@gem-sdk/system";import{getButtonYoutubeClasses as d,getImageYoutubeClasses as c,getArticleYoutubeClasses as u,getIframeYoutubeClasses as n,getYoutubeContentClasses as f}from"../common/classes.js";import{getIframeYoutubeStyle as y,getArticleYoutubeStyle as $}from"../common/styles.js";import{getYoutubeParams as g}from"../common/helpers.js";let b=b=>{let{style:h,iframeClass:v,wrapperClass:S,title:j,poster:w,translatedVideoUrl:z,autoplay:C,pageContext:E}=b,N=`gp-video-${b.uid}`,{posterUrl:k,iframeSrc:x}=g(b),B=!!b.thumbnail,T=w?.preload,A=i({lazy:b.lazy,hasThumbnail:B,style:h,title:j,iframeSrc:x,translatedVideoUrl:z,autoplay:C,isHeroBanner:b.isHeroBanner}),H=!b.lazy&&(!B||!!b.autoplay),M=o({...d(H)}),G=o({...c()}),I=o({...u(T||!1,S)}),L=o({...n(v)}),O=p({...y(h)}),P=p({...$(h,k)}),_=o({...f()});return r`
2
+ <gp-lite-youtube-embed gp-data='${JSON.stringify(A)}'>
4
3
  <article
5
4
  aria-hidden
6
5
  class="${I}"
7
6
  data-title="${j}"
8
7
  style="${P}"
9
8
  >
10
- ${i({id:N,src:k,alt:w?.altText,title:w?.imageTitle,priority:w?.preload,pageContext:E,className:G,isDisableAspectStyle:!0,isNotLazyload:w?.preload})}
9
+ ${a({id:N,src:k,alt:w?.altText,title:w?.imageTitle,priority:w?.preload,pageContext:E,className:G,isDisableAspectStyle:!0,isNotLazyload:w?.preload})}
11
10
  <button type="button" aria-label="Play" class="${M}">
12
11
  <svg height="100%" version="1.1" viewBox="0 0 68 48" width="100%">
13
12
  <path
@@ -33,5 +32,5 @@ import{RenderIf as e,isLocalEnv as t,baseAssetURL as s,template as r}from"@gem-s
33
32
  `:e})())}
34
33
  </article>
35
34
  </gp-lite-youtube-embed>
36
- ${e(t,`<script ${a('class="gps-link" delay',"src")}="{{ 'gp-lite-youtube-embed-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${a('class="gps-link" delay',"src")}="${s}/assets-v2/gp-lite-youtube-embed-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
35
+ ${e(t,`<script ${l('class="gps-link" delay',"src")}="{{ 'gp-lite-youtube-embed-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${l('class="gps-link" delay',"src")}="${s}/assets-v2/gp-lite-youtube-embed-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
37
36
  `};export{b as default};
@@ -1 +1 @@
1
- import o from"next/dynamic";import m from"../common/components/Loading.js";import"react/jsx-runtime";import"react";import"@gem-sdk/core";import"../common/const.js";let t=o(()=>import("./components/Video.js"),{loading:m});var r={Video:t};export{r as default};
1
+ import o from"next/dynamic";import m from"../common/components/Loading.js";import"react/jsx-runtime";import"react";import"@gem-sdk/core";let t=o(()=>import("./components/Video.js"),{loading:m});var r={Video:t};export{r as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "19.1.0-staging.9",
3
+ "version": "20.0.1",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -18,7 +18,7 @@
18
18
  "lint": "oxlint --format=stylish ./src",
19
19
  "test": "jest -c ./../../helpers/jest.config.ts",
20
20
  "test:watch": "jest -c ./../../helpers/jest.config.ts --watch",
21
- "type-check": "node ../../node_modules/typescript7/bin/tsc --noEmit",
21
+ "type-check": "yarn tsc --noEmit",
22
22
  "format": "prettier --write \"./src/**/*.{ts,tsx}\"",
23
23
  "relationship": "rollup -c ./scripts/rollup.config.settings.mjs && node ./scripts/element-relationship/index.js",
24
24
  "update-img-src-3rd": "node ./scripts/update-img-src-3rd.js",
@@ -26,9 +26,9 @@
26
26
  "i18n:extract": "rollup -c ./scripts/rollup.config.settings.mjs && node ./scripts/translate/extract-texts-to-locales.js && node ./scripts/translate/en-keys-usage.js"
27
27
  },
28
28
  "devDependencies": {
29
- "@gem-sdk/core": "19.1.0-staging.9",
30
- "@gem-sdk/styles": "19.1.0-staging.9",
31
- "@gem-sdk/system": "19.1.0-staging.9",
29
+ "@gem-sdk/core": "19.0.1",
30
+ "@gem-sdk/styles": "19.0.0",
31
+ "@gem-sdk/system": "19.0.0",
32
32
  "@types/react-transition-group": "^4.4.12",
33
33
  "postcss-import": "16.1.1",
34
34
  "@thedutchcoder/postcss-rem-to-px": "0.0.2",
@@ -1 +0,0 @@
1
- "use strict";exports.RELATED_TAG_PRODUCT_SETTING=void 0,function(T){T.Tags="tags",T.Collection="collection",T.Vendor="vendor"}(exports.RELATED_TAG_PRODUCT_SETTING||(exports.RELATED_TAG_PRODUCT_SETTING={})),exports.DEFAULT_COLLECTION_NUMBER_OF_PRODUCTS=4;
@@ -1 +0,0 @@
1
- "use strict";var e=require("@gem-sdk/core"),r=require("react"),t=require("swr");require("react/jsx-runtime");var o=require("../../../../common/const.js");exports.useCollectionQuery=({productSrc:a,numberOfProducts:i,orderBy:l,collectionID:n})=>{let u=e.useFetchHandle(),s=e.usePageStore(e=>e.publicStoreFrontData),c=r.useMemo(()=>e.hasPublicStoreFrontData(s)?e.createStoreFrontFetcher(s):u,[s]),C=e.useIsSampleProduct(),S=e.useIsStorefrontProduct(),d=r.useMemo(()=>a!==o.PRODUCT_LIST_PRODUCT_SOURCE.Collection&&a!==o.PRODUCT_LIST_PRODUCT_SOURCE.DynamicCollection?null:e.generateCollectionQueryKey({id:n,numberOfProducts:i,orderBy:l,isSample:C,isStorefront:S}),[a,C,S,n,i,l]),O=t(d,([,r])=>e.getCollection(c,r),{revalidateOnMount:!1,refreshInterval:0,revalidateIfStale:!1});return r.useEffect(()=>{if(a!==o.PRODUCT_LIST_PRODUCT_SOURCE.Collection&&a!==o.PRODUCT_LIST_PRODUCT_SOURCE.DynamicCollection)return;let e=!!O.error,r=O.isLoading||O.isValidating,t=!O.data&&!r;!e&&t&&O.mutate()},[a,O.data,O.error,O.isLoading,O.isValidating]),O};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../product-wrap/hook/useProductQuery.js");exports.default=({isRelatedProduct:r,relatedProductIdAssigned:t})=>{let{productData:{data:u,isLoading:d}}=e.default({id:r&&t?t:void 0});return{relatedProductIdAssigned:t,mainRelatedProduct:u,isLoading:d}};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("swr"),a=require("@gem-sdk/core"),r=require("./useMainRelatedProductQuery.js"),i=require("../constants/index.js");exports.default=({isRelatedProduct:d,productSetting:s,relatedProductIdAssigned:l,numberOfProducts:o})=>{let[n,u]=e.useState(!1),[c,g]=e.useState(),{mainRelatedProduct:h,isLoading:T}=r.default({isRelatedProduct:d,relatedProductIdAssigned:l}),f=a.useFetchHandle(),E=a.usePageStore(e=>e.publicStoreFrontData),m=e.useMemo(()=>a.hasPublicStoreFrontData(E)?a.createStoreFrontFetcher(E):f,[E]),P=t(c?["query/products",c]:null,async([,e])=>a.getProductQueryAll(m,e),{revalidateOnMount:!1,keepPreviousData:!0,refreshInterval:0,revalidateIfStale:!1}),p=s.relatedTag&&s.relatedTag[0],v=e.useMemo(()=>{if(!p)return!1;let e=p===i.RELATED_TAG_PRODUCT_SETTING.Tags&&!h?.tags?.length,t=p===i.RELATED_TAG_PRODUCT_SETTING.Collection&&!h?.collections?.edges.length,a=p===i.RELATED_TAG_PRODUCT_SETTING.Vendor&&!h?.vendor;return e||t||a},[p,h]),I=e.useMemo(()=>{if(!d)return!1;if(!h&&T)return!0;let e=!P.data&&!P.error&&!P.isLoading;return e||!P.error&&(P.isLoading||P.isValidating)},[d,h,T,P.error,P.isLoading,P.isValidating,P.data]);return e.useEffect(()=>{if(d&&h&&s.relatedTag&&"recommended-product"!==s.relatedType){let e;switch(u(!1),s.hasRelatedExclude&&(e=s?.relatedExclude&&s.relatedExclude.split(",").map(e=>e.trim())),s.relatedTag[0]){case"vendor":g({first:o,vendor:s.relatedTag&&"vendor"===s.relatedTag[0]?h?.vendor:"",idNEQ:h.id});break;case"collection":{let t=h?.collections?.edges.map(e=>e.node?.id);if(!t||t?.length===0){u(!0);break}g(e&&e.length>0?{first:o,idNEQ:h.id,hasCollectionProductsWith:[{hasCollectionWith:[{idIn:t},{titleNotIn:e}]}]}:{first:o,idNEQ:h.id,hasCollectionProductsWith:[{hasCollectionWith:[{idIn:t}]}]});break}case"tags":if(!h.tags||0===h.tags.length){u(!0);break}g(e&&e.length>0?{first:o,idNEQ:h.id,hasProductTagsWith:[{hasTagsWith:[{nameIn:h.tags},{nameNotIn:e}]}]}:{first:o,idNEQ:h.id,hasProductTagsWith:[{hasTagsWith:[{nameIn:h.tags}]}]})}}},[h,s.relatedType,s.relatedTag,o,s.relatedExclude,s.hasRelatedExclude,d]),e.useEffect(()=>{if(!d||!c)return;let e=!!P.error,t=P.isLoading||P.isValidating,a=!P.data&&!t;!e&&a&&P.mutate()},[d,P.data,P.error,P.isLoading,P.isValidating,c]),{isNotFoundRelatedProduct:n,relatedProducts:P,isNoRelatedProductData:v,relatedTagString:p,isLoading:I}};
@@ -1 +0,0 @@
1
- "use strict";var e=require("@gem-sdk/core"),r=require("react"),t=require("swr");require("react/jsx-runtime");var a=require("../../../../common/const.js");exports.useProductsQuery=({defaultSelectedProductCount:u,productIds:s,productSrc:o,selectedStatus:i})=>{let c=e.useFetchHandle(),n=e.usePageStore(e=>e.publicStoreFrontData),d=r.useMemo(()=>e.hasPublicStoreFrontData(n)?e.createStoreFrontFetcher(n):c,[n]),P=e.useIsSampleProduct(),l=e.useIsStorefrontProduct(),S=r.useMemo(()=>o!==a.PRODUCT_LIST_PRODUCT_SOURCE.PickProduct?null:e.generateProductsQueryKey({ids:s??[],isSample:P,isStorefront:l,defaultSelectedProductCount:u,selectedStatus:i}),[o,s,P,l,u]),g=t(S,async([,r])=>e.getProducts(d,r),{revalidateOnMount:!1,refreshInterval:0,revalidateIfStale:!1});return r.useEffect(()=>{if(o!==a.PRODUCT_LIST_PRODUCT_SOURCE.PickProduct)return;let e=!!g.error,r=g.isLoading||g.isValidating,t=!g.data&&!r;!e&&t&&g.mutate()},[o,g.data,g.error,g.isLoading,g.isValidating]),{...g}};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@gem-sdk/core");exports.default=function({productSetting:r}){let t=e.usePageStore(e=>e.dynamicProduct),d=r.relatedProductId,u=t?.productId&&t?.productId!==d?t?.productId:d;return{relatedProductIdAssigned:u}};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@gem-sdk/core"),r=require("react"),t=require("swr");exports.default=({id:a})=>{let u=e.useFetchHandle(),o=e.usePageStore(e=>e.publicStoreFrontData),s=e.useIsSampleProduct(),i=e.useIsStorefrontProduct(),n=r.useMemo(()=>e.hasPublicStoreFrontData(o)?e.createStoreFrontFetcher(o):u,[o]),d=r.useMemo(()=>a?e.generateProductQueryKey({id:a,isSample:s,isStorefront:i}):null,[a,s,i]),l=t(d,async([,r])=>e.getProduct(n,r),{revalidateOnMount:!1,refreshInterval:0,revalidateIfStale:!1});return r.useEffect(()=>{if(!a)return;let e=!!l.error,r=l.isLoading||l.isValidating,t=!l.data&&!r;!e&&t&&l.mutate()},[a,l.data,l.error,l.isLoading,l.isValidating]),{productData:l}};
@@ -1 +0,0 @@
1
- var T;!function(T){T.Tags="tags",T.Collection="collection",T.Vendor="vendor"}(T||(T={}));let o=4;export{o as DEFAULT_COLLECTION_NUMBER_OF_PRODUCTS,T as RELATED_TAG_PRODUCT_SETTING};
@@ -1 +0,0 @@
1
- import{useFetchHandle as t,usePageStore as r,hasPublicStoreFrontData as o,createStoreFrontFetcher as e,useIsSampleProduct as i,useIsStorefrontProduct as a,generateCollectionQueryKey as l,getCollection as n}from"@gem-sdk/core";import{useMemo as m,useEffect as c}from"react";import s from"swr";import"react/jsx-runtime";import{PRODUCT_LIST_PRODUCT_SOURCE as d}from"../../../../common/const.js";let u=({productSrc:u,numberOfProducts:f,orderBy:p,collectionID:g})=>{let C=t(),v=r(t=>t.publicStoreFrontData),y=m(()=>o(v)?e(v):C,[v]),D=i(),j=a(),x=m(()=>u!==d.Collection&&u!==d.DynamicCollection?null:l({id:g,numberOfProducts:f,orderBy:p,isSample:D,isStorefront:j}),[u,D,j,g,f,p]),I=s(x,([,t])=>n(y,t),{revalidateOnMount:!1,refreshInterval:0,revalidateIfStale:!1});return c(()=>{if(u!==d.Collection&&u!==d.DynamicCollection)return;let t=!!I.error,r=I.isLoading||I.isValidating,o=!I.data&&!r;!t&&o&&I.mutate()},[u,I.data,I.error,I.isLoading,I.isValidating]),I};export{u as useCollectionQuery};
@@ -1 +0,0 @@
1
- import t from"../../product-wrap/hook/useProductQuery.js";let r=({isRelatedProduct:r,relatedProductIdAssigned:e})=>{let{productData:{data:o,isLoading:u}}=t({id:r&&e?e:void 0});return{relatedProductIdAssigned:e,mainRelatedProduct:o,isLoading:u}};export{r as default};
@@ -1 +0,0 @@
1
- import{useState as e,useMemo as t,useEffect as a}from"react";import r from"swr";import{useFetchHandle as i,usePageStore as d,hasPublicStoreFrontData as l,createStoreFrontFetcher as o,getProductQueryAll as s}from"@gem-sdk/core";import n from"./useMainRelatedProductQuery.js";import{RELATED_TAG_PRODUCT_SETTING as g}from"../constants/index.js";let c=({isRelatedProduct:c,productSetting:u,relatedProductIdAssigned:h,numberOfProducts:f})=>{let[m,p]=e(!1),[T,E]=e(),{mainRelatedProduct:v,isLoading:I}=n({isRelatedProduct:c,relatedProductIdAssigned:h}),W=i(),x=d(e=>e.publicStoreFrontData),N=t(()=>l(x)?o(x):W,[x]),P=r(T?["query/products",T]:null,async([,e])=>s(N,e),{revalidateOnMount:!1,keepPreviousData:!0,refreshInterval:0,revalidateIfStale:!1}),Q=u.relatedTag&&u.relatedTag[0],k=t(()=>{if(!Q)return!1;let e=Q===g.Tags&&!v?.tags?.length,t=Q===g.Collection&&!v?.collections?.edges.length,a=Q===g.Vendor&&!v?.vendor;return e||t||a},[Q,v]),y=t(()=>{if(!c)return!1;if(!v&&I)return!0;let e=!P.data&&!P.error&&!P.isLoading;return e||!P.error&&(P.isLoading||P.isValidating)},[c,v,I,P.error,P.isLoading,P.isValidating,P.data]);return a(()=>{if(c&&v&&u.relatedTag&&"recommended-product"!==u.relatedType){let e;switch(p(!1),u.hasRelatedExclude&&(e=u?.relatedExclude&&u.relatedExclude.split(",").map(e=>e.trim())),u.relatedTag[0]){case"vendor":E({first:f,vendor:u.relatedTag&&"vendor"===u.relatedTag[0]?v?.vendor:"",idNEQ:v.id});break;case"collection":{let t=v?.collections?.edges.map(e=>e.node?.id);if(!t||t?.length===0){p(!0);break}E(e&&e.length>0?{first:f,idNEQ:v.id,hasCollectionProductsWith:[{hasCollectionWith:[{idIn:t},{titleNotIn:e}]}]}:{first:f,idNEQ:v.id,hasCollectionProductsWith:[{hasCollectionWith:[{idIn:t}]}]});break}case"tags":if(!v.tags||0===v.tags.length){p(!0);break}E(e&&e.length>0?{first:f,idNEQ:v.id,hasProductTagsWith:[{hasTagsWith:[{nameIn:v.tags},{nameNotIn:e}]}]}:{first:f,idNEQ:v.id,hasProductTagsWith:[{hasTagsWith:[{nameIn:v.tags}]}]})}}},[v,u.relatedType,u.relatedTag,f,u.relatedExclude,u.hasRelatedExclude,c]),a(()=>{if(!c||!T)return;let e=!!P.error,t=P.isLoading||P.isValidating,a=!P.data&&!t;!e&&a&&P.mutate()},[c,P.data,P.error,P.isLoading,P.isValidating,T]),{isNotFoundRelatedProduct:m,relatedProducts:P,isNoRelatedProductData:k,relatedTagString:Q,isLoading:y}};export{c as default};
@@ -1 +0,0 @@
1
- import{useFetchHandle as r,usePageStore as t,hasPublicStoreFrontData as e,createStoreFrontFetcher as o,useIsSampleProduct as i,useIsStorefrontProduct as a,generateProductsQueryKey as n,getProducts as m}from"@gem-sdk/core";import{useMemo as s,useEffect as d}from"react";import c from"swr";import"react/jsx-runtime";import{PRODUCT_LIST_PRODUCT_SOURCE as l}from"../../../../common/const.js";let u=({defaultSelectedProductCount:u,productIds:f,productSrc:p,selectedStatus:g})=>{let P=r(),k=t(r=>r.publicStoreFrontData),v=s(()=>e(k)?o(k):P,[k]),j=i(),x=a(),y=s(()=>p!==l.PickProduct?null:n({ids:f??[],isSample:j,isStorefront:x,defaultSelectedProductCount:u,selectedStatus:g}),[p,f,j,x,u]),I=c(y,async([,r])=>m(v,r),{revalidateOnMount:!1,refreshInterval:0,revalidateIfStale:!1});return d(()=>{if(p!==l.PickProduct)return;let r=!!I.error,t=I.isLoading||I.isValidating,e=!I.data&&!t;!r&&e&&I.mutate()},[p,I.data,I.error,I.isLoading,I.isValidating]),{...I}};export{u as useProductsQuery};
@@ -1 +0,0 @@
1
- import{usePageStore as d}from"@gem-sdk/core";function t({productSetting:t}){let r=d(d=>d.dynamicProduct),e=t.relatedProductId,o=r?.productId&&r?.productId!==e?r?.productId:e;return{relatedProductIdAssigned:o}}export{t as default};
@@ -1 +0,0 @@
1
- import{useFetchHandle as r,usePageStore as t,useIsSampleProduct as e,useIsStorefrontProduct as a,hasPublicStoreFrontData as i,createStoreFrontFetcher as o,generateProductQueryKey as l,getProduct as n}from"@gem-sdk/core";import{useMemo as d,useEffect as s}from"react";import u from"swr";let m=({id:m})=>{let f=r(),c=t(r=>r.publicStoreFrontData),g=e(),p=a(),v=d(()=>i(c)?o(c):f,[c]),y=d(()=>m?l({id:m,isSample:g,isStorefront:p}):null,[m,g,p]),I=u(y,async([,r])=>n(v,r),{revalidateOnMount:!1,refreshInterval:0,revalidateIfStale:!1});return s(()=>{if(!m)return;let r=!!I.error,t=I.isLoading||I.isValidating,e=!I.data&&!t;!r&&e&&I.mutate()},[m,I.data,I.error,I.isLoading,I.isValidating]),{productData:I}};export{m as default};