@gem-sdk/components 23.0.0-dev.31 → 23.0.0-dev.35
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/button/common/helpers.js +2 -2
- package/dist/cjs/button/components/Button.liquid.js +6 -6
- package/dist/cjs/carousel/components/arrow/Arrow.js +1 -1
- package/dist/cjs/carousel/components/arrow/common/styles.js +11 -11
- package/dist/cjs/carousel/components/dot/Dots.js +1 -1
- package/dist/cjs/carousel/components/dot/common/styles.js +1 -1
- package/dist/cjs/carousel-v3/components/arrow/Arrow.js +1 -1
- package/dist/cjs/carousel-v3/components/arrow/Arrow.liquid.js +8 -8
- package/dist/cjs/carousel-v3/components/arrow/common/classes.js +1 -1
- package/dist/cjs/carousel-v3/components/arrow/common/styles.js +14 -14
- package/dist/cjs/carousel-v3/components/dot/Dots.js +1 -1
- package/dist/cjs/carousel-v3/components/dot/common/styles.js +1 -1
- package/dist/cjs/code/common/styles.js +1 -1
- package/dist/cjs/code/components/CSSCode.js +1 -1
- package/dist/cjs/code/components/CSSCode.liquid.js +1 -1
- package/dist/cjs/collection/components/collection-description/CollectionDescription.js +1 -1
- package/dist/cjs/collection/components/collection-description/CollectionDescription.liquid.js +9 -9
- package/dist/cjs/collection/components/collection-description/common/helpers.js +2 -2
- package/dist/cjs/collection/components/collection-paginator/CollectionPaginator.js +1 -1
- package/dist/cjs/collection/components/collection-paginator/CollectionPaginator.liquid.js +3 -3
- package/dist/cjs/collection/components/collection-paginator/common/helpers.js +5 -5
- package/dist/cjs/collection/components/collection-toolbar/CollectionToolbar.js +1 -1
- package/dist/cjs/collection/components/collection-toolbar/CollectionToolbar.liquid.js +3 -3
- package/dist/cjs/collection/components/collection-toolbar/common/helpers.js +1 -1
- package/dist/cjs/countdown-timer/common/classes.js +1 -1
- package/dist/cjs/countdown-timer/components/Countdown.js +1 -1
- package/dist/cjs/countdown-timer/components/Countdown.liquid.js +4 -4
- package/dist/cjs/dialog/common/styles.js +1 -1
- package/dist/cjs/dialog/components/Dialog.liquid.js +2 -2
- package/dist/cjs/estimate-delivery/common/classes.js +1 -1
- package/dist/cjs/estimate-delivery/common/helpers.js +1 -1
- package/dist/cjs/estimate-delivery/components/EstimateDate.js +1 -1
- package/dist/cjs/estimate-delivery/components/EstimateDate.liquid.js +3 -3
- package/dist/cjs/form/components/form-email/FormEmail.js +1 -1
- package/dist/cjs/form/components/form-email/FormEmail.liquid.js +6 -6
- package/dist/cjs/form/components/form-email/common/classes.js +1 -1
- package/dist/cjs/helpers.js +1 -1
- package/dist/cjs/icon/common/helpers.js +1 -1
- package/dist/cjs/icon/components/Icon.liquid.js +1 -1
- package/dist/cjs/icon-list/common/styles.js +1 -1
- package/dist/cjs/icon-list/components/IconList.js +1 -1
- package/dist/cjs/icon-list/components/IconList.liquid.js +4 -4
- package/dist/cjs/icon-list-v2/common/helpers.js +1 -1
- package/dist/cjs/icon-list-v2/common/styles.js +1 -1
- package/dist/cjs/icon-list-v2/components/IconList.js +1 -1
- package/dist/cjs/icon-list-v2/components/IconList.liquid.js +9 -9
- package/dist/cjs/image/common/adaptiveSources.js +1 -1
- package/dist/cjs/image/common/attrs.js +1 -1
- package/dist/cjs/image/components/AdaptiveImage.js +1 -1
- package/dist/cjs/image/components/AdaptiveImage.liquid.js +2 -2
- package/dist/cjs/image/components/Image.liquid.js +6 -6
- package/dist/cjs/image-comparison/common/helpers.js +1 -1
- package/dist/cjs/image-comparison/components/CompareImage.liquid.js +5 -5
- package/dist/cjs/product/components/file-upload/UploadFile.js +1 -1
- package/dist/cjs/product/components/file-upload/UploadFile.liquid.js +3 -3
- package/dist/cjs/product/components/file-upload/common/helpers.js +1 -1
- package/dist/cjs/product/components/product-badge/ProductBadge.liquid.js +21 -21
- package/dist/cjs/product/components/product-badge/common/styles.js +1 -1
- package/dist/cjs/product/components/product-badge/constants.js +1 -1
- package/dist/cjs/product/components/product-badge/utils/common.js +1 -1
- package/dist/cjs/product/components/product-button/AddToCartButton.liquid.js +1 -1
- package/dist/cjs/product/components/product-button/SoldOutButton.liquid.js +1 -1
- package/dist/cjs/product/components/product-button/common/classes.js +1 -1
- package/dist/cjs/product/components/product-button/common/data.js +1 -1
- package/dist/cjs/product/components/product-description/ProductDescription.js +1 -1
- package/dist/cjs/product/components/product-description/ProductDescription.liquid.js +5 -5
- package/dist/cjs/product/components/product-description/common/classes.js +1 -1
- package/dist/cjs/product/components/product-images-v2/ProductImageV2.js +2 -2
- package/dist/cjs/product/components/product-images-v2/ProductImagesV2.liquid.js +6 -6
- package/dist/cjs/product/components/product-images-v2/common/getBorderActiveCss.js +2 -2
- package/dist/cjs/product/components/product-images-v3/ProductImageV3.js +1 -1
- package/dist/cjs/product/components/product-images-v3/ProductImagesV3.liquid.js +6 -6
- package/dist/cjs/product/components/product-images-v3/ProductImagesV3Embla.liquid.js +7 -7
- package/dist/cjs/product/components/product-images-v3/common/getBorderActiveCss.js +4 -4
- package/dist/cjs/product/components/product-quantity/ProductQuantity.liquid.js +6 -6
- package/dist/cjs/product/components/product-quantity/common/attrs.js +1 -1
- package/dist/cjs/product/components/product-variants/ProductVariants.js +1 -1
- package/dist/cjs/product/components/product-variants/ProductVariants.liquid.js +1 -1
- package/dist/cjs/product/components/product-variants/common/base/attrs.js +1 -1
- package/dist/cjs/product/components/product-variants/common/dropdown/attrs.js +1 -1
- package/dist/cjs/product/components/product-variants/common/main/getData.js +1 -1
- package/dist/cjs/product/components/product-variants/common/variants/attrs.js +1 -1
- package/dist/cjs/product/components/product-variants/components/base/base.liquid.js +4 -4
- package/dist/cjs/product/components/product-variants/components/dropdown-swatches/Dropdown.js +1 -1
- package/dist/cjs/product/components/product-variants/components/dropdown-swatches/Dropdown.liquid.js +2 -2
- package/dist/cjs/product/components/product-variants/components/variants/index.js +1 -1
- package/dist/cjs/product/components/product-variants/components/variants/index.liquid.js +5 -5
- package/dist/cjs/sticky/common/classes.js +1 -1
- package/dist/cjs/sticky/common/styles.js +1 -1
- package/dist/cjs/sticky/components/Sticky.js +1 -1
- package/dist/cjs/sticky/components/Sticky.liquid.js +3 -3
- package/dist/cjs/tab/common/styles.js +1 -1
- package/dist/cjs/tab/components/Tabs.liquid.js +3 -3
- package/dist/cjs/third-party-slot/common/helpers.js +5 -5
- package/dist/cjs/third-party-slot/components/ThirdPartySlot.js +1 -1
- package/dist/cjs/third-party-slot/components/ThirdPartySlot.liquid.js +1 -1
- package/dist/cjs/third-party-slot/index.js +1 -1
- package/dist/esm/button/common/helpers.js +2 -2
- package/dist/esm/button/components/Button.liquid.js +21 -21
- package/dist/esm/carousel/components/arrow/Arrow.js +2 -2
- package/dist/esm/carousel/components/arrow/common/styles.js +5 -5
- package/dist/esm/carousel/components/dot/Dots.js +1 -1
- package/dist/esm/carousel/components/dot/common/styles.js +1 -1
- package/dist/esm/carousel-v3/components/arrow/Arrow.js +2 -2
- package/dist/esm/carousel-v3/components/arrow/Arrow.liquid.js +6 -6
- package/dist/esm/carousel-v3/components/arrow/common/classes.js +1 -1
- package/dist/esm/carousel-v3/components/arrow/common/styles.js +17 -17
- package/dist/esm/carousel-v3/components/dot/Dots.js +1 -1
- package/dist/esm/carousel-v3/components/dot/common/styles.js +1 -1
- package/dist/esm/code/common/styles.js +1 -1
- package/dist/esm/code/components/CSSCode.js +1 -1
- package/dist/esm/code/components/CSSCode.liquid.js +4 -4
- package/dist/esm/collection/components/collection-description/CollectionDescription.js +1 -1
- package/dist/esm/collection/components/collection-description/CollectionDescription.liquid.js +8 -8
- package/dist/esm/collection/components/collection-description/common/helpers.js +2 -2
- package/dist/esm/collection/components/collection-paginator/CollectionPaginator.js +1 -1
- package/dist/esm/collection/components/collection-paginator/CollectionPaginator.liquid.js +2 -2
- package/dist/esm/collection/components/collection-paginator/common/helpers.js +5 -5
- package/dist/esm/collection/components/collection-toolbar/CollectionToolbar.js +1 -1
- package/dist/esm/collection/components/collection-toolbar/CollectionToolbar.liquid.js +5 -5
- package/dist/esm/collection/components/collection-toolbar/common/helpers.js +1 -1
- package/dist/esm/countdown-timer/common/classes.js +1 -1
- package/dist/esm/countdown-timer/components/Countdown.js +1 -1
- package/dist/esm/countdown-timer/components/Countdown.liquid.js +7 -7
- package/dist/esm/dialog/common/styles.js +1 -1
- package/dist/esm/dialog/components/Dialog.liquid.js +10 -10
- package/dist/esm/estimate-delivery/common/classes.js +1 -1
- package/dist/esm/estimate-delivery/common/helpers.js +1 -1
- package/dist/esm/estimate-delivery/components/EstimateDate.js +1 -1
- package/dist/esm/estimate-delivery/components/EstimateDate.liquid.js +3 -3
- package/dist/esm/form/components/form-email/FormEmail.js +1 -1
- package/dist/esm/form/components/form-email/FormEmail.liquid.js +4 -4
- package/dist/esm/form/components/form-email/common/classes.js +1 -1
- package/dist/esm/helpers.js +1 -1
- package/dist/esm/icon/common/helpers.js +1 -1
- package/dist/esm/icon/components/Icon.liquid.js +1 -1
- package/dist/esm/icon-list/common/styles.js +1 -1
- package/dist/esm/icon-list/components/IconList.js +1 -1
- package/dist/esm/icon-list/components/IconList.liquid.js +6 -6
- package/dist/esm/icon-list-v2/common/helpers.js +1 -1
- package/dist/esm/icon-list-v2/common/styles.js +1 -1
- package/dist/esm/icon-list-v2/components/IconList.js +1 -1
- package/dist/esm/icon-list-v2/components/IconList.liquid.js +14 -14
- package/dist/esm/image/common/adaptiveSources.js +1 -1
- package/dist/esm/image/common/attrs.js +1 -1
- package/dist/esm/image/components/AdaptiveImage.js +1 -1
- package/dist/esm/image/components/AdaptiveImage.liquid.js +7 -7
- package/dist/esm/image/components/Image.liquid.js +10 -10
- package/dist/esm/image-comparison/common/helpers.js +1 -1
- package/dist/esm/image-comparison/components/CompareImage.liquid.js +8 -8
- package/dist/esm/product/components/file-upload/UploadFile.js +1 -1
- package/dist/esm/product/components/file-upload/UploadFile.liquid.js +8 -8
- package/dist/esm/product/components/file-upload/common/helpers.js +1 -1
- package/dist/esm/product/components/product-badge/ProductBadge.liquid.js +23 -23
- package/dist/esm/product/components/product-badge/common/styles.js +1 -1
- package/dist/esm/product/components/product-badge/constants.js +1 -1
- package/dist/esm/product/components/product-badge/utils/common.js +1 -1
- package/dist/esm/product/components/product-button/AddToCartButton.liquid.js +1 -1
- package/dist/esm/product/components/product-button/SoldOutButton.liquid.js +1 -1
- package/dist/esm/product/components/product-button/common/classes.js +1 -1
- package/dist/esm/product/components/product-button/common/data.js +1 -1
- package/dist/esm/product/components/product-description/ProductDescription.js +1 -1
- package/dist/esm/product/components/product-description/ProductDescription.liquid.js +6 -6
- package/dist/esm/product/components/product-description/common/classes.js +1 -1
- package/dist/esm/product/components/product-images-v2/ProductImageV2.js +2 -2
- package/dist/esm/product/components/product-images-v2/ProductImagesV2.liquid.js +11 -11
- package/dist/esm/product/components/product-images-v2/common/getBorderActiveCss.js +5 -5
- package/dist/esm/product/components/product-images-v3/ProductImageV3.js +1 -1
- package/dist/esm/product/components/product-images-v3/ProductImagesV3.liquid.js +10 -10
- package/dist/esm/product/components/product-images-v3/ProductImagesV3Embla.liquid.js +9 -9
- package/dist/esm/product/components/product-images-v3/common/getBorderActiveCss.js +6 -6
- package/dist/esm/product/components/product-quantity/ProductQuantity.liquid.js +4 -4
- package/dist/esm/product/components/product-quantity/common/attrs.js +1 -1
- package/dist/esm/product/components/product-variants/ProductVariants.js +1 -1
- package/dist/esm/product/components/product-variants/ProductVariants.liquid.js +9 -9
- package/dist/esm/product/components/product-variants/common/base/attrs.js +1 -1
- package/dist/esm/product/components/product-variants/common/dropdown/attrs.js +1 -1
- package/dist/esm/product/components/product-variants/common/main/getData.js +1 -1
- package/dist/esm/product/components/product-variants/common/variants/attrs.js +1 -1
- package/dist/esm/product/components/product-variants/components/base/base.liquid.js +10 -10
- package/dist/esm/product/components/product-variants/components/dropdown-swatches/Dropdown.js +1 -1
- package/dist/esm/product/components/product-variants/components/dropdown-swatches/Dropdown.liquid.js +6 -6
- package/dist/esm/product/components/product-variants/components/variants/index.js +1 -1
- package/dist/esm/product/components/product-variants/components/variants/index.liquid.js +1 -1
- package/dist/esm/sticky/common/classes.js +1 -1
- package/dist/esm/sticky/common/styles.js +1 -1
- package/dist/esm/sticky/components/Sticky.js +1 -1
- package/dist/esm/sticky/components/Sticky.liquid.js +8 -8
- package/dist/esm/tab/common/styles.js +1 -1
- package/dist/esm/tab/components/Tabs.liquid.js +4 -4
- package/dist/esm/third-party-slot/common/helpers.js +5 -5
- package/dist/esm/third-party-slot/components/ThirdPartySlot.js +1 -1
- package/dist/esm/third-party-slot/components/ThirdPartySlot.liquid.js +2 -2
- package/dist/esm/third-party-slot/index.js +1 -1
- package/dist/types/index.d.ts +2 -5
- package/package.json +2 -2
|
@@ -7,19 +7,19 @@
|
|
|
7
7
|
data-test="{{ backgroundType }}: {{ color }}"
|
|
8
8
|
style="{{ backgroundType }}: {{ color }}; ${f()}"></div>
|
|
9
9
|
`)}
|
|
10
|
-
`,m=l.createStyle(e.getColorStyle({optionBorder:o,optionRounded:g,isActive:!0})),v=l.createStyle(e.getColorStyle({optionBorder:o,optionRounded:g,isActive:!1})),f=()=>l.LiquidIf("selectedValue == value",r.getStyleOfObject(m),r.getStyleOfObject(v)),b=l.createClass(t.getWrapperTextClass(n,p)),S=l.createStyle({...e.getWrapperTextStyle(i)}),$=l.createClass(t.getTextClass({optionTypo:d,optionTypography:c,isColorType:p,isUploadImageType:n})),q=l.createStyle(e.getTextStyle({optionTypo:d,optionTypography:c})),
|
|
10
|
+
`,m=l.createStyle(e.getColorStyle({optionBorder:o,optionRounded:g,isActive:!0})),v=l.createStyle(e.getColorStyle({optionBorder:o,optionRounded:g,isActive:!1})),f=()=>l.LiquidIf("selectedValue == value",r.getStyleOfObject(m),r.getStyleOfObject(v)),b=l.createClass(t.getWrapperTextClass(n,p)),S=l.createStyle({...e.getWrapperTextStyle(i)}),$=l.createClass(t.getTextClass({optionTypo:d,optionTypography:c,isColorType:p,isUploadImageType:n})),q=l.createStyle(e.getTextStyle({optionTypo:d,optionTypography:c})),h=()=>s.template`
|
|
11
11
|
<div
|
|
12
12
|
class="${b}"
|
|
13
13
|
style="${p?f():""} ${r.getStyleOfObject(S)}">
|
|
14
14
|
${l.If(n,'<svg width="15" height="12" viewBox="0 0 15 12" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="2" fill="#D6D6D6"></circle><path d="M0.196854 10.6453L2.40968 8.05946C2.4846 7.97175 2.57719 7.9008 2.68141 7.85124C2.78562 7.80168 2.89913 7.77461 3.01452 7.77181C3.12991 7.76902 3.2446 7.79055 3.3511 7.835C3.45761 7.87945 3.55353 7.94583 3.63262 8.02981L4.66733 9.12714L8.71205 4.29464C8.79123 4.19995 8.89077 4.1243 9.00325 4.07333C9.11573 4.02236 9.23827 3.99737 9.36176 4.00022C9.48524 4.00307 9.6065 4.03369 9.71651 4.08979C9.82651 4.1459 9.92245 4.22605 9.99717 4.32429L14.8329 10.6772C14.9254 10.7989 14.982 10.9441 14.9964 11.0962C15.0107 11.2484 14.9823 11.4016 14.9144 11.5385C14.8464 11.6754 14.7415 11.7907 14.6115 11.8713C14.4815 11.952 14.3316 11.9948 14.1786 11.995L0.822048 12C0.664945 11.9999 0.511148 11.9549 0.378853 11.8703C0.246557 11.7857 0.141299 11.6649 0.0755311 11.5224C0.00976323 11.3799 -0.013762 11.2216 0.00773837 11.0661C0.0292388 10.9107 0.0948652 10.7646 0.196854 10.6453Z" fill="#D6D6D6"></path></svg>'," ")}
|
|
15
15
|
<span class="${$}" style="${q}">{{value}}</span>
|
|
16
16
|
</div>
|
|
17
|
-
`,
|
|
17
|
+
`,L=()=>s.template`
|
|
18
18
|
<img class="gp-object-cover gp-rounded-none" style="width: 64px; height: 64px" src="{{imageUrl}}" alt="" />
|
|
19
|
-
`,j=l.createClass(t.getWrapperClass({...i,available:!0})),x=l.createAttr(a.getWrapperAttr(i
|
|
19
|
+
`,j=l.createClass(t.getWrapperClass({...i,available:!0})),x=l.createAttr(a.getWrapperAttr(i)),O=l.createStyle(e.getWrapperStyleActive(i)),k=l.createStyle(e.getWrapperStyleNormalAndHover(i));return s.template`
|
|
20
20
|
<div
|
|
21
21
|
${x}
|
|
22
22
|
class="${j}"
|
|
23
23
|
style="${l.LiquidIf("selectedValue == value",r.getStyleOfObject({...O,...m}),r.getStyleOfObject({...k,...v}))}">
|
|
24
|
-
${(()=>{switch(u){case"color":return s.template`${l.LiquidIf("colors != null and colors.size > 0",C(),
|
|
24
|
+
${(()=>{switch(u){case"color":return s.template`${l.LiquidIf("colors != null and colors.size > 0",C(),h())}`;case"image":case"image_shopify":return s.template`${l.LiquidIf('imageUrl != null and imageUrl != ""',L(),h())}`;default:return h()}})()}
|
|
25
25
|
</div>`};
|
package/dist/cjs/product/components/product-variants/components/dropdown-swatches/Dropdown.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),o=require("@gem-sdk/system"),t=require("../dropdown-option/DropdownOption.js"),r=require("./hooks/useDropdownSwatches.js"),i=require("../../common/dropdown/classes.js"),s=require("../../common/dropdown/styles.js"),n=require("../dropdown-option/VariantOption.js"),a=require("../../common/dropdown/attrs.js");exports.default=l=>{let{option:d,optionPosition:p,optionNumber:u,variantGroup:c,variants:m,price:h,blankText:w,optionTypography:j,optionTransform:g,initValue:x,hasPreSelected:S,optionTypo:q,combineHeight:v,combineWidth:
|
|
2
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),o=require("@gem-sdk/system"),t=require("../dropdown-option/DropdownOption.js"),r=require("./hooks/useDropdownSwatches.js"),i=require("../../common/dropdown/classes.js"),s=require("../../common/dropdown/styles.js"),n=require("../dropdown-option/VariantOption.js"),a=require("../../common/dropdown/attrs.js");exports.default=l=>{let{option:d,optionPosition:p,optionNumber:u,variantGroup:c,variants:m,price:h,blankText:w,optionTypography:j,optionTransform:g,initValue:x,hasPreSelected:S,optionTypo:q,combineHeight:v,combineWidth:b,soldOutStyle:f}=l,{optionBgColor:y,optionTextColor:C,optionRounded:k,optionShadow:A,optionHasShadow:N,optionBorder:O}=l,{value:P,preset:D,handleOnChangeSelect:B,checkVariantInStock:I}=r.useDropdownSwatches(l),M="disable"===f;c||(y=D?.optionBgColor,C=D?.optionTextColor,O=D?.optionBorder,N=D?.optionHasShadow,A=D?.optionShadow,k=D?.optionRounded);let _=o.createClass(i.getSelectClass({optionTypo:q,optionTypography:j,optionBgColor:y,optionBorder:O,optionTextColor:C})),H=o.createStyle(s.getSelectStyle({width:c?b:D?.width,height:c?v:D?.height,optionTypo:q,optionTypography:j,optionBgColor:y,optionTextColor:C,optionRounded:k,optionShadow:A,optionHasShadow:N,optionBorder:O,optionTransform:g,isCombine:c,textAlign:q?.attrs?.textAlign})),R=o.createAttr(a.getSelectAttr({optionName:d?.name,value:P??x}));return e.jsxs("select",{...R,className:_,style:H,onChange:e=>B(e),children:[o.If(!S,e.jsx("option",{value:"blank",children:w??"Please select an option"})," "),o.If(c,m?.map(o=>e.jsx(n.default,{disabled:!I(o)&&M,value:o?.id,variant:o,includePrice:h},o?.id)),d?.values?.map(o=>e.jsx(t.default,{value:o,optionName:d.name,optionPosition:p,optionNumber:u,isSoldOutMark:M},o?.id)))]})};
|
package/dist/cjs/product/components/product-variants/components/dropdown-swatches/Dropdown.liquid.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../dropdown-option/render-liquid/index.js"),t=require("@gem-sdk/system"),r=require("@gem-sdk/core"),s=require("../../common/dropdown/classes.js"),o=require("../../common/dropdown/styles.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../dropdown-option/render-liquid/index.js"),t=require("@gem-sdk/system"),r=require("@gem-sdk/core"),s=require("../../common/dropdown/classes.js"),o=require("../../common/dropdown/styles.js"),l=require("../../common/dropdown/attrs.js");exports.default=n=>{let{variantGroup:d,blankText:i,swatchAutoWidth:c,swatchHeight:a,optionTypography:p,optionBgColor:u,optionTextColor:m,optionRounded:g,optionShadow:q,optionHasShadow:y,optionBorder:w,optionTransform:S,hasPreSelected:j,optionTypo:x,combineHeight:$,combineWidth:f,soldOutStyle:k,children:A}=n,b=t.createClass(s.getSelectClass({optionTypo:x,optionTypography:p,optionBgColor:u,optionBorder:w,optionTextColor:m})),h=t.createStyle(o.getSelectStyle({width:d?f:c,height:d?$:r.getResponsiveValueByScreen(a,"desktop"),optionTypo:x,optionTypography:p,optionBgColor:u,optionTextColor:m,optionRounded:g,optionHasShadow:y,optionShadow:q,optionBorder:w,optionTransform:S,isCombine:d,textAlign:x?.attrs?.textAlign})),v=t.createAttr(l.getSelectAttr({variantGroup:d}));return r.template`
|
|
2
2
|
<select
|
|
3
3
|
${v}
|
|
4
4
|
class="${b}"
|
|
5
5
|
style="${h}"
|
|
6
6
|
>
|
|
7
|
-
${t.If(!j,e.renderBlankOption(
|
|
7
|
+
${t.If(!j,e.renderBlankOption(i))}
|
|
8
8
|
${t.If(d,A,e.renderDropdownOptions("disable"===k,j))}
|
|
9
9
|
</select>`};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../common/variants/classes.js"),s=require("@gem-sdk/core"),a=require("@gem-sdk/system"),l=require("../../common/variants/styles.js"),r=require("../rectangle-list/RectangleList.js"),i=require("../../common/variants/attrs.js"),o=require("../image-shopify/ImageShopify.js"),n=require("../image/Image.js"),u=require("../color/color.js"),c=require("../base/base.js"),d=require("react");const p=p=>{let{name:m,variantKey:g,optionName:h,optionValue:v,typeOfOption:b}=p,{setSelectedOption:f}=s.useSelectedOption(),j=s.useProduct(),y=d.useMemo(()=>{if(!p.presetConfiguration)return;let{presets:e,optionType:t}=p.presetConfiguration;return e?.[t||"rectangle_list"]},[p.presetConfiguration]),w=d.useMemo(()=>{if(!p.showAsSwatches)return r.default;switch(b){case"color":return u.default;case"image":return n.default;case"image_shopify":return o.default;default:return c.default}},[b,p.showAsSwatches]),x=s.useVariantOutStock(m??"",p.value?.label??"",{position:p.optionPosition,optionNumber:p.optionNumber||0}),S=d.useMemo(()=>"disable"===p.soldOutStyle,[p.soldOutStyle]),C=d.useMemo(()=>"line"===p.soldOutStyle,[p.soldOutStyle]),q=a.createClass(t.getVariantItemLabelClass({...p,available:x})),O=a.createClass(t.getTooltipClass()),N=a.createClass(t.getTooltipSvgClass()),V=a.createClass(t.getVariantOptionClass()),k=a.createStyle(l.getLabelVariantStyle(y?.width)),M=a.createAttr(i.getVariantOptionAttr(p
|
|
2
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../common/variants/classes.js"),s=require("@gem-sdk/core"),a=require("@gem-sdk/system"),l=require("../../common/variants/styles.js"),r=require("../rectangle-list/RectangleList.js"),i=require("../../common/variants/attrs.js"),o=require("../image-shopify/ImageShopify.js"),n=require("../image/Image.js"),u=require("../color/color.js"),c=require("../base/base.js"),d=require("react");const p=p=>{let{name:m,variantKey:g,optionName:h,optionValue:v,typeOfOption:b}=p,{setSelectedOption:f}=s.useSelectedOption(),j=s.useProduct(),y=d.useMemo(()=>{if(!p.presetConfiguration)return;let{presets:e,optionType:t}=p.presetConfiguration;return e?.[t||"rectangle_list"]},[p.presetConfiguration]),w=d.useMemo(()=>{if(!p.showAsSwatches)return r.default;switch(b){case"color":return u.default;case"image":return n.default;case"image_shopify":return o.default;default:return c.default}},[b,p.showAsSwatches]),x=s.useVariantOutStock(m??"",p.value?.label??"",{position:p.optionPosition,optionNumber:p.optionNumber||0}),S=d.useMemo(()=>"disable"===p.soldOutStyle,[p.soldOutStyle]),C=d.useMemo(()=>"line"===p.soldOutStyle,[p.soldOutStyle]),q=a.createClass(t.getVariantItemLabelClass({...p,available:x})),O=a.createClass(t.getTooltipClass()),N=a.createClass(t.getTooltipSvgClass()),V=a.createClass(t.getVariantOptionClass()),k=a.createStyle(l.getLabelVariantStyle(y?.width)),M=a.createAttr(i.getVariantOptionAttr(p));return e.jsxs("label",{className:q,style:k,htmlFor:`${p.uid}-${g}`,children:[e.jsxs("div",{className:O,children:[e.jsx("p",{className:"gp-text-[#F9F9F9]",children:p.value?.label}),e.jsx("svg",{className:N,width:"8",height:"4",viewBox:"0 0 16 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M8 10L0 0L16 1.41326e-06L8 10Z",fill:"#333333"})})]}),e.jsx("input",{checked:p.checked,name:`${j?.id}-options-${m?.toString().replaceAll('"','\\"')}`,id:`${p.uid}-${g}`,value:p.value?.label,type:"radio",className:"gp-sr-only",onChange:()=>{if(x||!S){f(m,p.value?.label,j?.id);let e=new CustomEvent("change-selected-option",{bubbles:!0,cancelable:!0,composed:!0,detail:{optionId:m,optionValue:p.value?.label,productId:j?.id}});window.dispatchEvent(e)}}}),e.jsx("span",{className:"gp-sr-only",children:p.value?.label}),e.jsx("div",{...M,className:V,children:e.jsx(w,{...p,optionName:h,optionNameValue:v,preset:y,isVariantOutStock:S&&!x&&0!==p.optionPosition,soldOutMark:S,soldOutMarkLine:C,available:x,swatchValue:p.value,product:j,variantKey:`${p.uid}-${g}`})})]})};p.defaultProps={},exports.default=p;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../common/variants/classes.js"),a=require("@gem-sdk/system"),t=require("../image-shopify/ImageShopify.liquid.js"),i=require("../../common/variants/styles.js"),s=require("../../common/variants/attrs.js"),l=require("../image/Image.liquid.js"),o=require("../color/color.liquid.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../common/variants/classes.js"),a=require("@gem-sdk/system"),t=require("../image-shopify/ImageShopify.liquid.js"),i=require("../../common/variants/styles.js"),s=require("../../common/variants/attrs.js"),l=require("../image/Image.liquid.js"),o=require("../color/color.liquid.js"),r=require("../base/base.liquid.js"),d=require("@gem-sdk/core");exports.default=n=>{let{name:p,variantKey:u,value:c,id:h}=n,g="disable"===n.soldOutStyle,v=a.createClass(e.getVariantItemLabelClass({...n,available:!0})),f=a.createClass(e.getTooltipClass()),m=a.createClass(e.getTooltipSvgClass()),w=a.createClass(e.getVariantOptionClass()),$=a.createStyle(i.getLabelVariantStyle()),b=a.createAttr(s.getVariantOptionAttr(n));return d.template`
|
|
2
2
|
${a.Liquid(`{%- liquid
|
|
3
3
|
assign option_disabled = true
|
|
4
4
|
for variantItem in product.variants
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
<div
|
|
44
44
|
${b}
|
|
45
45
|
class="${w} ${a.LiquidIf("option_disabled == true",`${a.If(g,"gp-opacity-20"," ")}`)}">
|
|
46
|
-
${n.isRenderDefault?
|
|
47
|
-
${
|
|
48
|
-
`:
|
|
46
|
+
${n.isRenderDefault?d.template`
|
|
47
|
+
${r.default({...n,isVariantOutStock:g,swatchValue:n.value,value:c})}
|
|
48
|
+
`:d.template`
|
|
49
49
|
{% case type %}
|
|
50
50
|
{% when "rectangle_list" %}
|
|
51
|
-
${
|
|
51
|
+
${r.default({...n,isVariantOutStock:g,swatchValue:n.value,value:c,swatchHeight:{desktop:"45px"},swatchWidth:{desktop:""}})}
|
|
52
52
|
{% when "color" %}
|
|
53
53
|
${o.default({...n,isVariantOutStock:g,swatchValue:n.value,value:c,swatchHeight:{desktop:"45px"},swatchWidth:{desktop:"45px"}})}
|
|
54
54
|
{% when "image_shopify" %}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("@gem-sdk/core");exports.getContainerClasses=t=>{let{uid:s,isScrollToTop:r,cssClass:n
|
|
1
|
+
"use strict";var e=require("@gem-sdk/core");exports.getContainerClasses=t=>{let{uid:s,isScrollToTop:r,cssClass:n}=t,o=r&&e.IS_LIQUID?"!gp-pointer-events-none [&_gp-button_.gp-button-base]:!gp-pointer-events-auto":"";return e.composeClasses(`sticky-wrapper ${o} ${s} ${n}`)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("@gem-sdk/core"),t=require("../settings/configs/translate.js"),l=require("../../helpers.js"),r=require("../../common/const.js");require("react/jsx-runtime"),require("react");const
|
|
1
|
+
"use strict";var e=require("@gem-sdk/core"),t=require("../settings/configs/translate.js"),l=require("../../helpers.js"),r=require("../../common/const.js");require("react/jsx-runtime"),require("react");const o=e=>"top"==e?"sticky":"fixed",a=(e,t,l)=>{let r={[`--top${e}`]:"auto",[`--${l+e}`]:"0",[`--pos${e}`]:o(l)};switch(t){case"after-first-cart-button":case"after-first-scroll":case"between-sections":r[`--d${e}`]="none";break;case"always":r[`--d${e}`]="block"}return r},s=(e,t)=>({...a("",e?.desktop,t?.desktop),...a("-tablet",e?.tablet??e?.desktop,t?.tablet??t?.desktop),...a("-mobile",e?.mobile??e?.tablet??e?.desktop,t?.mobile??t?.tablet??t?.desktop)}),p=(e,t)=>({[`--left${t}`]:"top"==e?"0":"50%",[`--t${t}`]:"top"==e?"unset":"translateX(-50%)"}),i=e=>({...p(e?.desktop,""),...p(e?.tablet??e?.desktop,"-tablet"),...p(e?.mobile??e?.tablet??e?.desktop,"-mobile")}),b=e=>{let t={};return["--pt","--pb","--pr","--pl","--pt-mobile","--pb-mobile","--pr-mobile","--pl-mobile","--pt-tablet","--pb-tablet","--pr-tablet","--pl-tablet"].forEach(l=>{e?.[l]&&(t[l]=e[l])}),t},n=e=>{let t={...e};return["--pt","--pb","--pr","--pl","--pt-mobile","--pb-mobile","--pr-mobile","--pl-mobile","--pt-tablet","--pb-tablet","--pr-tablet","--pl-tablet"].forEach(e=>{delete t?.[e]}),t};exports.displayConditionStyle=s,exports.filterStyles=n,exports.getContainerStyles=e=>{let{position:t,display:l}=e;return{margin:"0 auto",...i(t),...s(l,t),"z-index":r.ELEMENT_Z_INDEX.STICKY}},exports.getContentStyles=({setting:r,style:o,uid:a,pageContext:s})=>{let{background:p}=r||{},i=e.IS_LIQUID?l.getBackgroundTranslated({background:p,uid:a,enableTranslate:!!t.Sticky?.background?.id,pageContext:s,isTranslateVideo:!1}):p;return{...e.makeStyle({m:"0 auto"}),...b(o),...n(o),...e.getStyleBackgroundByDevice(i||p),...e.getGradientImageBgrStyleByDevice(i||p)}},exports.getDisplayStyle=a,exports.getStylePadding=b;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),s=require("../../grid/components/ChildrenDroppable.js"),r=require("@gem-sdk/core"),i=require("@gem-sdk/system"),t=require("../common/classes.js"),a=require("../common/styles.js"),l=require("../../common/const.js");require("react");var d=require("../hooks/useSticky.js"),o=require("next/head");exports.default=({children:c,builderAttrs:
|
|
2
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),s=require("../../grid/components/ChildrenDroppable.js"),r=require("@gem-sdk/core"),i=require("@gem-sdk/system"),t=require("../common/classes.js"),a=require("../common/styles.js"),l=require("../../common/const.js");require("react");var d=require("../hooks/useSticky.js"),o=require("next/head");exports.default=({children:c,builderAttrs:n,setting:u,style:m,builderProps:g,advanced:j,pageContext:x})=>{let p=r.useEditorMode(),{background:h,preloadBgImage:q,isScrollToTop:y}=u??{},{positionStyle:C,displayStyle:k,makeDisplaySettingStyles:f,getCSSAlign:b,w:E}=d.default(u),v=i.createStyle({margin:"0 auto",...k,...b,...C,zIndex:l.ELEMENT_Z_INDEX.STICKY,..."edit"!==p&&f}),S=i.createStyle(a.getContentStyles({setting:u,style:m,uid:g?.uid,pageContext:x??{}})),_=i.createClass(t.getContainerClasses({uid:g?.uid,isScrollToTop:y,cssClass:j?.cssClass}));return e.jsxs(e.Fragment,{children:[!!q&&e.jsxs(o,{children:[!!h?.desktop?.image?.src&&e.jsx("link",{rel:"preload",href:h.desktop.image.src,as:"image"}),!!h?.tablet?.image?.src&&e.jsx("link",{rel:"preload",href:h.tablet.image.src,as:"image"}),!!h?.mobile?.image?.src&&e.jsx("link",{rel:"preload",href:h.mobile.image.src,as:"image"})]}),e.jsx("div",{className:_,id:g?.uid,style:{...E,...v},children:e.jsx("div",{...n,"data-id":g?.uid,style:S,children:r.isEmptyChildren(c)?e.jsx(s.default,{}):c})})]})};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@gem-sdk/core"),t=require("@gem-sdk/system"),s=require("../common/styles.js"),a=require("../common/classes.js"),r=require("../../helpers.js");exports.default=({children:i,builderAttrs:l,setting:d,style:n,builderProps:o,advanced:p,pageContext:c})=>{let{width:g,position:m,display:y,scrollPercent:
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@gem-sdk/core"),t=require("@gem-sdk/system"),s=require("../common/styles.js"),a=require("../common/classes.js"),r=require("../../helpers.js");exports.default=({children:i,builderAttrs:l,setting:d,style:n,builderProps:o,advanced:p,pageContext:c})=>{let{width:g,position:m,display:y,scrollPercent:$,showFrom:k,hideFrom:u,preloadBgImage:f,background:S,isScrollToTop:b}=d??{},v=p?.d,C=t.createStyle({...e.makeStyleResponsive("w",g),...s.getContainerStyles({position:m,display:y})}),R=t.createStyle(s.getContentStyles({setting:d,style:n,uid:o?.uid,pageContext:c??{}})),j=t.createClass(a.getContainerClasses({uid:o?.uid,isScrollToTop:b,cssClass:p?.cssClass})),I=t.createStateOrContext({uid:o?.uid,setting:{display:{desktop:y?.desktop,tablet:y?.tablet??y?.desktop,mobile:y?.mobile??y?.tablet??y?.desktop},scrollPercent:$,showFrom:k,hideFrom:u},advanced:{d:v}}),h=`.drawer-page-content {
|
|
2
2
|
transform: none !important;
|
|
3
3
|
-webkit-transform: none !important;
|
|
4
4
|
}`;return e.template`
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
class="${j} ${r.getSettingPreloadData("gps-lazy")}"
|
|
10
10
|
style="${C}"
|
|
11
11
|
>
|
|
12
|
-
<script gp-data type="application/json">${JSON.stringify(
|
|
13
|
-
<style>${
|
|
12
|
+
<script gp-data type="application/json">${JSON.stringify(I)}</script>
|
|
13
|
+
<style>${h}</style>
|
|
14
14
|
<div ${{...l}} style="${{...R}}">
|
|
15
15
|
${i}
|
|
16
16
|
</div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("@gem-sdk/core"),t=require("../../helpers.js"),l=require("../settings/configs/translate.js"),r=require("./helpers.js");exports.getContainContentStyle=()=>{let l={};return e.makeStyle({w:"100%"})&&(l={...e.makeStyle({w:"100%"})}),t.filterTruthyStyles(l)},exports.getItemStyle=(l,a)=>{let{labelColor:o,labelBgColor:i,borderTab:s,labelAlign:n,enableActiveEffect:y,panelWidth:S,position:d,labelWidth:b}=l??{},g={};return g={...g=a&&(!0===y||void 0===y)?{...e.makeStyleResponsive("jc",n),...e.makeStyle({c:e.getSingleColorVariable(o?.active??o?.normal),bgc:e.getSingleColorVariable(i?.active??i?.normal),bs:s?.active?.border??s?.normal?.border,bw:s?.active?.width??s?.normal?.width,bc:e.getSingleColorVariable(s?.active?.color??s?.normal?.color)})}:{...e.makeStyleResponsive("jc",n),...e.getGlobalColorStateStyle("c",o),...e.getGlobalColorStateStyle("bgc",i),...e.handleConvertBorderStyle(s),...e.handleConvertBorderWidth(s),...e.handleConvertBorderColor(s)},...e.makeStyleResponsive("w",r.getStyleWidthByPositionResponsive({position:d,panelWidth:S,labelWidth:b}))},l?.enableHoverEffect||(g=e.filterHoverVariables(g)),t.filterTruthyStyles(g)},exports.getStyleWrapper=({setting:r,style:a,uid:o,pageContext:i
|
|
1
|
+
"use strict";var e=require("@gem-sdk/core"),t=require("../../helpers.js"),l=require("../settings/configs/translate.js"),r=require("./helpers.js");exports.getContainContentStyle=()=>{let l={};return e.makeStyle({w:"100%"})&&(l={...e.makeStyle({w:"100%"})}),t.filterTruthyStyles(l)},exports.getItemStyle=(l,a)=>{let{labelColor:o,labelBgColor:i,borderTab:s,labelAlign:n,enableActiveEffect:y,panelWidth:S,position:d,labelWidth:b}=l??{},g={};return g={...g=a&&(!0===y||void 0===y)?{...e.makeStyleResponsive("jc",n),...e.makeStyle({c:e.getSingleColorVariable(o?.active??o?.normal),bgc:e.getSingleColorVariable(i?.active??i?.normal),bs:s?.active?.border??s?.normal?.border,bw:s?.active?.width??s?.normal?.width,bc:e.getSingleColorVariable(s?.active?.color??s?.normal?.color)})}:{...e.makeStyleResponsive("jc",n),...e.getGlobalColorStateStyle("c",o),...e.getGlobalColorStateStyle("bgc",i),...e.handleConvertBorderStyle(s),...e.handleConvertBorderWidth(s),...e.handleConvertBorderColor(s)},...e.makeStyleResponsive("w",r.getStyleWidthByPositionResponsive({position:d,panelWidth:S,labelWidth:b}))},l?.enableHoverEffect||(g=e.filterHoverVariables(g)),t.filterTruthyStyles(g)},exports.getStyleWrapper=({setting:r,style:a,uid:o,pageContext:i})=>{let{background:s,containWidth:n,align:y}=r??{},S=e.IS_LIQUID?t.getBackgroundTranslated({background:s,uid:o,enableTranslate:!!l.Tabs?.background?.id,pageContext:i,isTranslateVideo:!1}):s,d={...a,...e.getStyleBackgroundByDevice(S),...e.getGradientBgrStyleByDevice(S,{desktop:!0,tablet:!0,mobile:!0}),...e.makeStyleResponsive("w",e.makeWidth(n)),...e.makeStyleResponsive("as",y)};return t.filterTruthyStyles(d)},exports.getTabItemStyle=(l,r)=>{let a={...l,...e.makeStyle({h:"100%",v:r?"visible":"hidden",pos:r?"relative":"absolute"})};return t.filterTruthyStyles(a)},exports.getTabListStyle=l=>{let{panelAlign:r}=l??{},a={...e.makeStyleResponsive("jc",r),...e.makeStyleResponsive("w",{desktop:"100%",tablet:"100%",mobile:"100%"})};return t.filterTruthyStyles(a)},exports.getTabParentListStyle=l=>{let{panelAlign:r,panelAlignVertical:a}=l??{},o={...e.makeStyleResponsive("jc",r),...e.makeStyleResponsive("ai",a)};return t.filterTruthyStyles(o)};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@gem-sdk/core"),t=require("../../helpers.js"),s=require("@gem-sdk/system"),a=require("../settings/configs/translate.js"),l=require("../common/attrs.js"),i=require("../../text/components/Text.liquid.js"),r=require("../common/classes.js"),c=require("../common/styles.js");exports.default=d=>{let{builderProps:n,style:p,setting:o,advanced:g,rawChildren:y}=d;delete o?.labelTypoV2?.attrs?.color;let{cssClass:u}=g??{},{panelWidth:C,childItem:m,labelAlign:v,labelTypo:$,labelTypoV2:S}=o??{},b=s.createStateOrContext({setting:o,builderProps:n}),h=void 0;o&&!o?.labelWidth&&(o.labelWidth={desktop:"200px"});let x=s.createAttr({...l.getAttr({uid:n?.uid||""})}),T=s.createStyle({...c.getStyleWrapper({setting:o,style:p,uid:n?.uid,pageContext:d.pageContext??{}
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@gem-sdk/core"),t=require("../../helpers.js"),s=require("@gem-sdk/system"),a=require("../settings/configs/translate.js"),l=require("../common/attrs.js"),i=require("../../text/components/Text.liquid.js"),r=require("../common/classes.js"),c=require("../common/styles.js");exports.default=d=>{let{builderProps:n,style:p,setting:o,advanced:g,rawChildren:y}=d;delete o?.labelTypoV2?.attrs?.color;let{cssClass:u}=g??{},{panelWidth:C,childItem:m,labelAlign:v,labelTypo:$,labelTypoV2:S}=o??{},b=s.createStateOrContext({setting:o,builderProps:n}),h=void 0;o&&!o?.labelWidth&&(o.labelWidth={desktop:"200px"});let x=s.createAttr({...l.getAttr({uid:n?.uid||""})}),T=s.createStyle({...c.getStyleWrapper({setting:o,style:p,uid:n?.uid,pageContext:d.pageContext??{}})}),f=s.createClass({...r.getClassesWrapper({builderProps:n,advancedCssClass:u})}),j=s.createClass({...r.getContainClasses({setting:o})}),A=r.getStyleTagClasses({panelWidth:C,builderProps:n}),q=s.createClass({...r.getTabParentListClasses()}),I=s.createStyle({...c.getTabParentListStyle(o)}),L=s.createClass({...r.getTabListClasses({setting:o})}),P=s.createStyle({...c.getTabListStyle(o)}),k=e=>s.createClass({...r.getItemClasses({setting:o,isNotLiquid:!1,isActive:e,currentDevice:h})}),K=e=>s.createStyle({...c.getItemStyle(o,e)}),W=s.createClass({...r.getWrapperContentClasses()}),E=s.createClass({...r.getContainContentClasses()}),R=s.createStyle({...c.getContainContentStyle()}),N=s.createAttr({...l.getAttrContent({uid:n?.uid||""})}),O=s.createClass({...r.getTextClasses()});return e.template`
|
|
2
2
|
<gp-tab
|
|
3
3
|
${{...x}}
|
|
4
4
|
style="${T}"
|
|
5
5
|
class="${f}"
|
|
6
6
|
>
|
|
7
7
|
<script gp-data type="application/json">${JSON.stringify(b)?.replaceAll("'","'")}</script>
|
|
8
|
-
<style>${
|
|
8
|
+
<style>${A}</style>
|
|
9
9
|
<div class="${j}">
|
|
10
|
-
<div class="${
|
|
10
|
+
<div class="${q}" style="${I}">
|
|
11
11
|
<ul class="${L}" style="${P}">
|
|
12
12
|
${m?.map(e=>e?.replaceAll("'","'"))?.map((s,l)=>{let r=(o?.activeKey??0)<0||(o?.activeKey??0)>=(o?.childItem??[]).length?0===l:l===o?.activeKey,c=t.getDynamicSourceLocales({val:s,uid:n?.uid,settingId:t.createSettingId({id:a.Tabs?.childItem?.id,index:l}),pageContext:d.pageContext??{},isCapitalize:o?.labelTypoV2?.attrs?.transform==="capitalize"});return e.template`
|
|
13
13
|
<li
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";var e=require("@gem-sdk/
|
|
1
|
+
"use strict";var e=require("@gem-sdk/core"),s=require("@gem-sdk/system"),i=require("./classes.js");const l=`
|
|
2
2
|
<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
3
|
<path d="M19.6475 5.16194C19.6416 5.1148 19.6197 5.0713 19.5857 5.03911C19.5516 5.00692 19.5076 4.9881 19.4614 4.98597C19.3835 4.98597 17.8469 4.95397 17.8469 4.95397C17.8469 4.95397 16.5588 3.67419 16.4342 3.5311C16.3104 3.40312 16.0619 3.43512 15.9684 3.46711L15.3166 3.67508C15.2361 3.40491 15.1323 3.14259 15.0067 2.89121C14.5566 1.99536 13.8727 1.51544 13.0659 1.51544C13.0044 1.51544 12.9577 1.51544 12.8954 1.53144C12.8642 1.49945 12.8486 1.46745 12.8175 1.45145C12.4608 1.06752 12.0107 0.875552 11.467 0.891549C10.4282 0.923543 9.38772 1.70741 8.53419 3.08318C7.94467 4.05901 7.49453 5.27392 7.3543 6.21776C6.15969 6.6017 5.32087 6.87365 5.29057 6.87365C4.68461 7.06562 4.66903 7.08161 4.59199 7.67351C4.56082 8.12144 2.97754 20.7415 2.97754 20.7415L16.2636 23.1091L22.022 21.6374C22.0064 21.6374 19.6631 5.27392 19.6475 5.16194ZM14.6492 3.89904C14.3062 4.00572 13.9648 4.11772 13.6251 4.23498C13.6251 3.69108 13.5472 2.92321 13.3143 2.28331C14.1064 2.41129 14.4942 3.33914 14.6492 3.89904ZM12.9265 4.44206C12.2279 4.66602 11.4679 4.90598 10.707 5.14594C10.9243 4.29808 11.3277 3.46623 11.8245 2.90632C12.033 2.66965 12.2863 2.47913 12.569 2.34641C12.8806 2.9712 12.9421 3.85105 12.9265 4.44206ZM11.4982 1.61143C11.7466 1.61143 11.9483 1.65942 12.1197 1.7874C11.8127 1.95192 11.5387 2.17444 11.3121 2.44329C10.6455 3.17916 10.1331 4.31408 9.93135 5.4179C9.29423 5.62586 8.67356 5.81783 8.11521 5.9938C8.48744 4.25009 9.89933 1.65942 11.4982 1.61143Z" fill="#95BF47"/>
|
|
4
4
|
<path d="M19.4652 4.94733C19.3856 4.94733 17.816 4.91527 17.816 4.91527C17.816 4.91527 16.4986 3.63266 16.3721 3.48837C16.3266 3.43975 16.264 3.41098 16.1978 3.4082V23.1096L22.0833 21.6346L19.6714 5.12369C19.6404 5.01147 19.5448 4.94733 19.4652 4.94733Z" fill="#5E8E3E"/>
|
|
5
5
|
<path d="M13.5575 8.51577L12.8029 10.8908C12.8029 10.8908 11.9602 10.5663 10.9599 10.6253C9.48595 10.6991 9.48595 11.4809 9.48595 11.6727C9.57404 12.7348 12.89 12.9709 13.0828 15.4631C13.2238 17.4251 11.8545 18.7675 9.85396 18.8708C7.46778 18.9733 6.15137 17.7939 6.15137 17.7939L6.66032 15.9794C6.66032 15.9794 7.99435 16.8203 9.0465 16.7613C9.73162 16.7318 9.9949 16.245 9.95967 15.9204C9.85396 14.5337 7.15165 14.6223 6.97645 12.3365C6.83551 10.4188 8.32712 8.48626 11.6265 8.30924C12.9076 8.23548 13.5575 8.51577 13.5575 8.51577Z" fill="white"/>
|
|
6
6
|
</svg>
|
|
7
|
-
`;exports.ICON_SHOPIFY_SLOT=l,exports.renderThirdPartySlot=({setting:l,
|
|
7
|
+
`;exports.ICON_SHOPIFY_SLOT=l,exports.renderThirdPartySlot=({setting:l,componentsEditorMode:d})=>{if(!e.IS_LIQUID)return d;let r=s.createClass(i.composeClasses("third-party-slot gp-w-full")),t=s.createClass(i.composeClasses("gp-hidden"));return e.template`
|
|
8
8
|
{% assign app_blocks = section.blocks | where: "type", "@app" %}
|
|
9
9
|
|
|
10
10
|
{% assign filtered_block_ids_string = '' %}
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
|
|
23
23
|
{% if filtered_block_ids[${l?.index??0}] %}
|
|
24
24
|
<div
|
|
25
|
-
class="${
|
|
25
|
+
class="${r}"
|
|
26
26
|
>
|
|
27
27
|
{% for block in app_blocks %}
|
|
28
28
|
{% for filtered_block_id in filtered_block_ids %}
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
{% endfor %}
|
|
34
34
|
</div>
|
|
35
35
|
{% elsif request.design_mode or request.visual_preview_mode %}
|
|
36
|
-
${
|
|
36
|
+
${d}
|
|
37
37
|
{% else %}
|
|
38
|
-
<div class="${
|
|
38
|
+
<div class="${t}"></div>
|
|
39
39
|
{% endif %}
|
|
40
40
|
`};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("../common/classes.js"),s=require("../common/helpers.js"),t=require("../common/styles.js"),a=require("@gem-sdk/system");exports.default=i=>{let{setting:n,builderProps:d}=i,l=a.createClass(r.getClassThirdPartyContainer()),o=a.createClass(r.getClassIconThirdPartyContainer()),c=a.createClass(r.getClassTextThirdPartyContainer()),m=a.createStyle(t.getStyleIconThirdPartyContainer());return e.jsx(e.Fragment,{children:s.renderThirdPartySlot({setting:n,
|
|
2
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("../common/classes.js"),s=require("../common/helpers.js"),t=require("../common/styles.js"),a=require("@gem-sdk/system");exports.default=i=>{let{setting:n,builderProps:d}=i,l=a.createClass(r.getClassThirdPartyContainer()),o=a.createClass(r.getClassIconThirdPartyContainer()),c=a.createClass(r.getClassTextThirdPartyContainer()),m=a.createStyle(t.getStyleIconThirdPartyContainer());return e.jsx(e.Fragment,{children:s.renderThirdPartySlot({setting:n,componentsEditorMode:e.jsx("div",{"data-uid":d?.uid??"","data-index":n?.index,className:l,children:e.jsxs("div",{className:o,style:m,children:[e.jsx("span",{dangerouslySetInnerHTML:{__html:s.ICON_SHOPIFY_SLOT}}),e.jsx("div",{className:c,children:"Shopify App"})]})})})})};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../common/classes.js"),s=require("../common/helpers.js"),r=require("../common/styles.js"),t=require("@gem-sdk/system");exports.default=a=>{let{setting:i,builderProps:d}=a,n=t.createClass(e.getClassThirdPartyContainer()),o=t.createClass(e.getClassIconThirdPartyContainer()),l=t.createClass(e.getClassTextThirdPartyContainer()),c=t.createStyle(r.getStyleIconThirdPartyContainer());return s.renderThirdPartySlot({setting:i,
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../common/classes.js"),s=require("../common/helpers.js"),r=require("../common/styles.js"),t=require("@gem-sdk/system");exports.default=a=>{let{setting:i,builderProps:d}=a,n=t.createClass(e.getClassThirdPartyContainer()),o=t.createClass(e.getClassIconThirdPartyContainer()),l=t.createClass(e.getClassTextThirdPartyContainer()),c=t.createStyle(r.getStyleIconThirdPartyContainer());return s.renderThirdPartySlot({setting:i,componentsEditorMode:`
|
|
2
2
|
<div
|
|
3
3
|
data-uid=${d?.uid??""}
|
|
4
4
|
data-index=${i?.index}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var r=require("./settings/ThirdPartySlot.js");require("react/jsx-runtime"),require("@gem-sdk/
|
|
1
|
+
"use strict";var r=require("./settings/ThirdPartySlot.js");require("react/jsx-runtime"),require("@gem-sdk/core"),require("@gem-sdk/system");const e={ThirdPartySlot:r.default};exports.thirdPartySlotSetting=e;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{normalizeMailto as t,isShopifyDomain as e,checkIsScrollToTop as l,checkIsOpenPopup as r,isLinkedToSalesPage as i,getDynamicSourceLocales as o,createSettingId as a}from"../../helpers.js";import{Button as n}from"../settings/configs/translate.js";import{
|
|
1
|
+
import{normalizeMailto as t,isShopifyDomain as e,checkIsScrollToTop as l,checkIsOpenPopup as r,isLinkedToSalesPage as i,getDynamicSourceLocales as o,createSettingId as a}from"../../helpers.js";import{Button as n}from"../settings/configs/translate.js";import{IS_LIQUID as s,splitStyle as g,convertHTML as p}from"@gem-sdk/core";import{HREF_TO_SALES_PAGE as c}from"../../constant.js";import{getCustomCssStyles as d}from"./styles.js";import u from"../../link/components/Link.js";let h=(t,e)=>{if(!e)return t;let l={...t};return["hover","focus"].forEach(t=>{delete l?.backgroundColorV2?.[t]}),l},f=({label:t,translateSetting:e,styles:l,pageContext:r,isUseTranslatedValue:i,builderProps:g,isForceValue:c})=>{let d=!i||c?t:o({val:t,pageContext:r,settingId:a({id:e??n?.label?.id}),uid:g?.uidTranslate??g?.uid,isCapitalize:l?.typo?.attrs?.transform==="capitalize"});return s?d?.toString()??"":p(t)},m=(t,e)=>!!t&&e,b=(t,e)=>!!t||!e,k=({mode:t,options:e})=>s?!e?.isCannotEditing:"edit"===t&&!e?.isCannotEditing,C=t=>!!t?.link?.startsWith("#")&&("_self"===t.target||"scroll-to"===t.type),I=t=>g(["pos","top","left","bottom","right","z"],t),w=t=>t?"loading":"idle",y=(t,e,l)=>t??(e||l)??"",S=({label:t})=>s?t?.toString().replaceAll("'","'").replaceAll('"',"'")??"":t?.toString()??"",v=({setting:o,htmlType:a="button",defaultTag:n,enableBtnLink:g,pageType:p})=>{let d=["product.url"],h=["#","mailto:","tel:"],f=o?.link??"",m="/"===f,b=o?.link!==void 0&&""!==o.link,k=new RegExp(/^https?:\/\//i),C=b&&k.test(f);b&&f.toLowerCase().startsWith("mailto:")&&f.includes("+")&&(f=t(f));let I=i(o?.type),w=!!g&&(C||e(b,f)||(()=>{if(d.find(t=>f.includes(t)))return!0;let t=h.find(t=>f.startsWith(t));return!(!t||l(o)||"STATIC"===p&&r(o))})()||m||I),y=f;s&&(e(b,f)||m)&&(y=o?.isTranslate?"$locationOrigin"+f:"{{ request.origin }}{{ routes.root_url | split: '/' | join: '/' }}"+f);let S=w?s?"a":u:n,v={href:y,target:o?.target,...o?.noFollow&&{rel:"nofollow"}},L=w?v:b?{...v,type:a}:{type:a};return I&&(L={href:c,target:"_self"}),{HTMLTag:S,urlData:L,shouldRenderLink:w}},L=t=>{let{style:e,dataId:l,pageContext:r,styles:i={},setting:o={},builderProps:a,builderAttrs:n,isUseTranslatedValue:g=!0}=t,{label:p,iconSvg:c,btnLink:u,loading:v,options:L,disabled:E,iconVisible:x,shouldClearSpace:A}=o,[D,T]=I(e),j=h(i,E),z=d({styles:i,uid:a?.uid,builderAttrs:n,enableHoverEffect:o.enableHoverEffect??!0}),_=w(v),G=y(a?.uidInteraction,l,a?.uid),H=t=>{let{translateSetting:e,isForceValue:l,pageContext:i}=t??{};return f({pageContext:i??r??{},label:p,translateSetting:e,isForceValue:l,builderProps:a,styles:j,...s&&{isUseTranslatedValue:g}})},O=m(c,x),W=C(u);return{customCss:z,wrapStyle:D,restStyle:T,dataState:_,dataIdAttr:G,isShowIcon:O,isScrollToElement:W,getArialLabel:()=>S({label:p}),getLabelToDisplay:H,checkIsShowLabel:t=>{let{translateSetting:e,isForceValue:l,pageContext:i}=t??{},o=H({translateSetting:e,isForceValue:l,pageContext:i??r??{}});return b(o,A)},checkIsEditableLabel:t=>{let{mode:e}=t??{};return k({options:L,...!s&&e&&{mode:e}})}}},E=`
|
|
2
2
|
<svg
|
|
3
3
|
class="gp-invisible gp-absolute gp-h-5 gp-w-5 group-data-[state=loading]:gp-animate-spin group-data-[state=loading]:gp-visible"
|
|
4
4
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -19,4 +19,4 @@ import{normalizeMailto as t,isShopifyDomain as e,checkIsScrollToTop as l,checkIs
|
|
|
19
19
|
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
20
20
|
></path>
|
|
21
21
|
</svg>
|
|
22
|
-
`;export{
|
|
22
|
+
`;export{E as LOADING_INDICATOR,C as checkIsScrollToElement,m as checkIsShowIcon,h as getCleanedStyles,L as getData,y as getDataId,w as getDataState,v as getInsertLinkData,I as getSplitStyles,k as handleCheckIsEditableLabel,b as handleCheckIsShowLabel,S as handleGetArialLabel,f as handleGetLabelToDisplay};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import{createStyle as
|
|
1
|
+
import{createStyle as t,createClass as s,createAttr as e,createStateOrContext as o,Liquid as r,If as i}from"@gem-sdk/system";import{isLocalEnv as a,baseAssetURL as l,template as n}from"@gem-sdk/core";import{getButtonAttributes as p}from"../common/attrs.js";import{getButtonStyles as m,getTypoStyles as c,getButtonIconStyles as d,getButtonWrapperStyles as g}from"../common/styles.js";import{getButtonClasses as $,getButtonIconClasses as f,getButtonLabelClasses as u,getButtonWrapperClasses as y,getButtonContentWrapperClasses as b,getButtonContainerClasses as j}from"../common/classes.js";import{getSettingPreloadData as v}from"../../helpers.js";import S from"./ButtonLoadingIndicator.liquid.js";import{getData as k,getInsertLinkData as h}from"../common/helpers.js";import L from"./ButtonLabel.liquid.js";import E from"./ButtonIcon.liquid.js";let x=x=>{let{advanced:B,className:C,nodePrice:I,customAttrs:T,styles:q={},setting:A={},builderProps:G,wrapClassName:H="",translateSetting:M,isForceValue:N,pageContext:O}=x,{iconSvg:_,btnLink:J,htmlType:P,disabled:R,enableBtnLink:V,shouldClearSpace:w,disabledLoading:z=!0}=A,{enableTextStyle:D=!0}=q,{customCss:F,wrapStyle:K,restStyle:Q,dataState:U,dataIdAttr:W,isShowIcon:X,isScrollToElement:Y,getArialLabel:Z,getLabelToDisplay:tt,checkIsShowLabel:ts,checkIsEditableLabel:te}=k(x),{HTMLTag:to,urlData:tr,shouldRenderLink:ti}=h({enableBtnLink:V,htmlType:P,setting:J,defaultTag:"button"}),ta=t({...m(q,A?.enableHoverEffect)}),tl=t({...c(q)}),tn=t({...c(q),...d(q,A)}),tp=t({...g(Q,q)}),tm=s({...$({styles:q,className:C,shouldRenderLink:ti,uid:G?.uid,advanced:B})}),tc=s({...f(tt({translateSetting:M,isForceValue:N,pageContext:O??{}}),w,D)}),td=s({...u(q,te())}),tg=s({...y(H,C,B?.cssClass)}),t$=s({...b(A)}),tf=s({...j()}),tu=e({...p({disabled:R,dataState:U,dataId:W,arialLabel:Z()})}),ty=o({btnLink:A?.btnLink});return r(n`
|
|
2
2
|
<gp-button
|
|
3
3
|
style="${{...K}}"
|
|
4
|
-
class="${
|
|
4
|
+
class="${tf}"
|
|
5
5
|
>
|
|
6
|
-
<script gp-data type="application/json">${JSON.stringify(
|
|
7
|
-
<div style="${
|
|
6
|
+
<script gp-data type="application/json">${JSON.stringify(ty)}</script>
|
|
7
|
+
<div style="${tp}" class="${tg}">
|
|
8
8
|
<style>${F}</style>
|
|
9
|
-
${
|
|
9
|
+
${i(Y,`<a
|
|
10
10
|
class="gp-trigger-button-link gp-hidden"
|
|
11
|
-
href=${
|
|
12
|
-
target=${
|
|
11
|
+
href=${tr.href}
|
|
12
|
+
target=${tr.target}
|
|
13
13
|
></a>`)}
|
|
14
|
-
<${
|
|
15
|
-
${{...
|
|
16
|
-
${{...
|
|
17
|
-
${{...
|
|
18
|
-
style="${
|
|
19
|
-
class="${
|
|
14
|
+
<${to}
|
|
15
|
+
${{...tu}}
|
|
16
|
+
${{...T}}
|
|
17
|
+
${{...tr}}
|
|
18
|
+
style="${ta}"
|
|
19
|
+
class="${tm}"
|
|
20
20
|
>
|
|
21
|
-
${
|
|
22
|
-
<div class="${
|
|
23
|
-
${
|
|
24
|
-
${
|
|
21
|
+
${i(!z,S(),"")}
|
|
22
|
+
<div class="${t$}">
|
|
23
|
+
${i(X,E({iconSvg:_??"",styles:tn,classes:tc}))}
|
|
24
|
+
${i(D&&ts({translateSetting:M,isForceValue:N,pageContext:O??{}}),L({label:tt({translateSetting:M,isForceValue:N,pageContext:O??{}}),styles:tl,classes:td}))}
|
|
25
25
|
</div>
|
|
26
|
-
${
|
|
27
|
-
</${
|
|
26
|
+
${i(!!I,I?.toString()??"","")}
|
|
27
|
+
</${to}>
|
|
28
28
|
</div>
|
|
29
|
-
${
|
|
29
|
+
${i(a,`<script ${v('class="gps-link" delay',"src")}="{{ 'gp-button-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${v('class="gps-link" delay',"src")}="${l}/assets-v2/gp-button-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
|
|
30
30
|
</gp-button>
|
|
31
|
-
`)};export{
|
|
31
|
+
`)};export{x as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import{jsxs as t,jsx as e}from"react/jsx-runtime";import{getClass as r}from"./common/classes.js";import{getData as s}from"./common/helpers.js";import{getStyle as o}from"./common/styles.js";import{If as l}from"@gem-sdk/system";let m=m=>{let{custom:
|
|
2
|
+
import{jsxs as t,jsx as e}from"react/jsx-runtime";import{getClass as r}from"./common/classes.js";import{getData as s}from"./common/helpers.js";import{getStyle as o}from"./common/styles.js";import{If as l}from"@gem-sdk/system";let m=m=>{let{custom:n,left:a,onClick:i}=m,{isRenderCustomIcon:c}=s(m),{buttonClass:p,buttonContentClass:h}=r(m),{buttonStyle:u,buttonContentStyle:y,innerBorderCss:d}=o(m),g=l(c,n??"",`<svg
|
|
3
3
|
height="100%"
|
|
4
4
|
width="100%"
|
|
5
5
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -7,4 +7,4 @@ import{jsxs as t,jsx as e}from"react/jsx-runtime";import{getClass as r}from"./co
|
|
|
7
7
|
fill="currentColor"
|
|
8
8
|
>
|
|
9
9
|
<path d="M5 3l3.057-3 11.943 12-11.943 12-3.057-3 9-9z" />
|
|
10
|
-
</svg>`),w=e("div",{className:h,style:y,dangerouslySetInnerHTML:{__html:g||""}});return t("button",{type:"button","aria-label":`Carousel ${
|
|
10
|
+
</svg>`),w=e("div",{className:h,style:y,dangerouslySetInnerHTML:{__html:g||""}});return t("button",{type:"button","aria-label":`Carousel ${a?"Back":"Next"} Arrow`,className:p,style:u,onClick:i,children:[e("style",{type:"text/css",dangerouslySetInnerHTML:{__html:d}}),w]})};export{m as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{makeStyle as e,getSingleColorVariable as o,getResponsiveStyleShadowWithoutState as r,getPaddingGlobalSize as t,makeGlobalSizeWidthResponsive as a,makeGlobalSizeHeightResponsive as p,makeStyleResponsive as
|
|
1
|
+
import{makeStyle as e,getSingleColorVariable as o,getResponsiveStyleShadowWithoutState as r,getPaddingGlobalSize as t,makeGlobalSizeWidthResponsive as a,makeGlobalSizeHeightResponsive as p,makeStyleResponsive as s,IS_LIQUID as $,composeCornerCss as l,composeBorderCss as i}from"@gem-sdk/core";import{getArrowDisplayStyle as d,getArrowPositionStyle as m,getResponsiveSetting as n}from"./helpers.js";import{createStyleReact as b,createStyle as c}from"@gem-sdk/system";let g=g=>{let{uid:w,vertical:h,showArrow:x,gapToEachSize:u,left:f,arrowBackgroundColor:k,arrowButtonSize:y,rootId:z,arrowBorder:S,arrowCorner:j,arrowCustomColor:v,arrowIconSize:E,arrowShadow:T}=g,q=e({bg:o(k)}),A=e({c:o(v)}),B=r(T,"box-shadow",T),C=n(S||{}),D=n(j||{}),F=t(y),G=n(E||{}),H=n(x||{}),I=a(y),J=p(y),K=s("w",G,"px"),L=s("h",G,"px"),M=s("d",d(H)),N=e(m({vertical:h,arrowType:H,gapToEachSize:u??"",left:!!f})),O={...q,...M,...N,...I,...J,...F,...B},P={...A,...K,...L},Q=$?c(O):b(O),R=$?c(P):b(P),U=`
|
|
2
2
|
${z?"."+z:""}.gp-carousel-arrow-${w} {
|
|
3
3
|
${l(D.desktop)}
|
|
4
4
|
}
|
|
@@ -9,7 +9,7 @@ import{makeStyle as e,getSingleColorVariable as o,getResponsiveStyleShadowWithou
|
|
|
9
9
|
position: absolute;
|
|
10
10
|
pointer-events: none;
|
|
11
11
|
z-index: 10;
|
|
12
|
-
${
|
|
12
|
+
${i(C.desktop)}
|
|
13
13
|
${l(D.desktop)}
|
|
14
14
|
}
|
|
15
15
|
@media only screen and (max-width: 1024px) and (min-width: 768px) {
|
|
@@ -17,7 +17,7 @@ import{makeStyle as e,getSingleColorVariable as o,getResponsiveStyleShadowWithou
|
|
|
17
17
|
${l(D.tablet)}
|
|
18
18
|
}
|
|
19
19
|
${z?"."+z:""}.gp-carousel-arrow-${w}::before {
|
|
20
|
-
${
|
|
20
|
+
${i(C.tablet)}
|
|
21
21
|
${l(D.tablet)}
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -26,8 +26,8 @@ import{makeStyle as e,getSingleColorVariable as o,getResponsiveStyleShadowWithou
|
|
|
26
26
|
${l(D.mobile)}
|
|
27
27
|
}
|
|
28
28
|
${z?"."+z:""}.gp-carousel-arrow-${w}::before {
|
|
29
|
-
${
|
|
29
|
+
${i(C.mobile)}
|
|
30
30
|
${l(D.mobile)}
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
`;return{buttonStyle:Q,buttonContentStyle:R,innerBorderCss:U}};export{
|
|
33
|
+
`;return{buttonStyle:Q,buttonContentStyle:R,innerBorderCss:U}};export{g as getStyle};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import{jsx as e,Fragment as o}from"react/jsx-runtime";import{cls as t,getGlobalColorResponsiveStyle as r,makeStyleResponsiveByScreen as s}from"@gem-sdk/core";import{useDotsSetting as m}from"../../hooks/useDotsSetting.js";import{getDotClass as l}from"./common/classes.js";import{getDotStyle as i}from"./common/styles.js";import{getData as a}from"./common/helpers.js";import{If as
|
|
2
|
+
import{jsx as e,Fragment as o}from"react/jsx-runtime";import{cls as t,getGlobalColorResponsiveStyle as r,makeStyleResponsiveByScreen as s}from"@gem-sdk/core";import{useDotsSetting as m}from"../../hooks/useDotsSetting.js";import{getDotClass as l}from"./common/classes.js";import{getDotStyle as i}from"./common/styles.js";import{getData as a}from"./common/helpers.js";import{If as p}from"@gem-sdk/system";let c=c=>{let{onHandleClick:d,dotSize:n,dotActiveColor:g,dotColor:f}=c,{isLoop:u,checkIsActive:h}=m(c),{checkHidden:j,getDotItems:b}=a(c),k=b(u),{dotClass:y}=l(c),{dotStyle:v}=i(c);return e(o,{children:p(!j(k),e("div",{className:y,style:v,children:e(o,{children:k?.map(o=>{let m=h(o);return e("button",{"aria-label":"Dot",onClick:()=>{d&&d(o,u)},style:{...s("w",n,"px"),...m?r("bg",g):r("bg",f)},className:t("gp-aspect-square gp-w-3 gp-rounded-full gp-shadow-md",{"gem-slider-dot-active":m,"gem-slider-dot-inactive":!m})},o)})})}))})};export{c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeDotGapToCarouselStyle as e,DEVICES as t,getResponsiveValueByScreen as o}from"@gem-sdk/core";import{createStyleReact as
|
|
1
|
+
import{makeDotGapToCarouselStyle as e,DEVICES as t,getResponsiveValueByScreen as o,IS_LIQUID as r}from"@gem-sdk/core";import{createStyleReact as l,createStyle as m}from"@gem-sdk/system";let n=n=>{let{dotStyle:d,dotGapToCarousel:s,vertical:f,showDots:g}=n,p={...e(d,s,f),...(()=>{let e={};return t.forEach(t=>{let r=o(d,t),l=o(g,t),m="desktop"===t?"":`${t}`;e[`--d${0===m.length?"":"-"+m}`]=r&&"none"!==r&&l?"flex":"none"}),e})()},k=r?m(p):l(p);return{dotStyle:k}};export{n as getDotStyle};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import{jsxs as t,jsx as e}from"react/jsx-runtime";import{getClass as r}from"./common/classes.js";import{getData as s}from"./common/helpers.js";import{getStyle as o}from"./common/styles.js";import{If as l}from"@gem-sdk/system";let m=m=>{let{custom:
|
|
2
|
+
import{jsxs as t,jsx as e}from"react/jsx-runtime";import{getClass as r}from"./common/classes.js";import{getData as s}from"./common/helpers.js";import{getStyle as o}from"./common/styles.js";import{If as l}from"@gem-sdk/system";let m=m=>{let{custom:n,left:a,onClick:i}=m,{isRenderCustomIcon:c}=s(m),{buttonClass:p,buttonContentClass:h}=r(m),{buttonStyle:u,buttonContentStyle:y,innerBorderCss:d}=o(m),g=l(c,n??"",`<svg
|
|
3
3
|
height="100%"
|
|
4
4
|
width="100%"
|
|
5
5
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -7,4 +7,4 @@ import{jsxs as t,jsx as e}from"react/jsx-runtime";import{getClass as r}from"./co
|
|
|
7
7
|
fill="currentColor"
|
|
8
8
|
>
|
|
9
9
|
<path d="M5 3l3.057-3 11.943 12-11.943 12-3.057-3 9-9z" />
|
|
10
|
-
</svg>`),w=e("div",{className:h,style:y,dangerouslySetInnerHTML:{__html:g||""}});return t("button",{type:"button","aria-label":`Carousel ${
|
|
10
|
+
</svg>`),w=e("div",{className:h,style:y,dangerouslySetInnerHTML:{__html:g||""}});return t("button",{type:"button","aria-label":`Carousel ${a?"Back":"Next"} Arrow`,className:p,style:u,onClick:i,children:[e("style",{type:"text/css",dangerouslySetInnerHTML:{__html:d}}),w]})};export{m as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{getClass as t}from"./common/classes.js";import{getData as s}from"./common/helpers.js";import{getStyle as o}from"./common/styles.js";import{template as e}from"@gem-sdk/core";import{If as r}from"@gem-sdk/system";let l=l=>{let{custom:m,left:i}=l,{isRenderCustomIcon:a}=s(l),{buttonClass:p,buttonContentClass:c}=t({...l
|
|
1
|
+
import{getClass as t}from"./common/classes.js";import{getData as s}from"./common/helpers.js";import{getStyle as o}from"./common/styles.js";import{template as e}from"@gem-sdk/core";import{If as r}from"@gem-sdk/system";let l=l=>{let{custom:m,left:i}=l,{isRenderCustomIcon:a}=s(l),{buttonClass:p,buttonContentClass:c}=t({...l}),{buttonStyle:n,buttonContentStyle:w,innerBorderCss:y}=o(l),$=r(a,m??"",`<svg
|
|
2
2
|
height="100%"
|
|
3
3
|
width="100%"
|
|
4
4
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -6,12 +6,12 @@ import{getClass as t}from"./common/classes.js";import{getData as s}from"./common
|
|
|
6
6
|
fill="currentColor"
|
|
7
7
|
>
|
|
8
8
|
<path d="M5 3l3.057-3 11.943 12-11.943 12-3.057-3 9-9z" />
|
|
9
|
-
</svg>`),
|
|
9
|
+
</svg>`),d=e`
|
|
10
10
|
<div
|
|
11
11
|
class="${c}"
|
|
12
|
-
style="${
|
|
12
|
+
style="${w}"
|
|
13
13
|
>
|
|
14
|
-
${
|
|
14
|
+
${$||""}
|
|
15
15
|
</div>
|
|
16
16
|
`;return e`
|
|
17
17
|
<button
|
|
@@ -20,7 +20,7 @@ import{getClass as t}from"./common/classes.js";import{getData as s}from"./common
|
|
|
20
20
|
class="${p}"
|
|
21
21
|
style="${n}"
|
|
22
22
|
>
|
|
23
|
-
<style type="text/css">${
|
|
24
|
-
${
|
|
23
|
+
<style type="text/css">${y}</style>
|
|
24
|
+
${d}
|
|
25
25
|
</button>
|
|
26
26
|
`};export{l as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getClassArrowDisplay as e,getClassArrowRotate as r,getResponsiveSetting as g}from"./helpers.js";import{createClass as p}from"@gem-sdk/system";let
|
|
1
|
+
import{getClassArrowDisplay as e,getClassArrowRotate as r,getResponsiveSetting as g}from"./helpers.js";import{createClass as p}from"@gem-sdk/system";import{IS_LIQUID as t}from"@gem-sdk/core";let o=o=>{let{className:s,componentId:i,rootId:l,left:c,uid:n,isHiddenWhenDisabled:u,disabled:a,showWhenHover:f,showArrow:m,vertical:v}=o,d=g(m||{}),b=c?"gp-carousel-action-back gem-slider-previous":"gp-carousel-action-next gem-slider-next",x=`gp-invisible ${t?"":"gp-opacity-0"}`,y=p({"gp-z-2 gp-items-center gp-justify-center gp-overflow-hidden gp-shrink-0 before:gp-left-0 before:gp-top-0":!0,["gp-carousel-arrow-"+n]:!0,...s&&{[s]:!0},...i&&{[i]:!0},...l&&{[l]:!0},[b]:!0,...{[x]:u&&a,"gp-cursor-default gp-text-gray-300":a,"gp-cursor-pointer gp-text-gray-500":!a,"!gp-invisible group-hover/carousel:!gp-visible":f,...e(d)}}),h=p({"gp-flex gp-items-center gp-justify-center [&>svg]:gp-h-full [&>svg]:gp-w-full":!0,...r(!!c,v)});return{buttonClass:y,buttonContentClass:h}};export{o as getClass};
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import{makeStyle as e,getSingleColorVariable as o,getResponsiveStyleShadowWithoutState as r,getPaddingGlobalSize as t,makeStyleResponsive as a,composeCornerCss as
|
|
2
|
-
${
|
|
3
|
-
${
|
|
1
|
+
import{makeStyle as e,getSingleColorVariable as o,getResponsiveStyleShadowWithoutState as r,getPaddingGlobalSize as t,makeStyleResponsive as a,IS_LIQUID as p,composeCornerCss as s,composeBorderCss as $}from"@gem-sdk/core";import{getResponsiveWidth as i,getResponsiveHeight as l,getArrowDisplayStyle as d,getArrowPositionStyle as n,getResponsiveSetting as m}from"./helpers.js";import{createStyleReact as b,createStyle as c}from"@gem-sdk/system";let g=g=>{let{uid:w,vertical:h,showArrow:x,gapToEachSize:u,left:f,arrowBackgroundColor:k,arrowButtonSize:y,rootId:v,arrowBorder:z,arrowCorner:S,arrowCustomColor:j,arrowIconSize:E,arrowShadow:T}=g,q=e({bg:o(k)}),A=e({c:o(j)}),B=r(T,"box-shadow",T),C=m(z||{}),D=m(S||{}),F=t(y),G=m(E||{}),H=m(x||{}),I=e({v:"hidden"}),J=i(y),K=l(y),L=a("w",G,"px"),M=a("h",G,"px"),N=a("d",d(H)),O=e(n({vertical:h,arrowType:H,gapToEachSize:u??"",left:!!f})),P={...q,...N,...O,...J,...K,...F,...B,...p?I:{}},Q={...A,...L,...M},R=p?c(P):b(P),U=p?c(Q):b(Q),V=`
|
|
2
|
+
${v?"."+v:""}.gp-carousel-arrow-${w} {
|
|
3
|
+
${s(D.desktop)}
|
|
4
4
|
}
|
|
5
|
-
${
|
|
5
|
+
${v?"."+v:""}.gp-carousel-arrow-${w}::before {
|
|
6
6
|
content: '';
|
|
7
7
|
height: 100%;
|
|
8
8
|
width: 100%;
|
|
9
9
|
position: absolute;
|
|
10
10
|
pointer-events: none;
|
|
11
11
|
z-index: 10;
|
|
12
|
-
${
|
|
13
|
-
${
|
|
12
|
+
${$(C.desktop)}
|
|
13
|
+
${s(D.desktop)}
|
|
14
14
|
}
|
|
15
15
|
@media only screen and (max-width: 1024px) and (min-width: 768px) {
|
|
16
|
-
${
|
|
17
|
-
${
|
|
16
|
+
${v?"."+v:""}.gp-carousel-arrow-${w} {
|
|
17
|
+
${s(D.tablet)}
|
|
18
18
|
}
|
|
19
|
-
${
|
|
20
|
-
${
|
|
21
|
-
${
|
|
19
|
+
${v?"."+v:""}.gp-carousel-arrow-${w}::before {
|
|
20
|
+
${$(C.tablet)}
|
|
21
|
+
${s(D.tablet)}
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
@media only screen and (max-width: 768px) {
|
|
25
|
-
${
|
|
26
|
-
${
|
|
25
|
+
${v?"."+v:""}.gp-carousel-arrow-${w} {
|
|
26
|
+
${s(D.mobile)}
|
|
27
27
|
}
|
|
28
|
-
${
|
|
29
|
-
${
|
|
30
|
-
${
|
|
28
|
+
${v?"."+v:""}.gp-carousel-arrow-${w}::before {
|
|
29
|
+
${$(C.mobile)}
|
|
30
|
+
${s(D.mobile)}
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
`;return{buttonStyle:R,buttonContentStyle:U,innerBorderCss:V}};export{
|
|
33
|
+
`;return{buttonStyle:R,buttonContentStyle:U,innerBorderCss:V}};export{g as getStyle};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import{jsx as e,Fragment as o}from"react/jsx-runtime";import{cls as t,getGlobalColorResponsiveStyle as r,makeStyleResponsiveByScreen as s}from"@gem-sdk/core";import{useDotsSetting as m}from"../../hooks/useDotsSetting.js";import{getDotClass as l}from"./common/classes.js";import{getDotStyle as i}from"./common/styles.js";import{getData as a}from"./common/helpers.js";import{If as
|
|
2
|
+
import{jsx as e,Fragment as o}from"react/jsx-runtime";import{cls as t,getGlobalColorResponsiveStyle as r,makeStyleResponsiveByScreen as s}from"@gem-sdk/core";import{useDotsSetting as m}from"../../hooks/useDotsSetting.js";import{getDotClass as l}from"./common/classes.js";import{getDotStyle as i}from"./common/styles.js";import{getData as a}from"./common/helpers.js";import{If as p}from"@gem-sdk/system";let c=c=>{let{onHandleClick:d,dotSize:n,dotActiveColor:g,dotColor:f}=c,{isLoop:u,checkIsActive:h}=m(c),{checkHidden:j,getDotItems:b}=a(c),k=b(u),{dotClass:y}=l(c),{dotStyle:v}=i(c);return e(o,{children:p(!j(k),e("div",{className:y,style:v,children:e(o,{children:k?.map(o=>{let m=h(o);return e("button",{"aria-label":"Dot",onClick:()=>{d&&d(o,u)},style:{...s("w",n,"px"),...m?r("bg",g):r("bg",f)},className:t("gp-aspect-square gp-w-3 gp-rounded-full gp-shadow-md",{"gem-slider-dot-active":m,"gem-slider-dot-inactive":!m})},o)})})}))})};export{c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeDotGapToCarouselStyle as e,DEVICES as t,getResponsiveValueByScreen as o}from"@gem-sdk/core";import{createStyleReact as
|
|
1
|
+
import{makeDotGapToCarouselStyle as e,DEVICES as t,getResponsiveValueByScreen as o,IS_LIQUID as r}from"@gem-sdk/core";import{createStyleReact as l,createStyle as m}from"@gem-sdk/system";let n=n=>{let{dotStyle:d,dotGapToCarousel:s,vertical:f,showDots:g}=n,p={...e(d,s,f),...(()=>{let e={};return t.forEach(t=>{let r=o(d,t),l=o(g,t),m="desktop"===t?"":`${t}`;e[`--d${0===m.length?"":"-"+m}`]=r&&"none"!==r&&l?"flex":"none"}),e})()},k=r?m(p):l(p);return{dotStyle:k}};export{n as getDotStyle};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{IS_LIQUID as e,getGradientBgrStyleByDevice as t,getStyleBackgroundByDevice as r,makeStyleResponsive as o}from"@gem-sdk/core";import{CSSCode as i}from"../settings/configs/translate.js";import{getBackgroundTranslated as l}from"../../helpers.js";let s=({setting:s,style:a,uid:n,pageContext:m})=>{let{background:d}=s??{},g=e?l({background:d,uid:n,enableTranslate:!!i?.background?.id,pageContext:m,isTranslateVideo:!1})??d:d,p={...r(g,{liquid:e}),...t(g,{desktop:!0,tablet:!0,mobile:!0})};return{...a,...o("ta",s?.align),...p}};export{s as getCodeStyle};
|