@gem-sdk/components 7.0.5 → 8.0.0-dev.102
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.
- package/dist/cjs/accordion/components/Accordion.liquid.js +9 -9
- package/dist/cjs/accordion/settings/configs/translate.js +1 -0
- package/dist/cjs/accordion/settings/configs/ui-v1.js +1 -1
- package/dist/cjs/accordion/settings/configs/ui-v2.js +1 -1
- package/dist/cjs/article/settings/configs/article-image/ui-v1.js +1 -1
- package/dist/cjs/article/settings/configs/article-image/ui-v2.js +1 -1
- package/dist/cjs/article/settings/configs/article-list/ui-v2.js +1 -1
- package/dist/cjs/article/settings/configs/article-read-more/ui-v1.js +1 -1
- package/dist/cjs/article/settings/configs/article-read-more/ui-v2.js +1 -1
- package/dist/cjs/article/settings/configs/translate.js +1 -0
- package/dist/cjs/breadcrumb/settings/configs/ui-v2.js +1 -1
- package/dist/cjs/builder.js +1 -1
- package/dist/cjs/button/common/helpers.js +1 -1
- package/dist/cjs/button/settings/configs/translate.js +1 -0
- package/dist/cjs/button/settings/configs/ui-v1.js +1 -1
- package/dist/cjs/button/settings/configs/ui-v2.js +1 -1
- package/dist/cjs/carousel/settings/configs/ui-v2.js +1 -1
- package/dist/cjs/carousel-v3/components/item/CarouselItem.liquid.js +1 -0
- package/dist/cjs/carousel-v3/components/swiper/Swiper.js +1 -1
- package/dist/cjs/carousel-v3/components/swiper/SwiperSlide.js +1 -1
- package/dist/cjs/carousel-v3/hooks/useCarousel.js +1 -1
- package/dist/cjs/carousel-v3/settings/configs/ui-v2.js +1 -1
- package/dist/cjs/code/common/styles.js +1 -1
- package/dist/cjs/code/components/CSSCode.js +1 -1
- package/dist/cjs/code/components/CSSCode.liquid.js +4 -4
- package/dist/cjs/code/index.js +1 -1
- package/dist/cjs/code/settings/configs/translate.js +1 -0
- package/dist/cjs/code/settings/configs/ui-v1.js +1 -1
- package/dist/cjs/collection/components/collection-banner/CollectionBanner.js +1 -1
- package/dist/cjs/collection/components/collection-banner/CollectionBanner.liquid.js +6 -7
- package/dist/cjs/collection/components/collection-description/common/helpers.js +1 -1
- package/dist/cjs/collection/components/collection-paginator/common/helpers.js +2 -2
- package/dist/cjs/collection/components/collection-toolbar/common/helpers.js +1 -1
- package/dist/cjs/collection/settings/collection-banner/configs/ui-v1.js +1 -1
- package/dist/cjs/collection/settings/collection-description/configs/translate.js +1 -0
- package/dist/cjs/collection/settings/collection-paginator/configs/translate.js +1 -0
- package/dist/cjs/collection/settings/collection-toolbar/configs/translate.js +1 -0
- package/dist/cjs/countdown-timer/common/helpers.js +1 -1
- package/dist/cjs/countdown-timer/components/Countdown.liquid.js +9 -9
- package/dist/cjs/countdown-timer/hooks/useCountDownTimer.js +1 -1
- package/dist/cjs/countdown-timer/hooks/useTimeLeft.js +1 -1
- package/dist/cjs/countdown-timer/settings/Countdown.js +1 -1
- package/dist/cjs/countdown-timer/settings/configs/setting.js +1 -1
- package/dist/cjs/countdown-timer/settings/configs/translate.js +1 -0
- package/dist/cjs/countdown-timer/settings/configs/ui-v2.js +1 -1
- package/dist/cjs/coupon/settings/configs/presets.js +1 -1
- package/dist/cjs/coupon/settings/configs/translate.js +1 -0
- package/dist/cjs/coupon/settings/configs/ui-v1.js +1 -1
- package/dist/cjs/coupon/settings/configs/ui-v2.js +1 -1
- package/dist/cjs/dialog/common/styles.js +1 -1
- package/dist/cjs/dialog/components/Dialog.js +2 -2
- package/dist/cjs/dialog/components/Dialog.liquid.js +22 -22
- package/dist/cjs/dialog/settings/configs/translate.js +1 -0
- package/dist/cjs/dialog/settings/configs/ui-v2.js +1 -1
- package/dist/cjs/estimate-delivery/common/helpers.js +1 -1
- package/dist/cjs/estimate-delivery/settings/configs/translate.js +1 -0
- package/dist/cjs/estimate-delivery/settings/configs/ui-v1.js +1 -1
- package/dist/cjs/form/components/form-checkbox/FormCheckbox.liquid.js +8 -8
- package/dist/cjs/form/components/form-dropdown/FormDropdown.liquid.js +5 -5
- package/dist/cjs/form/components/form-email/FormEmail.liquid.js +8 -8
- package/dist/cjs/form/components/newsletter/Newsletter.liquid.js +3 -3
- package/dist/cjs/form/components/textarea/TextArea.liquid.js +7 -7
- package/dist/cjs/form/components/textfield/TextField.liquid.js +8 -8
- package/dist/cjs/form/components/textinput/TextInput.liquid.js +15 -15
- package/dist/cjs/form/settings/contact/configs/translate.js +1 -0
- package/dist/cjs/form/settings/contact/configs/ui-v2.js +1 -1
- package/dist/cjs/form/settings/form-checkbox/configs/translate.js +1 -0
- package/dist/cjs/form/settings/form-dropdown/configs/translate.js +1 -0
- package/dist/cjs/form/settings/form-email/configs/translate.js +1 -0
- package/dist/cjs/form/settings/form-textarea/configs/translate.js +1 -0
- package/dist/cjs/form/settings/newsletter/configs/translate.js +1 -0
- package/dist/cjs/form/settings/newsletter/configs/ui-v2.js +1 -1
- package/dist/cjs/form/settings/submit-button/configs/translate.js +1 -0
- package/dist/cjs/form/settings/submit-button/configs/ui-v1.js +1 -1
- package/dist/cjs/form/settings/submit-button/configs/ui-v2.js +1 -1
- package/dist/cjs/form/settings/text-field/configs/translate.js +1 -0
- package/dist/cjs/form/settings/text-input/configs/translate.js +1 -0
- package/dist/cjs/form/settings/text-input/configs/ui-v2.js +1 -1
- package/dist/cjs/grid/components/row/Row.js +1 -1
- package/dist/cjs/grid/components/row/Row.liquid.js +15 -15
- package/dist/cjs/grid/components/row/common/styles.js +1 -1
- package/dist/cjs/grid/settings/configs/row/settings.js +1 -1
- package/dist/cjs/grid/settings/configs/row/translate.js +1 -0
- package/dist/cjs/grid/settings/configs/row/ui-v1.js +1 -1
- package/dist/cjs/grid/settings/configs/row/ui-v2.js +1 -1
- package/dist/cjs/grid/settings/configs/section/ui-v1.js +1 -1
- package/dist/cjs/grid/settings/configs/section/ui-v2.js +1 -1
- package/dist/cjs/header/settings/configs/ui-v2.js +1 -1
- package/dist/cjs/heading/settings/configs/settings.js +1 -1
- package/dist/cjs/heading/settings/configs/translate.js +1 -0
- package/dist/cjs/heading/settings/configs/ui-v1.js +1 -1
- package/dist/cjs/helpers.js +1 -1
- package/dist/cjs/hero-banner/common/classes.js +1 -1
- package/dist/cjs/hero-banner/common/helpers.js +1 -1
- package/dist/cjs/hero-banner/common/styles.js +1 -1
- package/dist/cjs/hero-banner/components/HeroBanner.js +1 -1
- package/dist/cjs/hero-banner/components/HeroBanner.liquid.js +11 -11
- package/dist/cjs/hero-banner/components/HeroBannerItem.js +1 -1
- package/dist/cjs/hero-banner/components/HeroBannerItem.liquid.js +10 -12
- package/dist/cjs/hero-banner/hooks/useHeroBanner.js +1 -1
- package/dist/cjs/hero-banner/hooks/useHeroBannerItem.js +1 -0
- package/dist/cjs/hero-banner/settings/configs/presets/banner-video-pre-sales-page.js +1 -1
- package/dist/cjs/hero-banner/settings/configs/presets/banner-video.js +1 -1
- package/dist/cjs/hero-banner/settings/configs/settings.js +1 -1
- package/dist/cjs/hero-banner/settings/configs/translate.js +1 -0
- package/dist/cjs/hero-banner/settings/configs/ui-v1.js +1 -1
- package/dist/cjs/hero-banner/settings/configs/ui-v2.js +1 -1
- package/dist/cjs/icon-list/common/styles.js +1 -1
- package/dist/cjs/icon-list/components/IconList.js +1 -1
- package/dist/cjs/icon-list/components/IconList.liquid.js +8 -8
- package/dist/cjs/icon-list/index.js +1 -1
- package/dist/cjs/icon-list/settings/configs/translate.js +1 -0
- package/dist/cjs/icon-list/settings/configs/ui-v1.js +1 -1
- package/dist/cjs/icon-list/settings/configs/ui-v2.js +1 -1
- package/dist/cjs/icon-list-hoz/settings/configs/uiV1.js +1 -1
- package/dist/cjs/icon-list-hoz/settings/configs/uiV2.js +1 -1
- package/dist/cjs/icon-list-v2/common/helpers.js +1 -1
- package/dist/cjs/icon-list-v2/common/styles.js +1 -1
- package/dist/cjs/icon-list-v2/components/IconList.js +1 -1
- package/dist/cjs/icon-list-v2/components/IconList.liquid.js +6 -6
- package/dist/cjs/icon-list-v2/settings/configs/translate.js +1 -0
- package/dist/cjs/image/common/helpers.js +2 -2
- package/dist/cjs/image/components/Image.liquid.js +7 -7
- package/dist/cjs/image/settings/configs/settings.js +1 -1
- package/dist/cjs/image/settings/configs/translate.js +1 -0
- package/dist/cjs/image/settings/configs/ui-v1.js +1 -1
- package/dist/cjs/image/settings/configs/ui-v2.js +1 -1
- package/dist/cjs/image-comparison/common/helpers.js +1 -1
- package/dist/cjs/image-comparison/components/ImageComparison.liquid.js +3 -3
- package/dist/cjs/image-comparison/components/Label.liquid.js +6 -6
- package/dist/cjs/image-comparison/index.js +1 -1
- package/dist/cjs/image-comparison/settings/configs/settings.js +1 -1
- package/dist/cjs/image-comparison/settings/configs/translate.js +1 -0
- package/dist/cjs/image-comparison/settings/configs/ui-v2.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/marquee/components/Marquee.liquid.js +6 -6
- package/dist/cjs/marquee/settings/configs/ui-v1.js +1 -1
- package/dist/cjs/marquee/settings/configs/ui-v2.js +1 -1
- package/dist/cjs/next.js +1 -1
- package/dist/cjs/post-purchase/buyer-consent/common/classes.js +1 -0
- package/dist/cjs/post-purchase/buyer-consent/common/helpers.js +1 -0
- package/dist/cjs/post-purchase/buyer-consent/common/styles.js +1 -0
- package/dist/cjs/post-purchase/buyer-consent/components/BuyerConsent.js +1 -0
- package/dist/cjs/post-purchase/buyer-consent/index.js +1 -0
- package/dist/cjs/post-purchase/buyer-consent/next.js +1 -0
- package/dist/cjs/post-purchase/buyer-consent/settings/buyer-consent/configs/presets.js +5 -0
- package/dist/cjs/post-purchase/buyer-consent/settings/buyer-consent/configs/settings.js +1 -0
- package/dist/cjs/post-purchase/buyer-consent/settings/buyer-consent/configs/ui-v2.js +1 -0
- package/dist/cjs/post-purchase/buyer-consent/settings/buyer-consent/index.js +5 -0
- package/dist/cjs/post-purchase/callout-banner/settings/config/callout-box/ui-v1.js +1 -1
- package/dist/cjs/post-purchase/line/index.js +1 -1
- package/dist/cjs/post-purchase/product/components/ProductPrice.js +1 -1
- package/dist/cjs/post-purchase/product/components/product-subscription/common/classes.js +1 -0
- package/dist/cjs/post-purchase/product/components/product-subscription/common/styles.js +1 -0
- package/dist/cjs/post-purchase/product/components/product-subscription/components/ProductSubscription.js +1 -0
- package/dist/cjs/post-purchase/product/components/product-subscription/components/SellingPlanDropdown.js +1 -0
- package/dist/cjs/post-purchase/product/components/product-subscription/components/SellingPlanLabel.js +1 -0
- package/dist/cjs/post-purchase/product/components/product-subscription/components/SellingPlanRadio.js +1 -0
- package/dist/cjs/post-purchase/product/components/product-subscription/components/SubscriptionDetail.js +1 -0
- package/dist/cjs/post-purchase/product/components/product-subscription/components/SubscriptionRadio.js +1 -0
- package/dist/cjs/post-purchase/product/components/product-subscription/hooks/useSellingPlanOptions.js +1 -0
- package/dist/cjs/post-purchase/product/constants/ProductOfferPlaceholder.js +1 -1
- package/dist/cjs/post-purchase/product/hooks/useGetMoneyLines.js +1 -1
- package/dist/cjs/post-purchase/product/index.js +1 -1
- package/dist/cjs/post-purchase/product/next.js +1 -1
- package/dist/cjs/post-purchase/product/settings/presets-config/product-presets/product-offer-1-col.js +1 -1
- package/dist/cjs/post-purchase/product/settings/presets-config/product-presets/product-offer-2-col.js +1 -1
- package/dist/cjs/post-purchase/product/settings/presets-config/product-presets/product-offer-default.js +1 -1
- package/dist/cjs/post-purchase/product/settings/product-description/configs/settings-v2.js +1 -1
- package/dist/cjs/post-purchase/product/settings/product-description/configs/ui-v2.js +1 -1
- package/dist/cjs/post-purchase/product/settings/product-discount-tag/configs/setting-v2.js +1 -1
- package/dist/cjs/post-purchase/product/settings/product-offer/configs/ui-v1.js +1 -1
- package/dist/cjs/post-purchase/product/settings/product-price/configs/settings-v2.js +1 -1
- package/dist/cjs/post-purchase/product/settings/product-price/configs/ui-v2.js +1 -1
- package/dist/cjs/post-purchase/product/settings/product-subscription/configs/presets.js +10 -0
- package/dist/cjs/post-purchase/product/settings/product-subscription/configs/settings.js +1 -0
- package/dist/cjs/post-purchase/product/settings/product-subscription/configs/ui-v2.js +1 -0
- package/dist/cjs/post-purchase/product/settings/product-subscription/index.js +10 -0
- package/dist/cjs/post-purchase/product/settings/product-title/configs/settings-v2.js +1 -1
- package/dist/cjs/post-purchase/product/settings/product-title/configs/ui-v2.js +1 -1
- package/dist/cjs/postPurchaseSetting.js +1 -1
- package/dist/cjs/product/components/dynamic-checkout/Button.liquid.js +3 -3
- package/dist/cjs/product/components/file-upload/common/helpers.js +1 -1
- package/dist/cjs/product/components/file-upload/settings/configs/translate.js +1 -0
- package/dist/cjs/product/components/file-upload/settings/configs/ui-v1.js +1 -1
- package/dist/cjs/product/components/file-upload/settings/configs/ui-v2.js +1 -1
- package/dist/cjs/product/components/product-badge/ProductBadge.js +1 -1
- package/dist/cjs/product/components/product-badge/ProductBadge.liquid.js +19 -19
- package/dist/cjs/product/components/product-badge/common/classes.js +1 -1
- package/dist/cjs/product/components/product-badge/common/styles.js +1 -1
- package/dist/cjs/product/components/product-badge/utils/common.js +1 -1
- package/dist/cjs/product/components/product-badge/utils/renderBadgeLiquid.js +3 -4
- package/dist/cjs/product/components/product-bundle/setting/configs/ui-v1.js +1 -1
- package/dist/cjs/product/components/product-bundle/setting/configs/ui-v2.js +1 -1
- package/dist/cjs/product/components/product-button/AddToCartButton.liquid.js +1 -1
- package/dist/cjs/product/components/product-button/PriceComponent.liquid.js +1 -1
- package/dist/cjs/product/components/product-button/ProductButton.liquid.js +6 -4
- package/dist/cjs/product/components/product-button/ProductButtonPrice.liquid.js +1 -1
- package/dist/cjs/product/components/product-button/SoldOutButton.liquid.js +1 -1
- package/dist/cjs/product/components/product-button/helpers/getButtonDynamicSourceLocales.js +1 -1
- package/dist/cjs/product/components/product-button/hooks/useAddToCart.js +1 -1
- package/dist/cjs/product/components/product-description/ProductDescription.liquid.js +13 -13
- package/dist/cjs/product/components/product-discount-tag/ProductDiscountTag.liquid.js +11 -11
- package/dist/cjs/product/components/product-discount-tag/hooks/useGpDiscountTag.js +1 -1
- package/dist/cjs/product/components/product-images-v3/common/attrs.js +1 -1
- package/dist/cjs/product/components/product-images-v3/components/feature-gallery/FeatureImageWithGallery.liquid.js +5 -5
- package/dist/cjs/product/components/product-list-v3/ProductList.js +1 -1
- package/dist/cjs/product/components/product-list-v3/common/classes.js +1 -1
- package/dist/cjs/product/components/product-price/ProductPrice.js +1 -1
- package/dist/cjs/product/components/product-price/common/attrs.js +1 -1
- package/dist/cjs/product/components/product-price/common/classes.js +1 -1
- package/dist/cjs/product/components/product-price/hooks/useGpPrice.js +1 -1
- package/dist/cjs/product/components/product-properties/common/helpers.js +1 -1
- package/dist/cjs/product/components/product-properties/property-choice/ProductPropertyChoice.liquid.js +13 -13
- package/dist/cjs/product/components/product-properties/property-input/ProductPropertyInput.liquid.js +11 -11
- package/dist/cjs/product/components/product-properties/property-select/ProductPropertySelect.liquid.js +8 -8
- package/dist/cjs/product/components/product-title/ProductTitle.liquid.js +10 -3
- package/dist/cjs/product/components/product-variants/OptionVariantsNewFormat.liquid.js +41 -0
- package/dist/cjs/product/components/product-variants/OptionVariantsOldFormat.liquid.js +66 -0
- package/dist/cjs/product/components/product-variants/ProductVariants.liquid.js +27 -77
- package/dist/cjs/product/components/product-variants/common/base/styles.js +1 -1
- package/dist/cjs/product/components/product-variants/common/const.js +1 -0
- package/dist/cjs/product/components/product-variants/common/dropdown/styles.js +1 -1
- package/dist/cjs/product/components/product-variants/components/color/color.liquid.js +3 -3
- package/dist/cjs/product/components/product-variants/components/dropdown-swatches/Dropdown.js +1 -1
- package/dist/cjs/product/components/product-variants/components/dropdown-swatches/Dropdown.liquid.js +3 -3
- package/dist/cjs/product/components/product-view-more/ProductViewMore.liquid.js +1 -1
- package/dist/cjs/product/components/product-view-more/common/helpers.js +1 -1
- package/dist/cjs/product/components/product-wrap/Product.liquid.js +26 -28
- package/dist/cjs/product/helpers/product-bundle.js +1 -1
- package/dist/cjs/product/settings/bundle-layout/horizontal-three.js +1 -1
- package/dist/cjs/product/settings/bundle-layout/horizontal-two.js +1 -1
- package/dist/cjs/product/settings/dynamic-checkout/configs/ui-v1.js +1 -1
- package/dist/cjs/product/settings/dynamic-checkout/configs/ui-v2.js +1 -1
- package/dist/cjs/product/settings/product/configs/ui-v1.js +1 -1
- package/dist/cjs/product/settings/product/configs/ui-v2.js +1 -1
- package/dist/cjs/product/settings/product-badge/configs/translate.js +1 -0
- package/dist/cjs/product/settings/product-badge/configs/ui-v1.js +1 -1
- package/dist/cjs/product/settings/product-badge/configs/ui-v2.js +1 -1
- package/dist/cjs/product/settings/product-button/configs/translate.js +1 -0
- package/dist/cjs/product/settings/product-button/configs/ui-v1.js +1 -1
- package/dist/cjs/product/settings/product-button/configs/ui-v2.js +1 -1
- package/dist/cjs/product/settings/product-description/configs/translate.js +1 -0
- package/dist/cjs/product/settings/product-discount-tag/configs/translate.js +1 -0
- package/dist/cjs/product/settings/product-image-v2/ProductFeatureImage.js +1 -1
- package/dist/cjs/product/settings/product-image-v2/ProductGalleryImage.js +1 -1
- package/dist/cjs/product/settings/product-image-v2/configs/ui-v2.js +1 -1
- package/dist/cjs/product/settings/product-image-v3/ProductFeatureImage.js +1 -1
- package/dist/cjs/product/settings/product-image-v3/ProductGalleryImage.js +1 -1
- package/dist/cjs/product/settings/product-image-v3/configs/ui-v2.js +1 -1
- package/dist/cjs/product/settings/product-list/configs/ui-v1.js +1 -1
- package/dist/cjs/product/settings/product-list/configs/ui-v2.js +1 -1
- package/dist/cjs/product/settings/product-list-v3/configs/ui-v1.js +1 -1
- package/dist/cjs/product/settings/product-list-v3/configs/ui-v2.js +1 -1
- package/dist/cjs/product/settings/product-properties/configs/translate.js +1 -0
- package/dist/cjs/product/settings/product-properties/configs/ui-v1.js +1 -1
- package/dist/cjs/product/settings/product-properties/configs/ui-v2.js +1 -1
- package/dist/cjs/product/settings/product-quantity/configs/presets.js +1 -1
- package/dist/cjs/product/settings/product-variant/configs/presets.js +1 -1
- package/dist/cjs/product/settings/product-variant/configs/settings.js +1 -1
- package/dist/cjs/product/settings/product-variant/configs/ui-v1.js +1 -1
- package/dist/cjs/product/settings/product-variant/configs/ui-v2.js +1 -1
- package/dist/cjs/product/settings/product-view-more/configs/translate.js +1 -0
- package/dist/cjs/product/settings/product-view-more/configs/ui-v1.js +1 -1
- package/dist/cjs/product/settings/product-view-more/configs/ui-v2.js +1 -1
- package/dist/cjs/sticky/common/styles.js +1 -1
- package/dist/cjs/sticky/components/Sticky.js +1 -1
- package/dist/cjs/sticky/components/Sticky.liquid.js +7 -7
- package/dist/cjs/sticky/index.js +1 -1
- package/dist/cjs/sticky/settings/configs/presets.js +2 -2
- package/dist/cjs/sticky/settings/configs/settings.js +1 -1
- package/dist/cjs/sticky/settings/configs/translate.js +1 -0
- package/dist/cjs/sticky/settings/configs/ui-v1.js +1 -1
- package/dist/cjs/sticky/settings/configs/ui-v2.js +1 -1
- package/dist/cjs/stock-counter/components/StockCounter.liquid.js +8 -8
- package/dist/cjs/stock-counter/settings/configs/translate.js +1 -0
- package/dist/cjs/tab/common/styles.js +1 -1
- package/dist/cjs/tab/components/Tabs.js +1 -1
- package/dist/cjs/tab/components/Tabs.liquid.js +8 -8
- package/dist/cjs/tab/settings/configs/translate.js +1 -0
- package/dist/cjs/tab/settings/configs/ui-v2.js +1 -1
- package/dist/cjs/text/common/helpers.js +1 -1
- package/dist/cjs/text/common/styles.js +1 -1
- package/dist/cjs/text/components/Text.js +1 -1
- package/dist/cjs/text/components/Text.liquid.js +5 -6
- package/dist/cjs/text/settings/configs/settings.js +1 -1
- package/dist/cjs/text/settings/configs/translate.js +1 -0
- package/dist/cjs/text/settings/configs/ui-v1.js +1 -1
- package/dist/cjs/third-party/settings/BloyRewardsProgramLoyalty/index.js +1 -1
- package/dist/cjs/third-party/settings/BonLoyaltyRewardsReferrals/index.js +1 -1
- package/dist/cjs/third-party/settings/PushOwl/uiV1.js +1 -1
- package/dist/cjs/third-party/settings/PushOwl/uiV2.js +1 -1
- package/dist/cjs/third-party/settings/Selleasy/index.js +1 -1
- package/dist/cjs/translate.js +2 -0
- package/dist/cjs/video/common/classes.js +1 -1
- package/dist/cjs/video/common/helpers.js +1 -1
- package/dist/cjs/video/components/LiteVimeoEmbed.liquid.js +11 -11
- package/dist/cjs/video/components/LiteYouTubeEmbed.js +1 -1
- package/dist/cjs/video/components/LiteYouTubeEmbed.liquid.js +12 -10
- package/dist/cjs/video/components/Video.liquid.js +3 -3
- package/dist/cjs/video/settings/configs/settings.js +1 -1
- package/dist/cjs/video/settings/configs/translate.js +1 -0
- package/dist/cjs/video/settings/configs/ui-v2.js +1 -1
- package/dist/esm/accordion/components/Accordion.liquid.js +12 -12
- package/dist/esm/accordion/settings/configs/translate.js +1 -0
- package/dist/esm/accordion/settings/configs/ui-v1.js +1 -1
- package/dist/esm/accordion/settings/configs/ui-v2.js +1 -1
- package/dist/esm/article/settings/configs/article-image/ui-v1.js +1 -1
- package/dist/esm/article/settings/configs/article-image/ui-v2.js +1 -1
- package/dist/esm/article/settings/configs/article-list/ui-v2.js +1 -1
- package/dist/esm/article/settings/configs/article-read-more/ui-v1.js +1 -1
- package/dist/esm/article/settings/configs/article-read-more/ui-v2.js +1 -1
- package/dist/esm/article/settings/configs/translate.js +1 -0
- package/dist/esm/breadcrumb/settings/configs/ui-v2.js +1 -1
- package/dist/esm/builder.js +1 -1
- package/dist/esm/button/common/helpers.js +1 -1
- package/dist/esm/button/settings/configs/translate.js +1 -0
- package/dist/esm/button/settings/configs/ui-v1.js +1 -1
- package/dist/esm/button/settings/configs/ui-v2.js +1 -1
- package/dist/esm/carousel/settings/configs/ui-v2.js +1 -1
- package/dist/esm/carousel-v3/components/item/CarouselItem.liquid.js +3 -2
- package/dist/esm/carousel-v3/components/swiper/Swiper.js +1 -1
- package/dist/esm/carousel-v3/components/swiper/SwiperSlide.js +1 -1
- package/dist/esm/carousel-v3/hooks/useCarousel.js +1 -1
- package/dist/esm/carousel-v3/settings/configs/ui-v2.js +1 -1
- package/dist/esm/code/common/styles.js +1 -1
- package/dist/esm/code/components/CSSCode.js +1 -1
- package/dist/esm/code/components/CSSCode.liquid.js +4 -4
- package/dist/esm/code/index.js +1 -1
- package/dist/esm/code/settings/configs/translate.js +1 -0
- package/dist/esm/code/settings/configs/ui-v1.js +1 -1
- package/dist/esm/collection/components/collection-banner/CollectionBanner.js +1 -1
- package/dist/esm/collection/components/collection-banner/CollectionBanner.liquid.js +3 -4
- package/dist/esm/collection/components/collection-description/common/helpers.js +1 -1
- package/dist/esm/collection/components/collection-paginator/common/helpers.js +2 -2
- package/dist/esm/collection/components/collection-toolbar/common/helpers.js +1 -1
- package/dist/esm/collection/settings/collection-banner/configs/ui-v1.js +1 -1
- package/dist/esm/collection/settings/collection-description/configs/translate.js +1 -0
- package/dist/esm/collection/settings/collection-paginator/configs/translate.js +1 -0
- package/dist/esm/collection/settings/collection-toolbar/configs/translate.js +1 -0
- package/dist/esm/countdown-timer/common/helpers.js +1 -1
- package/dist/esm/countdown-timer/components/Countdown.liquid.js +11 -11
- package/dist/esm/countdown-timer/hooks/useCountDownTimer.js +1 -1
- package/dist/esm/countdown-timer/hooks/useTimeLeft.js +1 -1
- package/dist/esm/countdown-timer/settings/Countdown.js +3 -3
- package/dist/esm/countdown-timer/settings/configs/setting.js +1 -1
- package/dist/esm/countdown-timer/settings/configs/translate.js +1 -0
- package/dist/esm/countdown-timer/settings/configs/ui-v2.js +1 -1
- package/dist/esm/coupon/settings/configs/presets.js +1 -1
- package/dist/esm/coupon/settings/configs/translate.js +1 -0
- package/dist/esm/coupon/settings/configs/ui-v1.js +1 -1
- package/dist/esm/coupon/settings/configs/ui-v2.js +1 -1
- package/dist/esm/dialog/common/styles.js +1 -1
- package/dist/esm/dialog/components/Dialog.js +2 -2
- package/dist/esm/dialog/components/Dialog.liquid.js +22 -22
- package/dist/esm/dialog/settings/configs/translate.js +1 -0
- package/dist/esm/dialog/settings/configs/ui-v2.js +1 -1
- package/dist/esm/estimate-delivery/common/helpers.js +1 -1
- package/dist/esm/estimate-delivery/settings/configs/translate.js +1 -0
- package/dist/esm/estimate-delivery/settings/configs/ui-v1.js +1 -1
- package/dist/esm/form/components/form-checkbox/FormCheckbox.liquid.js +12 -12
- package/dist/esm/form/components/form-dropdown/FormDropdown.liquid.js +17 -17
- package/dist/esm/form/components/form-email/FormEmail.liquid.js +11 -11
- package/dist/esm/form/components/newsletter/Newsletter.liquid.js +17 -17
- package/dist/esm/form/components/textarea/TextArea.liquid.js +10 -10
- package/dist/esm/form/components/textfield/TextField.liquid.js +9 -9
- package/dist/esm/form/components/textinput/TextInput.liquid.js +19 -19
- package/dist/esm/form/settings/contact/configs/translate.js +1 -0
- package/dist/esm/form/settings/contact/configs/ui-v2.js +1 -1
- package/dist/esm/form/settings/form-checkbox/configs/translate.js +1 -0
- package/dist/esm/form/settings/form-dropdown/configs/translate.js +1 -0
- package/dist/esm/form/settings/form-email/configs/translate.js +1 -0
- package/dist/esm/form/settings/form-textarea/configs/translate.js +1 -0
- package/dist/esm/form/settings/newsletter/configs/translate.js +1 -0
- package/dist/esm/form/settings/newsletter/configs/ui-v2.js +1 -1
- package/dist/esm/form/settings/submit-button/configs/translate.js +1 -0
- package/dist/esm/form/settings/submit-button/configs/ui-v1.js +1 -1
- package/dist/esm/form/settings/submit-button/configs/ui-v2.js +1 -1
- package/dist/esm/form/settings/text-field/configs/translate.js +1 -0
- package/dist/esm/form/settings/text-input/configs/translate.js +1 -0
- package/dist/esm/form/settings/text-input/configs/ui-v2.js +1 -1
- package/dist/esm/grid/components/row/Row.js +1 -1
- package/dist/esm/grid/components/row/Row.liquid.js +18 -18
- package/dist/esm/grid/components/row/common/styles.js +1 -1
- package/dist/esm/grid/settings/configs/row/settings.js +1 -1
- package/dist/esm/grid/settings/configs/row/translate.js +1 -0
- package/dist/esm/grid/settings/configs/row/ui-v1.js +1 -1
- package/dist/esm/grid/settings/configs/row/ui-v2.js +1 -1
- package/dist/esm/grid/settings/configs/section/ui-v1.js +1 -1
- package/dist/esm/grid/settings/configs/section/ui-v2.js +1 -1
- package/dist/esm/header/settings/configs/ui-v2.js +1 -1
- package/dist/esm/heading/settings/configs/settings.js +1 -1
- package/dist/esm/heading/settings/configs/translate.js +1 -0
- package/dist/esm/heading/settings/configs/ui-v1.js +1 -1
- package/dist/esm/helpers.js +1 -1
- package/dist/esm/hero-banner/common/classes.js +1 -1
- package/dist/esm/hero-banner/common/helpers.js +1 -1
- package/dist/esm/hero-banner/common/styles.js +1 -1
- package/dist/esm/hero-banner/components/HeroBanner.js +1 -1
- package/dist/esm/hero-banner/components/HeroBanner.liquid.js +7 -7
- package/dist/esm/hero-banner/components/HeroBannerItem.js +1 -1
- package/dist/esm/hero-banner/components/HeroBannerItem.liquid.js +10 -12
- package/dist/esm/hero-banner/hooks/useHeroBanner.js +1 -1
- package/dist/esm/hero-banner/hooks/useHeroBannerItem.js +1 -0
- package/dist/esm/hero-banner/settings/configs/presets/banner-video-pre-sales-page.js +1 -1
- package/dist/esm/hero-banner/settings/configs/presets/banner-video.js +1 -1
- package/dist/esm/hero-banner/settings/configs/settings.js +1 -1
- package/dist/esm/hero-banner/settings/configs/translate.js +1 -0
- package/dist/esm/hero-banner/settings/configs/ui-v1.js +1 -1
- package/dist/esm/hero-banner/settings/configs/ui-v2.js +1 -1
- package/dist/esm/icon-list/common/styles.js +1 -1
- package/dist/esm/icon-list/components/IconList.js +1 -1
- package/dist/esm/icon-list/components/IconList.liquid.js +8 -8
- package/dist/esm/icon-list/index.js +1 -1
- package/dist/esm/icon-list/settings/configs/translate.js +1 -0
- package/dist/esm/icon-list/settings/configs/ui-v1.js +1 -1
- package/dist/esm/icon-list/settings/configs/ui-v2.js +1 -1
- package/dist/esm/icon-list-hoz/settings/configs/uiV1.js +1 -1
- package/dist/esm/icon-list-hoz/settings/configs/uiV2.js +1 -1
- package/dist/esm/icon-list-v2/common/helpers.js +1 -1
- package/dist/esm/icon-list-v2/common/styles.js +1 -1
- package/dist/esm/icon-list-v2/components/IconList.js +1 -1
- package/dist/esm/icon-list-v2/components/IconList.liquid.js +8 -8
- package/dist/esm/icon-list-v2/settings/configs/translate.js +1 -0
- package/dist/esm/image/common/helpers.js +2 -2
- package/dist/esm/image/components/Image.liquid.js +10 -10
- package/dist/esm/image/settings/configs/settings.js +1 -1
- package/dist/esm/image/settings/configs/translate.js +1 -0
- package/dist/esm/image/settings/configs/ui-v1.js +1 -1
- package/dist/esm/image/settings/configs/ui-v2.js +1 -1
- package/dist/esm/image-comparison/common/helpers.js +1 -1
- package/dist/esm/image-comparison/components/ImageComparison.liquid.js +3 -3
- package/dist/esm/image-comparison/components/Label.liquid.js +6 -6
- package/dist/esm/image-comparison/index.js +1 -1
- package/dist/esm/image-comparison/settings/configs/settings.js +1 -1
- package/dist/esm/image-comparison/settings/configs/translate.js +1 -0
- package/dist/esm/image-comparison/settings/configs/ui-v2.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/marquee/components/Marquee.liquid.js +18 -18
- package/dist/esm/marquee/settings/configs/ui-v1.js +1 -1
- package/dist/esm/marquee/settings/configs/ui-v2.js +1 -1
- package/dist/esm/next.js +1 -1
- package/dist/esm/post-purchase/buyer-consent/common/classes.js +1 -0
- package/dist/esm/post-purchase/buyer-consent/common/helpers.js +1 -0
- package/dist/esm/post-purchase/buyer-consent/common/styles.js +1 -0
- package/dist/esm/post-purchase/buyer-consent/components/BuyerConsent.js +1 -0
- package/dist/esm/post-purchase/buyer-consent/index.js +1 -0
- package/dist/esm/post-purchase/buyer-consent/next.js +1 -0
- package/dist/esm/post-purchase/buyer-consent/settings/buyer-consent/configs/presets.js +5 -0
- package/dist/esm/post-purchase/buyer-consent/settings/buyer-consent/configs/settings.js +1 -0
- package/dist/esm/post-purchase/buyer-consent/settings/buyer-consent/configs/ui-v2.js +1 -0
- package/dist/esm/post-purchase/buyer-consent/settings/buyer-consent/index.js +5 -0
- package/dist/esm/post-purchase/callout-banner/settings/config/callout-box/ui-v1.js +1 -1
- package/dist/esm/post-purchase/line/index.js +1 -1
- package/dist/esm/post-purchase/product/components/ProductPrice.js +1 -1
- package/dist/esm/post-purchase/product/components/product-subscription/common/classes.js +1 -0
- package/dist/esm/post-purchase/product/components/product-subscription/common/styles.js +1 -0
- package/dist/esm/post-purchase/product/components/product-subscription/components/ProductSubscription.js +1 -0
- package/dist/esm/post-purchase/product/components/product-subscription/components/SellingPlanDropdown.js +1 -0
- package/dist/esm/post-purchase/product/components/product-subscription/components/SellingPlanLabel.js +1 -0
- package/dist/esm/post-purchase/product/components/product-subscription/components/SellingPlanRadio.js +1 -0
- package/dist/esm/post-purchase/product/components/product-subscription/components/SubscriptionDetail.js +1 -0
- package/dist/esm/post-purchase/product/components/product-subscription/components/SubscriptionRadio.js +1 -0
- package/dist/esm/post-purchase/product/components/product-subscription/hooks/useSellingPlanOptions.js +1 -0
- package/dist/esm/post-purchase/product/constants/ProductOfferPlaceholder.js +1 -1
- package/dist/esm/post-purchase/product/hooks/useGetMoneyLines.js +1 -1
- package/dist/esm/post-purchase/product/index.js +1 -1
- package/dist/esm/post-purchase/product/next.js +1 -1
- package/dist/esm/post-purchase/product/settings/presets-config/product-presets/product-offer-1-col.js +1 -1
- package/dist/esm/post-purchase/product/settings/presets-config/product-presets/product-offer-2-col.js +1 -1
- package/dist/esm/post-purchase/product/settings/presets-config/product-presets/product-offer-default.js +1 -1
- package/dist/esm/post-purchase/product/settings/product-description/configs/settings-v2.js +1 -1
- package/dist/esm/post-purchase/product/settings/product-description/configs/ui-v2.js +1 -1
- package/dist/esm/post-purchase/product/settings/product-discount-tag/configs/setting-v2.js +1 -1
- package/dist/esm/post-purchase/product/settings/product-offer/configs/ui-v1.js +1 -1
- package/dist/esm/post-purchase/product/settings/product-price/configs/settings-v2.js +1 -1
- package/dist/esm/post-purchase/product/settings/product-price/configs/ui-v2.js +1 -1
- package/dist/esm/post-purchase/product/settings/product-subscription/configs/presets.js +10 -0
- package/dist/esm/post-purchase/product/settings/product-subscription/configs/settings.js +1 -0
- package/dist/esm/post-purchase/product/settings/product-subscription/configs/ui-v2.js +1 -0
- package/dist/esm/post-purchase/product/settings/product-subscription/index.js +10 -0
- package/dist/esm/post-purchase/product/settings/product-title/configs/settings-v2.js +1 -1
- package/dist/esm/post-purchase/product/settings/product-title/configs/ui-v2.js +1 -1
- package/dist/esm/postPurchaseSetting.js +1 -1
- package/dist/esm/product/components/dynamic-checkout/Button.liquid.js +5 -5
- package/dist/esm/product/components/file-upload/common/helpers.js +1 -1
- package/dist/esm/product/components/file-upload/settings/configs/translate.js +1 -0
- package/dist/esm/product/components/file-upload/settings/configs/ui-v1.js +1 -1
- package/dist/esm/product/components/file-upload/settings/configs/ui-v2.js +1 -1
- package/dist/esm/product/components/product-badge/ProductBadge.js +1 -1
- package/dist/esm/product/components/product-badge/ProductBadge.liquid.js +22 -22
- package/dist/esm/product/components/product-badge/common/classes.js +1 -1
- package/dist/esm/product/components/product-badge/common/styles.js +1 -1
- package/dist/esm/product/components/product-badge/utils/common.js +1 -1
- package/dist/esm/product/components/product-badge/utils/renderBadgeLiquid.js +3 -4
- package/dist/esm/product/components/product-bundle/setting/configs/ui-v1.js +1 -1
- package/dist/esm/product/components/product-bundle/setting/configs/ui-v2.js +1 -1
- package/dist/esm/product/components/product-button/AddToCartButton.liquid.js +1 -1
- package/dist/esm/product/components/product-button/PriceComponent.liquid.js +1 -1
- package/dist/esm/product/components/product-button/ProductButton.liquid.js +11 -9
- package/dist/esm/product/components/product-button/ProductButtonPrice.liquid.js +1 -1
- package/dist/esm/product/components/product-button/SoldOutButton.liquid.js +1 -1
- package/dist/esm/product/components/product-button/helpers/getButtonDynamicSourceLocales.js +1 -1
- package/dist/esm/product/components/product-button/hooks/useAddToCart.js +1 -1
- package/dist/esm/product/components/product-description/ProductDescription.liquid.js +15 -15
- package/dist/esm/product/components/product-discount-tag/ProductDiscountTag.liquid.js +14 -14
- package/dist/esm/product/components/product-discount-tag/hooks/useGpDiscountTag.js +1 -1
- package/dist/esm/product/components/product-images-v3/common/attrs.js +1 -1
- package/dist/esm/product/components/product-images-v3/components/feature-gallery/FeatureImageWithGallery.liquid.js +7 -7
- package/dist/esm/product/components/product-list-v3/ProductList.js +1 -1
- package/dist/esm/product/components/product-list-v3/common/classes.js +1 -1
- package/dist/esm/product/components/product-price/ProductPrice.js +1 -1
- package/dist/esm/product/components/product-price/common/attrs.js +1 -1
- package/dist/esm/product/components/product-price/common/classes.js +1 -1
- package/dist/esm/product/components/product-price/hooks/useGpPrice.js +1 -1
- package/dist/esm/product/components/product-properties/common/helpers.js +1 -1
- package/dist/esm/product/components/product-properties/property-choice/ProductPropertyChoice.liquid.js +14 -14
- package/dist/esm/product/components/product-properties/property-input/ProductPropertyInput.liquid.js +13 -13
- package/dist/esm/product/components/product-properties/property-select/ProductPropertySelect.liquid.js +7 -7
- package/dist/esm/product/components/product-title/ProductTitle.liquid.js +10 -3
- package/dist/esm/product/components/product-variants/OptionVariantsNewFormat.liquid.js +41 -0
- package/dist/esm/product/components/product-variants/OptionVariantsOldFormat.liquid.js +66 -0
- package/dist/esm/product/components/product-variants/ProductVariants.liquid.js +32 -82
- package/dist/esm/product/components/product-variants/common/base/styles.js +1 -1
- package/dist/esm/product/components/product-variants/common/const.js +1 -0
- package/dist/esm/product/components/product-variants/common/dropdown/styles.js +1 -1
- package/dist/esm/product/components/product-variants/components/color/color.liquid.js +3 -3
- package/dist/esm/product/components/product-variants/components/dropdown-swatches/Dropdown.js +1 -1
- package/dist/esm/product/components/product-variants/components/dropdown-swatches/Dropdown.liquid.js +5 -5
- package/dist/esm/product/components/product-view-more/ProductViewMore.liquid.js +1 -1
- package/dist/esm/product/components/product-view-more/common/helpers.js +1 -1
- package/dist/esm/product/components/product-wrap/Product.liquid.js +17 -19
- package/dist/esm/product/helpers/product-bundle.js +1 -1
- package/dist/esm/product/settings/bundle-layout/horizontal-three.js +1 -1
- package/dist/esm/product/settings/bundle-layout/horizontal-two.js +1 -1
- package/dist/esm/product/settings/dynamic-checkout/configs/ui-v1.js +1 -1
- package/dist/esm/product/settings/dynamic-checkout/configs/ui-v2.js +1 -1
- package/dist/esm/product/settings/product/configs/ui-v1.js +1 -1
- package/dist/esm/product/settings/product/configs/ui-v2.js +1 -1
- package/dist/esm/product/settings/product-badge/configs/translate.js +1 -0
- package/dist/esm/product/settings/product-badge/configs/ui-v1.js +1 -1
- package/dist/esm/product/settings/product-badge/configs/ui-v2.js +1 -1
- package/dist/esm/product/settings/product-button/configs/translate.js +1 -0
- package/dist/esm/product/settings/product-button/configs/ui-v1.js +1 -1
- package/dist/esm/product/settings/product-button/configs/ui-v2.js +1 -1
- package/dist/esm/product/settings/product-description/configs/translate.js +1 -0
- package/dist/esm/product/settings/product-discount-tag/configs/translate.js +1 -0
- package/dist/esm/product/settings/product-image-v2/ProductFeatureImage.js +1 -1
- package/dist/esm/product/settings/product-image-v2/ProductGalleryImage.js +1 -1
- package/dist/esm/product/settings/product-image-v2/configs/ui-v2.js +1 -1
- package/dist/esm/product/settings/product-image-v3/ProductFeatureImage.js +1 -1
- package/dist/esm/product/settings/product-image-v3/ProductGalleryImage.js +1 -1
- package/dist/esm/product/settings/product-image-v3/configs/ui-v2.js +1 -1
- package/dist/esm/product/settings/product-list/configs/ui-v1.js +1 -1
- package/dist/esm/product/settings/product-list/configs/ui-v2.js +1 -1
- package/dist/esm/product/settings/product-list-v3/configs/ui-v1.js +1 -1
- package/dist/esm/product/settings/product-list-v3/configs/ui-v2.js +1 -1
- package/dist/esm/product/settings/product-properties/configs/translate.js +1 -0
- package/dist/esm/product/settings/product-properties/configs/ui-v1.js +1 -1
- package/dist/esm/product/settings/product-properties/configs/ui-v2.js +1 -1
- package/dist/esm/product/settings/product-quantity/configs/presets.js +1 -1
- package/dist/esm/product/settings/product-variant/configs/presets.js +1 -1
- package/dist/esm/product/settings/product-variant/configs/settings.js +1 -1
- package/dist/esm/product/settings/product-variant/configs/ui-v1.js +1 -1
- package/dist/esm/product/settings/product-variant/configs/ui-v2.js +1 -1
- package/dist/esm/product/settings/product-view-more/configs/translate.js +1 -0
- package/dist/esm/product/settings/product-view-more/configs/ui-v1.js +1 -1
- package/dist/esm/product/settings/product-view-more/configs/ui-v2.js +1 -1
- package/dist/esm/sticky/common/styles.js +1 -1
- package/dist/esm/sticky/components/Sticky.js +1 -1
- package/dist/esm/sticky/components/Sticky.liquid.js +6 -6
- package/dist/esm/sticky/index.js +1 -1
- package/dist/esm/sticky/settings/configs/presets.js +2 -2
- package/dist/esm/sticky/settings/configs/settings.js +1 -1
- package/dist/esm/sticky/settings/configs/translate.js +1 -0
- package/dist/esm/sticky/settings/configs/ui-v1.js +1 -1
- package/dist/esm/sticky/settings/configs/ui-v2.js +1 -1
- package/dist/esm/stock-counter/components/StockCounter.liquid.js +42 -42
- package/dist/esm/stock-counter/settings/configs/translate.js +1 -0
- package/dist/esm/tab/common/styles.js +1 -1
- package/dist/esm/tab/components/Tabs.js +1 -1
- package/dist/esm/tab/components/Tabs.liquid.js +21 -21
- package/dist/esm/tab/settings/configs/translate.js +1 -0
- package/dist/esm/tab/settings/configs/ui-v2.js +1 -1
- package/dist/esm/text/common/helpers.js +1 -1
- package/dist/esm/text/common/styles.js +1 -1
- package/dist/esm/text/components/Text.js +1 -1
- package/dist/esm/text/components/Text.liquid.js +11 -12
- package/dist/esm/text/settings/configs/settings.js +1 -1
- package/dist/esm/text/settings/configs/translate.js +1 -0
- package/dist/esm/text/settings/configs/ui-v1.js +1 -1
- package/dist/esm/third-party/settings/BloyRewardsProgramLoyalty/index.js +1 -1
- package/dist/esm/third-party/settings/BonLoyaltyRewardsReferrals/index.js +1 -1
- package/dist/esm/third-party/settings/PushOwl/uiV1.js +1 -1
- package/dist/esm/third-party/settings/PushOwl/uiV2.js +1 -1
- package/dist/esm/third-party/settings/Selleasy/index.js +2 -2
- package/dist/esm/translate.js +2 -0
- package/dist/esm/video/common/classes.js +1 -1
- package/dist/esm/video/common/helpers.js +1 -1
- package/dist/esm/video/components/LiteVimeoEmbed.liquid.js +11 -11
- package/dist/esm/video/components/LiteYouTubeEmbed.js +1 -1
- package/dist/esm/video/components/LiteYouTubeEmbed.liquid.js +17 -15
- package/dist/esm/video/components/Video.liquid.js +3 -3
- package/dist/esm/video/settings/configs/settings.js +1 -1
- package/dist/esm/video/settings/configs/translate.js +1 -0
- package/dist/esm/video/settings/configs/ui-v2.js +1 -1
- package/dist/types/index.d.ts +350 -139
- package/package.json +7 -7
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import{makeStyleResponsive as e,makeLineClamp as t,template as s,dataStringify as i,isLocalEnv as o,baseAssetURL as r}from"@gem-sdk/core";import{getDynamicSourceLocales as p,getSettingPreloadData as
|
|
1
|
+
import{makeStyleResponsive as e,makeLineClamp as t,template as s,dataStringify as i,isLocalEnv as o,baseAssetURL as r}from"@gem-sdk/core";import{getDynamicSourceLocales as p,createSettingId as d,getSettingPreloadData as a}from"../../../helpers.js";import{createClass as l,createStyle as n,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 w,getClassPreBuilt as x}from"./common/classes.js";import{getTextStyle as h,getButtonStyle as y,getStaticCss as M}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 ProductDescription=C=>{let{setting:L,advanced:S,builderProps:T,pageContext:I}=C,{htmlTag:P,viewMoreText:k,viewLessText:E}=L??{},V="html"===P?"div":"p",A=l({"gp-product-description":!0,[S?.cssClass]:!0}),D=l(f({setting:L,isLiquid:!0})),G=l(w({setting:L})),_=l({"gp-show-more-text":!0}),q=l({"gp-show-more-icon gp-ml-1":!0}),H=n({...h({setting:L,renderMaxHeight:!0}),...e("line-clamp",t(L?.lineClamp,L?.hasLineClamp))}),N=l(x()),O=n(y({setting:L})),R=c({"data-id":`${T?.uid}`}),z=c({"data-gp-text":""}),{textDescriptionCss:B,gpDescriptionCss:F}=M(),J="product.description == blank",K=()=>{let e=o?"{{ 'gp-product-description-v7-5.js' | asset_url }}":`${r}/assets-v2/gp-product-description-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}`;return`<script ${a('class="gps-link" delay',"src")}="${e}" defer="defer"></script>`},Q=m({setting:{lineClamp:L?.lineClamp,hasLineClamp:L?.hasLineClamp,viewMoreText:L?.viewMoreText,viewLessText:L?.viewLessText,enableViewMoreIcon:L?.enableViewMoreIcon},textStyle:H}),U=p({val:k,uid:T?.uid,settingId:d({id:j?.viewMoreText?.id}),pageContext:I}),W=p({val:E,uid:T?.uid,settingId:d({id:j?.viewLessText?.id}),pageContext:I});return u(J,"",$(s`
|
|
2
2
|
<gp-product-description
|
|
3
|
-
${
|
|
4
|
-
class="${
|
|
5
|
-
gp-data='${i(
|
|
6
|
-
data-view-more-text="${
|
|
7
|
-
data-view-less-text="${
|
|
3
|
+
${R}
|
|
4
|
+
class="${A}"
|
|
5
|
+
gp-data='${i(Q).replaceAll("'","'")}'
|
|
6
|
+
data-view-more-text="${U}"
|
|
7
|
+
data-view-less-text="${W}"
|
|
8
8
|
>
|
|
9
|
-
<style>${z}</style>
|
|
10
9
|
<style>${B}</style>
|
|
11
|
-
<
|
|
12
|
-
|
|
10
|
+
<style>${F}</style>
|
|
11
|
+
<div class="${N}" ></div>
|
|
12
|
+
${g("product","<p>Product not found</p>",s`<${V} ${z} class="${D}" style="${H}">
|
|
13
13
|
{{product.description}}
|
|
14
|
-
</${
|
|
15
|
-
${
|
|
16
|
-
<span class="${
|
|
17
|
-
${
|
|
14
|
+
</${V}>
|
|
15
|
+
${g(J,s`<button type="button" class="${G}" style="${O}">
|
|
16
|
+
<span class="${_}">
|
|
17
|
+
${v(!1,W?.toString(),U?.toString())}
|
|
18
18
|
</span>
|
|
19
|
-
${
|
|
19
|
+
${v(L?.enableViewMoreIcon,s`<span class="${q}">${b}</span>`," ")}
|
|
20
20
|
</button>`)}`)}
|
|
21
21
|
</gp-product-description>
|
|
22
22
|
|
|
23
|
-
${
|
|
23
|
+
${K()}
|
|
24
24
|
`))};export{ProductDescription as default};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import{template as e,isLocalEnv as i,baseAssetURL as
|
|
1
|
+
import{template as e,isLocalEnv as i,baseAssetURL 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 d,Liquid as o,If as l}from"@gem-sdk/system";import{getWrapperTextClass as u,getContainerClass as f,getProductTagClass as g}from"./common/classes.js";import{getRootClass as m,getWrapperTextStyle as v,getContainerStyle as $}from"./common/styles.js";import{ProductTag as y}from"../../settings/product-discount-tag/configs/translate.js";let ProductTag=({setting:x,styles:P,builderProps:S,advanced:V,pageContext:_})=>{let{customContent:h}=x??{},j=x?.moneyWithCurrentFormat?"money_with_currency":"money",C=y?.customContent?.id?a({val:h?.prefix,uid:S?.uid,settingId:r({id:y.customContent.id,suffix:"prefix"}),isLiquid:!0,pageContext:_}):h?.prefix,M=y?.customContent?.id?a({val:h?.suffix,uid:S?.uid,settingId:r({id:y.customContent.id,suffix:"suffix"}),isLiquid:!0,pageContext:_}):h?.suffix,T=n(m(P)),q=n(v(P)),w=n($(P)),E=c(u(P)),F=c(f()),N=c(g(V)),O=h?.unit==="percentage",k=()=>{let e=i?"{{ 'gp-product-tag-v7-5.js' | asset_url }}":`${s}/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>`};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 = ${
|
|
7
|
-
assign suffixVal = ${
|
|
6
|
+
assign prefixVal = ${_?.isPreviewing?JSON.stringify(C):C}
|
|
7
|
+
assign suffixVal = ${_?.isPreviewing?JSON.stringify(M):M}
|
|
8
8
|
%}
|
|
9
|
-
${
|
|
10
|
-
{% assign pricePercentage = prefixVal | append: ' ' | append: salePercent | append: '% ' | append: suffixVal %}`,
|
|
11
|
-
{% assign pricePercentage = prefixVal | append: ' ' | append: priceSaveMoney | append: ' ' | append: suffixVal %}`,`{% assign priceSaveMoney = 0 | ${
|
|
9
|
+
${d("salePrice == null or price == null",o(`{% assign pricePercentage = prefixVal ${l(O,"| append: ' 0% '",`| ${j} | append: ' '`)} | append: suffixVal %}`),`${l(O,`{% assign salePercent = priceSave | divided_by: salePrice | times: 100 | round %}
|
|
10
|
+
{% assign pricePercentage = prefixVal | append: ' ' | append: salePercent | append: '% ' | append: suffixVal %}`,d("priceSave > 0",`{% assign priceSaveMoney = priceSave | ${j} %}
|
|
11
|
+
{% assign pricePercentage = prefixVal | append: ' ' | append: priceSaveMoney | append: ' ' | append: suffixVal %}`,`{% assign priceSaveMoney = 0 | ${j} %}
|
|
12
12
|
{% assign pricePercentage = prefixVal | append: ' ' | append: priceSaveMoney | append: ' ' | append: suffixVal %}`))}`)}
|
|
13
13
|
|
|
14
14
|
<gp-product-tag
|
|
15
15
|
class="${N}"
|
|
16
|
-
style="${
|
|
17
|
-
data-id="${
|
|
18
|
-
data-disabled="${
|
|
19
|
-
gp-data='{"setting":${JSON.stringify(
|
|
16
|
+
style="${T}"
|
|
17
|
+
data-id="${S?.uid}"
|
|
18
|
+
data-disabled="${d(`${l(O,"salePercent","priceSave")} > 0`,"false","true")}"
|
|
19
|
+
gp-data='{"setting":${JSON.stringify(x).replaceAll("'","'")}, "id": "${S?.uid}", "locale": "{{shop.locale}}", "currency": "{{shop.currency}}", "moneyFormat": "{{ ${x?.moneyWithCurrentFormat?"shop.money_with_currency_format":"shop.money_format"} | replace: '"', '\\"' | escape }}"}'
|
|
20
20
|
price-save="{{priceSave}}"
|
|
21
21
|
>
|
|
22
|
-
<div class="${F}" style="${
|
|
23
|
-
<div class="${E}" style="${
|
|
24
|
-
${p({styles:
|
|
22
|
+
<div class="${F}" style="${w}">
|
|
23
|
+
<div class="${E}" style="${q}">
|
|
24
|
+
${p({styles:P,id:`p-tag-${S?.uid}`,setting:{...x,translate:"",text:"{{ pricePercentage }}",excludeFlex:!0}})}
|
|
25
25
|
</div>
|
|
26
26
|
</div>
|
|
27
27
|
|
|
28
28
|
</gp-product-tag>
|
|
29
|
-
${
|
|
29
|
+
${k()}
|
|
30
30
|
`};export{ProductTag as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useMoneyFormat as e,useEditorMode as t,useProduct as r,useCurrentVariant as n,useQuantity as o,
|
|
1
|
+
import{useMoneyFormat as e,useEditorMode as t,useProduct as r,useCurrentVariant as n,useQuantity as o,convertDecimalToNumber as u,useFormatMoney as i,useProductBundleDiscount as p,formatMoney as c}from"@gem-sdk/core";import{useMemo as s}from"react";import{applyBundleDiscountAmount as a}from"../../../helpers/product-bundle.js";import{DiscountType as m}from"../../constants/product-bundle.js";let useGpDiscountTag=l=>{let{setting:d,...g}=l,{customContent:f}=d??{},b=g["bundle-item"],{moneyFormat:h}=e(),D=t(),$=r(),j=n(),{quantity:y,hasUpdatePrice:G}=o(),P=s(()=>G&&f?.unit!=="percentage"?y??1:1,[G,f?.unit,y]),T=u(j?.price)??0,k=u(j?.salePrice)??0,x=(k-T)*P,C=i(x<0?0:x,d?.moneyWithCurrentFormat||!1),F=s(()=>{if(!k&&0!==k||!T&&0!==T)return`${f?.unit==="percentage"?"0%":C}`;if(f?.unit==="percentage"){let e=Math.round(x/(k/100));return`${e<0?0:e}%`}return`${C}`},[f?.unit,C,T,x,k]),{useProductCompareAtPrice:I}=p(),{discountPercentAmount:M}=a({currentVariant:j,bundleItem:b,options:{moneyFormat:h,useProductCompareAtPrice:I}}),N=s(()=>{if(!b)return 0;let{discountPercentAmount:e,discountAmount:t}=a({currentVariant:j,bundleItem:b,options:{moneyFormat:h,useProductCompareAtPrice:I}}),{discountType:r}=b,{unit:n}=f||{};return r!==m.NoDiscount||I?"percentage"===n?`${e}%`:t:"percentage"===n?"0%":c("0",h)},[b,j,h,I,f]),W=s(()=>b?N:F,[N,b,F]),q=$?.baseID?.replace("gid://shopify/Product/",""),v=s(()=>{let e=b?M<=0:x<=0;return"edit"===D&&e},[b,M,D,x]);return{mode:D,product:$,salePrice:k,priceSave:x,currentProductId:q,unitCustomDisplay:W,shouldPlaceholderNoDiscount:v}};export{useGpDiscountTag};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getResponsiveValueByScreen as o}from"@gem-sdk/core";import{getDotStyleConfig as t,getCarouselVerticalConfigByPosition as r,getAllowDotConfig as a}from"./productGallery.js";import{getDotStyleForOnlyFeaturedImage as e}from"./productFeaturedImage.js";let DEVICES=["desktop","mobile","tablet"],getGalleryCarouselSettingAttr=a=>{let e={desktop:"inside"===o(a.navigationPosition,"desktop"),tablet:"inside"===o(a.navigationPosition,"tablet"),mobile:"inside"===o(a.navigationPosition,"mobile")},i=DEVICES.reduce((o,t)=>(a.navigationPosition?.[t]&&(o[t]="none"!==a.navigationPosition[t]),o),{});return{...a?.loop&&{loop:a.loop},itemNumber:{desktop:"auto",tablet:"auto",mobile:"auto"},dot:{desktop:!1,tablet:!1,mobile:!1},dotStyle:t(),controlOverContent:e,...a?.dragToScroll&&{enableDrag:{desktop:a.dragToScroll,tablet:a.dragToScroll,mobile:a.dragToScroll}},vertical:r(a.position),...a?.arrowIcon&&{arrowCustom:a.arrowIcon},arrowIconSize:a.arrowIconSize||{desktop:24},...a?.arrowIconColor&&{arrowCustomColor:a.arrowIconColor},...a?.arrowNavColor&&{arrowBackgroundColor:a.arrowNavColor},...a?.arrowNavBorder&&{arrowBorder:{desktop:a.arrowNavBorder}},...a?.arrowNavRadius&&{roundedArrow:{desktop:a.arrowNavRadius}},...a?.arrowNavShadow&&{arrowShadow:{desktop:a.arrowNavShadow}},arrowGapToEachSide:"16",navigationStyle:a.navigationPosition,navigationEnable:i,arrowButtonSize:{desktop:{width:a.arrowNavSize?.width,height:a.arrowNavSize?.height,padding:a.arrowNavSize?.padding}},animationMode:a?.ftAnimationMode,enableAction:{desktop:!0}}},getFeaturedCarouselSettingAttr=t=>{let r={desktop:"inside"===o(t.ftNavigationPosition,"desktop"),tablet:"inside"===o(t.ftNavigationPosition,"tablet"),mobile:"inside"===o(t.ftNavigationPosition,"mobile")},i=DEVICES.reduce((o,r)=>(t.ftNavigationPosition?.[r]&&(o[r]="none"!==t.ftNavigationPosition[r]),o),{});return{...t?.ftLoop&&{loop:t.ftLoop},itemNumber:{desktop:1},dot:a(),dotStyle:e({position:t.position,dotStyle:t.ftDotStyle}),dotSize:t.ftDotSize??{desktop:12},dotGapToCarousel:t.ftDotGapToCarousel??{desktop:16},dotColor:t.ftDotColor??{desktop:"bg-1"},dotActiveColor:t.ftDotActiveColor??{desktop:"line-3"},controlOverContent:r,...t?.ftDragToScroll&&{enableDrag:{desktop:t.ftDragToScroll,tablet:t.ftDragToScroll,mobile:t.ftDragToScroll}},...t?.ftArrowIcon&&{arrowCustom:t.ftArrowIcon},arrowIconSize:t.ftArrowIconSize||{desktop:24},...t?.ftArrowIconColor&&{arrowCustomColor:t.ftArrowIconColor},...t?.ftArrowNavColor&&{arrowBackgroundColor:t.ftArrowNavColor},...t?.ftArrowNavBorder&&{arrowBorder:{desktop:t.ftArrowNavBorder}},...t?.ftArrowNavRadius&&{roundedArrow:{desktop:t.ftArrowNavRadius}},...t?.ftArrowNavShadow&&{arrowShadow:{desktop:t.ftArrowNavShadow}},
|
|
1
|
+
import{getResponsiveValueByScreen as o}from"@gem-sdk/core";import{getDotStyleConfig as t,getCarouselVerticalConfigByPosition as r,getAllowDotConfig as a}from"./productGallery.js";import{getDotStyleForOnlyFeaturedImage as e}from"./productFeaturedImage.js";let DEVICES=["desktop","mobile","tablet"],getGalleryCarouselSettingAttr=a=>{let e={desktop:"inside"===o(a.navigationPosition,"desktop"),tablet:"inside"===o(a.navigationPosition,"tablet"),mobile:"inside"===o(a.navigationPosition,"mobile")},i=DEVICES.reduce((o,t)=>(a.navigationPosition?.[t]&&(o[t]="none"!==a.navigationPosition[t]),o),{});return{...a?.loop&&{loop:a.loop},itemNumber:{desktop:"auto",tablet:"auto",mobile:"auto"},dot:{desktop:!1,tablet:!1,mobile:!1},dotStyle:t(),controlOverContent:e,...a?.dragToScroll&&{enableDrag:{desktop:a.dragToScroll,tablet:a.dragToScroll,mobile:a.dragToScroll}},vertical:r(a.position),...a?.arrowIcon&&{arrowCustom:a.arrowIcon},arrowIconSize:a.arrowIconSize||{desktop:24},...a?.arrowIconColor&&{arrowCustomColor:a.arrowIconColor},...a?.arrowNavColor&&{arrowBackgroundColor:a.arrowNavColor},...a?.arrowNavBorder&&{arrowBorder:{desktop:a.arrowNavBorder}},...a?.arrowNavRadius&&{roundedArrow:{desktop:a.arrowNavRadius}},...a?.arrowNavShadow&&{arrowShadow:{desktop:a.arrowNavShadow}},arrowGapToEachSide:"16",navigationStyle:a.navigationPosition,navigationEnable:i,arrowButtonSize:{desktop:{width:a.arrowNavSize?.width,height:a.arrowNavSize?.height,padding:a.arrowNavSize?.padding}},animationMode:a?.ftAnimationMode,enableAction:{desktop:!0}}},getFeaturedCarouselSettingAttr=t=>{let r={desktop:"inside"===o(t.ftNavigationPosition,"desktop"),tablet:"inside"===o(t.ftNavigationPosition,"tablet"),mobile:"inside"===o(t.ftNavigationPosition,"mobile")},i=DEVICES.reduce((o,r)=>(t.ftNavigationPosition?.[r]&&(o[r]="none"!==t.ftNavigationPosition[r]),o),{});return{...t?.ftLoop&&{loop:t.ftLoop},itemNumber:{desktop:1},dot:a(),dotStyle:e({position:t.position,dotStyle:t.ftDotStyle}),dotSize:t.ftDotSize??{desktop:12},dotGapToCarousel:t.ftDotGapToCarousel??{desktop:16},dotColor:t.ftDotColor??{desktop:"bg-1"},dotActiveColor:t.ftDotActiveColor??{desktop:"line-3"},controlOverContent:r,...t?.ftDragToScroll&&{enableDrag:{desktop:t.ftDragToScroll,tablet:t.ftDragToScroll,mobile:t.ftDragToScroll}},...t?.ftArrowIcon&&{arrowCustom:t.ftArrowIcon},arrowIconSize:t.ftArrowIconSize||{desktop:24},...t?.ftArrowIconColor&&{arrowCustomColor:t.ftArrowIconColor},...t?.ftArrowNavColor&&{arrowBackgroundColor:t.ftArrowNavColor},...t?.ftArrowNavBorder&&{arrowBorder:{desktop:t.ftArrowNavBorder}},...t?.ftArrowNavRadius&&{roundedArrow:{desktop:t.ftArrowNavRadius}},...t?.ftArrowNavShadow&&{arrowShadow:{desktop:t.ftArrowNavShadow}},arrowGapToEachSide:"16",animationMode:t?.ftAnimationMode,...t?.ftNavigationPosition&&{navigationStyle:t.ftNavigationPosition},navigationEnable:i,arrowButtonSize:{desktop:{width:t.ftArrowNavSize?.width,height:t.ftArrowNavSize?.height,padding:t.ftArrowNavSize?.padding}},enableAction:{desktop:!0}}};export{getFeaturedCarouselSettingAttr,getGalleryCarouselSettingAttr};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{makeStyleResponsive as e,template as a,cls as i}from"@gem-sdk/core";import{getAspectRatio as t,getPaddingBottomByShapeSetting as r,getSrcImage as s}from"../../common/common.js";import{checkRenderFeaturedCarousel as d,getVideoHeight as o,getZoomImageClass as u,getZoomLenClass as l}from"../../common/productFeaturedImage.js";import m from"../../../../../video/components/HTML5Embed.liquid.js";import
|
|
1
|
+
import{makeStyleResponsive as e,template as a,cls as i}from"@gem-sdk/core";import{getAspectRatio as t,getPaddingBottomByShapeSetting as r,getSrcImage as s}from"../../common/common.js";import{checkRenderFeaturedCarousel as d,getVideoHeight as o,getZoomImageClass as u,getZoomLenClass as l}from"../../common/productFeaturedImage.js";import m from"../../../../../video/components/HTML5Embed.liquid.js";import p from"../../../../../image/components/Modal3d.liquid.js";import g from"../../../../../image/components/NextImage.liquid.js";import n from"../../../../../image/components/Video.liquid.js";import{getStyleOfObject as c}from"../../../../helpers/function.js";import{getProductImagesStyles as f}from"../../composables/getProductImagesStyles.js";import{getProductImagesClassName as h}from"../../composables/getProductImagesClassName.js";import{getProductImagesAttr as y}from"../../composables/getProductImagesAttr.js";import{LiquidIf as M,LiquidFor as b,Liquid as $,If as _,createStyle as v}from"@gem-sdk/system";import w from"../../../../../carousel-v3/components/root/Carousel.liquid.js";import I from"../../../../../carousel-v3/components/item/CarouselItem.liquid.js";let FeatureImageWithGallery=({builderPropUID:x,children:q,enableLazyLoadImage:j,...z})=>{let{featuredImageCarouselClasses:S,galleryItemClasses:L,featuredCarouselItemClasses:P}=h({...z,builderProps:{uid:x}}),{featuredImageCarouselStyle:R,featureImageStyle:W,featureImageCarouselOnlyOneImageStyle:T,featureImageOnlyOneImageStyle:C,featureImageCarouselItemStyle:N}=f(z),{featuredImageCarouselSettingAttrs:k}=y(z),E=t(z.ftShape),O=()=>`
|
|
2
2
|
{% case featureMedia.media_type %}
|
|
3
3
|
{% when 'image' %}
|
|
4
4
|
${F()}
|
|
@@ -13,7 +13,7 @@ import{makeStyleResponsive as e,template as a,cls as i}from"@gem-sdk/core";impor
|
|
|
13
13
|
{% else %}
|
|
14
14
|
${G()}
|
|
15
15
|
{% endcase %}
|
|
16
|
-
`,A=()=>
|
|
16
|
+
`,A=()=>p({src:M("featureMedia.sources.first.url contains '.glb'","{{ featureMedia.sources.first.url }}","{{featureMedia.sources.last.url}}"),alt:"{{featureMedia.preview_image.alt}}",poster:"{{featureMedia.preview_image.src | product_img_url: '1024x1024'}}",cameraControls:!0,arStatus:"not-presenting",style:{width:"100%"},aspectRatio:E}),D=()=>n({src:"{{mediaSourceVideo}}",alt:"{{featureMedia.alt | escape}}",autoplay:!1,allowfullscreen:!0,controls:!0,style:{width:"100%",height:"100%"},aspectRatio:E}),V=()=>{let a=v({...o(z?.ftLayout),...e("objf",z?.ftLayout)}),i=v({...o(z?.ftLayout)});return m({src:"{{mediaSourceVideo}}",title:"{{featureMedia.alt | escape}}",autoplay:!1,controls:!0,thumbnail:"{{featureMedia.preview_image.src | product_img_url: '1024x1024'}}",isCheckLoaded:!0,wrapperStyles:i,poster:{altText:"{{featureMedia.alt | escape}}"},style:{width:"100%","max-height":"100%",...a},className:"gp-invisible"})},F=()=>a`
|
|
17
17
|
${H(i("gp-w-full gp-transition-opacity",{"group-hover:gp-opacity-0":"other"==z.hoverEffect},"{{shouldHidden}}"))}
|
|
18
18
|
${_(z?.hoverEffect!=="none",`<div class="${i("zoom-element !gp-max-w-none",u())}">
|
|
19
19
|
${H("image-zoom",!0)}
|
|
@@ -29,8 +29,8 @@ import{makeStyleResponsive as e,template as a,cls as i}from"@gem-sdk/core";impor
|
|
|
29
29
|
{% assign otherImage = product.media[other_image_index] %}
|
|
30
30
|
${M("otherImage.media_type != 'image'","{% assign src = otherImage.preview_image.src %}","{% assign src = otherImage.src %}")}
|
|
31
31
|
`)}
|
|
32
|
-
${
|
|
33
|
-
${
|
|
32
|
+
${g({srcIsLiquidCode:!0,src:M("src != null",s("src"),"https://cdn.shopify.com/s/assets/no-image-2048-5e88c1b20e087fb7bbe9a3771824e743c244f437e4f8ba93bbf7b11b53f7824c_large.gif"),id:M("featureMedia != null","{{featureMedia.id}}"),width:"{{featureMedia.width}}",height:"{{featureMedia.height}}",alt:"{{featureMedia.alt | escape}}",srcset:`${s("src")}`,baseSrc:"{{src | image_url}}",sizes:"(max-width: 768px) 50vw, 100vw",setting:{layout:z?.ftLayout,aspectRatio:E,qualityType:z?.qualityType,qualityPercent:z?.qualityPercent},priority:z?.preload,className:`gp-w-full gp-h-full gp-absolute gp-top-0 gp-left-0 featured-image-only gp-cursor-pointer !gp-rounded-none ${e??""}`,enableLazyLoadImage:j})}`,G=()=>a`
|
|
33
|
+
${g({srcIsLiquidCode:!0,src:"https://cdn.shopify.com/s/assets/no-image-2048-5e88c1b20e087fb7bbe9a3771824e743c244f437e4f8ba93bbf7b11b53f7824c_large.gif",alt:"No Image",sizes:"(max-width: 768px) 50vw, 100vw",setting:{layout:z?.ftLayout,aspectRatio:E,qualityType:z?.qualityType,qualityPercent:z?.qualityPercent},priority:z?.preload,className:"gp-w-full gp-h-full gp-absolute gp-top-0 gp-left-0 featured-image-only gp-cursor-pointer !gp-rounded-none",enableLazyLoadImage:j})}`,B=r(z.ftShape),J=a=>`
|
|
34
34
|
${$(`{% assign productImageWidth = 0 %}
|
|
35
35
|
{% case featureMedia.media_type %}
|
|
36
36
|
{% when 'image' %}
|
|
@@ -54,7 +54,7 @@ import{makeStyleResponsive as e,template as a,cls as i}from"@gem-sdk/core";impor
|
|
|
54
54
|
`)}
|
|
55
55
|
${b("featureMedia in product.media",`${M("featureMedia.media_type == 'image'",`${b("image in product.images",M("image.src == featureMedia.src","{% assign imageID = image.id %}{% break %}"))}`,"{% assign imageID = '' %}")}
|
|
56
56
|
${J()}`)}
|
|
57
|
-
`,
|
|
57
|
+
`,g({src:"https://cdn.shopify.com/s/assets/no-image-2048-5e88c1b20e087fb7bbe9a3771824e743c244f437e4f8ba93bbf7b11b53f7824c_large.gif",id:"noImageError",width:"480",height:"480",alt:"no image",priority:z?.preload,setting:{layout:z?.ftLayout,aspectRatio:E,qualityType:z?.qualityType,qualityPercent:z?.qualityPercent},style:{height:"100%"},className:"gp-w-full featured-image-only !gp-rounded-none",customLazyload:!0,enableLazyLoadImage:j})),X=()=>`
|
|
58
58
|
${w({builderProps:{uid:x},rootId:`ft-${x}-{{section.id}}-{{product.id}}`,conditionAppendJs:"product.media.size > 1",wrapperClass:Q,rootClass:`${S}`,rootAttrs:{type:"gp-feature-image-carousel","product-id":"{{product.id}}","product-media":"{{product.media.size}}"},isHiddenArrowWhenDisabled:!0,setting:k,rootStyles:W,styles:R,style:{playSpeed:600},disableMarginAuto:!0,children:U,productBadgeLiquid:q||""})}
|
|
59
59
|
`,Y=()=>{switch(z?.preDisplay){case"1st-images":return`
|
|
60
60
|
{% assign featureMedia = product.media.first %}
|
|
@@ -88,7 +88,7 @@ import{makeStyleResponsive as e,template as a,cls as i}from"@gem-sdk/core";impor
|
|
|
88
88
|
>
|
|
89
89
|
<div
|
|
90
90
|
class="gp-relative"
|
|
91
|
-
style="${c(
|
|
91
|
+
style="${c(C)}"
|
|
92
92
|
>
|
|
93
93
|
${q}
|
|
94
94
|
<div
|
|
@@ -96,7 +96,7 @@ import{makeStyleResponsive as e,template as a,cls as i}from"@gem-sdk/core";impor
|
|
|
96
96
|
product-id="{{product.id}}"
|
|
97
97
|
product-media="{{product.media.size}}"
|
|
98
98
|
class="${P(Q)}"
|
|
99
|
-
style="${c(
|
|
99
|
+
style="${c(T)}"
|
|
100
100
|
>
|
|
101
101
|
<div
|
|
102
102
|
class="gp-w-full gp-relative ${M("featureMedia == null or featureMedia.media_type == 'image'","{{ 'gp-h-0' }}","{{ 'gp-h-full !gp-pb-0' }}")}"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,Fragment as t,jsxs as o}from"react/jsx-runtime";import r from"next/dynamic";import d from"../../../common/components/Loading.js";import{useState as l,useMemo as i,useEffect as a}from"react";import{useRenderMode as c,useCurrentDevice as n,usePageType as s,usePageStore as u,useFetchHandle as m,hasPublicStoreFrontData as g,createStoreFrontFetcher as h,useProductQuery as p,useProductsQueryAll as P,useProductsQuery as f,useCollectionQuery as b,flattenConnection as
|
|
1
|
+
import{jsx as e,Fragment as t,jsxs as o}from"react/jsx-runtime";import r from"next/dynamic";import d from"../../../common/components/Loading.js";import{useState as l,useMemo as i,useEffect as a}from"react";import{useRenderMode as c,useCurrentDevice as n,usePageType as s,usePageStore as u,useFetchHandle as m,hasPublicStoreFrontData as g,createStoreFrontFetcher as h,useProductQuery as p,useProductsQueryAll as P,useProductsQuery as f,useCollectionQuery as b,flattenConnection as T,ProductListProvider as k,filterToolbarPreview as I}from"@gem-sdk/core";import v from"../SalePageProductListWarning.js";import y from"next/head";import O from"./ProductListGridLayout.js";import N from"./ProductListCarouselLayout.js";import{getStyle as S}from"./common/styles.js";import{If as C}from"@gem-sdk/system";import{getClass as E}from"./common/classes.js";import{getData as w}from"./common/helpers.js";import{getPropertyByDevice as L}from"../../../dialog/common/helpers.js";let ProductNotFound=r(()=>import("../ProductNotFound.js"),{loading:d}),ProductList=r=>{let{children:W,styles:j,builderProps:x,setting:G,builderAttrs:M}=r,{isRelatedProduct:A,productSetting:B}=w(r),F=B.relatedTag&&B.relatedTag[0],{isEditMode:H,isPreviewSharePageMode:Q}=c(),z=n(),D=s(),R=u(e=>e.dynamicProduct),$=u(e=>e.dynamicCollection),[_,V]=l(1),[q,U]=l(!0),[J,K]=l(),[X,Y]=l(!1),Z="GP_FUNNEL_PAGE"===D,ee="GP_COLLECTION"==D;ee&&(B.productSrc="DynamicCollection",B.collectionId=$?.collectionId??"latest");let et=B?.productSrc??"Collection",eo=R?.productId&&R?.productId!==B.relatedProductId?R?.productId:B.relatedProductId,er=m(),ed=u(e=>e.publicStoreFrontData),el=i(()=>g(ed)?h(ed):er,[ed]),{data:ei}=p(A&&eo?eo:void 0,{revalidateOnMount:H||Q},el),ea=B.relatedTag&&"tags"===B.relatedTag[0]&&(!ei?.tags||ei?.tags.length===0),ec=B.relatedTag&&"collection"===B.relatedTag[0]&&(!ei?.collections?.edges||ei?.collections.edges.length===0),en=B.relatedTag&&"vendor"===B.relatedTag[0]&&!ei?.vendor,es=ea||ec||en,eu=P(J,{revalidateOnMount:H||Q},el),em=H||Q,eg=f("PickProduct"===et?B?.productIds:void 0,{revalidateOnMount:em},{defaultSelectedProductCount:B?.numOfSelectedProducts}),eh=i(()=>({id:B?.collectionId??"latest",numberOfProducts:G?.numberOfProducts??4,orderBy:G?.orderBy}),[B?.collectionId,Number(G?.numberOfProducts),G?.orderBy]),ep=b("PickProduct"!==et?eh:void 0,{revalidateOnMount:em});a(()=>{if(A&&ei&&B.relatedTag&&"recommended-product"!==B.relatedType){let e;switch(Y(!1),B.hasRelatedExclude&&(e=B?.relatedExclude&&B.relatedExclude.split(",").map(e=>e.trim())),B.relatedTag[0]){case"vendor":K({vendor:B.relatedTag&&"vendor"===B.relatedTag[0]?ei?.vendor:"",limit:G?.numberOfProducts,idNEQ:ei.id});break;case"collection":{let t;let o=ei?.collections?.edges.map(e=>e.node?.id);if(!o||o?.length===0){Y(!0);break}K(t=e&&e.length>0?{idNEQ:ei.id,hasCollectionProductsWith:[{hasCollectionWith:[{idIn:o},{titleNotIn:e}]}],limit:G?.numberOfProducts}:{idNEQ:ei.id,hasCollectionProductsWith:[{hasCollectionWith:[{idIn:o}]}],limit:G?.numberOfProducts});break}case"tags":{let t;if(!ei.tags||0===ei.tags.length){Y(!0);break}K(t=e&&e.length>0?{idNEQ:ei.id,hasProductTagsWith:[{hasTagsWith:[{nameIn:ei.tags},{nameNotIn:e}]}],limit:G?.numberOfProducts}:{idNEQ:ei.id,hasProductTagsWith:[{hasTagsWith:[{nameIn:ei.tags}]}],limit:G?.numberOfProducts})}}}},[ei,B.relatedType,B.relatedTag,G?.numberOfProducts,B.relatedExclude,B.hasRelatedExclude,A]);let eP="PickProduct"===et?eg.isValidating:ep.isValidating,ef="PickProduct"===et?eg.isLoading:ep.isLoading,eb="PickProduct"===et?eg.error:ep.error,eT=ep.data?.collections?.edges?.[0]?.node,ek="PickProduct"===et?T(eg.data?.products):T(eT?.products),eI=u(e=>e.assignedProductIds),ev=u(e=>e.isApplyAllProducts),ey=i(()=>(eI??[]).length>0&&!ev||ev,[eI,ev]),eO=eu?.data?.products&&ey?T(eu?.data?.products):[],eN=A?eO:"PickProduct"===et&&B?.productIds?.length?B?.productIds?.map(e=>ek?.find(t=>t?.baseID===e)).filter(Boolean)??ek:"PickProduct"!==et?ek:ek.filter((e,t)=>t<(B?.numOfSelectedProducts??4)),eS=i(()=>X&&A&&H||!eN.length&&!ef&&q&&H,[q,ef,X,A,H,eN.length]),eC=i(()=>!eN||X&&A,[X,A,eN]),eE=i(()=>{if(!G?.sameHeight)return[];let e=0,t=Math.ceil((eN?.length??0)/+(G?.slidesToShow?.[z]??1));return Array.from(Array(eN?.length??0)).map((o,r)=>(r>=+(G?.slidesToShow?.[z]??1)*(e+1)&&++e,{gridRow:`${1+_*e}/${_+1+_*e}`,marginBottom:e+1<t?L(j?.horizontalGutter,z):void 0}))},[G?.sameHeight,G?.slidesToShow,_,eN?.length,z,j?.horizontalGutter]),ew=i(()=>eP||ef||eb||!eN||X&&A,[eb,ef,X,A,eP,eN]);a(()=>{if(ew||!G?.sameHeight)return;let e=null,t=setTimeout(()=>{let{builderData:t}=x??{},o=t?.childrens?.[0];if(!o)return;let r=document.querySelector(`[data-id=${o}] div`);r&&(V(r.childElementCount||1),e=new MutationObserver(()=>{let e=r.childElementCount||1;V(e)}),H&&e.observe(r,{childList:!0,subtree:!1}))},500);return()=>{clearTimeout(t),e&&e.disconnect()}},[x,ew,H,G?.sameHeight]);let eL=i(()=>({collection:eT,products:eN,settings:{loop:G?.loop??{desktop:!1},scrollMode:G?.scrollMode??{desktop:"snap"},slidesToShow:G?.slidesToShow??{desktop:4,tablet:3,mobile:1},layout:j?.layout,dot:G?.dot,dotStyle:G?.dotStyle,arrow:G?.arrow,controlOverContent:G?.controlOverContent},styles:{horizontalGutter:j?.horizontalGutter,verticalGutter:j?.verticalGutter,fullWidth:j?.fullWidth,spacing:j?.spacing,width:j?.width,height:j?.height}}),[eT,eN,G,j]);if(x?.isPreview&&Z)return e(t,{});if(eS)return e(t,{children:C(q,e(ProductNotFound,{builderAttrs:M,collectionHandle:eT?.handle,productSrc:et,onClose:()=>U(!1),children:W,relatedTagString:F,assignProductNoTags:es,noAssignedProduct:!eo}))});let{productListWrapStyle:eW,productListContentStyle:ej,productListWrapAlignStyle:ex}=S(r),{productListWrapClass:eG}=E(r),eM=()=>e(t,{children:C(j?.layout==="grid",e(O,{...r,productSortedById:eN,generateGridRowArray:eE}),e(N,{...r,productSortedById:eN}))});return o("div",{...M,className:eG,style:eW,children:[!!j?.preloadBgImage&&o(y,{children:[!!j.backgroundImage?.desktop?.image?.src&&e("link",{rel:"preload",href:j.backgroundImage.desktop.image.src,as:"image"}),!!j.backgroundImage?.tablet?.image?.src&&e("link",{rel:"preload",href:j.backgroundImage?.tablet?.image?.src,as:"image"}),!!j.backgroundImage?.mobile?.image?.src&&e("link",{rel:"preload",href:j.backgroundImage?.mobile?.image?.src,as:"image"})]}),eP||ef?e(d,{}):eb?o("div",{children:["Error: ",eb?.message]}):eC?e("div",{children:"Products not found"}):e(k,{...eL,children:e("div",{className:"gp-flex gp-w-full",style:ex,children:o("div",{style:ej,children:[Z&&e(v,{}),eM()]})})}),I(W,!0)]})};export{ProductList as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createClass as e}from"@gem-sdk/system";let getClass=g=>{let{setting:
|
|
1
|
+
import{createClass as e}from"@gem-sdk/system";let getClass=g=>{let{setting:t,className:s,builderProps:i,advanced:p,styles:r}=g,l=e({...s&&{[s]:!0},...p?.cssClass&&{[p.cssClass]:!0},"!gp-m-auto gp-grid gp-w-full":!0,"gp-grid-flow-row":t?.sameHeight}),a=e({"gp-relative gp-flex":!0,[`${i?.builderData?.uid}`]:!0}),d=e({"gp-contents":t?.sameHeight&&r?.layout==="grid"}),o=e({"gp-justify-center":!0,"gp-overflow-hidden":!t?.sameHeight}),m=e({"gp-contents [&>*>div]:gp-contents [&>*]:gp-grid-rows-[subgrid] [&>*]:gp-gap-y-0":t?.sameHeight&&r?.layout==="grid",[`gp-child-item-${i?.uid}`]:!0});return{gridLayoutClass:l,productItemClass:m,carouselClass:o,productListWrapClass:a,gpProductClass:d}};export{getClass};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import{jsxs as e,jsx as r,Fragment as
|
|
2
|
+
import{jsxs as e,jsx as r,Fragment as o}from"react/jsx-runtime";import t from"../../../text/components/Text.js";import{createClass as i,createAttr as m}from"@gem-sdk/system";import{getWrapperClasses as s}from"./common/classes.js";import{getAttrs as c}from"./common/attrs.js";import{getTextProps as p}from"./common/helpers.js";import{useGpPrice as d}from"./hooks/useGpPrice.js";import{useEditorMode as l,filterToolbarPreview as a}from"@gem-sdk/core";let ProductPrice=n=>{let{style:f,children:h}=n,g=l(),x="edit"===g,{elementRef:u,moneyFormatted:j,currentProductId:P,isNoComparePrice:y,isNoComparePriceILP:k,shouldHiddenComparePrice:N,emitNoDataSignal:v}=d(n),b=i(s(n)),C=m(c(n,{isILP:!x,productId:P,shouldHiddenComparePrice:N})),H=p(n,j),I={visibility:"hidden",opacity:0,maxWidth:0,maxHeight:0},w=k?I:f;return e("div",{ref:u,...C,className:b,style:w,"aria-hidden":"true",onClick:v,children:[y&&x?r(o,{children:r("div",{className:"gp-flex-col gp-flex gp-justify-between gp-p-2",children:r("p",{className:"gp-text-[#212121] gp-text-[12px] gp-leading-3 ",children:"No compare price"})})}):e(o,{children:[r(t,{...H}),h]}),a(h,!0)]})};export{ProductPrice as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{filterTruthyObject as e}from"../../../../helpers.js";let getAttrs=(t,r)=>{let{builderAttrs:
|
|
1
|
+
import{filterTruthyObject as e}from"../../../../helpers.js";let getAttrs=(t,{isILP:r,productId:a,shouldHiddenComparePrice:i}={})=>{let{builderAttrs:d,setting:p,builderProps:n}=t,c=p?.priceType==="compare",o=()=>!!c&&(r?String(i):"{% if variant.compare_at_price > variant.price and variant.compare_at_price >= 0 %}false{% else %}true{% endif %}");return e({...d,id:`shopify-text-element-${n?.uid}`,"data-id":n?.uid,"data-product-id":a,"data-hidden":o()})};export{getAttrs};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let getWrapperClasses=e=>{let{builderProps:s,classNames:a,advanced:t}=e;return{"gp-product-price group-data-[state=loading]:gp-invisible data-[hidden=true]
|
|
1
|
+
let getWrapperClasses=e=>{let{builderProps:s,classNames:a,advanced:t}=e;return{"gp-product-price group-data-[state=loading]:gp-invisible data-[hidden=true]:!gp-hidden":!0,...s?.uid&&{[s.uid]:!0},...t?.cssClass&&{[t.cssClass]:!0},...a&&{[a]:!0}}};export{getWrapperClasses};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useRef as e,useMemo as r}from"react";import{useTransition as t}from"../../product-variants/common/common.js";import{useEditorMode as c,useQuantity as i,useCurrentVariant as a,useProductBundleDiscount as n,
|
|
1
|
+
import{useRef as e,useMemo as r}from"react";import{useTransition as t}from"../../product-variants/common/common.js";import{useEditorMode as c,useQuantity as i,useCurrentVariant as a,useProductBundleDiscount as n,convertDecimalToNumber as o,useInteraction as u,useProduct as p,useShopStore as d,useFormatMoney as l}from"@gem-sdk/core";let useGpPrice=m=>{let{setting:s,builderProps:g}=m,b=e(null),h=c(),{quantity:y,hasUpdatePrice:P}=i(),v=a(),{useProductCompareAtPrice:f}=n(),w=m["bundle-item"],V=o(v?.price)??0,k=o(v?.salePrice)??0,q=s?.priceType==="compare",{trigger:T}=u(),x=p(),C=x?.baseID?.replace("gid://shopify/Product/",""),E=d(e=>e.showPriceCurrency),G=r(()=>w?.quantity?w.quantity:P&&y||1,[y,P,w?.quantity]),$=r(()=>{let e=Number(w?.discountValue);return w?.discountType==="percentage"?V*G*e/100:e},[w?.discountType,w?.discountValue,V,G]),j=r(()=>w?.discountValue?f?(k||V)*G:V*G:k*G,[w?.discountValue,V,G,k,f]),D=r(()=>{let e=V*G;return q?j:$?Math.max(0,e-$):e},[V,G,$,j,q]),I=r(()=>!!q&&(!(k>V)||!(k>=0)),[q,k,V]),M=(e,r)=>{T({event:"price"===r?"gp:rollback:price-change":"gp:rollback:compare-price-change",selector:`[data-id="${g?.uid}"]`,element:b.current}),T({event:"price"===r?"gp:price-change":"gp:compare-price-change",data:e,selector:`[data-id="${g?.uid}"]`,element:b.current})};t(e=>{e!==V&&M(V,"price")},[V]),t(e=>{e!==k&&M(k,"compare")},[k]);let N=()=>{if("edit"!==h)return;let e=new CustomEvent("editor:product-source-no-data-warning",{bubbles:!0,detail:{uid:g?.uid,value:!D&&q,tag:"ProductPrice"}});window.dispatchEvent(e)},z=l(D??0,E||!1),A=q&&!D,B="edit"!==h&&A;return{elementRef:b,moneyFormatted:z,currentProductId:C,isNoComparePrice:A,isNoComparePriceILP:B,emitNoDataSignal:N,shouldHiddenComparePrice:I}};export{useGpPrice};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getDynamicSourceLocales as e}from"../../../../helpers.js";let getContents=(
|
|
1
|
+
import{getDynamicSourceLocales as e,createSettingId as t}from"../../../../helpers.js";import{ProductProperties as i}from"../../../settings/product-properties/configs/translate.js";let getContents=(d,s,n)=>{let{label:a,invalidNumberMessage:l,invalidEmailMessage:r,requiredMessage:g,invalidLengthMessage:o}=n??{},u=e({val:a,uid:d,settingId:t({id:i?.label?.id}),pageContext:s}),v=e({val:l,uid:d,settingId:t({id:i?.invalidNumberMessage?.id}),pageContext:s}),p=e({val:r,uid:d,settingId:t({id:i?.invalidEmailMessage?.id}),pageContext:s}),m=e({val:g,uid:d,settingId:t({id:i?.requiredMessage?.id}),pageContext:s}),I=e({val:o,uid:d,settingId:t({id:i?.invalidLengthMessage?.id}),pageContext:s});return{displayLabel:u,invalidNumberMessageDisplay:v,invalidEmailMessageDisplay:p,requiredMessageDisplay:m,invalidLengthMessageDisplay:I}},getLabelContent=e=>{let{label:t,required:i}=e??{};return i&&t?" *":""};export{getContents,getLabelContent};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import{makeStyleResponsive as e,makeWidth as o,template as
|
|
2
|
-
<style>${
|
|
1
|
+
import{makeStyleResponsive as e,makeWidth as o,template as t}from"@gem-sdk/core";import{getPPCInlineStyleChoice as r}from"./common/getProductPropertiesChoiceInlineCss.js";import{getDynamicSourceLocales as s,createSettingId as i}from"../../../../helpers.js";import{createClass as m,createStyle as c,createAttr as l}from"@gem-sdk/system";import{getPPCWrapperClasses as p,getPPCLabelClasses as d,getPPCWrapperClassesMain as $}from"./common/getProductPropertiesChoiceClasses.js";import{getPPCContainerStyles as a,getPPCLabelStyles as n,getPPCInputStyles as u}from"./common/getProductPropertiesChoiceStyles.js";import{getPPCInputAttrs as f}from"./common/getProductPropertiesChoiceAttrs.js";import{ProductProperties as P}from"../../../settings/product-properties/configs/translate.js";let ProductPropertyChoice=({setting:y,styles:g,builderProps:h,pageContext:C,attributes:j})=>{let v=h?.uid,{name:b,type:k,childItem:I}=y??{},{valueTextColor:x,fullWidth:_,width:w}=g??{},A=e("w",o(w,_)),S=`properties[${b}]`,q=r(v,x),z=m({...p()}),B=m({...d(g)}),D=c({...a(g)}),E=m({...$()}),F=c({...n(g)}),G=l({...f(j)}),H=c({...u(g)});return t`<div style="${{...A}}" class="${E}">
|
|
2
|
+
<style>${q}</style>
|
|
3
3
|
|
|
4
|
-
${
|
|
5
|
-
<div class="${
|
|
4
|
+
${I?.map((e,o)=>{let r=s({val:e,uid:v,settingId:i({id:P?.childItem?.id,index:o}),pageContext:C});return t`
|
|
5
|
+
<div class="${z}" style="${D}">
|
|
6
6
|
<input
|
|
7
|
-
${{...
|
|
8
|
-
type="${
|
|
9
|
-
id="${
|
|
10
|
-
name="${"radio"===
|
|
11
|
-
value="${
|
|
12
|
-
style="${
|
|
7
|
+
${{...G}}
|
|
8
|
+
type="${k}"
|
|
9
|
+
id="${v}-${b}-${o}"
|
|
10
|
+
name="${"radio"===k||"checkbox"===k?S:`${S}[]`}"
|
|
11
|
+
value="${r}"
|
|
12
|
+
style="${H}"
|
|
13
13
|
form="{{ product_form_id }}"
|
|
14
14
|
/>
|
|
15
15
|
<label
|
|
16
|
-
for="${
|
|
17
|
-
class="${
|
|
18
|
-
style="${
|
|
16
|
+
for="${v}-${b}-${o}"
|
|
17
|
+
class="${B}"
|
|
18
|
+
style="${F}"
|
|
19
19
|
>
|
|
20
|
-
${
|
|
20
|
+
${r}
|
|
21
21
|
</label>
|
|
22
22
|
</div>`}).join("")}
|
|
23
23
|
</div>
|
package/dist/esm/product/components/product-properties/property-input/ProductPropertyInput.liquid.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import{composeClasses as r,template as e}from"@gem-sdk/core";import{getDynamicSourceLocales as
|
|
2
|
-
<${
|
|
3
|
-
${{...
|
|
4
|
-
type="${
|
|
5
|
-
placeholder="${
|
|
6
|
-
name="properties[${
|
|
1
|
+
import{composeClasses as r,template as e}from"@gem-sdk/core";import{getDynamicSourceLocales as t,createSettingId as o}from"../../../../helpers.js";import{createClass as m,createStyle as s,createAttr as p}from"@gem-sdk/system";import{getClasses as a}from"./common/classes.js";import{getStyles as i}from"./common/styles.js";import{getElementContent as n}from"./common/helpers.js";import{getInputAttrs as u}from"./common/attrs.js";import{ProductProperties as d}from"../../../settings/product-properties/configs/translate.js";let ProductPropertyInput=({setting:l,styles:$,builderProps:c,pageContext:f,attributes:g})=>{let{name:h,type:b,placeholder:j,required:x,minChar:y,maxChar:N,label:P}=l??{minChar:Number,maxChar:Number,minNumber:Number,maxNumber:Number},v="textarea"===b?"textarea":"input",I=t({val:j,uid:c?.uid,settingId:o({id:d?.placeholder?.id}),pageContext:f}),k=`${I}${j&&x&&!P?" *":""}`,C=m({...a($),...r("gp-shadow-none group-data-[invalid=true]:gp-border-[#F44336]")}),_=s({...i($)}),{elementValue:q}=n(l),w=p({...u(g)});return e`
|
|
2
|
+
<${v}
|
|
3
|
+
${{...w}}
|
|
4
|
+
type="${b}"
|
|
5
|
+
placeholder="${k}"
|
|
6
|
+
name="properties[${h}]"
|
|
7
7
|
form="{{ product_form_id }}"
|
|
8
|
-
value="${
|
|
9
|
-
class="${
|
|
10
|
-
style="${
|
|
11
|
-
${
|
|
12
|
-
minlength="${
|
|
13
|
-
maxlength="${
|
|
14
|
-
></${
|
|
8
|
+
value="${q}"
|
|
9
|
+
class="${C}"
|
|
10
|
+
style="${_}"
|
|
11
|
+
${x?`required="${x}"`:""}
|
|
12
|
+
minlength="${y}"
|
|
13
|
+
maxlength="${N}"
|
|
14
|
+
></${v}>
|
|
15
15
|
`};export{ProductPropertyInput as default};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import{composeClasses as
|
|
1
|
+
import{composeClasses as t,template as o}from"@gem-sdk/core";import{getDynamicSourceLocales as e,createSettingId as r}from"../../../../helpers.js";import{createAttr as s,createClass as m,createStyle as i}from"@gem-sdk/system";import{getSelectAttrs as p}from"./common/attrs.js";import{getSelectStyles as l,getOptionStyles as c}from"./common/styles.js";import{getSelectClasses as d}from"./common/classes.js";import{ProductProperties as n}from"../../../settings/product-properties/configs/translate.js";let ProductPropertySelect=({setting:a,styles:f,builderProps:u,pageContext:$,attributes:g})=>{let j=u?.uid,{name:y,childItem:P}=a??{},h=s({...p(a,g)}),k=m({...d(f),...t("gp-shadow-none")}),v=i({...l(f)}),I=i({...c(f)});return o`
|
|
2
2
|
<select
|
|
3
|
-
${{...
|
|
3
|
+
${{...h}}
|
|
4
4
|
name="properties[${y}]"
|
|
5
|
-
id="${
|
|
6
|
-
class="${
|
|
5
|
+
id="${j}-${y}"
|
|
6
|
+
class="${k}"
|
|
7
7
|
form="{{ product_form_id }}"
|
|
8
|
-
style="${
|
|
8
|
+
style="${v}"
|
|
9
9
|
>
|
|
10
|
-
${
|
|
10
|
+
${P?.map((t,s)=>{let m=e({val:t,uid:j,settingId:r({id:n?.childItem?.id,index:s}),pageContext:$});return o`
|
|
11
11
|
<option
|
|
12
12
|
value="${m}"
|
|
13
|
-
style="${
|
|
13
|
+
style="${I}"
|
|
14
14
|
>
|
|
15
15
|
${m}
|
|
16
16
|
</option>`}).join("")}
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
-
import{template as t}from"@gem-sdk/core";import{getStaticLocale as
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import{template as t,dataStringify as r,isLocalEnv as e,baseAssetURL as o}from"@gem-sdk/core";import{getStaticLocale as p,getSettingPreloadData as l}from"../../../helpers.js";import s from"../../../text/components/Text.liquid.js";import{createAttr as d,createClass as i,createStateOrContext as u,LiquidUnless as c,If as m}from"@gem-sdk/system";import{getTextProps as a}from"./common/helpers.js";let ProductTitle=n=>{let{setting:$,builderProps:f}=n,g=`<p>${p("ProductTitle","product_not_found")}</p>`,k=()=>s(a(n)),P=d({href:"{{ product.url }}",title:"{{ product.title }}"}),j=$?.linkProduct,S=i({"gp-product-title-link-wrapper":!0}),T=u({linkProduct:$?.linkProduct,uid:f?.uid}),h=()=>{let t=e?"{{ 'gp-product-title-v7-5.js' | asset_url }}":`${o}/assets-v2/gp-product-title-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}`;return`<script ${l('class="gps-link" delay',"src")}="${t}" defer="defer"></script>`};return c("product",`${g}`,t`
|
|
2
|
+
<gp-product-title
|
|
3
|
+
gp-data='${r(T)}'
|
|
4
|
+
>
|
|
5
|
+
${m(j,t`<a ${P} class="${S}">
|
|
6
|
+
${k()}
|
|
7
|
+
</a>`,t`${k()}`)}
|
|
8
|
+
</gp-product-title>
|
|
9
|
+
${h()}
|
|
10
|
+
`)};export{ProductTitle as default};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import{template as e}from"@gem-sdk/core";import{Liquid as s,LiquidIf as i}from"@gem-sdk/system";import{OPTION_VALUES_DELIMITER as n}from"./common/const.js";let renderOptionValuesNewFormatSwatches=t=>{let{renderVariantItem:o,variantPresetsLiquid:r}=t;return e`
|
|
2
|
+
${s("{%- assign optionRendered = false -%}")}
|
|
3
|
+
${s("{%- assign swatches = shop.metafields.GEMPAGES.swatchesJSONFormat.value -%}")}
|
|
4
|
+
|
|
5
|
+
${s(`{% for swatch in swatches %}
|
|
6
|
+
{%- assign optionTitle = swatch.optionTitle -%}
|
|
7
|
+
{%- assign optionType = swatch.optionType -%}
|
|
8
|
+
{%- assign labelsString = "" -%}
|
|
9
|
+
{%- assign colorArraysString = "" -%}
|
|
10
|
+
{%- assign imageUrlsString = "" -%}
|
|
11
|
+
|
|
12
|
+
{% for optionValue in swatch.optionValues %}
|
|
13
|
+
{%- assign labelsString = labelsString | append: optionValue.label | append: '${n}' -%}
|
|
14
|
+
{%- assign colorsJoined = optionValue.colors | join: '${n}' -%}
|
|
15
|
+
{%- assign colorArraysString = colorArraysString | append: colorsJoined | append: '${n}' -%}
|
|
16
|
+
{%- assign imageUrlsString = imageUrlsString | append: optionValue.imageUrl | append: '${n}' -%}
|
|
17
|
+
{% endfor %}
|
|
18
|
+
|
|
19
|
+
{%- assign labels = labelsString | split: '${n}' | slice: 0, labelsString.size -%}
|
|
20
|
+
{%- assign colorStrings = colorArraysString | split: '${n}' | slice: 0, colorArraysString.size -%}
|
|
21
|
+
{%- assign imageUrls = imageUrlsString | split: '${n}' | slice: 0, imageUrlsString.size -%}
|
|
22
|
+
|
|
23
|
+
{% if optionTitle == option.name %}
|
|
24
|
+
{%- assign variantPresetString = "${r}" -%}
|
|
25
|
+
{%- assign optionName = option.name | replace: "'", "'" | replace: '"', """ -%}
|
|
26
|
+
{%- assign items = variantPresetString | split: '($2)' -%}
|
|
27
|
+
{%- assign type = 'dropdown' -%}
|
|
28
|
+
|
|
29
|
+
{% for item in items %}
|
|
30
|
+
{%- assign itemPreset = item | split: '($1)' -%}
|
|
31
|
+
{% if itemPreset[0] == optionName %}{%- assign type = itemPreset[1] -%}{% endif %}
|
|
32
|
+
{% if itemPreset[0] == 'base' %}{%- assign type = itemPreset[1] -%}{% endif %}
|
|
33
|
+
{% endfor %}
|
|
34
|
+
{%- assign optionRendered = true -%}
|
|
35
|
+
|
|
36
|
+
${o({showDropdown:!0})}
|
|
37
|
+
{% endif %}
|
|
38
|
+
{% endfor %}`)}
|
|
39
|
+
|
|
40
|
+
${i("optionRendered == false",o({showDropdown:!1,isRenderDefault:!0,typeOfOption:"optionType"}))}
|
|
41
|
+
`};export{renderOptionValuesNewFormatSwatches};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import{Liquid as e,LiquidFor as s,LiquidIf as t}from"@gem-sdk/system";import{template as i}from"@gem-sdk/core";let renderOptionValuesOld=a=>{let{renderVariantItem:n,variantPresetsLiquid:o}=a;return i`
|
|
2
|
+
${e("{%- assign optionRendered = false -%}")}
|
|
3
|
+
${e("{%- assign swatches = shop.metafields.GEMPAGES.swatches -%}")}
|
|
4
|
+
${e("{%- assign swatchesItems = swatches | split: '($1)' -%}")}
|
|
5
|
+
|
|
6
|
+
${s("swatchesItem in swatchesItems",`
|
|
7
|
+
${e('{%- assign colorArraysString = "" -%}')}
|
|
8
|
+
${e('{%- assign labelsString = "" -%}')}
|
|
9
|
+
${e('{%- assign imageUrlsString = "" -%}')}
|
|
10
|
+
${e("{%- assign attrItems = swatchesItem | split: '($3)' -%}")}
|
|
11
|
+
|
|
12
|
+
${s("attrItem in attrItems",`
|
|
13
|
+
${e("{%- assign attrs = attrItem | split: '($2)' -%}")}
|
|
14
|
+
${e("{%- assign optionKey = attrs[0] -%}")}
|
|
15
|
+
${e("{%- assign optionValue = attrs[1] -%}")}
|
|
16
|
+
${e(`
|
|
17
|
+
{% if optionKey == 'optionTitle' %}
|
|
18
|
+
{% assign optionTitle = optionValue %}
|
|
19
|
+
{% elsif optionKey == 'optionType' %}
|
|
20
|
+
{% assign optionType = optionValue %}
|
|
21
|
+
{% endif %}
|
|
22
|
+
`)}
|
|
23
|
+
|
|
24
|
+
${t('optionKey == "optionValues"',`
|
|
25
|
+
${e("{%- assign opValueItems = optionValue | split: '($4)' -%}")}
|
|
26
|
+
${s("opValueItem in opValueItems",`
|
|
27
|
+
${e("{%- assign opValueItemAttrs = opValueItem | split: '($6)' -%}")}
|
|
28
|
+
${s("opValueItemAttr in opValueItemAttrs",`
|
|
29
|
+
${e("{%- assign attrs = opValueItemAttr | split: '($5)' -%}")}
|
|
30
|
+
${e("{%- assign opValueItemKey = attrs[0] -%}")}
|
|
31
|
+
${e("{%- assign opValueItemValue = attrs[1] -%}")}
|
|
32
|
+
|
|
33
|
+
${t('opValueItemKey == "label"',`${e("{%- assign labelsString = labelsString | append: opValueItemValue -%}")}
|
|
34
|
+
${e('{%- assign labelsString = labelsString | append: "($8)" -%}')}`)}
|
|
35
|
+
|
|
36
|
+
${t('opValueItemKey == "colors"',`${e("{%- assign colorArraysString = colorArraysString | append: opValueItemValue -%}")}
|
|
37
|
+
${e('{%- assign colorArraysString = colorArraysString | append: "($8)" -%}')}`)}
|
|
38
|
+
|
|
39
|
+
${t('opValueItemKey == "imageUrl"',`${e("{%- assign imageUrlsString = imageUrlsString | append: opValueItemValue -%}")}
|
|
40
|
+
${e('{%- assign imageUrlsString = imageUrlsString | append: "($8)" -%}')}`)}
|
|
41
|
+
`)}
|
|
42
|
+
`)}
|
|
43
|
+
`)}
|
|
44
|
+
`)}
|
|
45
|
+
|
|
46
|
+
${e("{%- assign labels = labelsString | split: '($8)' -%}")}
|
|
47
|
+
${e("{%- assign colorStrings = colorArraysString | split: '($8)' -%}")}
|
|
48
|
+
${e("{%- assign imageUrls = imageUrlsString | split: '($8)' -%}")}
|
|
49
|
+
|
|
50
|
+
${t("optionTitle == option.name",`
|
|
51
|
+
${e(`{%- assign variantPresetString = "${o}" -%}`)}
|
|
52
|
+
${e('{%- assign optionName = option.name | replace: "\'", "'" | replace: \'"\', """ -%}')}
|
|
53
|
+
${e("{%- assign items = variantPresetString | split:'($2)' -%}")}
|
|
54
|
+
${e("{%- assign type = 'dropdown' -%}")}
|
|
55
|
+
${s("item in items",`
|
|
56
|
+
${e("{%- assign itemPreset = item | split:'($1)' -%}")}
|
|
57
|
+
${t("itemPreset[0] == optionName",e("{%- assign type = itemPreset[1] -%}"))}
|
|
58
|
+
${t('itemPreset[0] == "base"',e("{%- assign type = itemPreset[1] -%}"))}
|
|
59
|
+
`)}
|
|
60
|
+
${e("{%- assign optionRendered = true -%}")}
|
|
61
|
+
${n({showDropdown:!0})}
|
|
62
|
+
`)}
|
|
63
|
+
`)}
|
|
64
|
+
|
|
65
|
+
${t("optionRendered == false",n({showDropdown:!1,isRenderDefault:!0,typeOfOption:"optionType"}))}
|
|
66
|
+
`};export{renderOptionValuesOld};
|