@gem-sdk/components 23.1.3 → 24.0.0-dev.10
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/article/components/ArticleImage.js +1 -1
- package/dist/cjs/article/components/ArticleImage.liquid.js +6 -6
- package/dist/cjs/article/components/ArticleList.js +1 -1
- package/dist/cjs/article/index.js +1 -1
- package/dist/cjs/article/settings/configs/article-image/settings.js +1 -1
- package/dist/cjs/article/settings/configs/article-image/ui-v2.js +1 -1
- package/dist/cjs/builder.js +1 -1
- package/dist/cjs/button/common/helpers.js +2 -2
- package/dist/cjs/cart/components/CartList.js +1 -1
- package/dist/cjs/cart/index.js +1 -1
- package/dist/cjs/collection/index.js +1 -1
- package/dist/cjs/common/components/Loading.js +1 -1
- package/dist/cjs/common/const.js +1 -1
- package/dist/cjs/common/helpers.js +1 -0
- package/dist/cjs/common/hooks/useElementWidth.js +1 -0
- package/dist/cjs/common/hooks/useLoadingProgress.js +1 -0
- package/dist/cjs/grid/components/row/Row.liquid.js +12 -12
- package/dist/cjs/grid/components/section/Section.js +1 -1
- package/dist/cjs/grid/index.js +1 -1
- package/dist/cjs/header/components/kind/basic/index.js +1 -1
- package/dist/cjs/header/components/kind/modern/index.js +1 -1
- package/dist/cjs/header/index.js +1 -1
- package/dist/cjs/hero-banner/common/styles.js +1 -1
- package/dist/cjs/hero-banner/components/HeroBannerItem.js +1 -1
- package/dist/cjs/hero-banner/components/HeroBannerItem.liquid.js +5 -5
- package/dist/cjs/hero-banner/index.js +1 -1
- package/dist/cjs/image/common/adaptiveSources.js +1 -0
- package/dist/cjs/image/common/attrs.js +1 -1
- package/dist/cjs/image/common/classes.js +1 -1
- package/dist/cjs/image/common/helpers.js +2 -2
- package/dist/cjs/image/common/liquidSrcset.js +1 -0
- package/dist/cjs/image/common/listContext.js +1 -0
- package/dist/cjs/image/common/listImageContext.js +1 -0
- package/dist/cjs/image/common/sizes.js +1 -0
- package/dist/cjs/image/common/srcset.js +1 -0
- package/dist/cjs/image/components/AdaptiveImage.js +1 -1
- package/dist/cjs/image/components/AdaptiveImage.liquid.js +10 -12
- package/dist/cjs/image/components/Image.js +1 -1
- package/dist/cjs/image/components/Image.liquid.js +10 -10
- package/dist/cjs/image/components/NextImage.js +1 -1
- package/dist/cjs/image/components/NextImage.liquid.js +4 -5
- package/dist/cjs/image/constants.js +1 -1
- package/dist/cjs/image/index.js +1 -1
- package/dist/cjs/image/settings/configs/settings.js +1 -1
- package/dist/cjs/image/settings/configs/ui-v2.js +1 -1
- package/dist/cjs/image-comparison/common/attrs.js +1 -1
- package/dist/cjs/image-comparison/components/CompareImage.js +1 -1
- package/dist/cjs/image-comparison/components/CompareImage.liquid.js +14 -14
- package/dist/cjs/image-comparison/components/ImageComparison.liquid.js +3 -3
- 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/ui-v2.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/post-purchase/callout-banner/index.js +1 -1
- package/dist/cjs/post-purchase/product/components/ProductPrice.js +1 -1
- package/dist/cjs/post-purchase/product/components/ProductQuantity.js +1 -1
- package/dist/cjs/post-purchase/product/components/product-offer/components/ProductOffer.js +1 -1
- package/dist/cjs/post-purchase/product/components/product-offer/helpers/getOfferErrorText.js +1 -0
- package/dist/cjs/post-purchase/product/components/product-offer/hooks/useProductOfferData.js +1 -1
- package/dist/cjs/post-purchase/product/hooks/useHandleQuantity.js +1 -1
- package/dist/cjs/post-purchase/product/index.js +1 -1
- package/dist/cjs/post-purchase/product/settings/product-quantity/configs/settings.js +1 -1
- package/dist/cjs/post-purchase/product/settings/product-quantity/configs/ui-v2.js +1 -1
- package/dist/cjs/product/components/product-badge/ProductBadge.js +1 -1
- package/dist/cjs/product/components/product-badge/common/styles.js +1 -1
- package/dist/cjs/product/components/product-bundle/ProductBundleDiscount.js +1 -1
- package/dist/cjs/product/components/product-bundle/ProductBundleDiscountWarning.js +2 -0
- package/dist/cjs/product/components/product-bundle/common/classes.js +1 -1
- package/dist/cjs/product/components/product-bundle/hooks/useProductBundleDataState.js +3 -3
- package/dist/cjs/product/components/product-discount-tag/ProductDiscountTag.js +1 -1
- package/dist/cjs/product/components/product-discount-tag/common/helpers.js +1 -0
- package/dist/cjs/product/components/product-images/ProductImagesLightBox.js +1 -1
- package/dist/cjs/product/components/product-images-v2/common/attrs.js +1 -1
- package/dist/cjs/product/components/product-images-v2/common/common.js +1 -1
- package/dist/cjs/product/components/product-images-v2/components/child/ProductFeaturedImageOnly.js +1 -1
- package/dist/cjs/product/components/product-images-v2/components/child/ProductGalleryGrid.js +1 -1
- package/dist/cjs/product/components/product-images-v2/components/feature-gallery/FeatureImageWithGallery.liquid.js +41 -41
- package/dist/cjs/product/components/product-images-v2/components/gallery-carousel/GalleryCarousel.js +1 -1
- package/dist/cjs/product/components/product-images-v2/components/gallery-carousel/GalleryCarousel.liquid.js +13 -13
- package/dist/cjs/product/components/product-images-v2/components/gallery-grid/GalleryGrid.liquid.js +23 -23
- package/dist/cjs/product/components/product-images-v2/components/lightbox/ProductImagesLightBox.js +1 -1
- package/dist/cjs/product/components/product-images-v3/ProductImagesV3.liquid.js +3 -3
- package/dist/cjs/product/components/product-images-v3/common/attrs.js +1 -1
- package/dist/cjs/product/components/product-images-v3/common/common.js +1 -1
- package/dist/cjs/product/components/product-images-v3/components/child/ProductFeaturedImageOnly.js +1 -1
- package/dist/cjs/product/components/product-images-v3/components/child/ProductGalleryGrid.js +1 -1
- package/dist/cjs/product/components/product-images-v3/components/feature-gallery/FeatureImageWithGallery.liquid.js +40 -40
- package/dist/cjs/product/components/product-images-v3/components/feature-gallery/FeatureImageWithGalleryEmbla.liquid.js +40 -40
- package/dist/cjs/product/components/product-images-v3/components/gallery-carousel/GalleryCarousel.js +1 -1
- package/dist/cjs/product/components/product-images-v3/components/gallery-carousel/GalleryCarousel.liquid.js +12 -12
- package/dist/cjs/product/components/product-images-v3/components/gallery-carousel/GalleryCarouselEmbla.liquid.js +12 -12
- package/dist/cjs/product/components/product-images-v3/components/gallery-grid/GalleryGrid.liquid.js +23 -23
- package/dist/cjs/product/components/product-images-v3/components/lightbox/ProductImagesLightBox.js +1 -1
- package/dist/cjs/product/components/product-list/ProductList.js +1 -1
- package/dist/cjs/product/components/product-list/ProductListCarouselLayout.js +1 -1
- package/dist/cjs/product/components/product-list/ProductListCarouselLayout.liquid.js +9 -7
- package/dist/cjs/product/components/product-list/ProductListGridLayout.js +1 -1
- package/dist/cjs/product/components/product-list/ProductListGridLayout.liquid.js +16 -14
- package/dist/cjs/product/components/product-list/common/helpers.js +1 -1
- package/dist/cjs/product/components/product-list/common/imagePriority.js +17 -0
- package/dist/cjs/product/components/product-list/common/imagePriorityHints.js +1 -0
- package/dist/cjs/product/components/product-list-v3/ProductList.js +1 -1
- package/dist/cjs/product/components/product-list-v3/ProductListCarouselLayout.js +1 -1
- package/dist/cjs/product/components/product-list-v3/ProductListCarouselLayout.liquid.js +11 -9
- package/dist/cjs/product/components/product-list-v3/ProductListGridLayout.js +1 -1
- package/dist/cjs/product/components/product-list-v3/ProductListGridLayout.liquid.js +16 -14
- package/dist/cjs/product/components/product-price/hooks/useGpPrice.js +1 -1
- package/dist/cjs/product/components/product-wrap/Product.js +1 -1
- package/dist/cjs/product/components/product-wrap/hook/useProductSetting.js +1 -1
- package/dist/cjs/product/helpers/product-bundle.js +1 -1
- package/dist/cjs/product/helpers/productImagesDrag.js +1 -0
- package/dist/cjs/product/index.js +1 -1
- package/dist/cjs/product/settings/product-image-v2/configs/setting-v2/ProductFeatureImage.js +2 -2
- package/dist/cjs/product/settings/product-image-v2/configs/setting-v2/ProductGalleryImage.js +2 -2
- package/dist/cjs/product/settings/product-image-v2/configs/setting-v2/index.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/configs/setting-v2/ProductFeatureImage.js +2 -2
- package/dist/cjs/product/settings/product-image-v3/configs/setting-v2/ProductGalleryImage.js +2 -2
- package/dist/cjs/product/settings/product-image-v3/configs/setting-v2/index.js +1 -1
- package/dist/cjs/product/settings/product-image-v3/configs/ui-v2.js +1 -1
- package/dist/cjs/stock-counter/common/attrs.js +1 -1
- package/dist/cjs/stock-counter/common/helpers.js +23 -23
- package/dist/cjs/stock-counter/hooks/useStockCounter.js +1 -1
- package/dist/cjs/third-party/common/helpers.js +4 -4
- package/dist/cjs/third-party/components/KlarnaMessaging.liquid.js +29 -4
- package/dist/cjs/third-party/settings/AftershipEmailMarketingsms/index.js +1 -1
- package/dist/cjs/third-party/settings/AirProductReviewsAppUgc/index.js +2 -2
- package/dist/cjs/third-party/settings/AliReviews/index.js +1 -1
- package/dist/cjs/third-party/settings/AlsoBoughtCbb/index.js +1 -1
- package/dist/cjs/third-party/settings/AovBundlesVolumeDiscounts/index.js +2 -2
- package/dist/cjs/third-party/settings/AovFreeGiftBuyXGetYBogo/index.js +2 -2
- package/dist/cjs/third-party/settings/AppointmentBookingCowlendar/index.js +2 -2
- package/dist/cjs/third-party/settings/AppstleBundlesDiscounts/index.js +2 -2
- package/dist/cjs/third-party/settings/AppstleLoyaltyRewardProgram/index.js +1 -1
- package/dist/cjs/third-party/settings/AppstleSubscriptions/index.js +1 -1
- package/dist/cjs/third-party/settings/BestBuyFulfillment/index.js +1 -1
- package/dist/cjs/third-party/settings/BfSizeChartSizeGuide/index.js +1 -1
- package/dist/cjs/third-party/settings/BirdChime/index.js +4 -4
- package/dist/cjs/third-party/settings/BloyRewardsProgramLoyalty/index.js +1 -1
- package/dist/cjs/third-party/settings/Bogos/index.js +1 -1
- package/dist/cjs/third-party/settings/BoldProductOptions/index.js +4 -4
- package/dist/cjs/third-party/settings/BoldSubscriptions/index.js +1 -1
- package/dist/cjs/third-party/settings/BonLoyaltyRewardsReferrals/index.js +1 -1
- package/dist/cjs/third-party/settings/BonySubscriptionsApp/index.js +2 -2
- package/dist/cjs/third-party/settings/BoostAISearchDiscovery/index.js +1 -1
- package/dist/cjs/third-party/settings/Bundler/index.js +1 -1
- package/dist/cjs/third-party/settings/CleanSizeCharts/index.js +1 -1
- package/dist/cjs/third-party/settings/CrossSellCartUpsell/index.js +1 -1
- package/dist/cjs/third-party/settings/CustomProductOptionsVariant/index.js +2 -2
- package/dist/cjs/third-party/settings/DealeasyVolumeDiscounts/index.js +2 -2
- package/dist/cjs/third-party/settings/DiscountyBulkDiscountSales/index.js +2 -2
- package/dist/cjs/third-party/settings/EasifyProductOptions/index.js +1 -1
- package/dist/cjs/third-party/settings/EasyBundleBuilderSkailama/index.js +2 -2
- package/dist/cjs/third-party/settings/EasySellCOD/index.js +4 -4
- package/dist/cjs/third-party/settings/EcoboostifyShoppableReelUgc/index.js +2 -2
- package/dist/cjs/third-party/settings/EcomsendBackInStockAlert/index.js +1 -1
- package/dist/cjs/third-party/settings/EssentPreorderBackInStock/index.js +2 -2
- package/dist/cjs/third-party/settings/EssentialAnnouncementBar/index.js +1 -1
- package/dist/cjs/third-party/settings/EssentialCountdownTimerBar/index.js +2 -2
- package/dist/cjs/third-party/settings/EstimatedDeliveryDatePlus/index.js +2 -2
- package/dist/cjs/third-party/settings/FastBundleBundlesDiscounts/index.js +2 -2
- package/dist/cjs/third-party/settings/FeraReviews/index.js +1 -1
- package/dist/cjs/third-party/settings/FirePush/index.js +1 -1
- package/dist/cjs/third-party/settings/FlyBundlesUpsellsFbt/index.js +1 -1
- package/dist/cjs/third-party/settings/FordeerProductLabels/index.js +2 -2
- package/dist/cjs/third-party/settings/FrequentlyBoughtTogether/index.js +1 -1
- package/dist/cjs/third-party/settings/GloColorSwatchvariantImage/index.js +1 -1
- package/dist/cjs/third-party/settings/GloboProductOptionsVariant/index.js +1 -1
- package/dist/cjs/third-party/settings/GoogleReviewsByReputon/index.js +1 -1
- package/dist/cjs/third-party/settings/Growave/index.js +1 -1
- package/dist/cjs/third-party/settings/GrowthSuiteDiscountCodes/index.js +2 -2
- package/dist/cjs/third-party/settings/HextomCountdownTimerBar/index.js +2 -2
- package/dist/cjs/third-party/settings/HextomFreeShippingBar/index.js +2 -2
- package/dist/cjs/third-party/settings/HulkFormBuilder/index.js +1 -1
- package/dist/cjs/third-party/settings/HulkProductOptions/index.js +1 -1
- package/dist/cjs/third-party/settings/InfiniteOptions/index.js +1 -1
- package/dist/cjs/third-party/settings/Instafeed/index.js +1 -1
- package/dist/cjs/third-party/settings/InstasellShoppableInstagram/index.js +1 -1
- package/dist/cjs/third-party/settings/JudgemeReviews/index.js +1 -1
- package/dist/cjs/third-party/settings/JunipProductReviewsUgc/index.js +1 -1
- package/dist/cjs/third-party/settings/KachingBundles/index.js +1 -1
- package/dist/cjs/third-party/settings/KachingSubscriptionsApp/index.js +1 -1
- package/dist/cjs/third-party/settings/KingProductOptions/index.js +1 -1
- package/dist/cjs/third-party/settings/KiteFreeGiftDiscount/index.js +2 -2
- package/dist/cjs/third-party/settings/KlarnaMessaging/index.js +2 -2
- package/dist/cjs/third-party/settings/Klaviyo/index.js +4 -4
- package/dist/cjs/third-party/settings/KoalaBundleQuantityDiscount/index.js +1 -1
- package/dist/cjs/third-party/settings/LaiProductReviews/index.js +1 -1
- package/dist/cjs/third-party/settings/LoloyalLoyaltyReferrals/index.js +1 -1
- package/dist/cjs/third-party/settings/LoopSubscriptions/index.js +1 -1
- package/dist/cjs/third-party/settings/LooxReviews/index.js +1 -1
- package/dist/cjs/third-party/settings/MaxbundleProductBundles/index.js +1 -1
- package/dist/cjs/third-party/settings/MbcBundleVolumeDiscount/index.js +1 -1
- package/dist/cjs/third-party/settings/MyappgurusProductReviews/index.js +1 -1
- package/dist/cjs/third-party/settings/NotifyBackInStockPreOrder/index.js +1 -1
- package/dist/cjs/third-party/settings/OkendoReviewsLoyalty/index.js +1 -1
- package/dist/cjs/third-party/settings/Omnisend/index.js +1 -1
- package/dist/cjs/third-party/settings/Opinew/index.js +1 -1
- package/dist/cjs/third-party/settings/ParcelPanel/index.js +1 -1
- package/dist/cjs/third-party/settings/PickyStory/index.js +4 -4
- package/dist/cjs/third-party/settings/PowerfulContactFormBuilder/index.js +1 -1
- package/dist/cjs/third-party/settings/PreorderNowPreOrderPq/index.js +2 -2
- package/dist/cjs/third-party/settings/PreorderNowWodPresale/index.js +1 -1
- package/dist/cjs/third-party/settings/ProductOptionsCustomizer/index.js +2 -2
- package/dist/cjs/third-party/settings/ProductOptionsVariantOption/index.js +2 -2
- package/dist/cjs/third-party/settings/PumperBundlesVolumeDiscount/index.js +2 -2
- package/dist/cjs/third-party/settings/PushOwl/index.js +1 -1
- package/dist/cjs/third-party/settings/QikifyUpsell/index.js +2 -2
- package/dist/cjs/third-party/settings/RapiBundleQuantityBreaks/index.js +2 -2
- package/dist/cjs/third-party/settings/RechargeSubscriptions/index.js +1 -1
- package/dist/cjs/third-party/settings/RecurpaySubscriptionApp/index.js +1 -1
- package/dist/cjs/third-party/settings/Releasit/index.js +1 -1
- package/dist/cjs/third-party/settings/RequestQuoteHidePrice/index.js +1 -1
- package/dist/cjs/third-party/settings/ReviewxpoProductReviewsApp/index.js +1 -1
- package/dist/cjs/third-party/settings/Rivyo/index.js +1 -1
- package/dist/cjs/third-party/settings/Ryviu/index.js +1 -1
- package/dist/cjs/third-party/settings/SealSubscriptions/index.js +2 -2
- package/dist/cjs/third-party/settings/SegunoEmailMarketing/index.js +1 -1
- package/dist/cjs/third-party/settings/Selleasy/index.js +1 -1
- package/dist/cjs/third-party/settings/SeoantTrustBadgesIcon/index.js +2 -2
- package/dist/cjs/third-party/settings/ShopifyForms/index.js +1 -1
- package/dist/cjs/third-party/settings/ShopifySubscriptions/index.js +2 -2
- package/dist/cjs/third-party/settings/SimpleBundlesKits/index.js +1 -1
- package/dist/cjs/third-party/settings/SkioSubscriptionsYcS20/index.js +1 -1
- package/dist/cjs/third-party/settings/SmartSearchBarAndFilters/index.js +4 -4
- package/dist/cjs/third-party/settings/SproutPlantTreesGrowSales/index.js +1 -1
- package/dist/cjs/third-party/settings/Stamped.js +1 -1
- package/dist/cjs/third-party/settings/StellarDeliveryDatePickup/index.js +1 -1
- package/dist/cjs/third-party/settings/SubifySubscriptionsApp/index.js +2 -2
- package/dist/cjs/third-party/settings/TagembedSocialPostReview/index.js +2 -2
- package/dist/cjs/third-party/settings/TagshopShoppableVideosUgc/index.js +2 -2
- package/dist/cjs/third-party/settings/TeeinblueProductPersonalizer/index.js +2 -2
- package/dist/cjs/third-party/settings/TrustBadgesBear/index.js +2 -2
- package/dist/cjs/third-party/settings/TrustMe/index.js +4 -4
- package/dist/cjs/third-party/settings/TrustedsiteTrustBadges/index.js +1 -1
- package/dist/cjs/third-party/settings/Trustoo/index.js +1 -1
- package/dist/cjs/third-party/settings/TrustreviewsProductReviews/index.js +1 -1
- package/dist/cjs/third-party/settings/TrustshopProductReviews/index.js +1 -1
- package/dist/cjs/third-party/settings/UltimateSalesBoost/index.js +1 -1
- package/dist/cjs/third-party/settings/UnlimitedBundlesDiscounts/index.js +2 -2
- package/dist/cjs/third-party/settings/UppromoteAffiliateMarketing/setting.js +2 -2
- package/dist/cjs/third-party/settings/Vitals/index.js +1 -1
- package/dist/cjs/third-party/settings/WcWishlistBackInStock/index.js +1 -1
- package/dist/cjs/third-party/settings/WhatmoreShoppableVideosreel/index.js +1 -1
- package/dist/cjs/third-party/settings/WideBundle/index.js +4 -4
- package/dist/cjs/third-party/settings/Wiser/index.js +1 -1
- package/dist/cjs/third-party/settings/WishlistKing/index.js +2 -2
- package/dist/cjs/third-party/settings/WishlistPlus/index.js +2 -2
- package/dist/cjs/third-party/settings/YotpoReviews/index.js +1 -1
- package/dist/cjs/video/common/attrs.js +1 -1
- package/dist/cjs/video/components/HTML5Embed.js +1 -1
- package/dist/cjs/video/components/HTML5Embed.liquid.js +11 -11
- 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 +11 -11
- package/dist/cjs/video/components/Video.liquid.js +1 -1
- package/dist/esm/article/components/ArticleImage.js +1 -1
- package/dist/esm/article/components/ArticleImage.liquid.js +7 -7
- package/dist/esm/article/components/ArticleList.js +1 -1
- package/dist/esm/article/index.js +1 -1
- package/dist/esm/article/settings/configs/article-image/settings.js +1 -1
- package/dist/esm/article/settings/configs/article-image/ui-v2.js +1 -1
- package/dist/esm/builder.js +1 -1
- package/dist/esm/button/common/helpers.js +2 -2
- package/dist/esm/cart/components/CartList.js +1 -1
- package/dist/esm/cart/index.js +1 -1
- package/dist/esm/collection/index.js +1 -1
- package/dist/esm/common/components/Loading.js +1 -1
- package/dist/esm/common/const.js +1 -1
- package/dist/esm/common/helpers.js +1 -0
- package/dist/esm/common/hooks/useElementWidth.js +1 -0
- package/dist/esm/common/hooks/useLoadingProgress.js +1 -0
- package/dist/esm/grid/components/row/Row.liquid.js +10 -10
- package/dist/esm/grid/components/section/Section.js +1 -1
- package/dist/esm/grid/index.js +1 -1
- package/dist/esm/header/components/kind/basic/index.js +1 -1
- package/dist/esm/header/components/kind/modern/index.js +1 -1
- package/dist/esm/header/index.js +1 -1
- package/dist/esm/hero-banner/common/styles.js +1 -1
- package/dist/esm/hero-banner/components/HeroBannerItem.js +1 -1
- package/dist/esm/hero-banner/components/HeroBannerItem.liquid.js +10 -10
- package/dist/esm/hero-banner/index.js +1 -1
- package/dist/esm/image/common/adaptiveSources.js +1 -0
- package/dist/esm/image/common/attrs.js +1 -1
- package/dist/esm/image/common/classes.js +1 -1
- package/dist/esm/image/common/helpers.js +2 -2
- package/dist/esm/image/common/liquidSrcset.js +1 -0
- package/dist/esm/image/common/listContext.js +1 -0
- package/dist/esm/image/common/listImageContext.js +1 -0
- package/dist/esm/image/common/sizes.js +1 -0
- package/dist/esm/image/common/srcset.js +1 -0
- package/dist/esm/image/components/AdaptiveImage.js +1 -1
- package/dist/esm/image/components/AdaptiveImage.liquid.js +11 -13
- package/dist/esm/image/components/Image.js +1 -1
- package/dist/esm/image/components/Image.liquid.js +3 -3
- package/dist/esm/image/components/NextImage.js +1 -1
- package/dist/esm/image/components/NextImage.liquid.js +5 -6
- package/dist/esm/image/constants.js +1 -1
- package/dist/esm/image/index.js +1 -1
- package/dist/esm/image/settings/configs/settings.js +1 -1
- package/dist/esm/image/settings/configs/ui-v2.js +1 -1
- package/dist/esm/image-comparison/common/attrs.js +1 -1
- package/dist/esm/image-comparison/components/CompareImage.js +1 -1
- package/dist/esm/image-comparison/components/CompareImage.liquid.js +17 -17
- package/dist/esm/image-comparison/components/ImageComparison.liquid.js +3 -3
- 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/ui-v2.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/post-purchase/callout-banner/index.js +1 -1
- package/dist/esm/post-purchase/product/components/ProductPrice.js +1 -1
- package/dist/esm/post-purchase/product/components/ProductQuantity.js +1 -1
- package/dist/esm/post-purchase/product/components/product-offer/components/ProductOffer.js +1 -1
- package/dist/esm/post-purchase/product/components/product-offer/helpers/getOfferErrorText.js +1 -0
- package/dist/esm/post-purchase/product/components/product-offer/hooks/useProductOfferData.js +1 -1
- package/dist/esm/post-purchase/product/hooks/useHandleQuantity.js +1 -1
- package/dist/esm/post-purchase/product/index.js +1 -1
- package/dist/esm/post-purchase/product/settings/product-quantity/configs/settings.js +1 -1
- package/dist/esm/post-purchase/product/settings/product-quantity/configs/ui-v2.js +1 -1
- package/dist/esm/product/components/product-badge/ProductBadge.js +1 -1
- package/dist/esm/product/components/product-badge/common/styles.js +1 -1
- package/dist/esm/product/components/product-bundle/ProductBundleDiscount.js +1 -1
- package/dist/esm/product/components/product-bundle/ProductBundleDiscountWarning.js +2 -0
- package/dist/esm/product/components/product-bundle/common/classes.js +1 -1
- package/dist/esm/product/components/product-bundle/hooks/useProductBundleDataState.js +3 -3
- package/dist/esm/product/components/product-discount-tag/ProductDiscountTag.js +1 -1
- package/dist/esm/product/components/product-discount-tag/common/helpers.js +1 -0
- package/dist/esm/product/components/product-images/ProductImagesLightBox.js +1 -1
- package/dist/esm/product/components/product-images-v2/common/attrs.js +1 -1
- package/dist/esm/product/components/product-images-v2/common/common.js +1 -1
- package/dist/esm/product/components/product-images-v2/components/child/ProductFeaturedImageOnly.js +1 -1
- package/dist/esm/product/components/product-images-v2/components/child/ProductGalleryGrid.js +1 -1
- package/dist/esm/product/components/product-images-v2/components/feature-gallery/FeatureImageWithGallery.liquid.js +35 -35
- package/dist/esm/product/components/product-images-v2/components/gallery-carousel/GalleryCarousel.js +1 -1
- package/dist/esm/product/components/product-images-v2/components/gallery-carousel/GalleryCarousel.liquid.js +13 -13
- package/dist/esm/product/components/product-images-v2/components/gallery-grid/GalleryGrid.liquid.js +29 -29
- package/dist/esm/product/components/product-images-v2/components/lightbox/ProductImagesLightBox.js +1 -1
- package/dist/esm/product/components/product-images-v3/ProductImagesV3.liquid.js +3 -3
- package/dist/esm/product/components/product-images-v3/common/attrs.js +1 -1
- package/dist/esm/product/components/product-images-v3/common/common.js +1 -1
- package/dist/esm/product/components/product-images-v3/components/child/ProductFeaturedImageOnly.js +1 -1
- package/dist/esm/product/components/product-images-v3/components/child/ProductGalleryGrid.js +1 -1
- package/dist/esm/product/components/product-images-v3/components/feature-gallery/FeatureImageWithGallery.liquid.js +24 -24
- package/dist/esm/product/components/product-images-v3/components/feature-gallery/FeatureImageWithGalleryEmbla.liquid.js +24 -24
- package/dist/esm/product/components/product-images-v3/components/gallery-carousel/GalleryCarousel.js +1 -1
- package/dist/esm/product/components/product-images-v3/components/gallery-carousel/GalleryCarousel.liquid.js +5 -5
- package/dist/esm/product/components/product-images-v3/components/gallery-carousel/GalleryCarouselEmbla.liquid.js +5 -5
- package/dist/esm/product/components/product-images-v3/components/gallery-grid/GalleryGrid.liquid.js +30 -30
- package/dist/esm/product/components/product-images-v3/components/lightbox/ProductImagesLightBox.js +1 -1
- package/dist/esm/product/components/product-list/ProductList.js +1 -1
- package/dist/esm/product/components/product-list/ProductListCarouselLayout.js +1 -1
- package/dist/esm/product/components/product-list/ProductListCarouselLayout.liquid.js +11 -9
- package/dist/esm/product/components/product-list/ProductListGridLayout.js +1 -1
- package/dist/esm/product/components/product-list/ProductListGridLayout.liquid.js +18 -16
- package/dist/esm/product/components/product-list/common/helpers.js +1 -1
- package/dist/esm/product/components/product-list/common/imagePriority.js +17 -0
- package/dist/esm/product/components/product-list/common/imagePriorityHints.js +1 -0
- package/dist/esm/product/components/product-list-v3/ProductList.js +1 -1
- package/dist/esm/product/components/product-list-v3/ProductListCarouselLayout.js +1 -1
- package/dist/esm/product/components/product-list-v3/ProductListCarouselLayout.liquid.js +12 -10
- package/dist/esm/product/components/product-list-v3/ProductListGridLayout.js +1 -1
- package/dist/esm/product/components/product-list-v3/ProductListGridLayout.liquid.js +18 -16
- package/dist/esm/product/components/product-price/hooks/useGpPrice.js +1 -1
- package/dist/esm/product/components/product-wrap/Product.js +1 -1
- package/dist/esm/product/components/product-wrap/hook/useProductSetting.js +1 -1
- package/dist/esm/product/helpers/product-bundle.js +1 -1
- package/dist/esm/product/helpers/productImagesDrag.js +1 -0
- package/dist/esm/product/index.js +1 -1
- package/dist/esm/product/settings/product-image-v2/configs/setting-v2/ProductFeatureImage.js +2 -2
- package/dist/esm/product/settings/product-image-v2/configs/setting-v2/ProductGalleryImage.js +2 -2
- package/dist/esm/product/settings/product-image-v2/configs/setting-v2/index.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/configs/setting-v2/ProductFeatureImage.js +2 -2
- package/dist/esm/product/settings/product-image-v3/configs/setting-v2/ProductGalleryImage.js +2 -2
- package/dist/esm/product/settings/product-image-v3/configs/setting-v2/index.js +1 -1
- package/dist/esm/product/settings/product-image-v3/configs/ui-v2.js +1 -1
- package/dist/esm/stock-counter/common/attrs.js +1 -1
- package/dist/esm/stock-counter/common/helpers.js +21 -21
- package/dist/esm/stock-counter/components/StockCounter.liquid.js +1 -1
- package/dist/esm/stock-counter/hooks/useStockCounter.js +1 -1
- package/dist/esm/third-party/common/helpers.js +5 -5
- package/dist/esm/third-party/components/KlarnaMessaging.liquid.js +30 -5
- package/dist/esm/third-party/settings/AftershipEmailMarketingsms/index.js +2 -2
- package/dist/esm/third-party/settings/AirProductReviewsAppUgc/index.js +2 -2
- package/dist/esm/third-party/settings/AliReviews/index.js +2 -2
- package/dist/esm/third-party/settings/AlsoBoughtCbb/index.js +2 -2
- package/dist/esm/third-party/settings/AovBundlesVolumeDiscounts/index.js +2 -2
- package/dist/esm/third-party/settings/AovFreeGiftBuyXGetYBogo/index.js +2 -2
- package/dist/esm/third-party/settings/AppointmentBookingCowlendar/index.js +2 -2
- package/dist/esm/third-party/settings/AppstleBundlesDiscounts/index.js +2 -2
- package/dist/esm/third-party/settings/AppstleLoyaltyRewardProgram/index.js +2 -2
- package/dist/esm/third-party/settings/AppstleSubscriptions/index.js +2 -2
- package/dist/esm/third-party/settings/BestBuyFulfillment/index.js +2 -2
- package/dist/esm/third-party/settings/BfSizeChartSizeGuide/index.js +2 -2
- package/dist/esm/third-party/settings/BirdChime/index.js +4 -4
- package/dist/esm/third-party/settings/BloyRewardsProgramLoyalty/index.js +2 -2
- package/dist/esm/third-party/settings/Bogos/index.js +4 -4
- package/dist/esm/third-party/settings/BoldProductOptions/index.js +4 -4
- package/dist/esm/third-party/settings/BoldSubscriptions/index.js +2 -2
- package/dist/esm/third-party/settings/BonLoyaltyRewardsReferrals/index.js +2 -2
- package/dist/esm/third-party/settings/BonySubscriptionsApp/index.js +2 -2
- package/dist/esm/third-party/settings/BoostAISearchDiscovery/index.js +2 -2
- package/dist/esm/third-party/settings/Bundler/index.js +4 -4
- package/dist/esm/third-party/settings/CleanSizeCharts/index.js +2 -2
- package/dist/esm/third-party/settings/CrossSellCartUpsell/index.js +2 -2
- package/dist/esm/third-party/settings/CustomProductOptionsVariant/index.js +2 -2
- package/dist/esm/third-party/settings/DealeasyVolumeDiscounts/index.js +2 -2
- package/dist/esm/third-party/settings/DiscountyBulkDiscountSales/index.js +2 -2
- package/dist/esm/third-party/settings/EasifyProductOptions/index.js +2 -2
- package/dist/esm/third-party/settings/EasyBundleBuilderSkailama/index.js +2 -2
- package/dist/esm/third-party/settings/EasySellCOD/index.js +4 -4
- package/dist/esm/third-party/settings/EcoboostifyShoppableReelUgc/index.js +2 -2
- package/dist/esm/third-party/settings/EcomsendBackInStockAlert/index.js +2 -2
- package/dist/esm/third-party/settings/EssentPreorderBackInStock/index.js +2 -2
- package/dist/esm/third-party/settings/EssentialAnnouncementBar/index.js +2 -2
- package/dist/esm/third-party/settings/EssentialCountdownTimerBar/index.js +2 -2
- package/dist/esm/third-party/settings/EstimatedDeliveryDatePlus/index.js +2 -2
- package/dist/esm/third-party/settings/FastBundleBundlesDiscounts/index.js +2 -2
- package/dist/esm/third-party/settings/FeraReviews/index.js +4 -4
- package/dist/esm/third-party/settings/FirePush/index.js +2 -2
- package/dist/esm/third-party/settings/FlyBundlesUpsellsFbt/index.js +2 -2
- package/dist/esm/third-party/settings/FordeerProductLabels/index.js +2 -2
- package/dist/esm/third-party/settings/FrequentlyBoughtTogether/index.js +2 -2
- package/dist/esm/third-party/settings/GloColorSwatchvariantImage/index.js +2 -2
- package/dist/esm/third-party/settings/GloboProductOptionsVariant/index.js +2 -2
- package/dist/esm/third-party/settings/GoogleReviewsByReputon/index.js +2 -2
- package/dist/esm/third-party/settings/Growave/index.js +4 -4
- package/dist/esm/third-party/settings/GrowthSuiteDiscountCodes/index.js +2 -2
- package/dist/esm/third-party/settings/HextomCountdownTimerBar/index.js +2 -2
- package/dist/esm/third-party/settings/HextomFreeShippingBar/index.js +2 -2
- package/dist/esm/third-party/settings/HulkFormBuilder/index.js +2 -2
- package/dist/esm/third-party/settings/HulkProductOptions/index.js +2 -2
- package/dist/esm/third-party/settings/InfiniteOptions/index.js +2 -2
- package/dist/esm/third-party/settings/Instafeed/index.js +2 -2
- package/dist/esm/third-party/settings/InstasellShoppableInstagram/index.js +2 -2
- package/dist/esm/third-party/settings/JudgemeReviews/index.js +2 -2
- package/dist/esm/third-party/settings/JunipProductReviewsUgc/index.js +2 -2
- package/dist/esm/third-party/settings/KachingBundles/index.js +2 -2
- package/dist/esm/third-party/settings/KachingSubscriptionsApp/index.js +2 -2
- package/dist/esm/third-party/settings/KingProductOptions/index.js +2 -2
- package/dist/esm/third-party/settings/KiteFreeGiftDiscount/index.js +2 -2
- package/dist/esm/third-party/settings/KlarnaMessaging/index.js +4 -4
- package/dist/esm/third-party/settings/Klaviyo/index.js +4 -4
- package/dist/esm/third-party/settings/KoalaBundleQuantityDiscount/index.js +2 -2
- package/dist/esm/third-party/settings/LaiProductReviews/index.js +2 -2
- package/dist/esm/third-party/settings/LoloyalLoyaltyReferrals/index.js +2 -2
- package/dist/esm/third-party/settings/LoopSubscriptions/index.js +2 -2
- package/dist/esm/third-party/settings/LooxReviews/index.js +4 -4
- package/dist/esm/third-party/settings/MaxbundleProductBundles/index.js +2 -2
- package/dist/esm/third-party/settings/MbcBundleVolumeDiscount/index.js +2 -2
- package/dist/esm/third-party/settings/MyappgurusProductReviews/index.js +2 -2
- package/dist/esm/third-party/settings/NotifyBackInStockPreOrder/index.js +2 -2
- package/dist/esm/third-party/settings/OkendoReviewsLoyalty/index.js +2 -2
- package/dist/esm/third-party/settings/Omnisend/index.js +4 -4
- package/dist/esm/third-party/settings/Opinew/index.js +4 -4
- package/dist/esm/third-party/settings/ParcelPanel/index.js +4 -4
- package/dist/esm/third-party/settings/PickyStory/index.js +4 -4
- package/dist/esm/third-party/settings/PowerfulContactFormBuilder/index.js +2 -2
- package/dist/esm/third-party/settings/PreorderNowPreOrderPq/index.js +2 -2
- package/dist/esm/third-party/settings/PreorderNowWodPresale/index.js +2 -2
- package/dist/esm/third-party/settings/ProductOptionsCustomizer/index.js +2 -2
- package/dist/esm/third-party/settings/ProductOptionsVariantOption/index.js +2 -2
- package/dist/esm/third-party/settings/PumperBundlesVolumeDiscount/index.js +2 -2
- package/dist/esm/third-party/settings/PushOwl/index.js +4 -4
- package/dist/esm/third-party/settings/QikifyUpsell/index.js +2 -2
- package/dist/esm/third-party/settings/RapiBundleQuantityBreaks/index.js +2 -2
- package/dist/esm/third-party/settings/RechargeSubscriptions/index.js +2 -2
- package/dist/esm/third-party/settings/RecurpaySubscriptionApp/index.js +2 -2
- package/dist/esm/third-party/settings/Releasit/index.js +4 -4
- package/dist/esm/third-party/settings/RequestQuoteHidePrice/index.js +3 -3
- package/dist/esm/third-party/settings/ReviewxpoProductReviewsApp/index.js +2 -2
- package/dist/esm/third-party/settings/Rivyo/index.js +4 -4
- package/dist/esm/third-party/settings/Ryviu/index.js +4 -4
- package/dist/esm/third-party/settings/SealSubscriptions/index.js +2 -2
- package/dist/esm/third-party/settings/SegunoEmailMarketing/index.js +2 -2
- package/dist/esm/third-party/settings/Selleasy/index.js +2 -2
- package/dist/esm/third-party/settings/SeoantTrustBadgesIcon/index.js +2 -2
- package/dist/esm/third-party/settings/ShopifyForms/index.js +2 -2
- package/dist/esm/third-party/settings/ShopifySubscriptions/index.js +2 -2
- package/dist/esm/third-party/settings/SimpleBundlesKits/index.js +2 -2
- package/dist/esm/third-party/settings/SkioSubscriptionsYcS20/index.js +2 -2
- package/dist/esm/third-party/settings/SmartSearchBarAndFilters/index.js +4 -4
- package/dist/esm/third-party/settings/SproutPlantTreesGrowSales/index.js +2 -2
- package/dist/esm/third-party/settings/Stamped.js +4 -4
- package/dist/esm/third-party/settings/StellarDeliveryDatePickup/index.js +2 -2
- package/dist/esm/third-party/settings/SubifySubscriptionsApp/index.js +2 -2
- package/dist/esm/third-party/settings/TagembedSocialPostReview/index.js +2 -2
- package/dist/esm/third-party/settings/TagshopShoppableVideosUgc/index.js +2 -2
- package/dist/esm/third-party/settings/TeeinblueProductPersonalizer/index.js +2 -2
- package/dist/esm/third-party/settings/TrustBadgesBear/index.js +2 -2
- package/dist/esm/third-party/settings/TrustMe/index.js +4 -4
- package/dist/esm/third-party/settings/TrustedsiteTrustBadges/index.js +2 -2
- package/dist/esm/third-party/settings/Trustoo/index.js +2 -2
- package/dist/esm/third-party/settings/TrustreviewsProductReviews/index.js +2 -2
- package/dist/esm/third-party/settings/TrustshopProductReviews/index.js +2 -2
- package/dist/esm/third-party/settings/UltimateSalesBoost/index.js +2 -2
- package/dist/esm/third-party/settings/UnlimitedBundlesDiscounts/index.js +2 -2
- package/dist/esm/third-party/settings/UppromoteAffiliateMarketing/setting.js +2 -2
- package/dist/esm/third-party/settings/Vitals/index.js +4 -4
- package/dist/esm/third-party/settings/WcWishlistBackInStock/index.js +3 -3
- package/dist/esm/third-party/settings/WhatmoreShoppableVideosreel/index.js +2 -2
- package/dist/esm/third-party/settings/WideBundle/index.js +4 -4
- package/dist/esm/third-party/settings/Wiser/index.js +4 -4
- package/dist/esm/third-party/settings/WishlistKing/index.js +2 -2
- package/dist/esm/third-party/settings/WishlistPlus/index.js +2 -2
- package/dist/esm/third-party/settings/YotpoReviews/index.js +4 -4
- package/dist/esm/video/common/attrs.js +1 -1
- package/dist/esm/video/components/HTML5Embed.js +1 -1
- package/dist/esm/video/components/HTML5Embed.liquid.js +8 -8
- 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 +9 -9
- package/dist/esm/video/components/Video.liquid.js +1 -1
- package/dist/types/index.d.ts +26 -8
- package/package.json +11 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ImageListNavigation as i}from"./ui/ImageListNavigation.js";import{FeatureNavigation as o}from"./ui/FeatureNavigation.js";import{FeatureDots as t}from"./ui/FeatureDots.js";let e='((type == "slider" || position == "left" || position == "right") && position !== "one-col" && position != "two-col")',n='(["bottom-center", "left", "right", "only-feature", "inside-bottom", "inside-left", "inside-right"].includes(position))',l=[{label:"Layout",controls:[{layout:"vertical",setting:{id:"position"},options:{isComboLayout:!0},controls:[{label:"Ratio",type:"control",setting:{id:"ratioLayout"},layout:"vertical",conditionDisplay:'position == "left"'},{label:"Ratio",type:"control",setting:{id:"ratioLayoutRight"},layout:"vertical",conditionDisplay:'position == "right"'}]}]},{label:"Featured image",conditionDisplay:n,controls:[{setting:{id:"ftShape"},hiddenOnMobile:!0,layout:"vertical",controlChangeTrigger:{settings:[{condition:"ftShape.shape === 'original'",source:["ftShape"],action:{controlId:"ftLayout",newValue:"contain",groupType:"style",controlType:"style"}}],options:{noRecordHistory:!0}}},{conditionDisplay:"ftShape.shape !== 'original'",label:"Image scale",setting:{id:"ftLayout"}},{...t,hiddenOnMobile:!0,conditionDisplay:`${n} && position === "only-feature"`},{...o,hiddenOnMobile:!0,conditionDisplay:`${n}`}],moreSettings:{type:"collapse",controls:[{label:"Corner",hiddenOnMobile:!0,setting:{id:"ftCorner"}},{type:"combo",label:"Hover action",conditionDisplay:n,hiddenOnMobile:!0,iconName:"gp-trigger-action-hover",getValueFromSettingID:"hoverEffect",isShowSettingTitle:!0,defaultValueWhenClear:"none",compoDefaultValue:"zoom",controls:[{label:"When hover",setting:{id:"hoverEffect"}},{label:"Zoom type",conditionDisplay:'hoverEffect == "zoom"',setting:{id:"zoomType"}},{label:"Zoom value",conditionDisplay:'hoverEffect == "zoom"',setting:{id:"zoom"}},{label:"Other image",conditionDisplay:'hoverEffect == "other"',setting:{id:"otherImage"}}]},{type:"combo",label:"Click action",hiddenOnMobile:!0,iconName:"gp-trigger-action-click",conditionDisplay:n,getValueFromSettingID:"ftClickOpenLightBox",isShowSettingTitle:!0,defaultValueWhenClear:"none",compoDefaultValue:"popup",controls:[{label:"After click",setting:{id:"ftClickOpenLightBox"}},{label:"Open new tab",setting:{id:"ftClickOpenNewTab"},conditionDisplay:'ftClickOpenLightBox === "product-link"'}]},{type:"control",label:"Slide speed",setting:{id:"ftAnimationSpeed"}},{type:"control",label:"Animation",setting:{id:"ftAnimationMode"}},{label:"Drag / swipe",setting:{id:"ftDragToScroll"}},{label:"Infinity loop",setting:{id:"ftLoop"}}]}},{label:"Image list",conditionDisplay:'(position !== "only-feature")',controls:[{label:"Display",hiddenOnMobile:!0,conditionDisplay:'position === "bottom-center" || position === "bottom-left" || position === "inside-bottom"',setting:{id:"type"}},{setting:{id:"shape"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'["left", "right"].includes(position)'},{setting:{id:"shapeForBottom"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'["bottom-left", "bottom-center"].includes(position)'},{setting:{id:"shapeForInsideBottom"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'["inside-bottom"].includes(position)'},{setting:{id:"shapeForInside"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'["inside-left", "inside-right"].includes(position)'},{setting:{id:"shapeForFtOnly"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'position == "only-feature"'},{setting:{id:"shapeFor2Col"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'position == "two-col"'},{setting:{id:"shapeFor1Col"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'position == "one-col"'},{label:"Image gap",setting:{id:"itemSpacing"}},{conditionDisplay:"(position == 'one-col' && shapeFor1Col.shape !== 'original') || (position == 'two-col' && shapeFor2Col.shape !== 'original') || (position == 'only-feature' && shapeForFtOnly.shape !== 'original') || ([\"inside-left\", \"inside-right\"].includes(position) && shapeForInside.shape !== 'original') || ([\"inside-bottom\"].includes(position) && shapeForInsideBottom.shape !== 'original') || ([\"bottom-left\", \"bottom-center\"].includes(position) && shapeForBottom.shape !== 'original') || ([\"left\", \"right\"].includes(position) && shape.shape !== 'original')",label:"Image scale",setting:{id:"layout"}},{...i,hiddenOnMobile:!0,conditionDisplay:e}],moreSettings:{type:"collapse",controls:[{label:"Corner",hiddenOnMobile:!0,setting:{id:"corner"}},{label:"Active border",hiddenOnMobile:!0,conditionDisplay:'!["one-col", "two-col"].includes(position)',setting:{id:"borderActive"}},{type:"combo",label:"Hover action",conditionDisplay:'(position == "one-col" || position == "two-col")',hiddenOnMobile:!0,iconName:"gp-trigger-action-hover",getValueFromSettingID:"galleryHoverEffect",defaultValueWhenClear:"none",compoDefaultValue:"zoom",controls:[{label:"When hover",setting:{id:"galleryHoverEffect"},conditionDisplay:'galleryHoverEffect == "none"'},{label:"Zoom type",conditionDisplay:'galleryHoverEffect == "zoom"',setting:{id:"galleryZoomType"}},{label:"Zoom value",conditionDisplay:'galleryHoverEffect == "zoom"',setting:{id:"galleryZoom"}},{label:"Other image",conditionDisplay:'galleryHoverEffect == "other"',setting:{id:"otherImage"}}]},{label:"Click action",setting:{id:"clickOpenLightBox"}},{conditionDisplay:e,label:"Drag / swipe",setting:{id:"dragToScroll"}},{conditionDisplay:e,label:"Infinity loop",setting:{id:"loop"}}]}},{label:"Item spacing",hiddenOnMobile:!0,conditionDisplay:'["bottom-center", "left", "right", "inside-bottom", "inside-left", "inside-right"].includes(position)',controls:[{label:"Gap",setting:{id:"spacing"}}]},{label:"Display condition",conditionDisplay:'["bottom-center", "left", "right", "only-feature", "inside-bottom", "inside-left", "inside-right"].includes(position)',controls:[{label:"Default item",setting:{id:"preDisplay"}}]},{label:"Optimize LCP",conditionDisplay:'pageType !== "STATIC"',controls:[{label:"Preload",
|
|
1
|
+
import{ImageListNavigation as i}from"./ui/ImageListNavigation.js";import{FeatureNavigation as o}from"./ui/FeatureNavigation.js";import{FeatureDots as t}from"./ui/FeatureDots.js";let e='((type == "slider" || position == "left" || position == "right") && position !== "one-col" && position != "two-col")',n='(["bottom-center", "left", "right", "only-feature", "inside-bottom", "inside-left", "inside-right"].includes(position))',l=[{label:"Layout",controls:[{layout:"vertical",setting:{id:"position"},options:{isComboLayout:!0},controls:[{label:"Ratio",type:"control",setting:{id:"ratioLayout"},layout:"vertical",conditionDisplay:'position == "left"'},{label:"Ratio",type:"control",setting:{id:"ratioLayoutRight"},layout:"vertical",conditionDisplay:'position == "right"'}]}]},{label:"Featured image",conditionDisplay:n,controls:[{setting:{id:"ftShape"},hiddenOnMobile:!0,layout:"vertical",controlChangeTrigger:{settings:[{condition:"ftShape.shape === 'original'",source:["ftShape"],action:{controlId:"ftLayout",newValue:"contain",groupType:"style",controlType:"style"}}],options:{noRecordHistory:!0}}},{conditionDisplay:"ftShape.shape !== 'original'",label:"Image scale",setting:{id:"ftLayout"}},{...t,hiddenOnMobile:!0,conditionDisplay:`${n} && position === "only-feature"`},{...o,hiddenOnMobile:!0,conditionDisplay:`${n}`}],moreSettings:{type:"collapse",controls:[{label:"Corner",hiddenOnMobile:!0,setting:{id:"ftCorner"}},{type:"combo",label:"Hover action",conditionDisplay:n,hiddenOnMobile:!0,iconName:"gp-trigger-action-hover",getValueFromSettingID:"hoverEffect",isShowSettingTitle:!0,defaultValueWhenClear:"none",compoDefaultValue:"zoom",controls:[{label:"When hover",setting:{id:"hoverEffect"}},{label:"Zoom type",conditionDisplay:'hoverEffect == "zoom"',setting:{id:"zoomType"}},{label:"Zoom value",conditionDisplay:'hoverEffect == "zoom"',setting:{id:"zoom"}},{label:"Other image",conditionDisplay:'hoverEffect == "other"',setting:{id:"otherImage"}}]},{type:"combo",label:"Click action",hiddenOnMobile:!0,iconName:"gp-trigger-action-click",conditionDisplay:n,getValueFromSettingID:"ftClickOpenLightBox",isShowSettingTitle:!0,defaultValueWhenClear:"none",compoDefaultValue:"popup",controls:[{label:"After click",setting:{id:"ftClickOpenLightBox"}},{label:"Open new tab",setting:{id:"ftClickOpenNewTab"},conditionDisplay:'ftClickOpenLightBox === "product-link"'}]},{type:"control",label:"Slide speed",setting:{id:"ftAnimationSpeed"}},{type:"control",label:"Animation",setting:{id:"ftAnimationMode"}},{label:"Drag / swipe",setting:{id:"ftDragToScroll"}},{label:"Infinity loop",setting:{id:"ftLoop"}}]}},{label:"Image list",conditionDisplay:'(position !== "only-feature")',controls:[{label:"Display",hiddenOnMobile:!0,conditionDisplay:'position === "bottom-center" || position === "bottom-left" || position === "inside-bottom"',setting:{id:"type"}},{setting:{id:"shape"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'["left", "right"].includes(position)'},{setting:{id:"shapeForBottom"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'["bottom-left", "bottom-center"].includes(position)'},{setting:{id:"shapeForInsideBottom"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'["inside-bottom"].includes(position)'},{setting:{id:"shapeForInside"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'["inside-left", "inside-right"].includes(position)'},{setting:{id:"shapeForFtOnly"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'position == "only-feature"'},{setting:{id:"shapeFor2Col"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'position == "two-col"'},{setting:{id:"shapeFor1Col"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'position == "one-col"'},{label:"Image gap",setting:{id:"itemSpacing"}},{conditionDisplay:"(position == 'one-col' && shapeFor1Col.shape !== 'original') || (position == 'two-col' && shapeFor2Col.shape !== 'original') || (position == 'only-feature' && shapeForFtOnly.shape !== 'original') || ([\"inside-left\", \"inside-right\"].includes(position) && shapeForInside.shape !== 'original') || ([\"inside-bottom\"].includes(position) && shapeForInsideBottom.shape !== 'original') || ([\"bottom-left\", \"bottom-center\"].includes(position) && shapeForBottom.shape !== 'original') || ([\"left\", \"right\"].includes(position) && shape.shape !== 'original')",label:"Image scale",setting:{id:"layout"}},{...i,hiddenOnMobile:!0,conditionDisplay:e}],moreSettings:{type:"collapse",controls:[{label:"Corner",hiddenOnMobile:!0,setting:{id:"corner"}},{label:"Active border",hiddenOnMobile:!0,conditionDisplay:'!["one-col", "two-col"].includes(position)',setting:{id:"borderActive"}},{type:"combo",label:"Hover action",conditionDisplay:'(position == "one-col" || position == "two-col")',hiddenOnMobile:!0,iconName:"gp-trigger-action-hover",getValueFromSettingID:"galleryHoverEffect",defaultValueWhenClear:"none",compoDefaultValue:"zoom",controls:[{label:"When hover",setting:{id:"galleryHoverEffect"},conditionDisplay:'galleryHoverEffect == "none"'},{label:"Zoom type",conditionDisplay:'galleryHoverEffect == "zoom"',setting:{id:"galleryZoomType"}},{label:"Zoom value",conditionDisplay:'galleryHoverEffect == "zoom"',setting:{id:"galleryZoom"}},{label:"Other image",conditionDisplay:'galleryHoverEffect == "other"',setting:{id:"otherImage"}}]},{label:"Click action",setting:{id:"clickOpenLightBox"}},{conditionDisplay:e,label:"Drag / swipe",setting:{id:"dragToScroll"}},{conditionDisplay:e,label:"Infinity loop",setting:{id:"loop"}}]}},{label:"Item spacing",hiddenOnMobile:!0,conditionDisplay:'["bottom-center", "left", "right", "inside-bottom", "inside-left", "inside-right"].includes(position)',controls:[{label:"Gap",setting:{id:"spacing"}}]},{label:"Display condition",conditionDisplay:'["bottom-center", "left", "right", "only-feature", "inside-bottom", "inside-left", "inside-right"].includes(position)',controls:[{label:"Default item",setting:{id:"preDisplay"}}]},{label:"Optimize LCP",conditionDisplay:'pageType !== "STATIC"',controls:[{label:"Preload",setting:{id:"preload"}},{label:"Quality",setting:{id:"qualityType"}},{layout:"horizontal",label:" ",conditionDisplay:'qualityType == "custom"',setting:{id:"qualityPercent"}}]},{hiddenOnMobile:!0,controls:[{label:"Align",setting:{id:"align"},options:{labelVariant:"primary"}}]}];export{l as SettingUIV2};
|
package/dist/esm/product/settings/product-image-v3/configs/setting-v2/ProductFeatureImage.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{CAROUSEL_ANIMATION as e}from"../../../../../carousel-v3/plugins/animation.js";let
|
|
2
|
-
<path fill="currentColor" strokeLinecap="round" strokeLinejoin="round" fill="currentColor" d="M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z" /></svg>`},{id:"ftArrowIconColor",label:"Icon color",type:"color-picker-v2",default:"text-1"},{id:"ftArrowIconSize",label:"Number per show",type:"input:stepper",min:1,devices:{desktop:{default:16}}},{id:"ftDragToScroll",label:"Drag to scroll",type:"toggle",hide:!0,default
|
|
1
|
+
import{CAROUSEL_ANIMATION as e}from"../../../../../carousel-v3/plugins/animation.js";import{PRODUCT_IMAGES_DRAG_TO_SCROLL_DEFAULT as t}from"../../../../helpers/productImagesDrag.js";let l=e=>({desktop:{default:e}}),a=[{id:"hoverEffect",label:"Hover Effect",type:"select",hide:!0,hideOnMode:{mobileOnly:!0},options:[{title:"Zoom",value:"zoom"},{title:"Show other image",value:"other"}],default:"none"},{id:"zoomType",type:"option:value",label:"Zoom Type",hide:!0,default:"default",hideOnMode:{mobileOnly:!0},options:[{label:"Default",value:"default"},{label:"Glasses",value:"glasses"}]},{id:"zoom",type:"input:slider",label:"Zoom Value",min:100,max:200,step:10,default:150,units:["%"],showDefaultUnit:!0,useOnlyUnitInit:!0,isNumber:!0},{id:"otherImage",label:"Other image",type:"dropdown:input",isNumber:!0,isIndexValue:!0,displayOptions:[{label:"Image 1",value:1},{label:"Image 2",value:2},{label:"Image 3",value:3},{label:"Image 4",value:4},{label:"Last image",value:"Last image"}],default:1},{id:"ftClickOpenLightBox",label:"Click Effect",type:"select",options:[{title:"Open gallery",value:"popup"},{title:"Open product",value:"product-link"}],devices:l("none")},{id:"ftClickOpenNewTab",type:"option:value",options:[{label:"Yes",value:!0},{label:"No",value:!1}],default:!1},{id:"ftNavigationPosition",label:"Navigation",type:"option:illustration",enableTooltip:!0,options:[{label:"No navigation",value:"none",type:"slide-control",hide:!0},{label:"Outside",value:"outside",type:"slide-control",svgName:"gp-slide-control-outside"},{label:"Inside",value:"inside",type:"slide-control",svgName:"gp-slide-control-inside"}],devices:l("none")},{id:"ftLoop",type:"toggle",devices:l(!0)},{id:"ftPauseOnHover",label:"Pause On Hover",type:"toggle",hide:!0,default:!0},{id:"ftAnimationSpeed",label:"Slide speed",type:"input:slider",useOnlyUnitInit:!0,min:100,max:5e3,step:50,units:["ms"],showDefaultUnit:!0,isNumber:!0,default:500},{id:"ftAnimationMode",label:"Animation",type:"select",default:e.EASE_OUT.value,options:[{label:"Ease in",value:e.EASE_IN.value},{label:"Ease out",value:e.EASE_OUT.value},{label:"Ease in out",value:e.EASE_IN_OUT.value}]},{id:"ftArrowIcon",type:"icon",hide:!0,label:"Custom Arrow",info:"Choose from list or paste any SVG icon",default:`<svg height="20" width="20" data-name="caret-right-regular" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" data-id="508418455613473128">
|
|
2
|
+
<path fill="currentColor" strokeLinecap="round" strokeLinejoin="round" fill="currentColor" d="M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z" /></svg>`},{id:"ftArrowIconColor",label:"Icon color",type:"color-picker-v2",default:"text-1"},{id:"ftArrowIconSize",label:"Number per show",type:"input:stepper",min:1,devices:{desktop:{default:16}}},{id:"ftDragToScroll",label:"Drag to scroll",type:"toggle",hide:!0,default:t},{id:"ftArrowNavColor",label:"Nav. color",type:"color-picker-v2",default:"bg-3",compoDefaultValue:"bg-3"},{id:"ftArrowNavSize",type:"size-setting",settingConfig:{width:{name:"Width",units:["px"],displayOptions:["auto"]},height:{name:"Height",units:["px"],displayOptions:["auto"]}},default:{width:"Auto",height:"Auto",padding:{top:"12px",bottom:"12px",left:"12px",right:"12px"},shapeLinked:!0,shape:"square",shapeValue:"1/1"},hiddenSettings:["gap","padding","proportion"]},{id:"ftArrowNavBorder",label:"Nav. border",type:"border",compoDefaultValue:{color:"line-3",borderType:"none",border:"solid",borderWidth:"1px",width:"1px 1px 1px 1px",isCustom:!1}},{id:"ftArrowNavRadius",label:"Nav. corner",type:"radius-preset",default:{btrr:"9999px",bblr:"9999px",bbrr:"9999px",btlr:"9999px",radiusType:"circle"}},{id:"ftArrowNavShadow",type:"shadow-v2"},{id:"ftDotStyle",label:"Dot style",type:"option:illustration",enableTooltip:!0,options:[{label:"None",value:"none",type:"carousel-dot",hide:!0},{label:"Inside",value:"inside",type:"carousel-dot",svgName:"gp-carousel-dot-inside"},{label:"Outside",value:"outside",type:"carousel-dot",svgName:"gp-carousel-dot-outside"}],devices:{desktop:{default:"none"}}},{id:"ftDotSize",label:"Dots size",type:"input:stepper",min:1,devices:{desktop:{default:12}}},{id:"ftDotGapToCarousel",label:"Gap to carousel",type:"input:slider",min:0,max:80,isNumber:!0,ignoreMax:!0,devices:{desktop:{default:16}}},{id:"ftDotColor",label:"Dot color",type:"color-picker-v2",devices:{desktop:{default:"bg-1"}}},{id:"ftDotActiveColor",label:"Dot color active",type:"color-picker-v2",devices:{desktop:{default:"line-3"}}}],i=[{id:"typeDisplay",type:"select",options:[{title:"All images",value:"all-images"},{title:"Select manually",value:"select-manual"}],default:"all-images"},{id:"preDisplay",type:"select",label:"Pre-display",default:"1st-available-variant",options:[{title:"1st available variant",value:"1st-available-variant"},{title:"1st image",value:"1st-images"},{title:"1st video",value:"1st-video"},{title:"1st 3D model",value:"1st-3d-mode"}]}],o=[{id:"ftShape",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"100%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["full"]}},hiddenSettings:["padding","gap"]},{id:"ftLayout",type:"option:illustration",enableTooltip:!0,label:"Image scale",options:[{label:"Fill image",value:"cover",type:"image",svgName:"gp-image-cover"},{label:"Fit image",value:"contain",type:"image",svgName:"gp-image-contain"}],devices:l("cover")},{id:"ftCorner",type:"radius-preset",label:"Corner",default:{btrr:"0px",bblr:"0px",bbrr:"0px",btlr:"0px",radiusType:"none"},state:{hover:!0,normal:!0}}];export{a as productFeatureImageSetting,o as productFeatureImageStyle,i as productSelectDisplaySetting};
|
package/dist/esm/product/settings/product-image-v3/configs/setting-v2/ProductGalleryImage.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
let
|
|
2
|
-
<path fill="currentColor" strokelinecap="round" strokelinejoin="round" d="M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"></path></svg>`},{id:"arrowIconSize",label:"Number per show",type:"input:stepper",min:1,devices:{desktop:{default:16}}},{id:"arrowIconColor",label:"Icon color",type:"color-picker-v2",default:"text-1"},{id:"dragToScroll",label:"Drag to scroll",type:"toggle",hide:!0,default
|
|
1
|
+
import{PRODUCT_IMAGES_DRAG_TO_SCROLL_DEFAULT as e}from"../../../../helpers/productImagesDrag.js";let i=e=>({desktop:{default:e}}),t=[{id:"type",label:"Gallery Type",type:"segment",hide:!0,options:[{label:"Slide",value:"slider"},{label:"All",value:"images"}],devices:i("slider")},{id:"galleryHoverEffect",label:"Hover Effect",type:"select",hide:!0,hideOnMode:{mobileOnly:!0},options:[{title:"None",value:"none"},{title:"Zoom",value:"zoom"}],default:"none"},{id:"galleryZoomType",type:"select",label:"Zoom Type",hide:!0,default:"default",hideOnMode:{mobileOnly:!0},options:[{title:"Default",value:"default"},{title:"Glasses",value:"glasses"}]},{id:"galleryZoom",type:"input:slider",label:"Zoom Value",min:100,max:200,step:10,default:150,units:["%"],useOnlyUnitInit:!0,isNumber:!0},{id:"clickOpenLightBox",label:"Large view in pop-up",type:"select",options:[{label:"View in featured",value:!1},{label:"Open Gallery",value:!0}],devices:i(!1)},{id:"borderActive",label:"Active border",type:"border",default:{borderType:"none",border:"solid",borderWidth:"1px",width:"1px 1px 1px 1px",isCustom:!1,color:"line-3"},compoDefaultValue:{borderType:"none",border:"solid",borderWidth:"1px",width:"1px 1px 1px 1px",isCustom:!1,color:"line-3"}},{id:"navigationPosition",label:"Navigation",type:"option:illustration",enableTooltip:!0,options:[{label:"No navigation",value:"none",type:"slide-control",hide:!0},{label:"Outside",value:"outside",type:"slide-control",svgName:"gp-slide-control-outside"},{label:"Inside",value:"inside",type:"slide-control",svgName:"gp-slide-control-inside"}],devices:i("inside")},{id:"loop",type:"toggle",devices:i(!0)},{id:"pauseOnHover",label:"Pause On Hover",type:"toggle",hide:!0,default:!0},{id:"speed",type:"input:slider",label:"Speed (s)",hide:!0,min:0,max:60,step:1,default:1},{id:"arrowIcon",type:"icon",hide:!0,label:"Custom Arrow",info:"Choose from list or paste any SVG icon",default:`<svg height="20px" width="20px" data-name="caret-right-bold" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" data-id="508817562042106216">
|
|
2
|
+
<path fill="currentColor" strokelinecap="round" strokelinejoin="round" d="M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"></path></svg>`},{id:"arrowIconSize",label:"Number per show",type:"input:stepper",min:1,devices:{desktop:{default:16}}},{id:"arrowIconColor",label:"Icon color",type:"color-picker-v2",default:"text-1"},{id:"dragToScroll",label:"Drag to scroll",type:"toggle",hide:!0,default:e},{id:"arrowNavColor",label:"Nav. color",type:"color-picker-v2",default:"bg-3",compoDefaultValue:"bg-3"},{id:"arrowNavSize",type:"size-setting",settingConfig:{width:{name:"Width",units:["px"],displayOptions:["auto"]},height:{name:"Height",units:["px"],displayOptions:["auto"]}},default:{width:"Auto",height:"Auto",padding:{top:"12px",bottom:"12px",left:"12px",right:"12px"},shapeLinked:!0,shape:"square",shapeValue:"1/1"},hiddenSettings:["gap","padding","proportion"]},{id:"arrowNavBorder",label:"Nav. border",type:"border",default:{borderType:"none",border:"none",borderWidth:"1px",width:"1px 1px 1px 1px",isCustom:!1}},{id:"arrowNavRadius",label:"Nav. corner",type:"radius-preset",default:{btrr:"9999px",bblr:"9999px",bbrr:"9999px",btlr:"9999px",radiusType:"circle"}},{id:"arrowNavShadow",type:"shadow-v2",default:{type:"shadow-1",distance:"4px",blur:"12px",spread:"0px",color:"rgba(0, 0, 0, 0.20)",angle:90,enable:!1}}],l=[{id:"shape",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"100%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["full"]}},hiddenSettings:["padding","gap"]},{id:"shapeForFtOnly",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"100%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["full"]}},hiddenSettings:["padding","gap"]},{id:"shapeForBottom",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"20%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["full","small","medium","large"],sizeConfig:{small:"10%",medium:"20%",large:"25%"}}},hiddenSettings:["padding","gap"]},{id:"shapeForInsideBottom",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"20%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["small","medium","large"],sizeConfig:{small:"10%",medium:"20%",large:"25%"}}},hiddenSettings:["padding","gap"]},{id:"shapeForInside",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"20%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["small","medium","large"],sizeConfig:{small:"10%",medium:"20%",large:"25%"}}},hiddenSettings:["padding","gap"]},{id:"shapeFor2Col",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"50%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["full","small","medium","large"],sizeConfig:{small:"25%",medium:"33%",large:"50%"}}},hiddenSettings:["padding","gap"]},{id:"shapeFor1Col",type:"size-setting",label:"",devices:{desktop:{default:{shape:"square",shapeValue:"1/1",width:"100%",height:void 0,shapeLinked:!0}}},settingConfig:{width:{displayOptions:["full","small","medium","large"],sizeConfig:{small:"25%",medium:"33%",large:"50%"}}},hiddenSettings:["padding","gap"]},{id:"layout",type:"option:illustration",enableTooltip:!0,label:"Image scale",options:[{label:"Fill image",value:"cover",type:"image",svgName:"gp-image-cover"},{label:"Fit image",value:"contain",type:"image",svgName:"gp-image-contain"}],devices:i("cover")},{id:"itemSpacing",label:"Gallery Item Spacing",type:"input:slider",units:["px"],devices:{desktop:{default:"8px"}}},{id:"corner",type:"radius-preset",label:"Corner",default:{btrr:"0px",bblr:"0px",bbrr:"0px",btlr:"0px",radiusType:"none"},state:{hover:!0,normal:!0}}];export{t as productGalleryImageSetting,l as productGalleryImageStyle};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{productSelectDisplaySetting as e,productFeatureImageSetting as t,productFeatureImageStyle as l}from"./ProductFeatureImage.js";import{productGalleryImageSetting as a,productGalleryImageStyle as i}from"./ProductGalleryImage.js";let o=[{id:"setting",controls:[{id:"filterByVariant",type:"select",label:"Filter images by variant",default:"all_images",options:[{label:"All images",value:"all_images"},{label:"Selected variant",value:"selected_variant"}]},{id:"displayByVariant",label:"Option Label",type:"toggle",default:!1},{id:"variantSelect",type:"variant:listing"},{id:"select-display",type:"group",label:"Select images to display",controls:e},{id:"featured-image",type:"group",label:"Featured Image",controls:t},{id:"gallery-images",type:"group",label:"Gallery Images",controls:a},{id:"qualityType",type:"select",label:"Quality",devices:{desktop:{default:"high"}},options:[{title:"Finest",value:"finest"},{title:"High",value:"high"},{title:"Medium",value:"medium"},{title:"Custom",value:"custom",tooltip:"You can choose it for advanced page loading optimization."}]},{id:"preload",type:"toggle",label:"Preload",default:!1},{id:"qualityPercent",type:"input:slider",label:"",units:["%"],min:
|
|
1
|
+
import{productSelectDisplaySetting as e,productFeatureImageSetting as t,productFeatureImageStyle as l}from"./ProductFeatureImage.js";import{productGalleryImageSetting as a,productGalleryImageStyle as i}from"./ProductGalleryImage.js";let o=[{id:"setting",controls:[{id:"filterByVariant",type:"select",label:"Filter images by variant",default:"all_images",options:[{label:"All images",value:"all_images"},{label:"Selected variant",value:"selected_variant"}]},{id:"displayByVariant",label:"Option Label",type:"toggle",default:!1},{id:"variantSelect",type:"variant:listing"},{id:"select-display",type:"group",label:"Select images to display",controls:e},{id:"featured-image",type:"group",label:"Featured Image",controls:t},{id:"gallery-images",type:"group",label:"Gallery Images",controls:a},{id:"qualityType",type:"select",label:"Quality",devices:{desktop:{default:"high"}},options:[{title:"Finest",value:"finest"},{title:"High",value:"high"},{title:"Medium",value:"medium"},{title:"Custom",value:"custom",tooltip:"You can choose it for advanced page loading optimization."}]},{id:"preload",type:"toggle",label:"Preload",default:!1},{id:"qualityPercent",type:"input:slider",label:"",units:["%"],min:20,max:400,step:200,useOnlyUnitInit:!0,devices:{desktop:{default:100}}}]},{id:"style",controls:[{id:"position",label:"Layout",type:"layout-selector",iconViewBox:"0 0 50 50",enableItemBackground:!0,itemPerRow:3,itemSpacing:"large",enableItemOpacity:!0,options:[{label:"Featured top",value:"bottom-center",type:"p-image-layout",iconName:"gp-product-image-layout-bottom"},{label:"Featured right",value:"left",type:"p-image-layout",iconName:"gp-product-image-layout-left"},{label:"Featured left",value:"right",type:"p-image-layout",iconName:"gp-product-image-layout-right"},{label:"Image list inside bottom",value:"inside-bottom",type:"p-image-layout",iconName:"gp-product-image-layout-bottom-inside"},{label:"Image list inside left",value:"inside-left",type:"p-image-layout",iconName:"gp-product-image-layout-left-inside"},{label:"Image list inside right",value:"inside-right",type:"p-image-layout",iconName:"gp-product-image-layout-right-inside"},{label:"Featured only",value:"only-feature",type:"p-image-layout",iconName:"gp-product-image-layout-featured-only"},{label:"Image list 1 col",value:"one-col",type:"p-image-layout",iconName:"gp-product-image-layout-one-col",noPadding:"y"},{label:"Image list 2 col",value:"two-col",type:"p-image-layout",iconName:"gp-product-image-layout-two-col"}],devices:{desktop:{default:"bottom-center"},mobile:{default:"bottom-center"}}},{id:"spacing",label:"Spacing Item",type:"input:slider",units:["px"],ignoreMax:!0,max:40,devices:{desktop:{default:"8px"}}},{id:"ratioLayout",label:"Ratio",type:"column-with-slider",fallbackArrayValue:[2,10],devices:{desktop:{default:[2,10]}}},{id:"ratioLayoutRight",label:"Ratio",type:"column-with-slider",fallbackArrayValue:[10,2],devices:{desktop:{default:[10,2]}}},{id:"dimensions",type:"group",label:"Featured Image",controls:l},{id:"galleryStyles",type:"group",label:"Gallery",controls:i},{id:"align",label:"Alignment",type:"segment",options:[{label:"Start",value:"flex-start",type:"align-flex",tooltip:"Align left"},{label:"Center",value:"center",type:"align-flex",tooltip:"Align center"},{label:"End",value:"flex-end",type:"align-flex",tooltip:"Align right"}],devices:{desktop:{default:"flex-start"}}}]}];export{o as ProductImageSettingsV2};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ImageListNavigation as i}from"./ui/ImageListNavigation.js";import{FeatureNavigation as o}from"./ui/FeatureNavigation.js";import{FeatureDots as t}from"./ui/FeatureDots.js";let e='((type == "slider" || position == "left" || position == "right") && position !== "one-col" && position != "two-col")',n='(["bottom-center", "left", "right", "only-feature", "inside-bottom", "inside-left", "inside-right"].includes(position))',l=[{label:"Layout",controls:[{layout:"vertical",setting:{id:"position"},options:{isComboLayout:!0},controls:[{label:"Ratio",type:"control",setting:{id:"ratioLayout"},layout:"vertical",conditionDisplay:'position == "left"'},{label:"Ratio",type:"control",setting:{id:"ratioLayoutRight"},layout:"vertical",conditionDisplay:'position == "right"'}]}]},{label:"Featured image",conditionDisplay:n,controls:[{setting:{id:"ftShape"},hiddenOnMobile:!0,layout:"vertical",controlChangeTrigger:{settings:[{condition:"ftShape.shape === 'original'",source:["ftShape"],action:{controlId:"ftLayout",newValue:"contain",groupType:"style",controlType:"style"}}],options:{noRecordHistory:!0}}},{conditionDisplay:"ftShape.shape !== 'original'",label:"Image scale",setting:{id:"ftLayout"}},{...t,hiddenOnMobile:!0,conditionDisplay:`${n} && position === "only-feature"`},{...o,hiddenOnMobile:!0,conditionDisplay:`${n}`}],moreSettings:{type:"collapse",controls:[{label:"Corner",setting:{id:"ftCorner"},hiddenOnMobile:!0},{type:"combo",label:"Hover action",conditionDisplay:n,iconName:"gp-trigger-action-hover",getValueFromSettingID:"hoverEffect",isShowSettingTitle:!0,defaultValueWhenClear:"none",compoDefaultValue:"zoom",hiddenOnMobile:!0,controls:[{label:"When hover",setting:{id:"hoverEffect"}},{label:"Zoom type",conditionDisplay:'hoverEffect == "zoom"',setting:{id:"zoomType"}},{label:"Zoom value",conditionDisplay:'hoverEffect == "zoom"',setting:{id:"zoom"}},{label:"Other image",conditionDisplay:'hoverEffect == "other"',setting:{id:"otherImage"}}]},{type:"combo",label:"Click action",hiddenOnMobile:!0,iconName:"gp-trigger-action-click",conditionDisplay:n,getValueFromSettingID:"ftClickOpenLightBox",isShowSettingTitle:!0,defaultValueWhenClear:"none",compoDefaultValue:"popup",controls:[{label:"After click",setting:{id:"ftClickOpenLightBox"}},{label:"Open new tab",setting:{id:"ftClickOpenNewTab"},conditionDisplay:'ftClickOpenLightBox === "product-link"'}]},{type:"control",label:"Slide speed",setting:{id:"ftAnimationSpeed"}},{type:"control",label:"Animation",setting:{id:"ftAnimationMode"}},{label:"Drag / swipe",setting:{id:"ftDragToScroll"}},{label:"Infinity loop",setting:{id:"ftLoop"}}]}},{label:"Image list",conditionDisplay:'(position !== "only-feature")',controls:[{label:"Display",hiddenOnMobile:!0,conditionDisplay:'position === "bottom-center" || position === "bottom-left" || position === "inside-bottom"',setting:{id:"type"}},{setting:{id:"shape"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'["left", "right"].includes(position)'},{setting:{id:"shapeForBottom"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'["bottom-left", "bottom-center"].includes(position)'},{setting:{id:"shapeForInsideBottom"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'["inside-bottom"].includes(position)'},{setting:{id:"shapeForInside"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'["inside-left", "inside-right"].includes(position)'},{setting:{id:"shapeForFtOnly"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'position == "only-feature"'},{setting:{id:"shapeFor2Col"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'position == "two-col"'},{setting:{id:"shapeFor1Col"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'position == "one-col"'},{label:"Image gap",setting:{id:"itemSpacing"}},{conditionDisplay:"(position == 'one-col' && shapeFor1Col.shape !== 'original') || (position == 'two-col' && shapeFor2Col.shape !== 'original') || (position == 'only-feature' && shapeForFtOnly.shape !== 'original') || ([\"inside-left\", \"inside-right\"].includes(position) && shapeForInside.shape !== 'original') || ([\"inside-bottom\"].includes(position) && shapeForInsideBottom.shape !== 'original') || ([\"bottom-left\", \"bottom-center\"].includes(position) && shapeForBottom.shape !== 'original') || ([\"left\", \"right\"].includes(position) && shape.shape !== 'original')",label:"Image scale",setting:{id:"layout"}},{...i,hiddenOnMobile:!0,conditionDisplay:e}],moreSettings:{type:"collapse",controls:[{label:"Corner",hiddenOnMobile:!0,setting:{id:"corner"}},{label:"Active border",hiddenOnMobile:!0,conditionDisplay:'!["one-col", "two-col"].includes(position)',setting:{id:"borderActive"}},{type:"combo",label:"Hover action",conditionDisplay:'(position == "one-col" || position == "two-col")',iconName:"gp-trigger-action-hover",getValueFromSettingID:"galleryHoverEffect",defaultValueWhenClear:"none",hiddenOnMobile:!0,compoDefaultValue:"zoom",controls:[{label:"When hover",setting:{id:"galleryHoverEffect"},conditionDisplay:'galleryHoverEffect == "none"'},{label:"Zoom type",conditionDisplay:'galleryHoverEffect == "zoom"',setting:{id:"galleryZoomType"}},{label:"Zoom value",conditionDisplay:'galleryHoverEffect == "zoom"',setting:{id:"galleryZoom"}},{label:"Other image",conditionDisplay:'galleryHoverEffect == "other"',setting:{id:"otherImage"}}]},{label:"Click action",setting:{id:"clickOpenLightBox"}},{conditionDisplay:e,label:"Drag / swipe",setting:{id:"dragToScroll"}},{conditionDisplay:e,label:"Infinity loop",setting:{id:"loop"}}]}},{label:"Item spacing",hiddenOnMobile:!0,conditionDisplay:'["bottom-center", "left", "right", "inside-bottom", "inside-left", "inside-right"].includes(position)',controls:[{label:"Gap",setting:{id:"spacing"}}]},{label:"Display condition",controls:[{conditionDisplay:'["bottom-center", "left", "right", "only-feature", "inside-bottom", "inside-left", "inside-right"].includes(position)',label:"Default item",setting:{id:"preDisplay"}},{label:"Image list",setting:{id:"filterByVariant"}}],messageConfig:{type:"info",message:'Image list can display based on the selected variants. <a class="text-white" target="_blank" href="https://gempages.co/display-selected-variant">How to setup</a>'}},{label:"Optimize LCP",conditionDisplay:'pageType !== "STATIC"',controls:[{label:"Preload",
|
|
1
|
+
import{ImageListNavigation as i}from"./ui/ImageListNavigation.js";import{FeatureNavigation as o}from"./ui/FeatureNavigation.js";import{FeatureDots as t}from"./ui/FeatureDots.js";let e='((type == "slider" || position == "left" || position == "right") && position !== "one-col" && position != "two-col")',n='(["bottom-center", "left", "right", "only-feature", "inside-bottom", "inside-left", "inside-right"].includes(position))',l=[{label:"Layout",controls:[{layout:"vertical",setting:{id:"position"},options:{isComboLayout:!0},controls:[{label:"Ratio",type:"control",setting:{id:"ratioLayout"},layout:"vertical",conditionDisplay:'position == "left"'},{label:"Ratio",type:"control",setting:{id:"ratioLayoutRight"},layout:"vertical",conditionDisplay:'position == "right"'}]}]},{label:"Featured image",conditionDisplay:n,controls:[{setting:{id:"ftShape"},hiddenOnMobile:!0,layout:"vertical",controlChangeTrigger:{settings:[{condition:"ftShape.shape === 'original'",source:["ftShape"],action:{controlId:"ftLayout",newValue:"contain",groupType:"style",controlType:"style"}}],options:{noRecordHistory:!0}}},{conditionDisplay:"ftShape.shape !== 'original'",label:"Image scale",setting:{id:"ftLayout"}},{...t,hiddenOnMobile:!0,conditionDisplay:`${n} && position === "only-feature"`},{...o,hiddenOnMobile:!0,conditionDisplay:`${n}`}],moreSettings:{type:"collapse",controls:[{label:"Corner",setting:{id:"ftCorner"},hiddenOnMobile:!0},{type:"combo",label:"Hover action",conditionDisplay:n,iconName:"gp-trigger-action-hover",getValueFromSettingID:"hoverEffect",isShowSettingTitle:!0,defaultValueWhenClear:"none",compoDefaultValue:"zoom",hiddenOnMobile:!0,controls:[{label:"When hover",setting:{id:"hoverEffect"}},{label:"Zoom type",conditionDisplay:'hoverEffect == "zoom"',setting:{id:"zoomType"}},{label:"Zoom value",conditionDisplay:'hoverEffect == "zoom"',setting:{id:"zoom"}},{label:"Other image",conditionDisplay:'hoverEffect == "other"',setting:{id:"otherImage"}}]},{type:"combo",label:"Click action",hiddenOnMobile:!0,iconName:"gp-trigger-action-click",conditionDisplay:n,getValueFromSettingID:"ftClickOpenLightBox",isShowSettingTitle:!0,defaultValueWhenClear:"none",compoDefaultValue:"popup",controls:[{label:"After click",setting:{id:"ftClickOpenLightBox"}},{label:"Open new tab",setting:{id:"ftClickOpenNewTab"},conditionDisplay:'ftClickOpenLightBox === "product-link"'}]},{type:"control",label:"Slide speed",setting:{id:"ftAnimationSpeed"}},{type:"control",label:"Animation",setting:{id:"ftAnimationMode"}},{label:"Drag / swipe",setting:{id:"ftDragToScroll"}},{label:"Infinity loop",setting:{id:"ftLoop"}}]}},{label:"Image list",conditionDisplay:'(position !== "only-feature")',controls:[{label:"Display",hiddenOnMobile:!0,conditionDisplay:'position === "bottom-center" || position === "bottom-left" || position === "inside-bottom"',setting:{id:"type"}},{setting:{id:"shape"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'["left", "right"].includes(position)'},{setting:{id:"shapeForBottom"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'["bottom-left", "bottom-center"].includes(position)'},{setting:{id:"shapeForInsideBottom"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'["inside-bottom"].includes(position)'},{setting:{id:"shapeForInside"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'["inside-left", "inside-right"].includes(position)'},{setting:{id:"shapeForFtOnly"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'position == "only-feature"'},{setting:{id:"shapeFor2Col"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'position == "two-col"'},{setting:{id:"shapeFor1Col"},hiddenOnMobile:!0,layout:"vertical",conditionDisplay:'position == "one-col"'},{label:"Image gap",setting:{id:"itemSpacing"}},{conditionDisplay:"(position == 'one-col' && shapeFor1Col.shape !== 'original') || (position == 'two-col' && shapeFor2Col.shape !== 'original') || (position == 'only-feature' && shapeForFtOnly.shape !== 'original') || ([\"inside-left\", \"inside-right\"].includes(position) && shapeForInside.shape !== 'original') || ([\"inside-bottom\"].includes(position) && shapeForInsideBottom.shape !== 'original') || ([\"bottom-left\", \"bottom-center\"].includes(position) && shapeForBottom.shape !== 'original') || ([\"left\", \"right\"].includes(position) && shape.shape !== 'original')",label:"Image scale",setting:{id:"layout"}},{...i,hiddenOnMobile:!0,conditionDisplay:e}],moreSettings:{type:"collapse",controls:[{label:"Corner",hiddenOnMobile:!0,setting:{id:"corner"}},{label:"Active border",hiddenOnMobile:!0,conditionDisplay:'!["one-col", "two-col"].includes(position)',setting:{id:"borderActive"}},{type:"combo",label:"Hover action",conditionDisplay:'(position == "one-col" || position == "two-col")',iconName:"gp-trigger-action-hover",getValueFromSettingID:"galleryHoverEffect",defaultValueWhenClear:"none",hiddenOnMobile:!0,compoDefaultValue:"zoom",controls:[{label:"When hover",setting:{id:"galleryHoverEffect"},conditionDisplay:'galleryHoverEffect == "none"'},{label:"Zoom type",conditionDisplay:'galleryHoverEffect == "zoom"',setting:{id:"galleryZoomType"}},{label:"Zoom value",conditionDisplay:'galleryHoverEffect == "zoom"',setting:{id:"galleryZoom"}},{label:"Other image",conditionDisplay:'galleryHoverEffect == "other"',setting:{id:"otherImage"}}]},{label:"Click action",setting:{id:"clickOpenLightBox"}},{conditionDisplay:e,label:"Drag / swipe",setting:{id:"dragToScroll"}},{conditionDisplay:e,label:"Infinity loop",setting:{id:"loop"}}]}},{label:"Item spacing",hiddenOnMobile:!0,conditionDisplay:'["bottom-center", "left", "right", "inside-bottom", "inside-left", "inside-right"].includes(position)',controls:[{label:"Gap",setting:{id:"spacing"}}]},{label:"Display condition",controls:[{conditionDisplay:'["bottom-center", "left", "right", "only-feature", "inside-bottom", "inside-left", "inside-right"].includes(position)',label:"Default item",setting:{id:"preDisplay"}},{label:"Image list",setting:{id:"filterByVariant"}}],messageConfig:{type:"info",message:'Image list can display based on the selected variants. <a class="text-white" target="_blank" href="https://gempages.co/display-selected-variant">How to setup</a>'}},{label:"Optimize LCP",conditionDisplay:'pageType !== "STATIC"',controls:[{label:"Preload",setting:{id:"preload"}},{label:"Quality",setting:{id:"qualityType"}},{layout:"horizontal",label:"Quality",conditionDisplay:'qualityType == "custom"',setting:{id:"qualityPercent"}}]},{hiddenOnMobile:!0,controls:[{label:"Align",setting:{id:"align"},options:{labelVariant:"primary"}}]}];export{l as SettingUIV2};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let
|
|
1
|
+
import{getMainColor as t}from"./helpers.js";let e=(e,a,i)=>{let{displayByDefault:s,scarcityThreshold:l=0,template:r,outOfStockMessage:o,continueSelling:d,unlimitedQuantityMessage:p,hiddenCounterWhenOutOfStock:c}=a??{},{displayProgressBar:g,oosTextColor:n,typo:u}=i??{},y=u?.attrs?.color,m=t(i);return{"data-id":e?.uid??"","data-visible":"{{ should_display }}","data-policy":"{{ variant_policy_list | escape }}","gp-setting":JSON.stringify({displayByDefault:s,displayProgressBar:g,scarcityThreshold:l,template:r,outOfStockMessage:o,continueSelling:d,unlimitedQuantityMessage:p,color:m,hiddenCounterWhenOutOfStock:c,oosTextColor:n,typoColor:y}).replaceAll('"',""")}},a=()=>({"data-slot-type":"message"}),i=t=>({"data-id":t?.uid??""}),s=(t,e)=>({"data-slot-type":t?"oos-icon":"has-stock-icon","data-visible":e?"true":"false"});export{s as getIconAttrs,e as getLiquidTagAttrs,a as getLiquidTextAttrs,i as getWrapperAttrs};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
let
|
|
1
|
+
import{isColor as e}from"@gem-sdk/core";let t={AUTO:"auto",MANUAL:"manual"},a={SHOW:"show",HIDE:"hide"},i="%number%",n="mark",r=0,s=12,l=12,o=20,_=0,d=10,g=100,u=10,p=20,y=10,v=5,T=20,c="CONTINUE",f=e=>{let{templateStringDisplay:t,outOfStockMessageDisplay:a,continueSellingDisplay:i,unlimitedQuantityMessageDisplay:n}=e??{};return`{% if inventory_management == null and inventory_quantity <= 0 %}
|
|
2
2
|
${n}
|
|
3
3
|
{% elsif available == false %}
|
|
4
|
+
${a}
|
|
5
|
+
{% elsif available and inventory_policy == '${c.toLowerCase()}' and inventory_quantity <= 0 %}
|
|
4
6
|
${i}
|
|
5
|
-
{% elsif available and inventory_policy == '${T.toLowerCase()}' and inventory_quantity <= 0 %}
|
|
6
|
-
${t}
|
|
7
7
|
{% else %}
|
|
8
|
-
${
|
|
9
|
-
{% endif %}`}
|
|
8
|
+
${t}
|
|
9
|
+
{% endif %}`},$=(e,t)=>{let{scarcityThreshold:a=0,hiddenCounterWhenOutOfStock:i,displayByDefault:n}=e??{},{displayProgressBar:r}=t??{},s=!!a&&a>0;return`{%- liquid
|
|
10
10
|
assign current_variant = variant
|
|
11
11
|
assign available = current_variant.available | default: false
|
|
12
12
|
assign inventory_management = current_variant.inventory_management | default: null
|
|
@@ -15,7 +15,7 @@ let e={AUTO:"auto",MANUAL:"manual"},a={SHOW:"show",HIDE:"hide"},i="%number%",t="
|
|
|
15
15
|
assign scarcityThreshold = ${s}
|
|
16
16
|
assign check_display = ${!!n}
|
|
17
17
|
|
|
18
|
-
if inventory_management != null and available == false and inventory_quantity <= 0 and inventory_policy != '${
|
|
18
|
+
if inventory_management != null and available == false and inventory_quantity <= 0 and inventory_policy != '${c.toLowerCase()}'
|
|
19
19
|
assign is_out_of_stock = true
|
|
20
20
|
else
|
|
21
21
|
assign is_out_of_stock = false
|
|
@@ -23,13 +23,13 @@ let e={AUTO:"auto",MANUAL:"manual"},a={SHOW:"show",HIDE:"hide"},i="%number%",t="
|
|
|
23
23
|
|
|
24
24
|
if check_display == true
|
|
25
25
|
assign should_display = true
|
|
26
|
-
elsif ${s} and inventory_quantity >= 0 and inventory_quantity < ${
|
|
26
|
+
elsif ${s} and inventory_quantity >= 0 and inventory_quantity < ${a}
|
|
27
27
|
assign should_display = true
|
|
28
28
|
else
|
|
29
29
|
assign should_display = false
|
|
30
30
|
endif
|
|
31
31
|
|
|
32
|
-
if ${!0===
|
|
32
|
+
if ${!0===i} and available == false
|
|
33
33
|
assign should_display = false
|
|
34
34
|
endif
|
|
35
35
|
|
|
@@ -46,26 +46,26 @@ let e={AUTO:"auto",MANUAL:"manual"},a={SHOW:"show",HIDE:"hide"},i="%number%",t="
|
|
|
46
46
|
"{{ variant.id }}_management":"{{ variant.inventory_management }}"{% if forloop.last == false %},{% endif %}
|
|
47
47
|
{% endfor %}
|
|
48
48
|
}
|
|
49
|
-
{% endcapture %}`}
|
|
50
|
-
<div class="gp-hidden gp-text-white gp-py-1 gp-px-2 gp-mr-1 gp-inline-block gp-my-[1px]
|
|
49
|
+
{% endcapture %}`},E=e=>{let{textColor:t,typo:a}=e??{};return a?.attrs?.color||t||"text-2"},b=(t,a)=>{let{templateStringDisplay:i,outOfStockMessageDisplay:n,continueSellingDisplay:r,unlimitedQuantityMessageDisplay:s}=t??{},l=E(a),o=e(l)?"":`gp-text-g-${l} gp-bg-g-${l}`;return`
|
|
50
|
+
<div class="gp-hidden gp-text-white gp-py-1 gp-px-2 gp-mr-1 gp-inline-block gp-my-[1px] ${o}" >
|
|
51
51
|
<div id="template">${i}</div>
|
|
52
|
-
<div id="out-of-stock-message">${
|
|
53
|
-
<div id="continue-selling">${
|
|
54
|
-
<div id="unlimited-quantity-message">${
|
|
55
|
-
</div>`},
|
|
52
|
+
<div id="out-of-stock-message">${n}</div>
|
|
53
|
+
<div id="continue-selling">${r}</div>
|
|
54
|
+
<div id="unlimited-quantity-message">${s}</div>
|
|
55
|
+
</div>`},m=(e,t)=>{let a=A(t);if(e)return`
|
|
56
56
|
[data-id="${e}"] {
|
|
57
57
|
.gp-sc-progress-bar{
|
|
58
|
-
${
|
|
58
|
+
${a}
|
|
59
59
|
}
|
|
60
60
|
.gp-sc-progress-bar:before{
|
|
61
|
-
${
|
|
61
|
+
${a}
|
|
62
62
|
}
|
|
63
|
-
}`},
|
|
63
|
+
}`},A=e=>`
|
|
64
64
|
border-top-left-radius: ${e?.bbrr??"0px"};
|
|
65
65
|
border-top-right-radius: ${e?.bblr??"0px"};
|
|
66
66
|
border-bottom-left-radius: ${e?.btrr??"0px"};
|
|
67
|
-
border-bottom-right-radius: ${e?.btlr??"0px"};`,
|
|
68
|
-
<${
|
|
67
|
+
border-bottom-right-radius: ${e?.btlr??"0px"};`,N=(t,a)=>{if(!t.includes(`<${n}>`))return t;let i="gp-text-white gp-py-1 gp-px-2 gp-mr-1 gp-inline-block gp-my-[1px]",r=`<${n}>`;return r=e(a)?`
|
|
68
|
+
<${n} class='${i}' style='background-color: ${a}'>
|
|
69
69
|
`:`
|
|
70
|
-
<${
|
|
71
|
-
`,
|
|
70
|
+
<${n} class='${i} gp-bg-g-${a}'>
|
|
71
|
+
`,t.replaceAll(`<${n}>`,r)},I=(t,a,n)=>{if(!t.includes(i))return t;let r="";return r=e(a)?`<span style='--c: ${a}'><$quantity$></span>`:`<span class='gp-text-g-${a}'><$quantity$></span>`,n&&(r=r.replace("<$quantity$>",n.toString())),t.replaceAll(i,r)},R=e=>{let t={};return e["--size"]&&(t["--w"]=e["--size"]),e["--size-tablet"]&&(t["--w-tablet"]=e["--size-tablet"]),e["--size-mobile"]&&(t["--w-mobile"]=e["--size-mobile"]),t};export{c as CONTINUE_SELLING_WHEN_OUT_OF_STOCK,p as DEFAULT_FONT_SIZE,n as DEFAULT_HIGHLIGHT_TAG,y as DEFAULT_PROGRESS_BAR_HEIGHT,i as DEFAULT_QUANTITY_TEMPLATE,u as DEFAULT_RANGE_STEP,o as DEFAULT_REMAINING_PERCENT,l as DEFAULT_REMAINING_QUANTITY,s as DEFAULT_SCARCITY_THRESHOLD,T as MAX_PROGRESS_BAR_HEIGHT,g as MAX_REMAINING_PERCENT,v as MIN_PROGRESS_BAR_HEIGHT,d as MIN_REMAINING_PERCENT,_ as MIN_REMAINING_QUANTITY,r as NO_PRODUCT_LEFT,a as OUT_OF_STOCK,t as QUANTITY_SOURCE,R as convertSizeToWidth,m as getInlineCss,$ as getLiquidInitData,f as getLiquidTextContent,E as getMainColor,b as getTextDisplayData,N as transformHighlighTag,I as transformNumberTag};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{composeClasses as s,RenderIf as t,template as i,isLocalEnv as e,baseAssetURL as o}from"@gem-sdk/core";import{getContainerClasses as l,getLiquidTagClasses as c,getWrapperIconClasses as d,getOuterIconClasses as r,getIconClasses as a,getWrapperClasses as $,getTextClasses as p}from"../common/classes.js";import{
|
|
1
|
+
import{composeClasses as s,RenderIf as t,template as i,isLocalEnv as e,baseAssetURL as o}from"@gem-sdk/core";import{getContainerClasses as l,getLiquidTagClasses as c,getWrapperIconClasses as d,getOuterIconClasses as r,getIconClasses as a,getWrapperClasses as $,getTextClasses as p}from"../common/classes.js";import{getTextDisplayData as u,getLiquidInitData as n,getInlineCss as m,getLiquidTextContent as f}from"../common/helpers.js";import{getContainerStyles as v,getWrapperStyles as g,getIconStyles as k,getTextStyles as y}from"../common/styles.js";import{getDynamicSourceLocales as S,createSettingId as I,getSettingPreloadData as O}from"../../helpers.js";import{StockCounter as b}from"../settings/configs/translate.js";import{getLiquidTagAttrs as j,getLiquidTextAttrs as _,getIconAttrs as V}from"../common/attrs.js";import{createAttr as h,createStyle as E,createClass as M,LiquidIf as A}from"@gem-sdk/system";let C=({setting:C,styles:G,style:Q,advanced:R,builderProps:x,pageContext:N})=>{let{borderRadius:P}=G??{},{showIcon:T,icon:q,oosIcon:w,layout:z="full",template:B,outOfStockMessage:D,continueSelling:F,unlimitedQuantityMessage:H}=C??{},J=m(x?.uid,P),K=S({val:B,uid:x?.uid,settingId:I({id:b?.template?.id}),pageContext:N,isReplaceInventoryQuantity:!0}),L=S({val:D,uid:x?.uid,settingId:I({id:b?.outOfStockMessage?.id}),pageContext:N}),U=S({val:F,uid:x?.uid,settingId:I({id:b?.continueSelling?.id}),pageContext:N}),W=S({val:H,uid:x?.uid,settingId:I({id:b?.unlimitedQuantityMessage?.id}),pageContext:N}),X=h({...j(x,C,G)}),Y=E({...v(G)}),Z=M({...l(C)}),ss=M({...c(R)}),st=E({...Q}),si=E({...g(G)}),se=n(C,G),so=f({templateStringDisplay:K,outOfStockMessageDisplay:L,continueSellingDisplay:U,unlimitedQuantityMessageDisplay:W}),sl=M({...d(C)}),sc=M({...s("gp-stock-counter-icon data-[visible=true]:gp-block data-[visible=false]:gp-hidden"),...a(),...r()}),sd=M({...$(C)}),sr=s=>E({...k(G,C,s)}),sa=({isOutOfStockIcon:s,isVisible:t})=>h({...V(s,t)}),s$=M({...p(G),...s("gp-stock-counter-mark")}),sp=s=>E({...y(G,s)}),su=h({..._()}),sn=u({templateStringDisplay:K,outOfStockMessageDisplay:L,continueSellingDisplay:U,unlimitedQuantityMessageDisplay:W},G);return i`
|
|
2
2
|
${se}
|
|
3
3
|
<gp-product-stock-counter ${{...X}} class="${ss}"
|
|
4
4
|
style="${st}">
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useEditorMode as t,useCurrentVariant as e}from"@gem-sdk/core";import{useMemo as r}from"react";import{NO_PRODUCT_LEFT as o,CONTINUE_SELLING_WHEN_OUT_OF_STOCK as n,transformHighlighTag as i,transformNumberTag as u,getMainColor as a}from"../common/helpers.js";let l=(l,s)=>{let c=t(),{template:y,outOfStockMessage:m,continueSelling:d,unlimitedQuantityMessage:f}=l??{},p=a(s),h=e(),k=r(()=>Number(h?h.inventoryQuantity:0),[h]),C=!h||h.manageInventory,O=h?h.inventoryPolicy:"deny",g=C&&k<=o&&O!==n,v=O===n&&k<=o,S=!C&&f;function B(){return S?i(f,p):g?i(m||"",p):v?i(d||"",p):i(u(y||"",p,k),p)}let D=r(()=>{if("edit"===c)return!1;let t=!l?.displayByDefault&&k>=(l?.scarcityThreshold??0),e=l?.hiddenCounterWhenOutOfStock&&g;return t||e},[k,g,c,l?.displayByDefault,l?.hiddenCounterWhenOutOfStock,l?.scarcityThreshold]);return{outputMessage:()=>{let t=s?.typo?.attrs?.transform==="capitalize";return t?B()?.toLocaleLowerCase():B()},isOutOfStock:g,inventoryQuantity:k,shouldHideCounter:D}};export{l as useStockCounter};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import{makeStyleResponsive as e,template as
|
|
1
|
+
import{makeStyleResponsive as e,template as t}from"@gem-sdk/core";let p=e=>{if(!e)return"";let t="";return e.replace(/data-yotpo-instance-id ?= ?"([^"]+)"/gi,p=>(t=(t=(t=(t=p).replace("data-yotpo-instance-id=","")).replace(/['"]+/g,"")).replace(/["']+/g,""),e)),t},r=e=>{if(!e)return"";let t="";return(e.replace(/src ?= ?"([^"]+)"/gi,p=>(t=(t=(t=(t=p).replace("src=","")).replace(/['"]+/g,"")).replace(/["']+/g,""),e)),t)?t:""},o=(p,r,o)=>t`
|
|
2
2
|
{% assign app_blocks = section.blocks | where: "type", "@app" %}
|
|
3
3
|
<div
|
|
4
|
-
class="gp-flex gp-w-full gp-items-center ${
|
|
5
|
-
style="${{...e("jc",
|
|
4
|
+
class="gp-flex gp-w-full gp-items-center ${o}"
|
|
5
|
+
style="${{...e("jc",r)}}"
|
|
6
6
|
>
|
|
7
7
|
{% for block in app_blocks %}
|
|
8
|
-
{% if block.type == '@app' and block.id contains '${
|
|
8
|
+
{% if block.type == '@app' and block.id contains '${p}' %}
|
|
9
9
|
{% render block %}
|
|
10
10
|
{% endif %}
|
|
11
11
|
{% endfor %}
|
|
12
12
|
</div>
|
|
13
|
-
`,
|
|
13
|
+
`,a=({handle:e})=>`https://help.gempages.net/articles/${e}`,c=({handle:e})=>`https://apps.shopify.com/${e}`;export{c as get3rdPartyAppStoreLink,a as get3rdPartyInstallLink,o as getLiquidForAppBlock,p as getYotpoFormCode,r as getYotpoUri};
|
|
@@ -1,11 +1,36 @@
|
|
|
1
|
-
import{makeStyleResponsive as
|
|
1
|
+
import{makeStyleResponsive as e,template as t}from"@gem-sdk/core";let o=({setting:o,advanced:a})=>{let{widgetType:r,align:i}=o??{};return t`
|
|
2
2
|
<div
|
|
3
|
-
class="${
|
|
4
|
-
style="${{...
|
|
3
|
+
class="${a?.cssClass}"
|
|
4
|
+
style="${{...e("ta",i)}}"
|
|
5
5
|
>
|
|
6
6
|
<klarna-placement
|
|
7
|
-
data-key=${(()=>{switch(
|
|
7
|
+
data-key=${(()=>{switch(r){case"topStripPromotionBadge":default:return"top-strip-promotion-badge";case"topStripPromotionAutoSize":return"top-strip-promotion-auto-size";case"footerPromotionAutoSize":return"footer-promotion-auto-size";case"infoPage":return"info-page";case"creditPromotionBadge":return"credit-promotion-badge";case"creditPromotionAutoSize":return"credit-promotion-auto-size"}})()}
|
|
8
8
|
data-locale={{ request.locale.iso_code }}-{{ localization.country.iso_code }}
|
|
9
9
|
></klarna-placement>
|
|
10
|
+
<script>
|
|
11
|
+
(function () {
|
|
12
|
+
var placement = document.currentScript.previousElementSibling;
|
|
13
|
+
var index = 0;
|
|
14
|
+
var id = 'gp-klarna-placement';
|
|
15
|
+
while (document.getElementById(id)) {
|
|
16
|
+
id = 'gp-klarna-placement-' + (++index);
|
|
17
|
+
}
|
|
18
|
+
placement.id = id;
|
|
19
|
+
|
|
20
|
+
// Register with the Shopify app so it initializes the SDK and validates the market.
|
|
21
|
+
var placements = window.klarnaAppBlocksManager || (window.appBlockPlacements ||= []);
|
|
22
|
+
placements.push({
|
|
23
|
+
selector: id,
|
|
24
|
+
dataKey: placement.getAttribute('data-key'),
|
|
25
|
+
productVariants: {{ product.variants | json | replace: '<', '\\u003c' }} || [],
|
|
26
|
+
templateName: {{ template.name | json }},
|
|
27
|
+
storefrontCurrency: {{ cart.currency.iso_code | json }},
|
|
28
|
+
storefrontCountry: {{ localization.country.iso_code | json }},
|
|
29
|
+
storefrontLanguage: {{ request.locale.iso_code | split: '-' | first | json }},
|
|
30
|
+
variantPrice: {{ product.selected_or_first_available_variant.price | default: 0 | append: '' | json }},
|
|
31
|
+
cartPrice: {{ cart.total_price | default: 0 | append: '' | json }}
|
|
32
|
+
});
|
|
33
|
+
})();
|
|
34
|
+
</script>
|
|
10
35
|
</div>
|
|
11
|
-
`};export{
|
|
36
|
+
`};export{o as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e from"../../configs/AftershipEmailMarketingsms.js";import{get3rdPartyInstallLink as t}from"../../common/helpers.js";import
|
|
1
|
+
import e from"../../configs/AftershipEmailMarketingsms.js";import{get3rdPartyInstallLink as t,get3rdPartyAppStoreLink as i}from"../../common/helpers.js";import l from"./uiV2.js";let a={tag:e.tag,label:e.label,icon:'<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/b8bc9d365792ea16185361099864182c/icon/COb3zP2Pwv4CEAE=.png?width=22&height=22">',editorConfigs:{component:{isThirdParty:!0}},presets:[{id:e.id,name:e.label,hideTextContent:!0,icon:{desktop:`<div class="w-full flex flex-col items-center">
|
|
2
2
|
<img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/b8bc9d365792ea16185361099864182c/icon/COb3zP2Pwv4CEAE=.png?width=22&height=22">
|
|
3
3
|
<span class="preset-item-title">AfterShip Email Marketing,SMS</span>
|
|
4
|
-
</div>`},components:[{tag:e.tag}]}],settings:[{id:"setting",controls:[{id:"appBlockId",type:"input",default:""},{id:"widgetType",label:"Choose widget",type:"select",options:[{label:"Embeded_form",value:"embeded_form"}],default:"embeded_form"},{id:"install",type:"open-link",target:"_blank",linkType:"install",href:t({handle:"aftership-email-marketing-sms"}),appName:e.label},{id:"formId",type:"input",default:""},{id:"getFormId",type:"group"},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"
|
|
4
|
+
</div>`},components:[{tag:e.tag}]}],settings:[{id:"setting",controls:[{id:"appBlockId",type:"input",default:""},{id:"widgetType",label:"Choose widget",type:"select",options:[{label:"Embeded_form",value:"embeded_form"}],default:"embeded_form"},{id:"install",type:"open-link",target:"_blank",linkType:"install",href:t({handle:"aftership-email-marketing-sms"}),appName:e.label},{id:"formId",type:"input",default:""},{id:"getFormId",type:"group"},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:i({handle:"automizely-messages"}),appName:e.label},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:[],uiV2:l};export{a as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e from"../../configs/AirProductReviewsAppUgc.js";import{get3rdPartyInstallLink as i}from"../../common/helpers.js";import
|
|
1
|
+
import e from"../../configs/AirProductReviewsAppUgc.js";import{get3rdPartyInstallLink as i,get3rdPartyAppStoreLink as t}from"../../common/helpers.js";import l from"./uiV2.js";let a={tag:e.tag,label:e.label,icon:'<img class="gp-w-6 gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/d636d73c74c4684a910d23211e0e6ddf/icon/CJbfpYa_9oYDEAE=.jpeg?width=22&height=22">',editorConfigs:{component:{isThirdParty:!0}},presets:[{id:e.id,name:e.label,hideTextContent:!0,icon:{desktop:`<div class="w-full flex flex-col items-center">
|
|
2
2
|
<img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/d636d73c74c4684a910d23211e0e6ddf/icon/CJbfpYa_9oYDEAE=.jpeg?width=22&height=22">
|
|
3
3
|
<span class="preset-item-title">Air: Product Reviews app & UGC</span>
|
|
4
|
-
</div>`},components:[{tag:e.tag}]}],settings:[{id:"setting",controls:[{id:"install",type:"open-link",target:"_blank",linkType:"install",href:i({handle:"air-product-reviews-app-ugc"}),appName:e.label},{id:"widgetType",label:"Choose widget",type:"select",options:[{label:"Review box",value:"review_box"},{label:"Star Rating",value:"star_rating"},{label:"Review carousel",value:"review_carousel"}],default:"review_box"},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"
|
|
4
|
+
</div>`},components:[{tag:e.tag}]}],settings:[{id:"setting",controls:[{id:"install",type:"open-link",target:"_blank",linkType:"install",href:i({handle:"air-product-reviews-app-ugc"}),appName:e.label},{id:"widgetType",label:"Choose widget",type:"select",options:[{label:"Review box",value:"review_box"},{label:"Star Rating",value:"star_rating"},{label:"Review carousel",value:"review_carousel"}],default:"review_box"},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:t({handle:"air-reviews"}),appName:e.label},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:[],uiV2:l};export{a as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{get3rdPartyInstallLink as e}from"../../common/helpers.js";import t from"../../configs/AliReviews.js";import
|
|
1
|
+
import{get3rdPartyInstallLink as e,get3rdPartyAppStoreLink as l}from"../../common/helpers.js";import t from"../../configs/AliReviews.js";import i from"./uiV2.js";let a=[{value:"starRating",label:"Star Rating"},{value:"reviewBox",label:"Review box"}],n={tag:t.tag,label:t.label,icon:`<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="${t.logoUrl}?width=22&height=22">`,editorConfigs:{component:{isThirdParty:!0}},presets:[{id:t.id,name:t.label,hideTextContent:!0,icon:{desktop:`
|
|
2
2
|
<div class="w-full flex flex-col items-center">
|
|
3
3
|
<img class="w-24 border border-dark-200 rounded-medium" src="${t.logoUrl}?width=22&height=22">
|
|
4
4
|
<span class="preset-item-title">${t.label}</span>
|
|
5
5
|
</div>
|
|
6
|
-
`},components:[{tag:t.tag}]}],settings:[{id:"setting",controls:[{id:"install",type:"open-link",target:"_blank",linkType:"install",href:e({handle:"ali-reviews-kudosi-reviews"}),appName:t.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"
|
|
6
|
+
`},components:[{tag:t.tag}]}],settings:[{id:"setting",controls:[{id:"install",type:"open-link",target:"_blank",linkType:"install",href:e({handle:"ali-reviews-kudosi-reviews"}),appName:t.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:l({handle:"ali-reviews"}),appName:t.label},{id:"widgetType",label:"Choose widget",type:"select",default:"starRating",options:a},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:[],uiV2:i};export{a as WidgetOptions,n as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{get3rdPartyInstallLink as e}from"../../common/helpers.js";import
|
|
1
|
+
import{get3rdPartyInstallLink as e,get3rdPartyAppStoreLink as t}from"../../common/helpers.js";import l from"../../configs/AlsoBoughtCbb.js";import i from"./uiV2.js";let a={tag:l.tag,label:l.label,icon:'<img class="gp-w-6 gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/55a595d2413473dd0c6e6a315690886a/icon/CITkod-6vf0CEAE=.png?width=22&height=22">',editorConfigs:{placeholder:{flowPage:"GP_PRODUCT"},component:{isThirdParty:!0}},presets:[{id:l.id,name:l.label,hideTextContent:!0,icon:{desktop:`<div class="w-full flex flex-col items-center">
|
|
2
2
|
<img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/55a595d2413473dd0c6e6a315690886a/icon/CITkod-6vf0CEAE=.png?width=22&height=22">
|
|
3
3
|
<span class="preset-item-title">Also Bought • CBB</span>
|
|
4
|
-
</div>`},components:[{tag:
|
|
4
|
+
</div>`},components:[{tag:l.tag}]}],settings:[{id:"setting",controls:[{id:"install",type:"open-link",target:"_blank",linkType:"install",href:e({handle:"also-bought-cbb"}),appName:l.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:t({handle:"also-bought"}),appName:l.label},{id:"guideId",type:"group"},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:[],uiV2:i};export{a as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e from"../../configs/AovBundlesVolumeDiscounts.js";import
|
|
1
|
+
import{get3rdPartyAppStoreLink as e}from"../../common/helpers.js";import l from"../../configs/AovBundlesVolumeDiscounts.js";import t from"./uiV2.js";let i={tag:l.tag,label:l.label,icon:'<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/0cf2a4359de6605e10e663ebf70249cb/icon/CI6xy4Hqu44DEAE=.png?width=22&height=22">',editorConfigs:{placeholder:{flowTag:["Product"]},component:{isThirdParty:!0}},presets:[{id:l.id,name:l.label,hideTextContent:!0,icon:{desktop:`<div class="w-full flex flex-col items-center">
|
|
2
2
|
<img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/0cf2a4359de6605e10e663ebf70249cb/icon/CI6xy4Hqu44DEAE=.png?width=22&height=22">
|
|
3
3
|
<span class="preset-item-title">AOV Bundles Volume Discounts</span>
|
|
4
|
-
</div>`},components:[{tag:
|
|
4
|
+
</div>`},components:[{tag:l.tag}]}],settings:[{id:"setting",controls:[{id:"appBlockId",type:"input",default:""},{id:"widgetType",label:"Choose widget",type:"select",options:[{label:"AOV Bundle Builder",value:"offer-bundle-builder"},{label:"AOV Child Product List",value:"offer-fixed"},{label:"AOV Frequently Bought",value:"offer-inline"},{label:"AOV Mix Match Bundle",value:"mix-match-offer-inline"},{label:"AOV Volume Discount",value:"offer-volume"}],default:"offer-bundle-builder"},{id:"install",type:"open-link",target:"_blank",linkType:"install",href:"",appName:l.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:e({handle:"aov-bundle-upsell"}),appName:l.label},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:[],uiV2:t};export{i as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e from"../../configs/AovFreeGiftBuyXGetYBogo.js";import
|
|
1
|
+
import{get3rdPartyAppStoreLink as e}from"../../common/helpers.js";import t from"../../configs/AovFreeGiftBuyXGetYBogo.js";import a from"./uiV2.js";let i={tag:t.tag,label:t.label,icon:'<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/b957b53ca225f32cac0ad2cd41f89a1f/icon/CI6dsMjDr4cDEAE=.png?width=22&height=22">',editorConfigs:{placeholder:{flowPage:"GP_PRODUCT"},component:{isThirdParty:!0}},presets:[{id:t.id,name:t.label,hideTextContent:!0,icon:{desktop:`<div class="w-full flex flex-col items-center">
|
|
2
2
|
<img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/b957b53ca225f32cac0ad2cd41f89a1f/icon/CI6dsMjDr4cDEAE=.png?width=22&height=22">
|
|
3
3
|
<span class="preset-item-title">AOV Free Gift Buy X Get Y BOGO</span>
|
|
4
|
-
</div>`},components:[{tag:
|
|
4
|
+
</div>`},components:[{tag:t.tag}]}],settings:[{id:"setting",controls:[{id:"appBlockId",type:"input",default:""},{id:"widgetType",label:"Choose widget",type:"select",options:[{label:"AOV Promotion Card",value:"avada-promotion-card"}],default:"avada-promotion-card"},{id:"install",type:"open-link",target:"_blank",linkType:"install",href:"",appName:t.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:e({handle:"avada-upsell"}),appName:t.label},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:[],uiV2:a};export{i as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e from"../../configs/AppointmentBookingCowlendar.js";import{get3rdPartyInstallLink as t}from"../../common/helpers.js";import
|
|
1
|
+
import e from"../../configs/AppointmentBookingCowlendar.js";import{get3rdPartyInstallLink as t,get3rdPartyAppStoreLink as i}from"../../common/helpers.js";import n from"./uiV2.js";let l={tag:e.tag,label:e.label,icon:'<img class="gp-w-6 gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/e297c43d07c087a231c656afcdca283f/icon/CP-e-oKX6PUCEAE=.png?width=22&height=22">',editorConfigs:{component:{isThirdParty:!0}},presets:[{id:e.id,name:e.label,hideTextContent:!0,icon:{desktop:`<div class="w-full flex flex-col items-center">
|
|
2
2
|
<img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/e297c43d07c087a231c656afcdca283f/icon/CP-e-oKX6PUCEAE=.png?width=22&height=22">
|
|
3
3
|
<span class="preset-item-title">Appointment Booking Cowlendar</span>
|
|
4
|
-
</div>`},components:[{tag:e.tag}]}],settings:[{id:"setting",controls:[{id:"appBlockId",type:"input",default:""},{id:"widgetType",label:"Choose widget",type:"select",options:[{label:"App Section",value:"app-section"}],default:"app-section"},{id:"install",type:"open-link",target:"_blank",linkType:"install",href:t({handle:"appointment-booking-cowlendar"}),appName:e.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"
|
|
4
|
+
</div>`},components:[{tag:e.tag}]}],settings:[{id:"setting",controls:[{id:"appBlockId",type:"input",default:""},{id:"widgetType",label:"Choose widget",type:"select",options:[{label:"App Section",value:"app-section"}],default:"app-section"},{id:"install",type:"open-link",target:"_blank",linkType:"install",href:t({handle:"appointment-booking-cowlendar"}),appName:e.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:i({handle:"cowlendar"}),appName:e.label},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:[],uiV2:n};export{l as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e from"../../configs/AppstleBundlesDiscounts.js";import{get3rdPartyInstallLink as l}from"../../common/helpers.js";import
|
|
1
|
+
import e from"../../configs/AppstleBundlesDiscounts.js";import{get3rdPartyInstallLink as l,get3rdPartyAppStoreLink as t}from"../../common/helpers.js";import p from"./uiV2.js";let i={tag:e.tag,label:e.label,icon:'<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/855ee74552c1cca133c12a4364890912/icon/CO69r8mp0oQDEAE=.png?width=22&height=22">',editorConfigs:{placeholder:{flowTag:["Product"]},component:{isThirdParty:!0}},presets:[{id:e.id,name:e.label,hideTextContent:!0,icon:{desktop:`<div class="w-full flex flex-col items-center">
|
|
2
2
|
<img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/855ee74552c1cca133c12a4364890912/icon/CO69r8mp0oQDEAE=.png?width=22&height=22">
|
|
3
3
|
<span class="preset-item-title">Appstle℠ Bundles & Discounts</span>
|
|
4
|
-
</div>`},components:[{tag:e.tag}]}],settings:[{id:"setting",controls:[{id:"appBlockId",type:"input",default:""},{id:"widgetType",label:"Choose widget",type:"select",options:[{label:"Classic Bundle",value:"appstle-classic-bundle"},{label:"Dynamic Bundle",value:"appstle-bundle-product-page-build-a-box"}],default:"appstle-classic-bundle"},{id:"install",type:"open-link",target:"_blank",linkType:"install",href:l({handle:"appstle-bundles-discounts"}),appName:e.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"
|
|
4
|
+
</div>`},components:[{tag:e.tag}]}],settings:[{id:"setting",controls:[{id:"appBlockId",type:"input",default:""},{id:"widgetType",label:"Choose widget",type:"select",options:[{label:"Classic Bundle",value:"appstle-classic-bundle"},{label:"Dynamic Bundle",value:"appstle-bundle-product-page-build-a-box"}],default:"appstle-classic-bundle"},{id:"install",type:"open-link",target:"_blank",linkType:"install",href:l({handle:"appstle-bundles-discounts"}),appName:e.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:t({handle:"appstle-bundles"}),appName:e.label},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:[],uiV2:p};export{i as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e from"../../configs/AppstleLoyaltyRewardProgram.js";import{get3rdPartyInstallLink as l}from"../../common/helpers.js";import
|
|
1
|
+
import e from"../../configs/AppstleLoyaltyRewardProgram.js";import{get3rdPartyInstallLink as l,get3rdPartyAppStoreLink as t}from"../../common/helpers.js";import a from"./uiV2.js";let o={tag:e.tag,label:e.label,icon:`<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="${e.logoUrl}">`,editorConfigs:{component:{isThirdParty:!0}},presets:[{id:e.id,name:e.label,hideTextContent:!0,icon:{desktop:`<div class="w-full flex flex-col items-center">
|
|
2
2
|
<img class="w-24 border border-dark-200 rounded-medium" src="${e.logoUrl}">
|
|
3
3
|
<span class="preset-item-title">${e.label}</span>
|
|
4
|
-
</div>`},components:[{tag:e.tag}]}],settings:[{id:"setting",controls:[{id:"install",type:"open-link",target:"_blank",linkType:"install",href:l({handle:"appstle-loyalty-reward-program"}),appName:e.label},{id:"widgetType",label:"Choose widget",type:"select",default:"loyalty_dedicated_page",options:[{label:"Loyalty Dedicated Page",value:"loyalty_dedicated_page"},{label:"Points Display on Product",value:"points_display_on_product",hideOnPage:["ARTICLE","BLOG","COLLECTION","GP_ARTICLE","GP_BLOG","GP_COLLECTION","GP_INDEX","GP_STATIC","STATIC"]},{label:"Points Display on Collections",value:"points_display_on_collections",hideOnPage:["ARTICLE","BLOG","GP_ARTICLE","GP_BLOG","GP_INDEX","GP_STATIC","STATIC"]}]},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"
|
|
4
|
+
</div>`},components:[{tag:e.tag}]}],settings:[{id:"setting",controls:[{id:"install",type:"open-link",target:"_blank",linkType:"install",href:l({handle:"appstle-loyalty-reward-program"}),appName:e.label},{id:"widgetType",label:"Choose widget",type:"select",default:"loyalty_dedicated_page",options:[{label:"Loyalty Dedicated Page",value:"loyalty_dedicated_page"},{label:"Points Display on Product",value:"points_display_on_product",hideOnPage:["ARTICLE","BLOG","COLLECTION","GP_ARTICLE","GP_BLOG","GP_COLLECTION","GP_INDEX","GP_STATIC","STATIC"]},{label:"Points Display on Collections",value:"points_display_on_collections",hideOnPage:["ARTICLE","BLOG","GP_ARTICLE","GP_BLOG","GP_INDEX","GP_STATIC","STATIC"]}]},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:t({handle:"appstle-loyalty"}),appName:e.label},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:[],uiV2:a};export{o as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import e from"../../configs/AppstleSubscriptions.js";import{get3rdPartyInstallLink as t}from"../../common/helpers.js";import
|
|
1
|
+
import e from"../../configs/AppstleSubscriptions.js";import{get3rdPartyInstallLink as l,get3rdPartyAppStoreLink as t}from"../../common/helpers.js";import i from"./uiV2.js";let p={tag:e.tag,label:e.label,icon:`<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="${e.logoUrl}?width=22&height=22">`,editorConfigs:{component:{isThirdParty:!0},placeholder:{flowTag:["Product"]}},presets:[{id:e.id,name:e.label,hideTextContent:!0,icon:{desktop:`
|
|
2
2
|
<div class="w-full flex flex-col items-center">
|
|
3
3
|
<img class="w-24 border border-dark-200 rounded-medium" src="${e.logoUrl}?width=22&height=22">
|
|
4
4
|
<span class="preset-item-title">${e.label}</span>
|
|
5
5
|
</div>
|
|
6
|
-
`},components:[{tag:e.tag}]}],settings:[{id:"setting",controls:[{id:"install",type:"open-link",target:"_blank",linkType:"install",href:
|
|
6
|
+
`},components:[{tag:e.tag}]}],settings:[{id:"setting",controls:[{id:"install",type:"open-link",target:"_blank",linkType:"install",href:l({handle:"appstle-subscriptions"}),appName:e.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:t({handle:"subscriptions-by-appstle"}),appName:e.label},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:[],uiV2:i};export{p as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{AppConfig as e}from"../../components/BestBuyFulfillment.js";import{get3rdPartyInstallLink as t}from"../../common/helpers.js";import
|
|
1
|
+
import{AppConfig as e}from"../../components/BestBuyFulfillment.js";import{get3rdPartyInstallLink as t,get3rdPartyAppStoreLink as l}from"../../common/helpers.js";import i from"./uiV2.js";let a={tag:e.tag,label:e.label,icon:'<img class="gp-w-6 gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/cff02298a65798558a8b2ec125eaa1e4/icon/CKzimdrIrIcDEAE=.png?width=22&height=22">',editorConfigs:{placeholder:{flowTag:["Product"]},component:{isThirdParty:!0}},presets:[{id:e.id,name:e.label,hideTextContent:!0,icon:{desktop:`<div class="w-full flex flex-col items-center">
|
|
2
2
|
<img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/cff02298a65798558a8b2ec125eaa1e4/icon/CKzimdrIrIcDEAE=.png?width=22&height=22">
|
|
3
3
|
<span class="preset-item-title">Best Buy Fulfillment</span>
|
|
4
|
-
</div>`},components:[{tag:e.tag}]}],settings:[{id:"setting",controls:[{id:"appBlockId",type:"input",default:""},{id:"widgetType",label:"Choose widget",type:"select",options:[{label:"Pickup Selector",value:"pickup-selector"}],default:"pickup-selector"},{id:"install",type:"open-link",target:"_blank",linkType:"install",href:t({handle:"best-buy-fullfilment"}),appName:e.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"
|
|
4
|
+
</div>`},components:[{tag:e.tag}]}],settings:[{id:"setting",controls:[{id:"appBlockId",type:"input",default:""},{id:"widgetType",label:"Choose widget",type:"select",options:[{label:"Pickup Selector",value:"pickup-selector"}],default:"pickup-selector"},{id:"install",type:"open-link",target:"_blank",linkType:"install",href:t({handle:"best-buy-fullfilment"}),appName:e.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:l({handle:"best-buy-fulfillment"}),appName:e.label},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:[],uiV2:i};export{a as default};
|