@gem-sdk/components 2.0.0-dev.880 → 2.0.0-dev.882
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/banner/components/hero-banner/index.liquid.js +10 -10
- package/dist/cjs/banner/helpers/common.js +1 -1
- package/dist/cjs/code/components/CSSCode.js +2 -2
- package/dist/cjs/product/setting/ProductList.js +22 -1
- package/dist/cjs/product/setting/Vendor.js +1 -1
- package/dist/esm/banner/components/hero-banner/index.liquid.js +11 -11
- package/dist/esm/banner/helpers/common.js +1 -1
- package/dist/esm/code/components/CSSCode.js +1 -1
- package/dist/esm/product/setting/ProductList.js +22 -1
- package/dist/esm/product/setting/Vendor.js +1 -1
- package/package.json +1 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var core=require("@gem-sdk/core"),Row_liquid=require("../../../grid/components/Row.liquid.js"),AdaptiveImage_liquid=require("../../../image/components/AdaptiveImage.liquid.js"),common=require("../../helpers/common.js");const HeroBanner=({builderAttrs:e,builderProps:t,setting:o,styles:l,style:r,children:a,rawChildren:i,advanced:s})=>{let{link:n,layout:c,verticalAlign:g,order:p,alignBanner:d}=o??{},{background:m,overlayEnable:u,overlayColor:b,overlayOpacity:v,verticalGutter:h,contentWidth:f,hoverEffect:y,hoverEffectDuration:S,hoverEffectScale:w,cornerBg:$,borderBg:C,hasActiveShadow:k,shadowBg:B,sizeSetting:
|
|
2
|
-
<div class=
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var core=require("@gem-sdk/core"),Row_liquid=require("../../../grid/components/Row.liquid.js"),AdaptiveImage_liquid=require("../../../image/components/AdaptiveImage.liquid.js"),common=require("../../helpers/common.js");const HeroBanner=({builderAttrs:e,builderProps:t,setting:o,styles:l,style:r,children:a,rawChildren:i,advanced:s})=>{let{link:n,layout:c,verticalAlign:g,order:p,alignBanner:d}=o??{},{background:m,overlayEnable:u,overlayColor:b,overlayOpacity:v,verticalGutter:h,contentWidth:f,hoverEffect:y,hoverEffectDuration:S,hoverEffectScale:w,cornerBg:$,borderBg:C,hasActiveShadow:k,shadowBg:B,sizeSetting:R,contentPadding:A}=l??{},x=o?.enableParallax||!1,P=Number(o?.speedParallax)||.6,q=common.getVisibilityStyle(r),I=core.makeStyleResponsive("h",core.getHeightByShapeGlobalSize(R)),_=core.makeStyleWithDefault("w",core.getWidthByShapeGlobalSize(R,!0),{desktop:"--g-ct-w",tablet:"--g-ct-w",mobile:"--g-ct-w"}),z=common.getStyleAspectRatio(m,R),G=core.makeFixedBgAttachment(m),j=common.getResponsiveSetting(m||{}),E=common.getResponsiveSetting(d||{}),F=core.getPaddingGlobalSize(A),D=common.getContentPosition(o?.layout,l?.contentPosition1Col,l?.contentPosition2Col),H=common.mapContentPositionToHorizontal(D),W=()=>{let e={},t=common.getBgImage(m),o=["desktop","mobile","tablet"];return o.forEach(o=>{let l=t?.[o]?.width,r=R?.[o]?.shape==="original";l&&r&&(e={...e,[o]:`${l}px`})}),e},O=core.removeUndefinedValuesFromObject(core.makeStyleWithDefault("w",W(),{desktop:"--g-ct-w",tablet:"--g-ct-w",mobile:"--g-ct-w"}));return core.template`
|
|
2
|
+
<div class="${core.cls("gp-flex gp-w-full",common.getClassJustify(E))}">
|
|
3
3
|
<gp-hero-banner
|
|
4
|
-
gp-data='${core.dataStringify({background:
|
|
4
|
+
gp-data='${core.dataStringify({background:j,uid:t?.uid,enableParallax:x,speedParallax:P}).replaceAll("'","'")}'
|
|
5
5
|
${{...e}}
|
|
6
|
-
class="${core.cls(t?.uid,s?.cssClass,"gp-group/hero gp-flex gp-flex-col gp-transition-colors gp-duration-200 gp-ease-in-out gp-w-full"
|
|
7
|
-
style="${{...r,...q,...I,..._,...
|
|
6
|
+
class="${core.cls(t?.uid,s?.cssClass,"gp-group/hero gp-flex gp-flex-col gp-transition-colors gp-duration-200 gp-ease-in-out gp-w-full")}"
|
|
7
|
+
style="${{...r,...q,...I,..._,...z}}"
|
|
8
8
|
>
|
|
9
9
|
<div
|
|
10
10
|
class="${core.cls("gp-relative gp-flex gp-flex-col gp-items-center gp-overflow-hidden",{...common.getClassContentPosition(D||{})})}"
|
|
11
|
-
style="${{...I,...
|
|
11
|
+
style="${{...I,...z,...core.makeStyle({bs:C?.border??C?.border,bw:C?.width??C?.width,bc:core.getSingleColorVariable(C?.color)}),...core.getRadiusStyleActiveState({...$,active:{...$||{},radiusType:"custom"}}),...core.getStyleShadow({value:B,styleAppliedFor:"box-shadow",isEnableShadow:k})}}"
|
|
12
12
|
>
|
|
13
|
-
${AdaptiveImage_liquid.default({priority:o?.preload,pictureClass:"gp-w-full",srcSet:common.getBgImage(m),aspectRatio:core.getAspectRatioGlobalSize(
|
|
13
|
+
${AdaptiveImage_liquid.default({priority:o?.preload,pictureClass:"gp-w-full",srcSet:common.getBgImage(m),aspectRatio:core.getAspectRatioGlobalSize(R),style:{...common.getDisplayStyleByFitContent(R,m),...I,..._,...O,"--op":0,"--z":-1}})}
|
|
14
14
|
<div class="${core.cls("gp-absolute gp-w-full gp-h-full")}">
|
|
15
15
|
<div
|
|
16
16
|
class="${core.cls("gp-overflow-hidden gp-w-full gp-h-full")}"
|
|
17
|
-
style="${{...
|
|
17
|
+
style="${{...G?.wrapper,"clip-path":"inset(0 0)"}}">
|
|
18
18
|
<div
|
|
19
19
|
aria-label="Background Image"
|
|
20
20
|
role="banner"
|
|
21
21
|
class="${core.cls("gp-hero-banner-bg gp-absolute gp-inset-0 gp-left-[var(--left)] gp-top-[var(--top)] gp-transition-transform gp-flex gp-items-center gp-justify-center gp-bg-clip-content",{"gp-duration-[var(--duration)] group-hover/hero:gp-scale-[var(--scale)]":y})}"
|
|
22
|
-
style="${{...core.getStyleBackgroundByDevice(m,{liquid:!0,ignoreBgAttachment:!0}),"--duration":`${S??0}s`,"--scale":w??1,"--top":0,"--left":0,...
|
|
22
|
+
style="${{...core.getStyleBackgroundByDevice(m,{liquid:!0,ignoreBgAttachment:!0}),"--duration":`${S??0}s`,"--scale":w??1,"--top":0,"--left":0,...G?.content,...core.getGradientBgrStyleByDevice(m)}}"
|
|
23
23
|
> </div>
|
|
24
24
|
</div>
|
|
25
25
|
${core.RenderIf(u,core.template`<div
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
aria-label="Hero banner link"
|
|
36
36
|
class="gp-absolute gp-inset-0 gp-z-1"
|
|
37
37
|
> </a>`)}
|
|
38
|
-
${Row_liquid.default({className:core.cls("gp-hero-banner-row gp-z-1 gp-w-full",common.getClassForContentByFitContent(
|
|
38
|
+
${Row_liquid.default({className:core.cls("gp-hero-banner-row gp-z-1 gp-w-full",common.getClassForContentByFitContent(R,m),common.getClassForStretchContent(g),common.getClassSpaceBetween(o?.layout||{},l?.contentPosition1Col||{},l?.contentPosition2Col||{})),setting:{layout:c,horizontalAlign:H,verticalAlign:g,order:p},styles:{verticalGutter:h,width:common.getWidth(f),fullWidth:{desktop:!1,tablet:!1,mobile:!1}},style:{...F},children:a,rawChildren:i})}
|
|
39
39
|
</div>
|
|
40
40
|
</gp-hero-banner>
|
|
41
41
|
</div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var core=require("@gem-sdk/core");const getDataVideoHeroBannerResponsive=(e,t)=>{switch(e){case"desktop":if(t?.desktop?.type==="video")return{device:"desktop",data:t.desktop};break;case"tablet":if(t?.tablet?.type==="video")return{device:"tablet",data:t.tablet};if(!t?.tablet&&t?.desktop?.type==="video")return{device:"desktop",data:t.desktop};break;case"mobile":if(t?.mobile?.type==="video")return{device:"mobile",data:t.mobile};if(!t?.mobile&&t?.tablet?.type==="video")return{device:"tablet",data:t.tablet};if(!t?.mobile&&!t?.tablet?.type&&t?.desktop?.type==="video")return{device:"desktop",data:t.desktop}}},getVisibilityStyle=e=>e?Object.keys(e).filter(e=>["--d","--d-tablet","--d-mobile"].includes(e)).reduce((t,o)=>({...t,[o]:e?.[o]!=="none"?"flex":e?.[o]}),{}):{},getWidth=e=>{let t={},o=["desktop","mobile","tablet"];return o.forEach(o=>{let l=e?.[o];l&&(t={...t,[o]:"default"===l?"var(--g-ct-w, 1200px)":l})}),t},getStyleAspectRatio=(e,t)=>{let o=core.getAspectRatioGlobalSize(t),l=["desktop","mobile","tablet"];return l.forEach(l=>{let
|
|
1
|
+
"use strict";var core=require("@gem-sdk/core");const getDataVideoHeroBannerResponsive=(e,t)=>{switch(e){case"desktop":if(t?.desktop?.type==="video")return{device:"desktop",data:t.desktop};break;case"tablet":if(t?.tablet?.type==="video")return{device:"tablet",data:t.tablet};if(!t?.tablet&&t?.desktop?.type==="video")return{device:"desktop",data:t.desktop};break;case"mobile":if(t?.mobile?.type==="video")return{device:"mobile",data:t.mobile};if(!t?.mobile&&t?.tablet?.type==="video")return{device:"tablet",data:t.tablet};if(!t?.mobile&&!t?.tablet?.type&&t?.desktop?.type==="video")return{device:"desktop",data:t.desktop}}},getVisibilityStyle=e=>e?Object.keys(e).filter(e=>["--d","--d-tablet","--d-mobile"].includes(e)).reduce((t,o)=>({...t,[o]:e?.[o]!=="none"?"flex":e?.[o]}),{}):{},getWidth=e=>{let t={},o=["desktop","mobile","tablet"];return o.forEach(o=>{let l=e?.[o];l&&(t={...t,[o]:"default"===l?"var(--g-ct-w, 1200px)":l})}),t},getStyleAspectRatio=(e,t)=>{let o=core.getAspectRatioGlobalSize(t),l=["desktop","mobile","tablet"];return l.forEach(l=>{let s=core.getResponsiveValueByScreen(t,l),n=!!getDataVideoHeroBannerResponsive(l,e),i=s?.shape,a=s?.height,r="original"===i&&"fit-content"!==a,p=r&&n;p&&(o={...o,[l]:"16/9"})}),core.makeStyleResponsive("aspect",o)},getBgImage=e=>{if(!e)return{};let t={desktop:e?.desktop?.image,tablet:e?.tablet?.image,mobile:e?.mobile?.image};return t},getDisplayStyleByFitContent=(e,t)=>{let o={desktop:"none",tablet:"none",mobile:"none"},l=["desktop","mobile","tablet"];return l.forEach(l=>{let s=core.getResponsiveValueByScreen(e,l),n=!!getDataVideoHeroBannerResponsive(l,t),i=s?.shape,a=s?.height,r="original"===i&&"fit-content"!==a&&!n;o={...o,[l]:r?"block":"none"}}),core.makeStyleResponsive("d",o)},getClassForContentByFitContent=(e,t)=>{let o={desktop:!1,tablet:!1,mobile:!1},l=["desktop","mobile","tablet"];return l.forEach(l=>{let s=core.getResponsiveValueByScreen(e,l),n=!!getDataVideoHeroBannerResponsive(l,t),i=s?.shape,a=s?.height,r="original"===i&&"fit-content"!==a;o={...o,[l]:r&&!n}}),core.cls(o.desktop?"gp-absolute":"",o.tablet?"tablet:gp-absolute":"tablet:gp-relative",o.mobile?"mobile:gp-absolute":"mobile:gp-relative")},getClassForStretchContent=e=>{let t={desktop:"none",tablet:"none",mobile:"none"},o=["desktop","mobile","tablet"];return o.forEach(o=>{let l=core.getResponsiveValueByScreen(e,o);t={...t,[o]:l}}),core.cls("space-between"===t.desktop?"[&>*>*]:!gp-justify-between":"","space-between"===t.tablet?"tablet:[&>*>*]:!gp-justify-between ":`tablet:[&>*>*]:!gp-justify-${e?.tablet}`,"space-between"===t.mobile?"mobile:[&>*>*]:!gp-justify-between ":`mobile:[&>*>*]:!gp-justify-${e?.mobile}`)},getClassContentPosition=e=>{let t={center:"center",top:"start",bottom:"end","space-between":"between"},o=e.desktop||"center",l=e.tablet||o,s=e.mobile||l;return{[`!gp-justify-${t[o||"center"]}`]:!!o,[`tablet:!gp-justify-${t[l||"center"]}`]:!!l,[`mobile:!gp-justify-${t[s||"center"]}`]:!!s}},getResponsiveSetting=e=>{let t=e.desktop,o=e.tablet?e.tablet:t,l=e.mobile?e.mobile:o;return{desktop:t,tablet:o,mobile:l}},getContentPosition=(e,t,o)=>{let l={},s=["desktop","tablet","mobile"];return s.map(s=>{let n=core.getResponsiveValueByScreen(e,s),i=core.getResponsiveValueByScreen(t,s),a=core.getResponsiveValueByScreen(o,s);l={...l,[s]:1>=(n?.cols?.length||1)?i:a}}),l},getClassSpaceBetween=(e,t,o)=>{let l=getResponsiveSetting(e),s=getResponsiveSetting(t),n=getResponsiveSetting(o),i=1>=(l?.desktop?.cols?.length||1)?s.desktop:n.desktop,a=1>=(l?.tablet?.cols?.length||1)?s.tablet:n.tablet,r=1>=(l?.mobile?.cols?.length||1)?s.mobile:n.mobile;return{"gp-h-full !gp-content-stretch [&>*]:!gp-justify-between":l.desktop?.cols?.length===1&&"space-between"===i,"!gp-content-stretch [&>*]:!gp-justify-start":l.desktop?.cols?.length===1&&"top"===i,"tablet:gp-h-full tablet:!gp-content-stretch tablet:[&>*]:!gp-justify-between":l.tablet?.cols?.length===1&&"space-between"===a,"tablet:!gp-content-stretch tablet:[&>*]:!gp-justify-start":l.tablet?.cols?.length===1&&"top"===a,"tablet:!gp-content-stretch tablet:[&>*]:!gp-justify-center":l.tablet?.cols?.length===1&&"center"===a,"tablet:!gp-content-stretch tablet:[&>*]:!gp-justify-end":l.tablet?.cols?.length===1&&"bottom"===a,"mobile:gp-h-full mobile:!gp-content-stretch mobile:[&>*]:!gp-justify-between":l.mobile?.cols?.length===1&&"space-between"===r,"mobile:!gp-content-stretch mobile:[&>*]:!gp-justify-start":l.mobile?.cols?.length===1&&"top"===r,"mobile:!gp-content-stretch mobile:[&>*]:!gp-justify-center":l.mobile?.cols?.length===1&&"center"===r,"mobile:!gp-content-stretch mobile:[&>*]:!gp-justify-end":l.mobile?.cols?.length===1&&"bottom"===r}},getClassAlignBanner=e=>({"!gp-self-start":"left"===e.desktop,"!gp-self-center":"center"===e.desktop,"!gp-self-end":"right"===e.desktop,"tablet:!gp-self-start":"left"===e.tablet,"tablet:!gp-self-center":"center"===e.tablet,"tablet:!gp-self-end":"right"===e.tablet,"mobile:!gp-self-start":"left"===e.mobile,"mobile:!gp-self-center":"center"===e.mobile,"mobile:!gp-self-end":"right"===e.mobile}),getClassJustify=e=>({"!gp-justify-start":"left"===e.desktop,"!gp-justify-center":"center"===e.desktop,"!gp-justify-end":"right"===e.desktop,"tablet:!gp-justify-start":"left"===e.tablet,"tablet:!gp-justify-center":"center"===e.tablet,"tablet:!gp-justify-end":"right"===e.tablet,"mobile:!gp-justify-start":"left"===e.mobile,"mobile:!gp-justify-center":"center"===e.mobile,"mobile:!gp-justify-end":"right"===e.mobile}),mapContentPositionToHorizontal=e=>{let t={};for(let o in e)"top"===e[o]?t[o]="start":"bottom"===e[o]?t[o]="end":t[o]="center";return t};exports.getBgImage=getBgImage,exports.getClassAlignBanner=getClassAlignBanner,exports.getClassContentPosition=getClassContentPosition,exports.getClassForContentByFitContent=getClassForContentByFitContent,exports.getClassForStretchContent=getClassForStretchContent,exports.getClassJustify=getClassJustify,exports.getClassSpaceBetween=getClassSpaceBetween,exports.getContentPosition=getContentPosition,exports.getDataVideoHeroBannerResponsive=getDataVideoHeroBannerResponsive,exports.getDisplayStyleByFitContent=getDisplayStyleByFitContent,exports.getResponsiveSetting=getResponsiveSetting,exports.getStyleAspectRatio=getStyleAspectRatio,exports.getVisibilityStyle=getVisibilityStyle,exports.getWidth=getWidth,exports.mapContentPositionToHorizontal=mapContentPositionToHorizontal;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),React=require("react"),core=require("@gem-sdk/core"),Head=require("next/head");const EMPTY_TAGS=["SCRIPT"],ALLOWED_EMPTY_TAG=["EMBED","IMG","INPUT","PICTURE","VIDEO"],CSSCode=({setting:e,style:t,advanced:r,builderAttrs:s,builderProps:i,children:n})=>{let{editorData:a}=r,o=core.useEditorMode(),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),React=require("react"),core=require("@gem-sdk/core"),Head=require("next/head");const EMPTY_TAGS=["SCRIPT"],ALLOWED_EMPTY_TAG=["EMBED","IMG","INPUT","PICTURE","VIDEO"],CSSCode=({setting:e,style:t,advanced:r,builderAttrs:s,builderProps:i,children:n})=>{let{editorData:a}=r,o=core.useEditorMode(),c=(e,t,r)=>`<p class="gp-text-center gp-text-sm gp-font-[sans-serif] gp-py-4 gp-leading-[21px] gp-text-[#676767]">${e||t||r?"Preview or Publish the page to see the content.":"Custom Code"}</p>`,l=(e,t)=>{let r=document.createElement("div");r.innerHTML=e;let s=r.childNodes,i=!1,n=!0;if(s.length>0){s.forEach(e=>{EMPTY_TAGS.includes(e?.tagName)&&(i=!0,e?.remove())});let e=r.childNodes;e.forEach(e=>{if(ALLOWED_EMPTY_TAG.includes(e?.tagName))n=!1;else if(e?.nodeName!=="#comment"){let t=e?.textContent?.trim();t&&(n=!1)}})}return n&&(n=!r?.textContent?.trim()),t&&(i=!0),{empty:n,hasScript:i}},d=React.useMemo(()=>{if("edit"===o){let{empty:e,hasScript:t}=l(a?.html||"",a?.javascript||"");if(t)return`<p class="gp-text-center gp-text-sm gp-font-[sans-serif] gp-py-4 gp-leading-[21px] gp-text-[#676767] gp-bg-[#eee]">
|
|
2
2
|
Publish the page to see the content.
|
|
3
|
-
</p>`;if(e)return
|
|
3
|
+
</p>`;if(e)return c(a?.css||"",a?.javascript||"",a?.html||"")}return a?.html?.trim()},[a?.css,a?.html,a?.javascript,o]),m=e=>{if(2===e.detail){let e=new CustomEvent("editor:toolbar:open-custom-code",{bubbles:!0});window.dispatchEvent(e)}};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Head,{children:!!e?.preloadBgImage&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!!e?.background?.desktop?.image?.src&&jsxRuntime.jsx("link",{rel:"preload",href:e.background.desktop.image.src,as:"image"}),!!e?.background?.tablet?.image?.src&&jsxRuntime.jsx("link",{rel:"preload",href:e.background.tablet.image.src,as:"image"}),!!e?.background?.mobile?.image?.src&&jsxRuntime.jsx("link",{rel:"preload",href:e.background.mobile.image.src,as:"image"})]})}),jsxRuntime.jsxs("div",{onClick:m,"aria-hidden":"true",style:{...t,...core.makeStyleResponsive("ta",e?.align),...core.getStyleBackgroundByDevice(e?.background)},...s,className:core.cls(i?.uid,{"gp-sr-only":"edit"!==o&&!a?.html},"gp-cursor-pointer"),children:[jsxRuntime.jsx("div",{dangerouslySetInnerHTML:{__html:d||""}}),n]})]})};exports.default=CSSCode;
|
|
@@ -20,4 +20,25 @@
|
|
|
20
20
|
<rect x="66.6665" y="33" width="29.3333" height="6" rx="3" fill="#494949"/>
|
|
21
21
|
<rect x="72.333" y="42" width="18" height="6" rx="3" fill="#494949"/>
|
|
22
22
|
</svg>
|
|
23
|
-
`},components:[{tag:"ProductList",label:"Product List",settings:{columns:{desktop:4,tablet:2,mobile:1}},advanced:{"spacing-setting":{padding:{top:"var(--g-s-s)",bottom:"var(--g-s-s)"}}},childrens:[{tag:"Row",label:"Row",settings:{layout:{desktop:{cols:[12],display:"fill"}}},styles:{verticalGutter:{desktop:"var(--g-s-2xl)"}},advanced:{"spacing-setting":{padding:{top:"var(--g-s-s)",left:"var(--g-s-s)",right:"var(--g-s-s)",bottom:"var(--g-s-s)"}},border:{normal:{border:"solid",borderLabel:"Style 1",borderType:"style-1",color:"line-1",isCustom:!1,width:"1px 1px 1px 1px"}},rounded:{normal:{bbtrr:"6px",bblr:"6px",bbrr:"6px",btlr:"6px",radiusType:"medium"}}},childrens:[{tag:"Col",label:"Block",settings:{fullHeight:!0},styles:{justifyContent:{desktop:"normal"},alignItem:{desktop:"normal"},order:{desktop:0}},childrens:[{tag:"ProductImagesV2",label:"Product Images",settings:{ftClickOpenLightBox:{desktop:"product-link"}},styles:{position:{desktop:"only-feature"}},advanced:{"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}}}},{tag:"ProductTitle",label:"Product Title",settings:{htmlTag:"h2"},styles:{typo:{type:"subheading-2"},textAlign:{desktop:"left"},hasLineClamp:!0,lineClamp:{desktop:2,mobile:0},color:{normal:"text-1"},hasTextShadow:{normal:!1},textShadow:{normal:{type:"shadow-1"}},transform:"default"},advanced:{"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}}}},{tag:"Row",label:"Row",settings:{layout:{desktop:{cols:[6,6],display:"fit"}}},styles:{verticalGutter:{desktop:"16px"},background:{desktop:{type:"color",color:"transparent",image:{src:"",width:0,height:0},size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll"}},fullWidth:{desktop:!0},width:{desktop:"100%"}},advanced:{"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}}},childrens:[{tag:"Col",label:"Block",settings:{},styles:{justifyContent:{desktop:"center"},alignItem:{desktop:"normal"},order:{desktop:0}},advanced:{},childrens:[{tag:"ProductPrice",label:"Product Price",styles:{priceType:"regular",typo:{type:"subheading-2"},color:{normal:"text-1"},lineColor:"highlight",textAlign:{desktop:"left"},hasTextShadow:{normal:!1},textShadow:{normal:{type:"shadow-1"}},lineThrough:!0,thickness:1},advanced:{}}]},{tag:"Col",label:"Block",settings:{},styles:{justifyContent:{desktop:"center"},alignItem:{desktop:"normal"},order:{desktop:0}},advanced:{},childrens:[{tag:"ProductPrice",label:"Product Price",styles:{priceType:"compare",typo:{type:"subheading-2"},color:{normal:"text-1"},lineColor:"text-1",textAlign:{desktop:"left"},hasTextShadow:{normal:!1},textShadow:{normal:{type:"shadow-1"}},lineThrough:!0,thickness:1},advanced:{}}]}]},{tag:"ProductVariants",advanced:{"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}}}},{tag:"ProductButton",label:"Product Cart Button",advanced:{"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}}},settings:{actionEffect:"continue-shopping",label:"Add To cart",outOfStockLabel:"Out Of Stock",successMessage:"Add product to cart successfully",errorMessage:"Cannot add product to cart",iconVisible:!1,iconSvg:'<svg height="100%" width="100%" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor"><path fill="currentColor" strokeLinecap="round" strokeLinejoin="round" fill="currentColor" d="M448 128.001H362.667C362.667 69.1207 314.88 21.334 256 21.334C197.12 21.334 149.333 69.1207 149.333 128.001H64V469.334H448V128.001ZM256 64.0007C291.413 64.0007 320 92.5873 320 128.001H192C192 92.5873 220.587 64.0007 256 64.0007ZM256 277.334C197.12 277.334 149.333 229.547 149.333 170.667H192C192 206.081 220.587 234.667 256 234.667C291.413 234.667 320 206.081 320 170.667H362.667C362.667 229.547 314.88 277.334 256 277.334Z" /></svg>',iconAlign:"left"},styles:{globalSize:{desktop:{width:"100%"}}}}]}]}]}]}
|
|
23
|
+
`},components:[{tag:"ProductList",label:"Product List",settings:{columns:{desktop:4,tablet:2,mobile:1}},advanced:{"spacing-setting":{padding:{top:"var(--g-s-s)",bottom:"var(--g-s-s)"}}},childrens:[{tag:"Row",label:"Row",settings:{layout:{desktop:{cols:[12],display:"fill"}}},styles:{verticalGutter:{desktop:"var(--g-s-2xl)"}},advanced:{"spacing-setting":{padding:{top:"var(--g-s-s)",left:"var(--g-s-s)",right:"var(--g-s-s)",bottom:"var(--g-s-s)"}},border:{normal:{border:"solid",borderLabel:"Style 1",borderType:"style-1",color:"line-1",isCustom:!1,width:"1px 1px 1px 1px"}},rounded:{normal:{bbtrr:"6px",bblr:"6px",bbrr:"6px",btlr:"6px",radiusType:"medium"}}},childrens:[{tag:"Col",label:"Block",settings:{fullHeight:!0},styles:{justifyContent:{desktop:"normal"},alignItem:{desktop:"normal"},order:{desktop:0}},childrens:[{tag:"ProductImagesV2",label:"Product Images",settings:{ftClickOpenLightBox:{desktop:"product-link"}},styles:{position:{desktop:"only-feature"}},advanced:{"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}}}},{tag:"ProductTitle",label:"Product Title",settings:{htmlTag:"h2"},styles:{typo:{type:"subheading-2"},textAlign:{desktop:"left"},hasLineClamp:!0,lineClamp:{desktop:2,mobile:0},color:{normal:"text-1"},hasTextShadow:{normal:!1},textShadow:{normal:{type:"shadow-1"}},transform:"default"},advanced:{"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}}}},{tag:"Row",label:"Row",settings:{layout:{desktop:{cols:[6,6],display:"fit"}}},styles:{verticalGutter:{desktop:"16px"},background:{desktop:{type:"color",color:"transparent",image:{src:"",width:0,height:0},size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll"}},fullWidth:{desktop:!0},width:{desktop:"100%"}},advanced:{"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}}},childrens:[{tag:"Col",label:"Block",settings:{},styles:{justifyContent:{desktop:"center"},alignItem:{desktop:"normal"},order:{desktop:0}},advanced:{},childrens:[{tag:"ProductPrice",label:"Product Price",styles:{priceType:"regular",typo:{type:"subheading-2"},color:{normal:"text-1"},lineColor:"highlight",textAlign:{desktop:"left"},hasTextShadow:{normal:!1},textShadow:{normal:{type:"shadow-1"}},lineThrough:!0,thickness:1},advanced:{}}]},{tag:"Col",label:"Block",settings:{},styles:{justifyContent:{desktop:"center"},alignItem:{desktop:"normal"},order:{desktop:0}},advanced:{},childrens:[{tag:"ProductPrice",label:"Product Price",styles:{priceType:"compare",typo:{type:"subheading-2"},color:{normal:"text-1"},lineColor:"text-1",textAlign:{desktop:"left"},hasTextShadow:{normal:!1},textShadow:{normal:{type:"shadow-1"}},lineThrough:!0,thickness:1},advanced:{}}]}]},{tag:"ProductVariants",advanced:{"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}}}},{tag:"ProductButton",label:"Product Cart Button",advanced:{"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}}},settings:{actionEffect:"continue-shopping",label:"Add To cart",outOfStockLabel:"Out Of Stock",successMessage:"Add product to cart successfully",errorMessage:"Cannot add product to cart",iconVisible:!1,iconSvg:'<svg height="100%" width="100%" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor"><path fill="currentColor" strokeLinecap="round" strokeLinejoin="round" fill="currentColor" d="M448 128.001H362.667C362.667 69.1207 314.88 21.334 256 21.334C197.12 21.334 149.333 69.1207 149.333 128.001H64V469.334H448V128.001ZM256 64.0007C291.413 64.0007 320 92.5873 320 128.001H192C192 92.5873 220.587 64.0007 256 64.0007ZM256 277.334C197.12 277.334 149.333 229.547 149.333 170.667H192C192 206.081 220.587 234.667 256 234.667C291.413 234.667 320 206.081 320 170.667H362.667C362.667 229.547 314.88 277.334 256 277.334Z" /></svg>',iconAlign:"left"},styles:{globalSize:{desktop:{width:"100%"}}}}]}]}]}]},{id:"related-product",name:{en:"Related Products"},icon:{desktop:`
|
|
24
|
+
<svg width="126" height="80" viewBox="0 0 126 80" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
25
|
+
<g clip-path="url(#clip0_19807_27615)">
|
|
26
|
+
<path d="M0 0H126V80H0V0Z" fill="#212121"/>
|
|
27
|
+
<rect x="15" y="29" width="29.3333" height="30" rx="3" fill="#424242"/>
|
|
28
|
+
<path d="M23.6667 39.4299L27.6628 38.0233C27.6628 38.0233 28.1486 39.1703 29.6707 39.1703C31.1928 39.1703 31.6734 38 31.6734 38L35.6667 39.4299L35.0021 42.957H32.9981V49.3355H26.3268V42.9549H24.3328L23.6667 39.4299Z" fill="#F9F9F9"/>
|
|
29
|
+
<rect x="20.6667" y="62" width="18" height="6" rx="3" fill="#424242"/>
|
|
30
|
+
<rect x="48.3333" y="29" width="29.3333" height="30" rx="3" fill="#424242"/>
|
|
31
|
+
<path d="M57 39.4299L60.996 38.0233C60.996 38.0233 61.4819 39.1703 63.004 39.1703C64.5261 39.1703 65.0066 38 65.0066 38L69 39.4299L68.3353 42.957H66.3313V49.3355H59.66V42.9549H57.666L57 39.4299Z" fill="#F9F9F9"/>
|
|
32
|
+
<rect x="54" y="62" width="18" height="6" rx="3" fill="#424242"/>
|
|
33
|
+
<rect x="81.6667" y="29" width="29.3333" height="30" rx="3" fill="#424242"/>
|
|
34
|
+
<path d="M90.3335 39.4299L94.3295 38.0233C94.3295 38.0233 94.8154 39.1703 96.3375 39.1703C97.8596 39.1703 98.3401 38 98.3401 38L102.333 39.4299L101.669 42.957H99.6648V49.3355H92.9935V42.9549H90.9995L90.3335 39.4299Z" fill="#F9F9F9"/>
|
|
35
|
+
<rect x="87.3335" y="62" width="18" height="6" rx="3" fill="#424242"/>
|
|
36
|
+
<path d="M45.6887 20V12.7273H48.281C48.8444 12.7273 49.312 12.8243 49.6837 13.0185C50.0577 13.2126 50.3371 13.4813 50.5218 13.8246C50.7064 14.1655 50.7987 14.5597 50.7987 15.0071C50.7987 15.4522 50.7052 15.844 50.5182 16.1825C50.3335 16.5187 50.0542 16.7803 49.6801 16.9673C49.3084 17.1544 48.8409 17.2479 48.2774 17.2479H46.3137V16.3033H48.178C48.5331 16.3033 48.8219 16.2524 49.0445 16.1506C49.2694 16.0488 49.4339 15.9008 49.5381 15.7067C49.6423 15.5125 49.6943 15.2794 49.6943 15.0071C49.6943 14.7325 49.6411 14.4946 49.5345 14.2933C49.4304 14.0921 49.2658 13.9382 49.0409 13.8317C48.8184 13.7228 48.526 13.6683 48.1638 13.6683H46.786V20H45.6887ZM49.2789 16.7188L51.0757 20H49.8257L48.0644 16.7188H49.2789ZM54.3312 20.1101C53.7938 20.1101 53.331 19.9953 52.9427 19.7656C52.5568 19.5336 52.2586 19.2081 52.0479 18.7891C51.8395 18.3677 51.7354 17.8741 51.7354 17.3082C51.7354 16.7495 51.8395 16.2571 52.0479 15.831C52.2586 15.4048 52.5521 15.0722 52.9285 14.8331C53.3073 14.594 53.75 14.4744 54.2567 14.4744C54.5644 14.4744 54.8627 14.5253 55.1515 14.6271C55.4404 14.7289 55.6996 14.8887 55.9292 15.1065C56.1589 15.3243 56.34 15.6072 56.4726 15.9553C56.6051 16.3009 56.6714 16.7211 56.6714 17.2159V17.5923H52.3355V16.7969H55.6309C55.6309 16.5175 55.5741 16.2701 55.4605 16.0547C55.3469 15.8369 55.1871 15.6652 54.9811 15.5398C54.7775 15.4143 54.5384 15.3516 54.2638 15.3516C53.9655 15.3516 53.705 15.425 53.4825 15.5717C53.2623 15.7161 53.0919 15.9055 52.9711 16.1399C52.8528 16.3719 52.7936 16.6241 52.7936 16.8963V17.5178C52.7936 17.8823 52.8575 18.1925 52.9854 18.4482C53.1156 18.7038 53.2967 18.8991 53.5287 19.0341C53.7607 19.1667 54.0318 19.233 54.3419 19.233C54.5431 19.233 54.7266 19.2045 54.8923 19.1477C55.058 19.0885 55.2013 19.0009 55.322 18.8849C55.4427 18.7689 55.5351 18.6257 55.599 18.4553L56.604 18.6364C56.5235 18.9323 56.3791 19.1915 56.1707 19.4141C55.9648 19.6342 55.7055 19.8059 55.393 19.929C55.0829 20.0497 54.729 20.1101 54.3312 20.1101ZM58.9113 12.7273V20H57.8495V12.7273H58.9113ZM61.9271 20.1207C61.5815 20.1207 61.269 20.0568 60.9896 19.929C60.7103 19.7988 60.4889 19.6106 60.3256 19.3643C60.1646 19.1181 60.0841 18.8163 60.0841 18.4588C60.0841 18.151 60.1433 17.8977 60.2616 17.6989C60.38 17.5 60.5398 17.3426 60.741 17.2266C60.9423 17.1106 61.1672 17.023 61.4157 16.9638C61.6643 16.9046 61.9176 16.8596 62.1757 16.8288C62.5024 16.791 62.7675 16.7602 62.9711 16.7365C63.1747 16.7105 63.3227 16.669 63.415 16.6122C63.5074 16.5554 63.5535 16.4631 63.5535 16.3352V16.3104C63.5535 16.0002 63.4659 15.7599 63.2907 15.5895C63.1179 15.419 62.8599 15.3338 62.5166 15.3338C62.1591 15.3338 61.8774 15.4131 61.6714 15.5717C61.4678 15.728 61.327 15.902 61.2488 16.0938L60.251 15.8665C60.3693 15.535 60.5422 15.2675 60.7694 15.0639C60.9991 14.858 61.2631 14.7088 61.5613 14.6165C61.8596 14.5218 62.1733 14.4744 62.5024 14.4744C62.7202 14.4744 62.951 14.5005 63.1949 14.5526C63.4411 14.6023 63.6707 14.6946 63.8838 14.8295C64.0992 14.9645 64.2756 15.1574 64.4129 15.4084C64.5502 15.657 64.6189 15.9801 64.6189 16.3778V20H63.5819V19.2543H63.5393C63.4707 19.3916 63.3677 19.5265 63.2304 19.6591C63.0931 19.7917 62.9167 19.9018 62.7013 19.9893C62.4858 20.0769 62.2278 20.1207 61.9271 20.1207ZM62.1579 19.2685C62.4515 19.2685 62.7024 19.2105 62.9108 19.0945C63.1215 18.9785 63.2813 18.8269 63.3902 18.6399C63.5015 18.4505 63.5571 18.2481 63.5571 18.0327V17.3295C63.5192 17.3674 63.4458 17.4029 63.3369 17.4361C63.2304 17.4669 63.1085 17.4941 62.9711 17.5178C62.8338 17.5391 62.7001 17.5592 62.5699 17.5781C62.4397 17.5947 62.3308 17.6089 62.2432 17.6207C62.0372 17.6468 61.849 17.6906 61.6785 17.7521C61.5104 17.8137 61.3755 17.9025 61.2737 18.0185C61.1743 18.1321 61.1246 18.2836 61.1246 18.473C61.1246 18.7358 61.2216 18.9347 61.4157 19.0696C61.6099 19.2022 61.8573 19.2685 62.1579 19.2685ZM68.5793 14.5455V15.3977H65.5999V14.5455H68.5793ZM66.3989 13.2386H67.4607V18.3984C67.4607 18.6044 67.4914 18.7595 67.553 18.8636C67.6146 18.9654 67.6939 19.0353 67.7909 19.0732C67.8904 19.1087 67.9981 19.1264 68.1141 19.1264C68.1993 19.1264 68.2739 19.1205 68.3378 19.1087C68.4017 19.0968 68.4514 19.0874 68.4869 19.0803L68.6787 19.9574C68.6172 19.9811 68.5296 20.0047 68.4159 20.0284C68.3023 20.0545 68.1602 20.0687 67.9898 20.071C67.7104 20.0758 67.45 20.026 67.2085 19.9219C66.9671 19.8177 66.7718 19.6567 66.6226 19.4389C66.4735 19.2211 66.3989 18.9477 66.3989 18.6186V13.2386ZM72.0461 20.1101C71.5087 20.1101 71.0458 19.9953 70.6576 19.7656C70.2717 19.5336 69.9734 19.2081 69.7627 18.7891C69.5544 18.3677 69.4502 17.8741 69.4502 17.3082C69.4502 16.7495 69.5544 16.2571 69.7627 15.831C69.9734 15.4048 70.267 15.0722 70.6434 14.8331C71.0222 14.594 71.4649 14.4744 71.9715 14.4744C72.2793 14.4744 72.5776 14.5253 72.8664 14.6271C73.1552 14.7289 73.4144 14.8887 73.6441 15.1065C73.8737 15.3243 74.0548 15.6072 74.1874 15.9553C74.32 16.3009 74.3863 16.7211 74.3863 17.2159V17.5923H70.0503V16.7969H73.3458C73.3458 16.5175 73.289 16.2701 73.1753 16.0547C73.0617 15.8369 72.9019 15.6652 72.6959 15.5398C72.4923 15.4143 72.2532 15.3516 71.9786 15.3516C71.6803 15.3516 71.4199 15.425 71.1974 15.5717C70.9772 15.7161 70.8067 15.9055 70.686 16.1399C70.5676 16.3719 70.5084 16.6241 70.5084 16.8963V17.5178C70.5084 17.8823 70.5724 18.1925 70.7002 18.4482C70.8304 18.7038 71.0115 18.8991 71.2435 19.0341C71.4755 19.1667 71.7466 19.233 72.0567 19.233C72.258 19.233 72.4414 19.2045 72.6072 19.1477C72.7729 19.0885 72.9161 19.0009 73.0368 18.8849C73.1576 18.7689 73.2499 18.6257 73.3138 18.4553L74.3188 18.6364C74.2383 18.9323 74.0939 19.1915 73.8856 19.4141C73.6796 19.6342 73.4204 19.8059 73.1079 19.929C72.7977 20.0497 72.4438 20.1101 72.0461 20.1101ZM77.6063 20.1065C77.1659 20.1065 76.7729 19.9941 76.4273 19.7692C76.084 19.5419 75.8141 19.2187 75.6176 18.7997C75.4235 18.3783 75.3264 17.8729 75.3264 17.2834C75.3264 16.6939 75.4247 16.1896 75.6212 15.7706C75.82 15.3516 76.0923 15.0308 76.4379 14.8082C76.7836 14.5857 77.1754 14.4744 77.6134 14.4744C77.9519 14.4744 78.2242 14.5312 78.4301 14.6449C78.6385 14.7562 78.7994 14.8864 78.9131 15.0355C79.0291 15.1847 79.1191 15.3161 79.183 15.4297H79.2469V12.7273H80.3087V20H79.2718V19.1513H79.183C79.1191 19.2673 79.0267 19.3999 78.906 19.549C78.7876 19.6982 78.6243 19.8284 78.4159 19.9396C78.2076 20.0509 77.9377 20.1065 77.6063 20.1065ZM77.8406 19.201C78.146 19.201 78.4041 19.1205 78.6148 18.9595C78.8279 18.7962 78.9888 18.5701 79.0977 18.2812C79.209 17.9924 79.2646 17.6562 79.2646 17.2727C79.2646 16.8939 79.2102 16.5625 79.1013 16.2784C78.9924 15.9943 78.8326 15.773 78.6219 15.6143C78.4112 15.4557 78.1508 15.3764 77.8406 15.3764C77.521 15.3764 77.2547 15.4593 77.0416 15.625C76.8286 15.7907 76.6676 16.0168 76.5587 16.3033C76.4521 16.5897 76.3989 16.9129 76.3989 17.2727C76.3989 17.6373 76.4533 17.9652 76.5622 18.2564C76.6711 18.5476 76.8321 18.7784 77.0452 18.9489C77.2606 19.117 77.5258 19.201 77.8406 19.201Z" fill="#AAAAAA"/>
|
|
37
|
+
</g>
|
|
38
|
+
<defs>
|
|
39
|
+
<clipPath id="clip0_19807_27615">
|
|
40
|
+
<path d="M0 3C0 1.34315 1.34315 0 3 0H123C124.657 0 126 1.34315 126 3V77C126 78.6569 124.657 80 123 80H3C1.34315 80 0 78.6569 0 77V3Z" fill="white"/>
|
|
41
|
+
</clipPath>
|
|
42
|
+
</defs>
|
|
43
|
+
</svg>
|
|
44
|
+
`},components:[{tag:"ProductList",label:"Related Products",settings:{productSetting:{productSrc:"RelatedProduct"},columns:{desktop:4,tablet:2,mobile:1}},advanced:{"spacing-setting":{padding:{top:"var(--g-s-s)",bottom:"var(--g-s-s)"}}},childrens:[{tag:"Row",label:"Row",settings:{layout:{desktop:{cols:[12],display:"fill"}}},styles:{verticalGutter:{desktop:"var(--g-s-2xl)"}},advanced:{"spacing-setting":{padding:{top:"var(--g-s-s)",left:"var(--g-s-s)",right:"var(--g-s-s)",bottom:"var(--g-s-s)"}},border:{normal:{border:"solid",borderLabel:"Style 1",borderType:"style-1",color:"line-1",isCustom:!1,width:"1px 1px 1px 1px"}},rounded:{normal:{bbtrr:"6px",bblr:"6px",bbrr:"6px",btlr:"6px",radiusType:"medium"}}},childrens:[{tag:"Col",label:"Block",settings:{fullHeight:!0},styles:{justifyContent:{desktop:"normal"},alignItem:{desktop:"normal"},order:{desktop:0}},childrens:[{tag:"ProductImagesV2",label:"Product Images",settings:{ftClickOpenLightBox:{desktop:"product-link"}},styles:{position:{desktop:"only-feature"}},advanced:{"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}}}},{tag:"ProductTitle",label:"Product Title",settings:{htmlTag:"h2"},styles:{typo:{type:"subheading-2"},textAlign:{desktop:"left"},hasLineClamp:!0,lineClamp:{desktop:2,mobile:0},color:{normal:"text-1"},hasTextShadow:{normal:!1},textShadow:{normal:{type:"shadow-1"}},transform:"default"},advanced:{"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}}}},{tag:"Row",label:"Row",settings:{layout:{desktop:{cols:[6,6],display:"fit"}}},styles:{verticalGutter:{desktop:"16px"},background:{desktop:{type:"color",color:"transparent",image:{src:"",width:0,height:0},size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll"}},fullWidth:{desktop:!0},width:{desktop:"100%"}},advanced:{"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}}},childrens:[{tag:"Col",label:"Block",settings:{},styles:{justifyContent:{desktop:"center"},alignItem:{desktop:"normal"},order:{desktop:0}},advanced:{},childrens:[{tag:"ProductPrice",label:"Product Price",styles:{priceType:"regular",typo:{type:"subheading-2"},color:{normal:"text-1"},lineColor:"highlight",textAlign:{desktop:"left"},hasTextShadow:{normal:!1},textShadow:{normal:{type:"shadow-1"}},lineThrough:!0,thickness:1},advanced:{}}]},{tag:"Col",label:"Block",settings:{},styles:{justifyContent:{desktop:"center"},alignItem:{desktop:"normal"},order:{desktop:0}},advanced:{},childrens:[{tag:"ProductPrice",label:"Product Price",styles:{priceType:"compare",typo:{type:"subheading-2"},color:{normal:"text-1"},lineColor:"text-1",textAlign:{desktop:"left"},hasTextShadow:{normal:!1},textShadow:{normal:{type:"shadow-1"}},lineThrough:!0,thickness:1},advanced:{}}]}]},{tag:"ProductVariants",advanced:{"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}}}},{tag:"ProductButton",label:"Product Cart Button",advanced:{"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}}},settings:{actionEffect:"continue-shopping",label:"Add To cart",outOfStockLabel:"Out Of Stock",successMessage:"Add product to cart successfully",errorMessage:"Cannot add product to cart",iconVisible:!1,iconSvg:'<svg height="100%" width="100%" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor"><path fill="currentColor" strokeLinecap="round" strokeLinejoin="round" fill="currentColor" d="M448 128.001H362.667C362.667 69.1207 314.88 21.334 256 21.334C197.12 21.334 149.333 69.1207 149.333 128.001H64V469.334H448V128.001ZM256 64.0007C291.413 64.0007 320 92.5873 320 128.001H192C192 92.5873 220.587 64.0007 256 64.0007ZM256 277.334C197.12 277.334 149.333 229.547 149.333 170.667H192C192 206.081 220.587 234.667 256 234.667C291.413 234.667 320 206.081 320 170.667H362.667C362.667 229.547 314.88 277.334 256 277.334Z" /></svg>',iconAlign:"left"},styles:{globalSize:{desktop:{width:"100%"}}}}]}]}]}]}],locales:{editor:{en:{product_not_found:"Product Not Found!",no_products_found:"No products found!",no_related_products:"No related products!"}}}};exports.default=config;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const config={tag:"
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const config={tag:"ProductVendor",label:"Product Vendor",icon:`
|
|
2
2
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
3
|
<path d="M15.6 2.09659C15.6 1.7671 15.8518 1.5 16.1625 1.5H20.4375C20.7482 1.5 21 1.7671 21 2.09659V2.8125C21 3.14199 20.7482 3.40909 20.4375 3.40909H20.4172C20.2902 3.46746 20.1489 3.5 20 3.5H19.2051V20.5H20C20.1489 20.5 20.2902 20.5325 20.4172 20.5909H20.4375C20.7482 20.5909 21 20.858 21 21.1875V21.9034C21 22.2329 20.7482 22.5 20.4375 22.5H16.1625C15.8518 22.5 15.6 22.2329 15.6 21.9034V21.1875C15.6 20.858 15.8518 20.5909 16.1625 20.5909H16.1873C16.3143 20.5325 16.4556 20.5 16.6045 20.5H17.4V12H6.6V20.5H7.39551C7.54441 20.5 7.68571 20.5325 7.81268 20.5909H7.8375C8.14816 20.5909 8.4 20.858 8.4 21.1875V21.9034C8.4 22.2329 8.14816 22.5 7.8375 22.5H3.5625C3.25184 22.5 3 22.2329 3 21.9034V21.1875C3 20.858 3.25184 20.5909 3.5625 20.5909H3.58282C3.7098 20.5325 3.8511 20.5 4 20.5H4.79863L4.79863 3.5H4C3.8511 3.5 3.7098 3.46746 3.58282 3.40909H3.5625C3.25184 3.40909 3 3.14199 3 2.8125V2.09659C3 1.7671 3.25184 1.5 3.5625 1.5H7.8375C8.14816 1.5 8.4 1.7671 8.4 2.09659V2.8125C8.4 3.14199 8.14816 3.40909 7.8375 3.40909H7.81269C7.68571 3.46746 7.54441 3.5 7.39551 3.5H6.6V9.98779H17.4V3.5H16.6045C16.4556 3.5 16.3143 3.46746 16.1873 3.40909H16.1625C15.8518 3.40909 15.6 3.14199 15.6 2.8125V2.09659Z" fill="white"/>
|
|
4
4
|
</svg>
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import{makeStyleResponsive as e,getHeightByShapeGlobalSize as t,makeStyleWithDefault as o,getWidthByShapeGlobalSize as r,makeFixedBgAttachment as l,getPaddingGlobalSize as a,removeUndefinedValuesFromObject as p,template as s,
|
|
2
|
-
<div class=
|
|
1
|
+
import{makeStyleResponsive as e,getHeightByShapeGlobalSize as t,makeStyleWithDefault as o,getWidthByShapeGlobalSize as r,makeFixedBgAttachment as l,getPaddingGlobalSize as a,removeUndefinedValuesFromObject as p,template as s,cls as i,dataStringify as g,makeStyle as n,getSingleColorVariable as c,getRadiusStyleActiveState as d,getStyleShadow as u,getAspectRatioGlobalSize as b,getStyleBackgroundByDevice as f,getGradientBgrStyleByDevice as v,RenderIf as h,getGlobalColorStateClass as m,getGlobalColorStateStyle as w,makeStyleState as $,isLocalEnv as y,baseAssetURL as x}from"@gem-sdk/core";import k from"../../../grid/components/Row.liquid.js";import A from"../../../image/components/AdaptiveImage.liquid.js";import{getVisibilityStyle as P,getStyleAspectRatio as S,getContentPosition as j,mapContentPositionToHorizontal as C,getClassJustify as E,getClassContentPosition as z,getBgImage as B,getDisplayStyleByFitContent as _,getClassForContentByFitContent as q,getClassForStretchContent as H,getClassSpaceBetween as I,getWidth as N,getResponsiveSetting as R}from"../../helpers/common.js";let HeroBanner=({builderAttrs:G,builderProps:O,setting:T,styles:F,style:M,children:V,rawChildren:W,advanced:D})=>{let{link:J,layout:K,verticalAlign:L,order:Q,alignBanner:U}=T??{},{background:X,overlayEnable:Y,overlayColor:Z,overlayOpacity:ee,verticalGutter:et,contentWidth:eo,hoverEffect:er,hoverEffectDuration:el,hoverEffectScale:ea,cornerBg:ep,borderBg:es,hasActiveShadow:ei,shadowBg:eg,sizeSetting:en,contentPadding:ec}=F??{},ed=T?.enableParallax||!1,eu=Number(T?.speedParallax)||.6,eb=P(M),ef=e("h",t(en)),ev=o("w",r(en,!0),{desktop:"--g-ct-w",tablet:"--g-ct-w",mobile:"--g-ct-w"}),eh=S(X,en),em=l(X),ew=R(X||{}),e$=R(U||{}),ey=a(ec),ex=j(T?.layout,F?.contentPosition1Col,F?.contentPosition2Col),ek=C(ex),eA=()=>{let e={},t=B(X),o=["desktop","mobile","tablet"];return o.forEach(o=>{let r=t?.[o]?.width,l=en?.[o]?.shape==="original";r&&l&&(e={...e,[o]:`${r}px`})}),e},eP=p(o("w",eA(),{desktop:"--g-ct-w",tablet:"--g-ct-w",mobile:"--g-ct-w"}));return s`
|
|
2
|
+
<div class="${i("gp-flex gp-w-full",E(e$))}">
|
|
3
3
|
<gp-hero-banner
|
|
4
|
-
gp-data='${
|
|
4
|
+
gp-data='${g({background:ew,uid:O?.uid,enableParallax:ed,speedParallax:eu}).replaceAll("'","'")}'
|
|
5
5
|
${{...G}}
|
|
6
|
-
class="${
|
|
6
|
+
class="${i(O?.uid,D?.cssClass,"gp-group/hero gp-flex gp-flex-col gp-transition-colors gp-duration-200 gp-ease-in-out gp-w-full")}"
|
|
7
7
|
style="${{...M,...eb,...ef,...ev,...eh}}"
|
|
8
8
|
>
|
|
9
9
|
<div
|
|
10
|
-
class="${
|
|
10
|
+
class="${i("gp-relative gp-flex gp-flex-col gp-items-center gp-overflow-hidden",{...z(ex||{})})}"
|
|
11
11
|
style="${{...ef,...eh,...n({bs:es?.border??es?.border,bw:es?.width??es?.width,bc:c(es?.color)}),...d({...ep,active:{...ep||{},radiusType:"custom"}}),...u({value:eg,styleAppliedFor:"box-shadow",isEnableShadow:ei})}}"
|
|
12
12
|
>
|
|
13
|
-
${
|
|
14
|
-
<div class="${
|
|
13
|
+
${A({priority:T?.preload,pictureClass:"gp-w-full",srcSet:B(X),aspectRatio:b(en),style:{..._(en,X),...ef,...ev,...eP,"--op":0,"--z":-1}})}
|
|
14
|
+
<div class="${i("gp-absolute gp-w-full gp-h-full")}">
|
|
15
15
|
<div
|
|
16
|
-
class="${
|
|
16
|
+
class="${i("gp-overflow-hidden gp-w-full gp-h-full")}"
|
|
17
17
|
style="${{...em?.wrapper,"clip-path":"inset(0 0)"}}">
|
|
18
18
|
<div
|
|
19
19
|
aria-label="Background Image"
|
|
20
20
|
role="banner"
|
|
21
|
-
class="${
|
|
21
|
+
class="${i("gp-hero-banner-bg gp-absolute gp-inset-0 gp-left-[var(--left)] gp-top-[var(--top)] gp-transition-transform gp-flex gp-items-center gp-justify-center gp-bg-clip-content",{"gp-duration-[var(--duration)] group-hover/hero:gp-scale-[var(--scale)]":er})}"
|
|
22
22
|
style="${{...f(X,{liquid:!0,ignoreBgAttachment:!0}),"--duration":`${el??0}s`,"--scale":ea??1,"--top":0,"--left":0,...em?.content,...v(X)}}"
|
|
23
23
|
> </div>
|
|
24
24
|
</div>
|
|
25
25
|
${h(Y,s`<div
|
|
26
26
|
aria-label="Overlay"
|
|
27
27
|
role="banner"
|
|
28
|
-
class="${
|
|
28
|
+
class="${i("gp-absolute gp-inset-0 gp-left-[var(--left)] gp-top-[var(--top)] gp-transition-all gp-duration-300 group-hover/hero:gp-bg-[color:var(--hvr-bgc,_var(--bgc))] group-hover/hero:gp-opacity-[var(--hvr-op,_var(--op))]",m("bg",Z))}"
|
|
29
29
|
style="${{...w("bgc",Z),"--top":0,"--left":0,...$("op",ee)}}"
|
|
30
30
|
> </div>`)}
|
|
31
31
|
</div>
|
|
@@ -35,7 +35,7 @@ import{makeStyleResponsive as e,getHeightByShapeGlobalSize as t,makeStyleWithDef
|
|
|
35
35
|
aria-label="Hero banner link"
|
|
36
36
|
class="gp-absolute gp-inset-0 gp-z-1"
|
|
37
37
|
> </a>`)}
|
|
38
|
-
${k({className:
|
|
38
|
+
${k({className:i("gp-hero-banner-row gp-z-1 gp-w-full",q(en,X),H(L),I(T?.layout||{},F?.contentPosition1Col||{},F?.contentPosition2Col||{})),setting:{layout:K,horizontalAlign:ek,verticalAlign:L,order:Q},styles:{verticalGutter:et,width:N(eo),fullWidth:{desktop:!1,tablet:!1,mobile:!1}},style:{...ey},children:V,rawChildren:W})}
|
|
39
39
|
</div>
|
|
40
40
|
</gp-hero-banner>
|
|
41
41
|
</div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getAspectRatioGlobalSize as e,getResponsiveValueByScreen as t,makeStyleResponsive as
|
|
1
|
+
import{getAspectRatioGlobalSize as e,getResponsiveValueByScreen as t,makeStyleResponsive as l,cls as o}from"@gem-sdk/core";let getDataVideoHeroBannerResponsive=(e,t)=>{switch(e){case"desktop":if(t?.desktop?.type==="video")return{device:"desktop",data:t.desktop};break;case"tablet":if(t?.tablet?.type==="video")return{device:"tablet",data:t.tablet};if(!t?.tablet&&t?.desktop?.type==="video")return{device:"desktop",data:t.desktop};break;case"mobile":if(t?.mobile?.type==="video")return{device:"mobile",data:t.mobile};if(!t?.mobile&&t?.tablet?.type==="video")return{device:"tablet",data:t.tablet};if(!t?.mobile&&!t?.tablet?.type&&t?.desktop?.type==="video")return{device:"desktop",data:t.desktop}}},getVisibilityStyle=e=>e?Object.keys(e).filter(e=>["--d","--d-tablet","--d-mobile"].includes(e)).reduce((t,l)=>({...t,[l]:e?.[l]!=="none"?"flex":e?.[l]}),{}):{},getWidth=e=>{let t={},l=["desktop","mobile","tablet"];return l.forEach(l=>{let o=e?.[l];o&&(t={...t,[l]:"default"===o?"var(--g-ct-w, 1200px)":o})}),t},getStyleAspectRatio=(o,n)=>{let i=e(n),s=["desktop","mobile","tablet"];return s.forEach(e=>{let l=t(n,e),s=!!getDataVideoHeroBannerResponsive(e,o),a=l?.shape,b=l?.height,p="original"===a&&"fit-content"!==b,g=p&&s;g&&(i={...i,[e]:"16/9"})}),l("aspect",i)},getBgImage=e=>{if(!e)return{};let t={desktop:e?.desktop?.image,tablet:e?.tablet?.image,mobile:e?.mobile?.image};return t},getDisplayStyleByFitContent=(e,o)=>{let n={desktop:"none",tablet:"none",mobile:"none"},i=["desktop","mobile","tablet"];return i.forEach(l=>{let i=t(e,l),s=!!getDataVideoHeroBannerResponsive(l,o),a=i?.shape,b=i?.height,p="original"===a&&"fit-content"!==b&&!s;n={...n,[l]:p?"block":"none"}}),l("d",n)},getClassForContentByFitContent=(e,l)=>{let n={desktop:!1,tablet:!1,mobile:!1},i=["desktop","mobile","tablet"];return i.forEach(o=>{let i=t(e,o),s=!!getDataVideoHeroBannerResponsive(o,l),a=i?.shape,b=i?.height,p="original"===a&&"fit-content"!==b;n={...n,[o]:p&&!s}}),o(n.desktop?"gp-absolute":"",n.tablet?"tablet:gp-absolute":"tablet:gp-relative",n.mobile?"mobile:gp-absolute":"mobile:gp-relative")},getClassForStretchContent=e=>{let l={desktop:"none",tablet:"none",mobile:"none"},n=["desktop","mobile","tablet"];return n.forEach(o=>{let n=t(e,o);l={...l,[o]:n}}),o("space-between"===l.desktop?"[&>*>*]:!gp-justify-between":"","space-between"===l.tablet?"tablet:[&>*>*]:!gp-justify-between ":`tablet:[&>*>*]:!gp-justify-${e?.tablet}`,"space-between"===l.mobile?"mobile:[&>*>*]:!gp-justify-between ":`mobile:[&>*>*]:!gp-justify-${e?.mobile}`)},getClassContentPosition=e=>{let t={center:"center",top:"start",bottom:"end","space-between":"between"},l=e.desktop||"center",o=e.tablet||l,n=e.mobile||o;return{[`!gp-justify-${t[l||"center"]}`]:!!l,[`tablet:!gp-justify-${t[o||"center"]}`]:!!o,[`mobile:!gp-justify-${t[n||"center"]}`]:!!n}},getResponsiveSetting=e=>{let t=e.desktop,l=e.tablet?e.tablet:t,o=e.mobile?e.mobile:l;return{desktop:t,tablet:l,mobile:o}},getContentPosition=(e,l,o)=>{let n={},i=["desktop","tablet","mobile"];return i.map(i=>{let s=t(e,i),a=t(l,i),b=t(o,i);n={...n,[i]:1>=(s?.cols?.length||1)?a:b}}),n},getClassSpaceBetween=(e,t,l)=>{let o=getResponsiveSetting(e),n=getResponsiveSetting(t),i=getResponsiveSetting(l),s=1>=(o?.desktop?.cols?.length||1)?n.desktop:i.desktop,a=1>=(o?.tablet?.cols?.length||1)?n.tablet:i.tablet,b=1>=(o?.mobile?.cols?.length||1)?n.mobile:i.mobile;return{"gp-h-full !gp-content-stretch [&>*]:!gp-justify-between":o.desktop?.cols?.length===1&&"space-between"===s,"!gp-content-stretch [&>*]:!gp-justify-start":o.desktop?.cols?.length===1&&"top"===s,"tablet:gp-h-full tablet:!gp-content-stretch tablet:[&>*]:!gp-justify-between":o.tablet?.cols?.length===1&&"space-between"===a,"tablet:!gp-content-stretch tablet:[&>*]:!gp-justify-start":o.tablet?.cols?.length===1&&"top"===a,"tablet:!gp-content-stretch tablet:[&>*]:!gp-justify-center":o.tablet?.cols?.length===1&&"center"===a,"tablet:!gp-content-stretch tablet:[&>*]:!gp-justify-end":o.tablet?.cols?.length===1&&"bottom"===a,"mobile:gp-h-full mobile:!gp-content-stretch mobile:[&>*]:!gp-justify-between":o.mobile?.cols?.length===1&&"space-between"===b,"mobile:!gp-content-stretch mobile:[&>*]:!gp-justify-start":o.mobile?.cols?.length===1&&"top"===b,"mobile:!gp-content-stretch mobile:[&>*]:!gp-justify-center":o.mobile?.cols?.length===1&&"center"===b,"mobile:!gp-content-stretch mobile:[&>*]:!gp-justify-end":o.mobile?.cols?.length===1&&"bottom"===b}},getClassAlignBanner=e=>({"!gp-self-start":"left"===e.desktop,"!gp-self-center":"center"===e.desktop,"!gp-self-end":"right"===e.desktop,"tablet:!gp-self-start":"left"===e.tablet,"tablet:!gp-self-center":"center"===e.tablet,"tablet:!gp-self-end":"right"===e.tablet,"mobile:!gp-self-start":"left"===e.mobile,"mobile:!gp-self-center":"center"===e.mobile,"mobile:!gp-self-end":"right"===e.mobile}),getClassJustify=e=>({"!gp-justify-start":"left"===e.desktop,"!gp-justify-center":"center"===e.desktop,"!gp-justify-end":"right"===e.desktop,"tablet:!gp-justify-start":"left"===e.tablet,"tablet:!gp-justify-center":"center"===e.tablet,"tablet:!gp-justify-end":"right"===e.tablet,"mobile:!gp-justify-start":"left"===e.mobile,"mobile:!gp-justify-center":"center"===e.mobile,"mobile:!gp-justify-end":"right"===e.mobile}),mapContentPositionToHorizontal=e=>{let t={};for(let l in e)"top"===e[l]?t[l]="start":"bottom"===e[l]?t[l]="end":t[l]="center";return t};export{getBgImage,getClassAlignBanner,getClassContentPosition,getClassForContentByFitContent,getClassForStretchContent,getClassJustify,getClassSpaceBetween,getContentPosition,getDataVideoHeroBannerResponsive,getDisplayStyleByFitContent,getResponsiveSetting,getStyleAspectRatio,getVisibilityStyle,getWidth,mapContentPositionToHorizontal};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import{jsxs as e,Fragment as t,jsx as r}from"react/jsx-runtime";import{useMemo as a}from"react";import{useEditorMode as i,makeStyleResponsive as n,getStyleBackgroundByDevice as o,cls as l}from"@gem-sdk/core";import s from"next/head";let EMPTY_TAGS=["SCRIPT"],ALLOWED_EMPTY_TAG=["EMBED","IMG","INPUT","PICTURE","VIDEO"],CSSCode=({setting:d,style:c,advanced:m,builderAttrs:g,builderProps:p,children:h})=>{let{editorData:u}=m,f=i(),b=(e,t,r)=>`<p class="gp-text-center gp-text-sm gp-font-[sans-serif] gp-py-4 gp-leading-[21px] gp-text-[#676767]">${e||t||r?"Preview or Publish the page to see the content.":"Custom Code"}</p>`,E=(e,t)=>{let r=document.createElement("div");r.innerHTML=e;let a=r.childNodes,i=!1,n=!0;if(a.length>0){a.forEach(e=>{EMPTY_TAGS.includes(e?.tagName)&&(i=!0,e?.remove())});let e=r.childNodes;e.forEach(e=>{if(ALLOWED_EMPTY_TAG.includes(e?.tagName))n=!1;else if(e?.nodeName!=="#comment"){let t=e?.textContent?.trim();t&&(n=!1)}})}return n&&(n=!r?.textContent?.trim()),t&&(i=!0),{empty:n,hasScript:i}},k=a(()=>{if("edit"===f){let{empty:e,hasScript:t}=E(u?.html||"",u?.javascript||"");if(t)return`<p class="gp-text-center gp-text-sm gp-font-[sans-serif] gp-py-4 gp-leading-[21px] gp-text-[#676767] gp-bg-[#eee]">
|
|
2
2
|
Publish the page to see the content.
|
|
3
|
-
</p>`;if(e)return b(u?.css||"",u?.javascript||"",u?.html||"")}return u?.html?.trim()},[u?.css,u?.html,u?.javascript,f]),x=e=>{if(2===e.detail){let e=new CustomEvent("editor:toolbar:open-custom-code",{bubbles:!0});window.dispatchEvent(e)}};return e(t,{children:[r(s,{children:!!d?.preloadBgImage&&e(t,{children:[!!d?.background?.desktop?.image?.src&&r("link",{rel:"preload",href:d.background.desktop.image.src,as:"image"}),!!d?.background?.tablet?.image?.src&&r("link",{rel:"preload",href:d.background.tablet.image.src,as:"image"}),!!d?.background?.mobile?.image?.src&&r("link",{rel:"preload",href:d.background.mobile.image.src,as:"image"})]})}),e("div",{onClick:x,"aria-hidden":"true",style:{...c,...n("ta",d?.align),...o(d?.background)},...g,className:l(p?.uid,{"gp-sr-only":"edit"!==f&&!u?.html}),children:[r("div",{dangerouslySetInnerHTML:{__html:k||""}}),h]})]})};export{CSSCode as default};
|
|
3
|
+
</p>`;if(e)return b(u?.css||"",u?.javascript||"",u?.html||"")}return u?.html?.trim()},[u?.css,u?.html,u?.javascript,f]),x=e=>{if(2===e.detail){let e=new CustomEvent("editor:toolbar:open-custom-code",{bubbles:!0});window.dispatchEvent(e)}};return e(t,{children:[r(s,{children:!!d?.preloadBgImage&&e(t,{children:[!!d?.background?.desktop?.image?.src&&r("link",{rel:"preload",href:d.background.desktop.image.src,as:"image"}),!!d?.background?.tablet?.image?.src&&r("link",{rel:"preload",href:d.background.tablet.image.src,as:"image"}),!!d?.background?.mobile?.image?.src&&r("link",{rel:"preload",href:d.background.mobile.image.src,as:"image"})]})}),e("div",{onClick:x,"aria-hidden":"true",style:{...c,...n("ta",d?.align),...o(d?.background)},...g,className:l(p?.uid,{"gp-sr-only":"edit"!==f&&!u?.html},"gp-cursor-pointer"),children:[r("div",{dangerouslySetInnerHTML:{__html:k||""}}),h]})]})};export{CSSCode as default};
|
|
@@ -20,4 +20,25 @@ let config={tag:"ProductList",label:"Product List",icon:`
|
|
|
20
20
|
<rect x="66.6665" y="33" width="29.3333" height="6" rx="3" fill="#494949"/>
|
|
21
21
|
<rect x="72.333" y="42" width="18" height="6" rx="3" fill="#494949"/>
|
|
22
22
|
</svg>
|
|
23
|
-
`},components:[{tag:"ProductList",label:"Product List",settings:{columns:{desktop:4,tablet:2,mobile:1}},advanced:{"spacing-setting":{padding:{top:"var(--g-s-s)",bottom:"var(--g-s-s)"}}},childrens:[{tag:"Row",label:"Row",settings:{layout:{desktop:{cols:[12],display:"fill"}}},styles:{verticalGutter:{desktop:"var(--g-s-2xl)"}},advanced:{"spacing-setting":{padding:{top:"var(--g-s-s)",left:"var(--g-s-s)",right:"var(--g-s-s)",bottom:"var(--g-s-s)"}},border:{normal:{border:"solid",borderLabel:"Style 1",borderType:"style-1",color:"line-1",isCustom:!1,width:"1px 1px 1px 1px"}},rounded:{normal:{bbtrr:"6px",bblr:"6px",bbrr:"6px",btlr:"6px",radiusType:"medium"}}},childrens:[{tag:"Col",label:"Block",settings:{fullHeight:!0},styles:{justifyContent:{desktop:"normal"},alignItem:{desktop:"normal"},order:{desktop:0}},childrens:[{tag:"ProductImagesV2",label:"Product Images",settings:{ftClickOpenLightBox:{desktop:"product-link"}},styles:{position:{desktop:"only-feature"}},advanced:{"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}}}},{tag:"ProductTitle",label:"Product Title",settings:{htmlTag:"h2"},styles:{typo:{type:"subheading-2"},textAlign:{desktop:"left"},hasLineClamp:!0,lineClamp:{desktop:2,mobile:0},color:{normal:"text-1"},hasTextShadow:{normal:!1},textShadow:{normal:{type:"shadow-1"}},transform:"default"},advanced:{"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}}}},{tag:"Row",label:"Row",settings:{layout:{desktop:{cols:[6,6],display:"fit"}}},styles:{verticalGutter:{desktop:"16px"},background:{desktop:{type:"color",color:"transparent",image:{src:"",width:0,height:0},size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll"}},fullWidth:{desktop:!0},width:{desktop:"100%"}},advanced:{"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}}},childrens:[{tag:"Col",label:"Block",settings:{},styles:{justifyContent:{desktop:"center"},alignItem:{desktop:"normal"},order:{desktop:0}},advanced:{},childrens:[{tag:"ProductPrice",label:"Product Price",styles:{priceType:"regular",typo:{type:"subheading-2"},color:{normal:"text-1"},lineColor:"highlight",textAlign:{desktop:"left"},hasTextShadow:{normal:!1},textShadow:{normal:{type:"shadow-1"}},lineThrough:!0,thickness:1},advanced:{}}]},{tag:"Col",label:"Block",settings:{},styles:{justifyContent:{desktop:"center"},alignItem:{desktop:"normal"},order:{desktop:0}},advanced:{},childrens:[{tag:"ProductPrice",label:"Product Price",styles:{priceType:"compare",typo:{type:"subheading-2"},color:{normal:"text-1"},lineColor:"text-1",textAlign:{desktop:"left"},hasTextShadow:{normal:!1},textShadow:{normal:{type:"shadow-1"}},lineThrough:!0,thickness:1},advanced:{}}]}]},{tag:"ProductVariants",advanced:{"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}}}},{tag:"ProductButton",label:"Product Cart Button",advanced:{"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}}},settings:{actionEffect:"continue-shopping",label:"Add To cart",outOfStockLabel:"Out Of Stock",successMessage:"Add product to cart successfully",errorMessage:"Cannot add product to cart",iconVisible:!1,iconSvg:'<svg height="100%" width="100%" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor"><path fill="currentColor" strokeLinecap="round" strokeLinejoin="round" fill="currentColor" d="M448 128.001H362.667C362.667 69.1207 314.88 21.334 256 21.334C197.12 21.334 149.333 69.1207 149.333 128.001H64V469.334H448V128.001ZM256 64.0007C291.413 64.0007 320 92.5873 320 128.001H192C192 92.5873 220.587 64.0007 256 64.0007ZM256 277.334C197.12 277.334 149.333 229.547 149.333 170.667H192C192 206.081 220.587 234.667 256 234.667C291.413 234.667 320 206.081 320 170.667H362.667C362.667 229.547 314.88 277.334 256 277.334Z" /></svg>',iconAlign:"left"},styles:{globalSize:{desktop:{width:"100%"}}}}]}]}]}]}
|
|
23
|
+
`},components:[{tag:"ProductList",label:"Product List",settings:{columns:{desktop:4,tablet:2,mobile:1}},advanced:{"spacing-setting":{padding:{top:"var(--g-s-s)",bottom:"var(--g-s-s)"}}},childrens:[{tag:"Row",label:"Row",settings:{layout:{desktop:{cols:[12],display:"fill"}}},styles:{verticalGutter:{desktop:"var(--g-s-2xl)"}},advanced:{"spacing-setting":{padding:{top:"var(--g-s-s)",left:"var(--g-s-s)",right:"var(--g-s-s)",bottom:"var(--g-s-s)"}},border:{normal:{border:"solid",borderLabel:"Style 1",borderType:"style-1",color:"line-1",isCustom:!1,width:"1px 1px 1px 1px"}},rounded:{normal:{bbtrr:"6px",bblr:"6px",bbrr:"6px",btlr:"6px",radiusType:"medium"}}},childrens:[{tag:"Col",label:"Block",settings:{fullHeight:!0},styles:{justifyContent:{desktop:"normal"},alignItem:{desktop:"normal"},order:{desktop:0}},childrens:[{tag:"ProductImagesV2",label:"Product Images",settings:{ftClickOpenLightBox:{desktop:"product-link"}},styles:{position:{desktop:"only-feature"}},advanced:{"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}}}},{tag:"ProductTitle",label:"Product Title",settings:{htmlTag:"h2"},styles:{typo:{type:"subheading-2"},textAlign:{desktop:"left"},hasLineClamp:!0,lineClamp:{desktop:2,mobile:0},color:{normal:"text-1"},hasTextShadow:{normal:!1},textShadow:{normal:{type:"shadow-1"}},transform:"default"},advanced:{"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}}}},{tag:"Row",label:"Row",settings:{layout:{desktop:{cols:[6,6],display:"fit"}}},styles:{verticalGutter:{desktop:"16px"},background:{desktop:{type:"color",color:"transparent",image:{src:"",width:0,height:0},size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll"}},fullWidth:{desktop:!0},width:{desktop:"100%"}},advanced:{"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}}},childrens:[{tag:"Col",label:"Block",settings:{},styles:{justifyContent:{desktop:"center"},alignItem:{desktop:"normal"},order:{desktop:0}},advanced:{},childrens:[{tag:"ProductPrice",label:"Product Price",styles:{priceType:"regular",typo:{type:"subheading-2"},color:{normal:"text-1"},lineColor:"highlight",textAlign:{desktop:"left"},hasTextShadow:{normal:!1},textShadow:{normal:{type:"shadow-1"}},lineThrough:!0,thickness:1},advanced:{}}]},{tag:"Col",label:"Block",settings:{},styles:{justifyContent:{desktop:"center"},alignItem:{desktop:"normal"},order:{desktop:0}},advanced:{},childrens:[{tag:"ProductPrice",label:"Product Price",styles:{priceType:"compare",typo:{type:"subheading-2"},color:{normal:"text-1"},lineColor:"text-1",textAlign:{desktop:"left"},hasTextShadow:{normal:!1},textShadow:{normal:{type:"shadow-1"}},lineThrough:!0,thickness:1},advanced:{}}]}]},{tag:"ProductVariants",advanced:{"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}}}},{tag:"ProductButton",label:"Product Cart Button",advanced:{"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}}},settings:{actionEffect:"continue-shopping",label:"Add To cart",outOfStockLabel:"Out Of Stock",successMessage:"Add product to cart successfully",errorMessage:"Cannot add product to cart",iconVisible:!1,iconSvg:'<svg height="100%" width="100%" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor"><path fill="currentColor" strokeLinecap="round" strokeLinejoin="round" fill="currentColor" d="M448 128.001H362.667C362.667 69.1207 314.88 21.334 256 21.334C197.12 21.334 149.333 69.1207 149.333 128.001H64V469.334H448V128.001ZM256 64.0007C291.413 64.0007 320 92.5873 320 128.001H192C192 92.5873 220.587 64.0007 256 64.0007ZM256 277.334C197.12 277.334 149.333 229.547 149.333 170.667H192C192 206.081 220.587 234.667 256 234.667C291.413 234.667 320 206.081 320 170.667H362.667C362.667 229.547 314.88 277.334 256 277.334Z" /></svg>',iconAlign:"left"},styles:{globalSize:{desktop:{width:"100%"}}}}]}]}]}]},{id:"related-product",name:{en:"Related Products"},icon:{desktop:`
|
|
24
|
+
<svg width="126" height="80" viewBox="0 0 126 80" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
25
|
+
<g clip-path="url(#clip0_19807_27615)">
|
|
26
|
+
<path d="M0 0H126V80H0V0Z" fill="#212121"/>
|
|
27
|
+
<rect x="15" y="29" width="29.3333" height="30" rx="3" fill="#424242"/>
|
|
28
|
+
<path d="M23.6667 39.4299L27.6628 38.0233C27.6628 38.0233 28.1486 39.1703 29.6707 39.1703C31.1928 39.1703 31.6734 38 31.6734 38L35.6667 39.4299L35.0021 42.957H32.9981V49.3355H26.3268V42.9549H24.3328L23.6667 39.4299Z" fill="#F9F9F9"/>
|
|
29
|
+
<rect x="20.6667" y="62" width="18" height="6" rx="3" fill="#424242"/>
|
|
30
|
+
<rect x="48.3333" y="29" width="29.3333" height="30" rx="3" fill="#424242"/>
|
|
31
|
+
<path d="M57 39.4299L60.996 38.0233C60.996 38.0233 61.4819 39.1703 63.004 39.1703C64.5261 39.1703 65.0066 38 65.0066 38L69 39.4299L68.3353 42.957H66.3313V49.3355H59.66V42.9549H57.666L57 39.4299Z" fill="#F9F9F9"/>
|
|
32
|
+
<rect x="54" y="62" width="18" height="6" rx="3" fill="#424242"/>
|
|
33
|
+
<rect x="81.6667" y="29" width="29.3333" height="30" rx="3" fill="#424242"/>
|
|
34
|
+
<path d="M90.3335 39.4299L94.3295 38.0233C94.3295 38.0233 94.8154 39.1703 96.3375 39.1703C97.8596 39.1703 98.3401 38 98.3401 38L102.333 39.4299L101.669 42.957H99.6648V49.3355H92.9935V42.9549H90.9995L90.3335 39.4299Z" fill="#F9F9F9"/>
|
|
35
|
+
<rect x="87.3335" y="62" width="18" height="6" rx="3" fill="#424242"/>
|
|
36
|
+
<path d="M45.6887 20V12.7273H48.281C48.8444 12.7273 49.312 12.8243 49.6837 13.0185C50.0577 13.2126 50.3371 13.4813 50.5218 13.8246C50.7064 14.1655 50.7987 14.5597 50.7987 15.0071C50.7987 15.4522 50.7052 15.844 50.5182 16.1825C50.3335 16.5187 50.0542 16.7803 49.6801 16.9673C49.3084 17.1544 48.8409 17.2479 48.2774 17.2479H46.3137V16.3033H48.178C48.5331 16.3033 48.8219 16.2524 49.0445 16.1506C49.2694 16.0488 49.4339 15.9008 49.5381 15.7067C49.6423 15.5125 49.6943 15.2794 49.6943 15.0071C49.6943 14.7325 49.6411 14.4946 49.5345 14.2933C49.4304 14.0921 49.2658 13.9382 49.0409 13.8317C48.8184 13.7228 48.526 13.6683 48.1638 13.6683H46.786V20H45.6887ZM49.2789 16.7188L51.0757 20H49.8257L48.0644 16.7188H49.2789ZM54.3312 20.1101C53.7938 20.1101 53.331 19.9953 52.9427 19.7656C52.5568 19.5336 52.2586 19.2081 52.0479 18.7891C51.8395 18.3677 51.7354 17.8741 51.7354 17.3082C51.7354 16.7495 51.8395 16.2571 52.0479 15.831C52.2586 15.4048 52.5521 15.0722 52.9285 14.8331C53.3073 14.594 53.75 14.4744 54.2567 14.4744C54.5644 14.4744 54.8627 14.5253 55.1515 14.6271C55.4404 14.7289 55.6996 14.8887 55.9292 15.1065C56.1589 15.3243 56.34 15.6072 56.4726 15.9553C56.6051 16.3009 56.6714 16.7211 56.6714 17.2159V17.5923H52.3355V16.7969H55.6309C55.6309 16.5175 55.5741 16.2701 55.4605 16.0547C55.3469 15.8369 55.1871 15.6652 54.9811 15.5398C54.7775 15.4143 54.5384 15.3516 54.2638 15.3516C53.9655 15.3516 53.705 15.425 53.4825 15.5717C53.2623 15.7161 53.0919 15.9055 52.9711 16.1399C52.8528 16.3719 52.7936 16.6241 52.7936 16.8963V17.5178C52.7936 17.8823 52.8575 18.1925 52.9854 18.4482C53.1156 18.7038 53.2967 18.8991 53.5287 19.0341C53.7607 19.1667 54.0318 19.233 54.3419 19.233C54.5431 19.233 54.7266 19.2045 54.8923 19.1477C55.058 19.0885 55.2013 19.0009 55.322 18.8849C55.4427 18.7689 55.5351 18.6257 55.599 18.4553L56.604 18.6364C56.5235 18.9323 56.3791 19.1915 56.1707 19.4141C55.9648 19.6342 55.7055 19.8059 55.393 19.929C55.0829 20.0497 54.729 20.1101 54.3312 20.1101ZM58.9113 12.7273V20H57.8495V12.7273H58.9113ZM61.9271 20.1207C61.5815 20.1207 61.269 20.0568 60.9896 19.929C60.7103 19.7988 60.4889 19.6106 60.3256 19.3643C60.1646 19.1181 60.0841 18.8163 60.0841 18.4588C60.0841 18.151 60.1433 17.8977 60.2616 17.6989C60.38 17.5 60.5398 17.3426 60.741 17.2266C60.9423 17.1106 61.1672 17.023 61.4157 16.9638C61.6643 16.9046 61.9176 16.8596 62.1757 16.8288C62.5024 16.791 62.7675 16.7602 62.9711 16.7365C63.1747 16.7105 63.3227 16.669 63.415 16.6122C63.5074 16.5554 63.5535 16.4631 63.5535 16.3352V16.3104C63.5535 16.0002 63.4659 15.7599 63.2907 15.5895C63.1179 15.419 62.8599 15.3338 62.5166 15.3338C62.1591 15.3338 61.8774 15.4131 61.6714 15.5717C61.4678 15.728 61.327 15.902 61.2488 16.0938L60.251 15.8665C60.3693 15.535 60.5422 15.2675 60.7694 15.0639C60.9991 14.858 61.2631 14.7088 61.5613 14.6165C61.8596 14.5218 62.1733 14.4744 62.5024 14.4744C62.7202 14.4744 62.951 14.5005 63.1949 14.5526C63.4411 14.6023 63.6707 14.6946 63.8838 14.8295C64.0992 14.9645 64.2756 15.1574 64.4129 15.4084C64.5502 15.657 64.6189 15.9801 64.6189 16.3778V20H63.5819V19.2543H63.5393C63.4707 19.3916 63.3677 19.5265 63.2304 19.6591C63.0931 19.7917 62.9167 19.9018 62.7013 19.9893C62.4858 20.0769 62.2278 20.1207 61.9271 20.1207ZM62.1579 19.2685C62.4515 19.2685 62.7024 19.2105 62.9108 19.0945C63.1215 18.9785 63.2813 18.8269 63.3902 18.6399C63.5015 18.4505 63.5571 18.2481 63.5571 18.0327V17.3295C63.5192 17.3674 63.4458 17.4029 63.3369 17.4361C63.2304 17.4669 63.1085 17.4941 62.9711 17.5178C62.8338 17.5391 62.7001 17.5592 62.5699 17.5781C62.4397 17.5947 62.3308 17.6089 62.2432 17.6207C62.0372 17.6468 61.849 17.6906 61.6785 17.7521C61.5104 17.8137 61.3755 17.9025 61.2737 18.0185C61.1743 18.1321 61.1246 18.2836 61.1246 18.473C61.1246 18.7358 61.2216 18.9347 61.4157 19.0696C61.6099 19.2022 61.8573 19.2685 62.1579 19.2685ZM68.5793 14.5455V15.3977H65.5999V14.5455H68.5793ZM66.3989 13.2386H67.4607V18.3984C67.4607 18.6044 67.4914 18.7595 67.553 18.8636C67.6146 18.9654 67.6939 19.0353 67.7909 19.0732C67.8904 19.1087 67.9981 19.1264 68.1141 19.1264C68.1993 19.1264 68.2739 19.1205 68.3378 19.1087C68.4017 19.0968 68.4514 19.0874 68.4869 19.0803L68.6787 19.9574C68.6172 19.9811 68.5296 20.0047 68.4159 20.0284C68.3023 20.0545 68.1602 20.0687 67.9898 20.071C67.7104 20.0758 67.45 20.026 67.2085 19.9219C66.9671 19.8177 66.7718 19.6567 66.6226 19.4389C66.4735 19.2211 66.3989 18.9477 66.3989 18.6186V13.2386ZM72.0461 20.1101C71.5087 20.1101 71.0458 19.9953 70.6576 19.7656C70.2717 19.5336 69.9734 19.2081 69.7627 18.7891C69.5544 18.3677 69.4502 17.8741 69.4502 17.3082C69.4502 16.7495 69.5544 16.2571 69.7627 15.831C69.9734 15.4048 70.267 15.0722 70.6434 14.8331C71.0222 14.594 71.4649 14.4744 71.9715 14.4744C72.2793 14.4744 72.5776 14.5253 72.8664 14.6271C73.1552 14.7289 73.4144 14.8887 73.6441 15.1065C73.8737 15.3243 74.0548 15.6072 74.1874 15.9553C74.32 16.3009 74.3863 16.7211 74.3863 17.2159V17.5923H70.0503V16.7969H73.3458C73.3458 16.5175 73.289 16.2701 73.1753 16.0547C73.0617 15.8369 72.9019 15.6652 72.6959 15.5398C72.4923 15.4143 72.2532 15.3516 71.9786 15.3516C71.6803 15.3516 71.4199 15.425 71.1974 15.5717C70.9772 15.7161 70.8067 15.9055 70.686 16.1399C70.5676 16.3719 70.5084 16.6241 70.5084 16.8963V17.5178C70.5084 17.8823 70.5724 18.1925 70.7002 18.4482C70.8304 18.7038 71.0115 18.8991 71.2435 19.0341C71.4755 19.1667 71.7466 19.233 72.0567 19.233C72.258 19.233 72.4414 19.2045 72.6072 19.1477C72.7729 19.0885 72.9161 19.0009 73.0368 18.8849C73.1576 18.7689 73.2499 18.6257 73.3138 18.4553L74.3188 18.6364C74.2383 18.9323 74.0939 19.1915 73.8856 19.4141C73.6796 19.6342 73.4204 19.8059 73.1079 19.929C72.7977 20.0497 72.4438 20.1101 72.0461 20.1101ZM77.6063 20.1065C77.1659 20.1065 76.7729 19.9941 76.4273 19.7692C76.084 19.5419 75.8141 19.2187 75.6176 18.7997C75.4235 18.3783 75.3264 17.8729 75.3264 17.2834C75.3264 16.6939 75.4247 16.1896 75.6212 15.7706C75.82 15.3516 76.0923 15.0308 76.4379 14.8082C76.7836 14.5857 77.1754 14.4744 77.6134 14.4744C77.9519 14.4744 78.2242 14.5312 78.4301 14.6449C78.6385 14.7562 78.7994 14.8864 78.9131 15.0355C79.0291 15.1847 79.1191 15.3161 79.183 15.4297H79.2469V12.7273H80.3087V20H79.2718V19.1513H79.183C79.1191 19.2673 79.0267 19.3999 78.906 19.549C78.7876 19.6982 78.6243 19.8284 78.4159 19.9396C78.2076 20.0509 77.9377 20.1065 77.6063 20.1065ZM77.8406 19.201C78.146 19.201 78.4041 19.1205 78.6148 18.9595C78.8279 18.7962 78.9888 18.5701 79.0977 18.2812C79.209 17.9924 79.2646 17.6562 79.2646 17.2727C79.2646 16.8939 79.2102 16.5625 79.1013 16.2784C78.9924 15.9943 78.8326 15.773 78.6219 15.6143C78.4112 15.4557 78.1508 15.3764 77.8406 15.3764C77.521 15.3764 77.2547 15.4593 77.0416 15.625C76.8286 15.7907 76.6676 16.0168 76.5587 16.3033C76.4521 16.5897 76.3989 16.9129 76.3989 17.2727C76.3989 17.6373 76.4533 17.9652 76.5622 18.2564C76.6711 18.5476 76.8321 18.7784 77.0452 18.9489C77.2606 19.117 77.5258 19.201 77.8406 19.201Z" fill="#AAAAAA"/>
|
|
37
|
+
</g>
|
|
38
|
+
<defs>
|
|
39
|
+
<clipPath id="clip0_19807_27615">
|
|
40
|
+
<path d="M0 3C0 1.34315 1.34315 0 3 0H123C124.657 0 126 1.34315 126 3V77C126 78.6569 124.657 80 123 80H3C1.34315 80 0 78.6569 0 77V3Z" fill="white"/>
|
|
41
|
+
</clipPath>
|
|
42
|
+
</defs>
|
|
43
|
+
</svg>
|
|
44
|
+
`},components:[{tag:"ProductList",label:"Related Products",settings:{productSetting:{productSrc:"RelatedProduct"},columns:{desktop:4,tablet:2,mobile:1}},advanced:{"spacing-setting":{padding:{top:"var(--g-s-s)",bottom:"var(--g-s-s)"}}},childrens:[{tag:"Row",label:"Row",settings:{layout:{desktop:{cols:[12],display:"fill"}}},styles:{verticalGutter:{desktop:"var(--g-s-2xl)"}},advanced:{"spacing-setting":{padding:{top:"var(--g-s-s)",left:"var(--g-s-s)",right:"var(--g-s-s)",bottom:"var(--g-s-s)"}},border:{normal:{border:"solid",borderLabel:"Style 1",borderType:"style-1",color:"line-1",isCustom:!1,width:"1px 1px 1px 1px"}},rounded:{normal:{bbtrr:"6px",bblr:"6px",bbrr:"6px",btlr:"6px",radiusType:"medium"}}},childrens:[{tag:"Col",label:"Block",settings:{fullHeight:!0},styles:{justifyContent:{desktop:"normal"},alignItem:{desktop:"normal"},order:{desktop:0}},childrens:[{tag:"ProductImagesV2",label:"Product Images",settings:{ftClickOpenLightBox:{desktop:"product-link"}},styles:{position:{desktop:"only-feature"}},advanced:{"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}}}},{tag:"ProductTitle",label:"Product Title",settings:{htmlTag:"h2"},styles:{typo:{type:"subheading-2"},textAlign:{desktop:"left"},hasLineClamp:!0,lineClamp:{desktop:2,mobile:0},color:{normal:"text-1"},hasTextShadow:{normal:!1},textShadow:{normal:{type:"shadow-1"}},transform:"default"},advanced:{"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}}}},{tag:"Row",label:"Row",settings:{layout:{desktop:{cols:[6,6],display:"fit"}}},styles:{verticalGutter:{desktop:"16px"},background:{desktop:{type:"color",color:"transparent",image:{src:"",width:0,height:0},size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll"}},fullWidth:{desktop:!0},width:{desktop:"100%"}},advanced:{"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}}},childrens:[{tag:"Col",label:"Block",settings:{},styles:{justifyContent:{desktop:"center"},alignItem:{desktop:"normal"},order:{desktop:0}},advanced:{},childrens:[{tag:"ProductPrice",label:"Product Price",styles:{priceType:"regular",typo:{type:"subheading-2"},color:{normal:"text-1"},lineColor:"highlight",textAlign:{desktop:"left"},hasTextShadow:{normal:!1},textShadow:{normal:{type:"shadow-1"}},lineThrough:!0,thickness:1},advanced:{}}]},{tag:"Col",label:"Block",settings:{},styles:{justifyContent:{desktop:"center"},alignItem:{desktop:"normal"},order:{desktop:0}},advanced:{},childrens:[{tag:"ProductPrice",label:"Product Price",styles:{priceType:"compare",typo:{type:"subheading-2"},color:{normal:"text-1"},lineColor:"text-1",textAlign:{desktop:"left"},hasTextShadow:{normal:!1},textShadow:{normal:{type:"shadow-1"}},lineThrough:!0,thickness:1},advanced:{}}]}]},{tag:"ProductVariants",advanced:{"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}}}},{tag:"ProductButton",label:"Product Cart Button",advanced:{"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}}},settings:{actionEffect:"continue-shopping",label:"Add To cart",outOfStockLabel:"Out Of Stock",successMessage:"Add product to cart successfully",errorMessage:"Cannot add product to cart",iconVisible:!1,iconSvg:'<svg height="100%" width="100%" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor"><path fill="currentColor" strokeLinecap="round" strokeLinejoin="round" fill="currentColor" d="M448 128.001H362.667C362.667 69.1207 314.88 21.334 256 21.334C197.12 21.334 149.333 69.1207 149.333 128.001H64V469.334H448V128.001ZM256 64.0007C291.413 64.0007 320 92.5873 320 128.001H192C192 92.5873 220.587 64.0007 256 64.0007ZM256 277.334C197.12 277.334 149.333 229.547 149.333 170.667H192C192 206.081 220.587 234.667 256 234.667C291.413 234.667 320 206.081 320 170.667H362.667C362.667 229.547 314.88 277.334 256 277.334Z" /></svg>',iconAlign:"left"},styles:{globalSize:{desktop:{width:"100%"}}}}]}]}]}]}],locales:{editor:{en:{product_not_found:"Product Not Found!",no_products_found:"No products found!",no_related_products:"No related products!"}}}};export{config as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
let config={tag:"
|
|
1
|
+
let config={tag:"ProductVendor",label:"Product Vendor",icon:`
|
|
2
2
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
3
|
<path d="M15.6 2.09659C15.6 1.7671 15.8518 1.5 16.1625 1.5H20.4375C20.7482 1.5 21 1.7671 21 2.09659V2.8125C21 3.14199 20.7482 3.40909 20.4375 3.40909H20.4172C20.2902 3.46746 20.1489 3.5 20 3.5H19.2051V20.5H20C20.1489 20.5 20.2902 20.5325 20.4172 20.5909H20.4375C20.7482 20.5909 21 20.858 21 21.1875V21.9034C21 22.2329 20.7482 22.5 20.4375 22.5H16.1625C15.8518 22.5 15.6 22.2329 15.6 21.9034V21.1875C15.6 20.858 15.8518 20.5909 16.1625 20.5909H16.1873C16.3143 20.5325 16.4556 20.5 16.6045 20.5H17.4V12H6.6V20.5H7.39551C7.54441 20.5 7.68571 20.5325 7.81268 20.5909H7.8375C8.14816 20.5909 8.4 20.858 8.4 21.1875V21.9034C8.4 22.2329 8.14816 22.5 7.8375 22.5H3.5625C3.25184 22.5 3 22.2329 3 21.9034V21.1875C3 20.858 3.25184 20.5909 3.5625 20.5909H3.58282C3.7098 20.5325 3.8511 20.5 4 20.5H4.79863L4.79863 3.5H4C3.8511 3.5 3.7098 3.46746 3.58282 3.40909H3.5625C3.25184 3.40909 3 3.14199 3 2.8125V2.09659C3 1.7671 3.25184 1.5 3.5625 1.5H7.8375C8.14816 1.5 8.4 1.7671 8.4 2.09659V2.8125C8.4 3.14199 8.14816 3.40909 7.8375 3.40909H7.81269C7.68571 3.46746 7.54441 3.5 7.39551 3.5H6.6V9.98779H17.4V3.5H16.6045C16.4556 3.5 16.3143 3.46746 16.1873 3.40909H16.1625C15.8518 3.40909 15.6 3.14199 15.6 2.8125V2.09659Z" fill="white"/>
|
|
4
4
|
</svg>
|