@gem-sdk/components 7.1.0 → 8.0.0-dev.106
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/AcceptButton.js +1 -1
- package/dist/cjs/post-purchase/product/components/ProductPrice.js +1 -1
- package/dist/cjs/post-purchase/product/components/product-offer/hooks/useProductOfferData.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/constants/index.js +1 -1
- package/dist/cjs/post-purchase/product/hooks/useGetMoneyLines.js +1 -1
- package/dist/cjs/post-purchase/product/hooks/useGetTextSetting.js +1 -1
- package/dist/cjs/post-purchase/product/hooks/useSubscriptionConsentCheck.js +1 -0
- 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 +25 -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 +25 -25
- 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/AcceptButton.js +1 -1
- package/dist/esm/post-purchase/product/components/ProductPrice.js +1 -1
- package/dist/esm/post-purchase/product/components/product-offer/hooks/useProductOfferData.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/constants/index.js +1 -1
- package/dist/esm/post-purchase/product/hooks/useGetMoneyLines.js +1 -1
- package/dist/esm/post-purchase/product/hooks/useGetTextSetting.js +1 -1
- package/dist/esm/post-purchase/product/hooks/useSubscriptionConsentCheck.js +1 -0
- 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 +28 -80
- 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 +26 -26
- 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 +354 -139
- package/package.json +7 -7
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import{
|
|
2
|
-
|
|
3
|
-
${
|
|
1
|
+
import{template as e,isLocalEnv as t,baseAssetURL as s,DEVICES as i,getResponsiveValueByScreen as o}from"@gem-sdk/core";import a from"../../../text/components/Text.liquid.js";import n from"./components/variants/index.liquid.js";import r from"./components/dropdown-swatches/Dropdown.liquid.js";import p from"./components/dropdown-group/DropdownGroup.liquid.js";import{getSettingPreloadData as l}from"../../../helpers.js";import{mappingVariantStyles as d}from"./utils/mappingVariantStyles.js";import{createClass as m,createStyle as c,createAttr as u,Liquid as v,LiquidFor as f,LiquidIf as _,If as $}from"@gem-sdk/system";import{getAttrs as g}from"./common/main/getAttr.js";import{getVariantOptionGroupStyle as h,getWrapperStyle as y}from"./common/main/styles.js";import{getVariantOptionGroupClass as j,getWrapDropdownClass as w}from"./common/main/classes.js";import{getTextVariantTitleData as S,getDropdownGroupData as P}from"./common/main/getData.js";import{getWrapVariantOptionClass as b}from"./common/variants/classes.js";import{getStyleOfObject as A}from"../../helpers/function.js";import{getMarginBottomStyle as D}from"./common/variants/styles.js";import{renderOptionValuesNewFormatSwatches as N}from"./OptionVariantsNewFormat.liquid.js";import{renderOptionValuesOld as V}from"./OptionVariantsOldFormat.liquid.js";let DEFAULT_ADVANCED_DISPLAY_SETTING={desktop:!0,tablet:!0,mobile:!0},ProductVariants=E=>{let{builderProps:O,styles:T,setting:x,advanced:q}=E,{align:F,swatchItemWidth:G,dropdownItemWidth:C,swatchSpacing:I,optionTypo:k,marginBottom:L}=T??{},{label:J,optionType:z,showAsSwatches:M,layout:U,hasPreSelected:W}=x??{},R=q?.d??DEFAULT_ADVANCED_DISPLAY_SETTING,{uid:Y}=O??{},H="groupOption"===z,K=()=>{let e={};return i.forEach(t=>{let s=o(G,t);e[t]="auto"===s}),e},Q=()=>{let e={};return i.forEach(t=>{e[t]=C?.[t]==="fill"}),e},B=x?.variantPresets?d(x?.variantPresets,T):[],X=B?.map(e=>({...e,presets:{[e.optionType]:e.presets[e.optionType]}})),Z={...x,variantPresets:X},ee=e=>{let t={"'":"'",'"':"""},s=e;for(let i in t)e.indexOf(i)>=0&&(s=s.replaceAll(i,t[i]));return s},et=()=>x?.variantPresets?.map(e=>`${ee(e.optionName)}($2)${e.optionType}`).join("($1)"),es=()=>x?.variantPresets?.filter(e=>!!e?.hide)?.map(e=>e.optionName).join(","),ei=({showDropdown:t,isRenderDefault:s,typeOfOption:i})=>e`
|
|
2
|
+
${f("value in values",n({id:"{{option.name | escape}}-{{value | escape}}",variantKey:"{{option.name | escape}}-{{option.position}}-{{ forloop.index }}",showAsSwatches:M,uid:Y,name:"{{option.name | escape}}",value:{label:"{{value | escape}}"},checked:W?"{%- if option.selected_value == value -%}true{% else %}false{%- endif -%}":"false",optionPosition:"rootForloop",typeOfOption:i,activeClass:W?"{%- if option.selected_value == value -%}option-item-active{%- endif -%}":"",...T,...Z,swatchAutoWidth:K(),optionTypo:k,isRenderDefault:s}))}
|
|
3
|
+
${_(t?'type == "dropdown"':"false",r({...T,...Z,swatchAutoWidth:Q(),optionTypo:k}))}`,eo=x?.variantPresets?.map(e=>({name:ee(e.optionName),type:e.optionType})).map(e=>`${e.name}($1)${e.type}`).join("($2)").toString(),ea={renderVariantItem:ei,variantPresetsLiquid:eo??""},en=m(j(F)),er=c(h(I,I)),ep=S(E,"Liquid"),el=m(b(U,F)),ed=()=>e`
|
|
4
|
+
${v(`{%- assign presets = "${et()}" | split: '($1)' -%}`)}
|
|
5
|
+
${v(`{% assign hiddenPresetOptions = "${es()}" | split: ',' %}`)}
|
|
4
6
|
|
|
5
7
|
${v(`{% assign all_option_names = options | map: 'name' %}
|
|
6
8
|
{% assign filtered_options_string = '' %}
|
|
@@ -30,20 +32,20 @@ import{composeMemo as e,template as t,DEVICES as s,getResponsiveValueByScreen as
|
|
|
30
32
|
${f("option in options",`
|
|
31
33
|
<div
|
|
32
34
|
option-name="{{option.name | escape}}"
|
|
33
|
-
class="${
|
|
34
|
-
style="${
|
|
35
|
+
class="${el} ${_("hiddenPresetOptions contains option.name","gp-hidden")}"
|
|
36
|
+
style="${A(D(L))}${v("{% if forloop.last or option.name == last_option_name %}--mb:0;--mb-mobile:0;--mb-tablet:0;{% endif %}")}"
|
|
35
37
|
>
|
|
36
38
|
${v("{%- assign showVariantClass = 'variant-display' -%}")}
|
|
37
39
|
${v("{%- assign optionName = option.name -%}")}
|
|
38
40
|
${f("preset in presets",`
|
|
39
41
|
${v("{%- assign presetDetail = preset | split: '($2)' -%}")}
|
|
40
|
-
${
|
|
42
|
+
${_("presetDetail[1] == 'dropdown' and presetDetail[0] == optionName",`${v("{%- assign showVariantClass = '' -%}")} ${v("{%- break -%}")}`)}
|
|
41
43
|
`)}
|
|
42
|
-
${
|
|
44
|
+
${$(J,a(ep)," ")}
|
|
43
45
|
<div
|
|
44
46
|
variant-option-name="{{option.name | escape}}"
|
|
45
|
-
class="${
|
|
46
|
-
style="${
|
|
47
|
+
class="${en}"
|
|
48
|
+
style="${A(er)}"
|
|
47
49
|
>
|
|
48
50
|
${v("{%- assign values = option.values -%}")}
|
|
49
51
|
${v("{%- assign rootForloop = forloop.index0 -%}")}
|
|
@@ -56,78 +58,24 @@ import{composeMemo as e,template as t,DEVICES as s,getResponsiveValueByScreen as
|
|
|
56
58
|
{%- assign selectedValue = variant.option3 -%}
|
|
57
59
|
{%- endif -%}
|
|
58
60
|
`)}
|
|
59
|
-
${
|
|
60
|
-
${
|
|
61
|
+
${$(!W,v("{%- assign selectedValue = null -%}"),"")}
|
|
62
|
+
${$(M,em(),ei({showDropdown:!1,isRenderDefault:!0,typeOfOption:"optionType"}))}
|
|
61
63
|
</div>
|
|
62
64
|
</div>`)}
|
|
63
|
-
`,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
${f("swatchesItem in swatchesItems",`
|
|
69
|
-
${v('{%- assign colorArraysString = "" -%}')}
|
|
70
|
-
${v('{%- assign labelsString = "" -%}')}
|
|
71
|
-
${v('{%- assign imageUrlsString = "" -%}')}
|
|
72
|
-
${v("{%- assign attrItems = swatchesItem | split: '($3)' -%}")}
|
|
73
|
-
|
|
74
|
-
${f("attrItem in attrItems",`${v("{%- assign attrs = attrItem | split: '($2)' -%}")}
|
|
75
|
-
${v("{%- assign optionKey = attrs[0] -%}")}
|
|
76
|
-
${v("{%- assign optionValue = attrs[1] -%}")}
|
|
77
|
-
${v(`
|
|
78
|
-
{% if optionKey == 'optionTitle' %}
|
|
79
|
-
{% assign optionTitle = optionValue %}
|
|
80
|
-
{% elsif optionKey == 'optionType' %}
|
|
81
|
-
{% assign optionType = optionValue %}
|
|
82
|
-
{% endif %}
|
|
83
|
-
`)}
|
|
84
|
-
|
|
85
|
-
${y("optionKey == 'optionValues'",`${v("{%- assign opValueItems = optionValue | split: '($4)' -%}")}
|
|
86
|
-
${f("opValueItem in opValueItems",`${v("{%- assign opValueItemAttrs = opValueItem | split: '($6)' -%}")}
|
|
87
|
-
${f("opValueItemAttr in opValueItemAttrs",`${v("{%- assign attrs = opValueItemAttr | split: '($5)' -%}")}
|
|
88
|
-
${v("{%- assign opValueItemKey = attrs[0] -%}")}
|
|
89
|
-
${v("{%- assign opValueItemValue = attrs[1] -%}")}
|
|
90
|
-
|
|
91
|
-
${y("opValueItemKey == 'label'",`${v("{%- assign labelsString = labelsString | append: opValueItemValue -%}")}${v('{%- assign labelsString = labelsString | append: "($8)" -%}')}`)}
|
|
92
|
-
|
|
93
|
-
${y("opValueItemKey == 'colors'",`${v("{%- assign colorArraysString = colorArraysString | append: opValueItemValue -%}")}${v('{%- assign colorArraysString = colorArraysString | append: "($8)" -%}')}`)}
|
|
94
|
-
|
|
95
|
-
${y("opValueItemKey == 'imageUrl'",`${v("{%- assign imageUrlsString = imageUrlsString | append: opValueItemValue -%}")}${v('{%- assign imageUrlsString = imageUrlsString | append: "($8)" -%}')}`)}`)}`)}`)}
|
|
96
|
-
`)}
|
|
97
|
-
|
|
98
|
-
${v("{%- assign labels = labelsString | split: '($8)' -%}")}
|
|
99
|
-
${v("{%- assign colorStrings = colorArraysString | split: '($8)' -%}")}
|
|
100
|
-
${v("{%- assign imageUrls = imageUrlsString | split: '($8)' -%}")}
|
|
101
|
-
|
|
102
|
-
${y("optionTitle == option.name",`
|
|
103
|
-
${v(`{%- assign variantPresetString = "${en}" -%}`)}
|
|
104
|
-
${v('{%- assign optionName = option.name | replace: "\'", "'" | replace: \'"\', """ -%}')}
|
|
105
|
-
${v("{%- assign items = variantPresetString | split:'($2)' -%}")}
|
|
106
|
-
${v("{%- assign type = 'dropdown' -%}")}
|
|
107
|
-
${f("item in items",`
|
|
108
|
-
${v("{%- assign itemPreset = item | split:'($1)' -%}")}
|
|
109
|
-
${y("itemPreset[0] == optionName",v("{%- assign type = itemPreset[1] -%}"))}
|
|
110
|
-
${y('itemPreset[0] == "base"',v("{%- assign type = itemPreset[1] -%}"))}
|
|
111
|
-
`)}
|
|
112
|
-
${v("{%- assign optionRendered = true -%}")}
|
|
113
|
-
${f("value in values",r({id:"{{option.name | escape}}-{{value | escape}}",variantKey:"{{option.name | escape}}-{{option.position}}-{{ forloop.index }}",showAsSwatches:L,uid:H,name:"{{option.name | escape}}",value:{label:"{{value | escape}}"},checked:W?"{%- if option.selected_value == value -%}true{% else %}false{%- endif -%}":"false",optionPosition:"rootForloop",optionType:"optionType",activeClass:W?"{%- if option.selected_value == value -%}option-item-active{%- endif -%}":"",...x,...B,swatchAutoWidth:Q(),optionTypo:k}))}
|
|
114
|
-
${y("type == 'dropdown'",p({...x,...B,swatchAutoWidth:Y(),optionTypo:k}))}
|
|
115
|
-
`)}
|
|
116
|
-
`)}
|
|
117
|
-
|
|
118
|
-
${y("optionRendered == false",ep())}
|
|
119
|
-
`,ep=()=>f("value in values",r({id:"{{option.name | escape}}-{{value | escape}}",variantKey:"{{option.name | escape}}-{{option.position}}-{{ forloop.index }}",showAsSwatches:L,uid:H,name:"{{option.name | escape}}",value:{label:"{{value | escape}}"},checked:W?"{%- if option.selected_value == value -%}true{% else %}false{%- endif -%}":"false",optionPosition:"rootForloop",typeOfOption:"optionType",activeClass:W?"{%- if option.selected_value == value -%}option-item-active{%- endif -%}":"",...x,...B,swatchAutoWidth:Q(),optionTypo:k,isRenderDefault:!0})),el=c(I(U)),em=w(N),ed=()=>`
|
|
120
|
-
<div className="${el}">
|
|
121
|
-
${l(em)}
|
|
65
|
+
`,em=()=>e`
|
|
66
|
+
${_("shop.metafields.GEMPAGES.swatchesJSONFormat and shop.metafields.GEMPAGES.swatchesJSONFormat != blank",N(ea),V(ea))}
|
|
67
|
+
`,ec=m(w(F)),eu=P(E),ev=()=>`
|
|
68
|
+
<div className="${ec}">
|
|
69
|
+
${p(eu)}
|
|
122
70
|
</div>
|
|
123
|
-
|
|
71
|
+
`,ef=u(g({uid:Y,hasPreSelected:W,cssClass:q?.cssClass})),e_=c(y(E)),e$=m({"gp-flex gp-flex-col !gp-ml-0":!0}),eg=()=>{let e=t?"{{ 'gp-product-variant-v7-5.js' | asset_url }}":`${s}/assets-v2/gp-product-variant-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}`;return`<script ${l('class="gps-link" delay',"src")}="${e}" defer="defer"></script>`};return e`
|
|
124
72
|
${v("{%- assign total_combinations = 1 -%}")}
|
|
125
73
|
${f("option in product.options_with_values","{%- assign total_combinations = total_combinations | times: option.values.size -%}")}
|
|
126
74
|
<gp-product-variants
|
|
127
|
-
${
|
|
75
|
+
${ef}
|
|
128
76
|
gp-data='{
|
|
129
|
-
"setting":${JSON.stringify(
|
|
130
|
-
"styles":${JSON.stringify(
|
|
77
|
+
"setting":${JSON.stringify(Z)?.replaceAll("'","'")},
|
|
78
|
+
"styles":${JSON.stringify(T)},
|
|
131
79
|
"variants":{{product.variants | json | escape}},
|
|
132
80
|
"optionsWithValues": {{product.options_with_values | json | escape}},
|
|
133
81
|
"variantSelected": {{ variant | json | escape }},
|
|
@@ -137,7 +85,7 @@ import{composeMemo as e,template as t,DEVICES as s,getResponsiveValueByScreen as
|
|
|
137
85
|
"productId": {{product.id | json | escape}},
|
|
138
86
|
"productUrl": {{product.url | json | escape}},
|
|
139
87
|
"productHandle": {{product.handle | json | escape}},
|
|
140
|
-
"displayState": ${JSON.stringify(
|
|
88
|
+
"displayState": ${JSON.stringify(R)},
|
|
141
89
|
"totalVariantCombinations": {{total_combinations}},
|
|
142
90
|
"firstAvailableVariant": {{product.selected_or_first_available_variant | json | escape}}
|
|
143
91
|
}
|
|
@@ -145,13 +93,13 @@ import{composeMemo as e,template as t,DEVICES as s,getResponsiveValueByScreen as
|
|
|
145
93
|
<div class="gp-hidden" style="--hvr-shadow: none; --hvr-shadow-tablet: none; --hvr-shadow-mobile: none"></div>
|
|
146
94
|
${v("{%- assign options = product.options_with_values -%}")}
|
|
147
95
|
${v("{%- assign variants = product.variants -%}")}
|
|
148
|
-
${
|
|
149
|
-
class="${
|
|
150
|
-
style="${
|
|
96
|
+
${_("options.size == 0 or options.size == 1 and variants.size == 1 and variants[0].title == 'Default Title' and variants[0].option1 == 'Default Title'","<div></div>",e`<div
|
|
97
|
+
class="${e$}"
|
|
98
|
+
style="${e_}"
|
|
151
99
|
>
|
|
152
|
-
${
|
|
100
|
+
${$(H,ev(),ed())}
|
|
153
101
|
</div>`)}
|
|
154
102
|
</gp-product-variants>
|
|
155
103
|
|
|
156
|
-
${
|
|
104
|
+
${eg()}
|
|
157
105
|
`};export{ProductVariants as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{composeTypographyStyle as e,getRadiusStyleActiveState as t,getStyleShadow as o,makeStyle as r,getSingleColorVariable as l,composeRadius as i,getGlobalColorStateStyle as p,handleConvertBorderStyle as a,handleConvertBorderWidth as n,handleConvertBorderColor as d,makeStyleResponsive as h}from"@gem-sdk/core";import{filterTruthyObject as c}from"../../../../../helpers.js";let getColorStyleWidth=e=>{let t=e?.height||"32px",o=e?.width||{desktop:t},r=Object.fromEntries(Object.entries(o).map(([e,o])=>{let r=o&&"undefined"!==o&&"auto"!==o?o:t;return[e,r]}));return h("minw",r)},getWrapperStyleActive=i=>{let{preset:p,optionTypography:a,optionTypo:n,typeOfOption:d}=i,h=p?.optionBgColor,
|
|
1
|
+
import{composeTypographyStyle as e,getRadiusStyleActiveState as t,getStyleShadow as o,makeStyle as r,getSingleColorVariable as l,composeRadius as i,getGlobalColorStateStyle as p,handleConvertBorderStyle as a,handleConvertBorderWidth as n,handleConvertBorderColor as d,makeStyleResponsive as h}from"@gem-sdk/core";import{filterTruthyObject as c}from"../../../../../helpers.js";let getColorStyleWidth=e=>{let t=e?.height||"32px",o=e?.width||{desktop:t},r=Object.fromEntries(Object.entries(o).map(([e,o])=>{let r=o&&"undefined"!==o&&"auto"!==o?o:t;return[e,r]}));return h("minw",r)},getWrapperStyleActive=i=>{let{preset:p,optionTypography:a,optionTypo:n,typeOfOption:d}=i,h=p?.optionBgColor,s=p?.optionTextColor,g=p?.optionBorder,b=p?.optionHasShadow,m=p?.optionShadow,u=p?.optionRounded,w="color"===d,x="image"===d||"image_shopify"===d,y=e(n,a),S=e=>{let t=h?.active??h?.normal,o=g?.active??g?.normal;return r({bg:e&&l(t),bs:o?.border,bw:o?.width,bc:l(o?.color)})},v=m?.active??m?.normal,C=b?.active??b?.normal,f=s?.active??s?.normal;return c({...S(!w),...t(u),...o({value:v,state:"active",styleAppliedFor:"box-shadow",isEnableShadow:C},!0),...y,...!w&&!x&&r({c:l(f)}),...w&&getColorStyleWidth(p),...r({h:p?.height})})},getWrapperStyleNormalAndHover=e=>{let{preset:t,optionTransform:l,optionTypography:h,optionTypo:s,typeOfOption:g}=e,b=t?.optionBgColor,m=t?.optionTextColor,u=t?.optionBorder,w=t?.optionHasShadow,x=t?.optionShadow,y=t?.optionRounded,S="color"===g,v="image"===g||"image_shopify"===g,C=["normal","hover"].reduce((e,t)=>({...e,...o({value:x?.[t],state:t,styleAppliedFor:"box-shadow",isEnableShadow:w?.[t]})}),{});return c({...i(y),...C,...!S&&p("bg",b),...!S&&a(u),...!S&&n(u),...!S&&d(u),...!S&&!v&&r({c:l}),...!S&&!v&&p("c",m),...typoStyleNotIn(s,h,["--c"]),...S&&getColorStyleWidth(t),...r({h:t?.height})})};function typoStyleNotIn(t,o,r){let l=e(t,o);return r&&0!==r.length?Object.fromEntries(Object.entries(l).filter(([e])=>!r.includes(e))):l}let getWrapperTextStyle=e=>{let{preset:o,typeOfOption:r,checked:l}=e,p=o?.optionBorder,h=o?.optionRounded,s="color"===r,g=()=>{let e="16px",t={"--pl":"0px","--pr":"0px","--pl-tablet":"0px","--pr-tablet":"0px","--pl-mobile":"0px","--pr-mobile":"0px","--pt":"0px","--pb":"0px"};return o?.width?.desktop?.toLowerCase()!=="auto"&&o?.width?.desktop||(t["--pl"]=e,t["--pr"]=e),o?.width?.tablet?.toLowerCase()!=="auto"&&o?.width?.tablet||(t["--pl-tablet"]=e,t["--pr-tablet"]=e),o?.width?.mobile?.toLowerCase()!=="auto"&&o?.width?.mobile||(t["--pl-mobile"]=e,t["--pr-mobile"]=e),(o?.height?.toLowerCase()==="auto"||o?.height)&&(t["--pt"]="8px",t["--pb"]="8px"),t},b={...h,active:{...h?.active||{},radiusType:"custom"}},m=l?t(b):i(h),u=!l&&s?{...a(p),...n(p),...d(p)}:{};return c({...!s&&g(),...s&&m,...u})},getColorStyle=({optionBorder:e,optionRounded:t,isActive:o,color:r})=>{let l=()=>r?r?.startsWith("linear-gradient")?{backgroundImage:r}:{backgroundColor:r}:{},p=t=>t?{"--bs":"none"}:a(e),h=o=>({"--d":"flex","--jc":"center"," --ai":"center","--w":"100%","--h":"100%","--of":"hidden","--hvr-c":"unset",...p(o),...n(e),...d(e),...i(t),...l()});return h(!!o)},getTextStyle=({optionTypo:t,optionTypography:o})=>{let r=e(t,o);return delete r["--c"],c({...r})};export{getColorStyle,getTextStyle,getWrapperStyleActive,getWrapperStyleNormalAndHover,getWrapperTextStyle};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let OPTION_VALUES_DELIMITER="|||";export{OPTION_VALUES_DELIMITER};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{composeTypographyStyle as e,
|
|
1
|
+
import{composeTypographyStyle as e,makeStyleResponsive as t,makeStyle as o,getSingleColorVariable as a,getStyleShadow as r,makeWidth as c,getGlobalColorStateStyle as s,handleConvertBorderStyle as l,handleConvertBorderWidth as i,handleConvertBorderColor as d,composeRadius as p}from"@gem-sdk/core";import{filterTruthyObject as h}from"../../../../../helpers.js";let getSelectStyle=({width:n,height:b,optionTypo:g,optionTypography:m,optionBgColor:u,optionTextColor:v,optionRounded:w,optionHasShadow:S,optionShadow:x,optionBorder:y,optionTransform:f,isCombine:k,textAlign:A})=>{let E=e(g,m),F=A?t("ta",A):{},j=o({bg:a(u?.active),bs:y?.active?.border,bw:y?.active?.width,bc:y?.active?.color}),T=[k?"active":"normal","hover"].reduce((e,t)=>({...e,...r({value:x?.[t],state:t,styleAppliedFor:"box-shadow",isEnableShadow:S?.[t]})}),{});return h({...t("w",c(n)),...o({h:b}),...T,...j,...o({tt:f}),...E,...s("c",v),...s("bg",u),...l(y),...i(y),...d(y),...p(w),...r({value:g?.custom?.textShadow,styleAppliedFor:"text-shadow",isEnableShadow:g?.custom?.hasShadowText}),...F,appearance:"none","background-image":"url(https://cdn.shopify.com/s/files/1/1827/4239/t/1/assets/ico-select.svg?v=155563818344741998551488860031)","background-repeat":"no-repeat","background-position":"right 16px center"})};export{getSelectStyle};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{template as o}from"@gem-sdk/core";import
|
|
1
|
+
import{template as o}from"@gem-sdk/core";import r from"../base/base.liquid.js";import{optionRoundedColorDefault as l}from"../../utils/mappingVariantStyles.js";import{OPTION_VALUES_DELIMITER as i}from"../../common/const.js";let ColorVariant=({isVariantOutStock:s,swatchValue:n,...t})=>o`
|
|
2
2
|
{% assign colorsString = null %}
|
|
3
3
|
{% assign colors = null %}
|
|
4
4
|
{% for label in labels %}
|
|
@@ -7,7 +7,7 @@ import{template as o}from"@gem-sdk/core";import l from"../base/base.liquid.js";i
|
|
|
7
7
|
{% endif %}
|
|
8
8
|
{% endfor %}
|
|
9
9
|
{% if colorsString != null %}
|
|
10
|
-
{% assign colors = colorsString | split: '
|
|
10
|
+
{% assign colors = colorsString | split: '${i}' %}
|
|
11
11
|
{% endif %}
|
|
12
|
-
${
|
|
12
|
+
${r({...t,typeOfOption:"color",optionRounded:l})}
|
|
13
13
|
`;export{ColorVariant as default};
|
package/dist/esm/product/components/product-variants/components/dropdown-swatches/Dropdown.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import{jsxs as o,jsx as t}from"react/jsx-runtime";import e from"../dropdown-option/VariantOption.js";import i from"../dropdown-option/DropdownOption.js";import{getSelectClass as n}from"../../common/dropdown/classes.js";import{createClass as r,createStyle as a,createAttr as p,If as m}from"@gem-sdk/system";import{getSelectStyle as
|
|
2
|
+
import{jsxs as o,jsx as t}from"react/jsx-runtime";import e from"../dropdown-option/VariantOption.js";import i from"../dropdown-option/DropdownOption.js";import{getSelectClass as n}from"../../common/dropdown/classes.js";import{createClass as r,createStyle as a,createAttr as p,If as m}from"@gem-sdk/system";import{getSelectStyle as s}from"../../common/dropdown/styles.js";import{getSelectAttr as d}from"../../common/dropdown/attrs.js";import{useDropdownSwatches as l}from"./hooks/useDropdownSwatches.js";let DropdownVariant=c=>{let{option:w,optionPosition:h,optionNumber:u,variantGroup:f,variants:g,price:j,blankText:v,swatchHeight:b,optionTypography:x,optionTransform:k,initValue:y,hasPreSelected:C,optionTypo:D,combineHeight:N,combineWidth:S,soldOutStyle:O}=c,{optionBgColor:P,optionTextColor:V,optionRounded:A,optionShadow:B,optionHasShadow:R,optionBorder:H}=c,{value:M,preset:T,handleOnChangeSelect:q,checkVariantInStock:z}=l(c),E="disable"===O;f||(P=T?.optionBgColor,V=T?.optionTextColor,H=T?.optionBorder,R=T?.optionHasShadow,B=T?.optionShadow,A=T?.optionRounded);let F=r(n({optionTypo:D,optionTypography:x,optionBgColor:P,optionBorder:H,optionTextColor:V})),G=a(s({width:f?S:T?.width,height:f?N:T?.height,optionTypo:D,optionTypography:x,optionBgColor:P,optionTextColor:V,optionRounded:A,optionShadow:B,optionHasShadow:R,optionBorder:H,optionTransform:k,swatchHeight:b,isCombine:f,textAlign:D?.attrs?.textAlign})),I=p(d({optionName:w?.name,value:M??y,type:"React"})),J=()=>g?.map(o=>t(e,{disabled:!z(o)&&E,value:o?.id,variant:o,includePrice:j},o?.id)),K=()=>w?.values?.map(o=>t(i,{value:o,optionName:w.name,optionPosition:h,optionNumber:u,isSoldOutMark:E},o?.id));return o("select",{...I,className:F,style:G,onChange:o=>q(o),children:[m(!C,t("option",{value:"blank",children:v??"Please select an option"})," "),m(f,J(),K())]})};export{DropdownVariant as default};
|
package/dist/esm/product/components/product-variants/components/dropdown-swatches/Dropdown.liquid.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{template as o}from"@gem-sdk/core";import{createClass as
|
|
1
|
+
import{template as o}from"@gem-sdk/core";import{createClass as t,createStyle as r,createAttr as e,If as s}from"@gem-sdk/system";import{getSelectClass as m}from"../../common/dropdown/classes.js";import{getSelectStyle as i}from"../../common/dropdown/styles.js";import{getSelectAttr as d}from"../../common/dropdown/attrs.js";import{renderBlankOption as n,renderDropdownOptions as p}from"../dropdown-option/render-liquid/index.js";let DropdownVariant=l=>{let{variantGroup:a,blankText:c,swatchAutoWidth:f,swatchHeight:w,optionTypography:g,optionBgColor:$,optionTextColor:j,optionRounded:u,optionShadow:x,optionHasShadow:y,optionBorder:h,optionTransform:b,hasPreSelected:k,optionTypo:q,combineHeight:A,combineWidth:D,soldOutStyle:V,children:C}=l,L="disable"===V,v=t(m({optionTypo:q,optionTypography:g,optionBgColor:$,optionBorder:h,optionTextColor:j})),z=r(i({width:a?D:f,height:a?A:w,optionTypo:q,optionTypography:g,optionBgColor:$,optionTextColor:j,optionRounded:u,optionHasShadow:y,optionShadow:x,optionBorder:h,optionTransform:b,isCombine:a,textAlign:q?.attrs?.textAlign})),B=e(d({variantGroup:a,type:"Liquid"})),E=()=>C;return o`
|
|
2
2
|
<select
|
|
3
3
|
${B}
|
|
4
|
-
class="${
|
|
5
|
-
style="${
|
|
4
|
+
class="${v}"
|
|
5
|
+
style="${z}"
|
|
6
6
|
>
|
|
7
|
-
${
|
|
8
|
-
${
|
|
7
|
+
${s(!k,n(c))}
|
|
8
|
+
${s(a,E(),p(L,k))}
|
|
9
9
|
</select>`};export{DropdownVariant as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import{If as e}from"@gem-sdk/system";import{getButtonStyle as r}from"./common/styles.js";import{getSettingPreloadData as s}from"../../../helpers.js";import o from"../../../button/components/Button.liquid.js";import{template as t,isLocalEnv as m,baseAssetURL as p}from"@gem-sdk/core";import{getButtonSettings as i,getButtonLiquidSettings as d}from"./common/helpers.js";let ProductViewMore=({style:c,styles:l,setting:a,advanced:u,builderProps:f,builderAttrs:n,pageContext:v})=>t`
|
|
2
2
|
<gp-product-view-more>
|
|
3
|
-
${o({styles:l,advanced:u,builderProps:f,builderAttrs:n,setting:{...i(a),...d(a)},style:{...r(c,l)},pageContext:v,className:"btn-view-more"})}
|
|
3
|
+
${o({styles:l,advanced:u,builderProps:f,builderAttrs:n,setting:{...i(a),...d(a,v)},style:{...r(c,l)},pageContext:v,className:"btn-view-more"})}
|
|
4
4
|
${e(m,`<script ${s('class="gps-link" delay',"src")}="{{ 'gp-product-view-more-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${s('class="gps-link" delay',"src")}="${p}/assets-v2/gp-product-view-more-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
|
|
5
5
|
</gp-product-view-more>
|
|
6
6
|
`;export{ProductViewMore as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let getButtonSettings=t=>{let{label:e,iconSvg:n,iconAlign:
|
|
1
|
+
let getButtonSettings=t=>{let{label:e,iconSvg:n,iconAlign:l,iconVisible:i,shouldClearSpace:u,enableHoverEffect:o}=t??{};return{label:e,iconSvg:n,iconAlign:l,iconVisible:i,shouldClearSpace:u,htmlType:"submit",enableHoverEffect:o}},getButtonLiquidSettings=(t,e)=>{let{translate:n,redirectNewTab:l}=t??{},i=e?.hasCollectionHandle?"{% if collection %}{{ collection.url }}/products/{{ product.handle }}{% else %}{{ product.url }}{% endif %}":"{{ product.url }}";return{translate:n,btnLink:{link:i,target:l?"_blank":"_self"},enableBtnLink:!0}};export{getButtonLiquidSettings,getButtonSettings};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import{template as t,RenderIf as e,isLocalEnv as
|
|
1
|
+
import{template as t,RenderIf as e,isLocalEnv as r,baseAssetURL as i}from"@gem-sdk/core";import a from"../../../grid/components/row/Row.liquid.js";import{LiquidIf as o,If as d}from"@gem-sdk/system";import{getSettingPreloadData as n,getStaticLocale as s}from"../../../helpers.js";import{getData as c,DYNAMIC_PRODUCT_STATUS as p,STATIC_PRODUCT_STATUS as l,PRODUCT_ID_LATEST as u}from"./common/helpers.js";let Product=f=>{let{children:m,setting:g,style:y,builderProps:v,rawChildren:_,advanced:$}=f,{isSyncProduct:S,productSetting:I}=g??{},b=I?.hasPreSelected??!1,{rowSetting:j,rowStyles:h,formatVariantId:q,formatProductId:P,productStatus:V,preSelectedOptionIds:k,productHandle:w,advancedStyle:E}=c(f),x=()=>t`
|
|
2
2
|
{%- liquid
|
|
3
3
|
if request.page_type == 'product'
|
|
4
|
-
if '${
|
|
5
|
-
if '${
|
|
4
|
+
if '${V}' == '${l}'
|
|
5
|
+
if '${P}' == '${u}'
|
|
6
6
|
paginate collections.all.products by 100000
|
|
7
7
|
assign product = collections.all.products | sort: 'created_at' | reverse | first
|
|
8
8
|
endpaginate
|
|
9
9
|
else
|
|
10
|
-
assign product = all_products['${
|
|
11
|
-
assign productId = '${
|
|
10
|
+
assign product = all_products['${w}']
|
|
11
|
+
assign productId = '${P}' | times: 1
|
|
12
12
|
if product == empty or product == null
|
|
13
13
|
paginate collections.all.products by 100000
|
|
14
14
|
for item in collections.all.products
|
|
@@ -21,13 +21,13 @@ import{template as t,RenderIf as e,isLocalEnv as i,baseAssetURL as r}from"@gem-s
|
|
|
21
21
|
endif
|
|
22
22
|
endif
|
|
23
23
|
else
|
|
24
|
-
if '${
|
|
24
|
+
if '${P}' == '${u}'
|
|
25
25
|
paginate collections.all.products by 100000
|
|
26
26
|
assign product = collections.all.products | sort: 'created_at'| reverse | first
|
|
27
27
|
endpaginate
|
|
28
28
|
else
|
|
29
|
-
assign product = all_products['${
|
|
30
|
-
assign productId = '${
|
|
29
|
+
assign product = all_products['${w}']
|
|
30
|
+
assign productId = '${P}' | times: 1
|
|
31
31
|
if product == empty or product == null
|
|
32
32
|
paginate collections.all.products by 100000
|
|
33
33
|
for item in collections.all.products
|
|
@@ -40,11 +40,11 @@ import{template as t,RenderIf as e,isLocalEnv as i,baseAssetURL as r}from"@gem-s
|
|
|
40
40
|
endif
|
|
41
41
|
endif
|
|
42
42
|
-%}
|
|
43
|
-
`,
|
|
43
|
+
`,A=()=>t`
|
|
44
44
|
{%- liquid
|
|
45
45
|
if request.page_type != 'product'
|
|
46
|
-
assign product = all_products['${
|
|
47
|
-
assign productId = '${
|
|
46
|
+
assign product = all_products['${w}']
|
|
47
|
+
assign productId = '${P}' | times: 1
|
|
48
48
|
if product == empty or product == null
|
|
49
49
|
paginate collections.all.products by 100000
|
|
50
50
|
for item in collections.all.products
|
|
@@ -56,30 +56,30 @@ import{template as t,RenderIf as e,isLocalEnv as i,baseAssetURL as r}from"@gem-s
|
|
|
56
56
|
endif
|
|
57
57
|
endif
|
|
58
58
|
-%}
|
|
59
|
-
`,
|
|
59
|
+
`,B=()=>t`
|
|
60
60
|
{%- assign gpBkProduct = product -%}
|
|
61
|
-
${d(
|
|
62
|
-
`,
|
|
63
|
-
{%- assign initVariantId = ${
|
|
61
|
+
${d(V==p,A(),x())}
|
|
62
|
+
`,G=()=>t`
|
|
63
|
+
{%- assign initVariantId = ${q} -%}
|
|
64
64
|
{%- assign product_form_id = 'product-form-' | append: "${v?.uid}" -%}
|
|
65
|
-
${
|
|
66
|
-
${
|
|
65
|
+
${q?"{%- assign variant = product.variants | where: 'id', initVariantId | first -%}":"{%- assign variant = product.selected_or_first_available_variant -%}"}
|
|
66
|
+
${q?"{%- assign productSelectedVariant = product.variants | where: 'id', initVariantId | first -%}":"{%- assign productSelectedVariant = product.selected_or_first_available_variant -%}"}
|
|
67
67
|
{%-if productSelectedVariant == empty or productSelectedVariant == null -%}
|
|
68
68
|
{%- assign productSelectedVariant = product.selected_or_first_available_variant -%}
|
|
69
69
|
{%- endif -%}
|
|
70
70
|
{%-if variant == empty or variant == null -%}
|
|
71
71
|
{%- assign variant = product.selected_or_first_available_variant -%}
|
|
72
72
|
{%- endif -%}
|
|
73
|
-
`,
|
|
73
|
+
`,H=()=>t`
|
|
74
74
|
<div class="gp-text-center">${s("Product","product_not_found")}</div>
|
|
75
|
-
`,
|
|
76
|
-
${
|
|
75
|
+
`,O=()=>t`
|
|
76
|
+
${G()}
|
|
77
77
|
<gp-product
|
|
78
78
|
data-uid="${v?.uid}"
|
|
79
79
|
data-id="${v?.uid}"
|
|
80
|
-
style="${
|
|
80
|
+
style="${E}"
|
|
81
81
|
class="${$?.cssClass}"
|
|
82
|
-
gp-context='{"productId": {{ product.id }}, "preSelectedOptionIds": [${
|
|
82
|
+
gp-context='{"productId": {{ product.id }}, "preSelectedOptionIds": [${k}], "isSyncProduct": "${S}", "hasPreSelected": ${b}, "variantSelected": {{ variant | json | escape }}, "inventory_management": {{ variant.inventory_management | json | escape }}, "inventory_policy": {{ variant.inventory_policy | json | escape }}, "inventoryQuantity": {{ variant.inventory_quantity }}, "quantity": 1, "formId": "{{ product_form_id }}" }'
|
|
83
83
|
gp-data='{"variantSelected": {{ variant | json | escape }}, "quantity": 1, "productUrl":{{ product.url | json | escape }}, "productHandle":{{ product.handle | json | escape }}, "collectionUrl": {{ collection.url | json | escape }}, "collectionHandle": {{ collection.handle | json | escape }}}'
|
|
84
84
|
>
|
|
85
85
|
<product-form class="product-form">
|
|
@@ -87,13 +87,13 @@ import{template as t,RenderIf as e,isLocalEnv as i,baseAssetURL as r}from"@gem-s
|
|
|
87
87
|
<input type="hidden" name="id" value="{{ variant.id }}" />
|
|
88
88
|
<input type="hidden" name="quantity" value="{{ quantity }}" />
|
|
89
89
|
<button type="submit" onclick="return false;" style="display:none;"></button>
|
|
90
|
-
${
|
|
90
|
+
${a({builderProps:{...v,uid:v?.uid,uidInteraction:`${v?.uid}-row`},style:y,styles:h,setting:j,children:m,rawChildren:_})}
|
|
91
91
|
{%- endform -%}
|
|
92
92
|
</product-form>
|
|
93
93
|
</gp-product>
|
|
94
94
|
{%- assign product = gpBkProduct -%}
|
|
95
95
|
`;return t`
|
|
96
|
-
${
|
|
97
|
-
${
|
|
98
|
-
${e(
|
|
96
|
+
${B()}
|
|
97
|
+
${o("product != empty and product != null",O(),H())}
|
|
98
|
+
${e(r,`<script ${n('class="gps-link" delay',"src")}="{{ 'gp-product-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${n('class="gps-link" delay',"src")}="${i}/assets-v2/gp-product-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
|
|
99
99
|
`};export{Product as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{formatMoney as
|
|
1
|
+
import{convertDecimalToNumber as t,formatMoney as e}from"@gem-sdk/core";import{DiscountType as n}from"../components/constants/product-bundle.js";let noDiscount=t=>({discountPercentAmount:0,discountAmount:e("0",t)}),applyBundleDiscountAmount=o=>{let{currentVariant:u,bundleItem:c,options:r}=o;if(!r?.useProductCompareAtPrice&&c?.discountType===n.NoDiscount||!c||!u?.price)return noDiscount(r?.moneyFormat||"${{amount}}");let i=t(u?.price)??0,a=t(u?.salePrice)??i,m=Number(c?.quantity),s=calculateBundleFixedDiscount(i,c),d=discountPercentAmount(s,m*i),l=i*m-s,p=a*m;return a<=i&&s<=0?noDiscount(r?.moneyFormat||"${{amount}}"):{discountPercentAmount:r?.useProductCompareAtPrice?calculateDiffPercentPrice(l,p):d,discountAmount:r?.useProductCompareAtPrice?calculateDiffFixedPrice(l,p,r?.moneyFormat):e(s.toString(),r?.moneyFormat)}},calculateDiffPercentPrice=(t,e)=>{let n=(e-t)/e*100;return Math.round(n)},calculateDiffFixedPrice=(t,n,o)=>e((n-t).toString(),o),calculateBundleFixedDiscount=(t,e)=>{let o=parseInt(e?.discountValue);return e?.discountType===n.Percentage?t*e.quantity*o/100:e?.discountType===n.FixedAmount?o:0},discountPercentAmount=(t,e)=>Math.round(t/e*100);export{applyBundleDiscountAmount};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let horizontalThree=[{advanced:{},childrens:[{childrens:[{advanced:{d:{desktop:!0,mobile:!0,tablet:!0},editorData:{
|
|
1
|
+
let horizontalThree=[{advanced:{},childrens:[{childrens:[{advanced:{d:{desktop:!0,mobile:!0,tablet:!0},editorData:{},hasBoxShadow:{desktop:{normal:!1}},left:{desktop:"0px"},op:{desktop:"100%"},pos:{desktop:"relative"},right:{desktop:"0px"},rounded:{desktop:{normal:{bblr:"0px",bbrr:"0px",btlr:"0px",btrr:"0px",radiusType:"none"}}},"spacing-setting":{desktop:{margin:{bottom:"8px"}}},z:{desktop:1}},label:"Product Badge",settings:{contentType:"text",displayContent:"SALE {percent_discount}",translate:"displayContent",displayTrigger:[{conditionType:"exact_or_above",from:"1",priority:0,quantityType:"exact_or_above",to:"15",triggerEvent:"inventory_status",type:"in_stock"}],image:{src:"https://cdn.shopify.com/s/files/1/0697/6182/7064/files/gempages_523190969722471488-fc9fecb6-26b8-4836-b417-2dfb9ea43bd5.png?v=1723733677"},positionWithImage:"outside",shape:"horizontal_rectangle"},styles:{align:{desktop:"left"},badgeColorV2:{desktop:"#FF614C"},borderRadius:{bblr:"0px",bbrr:"0px",btlr:"0px",btrr:"0px",radiusType:"custom"},hasShadow:!1,imageSize:{desktop:{disableShapeLinked:!0,height:"auto",shape:"original",shapeLinked:!0,width:"20%"}},position:{desktop:{bottomGap:"0",leftGap:"0",placement:"top-left",rightGap:"0",topGap:"0"}},shapeShadow:{angle:90,blur:"12px",color:"#121212",distance:"4px",spread:"0px",type:"shadow-1"},textColor:"text-3",textSize:{desktop:{disableShapeLinked:!0,gap:"",height:"Auto",hiddenShape:!0,padding:{bottom:"8px",left:"12px",right:"12px",top:"8px"},shape:"custom",shapeLinked:!1,width:"100%"}},typo:{attrs:{color:"text-3"},custom:{fontSize:{desktop:"15px"}},type:"paragraph-1"},textSizeV2:{desktop:{width:"100%",height:"auto",shapeLinked:!1,disableShapeLinked:!0,hiddenShape:!0,shape:"custom",padding:{top:"12px",bottom:"12px",left:"12px",right:"12px"}}}},tag:"ProductBadge",uid:"gXAaVIfN3P",childrens:[]},{advanced:{d:{desktop:!0,mobile:!0,tablet:!0},editorData:{cssPlaceholder:".{{rootClassName}} {\n\n}\n.{{rootClassName}} > figure > img {\n\n}"},hasBoxShadow:{desktop:{normal:!1}},op:{desktop:"100%"},rounded:{desktop:{normal:{bblr:"0px",bbrr:"0px",btlr:"0px",btrr:"0px",radiusType:"none"}}},"spacing-setting":{desktop:{margin:{}}}},label:"Image",settings:{image:{height:1678,src:"https://cdn.shopify.com/s/files/1/2005/9307/files/image_demo.jpg",width:2237},imageLink:{link:"",target:"_self"},isAdaptive:!0,isNotLazyload:!1,priority:!1,quality:70,srcSet:{desktop:{height:240,src:"https://cdn.shopify.com/s/files/1/0617/5296/7323/files/gempages_516637113702155432-d6e2c48e-485d-4db2-a00e-9fe3bde2c3d5.png",storage:"FILE_CONTENT",width:241}}},styles:{align:{desktop:"center"},borderImg:{normal:{border:"none",borderType:"none",borderWidth:"1px",color:"#000000",isCustom:!1,width:"1px 1px 1px 1px"}},borderRadius:{radiusType:"none"},boxShadowImg:{normal:{angle:90,blur:"12px",color:"rgba(0, 0, 0, 0.20)",distance:"4px",spread:"0px",type:"shadow-1"}},hasActiveShadow:!1,hasBoxShadowImg:{normal:!1},objectFit:{desktop:"cover"},opacity:{normal:0},opacityColor:{normal:"#242424"},shadow:{angle:40,blur:"12px",color:"rgba(18, 18, 18, 0.77)",distance:"10px",spread:"10px",type:"custom"},shape:{desktop:{gap:"",height:"",shape:"original",shapeLinked:!0,width:"100%"}},wrapperBorder:{border:"none",borderType:"none",borderWidth:"1px",color:"#000000",isCustom:!0,position:"all",width:"1px 1px 1px 1px"}},tag:"Image",uid:"gdzIKI_0T_"},{childrens:[],label:"Text Block",settings:{background:{desktop:{attachment:"scroll",color:"transparent",image:{height:0,src:"",width:0},position:{x:50,y:50},repeat:"no-repeat",size:"cover",type:"color"}},globalSize:{desktop:{padding:{type:"custom"},width:"100%"}},htmlTag:"div",text:"bundle-title",translate:"text"},styles:{align:{desktop:"left"},hasLineClamp:{desktop:!1},lineClamp:{desktop:1,mobile:1,tablet:1},textAlign:{desktop:"center"},typo:{attrs:{bold:!0,color:"#121212"},type:"subheading-2"}},tag:"Text",uid:"gn1nFyt3q6"},{advanced:{"spacing-setting":{desktop:{margin:{bottom:0}}}},childrens:[],label:"Text Block",settings:{background:{desktop:{attachment:"scroll",color:"transparent",image:{height:0,src:"",width:0},position:{x:50,y:50},repeat:"no-repeat",size:"cover",type:"color"}},globalSize:{desktop:{padding:{type:"custom"},width:"100%"}},htmlTag:"div",text:"<p>Deluxe choice</p>",translate:"text"},styles:{align:{desktop:"left"},hasLineClamp:{desktop:!1},lineClamp:{desktop:1,mobile:1,tablet:1},textAlign:{desktop:"center"},typo:{attrs:{color:"#121212"},type:"paragraph-1"}},tag:"Text",uid:"gRom-20zjM"},{advanced:{"spacing-setting":{desktop:{margin:{bottom:0}}}},childrens:[{childrens:[{tag:"ProductPrice",label:"Product Price",settings:{priceType:"compare"},styles:{typo:{type:"subheading-2",default:{type:"subheading-2"}},color:{normal:"text-2"},lineThrough:!0,thickness:2,lineColor:"text-2",disableHoverColor:!0,hasTextShadow:{normal:!1},textShadow:{normal:{type:"shadow-1"}},textAlign:{desktop:"left"}},advanced:{"spacing-setting":{desktop:{margin:{bottom:0}}},d:{desktop:!0,tablet:!0,mobile:!0},border:{desktop:{normal:{borderType:"none",border:"none",borderWidth:"1px",width:"1px 1px 1px 1px",color:"#121212",isCustom:!0}}},rounded:{desktop:{normal:{btrr:"0px",bblr:"0px",bbrr:"0px",btlr:"0px",radiusType:"none"}}},hasBoxShadow:{desktop:{normal:!1}},boxShadow:{desktop:{normal:{}}},op:{desktop:"100%"}},defaultPresetConfig:{typo:{type:"subheading-2",default:{type:"subheading-2"}},color:{normal:"text-2"},lineThrough:!0,thickness:2,lineColor:"text-2",disableHoverColor:!0,hasTextShadow:{normal:!1},textShadow:{normal:{type:"shadow-1"}},textAlign:{desktop:"left"},"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}},d:{desktop:!0,tablet:!0,mobile:!0},border:{desktop:{normal:{borderType:"none",border:"none",borderWidth:"1px",width:"1px 1px 1px 1px",color:"#121212",isCustom:!0}}},rounded:{desktop:{normal:{btrr:"0px",bblr:"0px",bbrr:"0px",btlr:"0px",radiusType:"none"}}},hasBoxShadow:{desktop:{normal:!1}},boxShadow:{desktop:{normal:{}}},op:{desktop:"100%"},animation:{desktop:{enabled:!1,trigger:"appear",triggerConfig:{appear:{animation:"fade",setting:{fade:{delay:"0",speed:1.7,easing:"ease-out"},zoom:{delay:"0",speed:1.7,isFade:!0,easing:"ease-out",zoomDirection:"in",scale:{in:[80,100],out:[120,100]}},slide:{delay:"0",speed:1.7,easing:"ease-out",direction:"left",isCustomDistance:!1},shake:{delay:"0",speed:.7,loop:!1,intensity:11,easing:"linear"}}},hover:{animation:"none",setting:{fade:{delay:"0",speed:1.7,easing:"ease-out"},zoom:{delay:"0",speed:1.7,isFade:!1,easing:"ease-out",zoomDirection:"in",scale:{in:[100,120],out:[100,80]}},slide:{delay:"0",speed:1.7,easing:"ease-out",direction:"left",isCustomDistance:!1},shake:{delay:"0",speed:.7,loop:!1,intensity:11,easing:"linear"}}}}}},priceType:"compare"}}],label:"Block",settings:{},styles:{},tag:"Col",uid:"gzjaV2bhnA"},{childrens:[{childrens:[],label:"Product Price",settings:{hasOnlyDefaultVariant:!1},styles:{color:{normal:"#242424"},hasTextShadow:{normal:!1},lineColor:"text-1",lineThrough:!0,priceType:"regular",textAlign:{desktop:"right"},textShadow:{normal:{type:"shadow-1"}},thickness:1,typo:{type:"subheading-2"}},tag:"ProductPrice",uid:"gPxDKeAt0Y"}],label:"Block",settings:{},tag:"Col",uid:"gaMYmxtRAS"}],label:"Row",settings:{blockAlignment:"start",horizontalAlign:{desktop:"center"},inlineAlignment:"start",layout:{desktop:{cols:[6,6],display:"fit"},mobile:{cols:[6,6],display:"fit"}},verticalAlign:{desktop:"center"}},styles:{background:{desktop:{attachment:"scroll",color:"transparent",image:{height:0,src:"",width:0},position:{x:50,y:50},repeat:"no-repeat",size:"cover",type:"color"}},columnGap:{desktop:"1%"},fullWidth:{desktop:!1,mobile:!1,tablet:!1},preloadBgImage:!1,verticalGutter:{desktop:"8px"},width:{desktop:"100%"}},tag:"Row",uid:"gQvPWxec6X"}],label:"Block",settings:{},styles:{},tag:"Col",uid:"gY3R2wmMlG"}],label:"Row",settings:{blockAlignment:"start",horizontalAlign:{desktop:"space-between"},inlineAlignment:"start",layout:{desktop:{cols:[12],display:"fill"},mobile:{cols:[12],display:"fill"}},verticalAlign:{desktop:"center"}},styles:{background:{desktop:{attachment:"scroll",color:"transparent",image:{height:0,src:"",width:0},position:{x:50,y:50},repeat:"no-repeat",size:"cover",type:"color"}},columnGap:{desktop:"1%"},fullWidth:{desktop:!0,mobile:!0,tablet:!0},preloadBgImage:!1,verticalGutter:{desktop:"16px"},width:{}},tag:"Row"}];export{horizontalThree};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let horizontalTwo=[{childrens:[{childrens:[{advanced:{d:{desktop:!0,mobile:!0,tablet:!0},editorData:{
|
|
1
|
+
let horizontalTwo=[{childrens:[{childrens:[{advanced:{d:{desktop:!0,mobile:!0,tablet:!0},editorData:{},hasBoxShadow:{desktop:{normal:!1}},left:{desktop:"0px"},op:{desktop:"100%"},pos:{desktop:"relative"},right:{desktop:"0px"},rounded:{desktop:{normal:{bblr:"0px",bbrr:"0px",btlr:"0px",btrr:"0px",radiusType:"none"}}},"spacing-setting":{desktop:{margin:{bottom:"8px"}}},z:{desktop:1}},label:"Product Badge",settings:{contentType:"text",displayContent:"SALE {percent_discount}",translate:"displayContent",displayTrigger:[{conditionType:"exact_or_above",from:"1",priority:0,quantityType:"exact_or_above",to:"15",triggerEvent:"inventory_status",type:"in_stock"}],image:{src:"https://cdn.shopify.com/s/files/1/0697/6182/7064/files/gempages_523190969722471488-fc9fecb6-26b8-4836-b417-2dfb9ea43bd5.png?v=1723733677"},positionWithImage:"outside",shape:"horizontal_rectangle"},styles:{align:{desktop:"left"},badgeColorV2:{desktop:"#FF614C"},borderRadius:{bblr:"0px",bbrr:"0px",btlr:"0px",btrr:"0px",radiusType:"custom"},hasShadow:!1,imageSize:{desktop:{disableShapeLinked:!0,height:"auto",shape:"original",shapeLinked:!0,width:"20%"}},position:{desktop:{bottomGap:"0",leftGap:"0",placement:"top-left",rightGap:"0",topGap:"0"}},shapeShadow:{angle:90,blur:"12px",color:"#121212",distance:"4px",spread:"0px",type:"shadow-1"},textColor:"text-3",textSize:{desktop:{disableShapeLinked:!0,gap:"",height:"Auto",hiddenShape:!0,padding:{bottom:"8px",left:"12px",right:"12px",top:"8px"},shape:"custom",shapeLinked:!1,width:"100%"}},typo:{attrs:{color:"text-3"},custom:{fontSize:{desktop:"15px"}},type:"paragraph-1"},textSizeV2:{desktop:{width:"100%",height:"auto",shapeLinked:!1,disableShapeLinked:!0,hiddenShape:!0,shape:"custom",padding:{top:"12px",bottom:"12px",left:"12px",right:"12px"}}}},tag:"ProductBadge",uid:"gXAaVIfN3P",childrens:[]},{advanced:{d:{desktop:!0,mobile:!0,tablet:!0},editorData:{cssPlaceholder:".{{rootClassName}} {\n\n}\n.{{rootClassName}} > figure > img {\n\n}"},hasBoxShadow:{desktop:{normal:!1}},op:{desktop:"100%"},rounded:{desktop:{normal:{bblr:"0px",bbrr:"0px",btlr:"0px",btrr:"0px",radiusType:"none"}}},"spacing-setting":{desktop:{margin:{}}}},label:"Image",settings:{image:{height:1678,src:"https://cdn.shopify.com/s/files/1/2005/9307/files/image_demo.jpg",width:2237},imageLink:{link:"",target:"_self"},isAdaptive:!0,isNotLazyload:!1,priority:!1,quality:70,srcSet:{desktop:{height:240,src:"https://cdn.shopify.com/s/files/1/0617/5296/7323/files/gempages_516637113702155432-b286a16e-98e6-48ba-889d-a36b64249436.png",storage:"FILE_CONTENT",width:241}}},styles:{align:{desktop:"center"},borderImg:{normal:{border:"none",borderType:"none",borderWidth:"1px",color:"#000000",isCustom:!1,width:"1px 1px 1px 1px"}},borderRadius:{radiusType:"none"},boxShadowImg:{normal:{angle:90,blur:"12px",color:"rgba(0, 0, 0, 0.20)",distance:"4px",spread:"0px",type:"shadow-1"}},hasActiveShadow:!1,hasBoxShadowImg:{normal:!1},objectFit:{desktop:"cover"},opacity:{normal:0},opacityColor:{normal:"#242424"},shadow:{angle:40,blur:"12px",color:"rgba(18, 18, 18, 0.77)",distance:"10px",spread:"10px",type:"custom"},shape:{desktop:{shape:"original",shapeLinked:!0}},wrapperBorder:{border:"none",borderType:"none",borderWidth:"1px",color:"#000000",isCustom:!0,position:"all",width:"1px 1px 1px 1px"}},tag:"Image",uid:"gRq0Y_6o_C"},{childrens:[],label:"Text Block",settings:{background:{desktop:{attachment:"scroll",color:"transparent",image:{height:0,src:"",width:0},position:{x:50,y:50},repeat:"no-repeat",size:"cover",type:"color"}},globalSize:{desktop:{padding:{type:"custom"},width:"100%"}},htmlTag:"div",text:"bundle-title",translate:"text"},styles:{align:{desktop:"left"},hasLineClamp:{desktop:!1},lineClamp:{desktop:1,mobile:1,tablet:1},textAlign:{desktop:"center"},typo:{attrs:{bold:!0,color:"#121212"},type:"subheading-2"}},tag:"Text",uid:"gZCW_UZNgX"},{advanced:{"spacing-setting":{desktop:{margin:{bottom:0}}}},childrens:[],label:"Text Block",settings:{background:{desktop:{attachment:"scroll",color:"transparent",image:{height:0,src:"",width:0},position:{x:50,y:50},repeat:"no-repeat",size:"cover",type:"color"}},globalSize:{desktop:{padding:{type:"custom"},width:"100%"}},htmlTag:"div",text:"<p>Great value</p>",translate:"text"},styles:{align:{desktop:"left"},hasLineClamp:{desktop:!1},lineClamp:{desktop:1,mobile:1,tablet:1},textAlign:{desktop:"center"},typo:{attrs:{color:"#121212"},type:"paragraph-1"}},tag:"Text",uid:"gXozhYepEX"},{advanced:{"spacing-setting":{desktop:{margin:{bottom:0}}}},childrens:[{childrens:[{tag:"ProductPrice",label:"Product Price",settings:{priceType:"compare"},styles:{typo:{type:"subheading-2",default:{type:"subheading-2"}},color:{normal:"text-2"},lineThrough:!0,thickness:2,lineColor:"text-2",disableHoverColor:!0,hasTextShadow:{normal:!1},textShadow:{normal:{type:"shadow-1"}},textAlign:{desktop:"left"}},advanced:{"spacing-setting":{desktop:{margin:{bottom:0}}},d:{desktop:!0,tablet:!0,mobile:!0},border:{desktop:{normal:{borderType:"none",border:"none",borderWidth:"1px",width:"1px 1px 1px 1px",color:"#121212",isCustom:!0}}},rounded:{desktop:{normal:{btrr:"0px",bblr:"0px",bbrr:"0px",btlr:"0px",radiusType:"none"}}},hasBoxShadow:{desktop:{normal:!1}},boxShadow:{desktop:{normal:{}}},op:{desktop:"100%"}},defaultPresetConfig:{typo:{type:"subheading-2",default:{type:"subheading-2"}},color:{normal:"text-1"},lineThrough:!0,thickness:2,lineColor:"text-1",disableHoverColor:!0,hasTextShadow:{normal:!1},textShadow:{normal:{type:"shadow-1"}},textAlign:{desktop:"left"},"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}},d:{desktop:!0,tablet:!0,mobile:!0},border:{desktop:{normal:{borderType:"none",border:"none",borderWidth:"1px",width:"1px 1px 1px 1px",color:"#121212",isCustom:!0}}},rounded:{desktop:{normal:{btrr:"0px",bblr:"0px",bbrr:"0px",btlr:"0px",radiusType:"none"}}},hasBoxShadow:{desktop:{normal:!1}},boxShadow:{desktop:{normal:{}}},op:{desktop:"100%"},animation:{desktop:{enabled:!1,trigger:"appear",triggerConfig:{appear:{animation:"fade",setting:{fade:{delay:"0",speed:1.7,easing:"ease-out"},zoom:{delay:"0",speed:1.7,isFade:!0,easing:"ease-out",zoomDirection:"in",scale:{in:[80,100],out:[120,100]}},slide:{delay:"0",speed:1.7,easing:"ease-out",direction:"left",isCustomDistance:!1},shake:{delay:"0",speed:.7,loop:!1,intensity:11,easing:"linear"}}},hover:{animation:"none",setting:{fade:{delay:"0",speed:1.7,easing:"ease-out"},zoom:{delay:"0",speed:1.7,isFade:!1,easing:"ease-out",zoomDirection:"in",scale:{in:[100,120],out:[100,80]}},slide:{delay:"0",speed:1.7,easing:"ease-out",direction:"left",isCustomDistance:!1},shake:{delay:"0",speed:.7,loop:!1,intensity:11,easing:"linear"}}}}}},priceType:"compare"}}],label:"Block",settings:{},styles:{},tag:"Col",uid:"gU7z9j0jbp"},{childrens:[{childrens:[],label:"Product Price",settings:{priceType:"regular",hasOnlyDefaultVariant:!1},styles:{color:{normal:"#242424"},hasTextShadow:{normal:!1},lineColor:"text-1",lineThrough:!0,textAlign:{desktop:"right"},textShadow:{normal:{type:"shadow-1"}},thickness:1,typo:{type:"subheading-2"}},tag:"ProductPrice",uid:"gP9Tq9YUJq"}],label:"Block",settings:{},tag:"Col",uid:"gEOSPx4VOT"}],label:"Row",settings:{blockAlignment:"start",horizontalAlign:{desktop:"center"},inlineAlignment:"start",layout:{desktop:{cols:[6,6],display:"fit"},mobile:{cols:[6,6],display:"fit"}},verticalAlign:{desktop:"center"}},styles:{background:{desktop:{attachment:"scroll",color:"transparent",image:{height:0,src:"",width:0},position:{x:50,y:50},repeat:"no-repeat",size:"cover",type:"color"}},columnGap:{desktop:"1%"},fullWidth:{desktop:!1,mobile:!1,tablet:!1},preloadBgImage:!1,verticalGutter:{desktop:"8px"},width:{desktop:"100%"}},tag:"Row",uid:"gVq8mfQa7w"}],label:"Block",settings:{},styles:{},tag:"Col",uid:"gM8gt27sCy"}],label:"Row",settings:{blockAlignment:"start",horizontalAlign:{desktop:"space-between"},inlineAlignment:"start",layout:{desktop:{cols:[12],display:"fill"},mobile:{cols:[12],display:"fill"}},verticalAlign:{desktop:"center"}},styles:{background:{desktop:{attachment:"scroll",color:"transparent",image:{height:0,src:"",width:0},position:{x:50,y:50},repeat:"no-repeat",size:"cover",type:"color"}},columnGap:{desktop:"1%"},fullWidth:{desktop:!0,mobile:!0,tablet:!0},preloadBgImage:!1,verticalGutter:{desktop:"16px"},width:{}},tag:"Row"}];export{horizontalTwo};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let SettingUIV1=[{type:"group",label:{en:"Content"},controls:[{type:"control",label:{en:"Label"},setting:{id:"label"}}]},{type:"group",label:{en:"Size"},controls:[{type:"control",setting:{id:"globalSize"},layout:"vertical"}]},{type:"group",label:{en:"States"},options:{labelSpacing:"small"},controls:[{type:"tab",controls:[{type:"group",label:{en:"Normal"},controls:[{type:"control",label:{en:"Background color"},setting:{id:"backgroundColor",state:"normal"}},{type:"control",label:{en:"Text color"},setting:{id:"textColor",state:"normal"}},{type:"control",options:{labelPosition:"start"},label:{en:"Border"},setting:{id:"borderBtn",state:"normal"}},{type:"control",label:{en:"Corner"},setting:{id:"roundedBtn",state:"normal"}},{type:"control",label:{en:"Shadow"},setting:{id:"hasBoxShadowBtn",state:"normal"}},{type:"control",condition:"hasBoxShadowBtn
|
|
1
|
+
let SettingUIV1=[{type:"group",label:{en:"Content"},controls:[{type:"control",label:{en:"Label"},setting:{id:"label"}}]},{type:"group",label:{en:"Size"},controls:[{type:"control",setting:{id:"globalSize"},layout:"vertical"}]},{type:"group",label:{en:"States"},options:{labelSpacing:"small"},controls:[{type:"tab",controls:[{type:"group",label:{en:"Normal"},controls:[{type:"control",label:{en:"Background color"},setting:{id:"backgroundColor",state:"normal"}},{type:"control",label:{en:"Text color"},setting:{id:"textColor",state:"normal"}},{type:"control",options:{labelPosition:"start"},label:{en:"Border"},setting:{id:"borderBtn",state:"normal"}},{type:"control",label:{en:"Corner"},setting:{id:"roundedBtn",state:"normal"}},{type:"control",label:{en:"Shadow"},setting:{id:"hasBoxShadowBtn",state:"normal"}},{type:"control",condition:"hasBoxShadowBtn?.normal == true",layout:"vertical",setting:{id:"boxShadowBtn",state:"normal"}}]},{type:"group",label:{en:"Hover"},controls:[{type:"control",label:{en:"Background color"},setting:{id:"backgroundColor",state:"hover"}},{type:"control",label:{en:"Text color"},setting:{id:"textColor",state:"hover"}},{type:"control",options:{labelPosition:"start"},label:{en:"Border"},setting:{id:"borderBtn",state:"hover"}},{type:"control",label:{en:"Corner"},setting:{id:"roundedBtn",state:"hover"}},{type:"control",label:{en:"Shadow"},setting:{id:"hasBoxShadowBtn",state:"hover"}},{type:"control",condition:"hasBoxShadowBtn?.hover == true",layout:"vertical",setting:{id:"boxShadowBtn",state:"hover"}}]}]}]},{type:"group",label:{en:"Text"},controls:[{type:"control",setting:{id:"typo"},layout:"vertical"}]},{type:"control",label:{en:"Align"},condition:"globalSize?.width !== '100%'",options:{label:"large"},setting:{id:"align"}}];export{SettingUIV1};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let SettingUIV2=[{label:{en:"Size"},controls:[{id:"Width",label:{en:"Width"},controlConfig:{id:"width",type:"dropdown:input",label:"Width",inputType:"number",units:["px","%"],hideUnit:!1,linkWithSetting:{name:"globalSize",field:"width"},displayOptions:[{label:"Fit content",value:"Auto",showValue:!0},{label:"Full",value:"100%",showValue:!0},{label:"Small",value:"100px",showValue:!0},{label:"Medium",value:"116px",showValue:!0},{label:"Large",value:"132px",showValue:!0}]},layout:"horizontal"},{id:"Height",label:{en:"Height"},controlConfig:{id:"height",type:"dropdown:input",label:"height",inputType:"number",units:["px"],hideUnit:!1,linkWithSetting:{name:"globalSize",field:"height"},displayOptions:[{label:"Fit content",value:"Auto",showValue:!0},{label:"Small",value:"28px",showValue:!0},{label:"Medium",value:"36px",showValue:!0},{label:"Large",value:"44px",showValue:!0}]},layout:"horizontal"},{label:{en:"Padding"},controlConfig:{id:"padding",type:"padding-v2",linkWithSetting:{name:"globalSize",field:"padding"},compoDefaultValue:{desktop:{default:{type:"medium",top:"12px",bottom:"12px",left:"24px",right:"24px"}}}}}]},{label:{en:"Background"},conditionDisplay:'pageType != "POST_PURCHASE"',controls:[{label:{en:"Color"},setting:{id:"backgroundColorV2",state:"normal"}},{label:{en:"Image"},setting:{id:"backgroundImage",state:"normal"}}]},{label:{en:"Shape"},conditionDisplay:'pageType != "POST_PURCHASE"',controls:[{label:{en:"Border"},setting:{id:"borderBtnV2",state:"normal"}},{label:{en:"Corner"},setting:{id:"roundedBtnV2",state:"normal"}},{label:{en:"Shadow"},setting:{id:"boxShadowBtn",state:"normal"},options:{updateFields:[{field:"normal.enable",settingId:"hasBoxShadowBtn",state:"normal"}]},controlChangeTrigger:{settings:[{condition:"boxShadowBtn
|
|
1
|
+
let SettingUIV2=[{label:{en:"Size"},controls:[{id:"Width",label:{en:"Width"},controlConfig:{id:"width",type:"dropdown:input",label:"Width",inputType:"number",units:["px","%"],hideUnit:!1,linkWithSetting:{name:"globalSize",field:"width"},displayOptions:[{label:"Fit content",value:"Auto",showValue:!0},{label:"Full",value:"100%",showValue:!0},{label:"Small",value:"100px",showValue:!0},{label:"Medium",value:"116px",showValue:!0},{label:"Large",value:"132px",showValue:!0}]},layout:"horizontal"},{id:"Height",label:{en:"Height"},controlConfig:{id:"height",type:"dropdown:input",label:"height",inputType:"number",units:["px"],hideUnit:!1,linkWithSetting:{name:"globalSize",field:"height"},displayOptions:[{label:"Fit content",value:"Auto",showValue:!0},{label:"Small",value:"28px",showValue:!0},{label:"Medium",value:"36px",showValue:!0},{label:"Large",value:"44px",showValue:!0}]},layout:"horizontal"},{label:{en:"Padding"},controlConfig:{id:"padding",type:"padding-v2",linkWithSetting:{name:"globalSize",field:"padding"},compoDefaultValue:{desktop:{default:{type:"medium",top:"12px",bottom:"12px",left:"24px",right:"24px"}}}}}]},{label:{en:"Background"},conditionDisplay:'pageType != "POST_PURCHASE"',controls:[{label:{en:"Color"},setting:{id:"backgroundColorV2",state:"normal"}},{label:{en:"Image"},setting:{id:"backgroundImage",state:"normal"}}]},{label:{en:"Shape"},conditionDisplay:'pageType != "POST_PURCHASE"',controls:[{label:{en:"Border"},setting:{id:"borderBtnV2",state:"normal"}},{label:{en:"Corner"},setting:{id:"roundedBtnV2",state:"normal"}},{label:{en:"Shadow"},setting:{id:"boxShadowBtn",state:"normal"},options:{updateFields:[{field:"normal.enable",settingId:"hasBoxShadowBtn",state:"normal"}]},controlChangeTrigger:{settings:[{condition:"boxShadowBtn?.normal?.enable === true",source:["boxShadowBtn","hasBoxShadowBtn"],action:{controlId:"hasBoxShadowBtn",groupType:"style",controlType:"style",state:"normal",newValue:!0}},{condition:"boxShadowBtn?.normal?.enable === false",source:["boxShadowBtn","hasBoxShadowBtn"],action:{controlId:"hasBoxShadowBtn",groupType:"style",controlType:"style",state:"normal",newValue:!1}}],options:{noRecordHistory:!0}}}]},{label:{en:"Text"},controls:[{id:"typo",label:{en:"Basic"},setting:{id:"typo"},options:{hideLabel:!0,fullWidth:!0,updateFields:[{field:"attrs.color",settingId:"textColor",state:"normal"}]},layout:"vertical",controlChangeTrigger:{settings:[{action:{controlId:"textColor",valueFromField:"attrs.color",groupType:"style",controlType:"style",removeDevice:!0,state:"normal"}}],options:{noRecordHistory:!0}}}]},{label:{en:"Effect"},conditionDisplay:'pageType != "POST_PURCHASE"',controls:[{label:{en:"Hover"},type:"combo",state:"hover",iconName:"polaris-check-hover",fixedValue:"Styled",popoverLabel:{en:"Hover"},setting:{id:"enableHoverEffect"},controls:[{type:"group",label:{en:"Background"},controls:[{label:{en:"Color"},setting:{id:"backgroundColorV2",state:"hover"}},{label:{en:"Image"},setting:{id:"backgroundImage",state:"hover"}}]},{type:"group",label:{en:"Text"},controls:[{label:{en:"Text color"},setting:{id:"textColor",state:"hover"}}]},{type:"group",label:{en:"Shape"},controls:[{label:{en:"Border"},setting:{id:"borderBtnV2",state:"hover"}},{label:{en:"Corner"},setting:{id:"roundedBtnV2",state:"hover"}},{label:{en:"Shadow"},setting:{id:"boxShadowBtn",state:"hover"},options:{updateFields:[{field:"hover.enable",settingId:"hasBoxShadowBtn",state:"hover"}]},controlChangeTrigger:{settings:[{condition:"boxShadowBtn?.hover?.enable === true",source:["boxShadowBtn","hasBoxShadowBtn"],action:{controlId:"hasBoxShadowBtn",groupType:"style",controlType:"style",state:"hover",newValue:!0}},{condition:"boxShadowBtn?.hover?.enable === false",source:["boxShadowBtn","hasBoxShadowBtn"],action:{controlId:"hasBoxShadowBtn",groupType:"style",controlType:"style",state:"hover",newValue:!1}}],options:{noRecordHistory:!0}}}]}]}]},{controls:[{label:{en:"Align"},conditionEnable:'!(globalSize.width === "default" || (parseInt(globalSize.width) >= 100 && globalSize.width?.includes("%")))',setting:{id:"align"},options:{labelVariant:"primary",fullWidth:!0,disableMessage:"Horizontal alignment is disabled when the width is set to 100% or greater"}}]}];export{SettingUIV2};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let SettingUIV1=[{type:"control",label:{en:"Select product"},setting:{id:"productSetting"},layout:"vertical"},{type:"group",label:{en:"Discount & shipping fee"},controls:[{type:"control",label:{en:"Discount"},setting:{id:"discountType"},condition:'pageType == "POST_PURCHASE"'},{type:"control",label:{en:" "},setting:{id:"discountValue"},condition:'pageType == "POST_PURCHASE"'},{type:"control",label:{en:"Shipping fee"},setting:{id:"shippingFeeType"},condition:'pageType == "POST_PURCHASE"'},{type:"control",label:{en:" "},condition:"shippingFeeType !== 'free' && pageType == \"POST_PURCHASE\"",setting:{id:"shippingFeeValue"}}]},{type:"control",label:{en:"Select Variant"},layout:"vertical",setting:{id:"selectVariantDefault"},options:{label:"large",styleControl:{"max-width":"100%"}}},{type:"control",label:{en:"Layout"},setting:{id:"layout"},layout:"vertical"},{type:"group",label:{en:"Size"},controls:[{type:"control",label:{en:"Full width"},setting:{id:"fullWidth"}},{condition:"fullWidth === false",type:"control",label:{en:"Width"},setting:{id:"width"}},{type:"control",label:{en:"Column gap"},setting:{id:"verticalGutter"},condition:'!!layout
|
|
1
|
+
let SettingUIV1=[{type:"control",label:{en:"Select product"},setting:{id:"productSetting"},layout:"vertical"},{type:"group",label:{en:"Discount & shipping fee"},controls:[{type:"control",label:{en:"Discount"},setting:{id:"discountType"},condition:'pageType == "POST_PURCHASE"'},{type:"control",label:{en:" "},setting:{id:"discountValue"},condition:'pageType == "POST_PURCHASE"'},{type:"control",label:{en:"Shipping fee"},setting:{id:"shippingFeeType"},condition:'pageType == "POST_PURCHASE"'},{type:"control",label:{en:" "},condition:"shippingFeeType !== 'free' && pageType == \"POST_PURCHASE\"",setting:{id:"shippingFeeValue"}}]},{type:"control",label:{en:"Select Variant"},layout:"vertical",setting:{id:"selectVariantDefault"},options:{label:"large",styleControl:{"max-width":"100%"}}},{type:"control",label:{en:"Layout"},setting:{id:"layout"},layout:"vertical"},{type:"group",label:{en:"Size"},controls:[{type:"control",label:{en:"Full width"},setting:{id:"fullWidth"}},{condition:"fullWidth === false",type:"control",label:{en:"Width"},setting:{id:"width"}},{type:"control",label:{en:"Column gap"},setting:{id:"verticalGutter"},condition:'!!layout?.cols && layout?.cols?.length > 1 && pageType != "POST_PURCHASE"'},{type:"control",label:{en:"Column gap"},setting:{id:"columnGap"},condition:'!!layout?.cols && layout?.cols?.length > 1 && pageType == "POST_PURCHASE"'}]},{type:"group",label:{en:"Align"},condition:"layout?.display !== 'fill' || (layout?.display === 'fill' && !!layout?.cols && layout?.cols?.length > 1)",controls:[{type:"control",label:{en:"Vertical"},setting:{id:"verticalAlign"},condition:'!!layout?.cols && layout?.cols?.length > 1 && pageType != "POST_PURCHASE"'},{type:"control",label:{en:"Horizontal"},condition:"layout?.display !== 'fill' && pageType != \"POST_PURCHASE\"",setting:{id:"horizontalAlign"}},{type:"control",label:{en:"Horizontal"},condition:"layout?.display !== 'fill' && pageType == \"POST_PURCHASE\"",setting:{id:"inlineAlignment"}}]},{type:"group",label:{en:""},condition:'pageType != "POST_PURCHASE"',controls:[{type:"control",label:{en:"Manage variants & quantity"},layout:"vertical",setting:{id:"isSyncProduct"},options:{label:"large"},isMoreSetting:!0}]}];export{SettingUIV1};
|