@gem-sdk/components 19.1.0-dev.13 → 19.1.0-dev.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/accordion/settings/configs/settings.js +2 -17
- package/dist/cjs/article/settings/ArticleAuthor.js +1 -1
- package/dist/cjs/article/settings/ArticleCategory.js +1 -1
- package/dist/cjs/article/settings/ArticleContent.js +1 -1
- package/dist/cjs/article/settings/ArticleDate.js +1 -1
- package/dist/cjs/article/settings/ArticleExcerpt.js +1 -1
- package/dist/cjs/article/settings/ArticleImage.js +1 -1
- package/dist/cjs/article/settings/ArticleList.js +1 -1
- package/dist/cjs/article/settings/ArticleReadMore.js +1 -1
- package/dist/cjs/article/settings/ArticleTag.js +1 -1
- package/dist/cjs/article/settings/ArticleTitle.js +1 -1
- package/dist/cjs/article/settings/configs/article-image/settings.js +1 -1
- package/dist/cjs/article/settings/configs/article-list/settings.js +1 -1
- package/dist/cjs/article/settings/configs/article-read-more/settings.js +2 -2
- package/dist/cjs/breadcrumb/settings/configs/settings.js +1 -1
- package/dist/cjs/button/common/helpers.js +1 -1
- package/dist/cjs/button/common/styles.js +1 -1
- package/dist/cjs/button/settings/configs/settings.js +2 -2
- package/dist/cjs/carousel/settings/Carousel.js +1 -1
- package/dist/cjs/carousel-v3/settings/Carousel.js +1 -1
- package/dist/cjs/code/settings/configs/settings.js +1 -1
- package/dist/cjs/collection/settings/collection-banner/configs/settings.js +1 -1
- package/dist/cjs/collection/settings/collection-description/configs/settings.js +1 -1
- package/dist/cjs/collection/settings/collection-paginator/configs/settings.js +1 -1
- package/dist/cjs/collection/settings/collection-title/configs/settings.js +1 -1
- package/dist/cjs/collection/settings/collection-toolbar/configs/settings.js +1 -1
- package/dist/cjs/coupon/settings/configs/settings.js +2 -2
- package/dist/cjs/dialog/settings/configs/settings.js +1 -1
- package/dist/cjs/estimate-delivery/settings/configs/settings.js +1 -1
- package/dist/cjs/form/settings/contact/configs/settings.js +1 -1
- package/dist/cjs/form/settings/submit-button/configs/settings.js +2 -2
- package/dist/cjs/grid/settings/configs/section/settings.js +1 -1
- package/dist/cjs/header/settings/configs/settings.js +2 -2
- package/dist/cjs/hero-banner/components/HeroBannerItem.js +1 -1
- package/dist/cjs/hero-banner/components/HeroBannerItem.liquid.js +4 -4
- package/dist/cjs/hero-banner/settings/configs/settings.js +1 -1
- package/dist/cjs/image/settings/configs/settings.js +1 -1
- package/dist/cjs/image-comparison/settings/configs/settings.js +1 -1
- package/dist/cjs/line/common/helpers.js +1 -1
- package/dist/cjs/line/common/styles.js +1 -1
- package/dist/cjs/line/settings/configs/settings.js +1 -1
- package/dist/cjs/marquee/settings/Marquee.js +1 -1
- package/dist/cjs/post-purchase/image/settings/Image.js +1 -1
- package/dist/cjs/post-purchase/product/settings/product-description/ProductDescription.js +1 -1
- package/dist/cjs/post-purchase/product/settings/product-discount-tag/ProductDiscountTag.js +1 -1
- package/dist/cjs/post-purchase/product/settings/product-image/ProductImages.js +1 -1
- package/dist/cjs/post-purchase/product/settings/product-offer/index.js +1 -1
- package/dist/cjs/post-purchase/product/settings/product-price/ProductPrice.js +1 -1
- package/dist/cjs/post-purchase/product/settings/product-title/ProductTitle.js +1 -1
- package/dist/cjs/post-purchase/product/settings/product-variants/ProductVariant.js +1 -1
- package/dist/cjs/post-purchase/text/settings/text/Text.js +1 -1
- package/dist/cjs/product/components/file-upload/settings/configs/settings.js +2 -2
- package/dist/cjs/product/settings/ProductList.js +1 -1
- package/dist/cjs/product/settings/ProductListV3.js +1 -1
- package/dist/cjs/product/settings/ProductProperties.js +1 -1
- package/dist/cjs/product/settings/dynamic-checkout/configs/settings.js +1 -1
- package/dist/cjs/product/settings/product/configs/settings.js +1 -1
- package/dist/cjs/product/settings/product-badge/configs/settings.js +1 -1
- package/dist/cjs/product/settings/product-button/configs/settings.js +2 -2
- package/dist/cjs/product/settings/product-image-v2/ProductImages.js +1 -1
- package/dist/cjs/product/settings/product-image-v3/ProductImages.js +1 -1
- package/dist/cjs/product/settings/product-list/configs/settings.js +1 -0
- package/dist/cjs/product/settings/product-list-v3/configs/settings.js +1 -0
- package/dist/cjs/product/settings/product-quantity/configs/settings.js +1 -1
- package/dist/cjs/product/settings/product-variant/configs/settings.js +1 -1
- package/dist/cjs/stock-counter/common/attrs.js +1 -1
- package/dist/cjs/stock-counter/common/helpers.js +1 -1
- package/dist/cjs/stock-counter/common/styles.js +1 -1
- package/dist/cjs/stock-counter/hooks/useStockCounter.js +1 -1
- package/dist/cjs/stock-counter/settings/StockCounter.js +1 -1
- package/dist/cjs/stock-counter/settings/configs/settings.js +2 -0
- package/dist/cjs/tab/settings/configs/settings.js +1 -1
- package/dist/cjs/text/settings/configs/settings.js +1 -1
- package/dist/esm/accordion/settings/configs/settings.js +2 -17
- package/dist/esm/article/settings/ArticleAuthor.js +2 -2
- package/dist/esm/article/settings/ArticleCategory.js +2 -2
- package/dist/esm/article/settings/ArticleContent.js +1 -1
- package/dist/esm/article/settings/ArticleDate.js +1 -1
- package/dist/esm/article/settings/ArticleExcerpt.js +1 -1
- package/dist/esm/article/settings/ArticleImage.js +1 -1
- package/dist/esm/article/settings/ArticleList.js +1 -1
- package/dist/esm/article/settings/ArticleReadMore.js +1 -1
- package/dist/esm/article/settings/ArticleTag.js +1 -1
- package/dist/esm/article/settings/ArticleTitle.js +1 -1
- package/dist/esm/article/settings/configs/article-image/settings.js +1 -1
- package/dist/esm/article/settings/configs/article-list/settings.js +1 -1
- package/dist/esm/article/settings/configs/article-read-more/settings.js +2 -2
- package/dist/esm/breadcrumb/settings/configs/settings.js +1 -1
- package/dist/esm/button/common/helpers.js +1 -1
- package/dist/esm/button/common/styles.js +1 -1
- package/dist/esm/button/settings/configs/settings.js +2 -2
- package/dist/esm/carousel/settings/Carousel.js +1 -1
- package/dist/esm/carousel-v3/settings/Carousel.js +1 -1
- package/dist/esm/code/settings/configs/settings.js +1 -1
- package/dist/esm/collection/settings/collection-banner/configs/settings.js +1 -1
- package/dist/esm/collection/settings/collection-description/configs/settings.js +1 -1
- package/dist/esm/collection/settings/collection-paginator/configs/settings.js +1 -1
- package/dist/esm/collection/settings/collection-title/configs/settings.js +1 -1
- package/dist/esm/collection/settings/collection-toolbar/configs/settings.js +1 -1
- package/dist/esm/coupon/settings/configs/settings.js +2 -2
- package/dist/esm/dialog/settings/configs/settings.js +1 -1
- package/dist/esm/estimate-delivery/settings/configs/settings.js +1 -1
- package/dist/esm/form/settings/contact/configs/settings.js +1 -1
- package/dist/esm/form/settings/submit-button/configs/settings.js +2 -2
- package/dist/esm/grid/settings/configs/section/settings.js +1 -1
- package/dist/esm/header/settings/configs/settings.js +2 -2
- package/dist/esm/hero-banner/components/HeroBannerItem.js +1 -1
- package/dist/esm/hero-banner/components/HeroBannerItem.liquid.js +7 -7
- package/dist/esm/hero-banner/settings/configs/settings.js +1 -1
- package/dist/esm/image/settings/configs/settings.js +1 -1
- package/dist/esm/image-comparison/settings/configs/settings.js +1 -1
- package/dist/esm/line/common/helpers.js +1 -1
- package/dist/esm/line/common/styles.js +1 -1
- package/dist/esm/line/settings/configs/settings.js +1 -1
- package/dist/esm/marquee/settings/Marquee.js +1 -1
- package/dist/esm/post-purchase/image/settings/Image.js +1 -1
- package/dist/esm/post-purchase/product/settings/product-description/ProductDescription.js +1 -1
- package/dist/esm/post-purchase/product/settings/product-discount-tag/ProductDiscountTag.js +1 -1
- package/dist/esm/post-purchase/product/settings/product-image/ProductImages.js +1 -1
- package/dist/esm/post-purchase/product/settings/product-offer/index.js +1 -1
- package/dist/esm/post-purchase/product/settings/product-price/ProductPrice.js +1 -1
- package/dist/esm/post-purchase/product/settings/product-title/ProductTitle.js +1 -1
- package/dist/esm/post-purchase/product/settings/product-variants/ProductVariant.js +1 -1
- package/dist/esm/post-purchase/text/settings/text/Text.js +1 -1
- package/dist/esm/product/components/file-upload/settings/configs/settings.js +2 -2
- package/dist/esm/product/settings/ProductList.js +1 -1
- package/dist/esm/product/settings/ProductListV3.js +1 -1
- package/dist/esm/product/settings/ProductProperties.js +1 -1
- package/dist/esm/product/settings/dynamic-checkout/configs/settings.js +1 -1
- package/dist/esm/product/settings/product/configs/settings.js +1 -1
- package/dist/esm/product/settings/product-badge/configs/settings.js +1 -1
- package/dist/esm/product/settings/product-button/configs/settings.js +2 -2
- package/dist/esm/product/settings/product-image-v2/ProductImages.js +1 -1
- package/dist/esm/product/settings/product-image-v3/ProductImages.js +1 -1
- package/dist/esm/product/settings/product-list/configs/settings.js +1 -0
- package/dist/esm/product/settings/product-list-v3/configs/settings.js +1 -0
- package/dist/esm/product/settings/product-quantity/configs/settings.js +1 -1
- package/dist/esm/product/settings/product-variant/configs/settings.js +1 -1
- package/dist/esm/stock-counter/common/attrs.js +1 -1
- package/dist/esm/stock-counter/common/helpers.js +4 -4
- package/dist/esm/stock-counter/common/styles.js +1 -1
- package/dist/esm/stock-counter/hooks/useStockCounter.js +1 -1
- package/dist/esm/stock-counter/settings/StockCounter.js +1 -1
- package/dist/esm/stock-counter/settings/configs/settings.js +2 -0
- package/dist/esm/tab/settings/configs/settings.js +1 -1
- package/dist/esm/text/settings/configs/settings.js +1 -1
- package/dist/types/index.d.ts +15 -29
- package/package.json +4 -4
- package/dist/cjs/product/settings/product-list/configs/settings-v2.js +0 -1
- package/dist/cjs/product/settings/product-list-v3/configs/settings-v2.js +0 -1
- package/dist/cjs/stock-counter/settings/configs/settings-v2.js +0 -2
- package/dist/esm/product/settings/product-list/configs/settings-v2.js +0 -1
- package/dist/esm/product/settings/product-list-v3/configs/settings-v2.js +0 -1
- package/dist/esm/stock-counter/settings/configs/settings-v2.js +0 -2
- /package/dist/cjs/carousel/settings/configs/{settings-v2.js → settings.js} +0 -0
- /package/dist/cjs/carousel-v3/settings/configs/{settings-v2.js → settings.js} +0 -0
- /package/dist/cjs/marquee/settings/configs/{settings-v2.js → settings.js} +0 -0
- /package/dist/cjs/post-purchase/image/settings/configs/{setting-v2.js → settings.js} +0 -0
- /package/dist/cjs/post-purchase/product/settings/product-description/configs/{settings-v2.js → settings.js} +0 -0
- /package/dist/cjs/post-purchase/product/settings/product-discount-tag/configs/{setting-v2.js → settings.js} +0 -0
- /package/dist/cjs/post-purchase/product/settings/product-image/configs/{settings-v2.js → settings.js} +0 -0
- /package/dist/cjs/post-purchase/product/settings/product-offer/configs/{settings-v2.js → settings.js} +0 -0
- /package/dist/cjs/post-purchase/product/settings/product-price/configs/{settings-v2.js → settings.js} +0 -0
- /package/dist/cjs/post-purchase/product/settings/product-title/configs/{settings-v2.js → settings.js} +0 -0
- /package/dist/cjs/post-purchase/product/settings/product-variants/configs/{settings-v2.js → settings.js} +0 -0
- /package/dist/cjs/post-purchase/text/settings/text/configs/{setting-v2.js → settings.js} +0 -0
- /package/dist/cjs/product/settings/product-image-v2/configs/{setting-v2 → settings}/ProductFeatureImage.js +0 -0
- /package/dist/cjs/product/settings/product-image-v2/configs/{setting-v2 → settings}/ProductGalleryImage.js +0 -0
- /package/dist/cjs/product/settings/product-image-v2/configs/{setting-v2 → settings}/index.js +0 -0
- /package/dist/cjs/product/settings/product-image-v3/configs/{setting-v2 → settings}/ProductFeatureImage.js +0 -0
- /package/dist/cjs/product/settings/product-image-v3/configs/{setting-v2 → settings}/ProductGalleryImage.js +0 -0
- /package/dist/cjs/product/settings/product-image-v3/configs/{setting-v2 → settings}/index.js +0 -0
- /package/dist/cjs/product/settings/product-properties/configs/{settings-v2.js → settings.js} +0 -0
- /package/dist/esm/carousel/settings/configs/{settings-v2.js → settings.js} +0 -0
- /package/dist/esm/carousel-v3/settings/configs/{settings-v2.js → settings.js} +0 -0
- /package/dist/esm/marquee/settings/configs/{settings-v2.js → settings.js} +0 -0
- /package/dist/esm/post-purchase/image/settings/configs/{setting-v2.js → settings.js} +0 -0
- /package/dist/esm/post-purchase/product/settings/product-description/configs/{settings-v2.js → settings.js} +0 -0
- /package/dist/esm/post-purchase/product/settings/product-discount-tag/configs/{setting-v2.js → settings.js} +0 -0
- /package/dist/esm/post-purchase/product/settings/product-image/configs/{settings-v2.js → settings.js} +0 -0
- /package/dist/esm/post-purchase/product/settings/product-offer/configs/{settings-v2.js → settings.js} +0 -0
- /package/dist/esm/post-purchase/product/settings/product-price/configs/{settings-v2.js → settings.js} +0 -0
- /package/dist/esm/post-purchase/product/settings/product-title/configs/{settings-v2.js → settings.js} +0 -0
- /package/dist/esm/post-purchase/product/settings/product-variants/configs/{settings-v2.js → settings.js} +0 -0
- /package/dist/esm/post-purchase/text/settings/text/configs/{setting-v2.js → settings.js} +0 -0
- /package/dist/esm/product/settings/product-image-v2/configs/{setting-v2 → settings}/ProductFeatureImage.js +0 -0
- /package/dist/esm/product/settings/product-image-v2/configs/{setting-v2 → settings}/ProductGalleryImage.js +0 -0
- /package/dist/esm/product/settings/product-image-v2/configs/{setting-v2 → settings}/index.js +0 -0
- /package/dist/esm/product/settings/product-image-v3/configs/{setting-v2 → settings}/ProductFeatureImage.js +0 -0
- /package/dist/esm/product/settings/product-image-v3/configs/{setting-v2 → settings}/ProductGalleryImage.js +0 -0
- /package/dist/esm/product/settings/product-image-v3/configs/{setting-v2 → settings}/index.js +0 -0
- /package/dist/esm/product/settings/product-properties/configs/{settings-v2.js → settings.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{settingV2 as C}from"./configs/
|
|
1
|
+
import{settingV2 as C}from"./configs/settings.js";import{SettingUIV2 as o}from"./configs/ui-v2.js";let t={tag:"PostPurchaseProductDiscountTag",label:"Discount Tag",icon:"",settings:C,ui:[],uiV2:o,editorConfigs:{placeholder:{flowTag:["Product"]}},presets:[{id:"PostPurchaseProductDiscountTag",name:"Discount Tag",icon:{desktop:`<svg width="94" height="14" viewBox="0 0 94 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
2
|
<path d="M15.7663 6.63636C15.7663 5.56818 15.907 4.58523 16.1882 3.6875C16.4695 2.78977 16.88 1.96165 17.4197 1.20312H18.5874C18.3771 1.48438 18.1811 1.82955 17.9993 2.23864C17.8175 2.64773 17.6584 3.09659 17.522 3.58523C17.3857 4.07102 17.2791 4.57528 17.2024 5.09801C17.1257 5.6179 17.0874 6.13068 17.0874 6.63636C17.0874 7.3125 17.1541 7.99716 17.2876 8.69034C17.4212 9.38352 17.6016 10.027 17.8288 10.6207C18.0561 11.2145 18.3089 11.6989 18.5874 12.0739H17.4197C16.88 11.3153 16.4695 10.4872 16.1882 9.58949C15.907 8.69176 15.7663 7.70739 15.7663 6.63636ZM24.793 4.56534C24.7475 4.16193 24.56 3.84943 24.2305 3.62784C23.9009 3.40341 23.4862 3.29119 22.9862 3.29119C22.6282 3.29119 22.3185 3.34801 22.0572 3.46165C21.7958 3.57244 21.5927 3.72585 21.4478 3.92188C21.3058 4.11506 21.2347 4.33523 21.2347 4.58239C21.2347 4.78977 21.283 4.96875 21.3796 5.11932C21.479 5.26989 21.6083 5.39631 21.7674 5.49858C21.9293 5.59801 22.1026 5.68182 22.2873 5.75C22.4719 5.81534 22.6495 5.86932 22.82 5.91193L23.6722 6.13352C23.9506 6.2017 24.2362 6.29403 24.5288 6.41051C24.8214 6.52699 25.0927 6.6804 25.3427 6.87074C25.5927 7.06108 25.7944 7.29688 25.9478 7.57812C26.104 7.85938 26.1822 8.19602 26.1822 8.58807C26.1822 9.08239 26.0543 9.52131 25.7987 9.90483C25.5458 10.2884 25.1779 10.5909 24.695 10.8125C24.2148 11.0341 23.6339 11.1449 22.9521 11.1449C22.2987 11.1449 21.7333 11.0412 21.256 10.8338C20.7788 10.6264 20.4052 10.3324 20.1353 9.9517C19.8654 9.56818 19.7163 9.11364 19.6879 8.58807H21.0089C21.0344 8.90341 21.1367 9.16619 21.3157 9.37642C21.4975 9.58381 21.729 9.73864 22.0103 9.84091C22.2944 9.94034 22.6055 9.99006 22.9435 9.99006C23.3157 9.99006 23.6467 9.93182 23.9364 9.81534C24.229 9.69602 24.4592 9.53125 24.6268 9.32102C24.7944 9.10795 24.8782 8.85937 24.8782 8.57528C24.8782 8.31676 24.8043 8.10511 24.6566 7.94034C24.5117 7.77557 24.3143 7.6392 24.0643 7.53125C23.8171 7.4233 23.5373 7.32812 23.2248 7.24574L22.1935 6.96449C21.4947 6.77415 20.9407 6.49432 20.5316 6.125C20.1254 5.75568 19.9222 5.26705 19.9222 4.65909C19.9222 4.15625 20.0586 3.71733 20.3313 3.34233C20.604 2.96733 20.9734 2.67614 21.4393 2.46875C21.9052 2.25852 22.4308 2.15341 23.016 2.15341C23.6069 2.15341 24.1282 2.2571 24.5799 2.46449C25.0344 2.67188 25.3924 2.95739 25.6538 3.32102C25.9151 3.68182 26.0515 4.09659 26.0629 4.56534H24.793ZM29.5582 11.1449C29.1435 11.1449 28.7685 11.0682 28.4332 10.9148C28.098 10.7585 27.8324 10.5327 27.6364 10.2372C27.4432 9.94176 27.3466 9.57955 27.3466 9.15057C27.3466 8.78125 27.4176 8.47727 27.5597 8.23864C27.7017 8 27.8935 7.81108 28.1349 7.67188C28.3764 7.53267 28.6463 7.42756 28.9446 7.35653C29.2429 7.28551 29.5469 7.23153 29.8565 7.1946C30.2486 7.14915 30.5668 7.11222 30.8111 7.08381C31.0554 7.05256 31.233 7.00284 31.3438 6.93466C31.4545 6.86648 31.5099 6.75568 31.5099 6.60227V6.57244C31.5099 6.20028 31.4048 5.91193 31.1946 5.70739C30.9872 5.50284 30.6776 5.40057 30.2656 5.40057C29.8366 5.40057 29.4986 5.49574 29.2514 5.68608C29.0071 5.87358 28.8381 6.08239 28.7443 6.3125L27.5469 6.03977C27.6889 5.64205 27.8963 5.32102 28.169 5.0767C28.4446 4.82955 28.7614 4.65057 29.1193 4.53977C29.4773 4.42614 29.8537 4.36932 30.2486 4.36932C30.5099 4.36932 30.7869 4.40057 31.0795 4.46307C31.375 4.52273 31.6506 4.63352 31.9062 4.79545C32.1648 4.95739 32.3764 5.18892 32.5412 5.49006C32.706 5.78835 32.7884 6.17614 32.7884 6.65341V11H31.544V10.1051H31.4929C31.4105 10.2699 31.2869 10.4318 31.1222 10.5909C30.9574 10.75 30.7457 10.8821 30.4872 10.9872C30.2287 11.0923 29.919 11.1449 29.5582 11.1449ZM29.8352 10.1222C30.1875 10.1222 30.4886 10.0526 30.7386 9.91335C30.9915 9.77415 31.1832 9.59233 31.3139 9.3679C31.4474 9.14062 31.5142 8.89773 31.5142 8.6392V7.79545C31.4688 7.84091 31.3807 7.88352 31.25 7.9233C31.1222 7.96023 30.9759 7.9929 30.8111 8.02131C30.6463 8.04687 30.4858 8.07102 30.3295 8.09375C30.1733 8.11364 30.0426 8.13068 29.9375 8.14489C29.6903 8.17614 29.4645 8.22869 29.2599 8.30256C29.0582 8.37642 28.8963 8.48295 28.7741 8.62216C28.6548 8.75852 28.5952 8.94034 28.5952 9.16761C28.5952 9.48295 28.7116 9.72159 28.9446 9.88352C29.1776 10.0426 29.4744 10.1222 29.8352 10.1222ZM39.8505 4.45455L37.4769 11H36.1133L33.7354 4.45455H35.1033L36.761 9.49148H36.8292L38.4826 4.45455H39.8505ZM43.6463 11.1321C43.0014 11.1321 42.446 10.9943 41.9801 10.7188C41.517 10.4403 41.1591 10.0497 40.9062 9.54688C40.6562 9.04119 40.5312 8.44886 40.5312 7.76989C40.5312 7.09943 40.6562 6.50852 40.9062 5.99716C41.1591 5.4858 41.5114 5.08665 41.9631 4.79972C42.4176 4.51278 42.9489 4.36932 43.5568 4.36932C43.9261 4.36932 44.2841 4.4304 44.6307 4.55256C44.9773 4.67472 45.2884 4.86648 45.5639 5.12784C45.8395 5.3892 46.0568 5.72869 46.2159 6.14631C46.375 6.56108 46.4545 7.06534 46.4545 7.65909V8.1108H41.2514V7.15625H45.206C45.206 6.82102 45.1378 6.52415 45.0014 6.26562C44.8651 6.00426 44.6733 5.7983 44.4261 5.64773C44.1818 5.49716 43.8949 5.42188 43.5653 5.42188C43.2074 5.42188 42.8949 5.50994 42.6278 5.68608C42.3636 5.85937 42.1591 6.08665 42.0142 6.3679C41.8722 6.64631 41.8011 6.94886 41.8011 7.27557V8.02131C41.8011 8.45881 41.8778 8.83097 42.0312 9.13778C42.1875 9.4446 42.4048 9.67898 42.6832 9.84091C42.9616 10 43.2869 10.0795 43.6591 10.0795C43.9006 10.0795 44.1207 10.0455 44.3196 9.97727C44.5185 9.90625 44.6903 9.80114 44.8352 9.66193C44.9801 9.52273 45.0909 9.35085 45.1676 9.14631L46.3736 9.36364C46.277 9.71875 46.1037 10.0298 45.8537 10.2969C45.6065 10.5611 45.2955 10.767 44.9205 10.9148C44.5483 11.0597 44.1236 11.1321 43.6463 11.1321ZM51.027 11V10.0455L53.9801 6.9858C54.2955 6.65341 54.5554 6.36222 54.7599 6.11222C54.9673 5.85937 55.1222 5.61932 55.2244 5.39205C55.3267 5.16477 55.3778 4.9233 55.3778 4.66761C55.3778 4.37784 55.3097 4.12784 55.1733 3.91761C55.0369 3.70455 54.8509 3.54119 54.6151 3.42756C54.3793 3.31108 54.1136 3.25284 53.8182 3.25284C53.5057 3.25284 53.233 3.31676 53 3.4446C52.767 3.57244 52.5881 3.75284 52.4631 3.9858C52.3381 4.21875 52.2756 4.49148 52.2756 4.80398H51.0185C51.0185 4.27273 51.1406 3.80824 51.3849 3.41051C51.6293 3.01278 51.9645 2.70455 52.3906 2.4858C52.8168 2.2642 53.3011 2.15341 53.8438 2.15341C54.392 2.15341 54.875 2.26278 55.2926 2.48153C55.7131 2.69744 56.0412 2.9929 56.277 3.3679C56.5128 3.74006 56.6307 4.16051 56.6307 4.62926C56.6307 4.95312 56.5696 5.26989 56.4474 5.57955C56.3281 5.8892 56.1193 6.23437 55.821 6.61506C55.5227 6.9929 55.108 7.4517 54.5767 7.99148L52.8423 9.80682V9.87074H56.7713V11H51.027ZM61.267 11.1193C60.733 11.1193 60.2528 11.017 59.8267 10.8125C59.4034 10.6051 59.0653 10.321 58.8125 9.96023C58.5597 9.59943 58.4247 9.1875 58.4077 8.72443H59.6861C59.7173 9.09943 59.8835 9.40767 60.1847 9.64915C60.4858 9.89062 60.8466 10.0114 61.267 10.0114C61.6023 10.0114 61.8991 9.93466 62.1577 9.78125C62.419 9.625 62.6236 9.41051 62.7713 9.13778C62.9219 8.86506 62.9972 8.55398 62.9972 8.20455C62.9972 7.84943 62.9205 7.53267 62.767 7.25426C62.6136 6.97585 62.402 6.7571 62.1321 6.59801C61.8651 6.43892 61.5582 6.35795 61.2116 6.35511C60.9474 6.35511 60.6818 6.40057 60.4148 6.49148C60.1477 6.58239 59.9318 6.7017 59.767 6.84943L58.5611 6.67045L59.0511 2.27273H63.8494V3.40199H60.1463L59.8693 5.84375H59.9205C60.0909 5.67898 60.3168 5.54119 60.598 5.4304C60.8821 5.3196 61.1861 5.2642 61.5099 5.2642C62.0412 5.2642 62.5142 5.39062 62.929 5.64347C63.3466 5.89631 63.6747 6.24148 63.9134 6.67898C64.1548 7.11364 64.2741 7.61364 64.2713 8.17898C64.2741 8.74432 64.1463 9.24858 63.8878 9.69176C63.6321 10.1349 63.277 10.4844 62.8224 10.7401C62.3707 10.9929 61.8523 11.1193 61.267 11.1193ZM70.3832 9.36364V8.90341C70.3832 8.57386 70.4513 8.27273 70.5877 8C70.7269 7.72443 70.9286 7.50426 71.1928 7.33949C71.4599 7.17187 71.7823 7.08807 72.1602 7.08807C72.5465 7.08807 72.8704 7.17045 73.1317 7.33523C73.3931 7.5 73.5906 7.72017 73.7241 7.99574C73.8604 8.27131 73.9286 8.57386 73.9286 8.90341V9.36364C73.9286 9.69318 73.8604 9.99574 73.7241 10.2713C73.5877 10.544 73.3874 10.7642 73.1232 10.9318C72.8619 11.0966 72.5408 11.179 72.1602 11.179C71.7766 11.179 71.4528 11.0966 71.1886 10.9318C70.9244 10.7642 70.7241 10.544 70.5877 10.2713C70.4513 9.99574 70.3832 9.69318 70.3832 9.36364ZM71.3761 8.90341V9.36364C71.3761 9.60795 71.4343 9.82955 71.5508 10.0284C71.6673 10.2273 71.8704 10.3267 72.1602 10.3267C72.4471 10.3267 72.6474 10.2273 72.761 10.0284C72.8746 9.82955 72.9315 9.60795 72.9315 9.36364V8.90341C72.9315 8.65909 72.8761 8.4375 72.7653 8.23864C72.6573 8.03977 72.4556 7.94034 72.1602 7.94034C71.8761 7.94034 71.6744 8.03977 71.555 8.23864C71.4357 8.4375 71.3761 8.65909 71.3761 8.90341ZM65.994 4.36932V3.90909C65.994 3.57955 66.0621 3.27699 66.1985 3.00142C66.3377 2.72585 66.5394 2.50568 66.8036 2.34091C67.0707 2.17614 67.3931 2.09375 67.771 2.09375C68.1573 2.09375 68.4812 2.17614 68.7425 2.34091C69.0039 2.50568 69.2013 2.72585 69.3349 3.00142C69.4684 3.27699 69.5352 3.57955 69.5352 3.90909V4.36932C69.5352 4.69886 69.467 5.00142 69.3306 5.27699C69.1971 5.54972 68.9982 5.76989 68.734 5.9375C68.4727 6.10227 68.1516 6.18466 67.771 6.18466C67.3846 6.18466 67.0593 6.10227 66.7951 5.9375C66.5337 5.76989 66.3349 5.54972 66.1985 5.27699C66.0621 5.00142 65.994 4.69886 65.994 4.36932ZM66.9911 3.90909V4.36932C66.9911 4.61364 67.0479 4.83523 67.1616 5.03409C67.2781 5.23295 67.4812 5.33239 67.771 5.33239C68.055 5.33239 68.2539 5.23295 68.3675 5.03409C68.484 4.83523 68.5423 4.61364 68.5423 4.36932V3.90909C68.5423 3.66477 68.4869 3.44318 68.3761 3.24432C68.2653 3.04545 68.0636 2.94602 67.771 2.94602C67.4869 2.94602 67.2852 3.04545 67.1658 3.24432C67.0494 3.44318 66.9911 3.66477 66.9911 3.90909ZM66.3988 11L72.3988 2.27273H73.4173L67.4173 11H66.3988ZM78.2326 6.63636C78.2326 7.70739 78.092 8.69176 77.8107 9.58949C77.5295 10.4872 77.119 11.3153 76.5792 12.0739H75.4116C75.6218 11.7926 75.8178 11.4474 75.9996 11.0384C76.1815 10.6293 76.3406 10.1818 76.4769 9.69602C76.6133 9.20739 76.7198 8.7017 76.7965 8.17898C76.8732 7.65625 76.9116 7.14205 76.9116 6.63636C76.9116 5.96307 76.8448 5.27983 76.7113 4.58665C76.5778 3.89347 76.3974 3.25 76.1701 2.65625C75.9428 2.0625 75.69 1.57812 75.4116 1.20312H76.5792C77.119 1.96165 77.5295 2.78977 77.8107 3.6875C78.092 4.58523 78.2326 5.56818 78.2326 6.63636Z" fill="#F9F9F9"/>
|
|
3
3
|
</svg>
|
|
4
4
|
`},components:[{tag:"PostPurchaseProductDiscountTag",advanced:{blockPadding:"none",inlinePadding:"none"}}]}]};export{t as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{SettingUIV2 as t}from"./configs/ui-v2.js";import{SettingV2 as e}from"./configs/settings
|
|
1
|
+
import{SettingUIV2 as t}from"./configs/ui-v2.js";import{SettingV2 as e}from"./configs/settings.js";let i={tag:"PostPurchaseProductImages",label:"Product Images",icon:`
|
|
2
2
|
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
3
|
<path d="M13.3337 14.6666C13.3337 16.1333 12.1337 17.3333 10.667 17.3333C9.20033 17.3333 8.00033 16.1333 8.00033 14.6666C8.00033 13.2 9.20033 12 10.667 12C12.1337 12 13.3337 13.2 13.3337 14.6666ZM27.3741 14.8404C26.9836 14.4499 26.3504 14.4499 25.9599 14.8404L16.667 24.1333L14.0346 21.6062C13.6442 21.2314 13.0267 21.2352 12.6409 21.6145L5.33366 28.8V9.33329H34.667V22.1333L27.3741 14.8404ZM34.667 30.6666H23.2003L18.5337 26L26.667 17.8666L34.667 25.8666V30.6666ZM7.33366 30.6666L13.467 24.6666L19.467 30.6666H7.33366ZM3.66699 6.66663C3.11471 6.66663 2.66699 7.11434 2.66699 7.66663V31.4666V32.3333C2.66699 32.8856 3.11471 33.3333 3.66699 33.3333H25.867H36.3337C36.8859 33.3333 37.3337 32.8856 37.3337 32.3333V30.6666V28.5333V24.8V7.66662C37.3337 7.11434 36.8859 6.66663 36.3337 6.66663H3.66699Z" fill="currentColor"/>
|
|
4
4
|
</svg>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{postPurchaseProductOfferDefault as o}from"../presets-config/product-presets/product-offer-default.js";import{postPurchaseProduct1Col as r}from"../presets-config/product-presets/product-offer-1-col.js";import{postPurchaseProduct2Col as t}from"../presets-config/product-presets/product-offer-2-col.js";import{SettingUIV2 as e}from"./configs/ui-v2.js";import{SettingV2 as C}from"./configs/settings
|
|
1
|
+
import{postPurchaseProductOfferDefault as o}from"../presets-config/product-presets/product-offer-default.js";import{postPurchaseProduct1Col as r}from"../presets-config/product-presets/product-offer-1-col.js";import{postPurchaseProduct2Col as t}from"../presets-config/product-presets/product-offer-2-col.js";import{SettingUIV2 as e}from"./configs/ui-v2.js";import{SettingV2 as C}from"./configs/settings.js";let s={tag:"PostPurchaseProductOffer",label:"Product Offer",icon:`
|
|
2
2
|
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
3
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M14.9075 7.10422C14.6295 6.47277 13.981 6.06462 13.268 6.12193C12.8111 6.15866 12.0129 6.23149 11.1972 6.34772C10.4162 6.459 9.4973 6.62566 8.86739 6.88284C8.4425 7.05632 7.96973 7.41721 7.56476 7.7561C7.12514 8.12398 6.63889 8.57624 6.16347 9.03928C5.21082 9.96712 4.25521 10.9838 3.72156 11.5611C3.02665 12.3128 3.18213 13.4862 4.00429 14.0501L7.14594 16.205V26.2444C7.14594 27.1568 7.8833 27.9057 8.80445 27.9057H23.246C24.1672 27.9057 24.9045 27.1568 24.9045 26.2444V16.205L28.0603 14.0405C28.8678 13.4866 29.0361 12.3395 28.3699 11.5829C27.861 11.005 26.9438 9.98417 26.0115 9.05136C25.5463 8.58586 25.0644 8.12923 24.6192 7.75674C24.2068 7.41161 23.7187 7.04517 23.2589 6.87191C22.0504 6.41643 20.0388 6.19802 19.2897 6.12638C18.6177 6.06213 17.9943 6.4147 17.6856 6.98594L16.1261 9.87237L14.9075 7.10422ZM11.5075 8.52572C12.0668 8.44603 12.6236 8.38769 13.0516 8.3486L14.5589 11.7725C15.1148 13.0353 16.8782 13.1086 17.535 11.8929L19.4471 8.35398C20.3297 8.45016 21.7155 8.64129 22.4831 8.93056C22.5609 8.9599 22.7999 9.10299 23.2073 9.44391C23.582 9.75746 24.0125 10.1634 24.4555 10.6066C25.1311 11.2825 25.8054 12.0148 26.3079 12.5747L23.426 14.5514C22.9732 14.862 22.7045 15.3755 22.7045 15.9221V25.7057H9.34594V15.9221C9.34594 15.3755 9.07722 14.862 8.62448 14.5514L5.76791 12.592C6.29559 12.03 7.00098 11.2946 7.69845 10.6153C8.1553 10.1703 8.59719 9.76082 8.97664 9.44329C9.16639 9.2845 9.33077 9.15694 9.46645 9.06238C9.53381 9.01545 9.58879 8.98036 9.63189 8.95523C9.65312 8.94286 9.66967 8.93395 9.68177 8.92783C9.69405 8.92163 9.69897 8.91962 9.69897 8.91962C10.0488 8.7768 10.7201 8.63792 11.5075 8.52572Z" fill="currentColor"/>
|
|
4
4
|
<path d="M30.2528 21.8121C29.8846 21.8121 29.5862 21.5136 29.5862 21.1454V20.0645C29.5862 19.6963 29.8846 19.3978 30.2528 19.3978H36.3481C36.7163 19.3978 37.0147 19.6963 37.0147 20.0645V21.1454C37.0147 21.5136 36.7163 21.8121 36.3481 21.8121H30.2528Z" fill="currentColor"/>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{settingV2 as C}from"./configs/settings
|
|
1
|
+
import{settingV2 as C}from"./configs/settings.js";import{SettingUIV2 as e}from"./configs/ui-v2.js";let o={tag:"PostPurchaseProductPrice",label:"Price",icon:`
|
|
2
2
|
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
3
|
<path d="M36.1267 28.2963H24.6981V25.926C25.9679 25.6889 27.7457 24.6223 27.7457 22.2519C27.7457 21.0667 27.3648 20.2371 26.7298 19.6445C25.8409 18.8149 24.8251 18.8149 24.6981 18.8149H22.1584C22.1584 18.8149 21.9044 18.8149 21.7775 18.6963C21.5235 18.4593 21.5235 18.1037 21.5235 17.7482C21.5235 16.8 22.0314 16.563 22.4124 16.4445H26.8648C27.1409 16.4445 27.3648 16.2206 27.3648 15.9445V14.5741C27.3648 14.298 27.1409 14.0741 26.8648 14.0741H24.8251V11.7037H36.2536V28.2963H36.1267ZM13.7775 28.2963L4.88856 20L13.7775 11.7037H22.1584V14.0741C20.8886 14.1926 18.8568 15.2593 18.8568 17.7482C18.8568 19.0519 19.3648 19.8815 19.8727 20.3556C20.7616 21.1852 22.0314 21.1852 22.1584 21.1852H24.6981C25.206 21.1852 25.206 21.8963 25.206 22.2519C25.206 23.2 24.6981 23.4371 24.3171 23.5556H20.1187C19.8426 23.5556 19.6187 23.7795 19.6187 24.0556V25.426C19.6187 25.7021 19.8426 25.926 20.1187 25.926H22.1584V28.2963H13.7775ZM12.9587 9.33337C12.832 9.33337 12.7101 9.38143 12.6175 9.46785L1.72465 19.6345C1.51286 19.8322 1.51286 20.1679 1.72464 20.3656L12.6175 30.5322C12.7101 30.6186 12.832 30.6667 12.9587 30.6667H38.1663C38.4425 30.6667 38.6663 30.4428 38.6663 30.1667V9.83337C38.6663 9.55723 38.4425 9.33337 38.1663 9.33337H12.9587Z" fill="currentColor"/>
|
|
4
4
|
</svg>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{SettingUIV2 as C}from"./configs/ui-v2.js";import{settingV2 as V}from"./configs/settings
|
|
1
|
+
import{SettingUIV2 as C}from"./configs/ui-v2.js";import{settingV2 as V}from"./configs/settings.js";let H={tag:"PostPurchaseProductTitle",label:"Product Title",icon:`
|
|
2
2
|
<svg width="96" height="48" viewBox="0 0 96 48" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
3
|
<path d="M15.0639 18.875V17.3636H24.0696V18.875H20.4389V29H18.6889V18.875H15.0639ZM28.3338 29.1761C27.5156 29.1761 26.8016 28.9886 26.1918 28.6136C25.5819 28.2386 25.1084 27.714 24.7713 27.0398C24.4342 26.3655 24.2656 25.5777 24.2656 24.6761C24.2656 23.7708 24.4342 22.9792 24.7713 22.3011C25.1084 21.6231 25.5819 21.0966 26.1918 20.7216C26.8016 20.3466 27.5156 20.1591 28.3338 20.1591C29.152 20.1591 29.866 20.3466 30.4759 20.7216C31.0857 21.0966 31.5592 21.6231 31.8963 22.3011C32.2334 22.9792 32.402 23.7708 32.402 24.6761C32.402 25.5777 32.2334 26.3655 31.8963 27.0398C31.5592 27.714 31.0857 28.2386 30.4759 28.6136C29.866 28.9886 29.152 29.1761 28.3338 29.1761ZM28.3395 27.75C28.8698 27.75 29.3092 27.6098 29.6577 27.3295C30.0062 27.0492 30.2637 26.6761 30.4304 26.2102C30.6009 25.7443 30.6861 25.2311 30.6861 24.6705C30.6861 24.1136 30.6009 23.6023 30.4304 23.1364C30.2637 22.6667 30.0062 22.2898 29.6577 22.0057C29.3092 21.7216 28.8698 21.5795 28.3395 21.5795C27.8054 21.5795 27.3622 21.7216 27.0099 22.0057C26.6615 22.2898 26.402 22.6667 26.2315 23.1364C26.0649 23.6023 25.9815 24.1136 25.9815 24.6705C25.9815 25.2311 26.0649 25.7443 26.2315 26.2102C26.402 26.6761 26.6615 27.0492 27.0099 27.3295C27.3622 27.6098 27.8054 27.75 28.3395 27.75ZM38.3722 20.2727V21.6364H33.6051V20.2727H38.3722ZM34.8835 18.1818H36.5824V26.4375C36.5824 26.767 36.6316 27.0152 36.7301 27.1818C36.8286 27.3447 36.9555 27.4564 37.1108 27.517C37.2699 27.5739 37.4422 27.6023 37.6278 27.6023C37.7642 27.6023 37.8835 27.5928 37.9858 27.5739C38.0881 27.5549 38.1676 27.5398 38.2244 27.5284L38.5312 28.9318C38.4328 28.9697 38.2926 29.0076 38.1108 29.0455C37.929 29.0871 37.7017 29.1098 37.429 29.1136C36.982 29.1212 36.5653 29.0417 36.179 28.875C35.7926 28.7083 35.4801 28.4508 35.2415 28.1023C35.0028 27.7538 34.8835 27.3163 34.8835 26.7898V18.1818ZM43.919 29.1761C43.0592 29.1761 42.3187 28.9924 41.6974 28.625C41.08 28.2538 40.6027 27.733 40.2656 27.0625C39.9323 26.3883 39.7656 25.5985 39.7656 24.6932C39.7656 23.7992 39.9323 23.0114 40.2656 22.3295C40.6027 21.6477 41.0724 21.1155 41.6747 20.733C42.2808 20.3504 42.9891 20.1591 43.7997 20.1591C44.2921 20.1591 44.7694 20.2405 45.2315 20.4034C45.6937 20.5663 46.1084 20.822 46.4759 21.1705C46.8433 21.5189 47.133 21.9716 47.3452 22.5284C47.5573 23.0814 47.6634 23.7538 47.6634 24.5455V25.1477H40.7259V23.875H45.9986C45.9986 23.428 45.9077 23.0322 45.7259 22.6875C45.544 22.339 45.2884 22.0644 44.9588 21.8636C44.633 21.6629 44.2505 21.5625 43.8111 21.5625C43.3338 21.5625 42.9171 21.6799 42.5611 21.9148C42.2088 22.1458 41.9361 22.4489 41.7429 22.8239C41.5535 23.1951 41.4588 23.5985 41.4588 24.0341V25.0284C41.4588 25.6117 41.5611 26.108 41.7656 26.517C41.974 26.9261 42.2637 27.2386 42.6349 27.4545C43.0062 27.6667 43.4399 27.7727 43.9361 27.7727C44.258 27.7727 44.5516 27.7273 44.8168 27.6364C45.0819 27.5417 45.3111 27.4015 45.5043 27.2159C45.6974 27.0303 45.8452 26.8011 45.9474 26.5284L47.5554 26.8182C47.4266 27.2917 47.1955 27.7064 46.8622 28.0625C46.5327 28.4148 46.1179 28.6894 45.6179 28.8864C45.1217 29.0795 44.5554 29.1761 43.919 29.1761ZM53.919 29V17.3636H55.6179V21.6875H55.7202C55.8187 21.5057 55.9607 21.2955 56.1463 21.0568C56.3319 20.8182 56.5895 20.6098 56.919 20.4318C57.2486 20.25 57.6842 20.1591 58.2259 20.1591C58.9304 20.1591 59.5592 20.3371 60.1122 20.6932C60.6652 21.0492 61.099 21.5625 61.4134 22.233C61.7315 22.9034 61.8906 23.7102 61.8906 24.6534C61.8906 25.5966 61.7334 26.4053 61.419 27.0795C61.1046 27.75 60.6728 28.267 60.1236 28.6307C59.5743 28.9905 58.9474 29.1705 58.2429 29.1705C57.7126 29.1705 57.2789 29.0814 56.9418 28.9034C56.6084 28.7254 56.3471 28.517 56.1577 28.2784C55.9683 28.0398 55.8224 27.8277 55.7202 27.642H55.5781V29H53.919ZM55.5838 24.6364C55.5838 25.25 55.6728 25.7879 55.8509 26.25C56.0289 26.7121 56.2865 27.0739 56.6236 27.3352C56.9607 27.5928 57.3736 27.7216 57.8622 27.7216C58.3698 27.7216 58.794 27.5871 59.1349 27.3182C59.4759 27.0455 59.7334 26.6761 59.9077 26.2102C60.0857 25.7443 60.1747 25.2197 60.1747 24.6364C60.1747 24.0606 60.0876 23.5436 59.9134 23.0852C59.7429 22.6269 59.4853 22.2652 59.1406 22C58.7997 21.7348 58.3736 21.6023 57.8622 21.6023C57.3698 21.6023 56.9531 21.7292 56.6122 21.983C56.2751 22.2367 56.0194 22.5909 55.8452 23.0455C55.6709 23.5 55.5838 24.0303 55.5838 24.6364ZM66.3381 29.1932C65.785 29.1932 65.285 29.0909 64.8381 28.8864C64.3911 28.678 64.0369 28.3769 63.7756 27.983C63.518 27.589 63.3892 27.1061 63.3892 26.5341C63.3892 26.0417 63.4839 25.6364 63.6733 25.3182C63.8627 25 64.1184 24.7481 64.4403 24.5625C64.7623 24.3769 65.1222 24.2367 65.5199 24.142C65.9176 24.0473 66.3229 23.9754 66.7358 23.9261C67.2585 23.8655 67.6828 23.8163 68.0085 23.7784C68.3343 23.7367 68.571 23.6705 68.7188 23.5795C68.8665 23.4886 68.9403 23.3409 68.9403 23.1364V23.0966C68.9403 22.6004 68.8002 22.2159 68.5199 21.9432C68.2434 21.6705 67.8305 21.5341 67.2812 21.5341C66.7093 21.5341 66.2585 21.661 65.929 21.9148C65.6032 22.1648 65.3778 22.4432 65.2528 22.75L63.6562 22.3864C63.8456 21.8561 64.1222 21.428 64.4858 21.1023C64.8532 20.7727 65.2756 20.5341 65.7528 20.3864C66.2301 20.2348 66.732 20.1591 67.2585 20.1591C67.607 20.1591 67.9763 20.2008 68.3665 20.2841C68.7604 20.3636 69.1278 20.5114 69.4688 20.7273C69.8134 20.9432 70.0956 21.2519 70.3153 21.6534C70.535 22.0511 70.6449 22.5682 70.6449 23.2045V29H68.9858V27.8068H68.9176C68.8078 28.0265 68.643 28.2424 68.4233 28.4545C68.2036 28.6667 67.9214 28.8428 67.5767 28.983C67.232 29.1231 66.8191 29.1932 66.3381 29.1932ZM66.7074 27.8295C67.1771 27.8295 67.5786 27.7367 67.9119 27.5511C68.2491 27.3655 68.5047 27.1231 68.679 26.8239C68.857 26.5208 68.946 26.197 68.946 25.8523V24.7273C68.8854 24.7879 68.768 24.8447 68.5938 24.8977C68.4233 24.947 68.2282 24.9905 68.0085 25.0284C67.7888 25.0625 67.5748 25.0947 67.3665 25.125C67.1581 25.1515 66.9839 25.1742 66.8438 25.1932C66.5142 25.2348 66.2131 25.3049 65.9403 25.4034C65.6714 25.5019 65.4555 25.6439 65.2926 25.8295C65.1335 26.0114 65.054 26.2538 65.054 26.5568C65.054 26.9773 65.2093 27.2955 65.5199 27.5114C65.8305 27.7235 66.2263 27.8295 66.7074 27.8295ZM76.5668 32.4545C75.8736 32.4545 75.277 32.3636 74.777 32.1818C74.2808 32 73.8755 31.7595 73.5611 31.4602C73.2467 31.161 73.0118 30.8333 72.8565 30.4773L74.3168 29.875C74.419 30.0417 74.5554 30.2178 74.7259 30.4034C74.9001 30.5928 75.1349 30.7538 75.4304 30.8864C75.7296 31.0189 76.1141 31.0852 76.5838 31.0852C77.2277 31.0852 77.7599 30.928 78.1804 30.6136C78.6009 30.303 78.8111 29.8068 78.8111 29.125V27.4091H78.7031C78.6009 27.5947 78.4531 27.8011 78.2599 28.0284C78.0705 28.2557 77.8092 28.4527 77.4759 28.6193C77.1425 28.786 76.7088 28.8693 76.1747 28.8693C75.4853 28.8693 74.8641 28.7083 74.3111 28.3864C73.7618 28.0606 73.3262 27.5814 73.0043 26.9489C72.6861 26.3125 72.527 25.5303 72.527 24.6023C72.527 23.6742 72.6842 22.8788 72.9986 22.2159C73.3168 21.553 73.7524 21.0455 74.3054 20.6932C74.8584 20.3371 75.4853 20.1591 76.1861 20.1591C76.7277 20.1591 77.1652 20.25 77.4986 20.4318C77.8319 20.6098 78.0914 20.8182 78.277 21.0568C78.4664 21.2955 78.6122 21.5057 78.7145 21.6875H78.8395V20.2727H80.5043V29.1932C80.5043 29.9432 80.33 30.5587 79.9815 31.0398C79.633 31.5208 79.1615 31.8769 78.5668 32.108C77.9759 32.339 77.3092 32.4545 76.5668 32.4545ZM76.5497 27.4602C77.0384 27.4602 77.4512 27.3466 77.7884 27.1193C78.1293 26.8883 78.3868 26.5587 78.5611 26.1307C78.7391 25.6989 78.8281 25.1818 78.8281 24.5795C78.8281 23.9924 78.741 23.4754 78.5668 23.0284C78.3925 22.5814 78.1368 22.233 77.7997 21.983C77.4626 21.7292 77.0459 21.6023 76.5497 21.6023C76.0384 21.6023 75.6122 21.7348 75.2713 22C74.9304 22.2614 74.6728 22.6174 74.4986 23.0682C74.3281 23.5189 74.2429 24.0227 74.2429 24.5795C74.2429 25.1515 74.33 25.6534 74.5043 26.0852C74.6785 26.517 74.9361 26.8542 75.277 27.0966C75.6217 27.339 76.0459 27.4602 76.5497 27.4602Z" fill="#AAAAAA"/>
|
|
4
4
|
</svg>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{SettingUIV2 as C}from"./configs/ui-v2.js";import{ProductVariantSettingsV1 as t}from"./configs/settings-v1.js";import{ProductVariantSettingsV2 as s}from"./configs/settings
|
|
1
|
+
import{SettingUIV2 as C}from"./configs/ui-v2.js";import{ProductVariantSettingsV1 as t}from"./configs/settings-v1.js";import{ProductVariantSettingsV2 as s}from"./configs/settings.js";let i={tag:"PostPurchaseProductVariants",label:"Product Variants",icon:`
|
|
2
2
|
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
3
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M1.33301 9.16663C1.33301 8.89048 1.55687 8.66663 1.83301 8.66663H14.833C15.1091 8.66663 15.333 8.89048 15.333 9.16663V17.7105C15.333 17.9866 15.1091 18.2105 14.833 18.2105H1.83301C1.55687 18.2105 1.33301 17.9866 1.33301 17.7105V9.16663ZM3.66634 15.8245H12.9997V11.0526H3.66634V15.8245ZM18.833 9.16663C18.833 8.89048 19.0569 8.66663 19.333 8.66663H32.333C32.6091 8.66663 32.833 8.89048 32.833 9.16663V17.7105C32.833 17.9866 32.6091 18.2105 32.333 18.2105H19.333C19.0569 18.2105 18.833 17.9866 18.833 17.7105V9.16663ZM21.1663 15.8245H30.4997V11.0526H21.1663V15.8245ZM7.16634 30.8333C7.16634 31.1094 7.3902 31.3333 7.66634 31.3333H20.6663C20.9425 31.3333 21.1663 31.1094 21.1663 30.8333V22.2894C21.1663 22.0133 20.9425 21.7894 20.6663 21.7894H7.66634C7.3902 21.7894 7.16634 22.0133 7.16634 22.2894V30.8333ZM9.49967 24.1754H18.833V28.9473H9.49967V24.1754ZM25.1663 31.3333C24.8902 31.3333 24.6663 31.1094 24.6663 30.8333V22.2894C24.6663 22.0133 24.8902 21.7894 25.1663 21.7894H38.1663C38.4425 21.7894 38.6663 22.0133 38.6663 22.2894V30.8333C38.6663 31.1094 38.4425 31.3333 38.1663 31.3333H25.1663ZM26.9997 28.9473H36.333V24.1754H26.9997V28.9473Z" fill="currentColor"/>
|
|
4
4
|
</svg>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{settingV2 as e}from"./configs/
|
|
1
|
+
import{settingV2 as e}from"./configs/settings.js";import{uiV2 as C}from"./configs/ui-v2.js";let t={tag:"PostPurchaseText",label:"Text block",icon:`
|
|
2
2
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
3
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.19448 7H6.59995L10.2944 16.4858H8.55837L7.53884 13.7231H4.25559L3.23606 16.4858H1.5L5.19448 7ZM5.8937 9.30461L4.78109 12.2986H7.00631L5.8937 9.30461ZM13.0014 9.0633C13.3404 8.98396 13.714 8.94562 14.1203 8.94562C14.6354 8.94562 15.1134 9.02321 15.5514 9.18267C16.0081 9.34283 16.3829 9.6099 16.6621 9.98863C16.9537 10.3842 17.0848 10.8908 17.0848 11.477V16.4858H15.501V15.9596L15.4704 15.9848C15.2475 16.1701 14.9804 16.3168 14.6752 16.4294L14.6716 16.4307C14.3527 16.5435 13.9891 16.5961 13.5859 16.5961C12.8234 16.5961 12.1737 16.3941 11.6632 15.9628L11.6619 15.9617C11.1431 15.5184 10.8815 14.9216 10.8815 14.2009C10.8815 13.5177 11.1427 12.952 11.65 12.529C12.1598 12.0996 12.8743 11.9095 13.7476 11.9095H15.4588V11.4965C15.4588 11.096 15.3369 10.8544 15.1311 10.7025C14.8926 10.5265 14.5489 10.422 14.0711 10.422C13.7425 10.422 13.4942 10.4592 13.3154 10.5222C13.1325 10.5883 13.0096 10.671 12.9295 10.759C12.8408 10.8573 12.7807 10.9623 12.7443 11.0752L12.6748 11.291H11.1355L11.1715 10.9367C11.2043 10.6142 11.2985 10.3203 11.4585 10.0619L11.4612 10.0576C11.6238 9.80424 11.8375 9.5961 12.0963 9.43184C12.3587 9.26403 12.662 9.14273 13.0014 9.0633ZM13.7687 13.3339C13.2451 13.3339 12.9423 13.444 12.7857 13.5912C12.6157 13.7511 12.5356 13.9405 12.5356 14.1814C12.5356 14.5079 12.6483 14.7173 12.8701 14.8617C13.1355 15.0345 13.4525 15.1262 13.832 15.1262C14.1616 15.1262 14.4439 15.064 14.6849 14.9475C14.9356 14.8243 15.1231 14.664 15.2579 14.4704L15.2603 14.4671C15.3934 14.2812 15.4588 14.075 15.4588 13.8377V13.3339H13.7687ZM19.9323 8.3429C19.6012 8.3429 19.3328 8.62932 19.3328 8.98264C19.3328 9.33596 19.6012 9.62238 19.9323 9.62238H20.3169V15.7205H19.9323C19.6012 15.7205 19.3328 16.0069 19.3328 16.3603C19.3328 16.7136 19.6012 17 19.9323 17H21.9006C22.2316 17 22.5 16.7136 22.5 16.3603C22.5 16.0069 22.2316 15.7205 21.9006 15.7205H21.5157V9.62238H21.9006C22.2316 9.62238 22.5 9.33596 22.5 8.98264C22.5 8.62932 22.2316 8.3429 21.9006 8.3429H20.9163H19.9323Z" fill="white"/>
|
|
4
4
|
</svg>
|
|
@@ -14,6 +14,6 @@ let e=[{id:"setting",controls:[{id:"textContent",type:"textarea",default:"Click
|
|
|
14
14
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.0625 15.625C3.02697 15.625 2.1875 14.7855 2.1875 13.75V12.5C2.1875 11.4645 3.02697 10.625 4.0625 10.625H14.0625C15.098 10.625 15.9375 11.4645 15.9375 12.5V13.75C15.9375 14.7855 15.098 15.625 14.0625 15.625H4.0625ZM3.4375 13.75C3.4375 14.0952 3.71732 14.375 4.0625 14.375H14.0625C14.4077 14.375 14.6875 14.0952 14.6875 13.75V12.5C14.6875 12.1548 14.4077 11.875 14.0625 11.875H4.0625C3.71732 11.875 3.4375 12.1548 3.4375 12.5V13.75Z" fill="#AAAAAA"/>
|
|
15
15
|
</svg>
|
|
16
16
|
|
|
17
|
-
`,type:"align-v"}]},{id:"positionVertical",type:"option:illustration",label:"Position",default:"center",options:[{label:"Center",value:"center",svgName:"gp-file-upload-position-center"},{label:"Left",value:"start",svgName:"gp-file-upload-position-left"}]},{id:"positionHorizontal",type:"option:illustration",label:"Position",default:"center",options:[{label:"Align center",value:"center",svgName:"gp-file-upload-position-horizontal-center"},{label:"Align start",value:"start",svgName:"gp-file-upload-position-horizontal-baseline"}]},{id:"
|
|
17
|
+
`,type:"align-v"}]},{id:"positionVertical",type:"option:illustration",label:"Position",default:"center",options:[{label:"Center",value:"center",svgName:"gp-file-upload-position-center"},{label:"Left",value:"start",svgName:"gp-file-upload-position-left"}]},{id:"positionHorizontal",type:"option:illustration",label:"Position",default:"center",options:[{label:"Align center",value:"center",svgName:"gp-file-upload-position-horizontal-center"},{label:"Align start",value:"start",svgName:"gp-file-upload-position-horizontal-baseline"}]},{id:"isRequired",label:"Required",type:"toggle",default:!0},{id:"isShowPreviewImage",label:"Click image to preview",type:"toggle",default:!0},{id:"numberOfFiles",type:"segment",label:"Number of files",default:"multiple",options:[{label:"Single",value:"single"},{label:"Multiple",value:"multiple"}]},{id:"iconVisible",label:"Icon Visible",type:"toggle",default:!0},{id:"iconSvg",label:"SVG Icon",type:"icon",hideLabel:!0,default:`<svg height="20px" width="20px" data-name="upload-simple-regular" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" data-id="508817710018527592">
|
|
18
18
|
<path fill="currentColor" strokelinecap="round" strokelinejoin="round" d="M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM93.66,77.66,120,51.31V144a8,8,0,0,0,16,0V51.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,77.66Z"></path></svg>
|
|
19
|
-
`},{id:"iconSize",type:"input:stepper",label:"Icon Width",devices:{desktop:{default:20},tablet:{default:20},mobile:{default:20}},min:0},{id:"iconAlignVertical",label:"Icon Alignment",type:"segment",options:[{label:"Above",value:"above"},{label:"Below",value:"below"}],default:"above"},{id:"iconAlignHorizontal",label:"Icon Alignment",type:"segment",options:[{label:"Left",value:"left"},{label:"Right",value:"right"}],default:"left"}
|
|
19
|
+
`},{id:"iconSize",type:"input:stepper",label:"Icon Width",devices:{desktop:{default:20},tablet:{default:20},mobile:{default:20}},min:0},{id:"iconAlignVertical",label:"Icon Alignment",type:"segment",options:[{label:"Above",value:"above"},{label:"Below",value:"below"}],default:"above"},{id:"iconAlignHorizontal",label:"Icon Alignment",type:"segment",options:[{label:"Left",value:"left"},{label:"Right",value:"right"}],default:"left"},{id:"contentWidth",type:"dropdown:input",label:"Width",inputType:"number",units:["px","%"],hideUnit:!1,devices:{desktop:{default:"100%"}},displayOptions:[{label:"Full",value:"100%",showValue:!0}]},{id:"paddingSize",type:"size-setting",devices:{desktop:{default:{padding:{type:"large",top:"12px",bottom:"12px",left:"32px",right:"32px"}}}},hiddenSettings:["shape","gap","width","height"],hiddenShowMore:!0},{id:"size",type:"size-setting",devices:{desktop:{default:{width:"100%",height:"Auto",padding:{type:"large",top:"12px",bottom:"12px",left:"32px",right:"32px"}}}},settingConfig:{width:{displayOptions:["full","auto","small","large","medium"]},height:{displayOptions:["auto","small","large","medium"]}},hiddenShowMore:!0,hiddenSettings:["shape","gap","padding"]}]},{id:"style",controls:[{id:"behavior-state",type:"behavior-state",controls:[{id:"enableHoverEffect",type:"toggle",label:"Hover Effect",default:!0},{id:"backgroundColor",type:"color-picker-v2",label:"Background Color",default:{normal:"#FFFFFF",hover:"#DDDDDD"},compoDefaultValue:{hover:"#DDDDDD"},state:{hover:!0,normal:!0}},{id:"textColor",type:"color-picker-v2",label:"Text Color",default:{normal:"text-1"},compoDefaultValue:{hover:"text-1"},state:{hover:!0,normal:!0}},{id:"borderBtn",type:"border",label:"Border Style",default:{normal:{border:"dashed",isCustom:!0,position:"all",borderWidth:"1px",width:"1px 1px 1px 1px",color:"#7D7D7D"}},state:{hover:!0,normal:!0}},{id:"hasBoxShadowBtn",type:"toggle",label:"Enable Button Shadow",default:{normal:!0,hover:!0},state:{normal:!0,hover:!0}},{id:"boxShadowBtn",type:"shadow-v2",label:"Shadow Style",hideOnState:{normal:!0,hover:!0},state:{normal:!0,hover:!0},compoDefaultValue:{normal:{type:"shadow-1",distance:"4px",blur:"4px",spread:"0px",color:"rgba(18, 18, 18, 0.2)",angle:45,enable:!0},hover:{type:"shadow-1",distance:"4px",blur:"4px",spread:"0px",color:"rgba(18, 18, 18, 0.2)",angle:45,enable:!0}}},{id:"roundedBtn",type:"radius-preset",label:"Border Radius",default:{normal:{btrr:"8px",bblr:"8px",bbrr:"8px",btlr:"8px",radiusType:"rounded"}},state:{hover:!0,normal:!0}}]},{id:"typo",type:"typography-v2",default:{type:"paragraph-1",attrs:{color:"text-1"}},ignoreReRender:!0},{id:"spacing",label:"Spacing Icon",type:"input:slider",min:0,max:40,step:1,units:["px","em","rem","%","vh"],devices:{desktop:{default:"8px"}}},{id:"textAlign",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"text",tooltip:"Align left"},{label:"Center",value:"center",type:"text",tooltip:"Align center"},{label:"Right",value:"right",type:"text",tooltip:"Align right"},{label:"Justify",value:"justify",type:"text",tooltip:"Align justify"}],devices:{desktop:{default:"left"}}},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align",tooltip:"Align left"},{label:"Center",value:"center",type:"align",tooltip:"Align center"},{label:"Right",value:"right",type:"align",tooltip:"Align right"}],devices:{desktop:{default:"left"}}}]}];export{e as Settings};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ProductListPreset as t}from"./product-list/configs/presets.js";import{ProductListSettingsV2 as o}from"./product-list/configs/settings
|
|
1
|
+
import{ProductListPreset as t}from"./product-list/configs/presets.js";import{ProductListSettingsV2 as o}from"./product-list/configs/settings.js";import{SettingUIV2 as r}from"./product-list/configs/ui-v2.js";let C={tag:"ProductList",label:"Product List",icon:`
|
|
2
2
|
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
3
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M14.9075 7.10422C14.6295 6.47277 13.981 6.06462 13.268 6.12193C12.8111 6.15866 12.0129 6.23149 11.1972 6.34772C10.4162 6.459 9.4973 6.62566 8.86739 6.88284C8.4425 7.05632 7.96973 7.41721 7.56476 7.7561C7.12514 8.12398 6.63889 8.57624 6.16347 9.03928C5.21082 9.96712 4.25521 10.9838 3.72156 11.5611C3.02665 12.3128 3.18213 13.4862 4.00429 14.0501L7.14594 16.205V26.2444C7.14594 27.1568 7.8833 27.9057 8.80445 27.9057H23.246C24.1672 27.9057 24.9045 27.1568 24.9045 26.2444V16.205L28.0603 14.0405C28.8678 13.4866 29.0361 12.3395 28.3699 11.5829C27.861 11.005 26.9438 9.98417 26.0115 9.05136C25.5463 8.58586 25.0644 8.12923 24.6192 7.75674C24.2068 7.41161 23.7187 7.04517 23.2589 6.87191C22.0504 6.41643 20.0388 6.19802 19.2897 6.12638C18.6177 6.06213 17.9943 6.4147 17.6856 6.98594L16.1261 9.87237L14.9075 7.10422ZM11.5075 8.52572C12.0668 8.44603 12.6236 8.38769 13.0516 8.3486L14.5589 11.7725C15.1148 13.0353 16.8782 13.1086 17.535 11.8929L19.4471 8.35398C20.3297 8.45016 21.7155 8.64129 22.4831 8.93056C22.5609 8.9599 22.7999 9.10299 23.2073 9.44391C23.582 9.75746 24.0125 10.1634 24.4555 10.6066C25.1311 11.2825 25.8054 12.0148 26.3079 12.5747L23.426 14.5514C22.9732 14.862 22.7045 15.3755 22.7045 15.9221V25.7057H9.34594V15.9221C9.34594 15.3755 9.07722 14.862 8.62448 14.5514L5.76791 12.592C6.29559 12.03 7.00098 11.2946 7.69845 10.6153C8.1553 10.1703 8.59719 9.76082 8.97664 9.44329C9.16639 9.2845 9.33077 9.15694 9.46645 9.06238C9.53381 9.01545 9.58879 8.98036 9.63189 8.95523C9.65312 8.94286 9.66967 8.93395 9.68177 8.92783C9.69405 8.92163 9.69897 8.91962 9.69897 8.91962C10.0488 8.7768 10.7201 8.63792 11.5075 8.52572Z" fill="currentColor"/>
|
|
4
4
|
<path d="M30.2528 21.8121C29.8846 21.8121 29.5862 21.5136 29.5862 21.1454V20.0645C29.5862 19.6963 29.8846 19.3978 30.2528 19.3978H36.3481C36.7163 19.3978 37.0147 19.6963 37.0147 20.0645V21.1454C37.0147 21.5136 36.7163 21.8121 36.3481 21.8121H30.2528Z" fill="currentColor"/>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ProductListPreset as t}from"./product-list-v3/configs/presets.js";import{ProductListSettingsV2 as o}from"./product-list-v3/configs/settings
|
|
1
|
+
import{ProductListPreset as t}from"./product-list-v3/configs/presets.js";import{ProductListSettingsV2 as o}from"./product-list-v3/configs/settings.js";import{SettingUIV2 as r}from"./product-list-v3/configs/ui-v2.js";let C={tag:"ProductListV3",label:"Product List",icon:`
|
|
2
2
|
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
3
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M14.9075 7.10422C14.6295 6.47277 13.981 6.06462 13.268 6.12193C12.8111 6.15866 12.0129 6.23149 11.1972 6.34772C10.4162 6.459 9.4973 6.62566 8.86739 6.88284C8.4425 7.05632 7.96973 7.41721 7.56476 7.7561C7.12514 8.12398 6.63889 8.57624 6.16347 9.03928C5.21082 9.96712 4.25521 10.9838 3.72156 11.5611C3.02665 12.3128 3.18213 13.4862 4.00429 14.0501L7.14594 16.205V26.2444C7.14594 27.1568 7.8833 27.9057 8.80445 27.9057H23.246C24.1672 27.9057 24.9045 27.1568 24.9045 26.2444V16.205L28.0603 14.0405C28.8678 13.4866 29.0361 12.3395 28.3699 11.5829C27.861 11.005 26.9438 9.98417 26.0115 9.05136C25.5463 8.58586 25.0644 8.12923 24.6192 7.75674C24.2068 7.41161 23.7187 7.04517 23.2589 6.87191C22.0504 6.41643 20.0388 6.19802 19.2897 6.12638C18.6177 6.06213 17.9943 6.4147 17.6856 6.98594L16.1261 9.87237L14.9075 7.10422ZM11.5075 8.52572C12.0668 8.44603 12.6236 8.38769 13.0516 8.3486L14.5589 11.7725C15.1148 13.0353 16.8782 13.1086 17.535 11.8929L19.4471 8.35398C20.3297 8.45016 21.7155 8.64129 22.4831 8.93056C22.5609 8.9599 22.7999 9.10299 23.2073 9.44391C23.582 9.75746 24.0125 10.1634 24.4555 10.6066C25.1311 11.2825 25.8054 12.0148 26.3079 12.5747L23.426 14.5514C22.9732 14.862 22.7045 15.3755 22.7045 15.9221V25.7057H9.34594V15.9221C9.34594 15.3755 9.07722 14.862 8.62448 14.5514L5.76791 12.592C6.29559 12.03 7.00098 11.2946 7.69845 10.6153C8.1553 10.1703 8.59719 9.76082 8.97664 9.44329C9.16639 9.2845 9.33077 9.15694 9.46645 9.06238C9.53381 9.01545 9.58879 8.98036 9.63189 8.95523C9.65312 8.94286 9.66967 8.93395 9.68177 8.92783C9.69405 8.92163 9.69897 8.91962 9.69897 8.91962C10.0488 8.7768 10.7201 8.63792 11.5075 8.52572Z" fill="currentColor"/>
|
|
4
4
|
<path d="M30.2528 21.8121C29.8846 21.8121 29.5862 21.5136 29.5862 21.1454V20.0645C29.5862 19.6963 29.8846 19.3978 30.2528 19.3978H36.3481C36.7163 19.3978 37.0147 19.6963 37.0147 20.0645V21.1454C37.0147 21.5136 36.7163 21.8121 36.3481 21.8121H30.2528Z" fill="currentColor"/>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ProductPropertiesPreset as C}from"./product-properties/configs/presets.js";import{SettingUIV2 as o}from"./product-properties/configs/ui-v2.js";import{ProductPropertiesSettingsV2 as r}from"./product-properties/configs/settings
|
|
1
|
+
import{ProductPropertiesPreset as C}from"./product-properties/configs/presets.js";import{SettingUIV2 as o}from"./product-properties/configs/ui-v2.js";import{ProductPropertiesSettingsV2 as r}from"./product-properties/configs/settings.js";let t={tag:"ProductProperties",label:"Product Custom Field",icon:`
|
|
2
2
|
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
3
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M14.9075 7.10422C14.6295 6.47277 13.981 6.06462 13.268 6.12193C12.8111 6.15866 12.0129 6.23149 11.1972 6.34772C10.4162 6.459 9.4973 6.62566 8.86739 6.88284C8.4425 7.05632 7.96973 7.41721 7.56476 7.7561C7.12514 8.12398 6.63889 8.57624 6.16347 9.03928C5.21082 9.96712 4.25521 10.9838 3.72156 11.5611C3.02665 12.3128 3.18213 13.4862 4.00429 14.0501L7.14594 16.205V26.2444C7.14594 27.1568 7.8833 27.9057 8.80445 27.9057H23.246C24.1672 27.9057 24.9045 27.1568 24.9045 26.2444V16.205L28.0603 14.0405C28.8678 13.4866 29.0361 12.3395 28.3699 11.5829C27.861 11.005 26.9438 9.98417 26.0115 9.05136C25.5463 8.58586 25.0644 8.12923 24.6192 7.75674C24.2068 7.41161 23.7187 7.04517 23.2589 6.87191C22.0504 6.41643 20.0388 6.19802 19.2897 6.12638C18.6177 6.06213 17.9943 6.4147 17.6856 6.98594L16.1261 9.87237L14.9075 7.10422ZM11.5075 8.52572C12.0668 8.44603 12.6236 8.38769 13.0516 8.3486L14.5589 11.7725C15.1148 13.0353 16.8782 13.1086 17.535 11.8929L19.4471 8.35398C20.3297 8.45016 21.7155 8.64129 22.4831 8.93056C22.5609 8.9599 22.7999 9.10299 23.2073 9.44391C23.582 9.75746 24.0125 10.1634 24.4555 10.6066C25.1311 11.2825 25.8054 12.0148 26.3079 12.5747L23.426 14.5514C22.9732 14.862 22.7045 15.3755 22.7045 15.9221V25.7057H9.34594V15.9221C9.34594 15.3755 9.07722 14.862 8.62448 14.5514L5.76791 12.592C6.29559 12.03 7.00098 11.2946 7.69845 10.6153C8.1553 10.1703 8.59719 9.76082 8.97664 9.44329C9.16639 9.2845 9.33077 9.15694 9.46645 9.06238C9.53381 9.01545 9.58879 8.98036 9.63189 8.95523C9.65312 8.94286 9.66967 8.93395 9.68177 8.92783C9.69405 8.92163 9.69897 8.91962 9.69897 8.91962C10.0488 8.7768 10.7201 8.63792 11.5075 8.52572Z" fill="currentColor"/>
|
|
4
4
|
<path d="M30.2528 21.8121C29.8846 21.8121 29.5862 21.5136 29.5862 21.1454V20.0645C29.5862 19.6963 29.8846 19.3978 30.2528 19.3978H36.3481C36.7163 19.3978 37.0147 19.6963 37.0147 20.0645V21.1454C37.0147 21.5136 36.7163 21.8121 36.3481 21.8121H30.2528Z" fill="currentColor"/>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let e=[{id:"setting",note:'This button will be changed dynamically based on the third-party accelerated checkout method. <a class="no-underline text-primary-250" target="_blank" href="https://help.shopify.com/en/manual/online-store/dynamic-checkout">Learn more</a>',controls:[{id:"label",label:"Label",type:"input",default:"Buy it now"},{id:"enableHoverEffect",type:"toggle",default:!0}]},{id:"style",controls:[{id:"typo",type:"typography-v2",label:"Typography",default:{type:"paragraph-1",attrs:{color:"text-3"}},compoDefaultValue:{attrs:{color:"text-3"}},hiddenSetting:{textAlign:!0},ignoreReRender:!0},{id:"transform",label:"Text Transform",type:"select",options:[{value:"default",label:"None"},{value:"capitalize",label:"Capitalize"},{value:"uppercase",label:"Uppercase"},{value:"lowercase",label:"Lowercase"}],default:"default"},{id:"backgroundColorV2",type:"color-picker-v2",default:{normal:"brand",hover:"highlight"},compoDefaultValue:{normal:"brand",hover:"highlight"},enableGradient:!0},{id:"backgroundImage",type:"background-image",compoDefaultValue:{normal:{size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll",image:{src:"https://cdn.shopify.com/s/files/1/2005/9307/files/background_settings.jpg",width:1200,height:480,hiddenSEO:!0}},hover:{size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll",image:{src:"https://cdn.shopify.com/s/files/1/2005/9307/files/background_settings.jpg",width:1200,height:480,hiddenSEO:!0}}}},{id:"behavior-state",type:"behavior-state",controls:[{id:"backgroundColor",type:"colorpicker",label:"Background Color",default:{normal:"brand",hover:"highlight"},state:{hover:!0,normal:!0}},{id:"textColor",type:"color-picker-v2",default:{normal:"text-3"},compoDefaultValue:{normal:"text-3"},state:{hover:!0,normal:!0},enableGradient:!1},{id:"borderBtnV2",type:"border-v2",default:{normal:{borderType:"none",border:"none",borderWidth:"1px",width:"1px 1px 1px 1px",color:"#121212",isCustom:!0}},compoDefaultValue:{normal:{border:"solid",color:"line-3",width:"1px",borderWidth:"1px"},hover:{border:"solid",color:"line-3",width:"1px",borderWidth:"1px"}}},{id:"borderBtn",type:"border",label:"Border Style",default:{normal:{border:"none",isCustom:!0,position:"all",borderWidth:"1px",width:"1px 1px 1px 1px"}},state:{hover:!0,normal:!0}},{id:"hasBoxShadowBtn",type:"toggle",label:"Enable Button Shadow",default:{normal:!1},state:{normal:!0,hover:!0}},{id:"boxShadowBtn",type:"shadow-v2",default:{normal:{}},compoDefaultValue:{normal:{type:"shadow-1",distance:"4px",blur:"4px",spread:"0px",color:"rgba(18, 18, 18, 0.2)",angle:45,enable:!0}}},{id:"roundedBtnV2",type:"corner-v2",default:{normal:{btrr:"0px",bblr:"0px",bbrr:"0px",btlr:"0px",radiusType:"none"}},compoDefaultValue:{normal:{btrr:"8px",bblr:"8px",bbrr:"8px",btlr:"8px",radiusType:"rounded"},hover:{btrr:"8px",bblr:"8px",bbrr:"8px",btlr:"8px",radiusType:"rounded"}}},{id:"roundedBtn",type:"radius-preset",label:"Border Radius",default:{normal:{radiusType:"none"}},state:{hover:!0,normal:!0}}]},{id:"align",label:"Alignment",type:"option:value",options:[{label:"Left",value:"left",type:"align",tooltip:"Align left",iconName:"gp-align-left"},{label:"Center",value:"center",type:"align",tooltip:"Align center",iconName:"gp-align-center"},{label:"Right",value:"right",type:"align",tooltip:"Align right",iconName:"gp-align-right"}],devices:{desktop:{default:"left"}}},{id:"
|
|
1
|
+
let e=[{id:"setting",note:'This button will be changed dynamically based on the third-party accelerated checkout method. <a class="no-underline text-primary-250" target="_blank" href="https://help.shopify.com/en/manual/online-store/dynamic-checkout">Learn more</a>',controls:[{id:"label",label:"Label",type:"input",default:"Buy it now"},{id:"enableHoverEffect",type:"toggle",default:!0}]},{id:"style",controls:[{id:"typo",type:"typography-v2",label:"Typography",default:{type:"paragraph-1",attrs:{color:"text-3"}},compoDefaultValue:{attrs:{color:"text-3"}},hiddenSetting:{textAlign:!0},ignoreReRender:!0},{id:"transform",label:"Text Transform",type:"select",options:[{value:"default",label:"None"},{value:"capitalize",label:"Capitalize"},{value:"uppercase",label:"Uppercase"},{value:"lowercase",label:"Lowercase"}],default:"default"},{id:"backgroundColorV2",type:"color-picker-v2",default:{normal:"brand",hover:"highlight"},compoDefaultValue:{normal:"brand",hover:"highlight"},enableGradient:!0},{id:"backgroundImage",type:"background-image",compoDefaultValue:{normal:{size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll",image:{src:"https://cdn.shopify.com/s/files/1/2005/9307/files/background_settings.jpg",width:1200,height:480,hiddenSEO:!0}},hover:{size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll",image:{src:"https://cdn.shopify.com/s/files/1/2005/9307/files/background_settings.jpg",width:1200,height:480,hiddenSEO:!0}}}},{id:"behavior-state",type:"behavior-state",controls:[{id:"backgroundColor",type:"colorpicker",label:"Background Color",default:{normal:"brand",hover:"highlight"},state:{hover:!0,normal:!0}},{id:"textColor",type:"color-picker-v2",default:{normal:"text-3"},compoDefaultValue:{normal:"text-3"},state:{hover:!0,normal:!0},enableGradient:!1},{id:"borderBtnV2",type:"border-v2",default:{normal:{borderType:"none",border:"none",borderWidth:"1px",width:"1px 1px 1px 1px",color:"#121212",isCustom:!0}},compoDefaultValue:{normal:{border:"solid",color:"line-3",width:"1px",borderWidth:"1px"},hover:{border:"solid",color:"line-3",width:"1px",borderWidth:"1px"}}},{id:"borderBtn",type:"border",label:"Border Style",default:{normal:{border:"none",isCustom:!0,position:"all",borderWidth:"1px",width:"1px 1px 1px 1px"}},state:{hover:!0,normal:!0}},{id:"hasBoxShadowBtn",type:"toggle",label:"Enable Button Shadow",default:{normal:!1},state:{normal:!0,hover:!0}},{id:"boxShadowBtn",type:"shadow-v2",default:{normal:{}},compoDefaultValue:{normal:{type:"shadow-1",distance:"4px",blur:"4px",spread:"0px",color:"rgba(18, 18, 18, 0.2)",angle:45,enable:!0}}},{id:"roundedBtnV2",type:"corner-v2",default:{normal:{btrr:"0px",bblr:"0px",bbrr:"0px",btlr:"0px",radiusType:"none"}},compoDefaultValue:{normal:{btrr:"8px",bblr:"8px",bbrr:"8px",btlr:"8px",radiusType:"rounded"},hover:{btrr:"8px",bblr:"8px",bbrr:"8px",btlr:"8px",radiusType:"rounded"}}},{id:"roundedBtn",type:"radius-preset",label:"Border Radius",default:{normal:{radiusType:"none"}},state:{hover:!0,normal:!0}}]},{id:"align",label:"Alignment",type:"option:value",options:[{label:"Left",value:"left",type:"align",tooltip:"Align left",iconName:"gp-align-left"},{label:"Center",value:"center",type:"align",tooltip:"Align center",iconName:"gp-align-center"},{label:"Right",value:"right",type:"align",tooltip:"Align right",iconName:"gp-align-right"}],devices:{desktop:{default:"left"}}},{id:"btnSpacing",label:"Inside space",type:"size",default:{type:"medium"},ignoreReRender:!0},{id:"fullWidth",label:"Full Width",type:"toggle",devices:{desktop:{default:!0}}},{id:"width",type:"input:unit",label:"Width",emptyOnClear:!0,placeholder:"Auto",min:0,units:["px","%"],devices:{desktop:{default:void 0}}},{id:"globalSize",type:"size-setting",devices:{desktop:{default:{width:"100%",height:"Auto",padding:{type:"medium",top:"12px",bottom:"12px",left:"24px",right:"24px"}}}},settingConfig:{width:{displayOptions:["full","auto","small","large","medium"],sizeConfig:{small:"100px",medium:"116px",large:"132px"}},height:{displayOptions:["auto","small","large","medium"],sizeConfig:{small:"28px",medium:"36px",large:"44px"}}},hiddenSettings:["shape","gap"]}]}];export{e as DynamicCheckoutSettings};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let e=[{id:"setting",controls:[{id:"layout",type:"layout",isProductLayout:!0,devices:{desktop:{default:{cols:[6,6],display:"fill"}}}},{id:"horizontalAlign",type:"option:value",options:[{label:"Start",value:"start",iconName:"gp-align-left"},{label:"Center",value:"center",iconName:"gp-align-center"},{label:"End",value:"end",iconName:"gp-align-right"}],devices:{desktop:{default:"start"}}},{id:"verticalAlign",type:"option:value",options:[{label:"Start",value:"start",tooltip:"Align top",iconName:"gp-align-top"},{label:"Center",value:"center",tooltip:"Align center",iconName:"gp-align-center-vertical"},{label:"End",value:"end",tooltip:"Align bottom",iconName:"gp-align-bottom"},{label:"Between",value:"space-between",tooltip:"Distribute vertical spacing",iconName:"gp-justify-content-space-between"}],devices:{desktop:{default:"start"}}},{id:"productSetting",type:"product",label:"Select Product",isMultiple:!1},{id:"isSyncProduct",type:"sync-product-properties",default:!0},{id:"
|
|
1
|
+
let e=[{id:"setting",controls:[{id:"layout",type:"layout",isProductLayout:!0,devices:{desktop:{default:{cols:[6,6],display:"fill"}}}},{id:"horizontalAlign",type:"option:value",options:[{label:"Start",value:"start",iconName:"gp-align-left"},{label:"Center",value:"center",iconName:"gp-align-center"},{label:"End",value:"end",iconName:"gp-align-right"}],devices:{desktop:{default:"start"}}},{id:"verticalAlign",type:"option:value",options:[{label:"Start",value:"start",tooltip:"Align top",iconName:"gp-align-top"},{label:"Center",value:"center",tooltip:"Align center",iconName:"gp-align-center-vertical"},{label:"End",value:"end",tooltip:"Align bottom",iconName:"gp-align-bottom"},{label:"Between",value:"space-between",tooltip:"Distribute vertical spacing",iconName:"gp-justify-content-space-between"}],devices:{desktop:{default:"start"}}},{id:"productSetting",type:"product",label:"Select Product",isMultiple:!1},{id:"isSyncProduct",type:"sync-product-properties",default:!0},{id:"selectVariantDefault",type:"select-variant",label:"Select Default Variant",hide:!0},{id:"inlineAlignment",type:"option:value",options:[{label:"Start",value:"start",iconName:"gp-justify-content-top"},{label:"Center",value:"center",iconName:"gp-justify-content-center"},{label:"End",value:"end",iconName:"gp-justify-content-bottom"}],default:"start"},{id:"blockAlignment",type:"option:value",options:[{label:"Start",value:"start"},{label:"Center",value:"center"},{label:"End",value:"end"}],default:"start"},{id:"discountType",label:"Discount",type:"select",options:[{label:"Percentage",value:"PERCENTAGE"},{label:"Fixed change",value:"FIXED_AMOUNT"}],default:"PERCENTAGE"},{id:"discountValue",type:"product-input-currency-unit",label:"",default:0},{id:"shippingFeeType",label:"Shipping fee",type:"select",options:[{label:"Free",value:"free"},{label:"Fixed change",value:"fixedChange"},{label:"Charge per unit",value:"chargePerUnit"}],default:"free"},{id:"shippingFeeValue",type:"product-input-currency-unit",label:"",default:0}]},{id:"style",controls:[{id:"fullWidth",label:"Full Width",type:"toggle",devices:{desktop:{default:!1},tablet:{default:!1},mobile:{default:!1}}},{id:"width",type:"dropdown:input",label:"Width",inputType:"number",units:["px","%"],hideUnit:!1,isRowWith:!0,devices:{desktop:{default:"default"}},displayOptions:[{label:"Full",value:"100%",showValue:!0},{label:"Default",value:"default",showValue:!0}]},{id:"verticalGutter",type:"input:slider",units:["px"],min:0,max:80,ignoreMax:!0,devices:{desktop:{default:"32px"}}},{id:"verticalGutterMobile",type:"input:slider",units:["px"],min:0,max:80,ignoreMax:!0,devices:{desktop:{default:"16px"}}},{id:"columnGap",type:"input:slider",min:0,max:100,step:1,units:["%"],ignoreMax:!0,devices:{desktop:{default:"1%"}}},{id:"background",type:"background-media",ignoreReRender:!0,showVideo:!1,hideImage:!0,devices:{desktop:{default:{type:"color",color:"transparent"}}},compoDefaultValue:{desktop:{default:{type:"color",color:"#DDDDDD"}}}},{id:"preloadBgImage",type:"toggle",label:"Preload",default:!1}]}];export{e as ProductSettings};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let e=[{id:"setting",controls:[{id:"displayTrigger",type:"display-trigger-badge",default:[{triggerEvent:"inventory_status",type:"in_stock",quantityType:"exact_or_above",from:"1",to:"15",priority:0,conditionType:"exact_or_above"}]},{id:"
|
|
1
|
+
let e=[{id:"setting",controls:[{id:"displayTrigger",type:"display-trigger-badge",default:[{triggerEvent:"inventory_status",type:"in_stock",quantityType:"exact_or_above",from:"1",to:"15",priority:0,conditionType:"exact_or_above"}]},{id:"image",type:"image",label:"Pick Image",default:{src:"https://cdn.shopify.com/s/files/1/0697/6182/7064/files/gempages_523190969722471488-fc9fecb6-26b8-4836-b417-2dfb9ea43bd5.png?v=1723733677"}},{id:"shape",type:"badge-style",label:"Content",iconViewBox:"0 0 80 48",enableItemBackground:!0,itemPerRow:2,itemSpacing:"large",default:"horizontal_rectangle",options:[{value:"image",label:"Image",type:"badge-layout",iconName:"gp-product-badge-image"},{value:"horizontal_rectangle",label:"Text horizontal",type:"badge-layout",iconName:"gp-product-badge-horizontal-rectangle"},{value:"ribbon",label:"Text corner 1",type:"badge-layout",iconName:"gp-product-badge-ribbon"},{value:"ribbon_2",label:"Text ribbon 1",type:"badge-layout",iconName:"gp-product-badge-ribbon-2"},{value:"triangle",label:"Text corner 2",type:"badge-layout",iconName:"gp-product-badge-triangle"},{value:"ribbon_3",label:"Text ribbon 2",type:"badge-layout",iconName:"gp-product-badge-ribbon-3"},{value:"vertical_rectangle",label:"Text vertical",type:"badge-layout",iconName:"gp-product-badge-vertical-rectangle"},{value:"star",label:"Text star",type:"badge-layout",iconName:"gp-product-badge-star"},{value:"square",label:"Text square",type:"badge-layout",iconName:"gp-product-badge-square"}]},{id:"displayContent",type:"textarea",default:"Sale {percent_discount} off",minHeight:72,inputClass:"!pr-36",autoHeight:!0,showPlusBtn:!0,isFocusToBottom:!0,defaultRows:1,suggestContents:[{message:"{percent_discount}",eg:"E.g: Save 20%"},{message:"{amount_discount}",eg:"E.g: Save $20"},{message:"{min_price}",eg:"E.g: Start from $20"},{message:"{inventory_quantity}",eg:"E.g: Only 3 items left",tooltip:`Only work with product enable “Track inventory”`}]},{id:"contentBanner",type:"banner",message:`{inventory_quantity} Only work with product enable “Track inventory”`,closable:!0},{id:"contentType",label:"Shape",type:"input",default:"text"},{id:"positionWithImage",type:"input",default:"outside"}]},{id:"style",controls:[{id:"typo",type:"typography-v2",ignoreReRender:!0,default:{type:"paragraph-1",attrs:{color:"#EAEAEA"}},compoDefaultValue:{attrs:{color:"#EAEAEA"}},hiddenSetting:{textAlign:!0}},{id:"position",type:"custom-position",ignoreValue:["center"],devices:{desktop:{default:{placement:"top-left",topGap:"0",leftGap:"0",bottomGap:"0",rightGap:"0"}}}},{id:"badgeColorV2",type:"color-picker-v2",devices:{desktop:{default:"#C62A33"}},enableGradient:!0,compoDefaultValue:{desktop:{default:"#C62A33"}}},{id:"textColor",type:"background-color-picker",label:"Text color",mode:"solid",default:"text-3"},{id:"wrapperBorder",type:"border"},{id:"textBadgeBorder",type:"border-v2",devices:{desktop:{default:{borderType:"none",border:"none",borderWidth:"1px",width:"1px 1px 1px 1px",color:"line-3",isCustom:!0}}},compoDefaultValue:{desktop:{default:{border:"solid",color:"line-3",width:"1px",borderWidth:"1px"}}}},{id:"imageBadgeBorder",type:"border-v2",devices:{desktop:{default:{borderType:"none",border:"none",borderWidth:"1px",width:"1px 1px 1px 1px",color:"line-1",isCustom:!0}}},compoDefaultValue:{desktop:{default:{border:"solid",color:"line-1",width:"1px",borderWidth:"1px"}}}},{id:"textBadgeCorner",type:"corner-v2",devices:{desktop:{default:{btrr:"0px",bblr:"0px",bbrr:"0px",btlr:"0px",radiusType:"none"}}},compoDefaultValue:{desktop:{default:{btrr:"8px",bblr:"8px",bbrr:"8px",btlr:"8px",radiusType:"rounded"}}}},{id:"imageBadgeCorner",type:"corner-v2",devices:{desktop:{default:{btrr:"0px",bblr:"0px",bbrr:"0px",btlr:"0px",radiusType:"none"}}},compoDefaultValue:{desktop:{default:{btrr:"8px",bblr:"8px",bbrr:"8px",btlr:"8px",radiusType:"rounded"}}}},{id:"hasShadow",type:"toggle",default:!1},{id:"textSizeV2",type:"size-setting",hiddenShowMore:!0,disableShapeLinkedTooltip:"The ratio is locked to ensure the badge shape displays correctly",devices:{desktop:{default:{width:"auto",height:"auto",shapeLinked:!1,disableShapeLinked:!0,hiddenShape:!0,shape:"custom",padding:{top:"8px",bottom:"8px",left:"12px",right:"12px"}}}},settingConfig:{width:{displayOptions:["auto"]},height:{displayOptions:["auto"]}},hiddenSettings:["gap","proportion","padding"]},{id:"imageSizeV2",type:"size-setting",hiddenShowMore:!0,disableShapeLinkedTooltip:"The ratio is locked to ensure the badge shape displays correctly",devices:{desktop:{default:{width:"20%",height:"auto",shapeLinked:!0,hiddenShape:!1,shape:"original",disableShapeLinked:!0}}},settingConfig:{width:{displayOptions:["full","auto","small","large","medium"],sizeConfig:{small:"100px",medium:"116px",large:"132px"}},height:{displayOptions:["auto","small","large","medium"],sizeConfig:{small:"28px",medium:"36px",large:"44px"}}},hiddenSettings:["gap","padding","proportion"]},{id:"align",label:"Align",type:"option:value",options:[{label:"Left",value:"left",type:"align",tooltip:"Align left",iconName:"gp-align-left"},{label:"Center",value:"center",type:"align",tooltip:"Align center",iconName:"gp-align-center"},{label:"Right",value:"right",type:"align",tooltip:"Align right",iconName:"gp-align-right"}],devices:{desktop:{default:"left"}}},{id:"textBadgeShadow",type:"shadow-v2",devices:{desktop:{default:{}}},compoDefaultValue:{desktop:{default:{type:"shadow-1",distance:"4px",blur:"4px",spread:"0px",color:"rgba(18, 18, 18, 0.2)",angle:45,enable:!0}}}},{id:"imageBadgeShadow",type:"shadow-v2",devices:{desktop:{}},compoDefaultValue:{desktop:{default:{type:"shadow-1",distance:"4px",blur:"4px",spread:"0px",color:"rgba(18, 18, 18, 0.2)",angle:45,enable:!0}}}}]}];export{e as ProductBadgeSettings};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
let e=[{id:"setting",controls:[{id:"
|
|
1
|
+
let e=[{id:"setting",controls:[{id:"buttonLayout",label:"Layout",type:"layout-selector",iconViewBox:"0 0 72 72",enableItemBackground:!0,itemSpacing:"large",itemPerRow:1,default:"cart-icon",options:[{value:"cart-full",iconName:"gp-product-button-cart-full-layout"},{value:"cart-price",iconName:"gp-product-button-cart-price-layout"},{value:"cart-only",iconName:"gp-product-button-cart-only-layout"},{value:"cart-price-icon",iconName:"gp-product-button-price-icon-layout"},{value:"cart-icon",iconName:"gp-product-button-cart-item-layout"}]},{id:"priceTypo",type:"typography-v2",default:{type:"paragraph-1",attrs:{color:"text-3"}},hiddenSetting:{color:!0,textAlign:!0},ignoreReRender:!0},{id:"compareAtPriceTypo",type:"typography-v2",default:{type:"paragraph-1",attrs:{color:"text-3"}},hiddenSetting:{color:!0,textAlign:!0},ignoreReRender:!0},{id:"opacityPrice",type:"input:slider",step:1,min:0,max:100,ignoreMax:!0,default:50},{id:"priceLayout",type:"option:illustration",enableTooltip:!1,label:"Layout",options:[{value:"price-only",type:"image",svgName:"gp-product-button-price-only-layout"},{value:"price-before",type:"image",svgName:"gp-product-button-price-before-layout"},{value:"price-after",type:"image",svgName:"gp-product-button-price-after-layout"}],default:"price-only"},{id:"label",type:"input",label:"Button Text",default:"Add to cart"},{id:"outOfStockLabel",type:"input",label:"Out Of Stock Message",clearButton:!1,default:"Out of stock"},{id:"unavailableLabel",type:"input",label:"Unavailable",default:"Unavailable"},{id:"actionEffect",label:"After Add To Cart Action",type:"select",options:[{title:"Keep shopping",value:"continue-shopping"},{title:"Go to checkout",value:"buy-now"},{title:"Open cart",value:"open-cart-drawer"},{title:"Open page",value:"go-to-url"}],default:"open-cart-drawer"},{id:"customURL",label:"Custom URL",type:"pick-link",default:{link:"/cart",target:"_self"},isHiddenOpenLinkSelect:!0,hide:!0},{id:"enableMessage",type:"toggle",default:!0},{id:"successMessage",type:"textarea",label:"Success",minHeight:58,default:"Add product to cart successfully",autoHeight:!0},{id:"errorMessage",type:"textarea",label:"Error",minHeight:58,default:"Cannot add product to cart",autoHeight:!0},{id:"variantSelectionRequiredMessage",type:"textarea",label:"Error Message",minHeight:78,default:"Please select a variant to add product to cart",autoHeight:!0},{id:"iconSvg",label:"SVG icon",type:"icon",hide:!0,default:`<svg height="20" width="20" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" data-id="508414779109605736">
|
|
2
2
|
<path fill="currentColor" strokelinecap="round" strokelinejoin="round" d="M233.21,56.31A12,12,0,0,0,224,52H66L60.53,21.85A12,12,0,0,0,48.73,12H24a12,12,0,0,0,0,24H38.71L63.62,173a28,28,0,0,0,4.07,10.21A32,32,0,1,0,123,196h34a32,32,0,1,0,31-24H91.17a4,4,0,0,1-3.93-3.28L84.92,156H196.1a28,28,0,0,0,27.55-23l12.16-66.86A12,12,0,0,0,233.21,56.31ZM100,204a8,8,0,1,1-8-8A8,8,0,0,1,100,204Zm88,8a8,8,0,1,1,8-8A8,8,0,0,1,188,212Zm12-83.28A4,4,0,0,1,196.1,132H80.56L70.38,76H209.62Z"></path></svg>`,compoDefaultValue:`<svg height="20" width="20" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" data-id="508414779109605736">
|
|
3
|
-
<path fill="currentColor" strokelinecap="round" strokelinejoin="round" d="M233.21,56.31A12,12,0,0,0,224,52H66L60.53,21.85A12,12,0,0,0,48.73,12H24a12,12,0,0,0,0,24H38.71L63.62,173a28,28,0,0,0,4.07,10.21A32,32,0,1,0,123,196h34a32,32,0,1,0,31-24H91.17a4,4,0,0,1-3.93-3.28L84.92,156H196.1a28,28,0,0,0,27.55-23l12.16-66.86A12,12,0,0,0,233.21,56.31ZM100,204a8,8,0,1,1-8-8A8,8,0,0,1,100,204Zm88,8a8,8,0,1,1,8-8A8,8,0,0,1,188,212Zm12-83.28A4,4,0,0,1,196.1,132H80.56L70.38,76H209.62Z"></path></svg>`},{id:"iconAlign",label:"Icon Alignment",type:"option:value",hide:!0,options:[{label:"Left",value:"left"},{label:"Right",value:"right"}],default:"left"}
|
|
3
|
+
<path fill="currentColor" strokelinecap="round" strokelinejoin="round" d="M233.21,56.31A12,12,0,0,0,224,52H66L60.53,21.85A12,12,0,0,0,48.73,12H24a12,12,0,0,0,0,24H38.71L63.62,173a28,28,0,0,0,4.07,10.21A32,32,0,1,0,123,196h34a32,32,0,1,0,31-24H91.17a4,4,0,0,1-3.93-3.28L84.92,156H196.1a28,28,0,0,0,27.55-23l12.16-66.86A12,12,0,0,0,233.21,56.31ZM100,204a8,8,0,1,1-8-8A8,8,0,0,1,100,204Zm88,8a8,8,0,1,1,8-8A8,8,0,0,1,188,212Zm12-83.28A4,4,0,0,1,196.1,132H80.56L70.38,76H209.62Z"></path></svg>`},{id:"iconAlign",label:"Icon Alignment",type:"option:value",hide:!0,options:[{label:"Left",value:"left"},{label:"Right",value:"right"}],default:"left"},{id:"errorType",type:"option:value",options:[{value:"built-in",label:"Shopify",tooltip:"Show default error message from Shopify"},{value:"custom",label:"Custom",tooltip:"Customize error message"}],default:"built-in"},{id:"shouldClearSpace",label:"",type:"toggle",default:!1},{id:"separator",label:"Separator",type:"option:value",options:[{value:"horizontal-line",iconName:"gp-product-button-horizontal-line-separator"},{value:"dot",iconName:"gp-product-button-dot-separator"},{value:"vertical-line",iconName:"gp-product-button-vertical-line-separator"}],default:"horizontal-line"},{id:"enableHoverEffect",label:"",type:"toggle",default:!0}]},{id:"style",controls:[{id:"iconSpacing",type:"input:slider",units:["px"],step:1,min:0,max:40,ignoreMax:!0,devices:{desktop:{default:"8px"}}},{id:"behavior-state",type:"behavior-state",controls:[{id:"backgroundColor",type:"colorpicker",label:"Background Color",default:{normal:"brand",hover:"highlight"},state:{hover:!0,normal:!0}},{id:"textColor",type:"color-picker-v2",default:{normal:"text-3"},compoDefaultValue:{normal:"text-3"},state:{hover:!0,normal:!0},enableGradient:!1},{id:"borderBtn",type:"border",label:"Border Style",default:{normal:{border:"none",isCustom:!0,position:"all",borderWidth:"1px",width:"1px 1px 1px 1px"}},state:{hover:!0,normal:!0}},{id:"hasBoxShadowBtn",type:"toggle",label:"Enable Button Shadow",default:{normal:!1},state:{normal:!0,hover:!0}},{id:"roundedBtn",type:"radius-preset",label:"Border Radius",default:{normal:{radiusType:"none"}},state:{hover:!0,normal:!0}}]},{id:"backgroundColorV2",type:"color-picker-v2",default:{normal:"brand",hover:"highlight"},compoDefaultValue:{normal:"brand",hover:"highlight"},enableGradient:!0},{id:"boxShadowBtn",type:"shadow-v2",default:{normal:{}},compoDefaultValue:{normal:{type:"shadow-1",distance:"4px",blur:"4px",spread:"0px",color:"rgba(18, 18, 18, 0.2)",angle:45,enable:!0}}},{id:"roundedBtnV2",type:"corner-v2",default:{normal:{btrr:"0px",bblr:"0px",bbrr:"0px",btlr:"0px",radiusType:"none"}},compoDefaultValue:{normal:{btrr:"8px",bblr:"8px",bbrr:"8px",btlr:"8px",radiusType:"rounded"},hover:{btrr:"8px",bblr:"8px",bbrr:"8px",btlr:"8px",radiusType:"rounded"}}},{id:"borderBtnV2",type:"border-v2",default:{normal:{borderType:"none",border:"none",borderWidth:"1px",width:"1px 1px 1px 1px",color:"#121212",isCustom:!0}},compoDefaultValue:{normal:{border:"solid",color:"line-3",width:"1px",borderWidth:"1px"},hover:{border:"solid",color:"line-3",width:"1px",borderWidth:"1px"}}},{id:"oosBackgroundV2",type:"color-picker-v2",default:{normal:"#B7B7B7"},compoDefaultValue:{normal:"#B7B7B7"},enableGradient:!0},{id:"oosTextColorV2",type:"color-picker-v2",default:{normal:"text-3"},compoDefaultValue:{normal:"text-3"}},{id:"oosBorderV2",type:"border-v2"},{id:"oosEnableShadow",type:"toggle",label:"Enable Button Shadow",default:!1,hide:!0},{id:"oosShadow",type:"shadow-v2",compoDefaultValue:{type:"shadow-1",distance:"4px",blur:"4px",spread:"0px",color:"rgba(18, 18, 18, 0.2)",angle:45,enable:!0}},{id:"oosRoundedV2",label:"Border Radius",type:"corner-v2",compoDefaultValue:{normal:{btrr:"8px",bblr:"8px",bbrr:"8px",btlr:"8px",radiusType:"rounded"}}},{id:"align",label:"Alignment",type:"option:value",options:[{label:"Left",value:"left",type:"align",tooltip:"Align left",iconName:"gp-align-left"},{label:"Center",value:"center",type:"align",tooltip:"Align center",iconName:"gp-align-center"},{label:"Right",value:"right",type:"align",tooltip:"Align right",iconName:"gp-align-right"}],devices:{desktop:{default:"left"}}},{id:"typo",type:"typography-v2",label:"Typography",default:{type:"paragraph-1",attrs:{color:"text-3"}},compoDefaultValue:{attrs:{color:"text-3"}},hiddenSetting:{textAlign:!0},ignoreReRender:!0},{id:"enableIcon",type:"toggle",default:!0},{id:"enablePrice",type:"toggle",default:!1},{id:"enableSeparator",type:"toggle",default:!1},{id:"transform",label:"Text Transform",type:"select",options:[{value:"default",title:"None"},{value:"capitalize",title:"Capitalize"},{value:"uppercase",title:"Uppercase"},{value:"lowercase",title:"Lowercase"}],default:"default"},{id:"btnSpacing",label:"Inside space",type:"size",default:{type:"medium"},ignoreReRender:!0},{id:"fullWidth",label:"Full Width",type:"toggle",devices:{desktop:{default:!1}}},{id:"width",type:"input:unit",label:"Width",emptyOnClear:!0,min:0,units:["px","%"],hide:!0,devices:{desktop:{default:"100%"}}},{hide:!0,id:"iconSizeAuto",type:"toggle",label:"Auto Size",default:!0},{hide:!0,id:"size",label:"Size Icon",type:"select",options:[{title:"Large",value:"1.2em"},{title:"medium",value:"1em"},{title:"Small",value:"0.8em"}],devices:{desktop:{default:"1em"}}},{id:"iconDimension",type:"input:slider",label:"Size",hide:!0,min:0,max:100,step:1,units:["px","em","rem"],devices:{desktop:{default:"24px"}}},{id:"successTypo",type:"typography-v2",label:"Typography",default:{type:"paragraph-2",attrs:{color:"success"}},ignoreReRender:!0,hiddenSetting:{textAlign:!0}},{id:"successColor",type:"colorpicker",label:"Text Color",default:"success"},{id:"errorTypo",type:"typography-v2",label:"Typography",default:{type:"paragraph-2",attrs:{color:"error"}},ignoreReRender:!0,hiddenSetting:{textAlign:!0}},{id:"errorColor",type:"colorpicker",label:"Text Color",default:"error"},{id:"isCustomOutOfStock",label:"Custom Style",type:"toggle",default:!1},{id:"oosBackground",type:"colorpicker",label:"Background Color",default:"brand",hide:!0},{id:"oosTextColor",type:"colorpicker",label:"Text Color",default:"text-3",hide:!0},{id:"oosBorder",type:"border",label:"Border Style",default:{normal:{borderType:"none",border:"none",isCustom:!1,borderWidth:"1px",width:"1px 1px 1px 1px"}},hide:!0},{id:"oosRounded",type:"radius-preset",label:"Border Radius",default:{radiusType:"none"},hide:!0},{id:"globalSize",type:"size-setting",devices:{desktop:{default:{width:"100%",height:"Auto",padding:{type:"medium",top:"12px",bottom:"12px",left:"24px",right:"24px"}}}},settingConfig:{width:{displayOptions:["full","auto"]},height:{displayOptions:["auto"]}},hiddenSettings:["shape","gap"]}]}];export{e as ProductButtonSettings};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{SettingUIV1 as t}from"./configs/ui-v1.js";import{SettingUIV2 as e}from"./configs/ui-v2.js";import{ProductImageSettingsV2 as i}from"./configs/
|
|
1
|
+
import{SettingUIV1 as t}from"./configs/ui-v1.js";import{SettingUIV2 as e}from"./configs/ui-v2.js";import{ProductImageSettingsV2 as i}from"./configs/settings/index.js";let o={tag:"ProductImagesV2",label:"Product Images",icon:`
|
|
2
2
|
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
3
|
<path d="M13.3337 14.6666C13.3337 16.1333 12.1337 17.3333 10.667 17.3333C9.20033 17.3333 8.00033 16.1333 8.00033 14.6666C8.00033 13.2 9.20033 12 10.667 12C12.1337 12 13.3337 13.2 13.3337 14.6666ZM27.3741 14.8404C26.9836 14.4499 26.3504 14.4499 25.9599 14.8404L16.667 24.1333L14.0346 21.6062C13.6442 21.2314 13.0267 21.2352 12.6409 21.6145L5.33366 28.8V9.33329H34.667V22.1333L27.3741 14.8404ZM34.667 30.6666H23.2003L18.5337 26L26.667 17.8666L34.667 25.8666V30.6666ZM7.33366 30.6666L13.467 24.6666L19.467 30.6666H7.33366ZM3.66699 6.66663C3.11471 6.66663 2.66699 7.11434 2.66699 7.66663V31.4666V32.3333C2.66699 32.8856 3.11471 33.3333 3.66699 33.3333H25.867H36.3337C36.8859 33.3333 37.3337 32.8856 37.3337 32.3333V30.6666V28.5333V24.8V7.66662C37.3337 7.11434 36.8859 6.66663 36.3337 6.66663H3.66699Z" fill="currentColor"/>
|
|
4
4
|
</svg>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{SettingUIV1 as t}from"./configs/ui-v1.js";import{SettingUIV2 as e}from"./configs/ui-v2.js";import{ProductImageSettingsV2 as i}from"./configs/
|
|
1
|
+
import{SettingUIV1 as t}from"./configs/ui-v1.js";import{SettingUIV2 as e}from"./configs/ui-v2.js";import{ProductImageSettingsV2 as i}from"./configs/settings/index.js";let o={tag:"ProductImagesV3",label:"Product Images",icon:`
|
|
2
2
|
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
3
|
<path d="M13.3337 14.6666C13.3337 16.1333 12.1337 17.3333 10.667 17.3333C9.20033 17.3333 8.00033 16.1333 8.00033 14.6666C8.00033 13.2 9.20033 12 10.667 12C12.1337 12 13.3337 13.2 13.3337 14.6666ZM27.3741 14.8404C26.9836 14.4499 26.3504 14.4499 25.9599 14.8404L16.667 24.1333L14.0346 21.6062C13.6442 21.2314 13.0267 21.2352 12.6409 21.6145L5.33366 28.8V9.33329H34.667V22.1333L27.3741 14.8404ZM34.667 30.6666H23.2003L18.5337 26L26.667 17.8666L34.667 25.8666V30.6666ZM7.33366 30.6666L13.467 24.6666L19.467 30.6666H7.33366ZM3.66699 6.66663C3.11471 6.66663 2.66699 7.11434 2.66699 7.66663V31.4666V32.3333C2.66699 32.8856 3.11471 33.3333 3.66699 33.3333H25.867H36.3337C36.8859 33.3333 37.3337 32.8856 37.3337 32.3333V30.6666V28.5333V24.8V7.66662C37.3337 7.11434 36.8859 6.66663 36.3337 6.66663H3.66699Z" fill="currentColor"/>
|
|
4
4
|
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{CarouselSettingsV2Setting as e,CarouselSettingsV2Style as t}from"../../../../carousel/settings/configs/settings.js";let l=[{id:"setting",controls:[{id:"productSetting",type:"product-list",label:"Select product list",default:{productSrc:"PickProduct",productIds:[],collectionId:"Latest",collectionHandle:"",relatedType:"related-product",relatedTag:["collection"],hasRelatedExclude:!1}},{id:"slidesToShow",type:"input:slider",min:1,max:6,isNumber:!0,label:"Products per rows ",devices:{desktop:{default:4},tablet:{default:3},mobile:{default:2}}},{id:"numberOfProducts",type:"input:slider",min:1,max:50,label:"Number of products",isNumber:!0,default:10,ignoreMax:!0},{id:"sameHeight",label:"Enable same height",type:"select",options:[{label:"Same height",value:!0},{label:"Fit content height",value:!1}],default:!0},...e]},{id:"style",controls:[{id:"layout",label:"Layout",type:"layout-selector",iconViewBox:"0 0 78 52",itemPerRow:2,itemSpacing:"large",default:"grid",options:[{label:"Grid",value:"grid",iconName:"gp-grid-layout"},{label:"Slider",value:"slider",iconName:"gp-slider-layout"}]},{id:"width",type:"dropdown:input",label:"Width",inputType:"number",units:["px","%"],hideUnit:!1,isRowWith:!0,devices:{desktop:{default:"default"}},displayOptions:[{label:"Full",value:"100%",showValue:!0},{label:"Default",value:"default",showValue:!0}]},{id:"height",label:"Height",type:"dropdown:input",inputType:"number",units:["px"],displayOptions:[{label:"Fit content",value:"Auto"}],devices:{}},{id:"horizontalGutter",label:"Row gap",type:"input:unit",fallbackValue:!0,min:0,units:["px","%"],devices:{desktop:{default:"16px"},mobile:{default:"16px"}}},{id:"verticalGutter",label:"Column gap",type:"input:unit",units:["px","%"],fallbackValue:!0,min:0,devices:{desktop:{default:"16px"},mobile:{default:"16px"}}},{id:"backgroundColor",type:"color-picker-v2",devices:{desktop:{default:"transparent"}},compoDefaultValue:{desktop:{default:"#DDDDDD"}},enableGradient:!0},{id:"backgroundImage",type:"background-image",devices:{desktop:{default:{}}},compoDefaultValue:{desktop:{default:{type:"image",image:{src:"https://cdn.shopify.com/s/files/1/2005/9307/files/background_settings.jpg",width:1200,height:480,hiddenSEO:!0},repeat:"no-repeat",size:"cover",position:{x:50,y:50},attachment:"scroll",preload:!1}}}},{id:"preloadBgImage",type:"toggle",label:"Preload",default:!1},{id:"align",label:"Align",type:"segment",options:[{label:"Left",value:"left",type:"align",tooltip:"Align left"},{label:"Center",value:"center",type:"align",tooltip:"Align center"},{label:"Right",value:"right",type:"align",tooltip:"Align right"}],devices:{desktop:{default:"center"}}},...t]}];export{l as ProductListSettingsV2};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{CarouselSettingsV2Setting as e,CarouselSettingsV2Style as t}from"../../../../carousel-v3/settings/configs/settings.js";let l=[{id:"setting",controls:[{id:"productSetting",type:"product-list",label:"Select product list",default:{productSrc:"PickProduct",productIds:[],collectionId:"Latest",collectionHandle:"",relatedType:"related-product",relatedTag:["collection"],hasRelatedExclude:!1}},{id:"slidesToShow",type:"input:slider",min:1,max:6,isNumber:!0,label:"Products per rows ",devices:{desktop:{default:4},tablet:{default:3},mobile:{default:2}},disableDecimal:!0},{id:"numberOfProducts",type:"input:slider",min:1,max:50,label:"Number of products",isNumber:!0,default:10,ignoreMax:!0,disableDecimal:!0},{id:"sameHeight",label:"Enable same height",type:"select",options:[{label:"Same height",value:!0},{label:"Fit content height",value:!1}],default:!0},...e]},{id:"style",controls:[{id:"layout",label:"Layout",type:"layout-selector",iconViewBox:"0 0 78 52",itemPerRow:2,itemSpacing:"large",default:"grid",options:[{label:"Grid",value:"grid",iconName:"gp-grid-layout"},{label:"Slider",value:"slider",iconName:"gp-slider-layout"}]},{id:"width",type:"dropdown:input",label:"Width",inputType:"number",units:["px","%"],hideUnit:!1,isRowWith:!0,devices:{desktop:{default:"default"}},displayOptions:[{label:"Full",value:"100%",showValue:!0},{label:"Default",value:"default",showValue:!0}]},{id:"height",label:"Height",type:"dropdown:input",inputType:"number",units:["px"],displayOptions:[{label:"Fit content",value:"Auto"}],devices:{}},{id:"horizontalGutter",label:"Row gap",type:"input:unit",fallbackValue:!0,min:0,units:["px","%"],devices:{desktop:{default:"16px"},mobile:{default:"16px"}}},{id:"verticalGutter",label:"Column gap",type:"input:unit",units:["px","%"],fallbackValue:!0,min:0,devices:{desktop:{default:"16px"},mobile:{default:"16px"}}},{id:"backgroundColor",type:"color-picker-v2",devices:{desktop:{default:"transparent"}},compoDefaultValue:{desktop:{default:"#DDDDDD"}},enableGradient:!0},{id:"backgroundImage",type:"background-image",devices:{desktop:{default:{}}},compoDefaultValue:{desktop:{default:{type:"image",image:{src:"https://cdn.shopify.com/s/files/1/2005/9307/files/background_settings.jpg",width:1200,height:480,hiddenSEO:!0},repeat:"no-repeat",size:"cover",position:{x:50,y:50},attachment:"scroll",preload:!1}}}},{id:"preloadBgImage",type:"toggle",label:"Preload",default:!1},{id:"align",label:"Align",type:"segment",options:[{label:"Left",value:"left",type:"align",tooltip:"Align left"},{label:"Center",value:"center",type:"align",tooltip:"Align center"},{label:"Right",value:"right",type:"align",tooltip:"Align right"}],devices:{desktop:{default:"center"}}},...t]}];export{l as ProductListSettingsV2};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
let e=[{id:"setting",controls:[{id:"updatePrice",label:"Update price",type:"toggle",default:!0},{id:"hasButton",label:"Button",type:"toggle",default:!0},{id:"defaultQtyValue",label:"Text",type:"input:stepper",min:1,default:1},{id:"plusIcon",type:"icon",isHideClear:!0,customLabel:"Plus",info:"Choose from list or paste any SVG icon",default:`<svg height="20px" width="20px" data-name="plus-regular" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" data-id="508817698760687976">
|
|
2
2
|
<path fill="currentColor" strokelinecap="round" strokelinejoin="round" d="M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"></path></svg>`},{id:"minusIcon",type:"icon",isHideClear:!0,customLabel:"Minus",info:"Choose from list or paste any SVG icon",default:`<svg height="20px" width="20px" data-name="minus-regular" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" data-id="508817690725712232">
|
|
3
|
-
<path fill="currentColor" strokelinecap="round" strokelinejoin="round" d="M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z"></path></svg>`},{id:"enableHoverInput",label:"Enable hover input",type:"toggle",default:!1},{id:"enableHoverButton",label:"Enable hover input",type:"toggle",default:!1}]},{id:"style",controls:[{id:"quantityLayout",label:"Style",type:"layout-selector",popoverLabel:"Style",iconViewBox:"0 0 80 48",enableItemBackground:!0,itemPerRow:2,itemSpacing:"large",options:[{label:"Square",value:"product-quantity-square",type:"p-quantity-layout",iconName:"gp-product-quantity-square"},{label:"Square with divider",value:"product-quantity-square-divider",type:"p-quantity-layout",iconName:"gp-product-quantity-square-divider"},{label:"Rounded",value:"product-quantity-rounded",type:"p-quantity-layout",iconName:"gp-product-quantity-rounded"},{label:"Rounded with divider",value:"product-quantity-rounded-divider",type:"p-quantity-layout",iconName:"gp-product-quantity-rounded-divider"},{label:"Square input only",value:"product-quantity-square-input-only",type:"p-quantity-layout",iconName:"gp-product-quantity-square-input-only"},{label:"Rounded input only",value:"product-quantity-rounded-input-only",type:"p-quantity-layout",iconName:"gp-product-quantity-rounded-input-only"}],default:"product-quantity-square"},{id:"
|
|
3
|
+
<path fill="currentColor" strokelinecap="round" strokelinejoin="round" d="M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z"></path></svg>`},{id:"enableHoverInput",label:"Enable hover input",type:"toggle",default:!1},{id:"enableHoverButton",label:"Enable hover input",type:"toggle",default:!1}]},{id:"style",controls:[{id:"quantityLayout",label:"Style",type:"layout-selector",popoverLabel:"Style",iconViewBox:"0 0 80 48",enableItemBackground:!0,itemPerRow:2,itemSpacing:"large",options:[{label:"Square",value:"product-quantity-square",type:"p-quantity-layout",iconName:"gp-product-quantity-square"},{label:"Square with divider",value:"product-quantity-square-divider",type:"p-quantity-layout",iconName:"gp-product-quantity-square-divider"},{label:"Rounded",value:"product-quantity-rounded",type:"p-quantity-layout",iconName:"gp-product-quantity-rounded"},{label:"Rounded with divider",value:"product-quantity-rounded-divider",type:"p-quantity-layout",iconName:"gp-product-quantity-rounded-divider"},{label:"Square input only",value:"product-quantity-square-input-only",type:"p-quantity-layout",iconName:"gp-product-quantity-square-input-only"},{label:"Rounded input only",value:"product-quantity-rounded-input-only",type:"p-quantity-layout",iconName:"gp-product-quantity-rounded-input-only"}],default:"product-quantity-square"},{id:"fullWidth",label:"Full Width",type:"toggle",devices:{desktop:{default:!1}}},{id:"quantityWidth",type:"dropdown:input",label:"Width",inputType:"number",units:["px","%"],hideUnit:!1,displayOptions:[{label:"Full",value:"100%",showValue:!0}],devices:{desktop:{default:"160px"}}},{id:"inputHeight",type:"dropdown:input",label:"Width",inputType:"number",units:["px","%"],hideUnit:!1,displayOptions:[{label:"Full",value:"100%",showValue:!0}],devices:{desktop:{default:"45px"}}},{id:"buttonWidth",type:"dropdown:input",label:"Button Width",inputType:"number",units:["px","%"],hideUnit:!1,displayOptions:[{label:"Full",value:"100%",showValue:!0}],devices:{desktop:{default:"45px"}}},{id:"iconSizeCustom",type:"input:stepper",includeUnit:"px",min:1,devices:{desktop:{default:"16px"}}},{id:"typo",type:"typography-combo",default:{type:"paragraph-1",attrs:{color:"text-1"},custom:{fontSize:{desktop:"16px",tablet:"16px",mobile:"14px"},lineHeight:{desktop:"120%",tablet:"180%",mobile:"180%"},fontWeight:"400",fontFamily:{value:"Assistant",type:"google"},hasShadowText:!1,textShadow:{enable:!1}}},ignoreReRender:!0,hiddenSetting:{transform:!0,textAlign:!0}},{id:"align",label:"Alignment",type:"option:value",options:[{label:"Left",value:"left",type:"align",tooltip:"Align left",iconName:"gp-align-left"},{label:"Center",value:"center",type:"align",tooltip:"Align center",iconName:"gp-align-center"},{label:"Right",value:"right",type:"align",tooltip:"Align right",iconName:"gp-align-right"}],devices:{desktop:{default:"left"}}},{id:"button-behavior-state",type:"behavior-state",label:"Button Style",hide:!0,controls:[{id:"textColor",type:"color-picker-v2",label:"Text Color",default:{normal:"text-1"},compoDefaultValue:{hover:"text-1"},state:{hover:!0,normal:!0}},{id:"inputBackgroundColor",type:"color-picker-v2",label:"Background Color",state:{hover:!0,normal:!0},compoDefaultValue:{normal:"highlight",hover:"highlight"},enableGradient:!0},{id:"buttonBackgroundColor",type:"color-picker-v2",label:"Button Background Color",state:{hover:!0,normal:!0},enableGradient:!0,compoDefaultValue:{normal:"brand",hover:"highlight"}},{id:"iconColor",type:"color-picker-v2",label:"Icon Color",default:{normal:"#121212"},compoDefaultValue:{hover:"text-2"},state:{hover:!0,normal:!0}}]},{id:"borderBtn",label:"Border",type:"border-v2",default:{normal:{}},compoDefaultValue:{normal:{border:"solid",color:"#212121",width:"1px",borderWidth:"1px"},hover:{border:"solid",color:"#212121",width:"1px",borderWidth:"1px"}},state:{hover:!0,normal:!0}},{id:"corner",label:"Corner",type:"corner-v2",default:{normal:{btrr:"0px",bblr:"0px",bbrr:"0px",btlr:"0px",radiusType:"none"}}},{id:"backgroundColor",type:"color-picker-v2",label:"Background Color",devices:{desktop:{default:"#FFFFFF"}},enableGradient:!0},{id:"dividerColor",type:"color-picker-v2",label:"Divider Color",default:{normal:"line-3"},compoDefaultValue:{normal:"line-3"},state:{hover:!0,normal:!0}},{id:"dividerStroke",label:"Thickness",type:"input:stepper",min:1,default:{normal:1},state:{hover:!0,normal:!0}},{id:"inputBorder",label:"Input Border",type:"border-v2",default:{hover:{}},state:{hover:!0,normal:!0}},{id:"shapeBorder",type:"border-v2",devices:{desktop:{default:{border:"solid",color:"line-3",width:"1px",borderWidth:"1px"}}}},{id:"shapeRounded",type:"corner-v2",devices:{desktop:{default:{radiusType:"none"}}}},{id:"shapeShadow",type:"shadow-v2",devices:{desktop:{default:{}}},compoDefaultValue:{desktop:{default:{type:"shadow-1",distance:"4px",blur:"4px",spread:"0px",color:"rgba(18, 18, 18, 0.20)",angle:45,enable:!0}}}}]}];export{e as ProductQuantitySettings};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{rectangleListPresetConfig as e}from"../swatches-style-config/rectangle-list.js";import{colorPresetConfig as t}from"../swatches-style-config/color.js";import{imagePresetConfig as l}from"../swatches-style-config/image.js";import{imageShopifyPresetConfig as a}from"../swatches-style-config/image-shopify.js";import{dropdownPresetConfig as i}from"../swatches-style-config/dropdown.js";let o=[{id:"setting",controls:[{id:"
|
|
1
|
+
import{rectangleListPresetConfig as e}from"../swatches-style-config/rectangle-list.js";import{colorPresetConfig as t}from"../swatches-style-config/color.js";import{imagePresetConfig as l}from"../swatches-style-config/image.js";import{imageShopifyPresetConfig as a}from"../swatches-style-config/image-shopify.js";import{dropdownPresetConfig as i}from"../swatches-style-config/dropdown.js";let o=[{id:"setting",controls:[{id:"optionType",label:"Option Label",type:"select",default:"singleOption",options:[{label:"Separated",value:"singleOption"},{label:"Combine",value:"groupOption"}]},{id:"label",label:"Option Label",type:"toggle",default:!0},{id:"optionAlign",label:"Alignment",type:"segment",devices:{desktop:{default:"left"}},options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}]},{id:"price",label:"Option Price",type:"option:value",hide:!0,default:!0,options:[{value:!0,label:"Yes"},{value:!1,label:"No"}]},{id:"showAsSwatches",label:"Use Option Swatches",type:"swatchesLink",hide:!0,default:!0,hyperlinkInfo:{beforeText:"Go to ",hyperlinkText:"Manage Swatches",afterText:" to configure options display as swatches",modal:"manage_swatches"}},{id:"combineFullWidth",label:"Full Width",type:"toggle",devices:{desktop:{default:!0}}},{id:"combineWidth",type:"input:unit",label:"Width",placeholder:"Auto",min:0,units:["px","%"],hide:!0,devices:{desktop:{default:"100%"}}},{id:"combineHeight",type:"input:unit",label:"Height",placeholder:"Auto",min:0,units:["px"],default:"45px"},{id:"variantPresets",label:"Use Option Swatches",type:"variant:presets",default:[{optionName:"base",optionType:"rectangle_list",presets:{...t,...e,...l,...a,...i}}],hyperlinkInfo:{modal:"manage_swatches"}},{id:"soldOutStyle",type:"select",default:"line",options:[{label:"None",value:"none"},{label:"Unclickable",value:"disable"},{label:"Cross-out",value:"line",icon:"gp-cross-out-one-line"}]},{id:"layout",label:"Layout",type:"option:illustration",iconViewBox:"0 0 66 45",enableItemBackground:!0,devices:{desktop:{default:"vertical"}},options:[{label:"Vertical",value:"vertical",type:"arrange",svgName:"gp-arrange-vertical"},{label:"Horizontal",value:"horizontal",type:"arrange",svgName:"gp-arrange-horizontal"}]},{id:"column",label:"Column",type:"select",devices:{desktop:{default:1}},options:[{label:"1 column",value:1},{label:"2 columns",value:2},{label:"3 columns",value:3},{label:"4 columns",value:4}]},{id:"hasPreSelected",type:"toggle",label:"hasPreSelected",default:!0},{id:"selectVariantDefault",type:"select-variant",label:"Select Default Variant",hide:!0},{id:"blankText",label:"Blank Option Text",type:"input",hide:!0,default:"Please select an option"},{id:"hasOnlyDefaultVariant",label:"Blank Option Text",type:"variant:default",hide:!0,default:!1}]},{id:"style",controls:[{id:"fullWidth",label:"Full Width",type:"toggle",devices:{desktop:{default:!0}}},{id:"width",type:"input:unit",label:"Width",min:0,units:["px","%"],hide:!0,devices:{desktop:{default:"100%"}}},{id:"optionSpacing",label:"Option Spacing",type:"input:unit",units:["px"],placeholder:"Auto",default:"30px"},{id:"labelGap",label:"Gap",type:"input:slider",units:["px"],ignoreMax:!0,max:40,default:"8px"},{id:"swatchAutoWidth",label:"Auto Width",type:"toggle",devices:{desktop:{default:!0}}},{id:"swatchWidth",type:"input:unit",label:"Width",placeholder:"Auto Width",min:0,units:["px","%"],hide:!0,devices:{desktop:{default:"80px"}}},{id:"swatchHeight",type:"input:unit",label:"Height",placeholder:"Auto Height",min:0,units:["px"],devices:{desktop:{default:"45px"}}},{id:"swatchSpacing",label:"Swatch Spacing",type:"input:unit",units:["px"],placeholder:"Auto",default:"var(--g-s-m)"},{id:"marginBottom",label:"Margin Bottom",type:"input:slider",units:["px"],ignoreMax:!0,max:40,devices:{desktop:{default:"16px"}}},{id:"align",label:"Align",type:"option:value",options:[{label:"Left",value:"left",type:"align",tooltip:"Align left",iconName:"gp-align-left"},{label:"Center",value:"center",type:"align",tooltip:"Align center",iconName:"gp-align-center"},{label:"Right",value:"right",type:"align",tooltip:"Align right",iconName:"gp-align-right"}],devices:{desktop:{default:"left"}}},{id:"labelTypo",type:"typography-combo",label:"Typography",default:{type:"paragraph-2",attrs:{color:"text-1",bold:!0}},ignoreReRender:!0,hiddenSetting:{textAlign:!0}},{id:"labelColor",type:"color-picker-v2",label:"Text Color",default:"text-1"},{id:"optionTypo",type:"typography-v2",label:"Typography",default:{type:"paragraph-2"},compoDefaultValue:{attrs:{color:"text-2"}},hiddenSetting:{},ignoreReRender:!0},{id:"behavior-state",type:"behavior-state",label:"Option Value",controls:[{id:"optionBgColor",type:"color-picker-v2",label:"Background Color",default:{normal:"#FFFFFF"},compoDefaultValue:{normal:"#FFFFFF",hover:"highlight",active:"highlight"},state:{active:!0,hover:!0,normal:!0}},{id:"optionTextColor",type:"color-picker-v2",label:"Text Color",default:{normal:"text-2"},compoDefaultValue:{normal:"text-2"},state:{active:!0,hover:!0,normal:!0}},{id:"optionBorder",type:"border",label:"Border",default:{normal:{borderType:"style-2",border:"solid",color:"line-2",isCustom:!1,width:"1px 1px 1px 1px",borderWidth:"1px"},active:{borderType:"style-3",border:"solid",color:"line-3",isCustom:!1,width:"2px 2px 2px 2px",borderWidth:"2px"},hover:{borderType:"style-3",border:"solid",color:"line-3",isCustom:!1,width:"1px 1px 1px 1px",borderWidth:"1px"}},compoDefaultValue:{normal:{borderType:"style-2",border:"solid",color:"line-2"}}},{id:"optionRounded",type:"radius-preset",label:"Border Radius",default:{normal:{btrr:"0px",bblr:"0px",bbrr:"0px",btlr:"0px",radiusType:"none"}}},{id:"optionHasShadow",type:"toggle",default:{normal:!1}},{id:"optionShadow",type:"shadow-v2",label:"Shadow",default:{normal:{type:"shadow-1",distance:"4px",blur:"4px",spread:"0px",color:"rgba(18, 18, 18, 0.20)",angle:45,enable:!1}},compoDefaultValue:{normal:{type:"shadow-1",enable:!0,distance:"4px",blur:"4px",spread:"0px",color:"rgba(18, 18, 18, 0.20)",angle:45}}}]},{id:"dropdownItemWidth",type:"segment",label:"Dropdown Width",devices:{desktop:{default:"fill"},mobile:{default:"fill"},tablet:{default:"fill"}},options:[{label:"Fill",value:"fill"},{label:"Fixed",value:"fixed"}]},{id:"fixedDropdownWidth",type:"input:unit",label:"Fixed Width",units:["px","%"],devices:{desktop:{default:"240px"},mobile:{default:"240px"},tablet:{default:"240px"}}},{id:"swatchItemWidth",type:"segment",label:"Swatch Width",devices:{desktop:{default:"auto"}},options:[{label:"Fill",value:"auto"},{label:"Fixed",value:"fixed"}]},{id:"fixedDropdownWidth",type:"input:unit",label:"Fixed Width",units:["px","%"],devices:{desktop:{default:"240px"}}}]}];export{o as ProductVariantSettings};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let t=(t,a,e)=>{let{displayByDefault:s,scarcityThreshold:
|
|
1
|
+
let t=(t,a,e)=>{let{displayByDefault:s,scarcityThreshold:i=0,template:r,outOfStockMessage:l,continueSelling:o,unlimitedQuantityMessage:d,hiddenCounterWhenOutOfStock:p}=a??{},{displayProgressBar:g,textColor:c,oosTextColor:u,typo:n}=e??{},y=n?.attrs?.color;return{"data-id":t?.uid??"","data-visible":"{{ should_display }}","data-policy":"{{ variant_policy_list | escape }}","gp-setting":JSON.stringify({displayByDefault:s,displayProgressBar:g,scarcityThreshold:i,template:r,outOfStockMessage:l,continueSelling:o,unlimitedQuantityMessage:d,color:c||"text-2",hiddenCounterWhenOutOfStock:p,oosTextColor:u,typoColor:y}).replaceAll('"',""")}},a=()=>({"data-slot-type":"progress-bar","data-visible":"{{ show_progress_bar }}"}),e=()=>({"data-slot-type":"message"}),s=t=>({"data-id":t?.uid??""}),i=(t,a)=>({"data-slot-type":t?"oos-icon":"has-stock-icon","data-visible":a?"true":"false"});export{i as getIconAttrs,a as getLiquidProgressBarAttrs,t as getLiquidTagAttrs,e as getLiquidTextAttrs,s as getWrapperAttrs};
|
|
@@ -46,13 +46,13 @@ 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 %}`},$=(e,a)=>{let{templateStringDisplay:i,outOfStockMessageDisplay:t,continueSellingDisplay:n,unlimitedQuantityMessageDisplay:r}=e??{},{textColor:s}=a??{},l=s||"
|
|
49
|
+
{% endcapture %}`},$=(e,a)=>{let{templateStringDisplay:i,outOfStockMessageDisplay:t,continueSellingDisplay:n,unlimitedQuantityMessageDisplay:r}=e??{},{textColor:s}=a??{},l=s||"text-2";return`
|
|
50
50
|
<div class="gp-hidden gp-text-white gp-py-1 gp-px-2 gp-mr-1 gp-inline-block gp-my-[1px] gp-text-g-${l} gp-bg-g-${l}" >
|
|
51
51
|
<div id="template">${i}</div>
|
|
52
52
|
<div id="out-of-stock-message">${t}</div>
|
|
53
53
|
<div id="continue-selling">${n}</div>
|
|
54
54
|
<div id="unlimited-quantity-message">${r}</div>
|
|
55
|
-
</div>`},
|
|
55
|
+
</div>`},E=(e,a)=>{let i=b(a);if(e)return`
|
|
56
56
|
[data-id="${e}"] {
|
|
57
57
|
.gp-sc-progress-bar{
|
|
58
58
|
${i}
|
|
@@ -60,7 +60,7 @@ let e={AUTO:"auto",MANUAL:"manual"},a={SHOW:"show",HIDE:"hide"},i="%number%",t="
|
|
|
60
60
|
.gp-sc-progress-bar:before{
|
|
61
61
|
${i}
|
|
62
62
|
}
|
|
63
|
-
}`},
|
|
63
|
+
}`},b=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"};
|
|
@@ -68,4 +68,4 @@ let e={AUTO:"auto",MANUAL:"manual"},a={SHOW:"show",HIDE:"hide"},i="%number%",t="
|
|
|
68
68
|
<${t} class='${i}' style='background-color: ${a}'>
|
|
69
69
|
`:`
|
|
70
70
|
<${t} class='${i} gp-bg-g-${a}'>
|
|
71
|
-
`,e.replaceAll(`<${t}>`,n)},A=(e,a,t)=>{if(!e.includes(i))return e;let n="";return n=a.includes("#")?`<span style='--c: ${a}'><$quantity$></span>`:`<span class='gp-text-g-${a}'><$quantity$></span>`,t&&(n=n.replace("<$quantity$>",t.toString())),e.replaceAll(i,n)},N=e=>{let a={};return e["--size"]&&(a["--w"]=e["--size"]),e["--size-tablet"]&&(a["--w-tablet"]=e["--size-tablet"]),e["--size-mobile"]&&(a["--w-mobile"]=e["--size-mobile"]),a};export{T as CONTINUE_SELLING_WHEN_OUT_OF_STOCK,u as DEFAULT_FONT_SIZE,t as DEFAULT_HIGHLIGHT_TAG,p as DEFAULT_PROGRESS_BAR_HEIGHT,i as DEFAULT_QUANTITY_TEMPLATE,g as DEFAULT_RANGE_STEP,l as DEFAULT_REMAINING_PERCENT,s as DEFAULT_REMAINING_QUANTITY,r as DEFAULT_SCARCITY_THRESHOLD,v as MAX_PROGRESS_BAR_HEIGHT,d as MAX_REMAINING_PERCENT,y as MIN_PROGRESS_BAR_HEIGHT,_ as MIN_REMAINING_PERCENT,o as MIN_REMAINING_QUANTITY,n as NO_PRODUCT_LEFT,a as OUT_OF_STOCK,e as QUANTITY_SOURCE,N as convertSizeToWidth,
|
|
71
|
+
`,e.replaceAll(`<${t}>`,n)},A=(e,a,t)=>{if(!e.includes(i))return e;let n="";return n=a.includes("#")?`<span style='--c: ${a}'><$quantity$></span>`:`<span class='gp-text-g-${a}'><$quantity$></span>`,t&&(n=n.replace("<$quantity$>",t.toString())),e.replaceAll(i,n)},N=e=>{let a={};return e["--size"]&&(a["--w"]=e["--size"]),e["--size-tablet"]&&(a["--w-tablet"]=e["--size-tablet"]),e["--size-mobile"]&&(a["--w-mobile"]=e["--size-mobile"]),a};export{T as CONTINUE_SELLING_WHEN_OUT_OF_STOCK,u as DEFAULT_FONT_SIZE,t as DEFAULT_HIGHLIGHT_TAG,p as DEFAULT_PROGRESS_BAR_HEIGHT,i as DEFAULT_QUANTITY_TEMPLATE,g as DEFAULT_RANGE_STEP,l as DEFAULT_REMAINING_PERCENT,s as DEFAULT_REMAINING_QUANTITY,r as DEFAULT_SCARCITY_THRESHOLD,v as MAX_PROGRESS_BAR_HEIGHT,d as MAX_REMAINING_PERCENT,y as MIN_PROGRESS_BAR_HEIGHT,_ as MIN_REMAINING_PERCENT,o as MIN_REMAINING_QUANTITY,n as NO_PRODUCT_LEFT,a as OUT_OF_STOCK,e as QUANTITY_SOURCE,N as convertSizeToWidth,E as getInlineCss,f as getLiquidInitData,c as getLiquidTextContent,$ as getTextDisplayData,m as transformHighlighTag,A as transformNumberTag};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeStyle as t,getSingleColorVariable as e,makeStyleResponsive as r,makeWidth as o,composeTypographyStyle as s,getStyleShadow as l,genVariable as n,getShortName as a,composeTypographyV2 as p}from"@gem-sdk/core";import{convertSizeToWidth as c}from"./helpers.js";let g=(s,l)=>{let n;let{progressBarHeight:a,color:p}=s??{},{remainingPercentage:c}=l??{};return a&&(n=Object.fromEntries(Object.entries(a).map(([t,e])=>[t,Number((e+"").replace("px",""))]))),{...r("h",o(n),"px"),...t({bg:"linear-gradient(90deg, #eee 50%, transparent 50%)",bgc:e(p),bgp:`${parseInt(String(c||0))}% center`})}},u=s=>{let{width:l,textColor:n}=s??{};return{...r("w",o(l)),...t({c:e(n)})}},i=t=>{let{alignment:e}=t??{};return{...r("jc",e)}},m=(s,l,g)=>{let{iconColor:u,oosIconColor:i}=s??{};return{...t({c:e(g?i:u)}),...function(e,s){let{typo:l}=e??{},{iconSize:g}=s??{};if(g?.desktop)return{...r("w",o(g),"px")};let u=l&&!l.custom?n(a(`typography-${l.type}-fontSize`)):void 0,i=l&&l.custom?c(p(l.custom)):{};return u?t({w:u}):i}(s,l)}},y=(t,e)=>{let{typo:r,oosTextColor:o}=t??{},n={...r,attrs:{...r?.attrs,color:e?o:r?.attrs?.color}},a=s(n,t?.typography);return{...a,...l({value:r?.custom?.textShadow,styleAppliedFor:"text-shadow",isEnableShadow:r?.custom?.hasShadowText})}};export{u as getContainerStyles,m as getIconStyles,g as getProgressBarStyles,y as getTextStyles,i as getWrapperStyles};
|
|
1
|
+
import{makeStyle as t,getSingleColorVariable as e,makeStyleResponsive as r,makeWidth as o,composeTypographyStyle as s,getStyleShadow as l,genVariable as n,getShortName as a,composeTypographyV2 as p}from"@gem-sdk/core";import{convertSizeToWidth as c}from"./helpers.js";let g=(s,l)=>{let n;let{progressBarHeight:a,color:p}=s??{},{remainingPercentage:c}=l??{};return a&&(n=Object.fromEntries(Object.entries(a).map(([t,e])=>[t,Number((e+"").replace("px",""))]))),{...r("h",o(n),"px"),...t({bg:"linear-gradient(90deg, #eee 50%, transparent 50%)",bgc:e(p),bgp:`${parseInt(String(c||0))}% center`})}},u=s=>{let{width:l,textColor:n}=s??{};return{...r("w",o(l)),...t({c:e(n||"text-2")})}},i=t=>{let{alignment:e}=t??{};return{...r("jc",e)}},m=(s,l,g)=>{let{iconColor:u,oosIconColor:i}=s??{};return{...t({c:e(g?i:u)}),...function(e,s){let{typo:l}=e??{},{iconSize:g}=s??{};if(g?.desktop)return{...r("w",o(g),"px")};let u=l&&!l.custom?n(a(`typography-${l.type}-fontSize`)):void 0,i=l&&l.custom?c(p(l.custom)):{};return u?t({w:u}):i}(s,l)}},y=(t,e)=>{let{typo:r,oosTextColor:o}=t??{},n={...r,attrs:{...r?.attrs,color:e?o:r?.attrs?.color}},a=s(n,t?.typography);return{...a,...l({value:r?.custom?.textShadow,styleAppliedFor:"text-shadow",isEnableShadow:r?.custom?.hasShadowText})}};export{u as getContainerStyles,m as getIconStyles,g as getProgressBarStyles,y as getTextStyles,i as getWrapperStyles};
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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}from"../common/helpers.js";let a=(a,l)=>{let s=t(),{template:c,outOfStockMessage:y,continueSelling:m,unlimitedQuantityMessage:d}=a??{},{textColor:f}=l??{},p=f||"text-2",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&&d;function x(){return S?i(d,p):g?i(y||"",p):v?i(m||"",p):i(u(c||"",p,k),p)}let B=r(()=>{if("edit"===s)return!1;let t=!a?.displayByDefault&&k>=(a?.scarcityThreshold??0),e=a?.hiddenCounterWhenOutOfStock&&g;return t||e},[k,g,s,a?.displayByDefault,a?.hiddenCounterWhenOutOfStock,a?.scarcityThreshold]);return{outputMessage:()=>{let t=l?.typo?.attrs?.transform==="capitalize";return t?x()?.toLocaleLowerCase():x()},isOutOfStock:g,inventoryQuantity:k,shouldHideCounter:B}};export{a as useStockCounter};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{StockCounterSettingsV2 as o}from"./configs/settings
|
|
1
|
+
import{StockCounterSettingsV2 as o}from"./configs/settings.js";import{SettingUIV2 as t}from"./configs/ui-v2.js";import{StockCounterPreset as e}from"./configs/presets.js";let C={tag:"StockCounter",label:"Stock Counter",icon:`
|
|
2
2
|
<svg width="32" height="32" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
3
|
<path d="M33.3905 11.2545C33.1953 11.4498 32.8787 11.4498 32.6834 11.2545L29.8643 8.43541C29.6691 8.24014 29.6691 7.92356 29.8643 7.7283L30.9203 6.67231C31.1156 6.47705 31.4322 6.47705 31.6274 6.67231L34.4465 9.49139C34.6418 9.68666 34.6418 10.0032 34.4465 10.1985L33.3905 11.2545ZM15.7838 4.68533C15.7838 4.96148 16.0077 5.18534 16.2838 5.18534H22.84C23.1161 5.18534 23.34 4.96148 23.34 4.68534V3.16663C23.34 2.89048 23.1161 2.66663 22.84 2.66663H16.2838C16.0077 2.66663 15.7838 2.89048 15.7838 3.16663V4.68533ZM28.3774 28.6093L20.8212 21.0532V10.3487C26.4883 10.9784 30.8961 15.7639 30.8961 21.5569C30.8961 24.2016 30.0145 26.7203 28.3774 28.6093ZM8.22769 21.5569C8.22769 15.7639 12.6354 10.9784 18.3025 10.3487V21.7724C18.3025 22.0376 18.4079 22.292 18.5954 22.4795L26.6143 30.4984C24.7252 32.0096 22.2065 33.0171 19.5619 33.0171C13.2651 32.8911 8.22769 27.8537 8.22769 21.5569ZM19.5619 7.70404C11.8798 7.70404 5.70898 13.8749 5.70898 21.5569C5.70898 29.239 11.8798 35.4098 19.5619 35.4098C27.2439 35.4098 33.4148 29.239 33.4148 21.5569C33.4148 13.8749 27.2439 7.70404 19.5619 7.70404Z" fill="currentColor"/>
|
|
4
4
|
</svg>
|