@gem-sdk/components 2.0.0-staging.1021 → 2.0.0-staging.1024
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/accordion/components/Accordion.liquid.js +6 -6
- package/dist/cjs/article/components/ArticleContent.liquid.js +3 -3
- package/dist/cjs/button/common/attrs.js +1 -1
- package/dist/cjs/button/components/Button.liquid.js +7 -7
- package/dist/cjs/carousel/components/root/Carousel.liquid.js +3 -3
- package/dist/cjs/cart/components/shop-pay-button/ShopPayButton.liquid.js +3 -3
- package/dist/cjs/collection/components/collection-description/CollectionDescription.liquid.js +5 -5
- package/dist/cjs/collection/components/collection-paginator/CollectionPaginator.liquid.js +3 -3
- package/dist/cjs/collection/components/collection-toolbar/CollectionToolbar.liquid.js +5 -5
- package/dist/cjs/countdown-timer/components/Countdown.liquid.js +15 -15
- package/dist/cjs/coupon/components/Coupon.liquid.js +3 -3
- package/dist/cjs/dialog/components/Dialog.liquid.js +3 -3
- package/dist/cjs/estimate-delivery/components/EstimateDate.liquid.js +3 -3
- package/dist/cjs/form/components/form-dropdown/FormDropdown.liquid.js +3 -3
- package/dist/cjs/form/components/newsletter/Newsletter.liquid.js +3 -3
- package/dist/cjs/grid/components/row/Row.liquid.js +7 -7
- package/dist/cjs/hero-banner/components/HeroBanner.liquid.js +9 -9
- package/dist/cjs/icon-list/common/styles.js +1 -1
- package/dist/cjs/icon-list-v2/components/IconList.liquid.js +7 -7
- package/dist/cjs/image-comparison/components/CompareImage.liquid.js +4 -4
- package/dist/cjs/link/components/Link.js +1 -1
- package/dist/cjs/marquee/components/Marquee.liquid.js +3 -3
- package/dist/cjs/product/components/dynamic-checkout/Button.liquid.js +3 -3
- package/dist/cjs/product/components/file-upload/UploadFile.liquid.js +3 -3
- package/dist/cjs/product/components/product-badge/ProductBadge.liquid.js +6 -6
- package/dist/cjs/product/components/product-bundle/ProductBundleDiscount.liquid.js +3 -3
- package/dist/cjs/product/components/product-bundle/ProductBundleDiscountChildrenItem.liquid.js +2 -2
- package/dist/cjs/product/components/product-button/ProductButton.liquid.js +3 -3
- package/dist/cjs/product/components/product-description/ProductDescription.liquid.js +5 -5
- package/dist/cjs/product/components/product-description/common/styles.js +3 -3
- package/dist/cjs/product/components/product-description/hooks/useGpDescription.js +1 -1
- package/dist/cjs/product/components/product-discount-tag/ProductDiscountTag.liquid.js +3 -3
- package/dist/cjs/product/components/product-images-v2/ProductImagesV2.liquid.js +3 -3
- package/dist/cjs/product/components/product-list/ProductList.liquid.js +4 -4
- package/dist/cjs/product/components/product-list/ProductListCarouselItem.liquid.js +2 -2
- package/dist/cjs/product/components/product-list/ProductListGridItem.liquid.js +2 -2
- package/dist/cjs/product/components/product-list/ProductListGridLayout.liquid.js +2 -2
- package/dist/cjs/product/components/product-price/ProductPrice.liquid.js +3 -3
- package/dist/cjs/product/components/product-properties/ProductProperties.liquid.js +6 -6
- package/dist/cjs/product/components/product-quantity/ProductQuantity.liquid.js +4 -4
- package/dist/cjs/product/components/product-sku/Sku.liquid.js +3 -3
- package/dist/cjs/product/components/product-variants/ProductVariants.liquid.js +7 -7
- package/dist/cjs/product/components/product-view-more/ProductViewMore.liquid.js +3 -3
- package/dist/cjs/product/components/product-wrap/Product.liquid.js +9 -9
- package/dist/cjs/sticky/components/Sticky.liquid.js +3 -3
- package/dist/cjs/stock-counter/components/StockCounter.liquid.js +3 -3
- package/dist/cjs/tab/components/Tabs.liquid.js +6 -6
- package/dist/cjs/third-party/components/BoostAISearchDiscovery.liquid.js +1 -1
- package/dist/cjs/third-party/components/SmartSearchBarAndFilters.liquid.js +1 -1
- package/dist/cjs/video/components/HTML5Embed.liquid.js +3 -3
- package/dist/cjs/video/components/LiteVimeoEmbed.liquid.js +3 -3
- package/dist/cjs/video/components/LiteYouTubeEmbed.liquid.js +3 -3
- package/dist/esm/accordion/components/Accordion.liquid.js +6 -6
- package/dist/esm/article/components/ArticleContent.liquid.js +5 -5
- package/dist/esm/button/common/attrs.js +1 -1
- package/dist/esm/button/components/Button.liquid.js +6 -6
- package/dist/esm/carousel/components/root/Carousel.liquid.js +4 -4
- package/dist/esm/cart/components/shop-pay-button/ShopPayButton.liquid.js +5 -5
- package/dist/esm/collection/components/collection-description/CollectionDescription.liquid.js +6 -6
- package/dist/esm/collection/components/collection-paginator/CollectionPaginator.liquid.js +4 -4
- package/dist/esm/collection/components/collection-toolbar/CollectionToolbar.liquid.js +4 -4
- package/dist/esm/countdown-timer/components/Countdown.liquid.js +4 -4
- package/dist/esm/coupon/components/Coupon.liquid.js +4 -4
- package/dist/esm/dialog/components/Dialog.liquid.js +5 -5
- package/dist/esm/estimate-delivery/components/EstimateDate.liquid.js +5 -5
- package/dist/esm/form/components/form-dropdown/FormDropdown.liquid.js +6 -6
- package/dist/esm/form/components/newsletter/Newsletter.liquid.js +3 -3
- package/dist/esm/grid/components/row/Row.liquid.js +4 -4
- package/dist/esm/hero-banner/components/HeroBanner.liquid.js +4 -4
- package/dist/esm/icon-list/common/styles.js +1 -1
- package/dist/esm/icon-list-v2/components/IconList.liquid.js +4 -4
- package/dist/esm/image-comparison/components/CompareImage.liquid.js +4 -4
- package/dist/esm/link/components/Link.js +1 -1
- package/dist/esm/marquee/components/Marquee.liquid.js +3 -3
- package/dist/esm/product/components/dynamic-checkout/Button.liquid.js +6 -6
- package/dist/esm/product/components/file-upload/UploadFile.liquid.js +5 -5
- package/dist/esm/product/components/product-badge/ProductBadge.liquid.js +4 -4
- package/dist/esm/product/components/product-bundle/ProductBundleDiscount.liquid.js +3 -3
- package/dist/esm/product/components/product-bundle/ProductBundleDiscountChildrenItem.liquid.js +2 -2
- package/dist/esm/product/components/product-button/ProductButton.liquid.js +4 -4
- package/dist/esm/product/components/product-description/ProductDescription.liquid.js +11 -11
- package/dist/esm/product/components/product-description/common/styles.js +2 -2
- package/dist/esm/product/components/product-description/hooks/useGpDescription.js +1 -1
- package/dist/esm/product/components/product-discount-tag/ProductDiscountTag.liquid.js +5 -5
- package/dist/esm/product/components/product-images-v2/ProductImagesV2.liquid.js +3 -3
- package/dist/esm/product/components/product-list/ProductList.liquid.js +4 -4
- package/dist/esm/product/components/product-list/ProductListCarouselItem.liquid.js +2 -2
- package/dist/esm/product/components/product-list/ProductListGridItem.liquid.js +2 -2
- package/dist/esm/product/components/product-list/ProductListGridLayout.liquid.js +2 -2
- package/dist/esm/product/components/product-price/ProductPrice.liquid.js +5 -5
- package/dist/esm/product/components/product-properties/ProductProperties.liquid.js +4 -4
- package/dist/esm/product/components/product-quantity/ProductQuantity.liquid.js +4 -4
- package/dist/esm/product/components/product-sku/Sku.liquid.js +3 -3
- package/dist/esm/product/components/product-variants/ProductVariants.liquid.js +3 -3
- package/dist/esm/product/components/product-view-more/ProductViewMore.liquid.js +5 -5
- package/dist/esm/product/components/product-wrap/Product.liquid.js +8 -8
- package/dist/esm/sticky/components/Sticky.liquid.js +5 -5
- package/dist/esm/stock-counter/components/StockCounter.liquid.js +3 -3
- package/dist/esm/tab/components/Tabs.liquid.js +5 -5
- package/dist/esm/third-party/components/BoostAISearchDiscovery.liquid.js +2 -2
- package/dist/esm/third-party/components/SmartSearchBarAndFilters.liquid.js +1 -1
- package/dist/esm/video/components/HTML5Embed.liquid.js +3 -3
- package/dist/esm/video/components/LiteVimeoEmbed.liquid.js +3 -3
- package/dist/esm/video/components/LiteYouTubeEmbed.liquid.js +7 -7
- package/package.json +2 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import{template as r,dataStringify as e,isLocalEnv as o,baseAssetURL as s}from"@gem-sdk/core";import{getSettingPreloadData as c}from"../../../helpers.js";import t from"../../../text/components/Text.liquid.js";import{createClass as p,createAttr as m,createStateOrContext as i,Liquid as l}from"@gem-sdk/system";import{getWrapperClasses as a}from"./common/classes.js";import{getAttrs as d}from"./common/attrs.js";import{getTextProps as u}from"./common/helpers.js";let ProductPrice=n=>{let{style:f,setting:y,builderProps:$,pageContext:h}=n,g=p(a(n)),P=m(d(n)),j=u(n),
|
|
2
|
-
<gp-product-price
|
|
1
|
+
import{template as r,dataStringify as e,isLocalEnv as o,baseAssetURL as s}from"@gem-sdk/core";import{getSettingPreloadData as c}from"../../../helpers.js";import t from"../../../text/components/Text.liquid.js";import{createClass as p,createAttr as m,createStateOrContext as i,Liquid as l}from"@gem-sdk/system";import{getWrapperClasses as a}from"./common/classes.js";import{getAttrs as d}from"./common/attrs.js";import{getTextProps as u}from"./common/helpers.js";let ProductPrice=n=>{let{style:f,setting:y,builderProps:$,pageContext:h}=n,g=p(a(n)),P=m(d(n)),j=u(n),v=i({priceType:y?.priceType,uid:$?.uid,locale:"{{shop.locale}}",currency:"{{shop.currency}}",moneyFormat:`{{ ${h?.showPriceCurrency?"shop.money_with_currency_format":"shop.money_format"} | replace: '"', '\\"' | escape }}`}),_=()=>{let r=o?"{{ 'gp-product-price-v7-5.js' | asset_url }}":`${s}/assets-v2/gp-product-price-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}`;return`<script ${c('class="gps-link" delay',"src")}="${r}" defer="defer"></script>`};return l(r`
|
|
2
|
+
<gp-product-price-v7-5
|
|
3
3
|
${P}
|
|
4
4
|
class="${g}"
|
|
5
5
|
style="${f}"
|
|
6
|
-
gp-data='${e(
|
|
6
|
+
gp-data='${e(v)}'
|
|
7
7
|
>
|
|
8
8
|
${t(j)}
|
|
9
|
-
</gp-product-price>
|
|
10
|
-
${
|
|
9
|
+
</gp-product-price-v7-5>
|
|
10
|
+
${_()}
|
|
11
11
|
`)};export{ProductPrice,ProductPrice as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{composeClasses as r,template as e,RenderIf as t,isLocalEnv as s,baseAssetURL as o}from"@gem-sdk/core";import p from"./property-choice/ProductPropertyChoice.liquid.js";import l from"./property-input/ProductPropertyInput.liquid.js";import i from"./property-select/ProductPropertySelect.liquid.js";import{getSettingPreloadData as d}from"../../../helpers.js";import{createAttr as c,createStyle as m,createClass as a}from"@gem-sdk/system";import{getContents as n,getLabelContent as u}from"./common/helpers.js";import{getWrapperLiquidAttrs as $,getWrapperErrorMessageAttrs as y}from"./common/attrs.js";import{getWrapperStyles as f,getLabelStyles as
|
|
2
|
-
<gp-product-property ${{..._}} class="${O}"
|
|
1
|
+
import{composeClasses as r,template as e,RenderIf as t,isLocalEnv as s,baseAssetURL as o}from"@gem-sdk/core";import p from"./property-choice/ProductPropertyChoice.liquid.js";import l from"./property-input/ProductPropertyInput.liquid.js";import i from"./property-select/ProductPropertySelect.liquid.js";import{getSettingPreloadData as d}from"../../../helpers.js";import{createAttr as c,createStyle as m,createClass as a}from"@gem-sdk/system";import{getContents as n,getLabelContent as u}from"./common/helpers.js";import{getWrapperLiquidAttrs as $,getWrapperErrorMessageAttrs as y}from"./common/attrs.js";import{getWrapperStyles as f,getLabelStyles as v,getLabelContentStyles as g,getWrapperErrorMessageStyles as h}from"./common/styles.js";import{getLabelClasses as C,getLiquidTagClasses as P,getLabelWrapperClasses as j,getWrapperErrorMessageClasses as w}from"./common/classes.js";let ProductProperties=({setting:x,styles:S,builderProps:k,advanced:E,pageContext:M})=>{let{name:b,type:q,childItem:V,translate:Z}=x??{},{isDisplayLabel:A=!0}=S??{};x&&!b&&(x.name="Property");let G=k?.uid,{displayLabel:I}=n(G,M,x),_=c({...$(G,M,x)}),B=m({...f(S)}),F=m({...v(S)}),N=a({...C(S)}),O=a({...P(x)}),R=a({...j(E)}),T=m({...g()}),z=u(x),D=a({...w(),...r("data-[hidden=true]:gp-hidden")}),H=m({...h(S)}),J=c({...y()});return e`
|
|
2
|
+
<gp-product-property-v7-5 ${{..._}} class="${O}"
|
|
3
3
|
style="${B}"
|
|
4
4
|
>
|
|
5
5
|
${t(A,e`<div class="${R}">
|
|
@@ -35,5 +35,5 @@ import{composeClasses as r,template as e,RenderIf as t,isLocalEnv as s,baseAsset
|
|
|
35
35
|
<span data-slot-type="message-content" class="gp-pl-1"></span>
|
|
36
36
|
</div>
|
|
37
37
|
</div>
|
|
38
|
-
</gp-product-property>
|
|
39
|
-
${t(s,`<script ${d('class="gps-link" delay',"src")}="{{ 'gp-product-property.js' | asset_url }}" defer="defer"></script>`,`<script ${d('class="gps-link" delay',"src")}="${o}/assets-v2/gp-product-property.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}`};export{ProductProperties as default};
|
|
38
|
+
</gp-product-property-v7-5>
|
|
39
|
+
${t(s,`<script ${d('class="gps-link" delay',"src")}="{{ 'gp-product-property-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${d('class="gps-link" delay',"src")}="${o}/assets-v2/gp-product-property-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}`};export{ProductProperties as default};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{template as t,RenderIf as s,isLocalEnv as e,baseAssetURL as a}from"@gem-sdk/core";import{getSettingPreloadData as i}from"../../../helpers.js";import{createAttr as l,createClass as r,createStyle as o}from"@gem-sdk/system";import{getContainerAttrs as n,getInputAttr as u,getButtonAttrs as d}from"./common/attrs.js";import{getContainerClasses as c,getWrapperClasses as p,getInputClasses as f,getButtonClass as m,getIconWrapperClasses as $}from"./common/classes.js";import{getContainerStyles as b,getWrapperStyles as
|
|
1
|
+
import{template as t,RenderIf as s,isLocalEnv as e,baseAssetURL as a}from"@gem-sdk/core";import{getSettingPreloadData as i}from"../../../helpers.js";import{createAttr as l,createClass as r,createStyle as o}from"@gem-sdk/system";import{getContainerAttrs as n,getInputAttr as u,getButtonAttrs as d}from"./common/attrs.js";import{getContainerClasses as c,getWrapperClasses as p,getInputClasses as f,getButtonClass as m,getIconWrapperClasses as $}from"./common/classes.js";import{getContainerStyles as b,getWrapperStyles as v,getInputStyle as y,getButtonStyle as g}from"./common/styles.js";import{getIconWidth as S,getMinusIcon as _,getPlusIcon as h}from"./common/helpers.js";let ProductQuantity=({setting:j={},styles:q={},advanced:B,builderProps:k})=>{let{plusIcon:E,minusIcon:H,updatePrice:P}=j,Q=j.defaultQtyValue??1,{inputHeight:A,buttonBackgroundColor:G,iconColor:L,inputBackgroundColor:M,textColor:V,align:x,borderBtn:C,buttonWidth:D,iconSizeCustom:I,corner:N,backgroundColor:O,dividerColor:R,dividerStroke:T}=q,w=j?.hasButton,z=l({...n({uid:k?.uid||"",isDisableByLiquid:!0})}),F=r({...c(B?.cssClass)}),J=o({...b({align:x,inputHeight:A})}),K=r({...p()}),U=o({...v({backgroundColor:O,styles:q})}),W=l({...u({isLiquid:!0,hasButton:w,defaultQty:Q})}),X=r({...f({styles:q,borderBtn:C,inputBackgroundColor:M,textColor:V})}),Y=o({...y({setting:j,styles:{...q,borderBtn:C,inputBackgroundColor:M,textColor:V,dividerColor:R,dividerStroke:T}})}),Z=r({...m({borderBtn:C,buttonBackgroundColor:G,iconColor:L,buttonSide:"left"})}),tt=o({...g({borderBtn:C,buttonWidth:D,buttonBackgroundColor:G,iconColor:L,corner:N,enableHoverButton:j?.enableHoverButton})}),ts=l({...d({buttonSide:"left"})}),te=r({...m({borderBtn:C,buttonBackgroundColor:G,iconColor:L,buttonSide:"right"})}),ta=o({...g({borderBtn:C,buttonWidth:D,buttonBackgroundColor:G,iconColor:L,corner:N,enableHoverButton:j?.enableHoverButton})}),ti=l({...d({buttonSide:"right"})}),tl=r({...$()}),tr=S(I);return t`
|
|
2
2
|
{%- liquid
|
|
3
3
|
assign current_variant = product.selected_or_first_available_variant
|
|
4
4
|
assign available = current_variant.available | default: false
|
|
5
5
|
-%}
|
|
6
|
-
<gp-product-quantity
|
|
6
|
+
<gp-product-quantity-v7-5
|
|
7
7
|
${{...z}}
|
|
8
8
|
data-price="${P}"
|
|
9
9
|
class="${F}"
|
|
@@ -44,5 +44,5 @@ import{template as t,RenderIf as s,isLocalEnv as e,baseAssetURL as a}from"@gem-s
|
|
|
44
44
|
</button>
|
|
45
45
|
`)}
|
|
46
46
|
</div>
|
|
47
|
-
</gp-product-quantity>
|
|
48
|
-
${s(e,`<script ${i('class="gps-link" delay',"src")}="{{ 'gp-product-quantity.js' | asset_url }}" defer="defer"></script>`,`<script ${i('class="gps-link" delay',"src")}="${a}/assets-v2/gp-product-quantity.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}`};export{ProductQuantity as default};
|
|
47
|
+
</gp-product-quantity-v7-5>
|
|
48
|
+
${s(e,`<script ${i('class="gps-link" delay',"src")}="{{ 'gp-product-quantity-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${i('class="gps-link" delay',"src")}="${a}/assets-v2/gp-product-quantity-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}`};export{ProductQuantity as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{template as e,isLocalEnv as t,baseAssetURL as r}from"@gem-sdk/core";import{getSettingPreloadData as s}from"../../../helpers.js";import a from"../../../text/components/Text.liquid.js";import{LiquidUnless as l,LiquidIf as o,If as u}from"@gem-sdk/system";let ProductSku=({setting:i,styles:c,advanced:d,builderProps:p})=>{let n=c?.typo?.attrs?.transform==="capitalize",m=i?.label&&i.label.trim().length?`${n?i.label.toString().toLocaleLowerCase():i.label}`:"";c?.disableHoverColor&&delete c.underlineLink;let g=()=>{let e=t?"{{ 'gp-product-sku.js' | asset_url }}":`${r}/assets-v2/gp-product-sku.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}`;return`<script ${s('class="gps-link" delay',"src")}="${e}" defer="defer"></script>`};return e`
|
|
1
|
+
import{template as e,isLocalEnv as t,baseAssetURL as r}from"@gem-sdk/core";import{getSettingPreloadData as s}from"../../../helpers.js";import a from"../../../text/components/Text.liquid.js";import{LiquidUnless as l,LiquidIf as o,If as u}from"@gem-sdk/system";let ProductSku=({setting:i,styles:c,advanced:d,builderProps:p})=>{let n=c?.typo?.attrs?.transform==="capitalize",m=i?.label&&i.label.trim().length?`${n?i.label.toString().toLocaleLowerCase():i.label}`:"";c?.disableHoverColor&&delete c.underlineLink;let g=()=>{let e=t?"{{ 'gp-product-sku-v7-5.js' | asset_url }}":`${r}/assets-v2/gp-product-sku-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}`;return`<script ${s('class="gps-link" delay',"src")}="${e}" defer="defer"></script>`};return e`
|
|
2
2
|
${l("product","<p>Product not found</p>",`{% assign currentVariant = product.selected_or_first_available_variant %}
|
|
3
|
-
<gp-product-sku gp-data='${JSON.stringify({label:m})}'>
|
|
3
|
+
<gp-product-sku-v7-5 gp-data='${JSON.stringify({label:m})}'>
|
|
4
4
|
${a({styles:c,setting:{...i,text:`${o("currentVariant.sku.size > 0 ",`${m} ${u(n,"{{ currentVariant.sku | downcase }}","{{ currentVariant.sku }}")}`)}`,excludeFlex:!0,isForceValue:!0},advanced:d,builderProps:p,className:"gp-product-sku"})}
|
|
5
|
-
</gp-product-sku>
|
|
5
|
+
</gp-product-sku-v7-5>
|
|
6
6
|
${g()}`)}`};export{ProductSku as default};
|
|
@@ -94,10 +94,10 @@ import{composeMemo as t,template as e,DEVICES as s,getResponsiveValueByScreen as
|
|
|
94
94
|
<div className="${tl}">
|
|
95
95
|
${l(tm)}
|
|
96
96
|
</div>
|
|
97
|
-
`;$({setting:B,styles:JSON.stringify(E),variants:"{{ product.variants | json | escape }}",optionsWithValues:"{{ product.options_with_values | json | escape }}",variantSelected:"{{ variant | json | escape }}",variantInventoryQuantity:"{{ product.variants | map: 'inventory_quantity' | json | escape }}",variantInventoryPolicy:"{{ product.variants | map: 'inventory_policy' | json | escape }}",moneyFormat:"{{ shop.money_format | json | escape }}",productId:"{{ product.id | json | escape }}",productUrl:"{{ product.url | json | escape }}",productHandle:"{{ product.handle | json | escape }}",displayState:`${JSON.stringify(z)}`,totalVariantCombinations:"{{ total_combinations }}",firstAvailableVariant:"{{ product.selected_or_first_available_variant | json | escape }}"});let td=g(V({uid:H,hasPreSelected:W})),tu=u(_(N)),t$=d({"gp-flex gp-flex-col !gp-ml-0":!0}),tg=()=>{let t=i?"{{ 'gp-product-variant-
|
|
97
|
+
`;$({setting:B,styles:JSON.stringify(E),variants:"{{ product.variants | json | escape }}",optionsWithValues:"{{ product.options_with_values | json | escape }}",variantSelected:"{{ variant | json | escape }}",variantInventoryQuantity:"{{ product.variants | map: 'inventory_quantity' | json | escape }}",variantInventoryPolicy:"{{ product.variants | map: 'inventory_policy' | json | escape }}",moneyFormat:"{{ shop.money_format | json | escape }}",productId:"{{ product.id | json | escape }}",productUrl:"{{ product.url | json | escape }}",productHandle:"{{ product.handle | json | escape }}",displayState:`${JSON.stringify(z)}`,totalVariantCombinations:"{{ total_combinations }}",firstAvailableVariant:"{{ product.selected_or_first_available_variant | json | escape }}"});let td=g(V({uid:H,hasPreSelected:W})),tu=u(_(N)),t$=d({"gp-flex gp-flex-col !gp-ml-0":!0}),tg=()=>{let t=i?"{{ 'gp-product-variant-v7-5.js' | asset_url }}":`${o}/assets-v2/gp-product-variant-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}`;return`<script ${m('class="gps-link" delay',"src")}="${t}" defer="defer"></script>`};return e`
|
|
98
98
|
${v("{%- assign total_combinations = 1 -%}")}
|
|
99
99
|
${y("option in product.options_with_values","{%- assign total_combinations = total_combinations | times: option.values.size -%}")}
|
|
100
|
-
<gp-product-variants
|
|
100
|
+
<gp-product-variants-v7-5
|
|
101
101
|
${td}
|
|
102
102
|
gp-data='{
|
|
103
103
|
"setting":${JSON.stringify(B)?.replaceAll("'","'")},
|
|
@@ -124,7 +124,7 @@ import{composeMemo as t,template as e,DEVICES as s,getResponsiveValueByScreen as
|
|
|
124
124
|
>
|
|
125
125
|
${S(M,tc(),to())}
|
|
126
126
|
</div>`)}
|
|
127
|
-
</gp-product-variants>
|
|
127
|
+
</gp-product-variants-v7-5>
|
|
128
128
|
|
|
129
129
|
${tg()}
|
|
130
130
|
`};export{ProductVariants as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{If as e}from"@gem-sdk/system";import{getButtonStyle as r}from"./common/styles.js";import{getSettingPreloadData as s}from"../../../helpers.js";import o from"../../../button/components/Button.liquid.js";import{template as t,isLocalEnv as m,baseAssetURL as p}from"@gem-sdk/core";import{getButtonSettings as i,getButtonLiquidSettings as d}from"./common/helpers.js";let ProductViewMore=({style:c,styles:l,setting:a,advanced:u,builderProps:f,builderAttrs:
|
|
2
|
-
<gp-product-view-more>
|
|
3
|
-
${o({styles:l,advanced:u,builderProps:f,builderAttrs:
|
|
4
|
-
${e(m,`<script ${s('class="gps-link" delay',"src")}="{{ 'gp-product-view-more.js' | asset_url }}" defer="defer"></script>`,`<script ${s('class="gps-link" delay',"src")}="${p}/assets-v2/gp-product-view-more.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
|
|
5
|
-
</gp-product-view-more>
|
|
1
|
+
import{If as e}from"@gem-sdk/system";import{getButtonStyle as r}from"./common/styles.js";import{getSettingPreloadData as s}from"../../../helpers.js";import o from"../../../button/components/Button.liquid.js";import{template as t,isLocalEnv as m,baseAssetURL as p}from"@gem-sdk/core";import{getButtonSettings as i,getButtonLiquidSettings as d}from"./common/helpers.js";let ProductViewMore=({style:c,styles:l,setting:a,advanced:u,builderProps:f,builderAttrs:v,pageContext:n})=>t`
|
|
2
|
+
<gp-product-view-more-v7-5>
|
|
3
|
+
${o({styles:l,advanced:u,builderProps:f,builderAttrs:v,setting:{...i(a),...d(a)},style:{...r(c,l)},pageContext:n,className:"btn-view-more"})}
|
|
4
|
+
${e(m,`<script ${s('class="gps-link" delay',"src")}="{{ 'gp-product-view-more-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${s('class="gps-link" delay',"src")}="${p}/assets-v2/gp-product-view-more-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
|
|
5
|
+
</gp-product-view-more-v7-5>
|
|
6
6
|
`;export{ProductViewMore as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{template as t,RenderIf as e,isLocalEnv as r,baseAssetURL as i}from"@gem-sdk/core";import d from"../../../grid/components/row/Row.liquid.js";import{LiquidIf as o,If as a}from"@gem-sdk/system";import{getSettingPreloadData as s,getStaticLocale as n}from"../../../helpers.js";import{getData as c,DYNAMIC_PRODUCT_STATUS as p,STATIC_PRODUCT_STATUS as l,PRODUCT_ID_LATEST as u}from"./common/helpers.js";let Product=f=>{let{children:m,setting:g,style:
|
|
1
|
+
import{template as t,RenderIf as e,isLocalEnv as r,baseAssetURL as i}from"@gem-sdk/core";import d from"../../../grid/components/row/Row.liquid.js";import{LiquidIf as o,If as a}from"@gem-sdk/system";import{getSettingPreloadData as s,getStaticLocale as n}from"../../../helpers.js";import{getData as c,DYNAMIC_PRODUCT_STATUS as p,STATIC_PRODUCT_STATUS as l,PRODUCT_ID_LATEST as u}from"./common/helpers.js";let Product=f=>{let{children:m,setting:g,style:v,builderProps:y,rawChildren:_,advanced:$}=f,{isSyncProduct:I}=g??{},{rowSetting:S,rowStyles:b,formatVariantId:j,formatProductId:h,productStatus:q,preSelectedOptionIds:V,productHandle:P,advancedStyle:k}=c(f),w=()=>t`
|
|
2
2
|
{%- liquid
|
|
3
3
|
if request.page_type == 'product'
|
|
4
4
|
if '${q}' == '${l}'
|
|
@@ -61,7 +61,7 @@ import{template as t,RenderIf as e,isLocalEnv as r,baseAssetURL as i}from"@gem-s
|
|
|
61
61
|
${a(q==p,E(),w())}
|
|
62
62
|
`,A=()=>t`
|
|
63
63
|
{%- assign initVariantId = ${j} -%}
|
|
64
|
-
{%- assign product_form_id = 'product-form-' | append: "${
|
|
64
|
+
{%- assign product_form_id = 'product-form-' | append: "${y?.uid}" -%}
|
|
65
65
|
${j?"{%- assign variant = product.variants | where: 'id', initVariantId | first -%}":"{%- assign variant = product.selected_or_first_available_variant -%}"}
|
|
66
66
|
${j?"{%- assign productSelectedVariant = product.variants | where: 'id', initVariantId | first -%}":"{%- assign productSelectedVariant = product.selected_or_first_available_variant -%}"}
|
|
67
67
|
{%-if productSelectedVariant == empty or productSelectedVariant == null -%}
|
|
@@ -74,9 +74,9 @@ import{template as t,RenderIf as e,isLocalEnv as r,baseAssetURL as i}from"@gem-s
|
|
|
74
74
|
<div class="gp-text-center">${n("Product","product_not_found")}</div>
|
|
75
75
|
`,G=()=>t`
|
|
76
76
|
${A()}
|
|
77
|
-
<gp-product
|
|
78
|
-
data-uid="${
|
|
79
|
-
data-id="${
|
|
77
|
+
<gp-product-v7-5
|
|
78
|
+
data-uid="${y?.uid}"
|
|
79
|
+
data-id="${y?.uid}"
|
|
80
80
|
style="${k}"
|
|
81
81
|
class="${$?.cssClass}"
|
|
82
82
|
gp-context='{"productId": {{ product.id }}, "preSelectedOptionIds": [${V}], "isSyncProduct": "${I}", "variantSelected": {{ variant | json | escape }}, "inventoryQuantity": {{ variant.inventory_quantity }}, "quantity": 1, "formId": "{{ product_form_id }}" }'
|
|
@@ -87,13 +87,13 @@ import{template as t,RenderIf as e,isLocalEnv as r,baseAssetURL as i}from"@gem-s
|
|
|
87
87
|
<input type="hidden" name="id" value="{{ variant.id }}" />
|
|
88
88
|
<input type="hidden" name="quantity" value="{{ quantity }}" />
|
|
89
89
|
<button type="submit" onclick="return false;" style="display:none;"></button>
|
|
90
|
-
${d({builderProps:{...
|
|
90
|
+
${d({builderProps:{...y,uid:y?.uid,uidInteraction:`${y?.uid}-row`},style:v,styles:b,setting:S,children:m,rawChildren:_})}
|
|
91
91
|
{%- endform -%}
|
|
92
92
|
</product-form>
|
|
93
|
-
</gp-product>
|
|
93
|
+
</gp-product-v7-5>
|
|
94
94
|
{%- assign product = gpBkProduct -%}
|
|
95
95
|
`;return t`
|
|
96
96
|
${x()}
|
|
97
97
|
${o("product != empty and product != null",G(),B())}
|
|
98
|
-
${e(r,`<script ${s('class="gps-link" delay',"src")}="{{ 'gp-product.v2.js' | asset_url }}" defer="defer"></script>`,`<script ${s('class="gps-link" delay',"src")}="${i}/assets-v2/gp-product.v2.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
|
|
98
|
+
${e(r,`<script ${s('class="gps-link" delay',"src")}="{{ 'gp-product.v2-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${s('class="gps-link" delay',"src")}="${i}/assets-v2/gp-product.v2-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
|
|
99
99
|
`};export{Product as default};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{makeStyleResponsive as s,template as e,RenderIf as t,isLocalEnv as i,baseAssetURL as r}from"@gem-sdk/core";import{getSettingPreloadData as a}from"../../helpers.js";import{createStyle as d,createClass as l,createStateOrContext as o}from"@gem-sdk/system";import{getContainerStyles as m,getContentStyles as p}from"../common/styles.js";import{getContainerClasses as c}from"../common/classes.js";let Sticky=({children:g,builderAttrs:$,setting:n,style:k,builderProps:f,advanced:y})=>{let{width:u,position:b,display:
|
|
1
|
+
import{makeStyleResponsive as s,template as e,RenderIf as t,isLocalEnv as i,baseAssetURL as r}from"@gem-sdk/core";import{getSettingPreloadData as a}from"../../helpers.js";import{createStyle as d,createClass as l,createStateOrContext as o}from"@gem-sdk/system";import{getContainerStyles as m,getContentStyles as p}from"../common/styles.js";import{getContainerClasses as c}from"../common/classes.js";let Sticky=({children:g,builderAttrs:$,setting:n,style:k,builderProps:f,advanced:y})=>{let{width:u,position:b,display:v,preloadBgImage:S,background:h,isScrollToTop:j}=n??{},E=y?.d,w=d({...s("w",u),...m({position:b,style:k,display:v})}),A=d(p({width:u,style:k,background:h})),C=l(c({uid:f?.uid,isScrollToTop:j,cssClass:y?.cssClass,isLiquid:!0})),G=o({uid:f?.uid,setting:{display:{desktop:v?.desktop,tablet:v?.tablet??v?.desktop,mobile:v?.mobile??v?.tablet??v?.desktop}},advanced:{d:E}}),N=`.drawer-page-content {
|
|
2
2
|
transform: none !important;
|
|
3
3
|
-webkit-transform: none !important;
|
|
4
4
|
}`;return e`
|
|
5
|
-
${t(!!
|
|
6
|
-
<gp-sticky
|
|
5
|
+
${t(!!S,`${t(!!h?.desktop?.image?.src,`<link rel="preload" href="${h?.desktop?.image?.src}" as="image" />`)}${t(!!h?.tablet?.image?.src,`<link rel="preload" href="${h?.tablet?.image?.src}" as="image" />`)}${t(!!h?.mobile?.image?.src,`<link rel="preload" href="${h?.mobile?.image?.src}" as="image" />`)}`)}
|
|
6
|
+
<gp-sticky-v7-5
|
|
7
7
|
data-id="${f?.uid}"
|
|
8
8
|
gp-data='${JSON.stringify(G)}'
|
|
9
9
|
id="${f?.uid}"
|
|
@@ -15,6 +15,6 @@ import{makeStyleResponsive as s,template as e,RenderIf as t,isLocalEnv as i,base
|
|
|
15
15
|
<div ${{...$}} style="${{...A}}">
|
|
16
16
|
${g}
|
|
17
17
|
</div>
|
|
18
|
-
</gp-sticky>
|
|
19
|
-
${t(i,`<script ${a('class="gps-link" delay',"src")}="{{ 'gp-sticky.js' | asset_url }}" defer="defer"></script>`,`<script ${a('class="gps-link" delay',"src")}="${r}/assets-v2/gp-sticky.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
|
|
18
|
+
</gp-sticky-v7-5>
|
|
19
|
+
${t(i,`<script ${a('class="gps-link" delay',"src")}="{{ 'gp-sticky-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${a('class="gps-link" delay',"src")}="${r}/assets-v2/gp-sticky-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
|
|
20
20
|
`};export{Sticky as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import{composeClasses as s,template as t,RenderIf as e,isLocalEnv as i,baseAssetURL as l}from"@gem-sdk/core";import{getDynamicSourceLocales as o,getSettingPreloadData as a}from"../../helpers.js";import{getInlineCss as r,getLiquidInitData as c,getLiquidTextContent as d,getTextDisplayData as $}from"../common/helpers.js";import{getProgressBarClasses as n,getContainerClasses as p,getLiquidTagClasses as u,getWrapperIconClasses as m,getIconClasses as v,getOuterIconClasses as g,getWrapperClasses as f,getTextClasses as k}from"../common/classes.js";import{getProgressBarStyles as y,getContainerStyles as S,getWrapperStyles as b,getIconStyles as I,getTextStyles as O}from"../common/styles.js";import{getLiquidTagAttrs as _,getLiquidProgressBarAttrs as j,getLiquidTextAttrs as h,getIconAttrs as V}from"../common/attrs.js";import{createAttr as E,createClass as M,createStyle as A,LiquidIf as C}from"@gem-sdk/system";let StockCounter=({setting:G,styles:Q,style:R,advanced:x,builderProps:N,pageContext:P})=>{let{borderRadius:T}=Q??{},{showIcon:q,icon:w,oosIcon:z,layout:B="full",template:D,outOfStockMessage:F,continueSelling:H,unlimitedQuantityMessage:J}=G??{},K=r(N?.uid,T),L="progress-bar"!==B,U=o({val:D,uid:N?.uid,settingId:"template",pageContext:P,translate:G?.translate,isReplaceInventoryQuantity:!0}),W=o({val:F,uid:N?.uid,settingId:"outOfStockMessage",pageContext:P,translate:G?.translate}),X=o({val:H,uid:N?.uid,settingId:"continueSelling",pageContext:P,translate:G?.translate}),Y=o({val:J,uid:N?.uid,settingId:"unlimitedQuantityMessage",pageContext:P,translate:G?.translate}),Z=E({..._(N,G,Q)}),ss=M({...s("gp-stock-counter-progress gp-mt-2 data-[visible=true]:gp-block data-[visible=false]:gp-hidden"),...n(Q)}),st=A({...y(Q,G)}),se=A({...S(Q)}),si=M({...p(G)}),sl=M({...u(x)}),so=A({...R}),sa=A({...b(Q)}),sr=c(G,Q),sc=d({templateStringDisplay:U,outOfStockMessageDisplay:W,continueSellingDisplay:X,unlimitedQuantityMessageDisplay:Y}),sd=M({...m(G)}),s$=M({...s("gp-stock-counter-icon data-[visible=true]:gp-block data-[visible=false]:gp-hidden"),...v(),...g()}),sn=M({...f(G)}),sp=s=>A({...I(Q,G,s)}),su=({isOutOfStockIcon:s,isVisible:t})=>E({...V(s,t)}),sm=E({...j()}),sv=M({...k(Q),...s("gp-stock-counter-mark")}),sg=s=>A({...O(Q,s)}),sf=E({...h()}),sk=$({templateStringDisplay:U,outOfStockMessageDisplay:W,continueSellingDisplay:X,unlimitedQuantityMessageDisplay:Y},Q);return t`
|
|
2
2
|
${sr}
|
|
3
|
-
<gp-product-stock-counter ${{...Z}} class="${sl}"
|
|
3
|
+
<gp-product-stock-counter-v7-5 ${{...Z}} class="${sl}"
|
|
4
4
|
style="${so}">
|
|
5
5
|
<div class="${sn}" style="${sa}">
|
|
6
6
|
<style>${K}</style>
|
|
@@ -65,6 +65,6 @@ import{composeClasses as s,template as t,RenderIf as e,isLocalEnv as i,baseAsset
|
|
|
65
65
|
></div>
|
|
66
66
|
</div>
|
|
67
67
|
</div>
|
|
68
|
-
</gp-product-stock-counter>
|
|
69
|
-
${e(i,`<script ${a('class="gps-link" delay',"src")}="{{ 'gp-product-stock-counter.js' | asset_url }}" defer="defer"></script>`,`<script ${a('class="gps-link" delay',"src")}="${l}/assets-v2/gp-product-stock-counter.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
|
|
68
|
+
</gp-product-stock-counter-v7-5>
|
|
69
|
+
${e(i,`<script ${a('class="gps-link" delay',"src")}="{{ 'gp-product-stock-counter-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${a('class="gps-link" delay',"src")}="${l}/assets-v2/gp-product-stock-counter-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
|
|
70
70
|
`};export{StockCounter as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{template as e,WrapRenderChildren as t,RenderChildren as s,RenderIf as l,isLocalEnv as i,baseAssetURL as a}from"@gem-sdk/core";import{getDynamicSourceLocales as r,getSettingPreloadData as d}from"../../helpers.js";import{createStateOrContext as o,createAttr as c,createStyle as p,createClass as m}from"@gem-sdk/system";import{getAttr as $,getAttrContent as n}from"../common/attrs.js";import
|
|
1
|
+
import{template as e,WrapRenderChildren as t,RenderChildren as s,RenderIf as l,isLocalEnv as i,baseAssetURL as a}from"@gem-sdk/core";import{getDynamicSourceLocales as r,getSettingPreloadData as d}from"../../helpers.js";import{createStateOrContext as o,createAttr as c,createStyle as p,createClass as m}from"@gem-sdk/system";import{getAttr as $,getAttrContent as n}from"../common/attrs.js";import v from"../../text/components/Text.liquid.js";import{getStyleWrapper as y,getTabParentListStyle as u,getTabListStyle as g,getContainContentStyle as f,getItemStyle as h}from"../common/styles.js";import{getClassesWrapper as b,getContainClasses as x,getStyleTagClasses as j,getTabParentListClasses as T,getTabListClasses as k,getWrapperContentClasses as A,getContainContentClasses as K,getTextClasses as S,getItemClasses as C}from"../common/classes.js";let Tabs=I=>{let{builderProps:E,style:N,setting:V,advanced:P,rawChildren:_}=I;delete V?.labelTypoV2?.attrs?.color;let{cssClass:q}=P??{},{panelWidth:z,childItem:F,labelAlign:G,labelTypo:O,labelTypoV2:W}=V??{},J=o({setting:V,builderProps:E}),L=void 0;V&&!V?.labelWidth&&(V.labelWidth={desktop:"200px"});let M=c({...$({uid:E?.uid||""})}),R=p({...y(V,N)}),U=m({...b({builderProps:E,advancedCssClass:q})}),w=m({...x({setting:V})}),B=j({panelWidth:z,builderProps:E}),D=m({...T()}),H=p({...u(V)}),Q=m({...k({setting:V})}),X=p({...g(V)}),Y=e=>m({...C({setting:V,isNotLiquid:!1,isActive:e,currentDevice:L})}),Z=e=>p({...h(V,e)}),ee=m({...A()}),et=m({...K()}),es=p({...f()}),el=c({...n({uid:E?.uid||""})}),ei=m({...S()}),ea=()=>F?.map(e=>e?.replaceAll("'","'"))?.map((t,s)=>{let l=(V?.activeKey??0)<0||(V?.activeKey??0)>=(V?.childItem??[]).length?0===s:s===V?.activeKey,i=r({val:t,uid:E?.uid,settingId:`childItem_${s}`,pageContext:I.pageContext,isCapitalize:V?.labelTypoV2?.attrs?.transform==="capitalize",translate:V?.translate});return e`
|
|
2
2
|
<li
|
|
3
3
|
aria-hidden
|
|
4
4
|
class="${Y(l)}"
|
|
@@ -6,10 +6,10 @@ import{template as e,WrapRenderChildren as t,RenderChildren as s,RenderIf as l,i
|
|
|
6
6
|
key="${E?.uid}"
|
|
7
7
|
|
|
8
8
|
>
|
|
9
|
-
${
|
|
9
|
+
${v({className:ei,styles:{typo:W,typography:O,textAlign:G},setting:{text:i,htmlTag:"div",excludeFlex:!0,isForceValue:!0}})}
|
|
10
10
|
</li>
|
|
11
|
-
`}).join(""),er=()=>t({uid:E?.uid||"",customProps:_?.[0].customProps},_?.map((t,l)=>{let i=(V?.activeKey??0)<0||(V?.activeKey??0)>=(V?.childItem??[]).length?0===l:l===V?.activeKey;return t?e`${s({...t,parentUid:E?.uid,isActive:i})}`:""})),ed=()=>l(i,`<script ${d('class="gps-link" delay',"src")}="{{ 'gp-tab.js' | asset_url }}" defer="defer"></script>`,`<script ${d('class="gps-link" delay',"src")}="${a}/assets-v2/gp-tab.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`);return e`
|
|
12
|
-
<gp-tab
|
|
11
|
+
`}).join(""),er=()=>t({uid:E?.uid||"",customProps:_?.[0].customProps},_?.map((t,l)=>{let i=(V?.activeKey??0)<0||(V?.activeKey??0)>=(V?.childItem??[]).length?0===l:l===V?.activeKey;return t?e`${s({...t,parentUid:E?.uid,isActive:i})}`:""})),ed=()=>l(i,`<script ${d('class="gps-link" delay',"src")}="{{ 'gp-tab-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${d('class="gps-link" delay',"src")}="${a}/assets-v2/gp-tab-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`);return e`
|
|
12
|
+
<gp-tab-v7-5
|
|
13
13
|
${{...M}}
|
|
14
14
|
style="${R}"
|
|
15
15
|
class="${U}"
|
|
@@ -31,6 +31,6 @@ import{template as e,WrapRenderChildren as t,RenderChildren as s,RenderIf as l,i
|
|
|
31
31
|
</div>
|
|
32
32
|
</div>
|
|
33
33
|
</div>
|
|
34
|
-
</gp-tab>
|
|
34
|
+
</gp-tab-v7-5>
|
|
35
35
|
${ed()}
|
|
36
36
|
`};export{Tabs as default};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{template as s,makeStyleResponsive as e,RenderIf as r,isLocalEnv as o,baseAssetURL as a}from"@gem-sdk/core";import{getSettingPreloadData as c}from"../../helpers.js";import{getLiquidForAppBlock as t}from"../common/helpers.js";let BoostAISearchDiscovery=({setting:i,advanced:l})=>{let{appBlockId:d,widgetType:p,align:
|
|
1
|
+
import{template as s,makeStyleResponsive as e,RenderIf as r,isLocalEnv as o,baseAssetURL as a}from"@gem-sdk/core";import{getSettingPreloadData as c}from"../../helpers.js";import{getLiquidForAppBlock as t}from"../common/helpers.js";let BoostAISearchDiscovery=({setting:i,advanced:l})=>{let{appBlockId:d,widgetType:p,align:v}=i??{};return p?t(d,v,`${l?.cssClass??""} !gp-block [&_*]:gp-max-w-none`):s`
|
|
2
2
|
<div
|
|
3
3
|
class="${l?.cssClass}"
|
|
4
4
|
style="${{...e("ta",i?.align)}}"
|
|
5
5
|
>
|
|
6
6
|
<div class="boost-sd__filter-block"></div>
|
|
7
|
-
${r(o,`<script ${c('class="gps-link" delay',"src")}="{{ 'gp-boost-ai-search-and-discovery.js' | asset_url }}" defer="defer"></script>`,`<script ${c('class="gps-link" delay',"src")}="${a}/assets-v2/gp-boost-ai-search-and-discovery.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
|
|
7
|
+
${r(o,`<script ${c('class="gps-link" delay',"src")}="{{ 'gp-boost-ai-search-and-discovery-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${c('class="gps-link" delay',"src")}="${a}/assets-v2/gp-boost-ai-search-and-discovery-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
|
|
8
8
|
</div>
|
|
9
9
|
`};export{BoostAISearchDiscovery as default};
|
|
@@ -1621,5 +1621,5 @@ import{template as s,makeStyleResponsive as e,RenderIf as i,isLocalEnv as n,base
|
|
|
1621
1621
|
</div>
|
|
1622
1622
|
</div>
|
|
1623
1623
|
<script ${a('class="gps-link" delay',"src")}="${o()}" defer="defer"></script>
|
|
1624
|
-
${i(n,`<script ${a('class="gps-link" delay',"src")}="{{ 'gp-smart-search-bar-and-filters.js' | asset_url }}" defer="defer"></script>`,`<script ${a('class="gps-link" delay',"src")}="${t}/assets-v2/gp-smart-search-bar-and-filters.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
|
|
1624
|
+
${i(n,`<script ${a('class="gps-link" delay',"src")}="{{ 'gp-smart-search-bar-and-filters-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${a('class="gps-link" delay',"src")}="${t}/assets-v2/gp-smart-search-bar-and-filters-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
|
|
1625
1625
|
`};export{SmartSearchBarAndFilters as default};
|
|
@@ -37,7 +37,7 @@ import{template as e,RenderIf as t,isLocalEnv as o,baseAssetURL as s}from"@gem-s
|
|
|
37
37
|
</button>
|
|
38
38
|
</div>
|
|
39
39
|
`;return e`
|
|
40
|
-
<gp-lite-html5-embed>
|
|
40
|
+
<gp-lite-html5-embed-v7-5>
|
|
41
41
|
${H()}
|
|
42
42
|
<video
|
|
43
43
|
${{...B}}
|
|
@@ -53,6 +53,6 @@ import{template as e,RenderIf as t,isLocalEnv as o,baseAssetURL as s}from"@gem-s
|
|
|
53
53
|
${d(k,`<source data-src="${A}" src="${M}" type="video/mp4"></source>`)}
|
|
54
54
|
</video>
|
|
55
55
|
${d(!x,O())}
|
|
56
|
-
</gp-lite-html5-embed>
|
|
57
|
-
${t(o,`<script ${r('class="gps-link" delay',"src")}="{{ 'gp-lite-html5-embed.js' | asset_url }}" defer="defer"></script>`,`<script ${r('class="gps-link" delay',"src")}="${s}/assets-v2/gp-lite-html5-embed.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
|
|
56
|
+
</gp-lite-html5-embed-v7-5>
|
|
57
|
+
${t(o,`<script ${r('class="gps-link" delay',"src")}="{{ 'gp-lite-html5-embed-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${r('class="gps-link" delay',"src")}="${s}/assets-v2/gp-lite-html5-embed-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
|
|
58
58
|
`};export{HTML5Embed as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import{template as e,RenderIf as t,isLocalEnv as s,baseAssetURL as l}from"@gem-sdk/core";import{getSettingPreloadData as i}from"../../helpers.js";import{createStateOrContext as r,createStyle as a,createClass as m,If as o}from"@gem-sdk/system";import{getArticleVimeoClasses as p,getImageVimeoClasses as c,getButtonVimeoClasses as d,getIframeVimeoClasses as f}from"../common/classes.js";import{getIframeVimeoStyle as n,getArticleVimeoStyle as g}from"../common/styles.js";import{getVimeoParams as y}from"../common/helpers.js";import $ from"../../image/components/NextImage.liquid.js";let LiteVimeoEmbed=b=>{let{title:u,id:v,lazy:h,aspectRatio:S,autoplay:j,muted:E,thumbnailLink:w,poster:x}=b,{iframeSrc:L}=y(b),k=!h,I=b.thumbnail,N=r({id:v,thumbnail:w,lazy:h,iframeSrc:L,title:u,autoplay:j,muted:E,style:b?.vimeoStyleIframe||""}),V=a({...n(S)}),A=a({...g(S,"")}),T=m({...p(I,S)}),C=m({...c(k)}),G=m({...d(k)}),M=m({...f()});return e`
|
|
2
|
-
<gp-lite-vimeo-embed gp-data='${JSON.stringify(N)}'>
|
|
2
|
+
<gp-lite-vimeo-embed-v7-5 gp-data='${JSON.stringify(N)}'>
|
|
3
3
|
<article
|
|
4
4
|
aria-hidden
|
|
5
5
|
class="${T}"
|
|
@@ -27,6 +27,6 @@ import{template as e,RenderIf as t,isLocalEnv as s,baseAssetURL as l}from"@gem-s
|
|
|
27
27
|
class="${M}"
|
|
28
28
|
></iframe>`)}
|
|
29
29
|
</article>
|
|
30
|
-
</gp-lite-vimeo-embed>
|
|
31
|
-
${t(s,`<script ${i('class="gps-link" delay',"src")}="{{ 'gp-lite-vimeo-embed.js' | asset_url }}" defer="defer"></script>`,`<script ${i('class="gps-link" delay',"src")}="${l}/assets-v2/gp-lite-vimeo-embed.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
|
|
30
|
+
</gp-lite-vimeo-embed-v7-5>
|
|
31
|
+
${t(s,`<script ${i('class="gps-link" delay',"src")}="{{ 'gp-lite-vimeo-embed-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${i('class="gps-link" delay',"src")}="${l}/assets-v2/gp-lite-vimeo-embed-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
|
|
32
32
|
`};export{LiteVimeoEmbed as default};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import{template as e,RenderIf as t,isLocalEnv as s,baseAssetURL as l}from"@gem-sdk/core";import r from"../../image/components/NextImage.liquid.js";import{getSettingPreloadData as a}from"../../helpers.js";import{createStateOrContext as i,createClass as o,createStyle as m,If as p}from"@gem-sdk/system";import{getButtonYoutubeClasses as d,getImageYoutubeClasses as c,getArticleYoutubeClasses as u,getIframeYoutubeClasses as f}from"../common/classes.js";import{getIframeYoutubeStyle as y,getArticleYoutubeStyle as b}from"../common/styles.js";import{getYoutubeParams as g}from"../common/helpers.js";let LiteYouTubeEmbed=n=>{let{style:$,iframeClass:h,wrapperClass:
|
|
1
|
+
import{template as e,RenderIf as t,isLocalEnv as s,baseAssetURL as l}from"@gem-sdk/core";import r from"../../image/components/NextImage.liquid.js";import{getSettingPreloadData as a}from"../../helpers.js";import{createStateOrContext as i,createClass as o,createStyle as m,If as p}from"@gem-sdk/system";import{getButtonYoutubeClasses as d,getImageYoutubeClasses as c,getArticleYoutubeClasses as u,getIframeYoutubeClasses as f}from"../common/classes.js";import{getIframeYoutubeStyle as y,getArticleYoutubeStyle as b}from"../common/styles.js";import{getYoutubeParams as g}from"../common/helpers.js";let LiteYouTubeEmbed=n=>{let{style:$,iframeClass:h,wrapperClass:v,title:S,poster:j}=n,E=`gp-video-${n.uid}`,{posterUrl:w,iframeSrc:z}=g(n),C=j?.preload,T=i({lazy:n.lazy,style:$,title:S,iframeSrc:z}),k=!n.lazy,x=o({...d(k)}),L=o({...c()}),N=o({...u(C||!1,v)}),A=o({...f(h)}),I=m({...y($)}),M=m({...b($,w)}),G=()=>e`
|
|
2
2
|
<iframe
|
|
3
3
|
id="player-wrapper-${n.uid}"
|
|
4
4
|
class="${A}"
|
|
5
5
|
style="${I}"
|
|
6
|
-
title="${
|
|
6
|
+
title="${S}"
|
|
7
7
|
frameborder="0"
|
|
8
8
|
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
|
|
9
9
|
allowfullscreen
|
|
10
10
|
src="${z}"
|
|
11
11
|
></iframe>
|
|
12
12
|
`;return e`
|
|
13
|
-
<gp-lite-youtube-embed gp-data='${JSON.stringify(T)}'>
|
|
13
|
+
<gp-lite-youtube-embed-v7-5 gp-data='${JSON.stringify(T)}'>
|
|
14
14
|
<article
|
|
15
15
|
aria-hidden
|
|
16
16
|
class="${N}"
|
|
17
|
-
data-title="${
|
|
17
|
+
data-title="${S}"
|
|
18
18
|
style="${M}"
|
|
19
19
|
>
|
|
20
|
-
${r({id:E,src:w,alt:
|
|
20
|
+
${r({id:E,src:w,alt:j?.altText,title:j?.imageTitle,priority:j?.preload,enableLazyLoadImage:!0,className:L,isDisableAspectStyle:!0})}
|
|
21
21
|
<button type="button" aria-label="Play" class="${x}">
|
|
22
22
|
<svg height="100%" version="1.1" viewBox="0 0 68 48" width="100%">
|
|
23
23
|
<path
|
|
@@ -29,6 +29,6 @@ import{template as e,RenderIf as t,isLocalEnv as s,baseAssetURL as l}from"@gem-s
|
|
|
29
29
|
</button>
|
|
30
30
|
${p(k,G())}
|
|
31
31
|
</article>
|
|
32
|
-
</gp-lite-youtube-embed>
|
|
33
|
-
${t(s,`<script ${a('class="gps-link" delay',"src")}="{{ 'gp-lite-youtube-embed.js' | asset_url }}" defer="defer"></script>`,`<script ${a('class="gps-link" delay',"src")}="${l}/assets-v2/gp-lite-youtube-embed.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
|
|
32
|
+
</gp-lite-youtube-embed-v7-5>
|
|
33
|
+
${t(s,`<script ${a('class="gps-link" delay',"src")}="{{ 'gp-lite-youtube-embed-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${a('class="gps-link" delay',"src")}="${l}/assets-v2/gp-lite-youtube-embed-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
|
|
34
34
|
`};export{LiteYouTubeEmbed as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/components",
|
|
3
|
-
"version": "2.0.0-staging.
|
|
3
|
+
"version": "2.0.0-staging.1024",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"scan-all-text": "rollup -c ./scripts/rollup.config.settings.mjs && node ./scripts/scan-all-text && node ./scripts/scan-all-text"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@gem-sdk/core": "2.0.0-staging.
|
|
28
|
+
"@gem-sdk/core": "2.0.0-staging.1023",
|
|
29
29
|
"@gem-sdk/styles": "2.0.0-staging.987",
|
|
30
30
|
"@gem-sdk/system": "2.0.0-staging.711",
|
|
31
31
|
"tsup": "^8.5.0",
|