@gem-sdk/components 2.0.0-staging.864 → 2.0.0-staging.866
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/builder.js +1 -1
- package/dist/cjs/carousel/settings/configs/settings-v2.js +1 -1
- package/dist/cjs/collection/components/collection-banner/CollectionBanner.liquid.js +10 -10
- package/dist/cjs/grid/components/section/Section.liquid.js +1 -1
- package/dist/cjs/hero-banner/components/HeroBannerItem.liquid.js +5 -5
- package/dist/cjs/image/common/helpers.js +2 -2
- package/dist/cjs/image/common/styles.js +1 -1
- package/dist/cjs/image/components/AdaptiveImage.js +1 -1
- package/dist/cjs/image/components/Image.js +1 -1
- package/dist/cjs/image-detection/settings/ImageDetection.js +2 -2
- package/dist/cjs/image-detection/settings/configs/settings.js +1 -0
- package/dist/cjs/link/settings/Link.js +1 -1
- package/dist/cjs/link/settings/configs/settings.js +1 -0
- package/dist/cjs/menu/settings/Menu.js +1 -1
- package/dist/cjs/menu/settings/configs/settings.js +1 -0
- package/dist/cjs/modal/settings/Modal.js +1 -1
- package/dist/cjs/modal/settings/configs/settings.js +1 -0
- package/dist/cjs/pagination/settings/Pagination.js +1 -1
- package/dist/cjs/pagination/settings/configs/settings.js +1 -0
- package/dist/cjs/post-purchase/product/settings/product-offer/configs/settings-v2.js +46 -0
- package/dist/cjs/post-purchase/product/settings/product-offer/index.js +2 -47
- package/dist/cjs/post-purchase/product/settings/product-variants/configs/settings-v2.js +1 -1
- package/dist/cjs/product/components/product-wrap/Product.liquid.js +17 -17
- package/dist/cjs/radio/settings/Radio.js +1 -1
- package/dist/cjs/radio/settings/configs/settings.js +1 -0
- package/dist/cjs/select/settings/Select.js +1 -1
- package/dist/cjs/select/settings/configs/settings.js +1 -0
- package/dist/cjs/shop-pay-installment/settings/ShopPayInstallments.js +2 -2
- package/dist/cjs/shop-pay-installment/settings/configs/settings.js +1 -0
- package/dist/cjs/textarea/settings/Textarea.js +2 -2
- package/dist/cjs/textarea/settings/configs/settings.js +1 -0
- package/dist/cjs/third-party-instant/settings/InstantJudgemeReviews/configs/settings.js +1 -0
- package/dist/cjs/third-party-instant/settings/InstantJudgemeReviews/index.js +2 -2
- package/dist/cjs/third-party-instant/settings/InstantKlaviyo/configs/settings.js +1 -0
- package/dist/cjs/third-party-instant/settings/InstantKlaviyo/index.js +2 -2
- package/dist/cjs/third-party-instant/settings/InstantLooxReviews/configs/settings.js +1 -0
- package/dist/cjs/third-party-instant/settings/InstantLooxReviews/index.js +2 -2
- package/dist/cjs/third-party-instant/settings/InstantYotpoLoyalty/configs/settings.js +1 -0
- package/dist/cjs/third-party-instant/settings/InstantYotpoLoyalty/index.js +2 -2
- package/dist/cjs/third-party-slot/settings/ThirdPartySlot.js +2 -2
- package/dist/cjs/third-party-slot/settings/configs/settings.js +1 -0
- package/dist/esm/builder.js +1 -1
- package/dist/esm/carousel/settings/configs/settings-v2.js +1 -1
- package/dist/esm/collection/components/collection-banner/CollectionBanner.liquid.js +7 -7
- package/dist/esm/grid/components/section/Section.liquid.js +1 -1
- package/dist/esm/hero-banner/components/HeroBannerItem.liquid.js +10 -10
- package/dist/esm/image/common/helpers.js +1 -1
- package/dist/esm/image/common/styles.js +1 -1
- package/dist/esm/image/components/AdaptiveImage.js +1 -1
- package/dist/esm/image/components/Image.js +1 -1
- package/dist/esm/image-detection/settings/ImageDetection.js +2 -2
- package/dist/esm/image-detection/settings/configs/settings.js +1 -0
- package/dist/esm/link/settings/Link.js +1 -1
- package/dist/esm/link/settings/configs/settings.js +1 -0
- package/dist/esm/menu/settings/Menu.js +1 -1
- package/dist/esm/menu/settings/configs/settings.js +1 -0
- package/dist/esm/modal/settings/Modal.js +1 -1
- package/dist/esm/modal/settings/configs/settings.js +1 -0
- package/dist/esm/pagination/settings/Pagination.js +1 -1
- package/dist/esm/pagination/settings/configs/settings.js +1 -0
- package/dist/esm/post-purchase/product/settings/product-offer/configs/settings-v2.js +46 -0
- package/dist/esm/post-purchase/product/settings/product-offer/index.js +2 -47
- package/dist/esm/post-purchase/product/settings/product-variants/configs/settings-v2.js +1 -1
- package/dist/esm/product/components/product-wrap/Product.liquid.js +20 -20
- package/dist/esm/radio/settings/Radio.js +1 -1
- package/dist/esm/radio/settings/configs/settings.js +1 -0
- package/dist/esm/select/settings/Select.js +1 -1
- package/dist/esm/select/settings/configs/settings.js +1 -0
- package/dist/esm/shop-pay-installment/settings/ShopPayInstallments.js +2 -2
- package/dist/esm/shop-pay-installment/settings/configs/settings.js +1 -0
- package/dist/esm/textarea/settings/Textarea.js +2 -2
- package/dist/esm/textarea/settings/configs/settings.js +1 -0
- package/dist/esm/third-party-instant/settings/InstantJudgemeReviews/configs/settings.js +1 -0
- package/dist/esm/third-party-instant/settings/InstantJudgemeReviews/index.js +2 -2
- package/dist/esm/third-party-instant/settings/InstantKlaviyo/configs/settings.js +1 -0
- package/dist/esm/third-party-instant/settings/InstantKlaviyo/index.js +4 -4
- package/dist/esm/third-party-instant/settings/InstantLooxReviews/configs/settings.js +1 -0
- package/dist/esm/third-party-instant/settings/InstantLooxReviews/index.js +2 -2
- package/dist/esm/third-party-instant/settings/InstantYotpoLoyalty/configs/settings.js +1 -0
- package/dist/esm/third-party-instant/settings/InstantYotpoLoyalty/index.js +2 -2
- package/dist/esm/third-party-slot/settings/ThirdPartySlot.js +2 -2
- package/dist/esm/third-party-slot/settings/configs/settings.js +1 -0
- package/dist/types/index.d.ts +581 -750
- package/package.json +3 -3
- package/dist/cjs/image/components/NoDataImage.js +0 -2
- package/dist/cjs/image/hooks/useCheckNoImage.js +0 -1
- package/dist/esm/image/components/NoDataImage.js +0 -2
- package/dist/esm/image/hooks/useCheckNoImage.js +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import{CAROUSEL_ANIMATION as e}from"../../plugins/animation.js";let CarouselSettingsV2Setting=[{id:"itemNumber",label:"",type:"carousel-layout-selector",devices:{desktop:{default:4}}},{id:"sneakPeak",label:"Sneak peek",type:"sneak-peak",devices:{desktop:{default:!1}}},{id:"sneakPeakType",label:"",type:"sneak-peak-type",itemPerRow:2,iconViewBox:"0 0 118 52",enableItemBackground:!0,enableTooltip:!0,options:[{value:"forward",type:"sneak-peak-offset"},{value:"center",type:"sneak-peak-offset"}],devices:{desktop:{default:"forward"}}},{id:"sneakPeakOffsetForward",label:"Ratio",type:"input:slider",min:1,max:100,showDefaultUnit:!0,isNumber:!0,units:["%"],devices:{desktop:{default:50}}},{id:"sneakPeakOffsetCenter",label:"Ratio",type:"input:slider",min:1,max:100,showDefaultUnit:!0,isNumber:!0,units:["%"],devices:{desktop:{default:50}}},{id:"childItem",label:"Item management",type:"child-item",default:["Item 1","Item 2","Item 3","Item 4","Item 5","Item 6"]},{id:"vertical",label:"Vertical layout",type:"toggle",devices:{desktop:{default:!1}}},{id:"controlOverContent",label:"Next & previous position",type:"segment",options:[{label:"Inside",value:!0},{label:"Outside",value:!1}],devices:{desktop:{default:!0}}},{id:"dot",label:"Dots",type:"toggle",devices:{desktop:{default:!0}}},{id:"dotStyle",label:"Dot style",type:"option:illustration",iconViewBox:"0 0 77 48",enableItemBackground:!0,enableTooltip:!0,options:[{label:"Inside",value:"inside",type:"carousel-dot",svgName:"gp-carousel-dot-inside"},{label:"Outside",value:"outside",type:"carousel-dot",svgName:"gp-carousel-dot-outside"}],devices:{desktop:{default:"inside"}}},{id:"dotSize",label:"Dots size",type:"input:stepper",min:1,devices:{desktop:{default:12}}},{id:"dotGapToCarousel",label:"Gap to carousel",type:"input:slider",min:0,max:120,ignoreMax:!0,devices:{desktop:{default:16}}},{id:"dotColor",label:"Dot color",type:"color-picker-v2",devices:{desktop:{default:"bg-1"}},compoDefaultValue:{desktop:{default:"bg-1"}}},{id:"dotActiveColor",label:"Dot color active",type:"color-picker-v2",devices:{desktop:{default:"line-3"}},compoDefaultValue:{desktop:{default:"line-3"}}},{id:"navigationEnable",type:"toggle",devices:{desktop:{default:!0}}},{id:"navigationStyle",type:"option:illustration",iconViewBox:"0 0 77 48",enableItemBackground:!0,label:"Navigation style",enableTooltip:!0,options:[{label:"Outside",value:"outside",type:"slide-control",svgName:"gp-slide-control-outside"},{label:"Inside",value:"inside",type:"slide-control",svgName:"gp-slide-control-inside"}],devices:{desktop:{default:"inside"}}},{id:"arrowCustom",type:"icon",isHideClear:!0,default:`<svg height="20" width="20" data-name="caret-right-regular" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" data-id="508418455613473128">
|
|
2
2
|
<path fill="currentColor" strokelinecap="round" strokelinejoin="round" d="M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"></path></svg>
|
|
3
|
-
`},{id:"arrowCustomColor",label:"Icon color",type:"color-picker-v2",default:"#121212",compoDefaultValue:"#121212"},{id:"arrowIconSize",label:"Number per show",type:"input:stepper",min:1,devices:{desktop:{default:24}}},{id:"arrowButtonSize",type:"size-setting",label:"",devices:{desktop:{default:{shapeValue:"1/1",shapeLinked:!0,width:void 0,height:void 0,padding:{linked:!0,type:"custom",top:"16px",bottom:"16px",left:"16px",right:"16px"}}}},lockShapeValue:!0,hiddenShowMore:!0,hiddenSettings:["gap","proportion","padding"],settingConfig:{width:{name:"Width",units:["px"],displayOptions:["small","medium","large"],sizeConfig:{small:"24px",medium:"32px",large:"40px"}},height:{name:"Height",units:["px"],displayOptions:["small","medium","large","full-height"],sizeConfig:{small:"24px",medium:"32px",large:"40px",full:"100%"}},padding:{paddingConfig:{small:{vertical:"2px",horizontal:"2px"},medium:{vertical:"4px",horizontal:"4px"},large:{vertical:"8px",horizontal:"8px"}}}},sizePaddingInput:"small"},{id:"arrowBackgroundColor",label:"Background Color",type:"color-picker-v2",default:"transparent",compoDefaultValue:"bg-2"},{id:"arrowBorder",type:"border-v2",label:"Border",devices:{desktop:{default:{borderType:"none",border:"none",borderWidth:"1px",width:"1px 1px 1px 1px",isCustom:!0}}},compoDefaultValue:{desktop:{default:{color:"line-3",border:"solid",width:"1px",borderWidth:"1px"}}}},{id:"arrowShadow",type:"shadow-v2",devices:{desktop:{default:{type:"shadow-1",distance:"4px",blur:"4px",spread:"0px",color:"rgba(18, 18, 18, 0.2)",angle:45,enable:!1}}},compoDefaultValue:{desktop:{default:{type:"shadow-1",distance:"4px",blur:"4px",spread:"0px",color:"rgba(18, 18, 18, 0.2)",angle:45,enable:!0}}}},{id:"roundedArrow",type:"corner-v2",label:"Border Radius",devices:{desktop:{default:{btrr:"0px",bblr:"0px",bbrr:"0px",btlr:"0px",radiusType:"none"}}},compoDefaultValue:{desktop:{default:{btrr:"9999px",bblr:"9999px",bbrr:"9999px",btlr:"9999px",radiusType:"circle"}}}},{id:"arrowGapToEachSide",label:"Gap to each side",type:"input:slider",min:0,max:120,ignoreMax:!0,default:"16"},{id:"showWhenHover",label:"Only show when hover",type:"toggle",default:!0},{id:"rtl",label:"Direction",type:"option:value",options:[{value:!0,iconName:"polaris-arrow-left",label:"Right to left"},{value:!1,label:"Left to right",iconName:"polaris-arrow-right"}],default:!0},{id:"autoplay",label:"Autoplay",type:"toggle",default:!1},{id:"autoplayTimeout",label:"Time out",type:"input:slider",min:1,max:4,step:.1,default:2,units:["s"],isNumber:!0,showDefaultUnit:!0,ignoreMax:!0},{id:"pauseOnHover",label:"Pause On Hover",type:"toggle",default:!0,hide:!0},{id:"runPreview",type:"play-pause",hideLabel:!0,default:!1},{id:"enableDrag",label:"Drag to scroll",type:"toggle",devices:{desktop:{default:!0}}},{id:"loop",label:"Infinity loop",type:"toggle",devices:{desktop:{default:!0}}},{id:"animationMode",label:"Animation",type:"select",default:e.EASE_IN.value,options:[{label:"Ease in",value:e.EASE_IN.value},{label:"Ease out",value:e.EASE_OUT.value},{label:"Ease in & out",value:e.EASE_IN_OUT.value}]},{id:"background",type:"background-media-combo",devices:{desktop:{default:{type:"color",color:void 0,image:{src:"",width:0,height:0},size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll"}}},compoDefaultValue:{desktop:{default:{type:"color",color:"bg-2",image:{src:"",width:0,height:0},size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll"}}}},{id:"label",label:"Option Label",type:"toggle",default:!0}],CarouselSettingsV2Style=[{id:"backgroundColor",type:"color-picker-v2",devices:{desktop:{default:void 0}},compoDefaultValue:{desktop:{default:"#DDDDDD"}},enableGradient:!0},{id:"backgroundImage",type:"background-image",devices:{desktop:{default:{}}},compoDefaultValue:{desktop:{default:{image:{src:"https://ucarecdn.com/06075225-af9e-460c-8e3c-6be63c0b773a/-/format/auto/",width:1200,height:480,hiddenSEO:!0}}}}},{id:"playSpeed",label:"Slide speed",type:"input:slider",useOnlyUnitInit:!0,min:100,max:5e3,step:50,units:["ms"],showDefaultUnit:!0,isNumber:!0,default:500},{id:"sizeSetting",type:"size-setting",label:"",devices:{desktop:{default:{shapeLinked:!1,width:"default",height:"auto"}}},settingConfig:{width:{displayOptions:["full","default"],name:"Width"},height:{displayOptions:["auto","small","medium","large"],name:"Height",sizeConfig:{small:"300px",medium:"500px",large:"700px"}}},hiddenSettings:["padding","gap","shape"]},{id:"align",label:"Align",type:"option:value",options:[{label:"Left",value:"left",type:"align",tooltip:"Align left",iconName:"gp-align-left"},{label:"Center",value:"center",type:"align",tooltip:"Align center",iconName:"gp-align-center"},{label:"Right",value:"right",type:"align",tooltip:"Align right",iconName:"gp-align-right"}],devices:{desktop:{default:"center"}}},{id:"borderContent",type:"border-v2",label:"Border",default:{borderType:"none",border:"none",width:"1px 1px 1px 1px",position:"all",borderWidth:"1px",color:"line-3",isCustom:!0},compoDefaultValue:{width:"1px 1px 1px 1px",position:"all",borderWidth:"1px",color:"line-3",border:"solid"}},{id:"roundedContent",type:"corner-v2",label:"Corner",default:{radiusType:"none"}},{id:"hasActiveShadow",type:"toggle",label:"Enable Button Shadow",default:!1},{id:"carouselShadow",type:"shadow-v2",label:"Button Shadow",default:{type:"shadow-1",distance:"4px",blur:"4px",spread:"0px",color:"rgba(18, 18, 18, 0.2)",angle:45,enable:!1},compoDefaultValue:{type:"shadow-1",distance:"4px",blur:"4px",spread:"0px",color:"rgba(18, 18, 18, 0.2)",angle:45,enable:!0}},{id:"spacing",label:"Items spacing",type:"input:slider",min:
|
|
3
|
+
`},{id:"arrowCustomColor",label:"Icon color",type:"color-picker-v2",default:"#121212",compoDefaultValue:"#121212"},{id:"arrowIconSize",label:"Number per show",type:"input:stepper",min:1,devices:{desktop:{default:24}}},{id:"arrowButtonSize",type:"size-setting",label:"",devices:{desktop:{default:{shapeValue:"1/1",shapeLinked:!0,width:void 0,height:void 0,padding:{linked:!0,type:"custom",top:"16px",bottom:"16px",left:"16px",right:"16px"}}}},lockShapeValue:!0,hiddenShowMore:!0,hiddenSettings:["gap","proportion","padding"],settingConfig:{width:{name:"Width",units:["px"],displayOptions:["small","medium","large"],sizeConfig:{small:"24px",medium:"32px",large:"40px"}},height:{name:"Height",units:["px"],displayOptions:["small","medium","large","full-height"],sizeConfig:{small:"24px",medium:"32px",large:"40px",full:"100%"}},padding:{paddingConfig:{small:{vertical:"2px",horizontal:"2px"},medium:{vertical:"4px",horizontal:"4px"},large:{vertical:"8px",horizontal:"8px"}}}},sizePaddingInput:"small"},{id:"arrowBackgroundColor",label:"Background Color",type:"color-picker-v2",default:"transparent",compoDefaultValue:"bg-2"},{id:"arrowBorder",type:"border-v2",label:"Border",devices:{desktop:{default:{borderType:"none",border:"none",borderWidth:"1px",width:"1px 1px 1px 1px",isCustom:!0}}},compoDefaultValue:{desktop:{default:{color:"line-3",border:"solid",width:"1px",borderWidth:"1px"}}}},{id:"arrowShadow",type:"shadow-v2",devices:{desktop:{default:{type:"shadow-1",distance:"4px",blur:"4px",spread:"0px",color:"rgba(18, 18, 18, 0.2)",angle:45,enable:!1}}},compoDefaultValue:{desktop:{default:{type:"shadow-1",distance:"4px",blur:"4px",spread:"0px",color:"rgba(18, 18, 18, 0.2)",angle:45,enable:!0}}}},{id:"roundedArrow",type:"corner-v2",label:"Border Radius",devices:{desktop:{default:{btrr:"0px",bblr:"0px",bbrr:"0px",btlr:"0px",radiusType:"none"}}},compoDefaultValue:{desktop:{default:{btrr:"9999px",bblr:"9999px",bbrr:"9999px",btlr:"9999px",radiusType:"circle"}}}},{id:"arrowGapToEachSide",label:"Gap to each side",type:"input:slider",min:0,max:120,ignoreMax:!0,default:"16"},{id:"showWhenHover",label:"Only show when hover",type:"toggle",default:!0},{id:"rtl",label:"Direction",type:"option:value",options:[{value:!0,iconName:"polaris-arrow-left",label:"Right to left"},{value:!1,label:"Left to right",iconName:"polaris-arrow-right"}],default:!0},{id:"autoplay",label:"Autoplay",type:"toggle",default:!1},{id:"autoplayTimeout",label:"Time out",type:"input:slider",min:1,max:4,step:.1,default:2,units:["s"],isNumber:!0,showDefaultUnit:!0,ignoreMax:!0},{id:"pauseOnHover",label:"Pause On Hover",type:"toggle",default:!0,hide:!0},{id:"runPreview",type:"play-pause",hideLabel:!0,default:!1},{id:"enableDrag",label:"Drag to scroll",type:"toggle",devices:{desktop:{default:!0}}},{id:"loop",label:"Infinity loop",type:"toggle",devices:{desktop:{default:!0}}},{id:"animationMode",label:"Animation",type:"select",default:e.EASE_IN.value,options:[{label:"Ease in",value:e.EASE_IN.value},{label:"Ease out",value:e.EASE_OUT.value},{label:"Ease in & out",value:e.EASE_IN_OUT.value}]},{id:"background",type:"background-media-combo",devices:{desktop:{default:{type:"color",color:void 0,image:{src:"",width:0,height:0},size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll"}}},compoDefaultValue:{desktop:{default:{type:"color",color:"bg-2",image:{src:"",width:0,height:0},size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll"}}}},{id:"label",label:"Option Label",type:"toggle",default:!0}],CarouselSettingsV2Style=[{id:"backgroundColor",type:"color-picker-v2",devices:{desktop:{default:void 0}},compoDefaultValue:{desktop:{default:"#DDDDDD"}},enableGradient:!0},{id:"backgroundImage",type:"background-image",devices:{desktop:{default:{}}},compoDefaultValue:{desktop:{default:{image:{src:"https://ucarecdn.com/06075225-af9e-460c-8e3c-6be63c0b773a/-/format/auto/",width:1200,height:480,hiddenSEO:!0}}}}},{id:"playSpeed",label:"Slide speed",type:"input:slider",useOnlyUnitInit:!0,min:100,max:5e3,step:50,units:["ms"],showDefaultUnit:!0,isNumber:!0,default:500},{id:"sizeSetting",type:"size-setting",label:"",devices:{desktop:{default:{shapeLinked:!1,width:"default",height:"auto"}}},settingConfig:{width:{displayOptions:["full","default"],name:"Width"},height:{displayOptions:["auto","small","medium","large"],name:"Height",sizeConfig:{small:"300px",medium:"500px",large:"700px"}}},hiddenSettings:["padding","gap","shape"]},{id:"align",label:"Align",type:"option:value",options:[{label:"Left",value:"left",type:"align",tooltip:"Align left",iconName:"gp-align-left"},{label:"Center",value:"center",type:"align",tooltip:"Align center",iconName:"gp-align-center"},{label:"Right",value:"right",type:"align",tooltip:"Align right",iconName:"gp-align-right"}],devices:{desktop:{default:"center"}}},{id:"borderContent",type:"border-v2",label:"Border",default:{borderType:"none",border:"none",width:"1px 1px 1px 1px",position:"all",borderWidth:"1px",color:"line-3",isCustom:!0},compoDefaultValue:{width:"1px 1px 1px 1px",position:"all",borderWidth:"1px",color:"line-3",border:"solid"}},{id:"roundedContent",type:"corner-v2",label:"Corner",default:{radiusType:"none"}},{id:"hasActiveShadow",type:"toggle",label:"Enable Button Shadow",default:!1},{id:"carouselShadow",type:"shadow-v2",label:"Button Shadow",default:{type:"shadow-1",distance:"4px",blur:"4px",spread:"0px",color:"rgba(18, 18, 18, 0.2)",angle:45,enable:!1},compoDefaultValue:{type:"shadow-1",distance:"4px",blur:"4px",spread:"0px",color:"rgba(18, 18, 18, 0.2)",angle:45,enable:!0}},{id:"spacing",label:"Items spacing",type:"input:slider",min:0,max:80,ignoreMax:!0,devices:{desktop:{default:16}}},{id:"itemPadding",type:"size-setting",devices:{desktop:{default:{padding:{}}}},hiddenSettings:["shape","gap","width","height"],hiddenShowMore:!0}],CarouselSettingsV2=[{id:"setting",controls:CarouselSettingsV2Setting},{id:"style",controls:CarouselSettingsV2Style}];export{CarouselSettingsV2,CarouselSettingsV2Setting,CarouselSettingsV2Style};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import{template as
|
|
3
|
-
<div ${{...
|
|
2
|
+
import{template as e,RenderIf as l}from"@gem-sdk/core";import o from"../../../grid/components/row/Row.liquid.js";import{createClass as r,createStyle as t}from"@gem-sdk/system";import{getClassContainerBanner as s,getClassContainerBackgoundImage as i,getClassOverlayBanner as a,getClassLinkBanner as m}from"./common/classes.js";import{getDimension as n,getStyleOverlay as c,getStyleContainerBackgoundImage as d}from"./common/styles.js";import{updateBackroundImageSrc as $,defaultImageUrl as g}from"./common/helpers.js";let CollectionBanner=({builderAttrs:f,builderProps:p,setting:u,style:v,children:y,rawChildren:b,advanced:k})=>{let{link:h,layout:j,width:B,verticalGutter:C,horizontalAlign:w,verticalAlign:I}=u??{};$({setting:u,collectionSrc:`{% if collection.image %} url({{ collection.image.src | image_url}}) {% else %} ${g} {% endif %}`});let q=r({...s({builderProps:p,setting:u,advanced:k})}),x=r({...i({setting:u})}),O=r({...a({setting:u})}),R=r({...m()}),S=t({...n({setting:u})}),W=t({...c({setting:u})}),_=t({...d({setting:u,hasCollectionImage:!1})});return e`
|
|
3
|
+
<div ${{...f}} class="${q}" style="${S}">
|
|
4
4
|
<div
|
|
5
5
|
aria-label="Background Image"
|
|
6
6
|
role="banner"
|
|
7
|
-
class="${
|
|
7
|
+
class="${x}"
|
|
8
8
|
style="${_}"
|
|
9
9
|
>
|
|
10
10
|
</div>
|
|
11
11
|
<div aria-label="Overlay" role="banner" class="${O}" style="${W}"> </div>
|
|
12
|
-
${
|
|
13
|
-
href="${
|
|
14
|
-
target="${
|
|
12
|
+
${l(!!h?.link,`<a
|
|
13
|
+
href="${h?.link}"
|
|
14
|
+
target="${h?.target}"
|
|
15
15
|
class="${R}"
|
|
16
16
|
> </a>`)}
|
|
17
|
-
${
|
|
17
|
+
${o({setting:{layout:j,horizontalAlign:w,verticalAlign:I},styles:{verticalGutter:C,width:B,fullWidth:{desktop:!1,tablet:!1,mobile:!1}},style:v,children:y,rawChildren:b})}
|
|
18
18
|
</div>
|
|
19
19
|
`};export{CollectionBanner as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import t from"../row/Row.liquid.js";let Section=i=>t({...i,setting:{...i.setting,isSection:!0}});export{Section as default};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import{template as o,getAspectRatioGlobalSize as
|
|
2
|
-
<div class="${
|
|
1
|
+
import e from"../../grid/components/row/Row.liquid.js";import{template as o,getAspectRatioGlobalSize as t,DEVICES as s,getResponsiveValueByScreen as i}from"@gem-sdk/core";import{createStyle as r,createClass as l,If as a}from"@gem-sdk/system";import m from"../../image/components/AdaptiveImage.liquid.js";import p from"../../video/components/HTML5Embed.liquid.js";import{getContainerStyle as d,getOverlayStyle as n,getRowStyle as c,getAdaptiveStyle as u,getBackgroundStyle as f,getContainBackgroundStyle as y,getYoutubeIframeStyle as b,getHtml5VideoStyle as v}from"../common/styles.js";import{getContainerClasses as g,getOverlayClasses as $,getRowClasses as j,getAdaptivePictureClasses as k,getAdaptiveClasses as h,getBackgroundClasses as w,getContainBackgroundClasses as I,getHtml5VideoClasses as N,getWrapperYoutubeClasses as q,getIframeYoutubeClasses as H,getLazyBackgroundClasses as L}from"../common/classes.js";import{getAspectRatioSettings as z,getBackgroundImageHeroBanner as B,horizontalAlign as C,getWidth as R,getBgImage as A,fallbackImg as T,getEnableBgImageByDevice as x,showVideoType as E,getResponsiveSetting as O}from"../common/helpers.js";import{getImageSrc as S}from"../../image/common/helpers.js";import V from"../../image/components/NextImage.liquid.js";import D from"../../video/components/LiteYouTubeEmbed.liquid.js";import{getYoutubeVideoId as M,youtubeVideoRegex as W}from"../../video/common/helpers.js";import{isRenderHtmlVideo as Y}from"../../grid/components/row/common/helpers.js";let HeroBannerItem=F=>{let{enableLazyLoadImage:G,setting:J,styles:K,children:P,builderProps:Q,rawChildren:U}=F,{layout:X,verticalAlign:Z,enableParallax:_,alt:ee,title:eo}=J??{},{background:et,overlayColor:es,verticalGutter:ei,sizeSetting:er,contentWidth:el,hoverEffect:ea,contentPosition1Col:em,contentPosition2Col:ep}=K??{},ed=!(et?.desktop?.preload||et?.tablet?.preload||et?.mobile?.preload)&&G,en=z(J?.ratioOptions,J?.aspectRatio),ec=O(et||{}).desktop,eu=r({...d(K,J)}),ef=l({...g(J,K)}),ey=r({...n(K)}),eb=l({...$(K)}),ev=r({...c(K)}),eg=l({...j(K,J)}),e$=r({...u(K)}),ej=l({...k()}),ek=l({...h()}),eh=l({...w(ea,ed)}),ew=r({...B(et,ed,!1),...f(K,_,"")}),eI=l({...I()}),eN=r({...y(K)}),eq=l({...N(J?.aspectRatio,!1)}),eH=r({...b(en)}),eL=l({...q()}),ez=r({...v(en)}),eB=l({...H()}),eC=e=>l({...L(e)}),eR=()=>{if(!(et?.desktop?.preload||et?.tablet?.preload||et?.mobile?.preload))return s.map(e=>a(x(e,et),V({src:S(i(A(et),e),e),alt:ee,title:eo,className:eC(e),isDisableAspectStyle:!0,enableLazyLoadImage:G}))).join("")},eA=()=>{if(!E(et))return;if(Y(et))return p({uid:Q?.uid,muted:!0,loop:ec?.loop,controls:!1,autoplay:!0,src:ec?.videoHtml5||"",title:"Video",style:ez,className:eq});let e=ec?.video??"",o=M(e),t=`&loop=false&playlist=${o}&showinfo=0&rel=0&fs=0&enablejsapi=1`;if(ec?.type==="video"&&ec?.videoType==="youtube"&&o&&W.test(e))return D({uid:Q?.uid,id:o,isHeroBanner:!0,autoplay:!0,title:"Video",controls:!1,params:t,adNetwork:!1,noCookie:!0,muted:!0,lazy:ec?.lazyLoad??!0,preload:!0,style:eH,wrapperClass:eL,iframeClass:eB})};return o`
|
|
2
|
+
<div class="${ef}" style="${eu}">
|
|
3
3
|
<div
|
|
4
4
|
aria-label="Background Image"
|
|
5
5
|
role="banner"
|
|
6
|
-
class="${
|
|
7
|
-
style="${
|
|
6
|
+
class="${eI}"
|
|
7
|
+
style="${eN}"
|
|
8
8
|
>
|
|
9
|
-
<div class="${
|
|
10
|
-
${
|
|
11
|
-
${
|
|
9
|
+
<div class="${eh}" style="${ew}">
|
|
10
|
+
${eR()}
|
|
11
|
+
${eA()}
|
|
12
12
|
</div>
|
|
13
|
-
${
|
|
13
|
+
${a(!!es,o`<div aria-label="Overlay" role="banner" class="${eb}" style="${ey}"> </div>`)}
|
|
14
14
|
</div>
|
|
15
|
-
${
|
|
16
|
-
${
|
|
15
|
+
${e({className:eg,style:ev,setting:{layout:X,horizontalAlign:C(X,em,ep),verticalAlign:Z},styles:{verticalGutter:ei,width:R(el),fullWidth:{desktop:!1,tablet:!1,mobile:!1}},children:P,rawChildren:U})}
|
|
16
|
+
${m({pictureClass:ej,srcSet:A(et),className:ek,aspectRatio:t(er),style:e$,alt:ee,title:eo,enableLazyLoadImage:ed,fallbackImg:T})}
|
|
17
17
|
</div>
|
|
18
18
|
`};export{HeroBannerItem as default};
|
|
@@ -9,4 +9,4 @@ import{getCornerCSSFromGlobal as e,getAspectRatioGlobalSize as t,makeStyleRespon
|
|
|
9
9
|
<rect width="${e}" height="${t}" fill="rgba(51, 51, 51, 0)" />
|
|
10
10
|
<rect id="r" width="${e}" height="${t}" fill="url(#g-${e}-${t})" />
|
|
11
11
|
<animate xlink:href="#r" attributeName="x" from="-${e}" to="${e}" dur="1s" repeatCount="indefinite" />
|
|
12
|
-
</svg>`,toBase64=e=>"undefined"==typeof window?Buffer.from(e).toString("base64"):window.btoa(e),createBlurDataURL=(e,t)=>`data:image/svg+xml;base64,${toBase64(shimmer(e,t))}`,IMAGE_PLACEHOLDER="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=",FALLBACK_IMAGE="https://cdn.shopify.com/s/assets/no-image-2048-5e88c1b20e087fb7bbe9a3771824e743c244f437e4f8ba93bbf7b11b53f7824c_large.gif",NEXT_IMAGE_CONFIG={DEFAULT_SIZES:"100vw",DEFAULT_ALT:"Alt image",DEFAULT_SRC:"https://ucarecdn.com/465c7cbb-f087-4d1d-8f08-f6665179f02f/-/format/auto/-/quality/lighter/placeholder-1.png",DEFAULT_WIDTH_PROPS:800,DEFAULT_HEIGHT_PROPS:533},getAdaptiveImageData=e=>{let{srcSet:t,fallbackImg:i}=e,r=e=>{let{isLiquid:r}=e??{},a=getImageSrc(t?.desktop,"desktop",!r)||i||FALLBACK_IMAGE,l=getImageSrc(t?.tablet,"tablet",!r)||
|
|
12
|
+
</svg>`,toBase64=e=>"undefined"==typeof window?Buffer.from(e).toString("base64"):window.btoa(e),createBlurDataURL=(e,t)=>`data:image/svg+xml;base64,${toBase64(shimmer(e,t))}`,IMAGE_PLACEHOLDER="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=",FALLBACK_IMAGE="https://cdn.shopify.com/s/assets/no-image-2048-5e88c1b20e087fb7bbe9a3771824e743c244f437e4f8ba93bbf7b11b53f7824c_large.gif",NEXT_IMAGE_CONFIG={DEFAULT_SIZES:"100vw",DEFAULT_ALT:"Alt image",DEFAULT_SRC:"https://ucarecdn.com/465c7cbb-f087-4d1d-8f08-f6665179f02f/-/format/auto/-/quality/lighter/placeholder-1.png",DEFAULT_WIDTH_PROPS:800,DEFAULT_HEIGHT_PROPS:533},getAdaptiveImageData=e=>{let{srcSet:t,fallbackImg:i}=e,r=e=>{let{isLiquid:r}=e??{},a=getImageSrc(t?.desktop,"desktop",!r)||i||FALLBACK_IMAGE,l=getImageSrc(t?.tablet,"tablet",!r)||i||FALLBACK_IMAGE,g=getImageSrc(t?.mobile,"mobile",!r)||i||FALLBACK_IMAGE;return{srcTablet:l,srcMobile:g,srcDesktop:a}};return{getDeviceSource:r}},getSrcSet=(e,t,i)=>e?getSrcSetLiquid(e,t):getSrcSetLink(i),isCannotResizeImage=e=>e.includes("webp")||e.includes("jfif")||e.includes(".svg")||e.includes(".tiff"),getSrcSetLiquid=(e,t)=>{let i=replaceBackupFileKeyFileContent(e);return isCannotResizeImage(e)?"FILE_CONTENT"==t?`{{ '${i}' | file_url }} 768w, {{ '${i}' | file_url }} 1024w, {{ '${i}' | file_url }} 1440w`:`{{ '${e}' | asset_url }} 768w, {{ '${e}' | asset_url }} 1024w, {{ '${e}' | asset_url }} 1440w`:"FILE_CONTENT"==t?`{{ '${i}' | file_img_url: '768x' }} 768w, {{ '${i}' | file_img_url: '1024x' }} 1024w, {{ '${i}' | file_img_url: 'master' }} 1440w`:`{{ '${e}' | asset_img_url: '768x' }} 768w, {{ '${e}' | asset_img_url: '1024x' }} 1024w, {{ '${e}' | asset_img_url: 'master' }} 1440w`},getSrcSetLink=e=>e,getImageSrc=(e,t,i)=>{if(e?.metafieldDefinitionKey)return getImageMetafieldDefinitionKey(e?.metafieldDefinitionKey);let r=e?.backupFilePath??e?.src??"";if(i)r=e?.src||"";else if(e?.backupFileKey){let t=getNewBackupFileKey(e.backupFileKey,e?.src??"");"THEME"!==e.storage&&e.storage?"FILE_CONTENT"===e.storage&&(r=`{{ "${replaceBackupFileKeyFileContent(t)}" | file_url }}`):r=`{{ "${t}" | asset_url }}`}if(t&&r?.includes("cdn.shopify"))switch(t){case"tablet":r=r?.replace(regexReplaceEndDot,"_1024x.");break;case"mobile":r=r?.replace(regexReplaceEndDot,"_768x.")}return r},getImageMetafieldDefinitionKey=e=>`{{${e} | file_url}}`,regexReplaceEndDot=/\.(?=[^.]*$)/,replaceBackupFileKeyFileContent=e=>e.replace(/\.jpeg|\.jfif/g,".jpg"),getNewBackupFileKey=(e,t)=>{let i=t?.match(/\/files\/([^\/]+\.(jpg|jpeg|gif|png|webp|svg))/)?.[1];return i&&i!=e?i:e};function resizeImage(e,t){let i=e.match(/\.webp/g)?.length,r=replaceRegexLastMatch({str:e,reg:/_(pico|icon|thumb|small|compact|medium|large|grande|original|1024x1024|2048x2048|master)+\./g,newString:"."});if(i)return r;let a=replaceRegexLastMatch({str:r,reg:/\.jpg|\.png|\.gif|\.jpeg/g,newString:t,isAdd:!0});return a}let replaceRegexLastMatch=e=>{let t=e.str,i=e.str.match(e.reg)?.length;if(i){let r,a=1;for(;null!==(r=e.reg.exec(e.str));){if(a===i){let i=e.reg.lastIndex,a=i-r[0].length;e.isAdd&&(e.newString="_"+e.newString+r),t=t.slice(0,a)+e.newString+t.slice(i,t.length)}a++}}return t},getItemWidth=(e,t)=>{let i=getCurrentDevice(),r=t?.[i]||"auto";if(!r||"auto"===r||r.includes("%"))return e;let a=Number(r.replace("px",""));return a>e?e:Number(r.replace("px",""))},getImageWidthFollowByQuality=e=>{let{itemWidthParam:t,imageWidthSetting:i,qualityType:r,qualityPercent:l}=e,g=getCurrentDevice(),o=getItemWidth(t,i),s=a(r,g,"finest"),c=a(l,g,100);switch(s){case"finest":default:return"auto";case"high":return Math.round(1.5*o)||1;case"medium":return Math.round(o)||1;case"custom":return Math.round(o*(Number(c)/100))||1}},getWidthOfFeatureImageSetting=e=>{let t={desktop:"100%",tablet:"100%",mobile:"100%"};return r.forEach(i=>{let r=a(e,i)?.width||"100%";t[i]=r}),t},getWidthOfImageListSetting=e=>{let t={desktop:"100%",tablet:"100%",mobile:"100%"};return r.forEach(i=>{let r=a(e,i)?.width||"100%";t[i]=r}),t},getWidthOfListImageInDom=e=>{let t=document.querySelectorAll(`.gem-slider-item-${e}.gp-gallery-image-item`),i=0;return t.forEach(e=>{e.offsetWidth>i&&(i=e.offsetWidth)}),i},getWidthOfFeatureImageInDom=e=>{let t=document.querySelectorAll(`.gem-slider-item-${e}.gp-ft-image-item`),i=0;return t.forEach(e=>{e.offsetWidth>i&&(i=e.offsetWidth)}),i},handleSetSrcForProductImageList=e=>{let{shapeByLayout:t,qualityType:i,qualityPercent:r,builderPropUID:a}=e,l=document.querySelectorAll(`.gem-slider-item-${a}.gp-gallery-image-item`),g=getWidthOfImageListSetting(t),o=getWidthOfListImageInDom(a);l.forEach(e=>{handleSetSrcForGalleryImage({item:e,settingWidth:g,width:o,qualityType:i,qualityPercent:r})})},handleSetSrcForFeatureProductImage=e=>{let{ftShape:t,qualityType:i,qualityPercent:r,builderPropUID:a}=e,l=document.querySelectorAll(`.gem-slider-item-${a}.gp-ft-image-item`),g=getWidthOfFeatureImageSetting(t),o=getWidthOfFeatureImageInDom(a);l.forEach(e=>{handleSetSrcForGalleryImage({item:e,settingWidth:g,width:o,qualityType:i,qualityPercent:r})})},handleSetSrcForGalleryImage=e=>{let{item:t,settingWidth:i,width:r,qualityType:a,qualityPercent:l}=e,g=getCurrentDevice(),o=t.querySelector("img");if(o){let e=getImageWidthFollowByQuality({itemWidthParam:r,imageWidthSetting:i,qualityType:a,qualityPercent:l}),t=o.getAttribute("base-src");if(!t)return;let s=getImageSrcByQuality(e,t),c=getImageSrcSet(t,s,g);o.setAttribute("srcset",c)}},getImageSrcByQuality=(e,t)=>"auto"===e?t:resizeImage(t,`${e}x`),getImageSrcSet=(e,t,i)=>`${"mobile"===i&&e!==t?t:resizeImage(e,"768x")} 767w, ${"tablet"===i&&e!==t?t:resizeImage(e,"1024x")} 1023w, ${"desktop"===i&&e!==t?t:resizeImage(e,"1920x")} 1440w`,getCurrentDevice=()=>window.innerWidth<768?"mobile":window.innerWidth>=768&&window.innerWidth<1025?"tablet":"desktop";export{FALLBACK_IMAGE,IMAGE_PLACEHOLDER,NEXT_IMAGE_CONFIG,composeAspectRatio,createBlurDataURL,getAdaptiveImageData,getAspectRatio,getAspectRatioNextImage,getCurrentDevice,getImageSrc,getImageWidthFollowByQuality,getNewBackupFileKey,getResponsiveObjectFit,getSrcSet,handleSetSrcForFeatureProductImage,handleSetSrcForProductImageList,isCannotResizeImage,overwriteDefaultRadius,regexReplaceEndDot,replaceBackupFileKeyFileContent,resizeImage,safeStringify,shimmer,toBase64};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeStyleResponsive as e,getBorderStyle as t,getBorderRadiusStyle as a,getStyleShadow as
|
|
1
|
+
import{makeStyleResponsive as e,getBorderStyle as t,getBorderRadiusStyle as a,getStyleShadow as r,getWidthByShapeGlobalSize as g,makeWidth as i,getHeightByShapeGlobalSize as s,makeStyleResponsiveState as l}from"@gem-sdk/core";import{overwriteDefaultRadius as d,getResponsiveObjectFit as p,getAspectRatioNextImage as o}from"./helpers.js";let getContainerStyles=(t,a)=>({...t,...e("ta",a?.align)}),getWrapperStyles=t=>({"border-radius":"inherit",...e("jc",t?.align)}),getImageStyles=(e,g)=>{let{wrapperBorder:i,borderRadius:s}=e??{};return{...getImageWidth(e),...getImageHeight(e),...t(i),...a(s),...d(g?.builderData?.advanced?.rounded),...r({value:e?.shadow,styleAppliedFor:"box-shadow",isEnableShadow:e?.shadow?.enable&&e?.shadow?.type!=="none"})}},getNextImageStyles=({width:t,height:a,setting:r,isDisableObjectFit:g,isDisableAspectStyle:i})=>{let{layout:s,aspectRatio:l}=r??{},d=p({layout:s,isDisableObjectFit:g}),h=o({isDisableAspectStyle:i,objectFits:d,aspectRatio:l,width:t,height:a});return{...e("aspect",h),...d}},getAdaptiveImageStyles=({layout:t,aspectRatio:a,borderRadius:r})=>{let g=p({layout:t,isDisableObjectFit:!1});return{...l("radius",r),...e("aspect",a),...g}},getAdaptivePictureStyles=()=>({"border-radius":"inherit"}),getImageWidth=t=>{let a=t?.shape?e("w",g(t.shape)):e("w",i(t?.width,t?.fullWidth));return a},getImageHeight=t=>e("h",s(t?.shape));export{getAdaptiveImageStyles,getAdaptivePictureStyles,getContainerStyles,getImageStyles,getNextImageStyles,getWrapperStyles};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import{jsx as e,Fragment as s,jsxs as a}from"react/jsx-runtime";import{
|
|
2
|
+
import{jsx as e,Fragment as s,jsxs as a}from"react/jsx-runtime";import{FALLBACK_IMAGE as r,getAdaptiveImageData as t,IMAGE_PLACEHOLDER as m}from"../common/helpers.js";import{createAttr as o,createStyleReact as i,createStyle as l,createClass as d}from"@gem-sdk/system";import{getAdaptiveImageClasses as c}from"../common/classes.js";import{getAdaptivePictureStyles as p,getAdaptiveImageStyles as g}from"../common/styles.js";let AdaptiveImage=n=>{let{alt:f,style:h,srcSet:u,layout:y,priority:x,className:j,aspectRatio:v,borderRadius:k,pictureClass:w,enableLazyLoadImage:A,...I}=n,{getDeviceSource:z}=t(n),{srcTablet:L,srcMobile:N}=z(),S=o({loading:x?"eager":"lazy",src:u?.desktop?.src||r}),b=i({...p()}),P=l({...g({layout:y,aspectRatio:v,borderRadius:k}),...h}),q=d({...c({className:j,hasLazyLoad:A})}),B=()=>a(s,{children:[N&&e("source",{media:"(max-width: 767px)",srcSet:A?m:N}),L&&e("source",{media:"(max-width: 1024px)",srcSet:A?m:L})]}),C=()=>e("img",{...I,...S,alt:f,width:"100%",style:P,className:q,draggable:"false"});return e(s,{children:a("picture",{style:b,className:w,children:[B(),C()]})})};AdaptiveImage.defaultProps={layout:{desktop:"cover"}};export{AdaptiveImage as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import{jsxs as e,jsx as s}from"react/jsx-runtime";import{createStyleReact as
|
|
2
|
+
import{jsxs as e,jsx as s}from"react/jsx-runtime";import{createStyleReact as t,createStyle as m,createClass as r,createAttr as o,If as a}from"@gem-sdk/system";import l from"./AdaptiveImage.js";import i from"./NextImage.js";import{getWrapperStyles as p,getImageStyles as c,getContainerStyles as n}from"../common/styles.js";import{getWrapperClasses as d,getImageClasses as f,getContainerClasses as j}from"../common/classes.js";import{getContainerAttrs as g,getAdaptiveImageAttrs as u,getNextImageAttrs as y,getLinkWrapperAttrs as N}from"../common/attrs.js";import{getLinkData as h}from"../../helpers.js";let Image=({style:I,styles:v,setting:x,children:k,advanced:C,className:W,builderAttrs:A,builderProps:L,onLoad:b,onClick:q})=>{let{imageLink:w,isAdaptive:z,enableImageLink:B}=x??{},{Wrapper:D,urlData:E}=h({defaultWrap:"div",setting:w,enableImageLink:B}),F=t(p(v)),G=m(c(v,L)),H=m(n(I,v)),J=r(d()),K=r(f(W,v)),M=r(j(L?.uid,C?.cssClass,v?.shape)),O=o(g(A,L?.uid)),P=N({urlData:E,imageLink:w,title:x?.title}),Q=u({styles:v,setting:x}),R=y({styles:v,setting:x}),S=()=>a(z,s(l,{...Q,style:G,className:K}),s(i,{...R,style:G,className:K,onLoad:b}));return e("div",{role:"presentation",...O,style:H,className:M,onClick:q,children:[s(D,{...P,style:F,className:J,children:S()}),k]})};export{Image as default};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
let config={tag:"ImageDetection",label:"ImageDetection",icon:`
|
|
1
|
+
import{ImageDetectionSettings as e}from"./configs/settings.js";let config={tag:"ImageDetection",label:"ImageDetection",icon:`
|
|
2
2
|
|
|
3
|
-
`,settings:
|
|
3
|
+
`,settings:e,presets:[{id:"image-detection",name:{en:"ImageDetection"},icon:{desktop:'<span style="font-size: 20px; line-height: 1.5; font-weight: 500;">ID</span>'},components:[{tag:"ImageDetection"}]}],editorConfigs:{component:{noSetting:!0,noDelete:!0,noDuplicate:!0,noDragDrop:!0},placeholder:{notAppendBeforeAfter:!0},toolbar:{hide:!0,parent:!0},sideBar:{hide:!0,tab:{setting:{hide:!0}}}}};export{config as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let ImageDetectionSettings=[{id:"setting",controls:[{id:"imagePreviewUrl",type:"input"},{id:"timeout",type:"input"},{id:"loading",type:"input",default:!0}]},{id:"style",controls:[]}];export{ImageDetectionSettings};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let config={tag:"Link",label:"Link",settings:
|
|
1
|
+
import{LinkSettings as t}from"./configs/settings.js";let config={tag:"Link",label:"Link",settings:t};export{config as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let LinkSettings=[{id:"setting",controls:[{id:"type",label:"Link Type",type:"select",options:[{value:"auto",label:"Auto"},{value:"product",label:"Product"},{value:"collection",label:"Collection"},{value:"custom",label:"Custom"}],default:"auto"},{id:"href",label:"Href",type:"input",default:"#",hide:!0},{id:"target",label:"Open in",type:"select",options:[{value:"_self",label:"Current Tab"},{value:"_blank",label:"New Tab"},{value:"_top",label:"Top"}],default:"_self"}]}];export{LinkSettings};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{MenuSettings as t}from"./configs/settings.js";let config={tag:"Menu",label:"Menu",settings:t};export{config as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let MenuSettings=[{id:"setting",controls:[{id:"submenuStyle",type:"select",label:"Submenu Style",options:[{value:"DropdownMenu",label:"Dropdown Menu"},{value:"MegaMenu",label:"Mega Menu"}],default:"DropdownMenu"},{id:"data",type:"menu",label:"Edit Menu",default:{ROOT:{id:"ROOT",title:"Root",childrens:["1","2","3"]},1:{id:"1",title:"Menu 1",link:"",childrens:["13","14"]},2:{id:"2",title:"Menu 2",link:"",childrens:["6","7","8"]},6:{id:"6",title:"Sub Menu 2.1",childrens:[]},7:{id:"7",title:"Sub Menu 2.2",childrens:["10","11"]},8:{id:"8",title:"Sub Menu 2.3",childrens:["12"]},9:{id:"9",title:"Sub Menu 2.4",childrens:[]},10:{id:"10",title:"Sub Menu 2.2.1",childrens:[]},11:{id:"11",title:"Sub Menu 2.2.2",childrens:[]},12:{id:"12",title:"Sub Menu 2.3.1",childrens:[]},3:{id:"3",title:"Menu 3",link:"",childrens:[]},13:{id:"13",title:"Sub Menu 1.1",link:"",childrens:[]},14:{id:"14",title:"Sub Menu 1.2",link:"",childrens:[]}}}]},{id:"style",controls:[{id:"typography",type:"typography",label:"Typography",default:{type:"paragraph-1"}},{id:"behavior-state",type:"behavior-state",controls:[{id:"color",label:"Text Color",type:"colorpicker",default:{normal:"brand",hover:"brand"},state:{normal:!0,hover:!0}},{id:"hasTextShadow",type:"toggle",label:"Enable Text Shadow",default:{hover:!1,normal:!1},state:{normal:!0,hover:!0}},{id:"textShadow",type:"textShadow",label:"Text Shadow",default:{hover:{type:"shadow-1"},normal:{type:"shadow-1"}},hideOnState:{normal:!0,hover:!0},state:{normal:!0,hover:!0}}]},{id:"transform",label:"Text Transform",type:"select",options:[{value:"default",label:"Default"},{value:"capitalize",label:"Capitalize"},{value:"uppercase",label:"Uppercase"},{value:"lowercase",label:"Lowercase"}],default:"default"}]}];export{MenuSettings};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let config={tag:"Modal",label:"Modal",settings:
|
|
1
|
+
import{ModalSettings as t}from"./configs/settings.js";let config={tag:"Modal",label:"Modal",settings:t};export{config as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let ModalSettings=[{id:"setting",controls:[{id:"open",type:"toggle",label:"Open",default:!0}]},{id:"style",controls:[]}];export{ModalSettings};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let config={tag:"Pagination",label:"Pagination",settings:
|
|
1
|
+
import{PaginationSettings as t}from"./configs/settings.js";let config={tag:"Pagination",label:"Pagination",settings:t};export{config as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let PaginationSettings=[{id:"setting",controls:[{id:"defaultCurrent",type:"input:number",label:"Default Page",info:"Default initial page number",default:6},{id:"total",type:"input:number",label:"Total data",info:"Total number of data items",default:500},{id:"disabled",type:"toggle",label:"Disable pagination",default:!1},{id:"pageSize",type:"input:number",label:"Page Size",info:"Number of data items per page",default:10},{id:"align",label:"Align",type:"select",options:[{label:"Left",value:"left",tooltip:"Align left"},{label:"Center",value:"center",tooltip:"Align center"},{label:"Right",value:"right",tooltip:"Align right"}],devices:{desktop:{default:"left"}}}]},{id:"style",controls:[]}];export{PaginationSettings};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import{postPurchaseViewSpacing as e}from"../../../../common/constants.js";let SettingV2=[{id:"setting",controls:[{id:"layout",type:"layout",isProductLayout:!0,devices:{desktop:{default:{cols:[6,6],display:"fill"}}}},{id:"horizontalAlign",type:"segment",options:[{label:"Start",value:"start",icon:`<svg width="20" height="20" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M1.91699 1C2.19314 1 2.41699 1.22386 2.41699 1.5L2.41699 14.5C2.41699 14.7761 2.19313 15 1.91699 15C1.64085 15 1.41699 14.7761 1.41699 14.5V1.5C1.41699 1.22386 1.64085 1 1.91699 1Z" fill="currentColor"/>
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M2.91699 5C2.91699 4.17157 3.58857 3.5 4.41699 3.5H9.41699C10.2454 3.5 10.917 4.17157 10.917 5V6C10.917 6.82843 10.2454 7.5 9.41699 7.5H4.41699C3.58857 7.5 2.91699 6.82843 2.91699 6V5ZM4.41699 4.5C4.14085 4.5 3.91699 4.72386 3.91699 5V6C3.91699 6.27614 4.14085 6.5 4.41699 6.5H9.41699C9.69314 6.5 9.91699 6.27614 9.91699 6V5C9.91699 4.72386 9.69314 4.5 9.41699 4.5H4.41699Z" fill="currentColor"/>
|
|
4
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.41699 8.5C3.58857 8.5 2.91699 9.17157 2.91699 10V11C2.91699 11.8284 3.58857 12.5 4.41699 12.5H12.417C13.2454 12.5 13.917 11.8284 13.917 11V10C13.917 9.17157 13.2454 8.5 12.417 8.5H4.41699ZM3.91699 10C3.91699 9.72386 4.14085 9.5 4.41699 9.5H12.417C12.6931 9.5 12.917 9.72386 12.917 10V11C12.917 11.2761 12.6931 11.5 12.417 11.5H4.41699C4.14085 11.5 3.91699 11.2761 3.91699 11V10Z" fill="currentColor"/>
|
|
5
|
+
</svg>
|
|
6
|
+
`},{label:"Center",value:"center",icon:`<svg width="20" height="20" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
7
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M8 1C8.27614 1 8.5 1.22386 8.5 1.5V3.5H10.5C11.3284 3.5 12 4.17157 12 5V6C12 6.82843 11.3284 7.5 10.5 7.5H8.5V8.5H12C12.8284 8.5 13.5 9.17157 13.5 10V11C13.5 11.8284 12.8284 12.5 12 12.5H8.5V14.5C8.5 14.7761 8.27614 15 8 15C7.72386 15 7.5 14.7761 7.5 14.5V12.5H4C3.17157 12.5 2.5 11.8284 2.5 11V10C2.5 9.17157 3.17157 8.5 4 8.5H7.5V7.5H5.5C4.67157 7.5 4 6.82843 4 6V5C4 4.17157 4.67157 3.5 5.5 3.5H7.5V1.5C7.5 1.22386 7.72386 1 8 1ZM12 11.5C12.2761 11.5 12.5 11.2761 12.5 11V10C12.5 9.72386 12.2761 9.5 12 9.5H4C3.72386 9.5 3.5 9.72386 3.5 10V11C3.5 11.2761 3.72386 11.5 4 11.5H12ZM10.5 6.5H5.5C5.22386 6.5 5 6.27614 5 6V5C5 4.72386 5.22386 4.5 5.5 4.5H10.5C10.7761 4.5 11 4.72386 11 5V6C11 6.27614 10.7761 6.5 10.5 6.5Z" fill="currentColor"/>
|
|
8
|
+
</svg>
|
|
9
|
+
`},{label:"End",value:"end",icon:`<svg width="20" height="20" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
10
|
+
<path d="M14.084 15C14.3601 15 14.584 14.7761 14.584 14.5L14.584 1.5C14.584 1.22386 14.3601 1 14.084 1C13.8078 1 13.584 1.22386 13.584 1.5L13.584 14.5C13.584 14.7761 13.8078 15 14.084 15Z" fill="currentColor"/>
|
|
11
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.08398 6C5.08398 6.82843 5.75556 7.5 6.58398 7.5H11.584C12.4124 7.5 13.084 6.82843 13.084 6V5C13.084 4.17157 12.4124 3.5 11.584 3.5L6.58398 3.5C5.75556 3.5 5.08398 4.17157 5.08398 5V6ZM6.58398 6.5C6.30784 6.5 6.08398 6.27614 6.08398 6V5C6.08398 4.72386 6.30784 4.5 6.58398 4.5L11.584 4.5C11.8601 4.5 12.084 4.72386 12.084 5V6C12.084 6.27614 11.8601 6.5 11.584 6.5H6.58398Z" fill="currentColor"/>
|
|
12
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M3.58398 12.5C2.75556 12.5 2.08398 11.8284 2.08398 11L2.08398 10C2.08398 9.17157 2.75556 8.5 3.58398 8.5H11.584C12.4124 8.5 13.084 9.17157 13.084 10V11C13.084 11.8284 12.4124 12.5 11.584 12.5L3.58398 12.5ZM3.08398 11C3.08398 11.2761 3.30784 11.5 3.58398 11.5L11.584 11.5C11.8601 11.5 12.084 11.2761 12.084 11V10C12.084 9.72386 11.8601 9.5 11.584 9.5L3.58398 9.5C3.30784 9.5 3.08398 9.72386 3.08398 10L3.08398 11Z" fill="currentColor"/>
|
|
13
|
+
</svg>
|
|
14
|
+
`}],devices:{desktop:{default:"start"}}},{id:"verticalAlign",type:"segment",options:[{label:"Start",value:"start",icon:`<svg width="20" height="20" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
15
|
+
<path d="M15.5 2.25C15.5 2.52614 15.2761 2.75 15 2.75L2 2.75C1.72386 2.75 1.5 2.52614 1.5 2.25C1.5 1.97386 1.72386 1.75 2 1.75L15 1.75C15.2761 1.75 15.5 1.97386 15.5 2.25Z" fill="currentColor"/>
|
|
16
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.5 3.25C12.3284 3.25 13 3.92157 13 4.75L13 9.75C13 10.5784 12.3284 11.25 11.5 11.25L10.5 11.25C9.67157 11.25 9 10.5784 9 9.75L9 4.75C9 3.92157 9.67157 3.25 10.5 3.25L11.5 3.25ZM12 4.75C12 4.47386 11.7761 4.25 11.5 4.25L10.5 4.25C10.2239 4.25 10 4.47386 10 4.75L10 9.75C10 10.0261 10.2239 10.25 10.5 10.25L11.5 10.25C11.7761 10.25 12 10.0261 12 9.75L12 4.75Z" fill="currentColor"/>
|
|
17
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M8 4.75C8 3.92157 7.32843 3.25 6.5 3.25L5.5 3.25C4.67157 3.25 4 3.92157 4 4.75L4 12.75C4 13.5784 4.67157 14.25 5.5 14.25L6.5 14.25C7.32843 14.25 8 13.5784 8 12.75L8 4.75ZM6.5 4.25C6.77614 4.25 7 4.47386 7 4.75L7 12.75C7 13.0261 6.77614 13.25 6.5 13.25L5.5 13.25C5.22386 13.25 5 13.0261 5 12.75L5 4.75C5 4.47386 5.22386 4.25 5.5 4.25L6.5 4.25Z" fill="currentColor"/>
|
|
18
|
+
</svg>
|
|
19
|
+
`},{label:"Center",value:"center",icon:`<svg width="20" height="20" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
20
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M14.5 8.5C14.5 8.77614 14.2921 9 14.0357 9L12.1786 9L12.1786 11C12.1786 11.8284 11.555 12.5 10.7857 12.5L9.85714 12.5C9.08789 12.5 8.46429 11.8284 8.46429 11L8.46429 9L7.53571 9L7.53571 12.5C7.53571 13.3284 6.91211 14 6.14286 14L5.21429 14C4.44503 14 3.82143 13.3284 3.82143 12.5L3.82143 9L1.96429 9C1.70787 9 1.5 8.77614 1.5 8.5C1.5 8.22386 1.70787 8 1.96429 8L3.82143 8L3.82143 4.5C3.82143 3.67157 4.44503 3 5.21429 3L6.14286 3C6.91211 3 7.53572 3.67157 7.53572 4.5L7.53571 8L8.46429 8L8.46429 6C8.46429 5.17157 9.08789 4.5 9.85714 4.5L10.7857 4.5C11.555 4.5 12.1786 5.17157 12.1786 6L12.1786 8L14.0357 8C14.2921 8 14.5 8.22386 14.5 8.5ZM4.75 12.5C4.75 12.7761 4.95787 13 5.21429 13L6.14286 13C6.39928 13 6.60714 12.7761 6.60714 12.5L6.60714 4.5C6.60714 4.22386 6.39928 4 6.14286 4L5.21429 4C4.95787 4 4.75 4.22386 4.75 4.5L4.75 12.5ZM9.39286 11L9.39286 6C9.39286 5.72386 9.60073 5.5 9.85714 5.5L10.7857 5.5C11.0421 5.5 11.25 5.72386 11.25 6L11.25 11C11.25 11.2761 11.0421 11.5 10.7857 11.5L9.85714 11.5C9.60073 11.5 9.39286 11.2761 9.39286 11Z" fill="currentColor"/>
|
|
21
|
+
</svg>
|
|
22
|
+
`},{label:"End",value:"end",icon:`<svg width="20" height="20" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
23
|
+
<path d="M1.5 14.5C1.5 14.2239 1.72386 14 2 14L15 14C15.2761 14 15.5 14.2239 15.5 14.5C15.5 14.7761 15.2761 15 15 15L2 15C1.72386 15 1.5 14.7761 1.5 14.5Z" fill="currentColor"/>
|
|
24
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.5 13.5C4.67157 13.5 4 12.8284 4 12L4 7C4 6.17157 4.67157 5.5 5.5 5.5L6.5 5.5C7.32843 5.5 8 6.17157 8 7L8 12C8 12.8284 7.32843 13.5 6.5 13.5L5.5 13.5ZM5 12C5 12.2761 5.22386 12.5 5.5 12.5L6.5 12.5C6.77614 12.5 7 12.2761 7 12L7 7C7 6.72386 6.77614 6.5 6.5 6.5L5.5 6.5C5.22386 6.5 5 6.72386 5 7L5 12Z" fill="currentColor"/>
|
|
25
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M9 12C9 12.8284 9.67157 13.5 10.5 13.5L11.5 13.5C12.3284 13.5 13 12.8284 13 12L13 4C13 3.17157 12.3284 2.5 11.5 2.5L10.5 2.5C9.67157 2.5 9 3.17157 9 4L9 12ZM10.5 12.5C10.2239 12.5 10 12.2761 10 12L10 4C10 3.72386 10.2239 3.5 10.5 3.5L11.5 3.5C11.7761 3.5 12 3.72386 12 4L12 12C12 12.2761 11.7761 12.5 11.5 12.5L10.5 12.5Z" fill="currentColor"/>
|
|
26
|
+
</svg>
|
|
27
|
+
`},{label:"Between",value:"space-between",icon:`<svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
28
|
+
<path d="M2.00293 14.498L15.0037 14.498" stroke="currentColor" stroke-linecap="round"/>
|
|
29
|
+
<path d="M2.00293 1.49805L15.0037 1.49805" stroke="currentColor" stroke-linecap="round"/>
|
|
30
|
+
<rect x="2.5" y="6" width="3" height="12" rx="1" transform="rotate(-90 2.5 6)" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
|
|
31
|
+
<rect x="2.5" y="13" width="3" height="12" rx="1" transform="rotate(-90 2.5 13)" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
|
|
32
|
+
</svg>
|
|
33
|
+
`}],devices:{desktop:{default:"start"}}},{id:"isSyncProduct",type:"sync-product-properties",default:!0},{id:"variantDisplay",type:"group",label:"Variant Display",controls:[{id:"selectVariantDefault",type:"select-variant",label:"Select Default Variant",hide:!0}]},{id:"productSetting",type:"product-offers",label:"Product source",default:{productIds:[]}},{id:"productOfferLayout",type:"option:illustration",enableTooltip:!0,label:"Position",options:[{label:"Align center",value:"2col",type:"product-offer",svgName:"gp-layout-two-col"},{label:"Align top",value:"1col",type:"product-offer",svgName:"gp-layout-one-col"}],devices:{desktop:{default:"2col"},tablet:{default:"2col"},mobile:{default:"1col"}}},{id:"dynamicOfferQuantity",type:"dynamic-offer-quantity",min:1,max:4,default:2,isOnlyAcceptInteger:!0},{id:"discountAndShippingFee",type:"discount-and-shipping-fee-product-offer",multiple:!0},{id:"inlineAlignment",type:"segment",options:[{label:"Start",value:"start",icon:`<svg width="20" height="20" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
34
|
+
<path d="M1.91699 1C2.19314 1 2.41699 1.22386 2.41699 1.5L2.41699 14.5C2.41699 14.7761 2.19313 15 1.91699 15C1.64085 15 1.41699 14.7761 1.41699 14.5V1.5C1.41699 1.22386 1.64085 1 1.91699 1Z" fill="currentColor"/>
|
|
35
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M2.91699 5C2.91699 4.17157 3.58857 3.5 4.41699 3.5H9.41699C10.2454 3.5 10.917 4.17157 10.917 5V6C10.917 6.82843 10.2454 7.5 9.41699 7.5H4.41699C3.58857 7.5 2.91699 6.82843 2.91699 6V5ZM4.41699 4.5C4.14085 4.5 3.91699 4.72386 3.91699 5V6C3.91699 6.27614 4.14085 6.5 4.41699 6.5H9.41699C9.69314 6.5 9.91699 6.27614 9.91699 6V5C9.91699 4.72386 9.69314 4.5 9.41699 4.5H4.41699Z" fill="currentColor"/>
|
|
36
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.41699 8.5C3.58857 8.5 2.91699 9.17157 2.91699 10V11C2.91699 11.8284 3.58857 12.5 4.41699 12.5H12.417C13.2454 12.5 13.917 11.8284 13.917 11V10C13.917 9.17157 13.2454 8.5 12.417 8.5H4.41699ZM3.91699 10C3.91699 9.72386 4.14085 9.5 4.41699 9.5H12.417C12.6931 9.5 12.917 9.72386 12.917 10V11C12.917 11.2761 12.6931 11.5 12.417 11.5H4.41699C4.14085 11.5 3.91699 11.2761 3.91699 11V10Z" fill="currentColor"/>
|
|
37
|
+
</svg>
|
|
38
|
+
`},{label:"Center",value:"center",icon:`<svg width="20" height="20" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
39
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M8 1C8.27614 1 8.5 1.22386 8.5 1.5V3.5H10.5C11.3284 3.5 12 4.17157 12 5V6C12 6.82843 11.3284 7.5 10.5 7.5H8.5V8.5H12C12.8284 8.5 13.5 9.17157 13.5 10V11C13.5 11.8284 12.8284 12.5 12 12.5H8.5V14.5C8.5 14.7761 8.27614 15 8 15C7.72386 15 7.5 14.7761 7.5 14.5V12.5H4C3.17157 12.5 2.5 11.8284 2.5 11V10C2.5 9.17157 3.17157 8.5 4 8.5H7.5V7.5H5.5C4.67157 7.5 4 6.82843 4 6V5C4 4.17157 4.67157 3.5 5.5 3.5H7.5V1.5C7.5 1.22386 7.72386 1 8 1ZM12 11.5C12.2761 11.5 12.5 11.2761 12.5 11V10C12.5 9.72386 12.2761 9.5 12 9.5H4C3.72386 9.5 3.5 9.72386 3.5 10V11C3.5 11.2761 3.72386 11.5 4 11.5H12ZM10.5 6.5H5.5C5.22386 6.5 5 6.27614 5 6V5C5 4.72386 5.22386 4.5 5.5 4.5H10.5C10.7761 4.5 11 4.72386 11 5V6C11 6.27614 10.7761 6.5 10.5 6.5Z" fill="currentColor"/>
|
|
40
|
+
</svg>
|
|
41
|
+
`},{label:"End",value:"end",icon:`<svg width="20" height="20" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
42
|
+
<path d="M14.084 15C14.3601 15 14.584 14.7761 14.584 14.5L14.584 1.5C14.584 1.22386 14.3601 1 14.084 1C13.8078 1 13.584 1.22386 13.584 1.5L13.584 14.5C13.584 14.7761 13.8078 15 14.084 15Z" fill="currentColor"/>
|
|
43
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.08398 6C5.08398 6.82843 5.75556 7.5 6.58398 7.5H11.584C12.4124 7.5 13.084 6.82843 13.084 6V5C13.084 4.17157 12.4124 3.5 11.584 3.5L6.58398 3.5C5.75556 3.5 5.08398 4.17157 5.08398 5V6ZM6.58398 6.5C6.30784 6.5 6.08398 6.27614 6.08398 6V5C6.08398 4.72386 6.30784 4.5 6.58398 4.5L11.584 4.5C11.8601 4.5 12.084 4.72386 12.084 5V6C12.084 6.27614 11.8601 6.5 11.584 6.5H6.58398Z" fill="currentColor"/>
|
|
44
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M3.58398 12.5C2.75556 12.5 2.08398 11.8284 2.08398 11L2.08398 10C2.08398 9.17157 2.75556 8.5 3.58398 8.5H11.584C12.4124 8.5 13.084 9.17157 13.084 10V11C13.084 11.8284 12.4124 12.5 11.584 12.5L3.58398 12.5ZM3.08398 11C3.08398 11.2761 3.30784 11.5 3.58398 11.5L11.584 11.5C11.8601 11.5 12.084 11.2761 12.084 11V10C12.084 9.72386 11.8601 9.5 11.584 9.5L3.58398 9.5C3.30784 9.5 3.08398 9.72386 3.08398 10L3.08398 11Z" fill="currentColor"/>
|
|
45
|
+
</svg>
|
|
46
|
+
`}],default:"center"}]},{id:"style",controls:[{id:"dimensionGroup",type:"group",label:"Dimension",controls:[{id:"fullWidth",label:"Full Width",type:"toggle",devices:{desktop:{default:!0},tablet:{default:!0},mobile:{default:!0}}},{id:"width",type:"input:unit-width",label:"Width",placeholder:"Global style",min:0,units:["px","%"],devices:{desktop:{default:void 0},tablet:{default:void 0},mobile:{default:void 0}}},{id:"verticalGutter",type:"input:unit-spacing",units:["px"],min:0,label:"Column gap",devices:{desktop:{default:"30px"}}},{id:"columnGap",type:"input:slider",min:0,max:100,step:1,units:["%"],showDefaultUnit:!0,devices:{desktop:{default:"1%"}}},{type:"select",label:"Spacing",id:"rowGap",options:e,default:"base"},{id:"productOfferColumnGap",type:"input:slider",min:0,max:100,step:1,units:["%"],showDefaultUnit:!0,devices:{desktop:{default:"1%"}}},{type:"select",label:"Spacing",id:"productOfferVerticalGutter",options:e,default:"base"},{id:"productOfferFullWidth",label:"Full Width",type:"toggle",devices:{desktop:{default:!1},tablet:{default:!1},mobile:{default:!1}}},{id:"productOfferWidth",type:"dropdown:input",label:"Width",units:["px","%"],hideUnit:!1,inputType:"number",displayOptions:[{label:"Full",value:"100%",showValue:!0},{label:"Default",value:"1200px",showValue:!0}],devices:{desktop:{default:"100%"},tablet:{default:"100%"},mobile:{default:"100%"}}}]}]}];export{SettingV2};
|
|
@@ -1,53 +1,8 @@
|
|
|
1
|
-
import{postPurchaseProductOfferDefault as
|
|
1
|
+
import{postPurchaseProductOfferDefault as o}from"../presets-config/product-presets/product-offer-default.js";import{postPurchaseProduct1Col as r}from"../presets-config/product-presets/product-offer-1-col.js";import{postPurchaseProduct2Col as t}from"../presets-config/product-presets/product-offer-2-col.js";import{SettingUIV1 as e}from"./configs/ui-v1.js";import{SettingUIV2 as C}from"./configs/ui-v2.js";import{SettingV2 as s}from"./configs/settings-v2.js";let config={tag:"PostPurchaseProductOffer",label:"Product Offer",icon:`
|
|
2
2
|
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
3
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M14.9075 7.10422C14.6295 6.47277 13.981 6.06462 13.268 6.12193C12.8111 6.15866 12.0129 6.23149 11.1972 6.34772C10.4162 6.459 9.4973 6.62566 8.86739 6.88284C8.4425 7.05632 7.96973 7.41721 7.56476 7.7561C7.12514 8.12398 6.63889 8.57624 6.16347 9.03928C5.21082 9.96712 4.25521 10.9838 3.72156 11.5611C3.02665 12.3128 3.18213 13.4862 4.00429 14.0501L7.14594 16.205V26.2444C7.14594 27.1568 7.8833 27.9057 8.80445 27.9057H23.246C24.1672 27.9057 24.9045 27.1568 24.9045 26.2444V16.205L28.0603 14.0405C28.8678 13.4866 29.0361 12.3395 28.3699 11.5829C27.861 11.005 26.9438 9.98417 26.0115 9.05136C25.5463 8.58586 25.0644 8.12923 24.6192 7.75674C24.2068 7.41161 23.7187 7.04517 23.2589 6.87191C22.0504 6.41643 20.0388 6.19802 19.2897 6.12638C18.6177 6.06213 17.9943 6.4147 17.6856 6.98594L16.1261 9.87237L14.9075 7.10422ZM11.5075 8.52572C12.0668 8.44603 12.6236 8.38769 13.0516 8.3486L14.5589 11.7725C15.1148 13.0353 16.8782 13.1086 17.535 11.8929L19.4471 8.35398C20.3297 8.45016 21.7155 8.64129 22.4831 8.93056C22.5609 8.9599 22.7999 9.10299 23.2073 9.44391C23.582 9.75746 24.0125 10.1634 24.4555 10.6066C25.1311 11.2825 25.8054 12.0148 26.3079 12.5747L23.426 14.5514C22.9732 14.862 22.7045 15.3755 22.7045 15.9221V25.7057H9.34594V15.9221C9.34594 15.3755 9.07722 14.862 8.62448 14.5514L5.76791 12.592C6.29559 12.03 7.00098 11.2946 7.69845 10.6153C8.1553 10.1703 8.59719 9.76082 8.97664 9.44329C9.16639 9.2845 9.33077 9.15694 9.46645 9.06238C9.53381 9.01545 9.58879 8.98036 9.63189 8.95523C9.65312 8.94286 9.66967 8.93395 9.68177 8.92783C9.69405 8.92163 9.69897 8.91962 9.69897 8.91962C10.0488 8.7768 10.7201 8.63792 11.5075 8.52572Z" fill="currentColor"/>
|
|
4
4
|
<path d="M30.2528 21.8121C29.8846 21.8121 29.5862 21.5136 29.5862 21.1454V20.0645C29.5862 19.6963 29.8846 19.3978 30.2528 19.3978H36.3481C36.7163 19.3978 37.0147 19.6963 37.0147 20.0645V21.1454C37.0147 21.5136 36.7163 21.8121 36.3481 21.8121H30.2528Z" fill="currentColor"/>
|
|
5
5
|
<path d="M30.2528 27.8478C29.8846 27.8478 29.5862 27.5493 29.5862 27.1811V26.1002C29.5862 25.732 29.8846 25.4335 30.2528 25.4335H36.3481C36.7163 25.4335 37.0147 25.732 37.0147 26.1002V27.1811C37.0147 27.5493 36.7163 27.8478 36.3481 27.8478H30.2528Z" fill="currentColor"/>
|
|
6
6
|
<path d="M7.96712 33.8834C7.59893 33.8834 7.30046 33.5849 7.30046 33.2168V32.1358C7.30046 31.7676 7.59893 31.4692 7.96712 31.4692H36.3481C36.7163 31.4692 37.0147 31.7676 37.0147 32.1358V33.2168C37.0147 33.5849 36.7163 33.8834 36.3481 33.8834H7.96712Z" fill="currentColor"/>
|
|
7
7
|
</svg>
|
|
8
|
-
`,settings:
|
|
9
|
-
<path d="M1.91699 1C2.19314 1 2.41699 1.22386 2.41699 1.5L2.41699 14.5C2.41699 14.7761 2.19313 15 1.91699 15C1.64085 15 1.41699 14.7761 1.41699 14.5V1.5C1.41699 1.22386 1.64085 1 1.91699 1Z" fill="currentColor"/>
|
|
10
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M2.91699 5C2.91699 4.17157 3.58857 3.5 4.41699 3.5H9.41699C10.2454 3.5 10.917 4.17157 10.917 5V6C10.917 6.82843 10.2454 7.5 9.41699 7.5H4.41699C3.58857 7.5 2.91699 6.82843 2.91699 6V5ZM4.41699 4.5C4.14085 4.5 3.91699 4.72386 3.91699 5V6C3.91699 6.27614 4.14085 6.5 4.41699 6.5H9.41699C9.69314 6.5 9.91699 6.27614 9.91699 6V5C9.91699 4.72386 9.69314 4.5 9.41699 4.5H4.41699Z" fill="currentColor"/>
|
|
11
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.41699 8.5C3.58857 8.5 2.91699 9.17157 2.91699 10V11C2.91699 11.8284 3.58857 12.5 4.41699 12.5H12.417C13.2454 12.5 13.917 11.8284 13.917 11V10C13.917 9.17157 13.2454 8.5 12.417 8.5H4.41699ZM3.91699 10C3.91699 9.72386 4.14085 9.5 4.41699 9.5H12.417C12.6931 9.5 12.917 9.72386 12.917 10V11C12.917 11.2761 12.6931 11.5 12.417 11.5H4.41699C4.14085 11.5 3.91699 11.2761 3.91699 11V10Z" fill="currentColor"/>
|
|
12
|
-
</svg>
|
|
13
|
-
`},{label:"Center",value:"center",icon:`<svg width="20" height="20" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
14
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M8 1C8.27614 1 8.5 1.22386 8.5 1.5V3.5H10.5C11.3284 3.5 12 4.17157 12 5V6C12 6.82843 11.3284 7.5 10.5 7.5H8.5V8.5H12C12.8284 8.5 13.5 9.17157 13.5 10V11C13.5 11.8284 12.8284 12.5 12 12.5H8.5V14.5C8.5 14.7761 8.27614 15 8 15C7.72386 15 7.5 14.7761 7.5 14.5V12.5H4C3.17157 12.5 2.5 11.8284 2.5 11V10C2.5 9.17157 3.17157 8.5 4 8.5H7.5V7.5H5.5C4.67157 7.5 4 6.82843 4 6V5C4 4.17157 4.67157 3.5 5.5 3.5H7.5V1.5C7.5 1.22386 7.72386 1 8 1ZM12 11.5C12.2761 11.5 12.5 11.2761 12.5 11V10C12.5 9.72386 12.2761 9.5 12 9.5H4C3.72386 9.5 3.5 9.72386 3.5 10V11C3.5 11.2761 3.72386 11.5 4 11.5H12ZM10.5 6.5H5.5C5.22386 6.5 5 6.27614 5 6V5C5 4.72386 5.22386 4.5 5.5 4.5H10.5C10.7761 4.5 11 4.72386 11 5V6C11 6.27614 10.7761 6.5 10.5 6.5Z" fill="currentColor"/>
|
|
15
|
-
</svg>
|
|
16
|
-
`},{label:"End",value:"end",icon:`<svg width="20" height="20" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
17
|
-
<path d="M14.084 15C14.3601 15 14.584 14.7761 14.584 14.5L14.584 1.5C14.584 1.22386 14.3601 1 14.084 1C13.8078 1 13.584 1.22386 13.584 1.5L13.584 14.5C13.584 14.7761 13.8078 15 14.084 15Z" fill="currentColor"/>
|
|
18
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.08398 6C5.08398 6.82843 5.75556 7.5 6.58398 7.5H11.584C12.4124 7.5 13.084 6.82843 13.084 6V5C13.084 4.17157 12.4124 3.5 11.584 3.5L6.58398 3.5C5.75556 3.5 5.08398 4.17157 5.08398 5V6ZM6.58398 6.5C6.30784 6.5 6.08398 6.27614 6.08398 6V5C6.08398 4.72386 6.30784 4.5 6.58398 4.5L11.584 4.5C11.8601 4.5 12.084 4.72386 12.084 5V6C12.084 6.27614 11.8601 6.5 11.584 6.5H6.58398Z" fill="currentColor"/>
|
|
19
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M3.58398 12.5C2.75556 12.5 2.08398 11.8284 2.08398 11L2.08398 10C2.08398 9.17157 2.75556 8.5 3.58398 8.5H11.584C12.4124 8.5 13.084 9.17157 13.084 10V11C13.084 11.8284 12.4124 12.5 11.584 12.5L3.58398 12.5ZM3.08398 11C3.08398 11.2761 3.30784 11.5 3.58398 11.5L11.584 11.5C11.8601 11.5 12.084 11.2761 12.084 11V10C12.084 9.72386 11.8601 9.5 11.584 9.5L3.58398 9.5C3.30784 9.5 3.08398 9.72386 3.08398 10L3.08398 11Z" fill="currentColor"/>
|
|
20
|
-
</svg>
|
|
21
|
-
`}],devices:{desktop:{default:"start"}}},{id:"verticalAlign",type:"segment",options:[{label:"Start",value:"start",icon:`<svg width="20" height="20" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
22
|
-
<path d="M15.5 2.25C15.5 2.52614 15.2761 2.75 15 2.75L2 2.75C1.72386 2.75 1.5 2.52614 1.5 2.25C1.5 1.97386 1.72386 1.75 2 1.75L15 1.75C15.2761 1.75 15.5 1.97386 15.5 2.25Z" fill="currentColor"/>
|
|
23
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.5 3.25C12.3284 3.25 13 3.92157 13 4.75L13 9.75C13 10.5784 12.3284 11.25 11.5 11.25L10.5 11.25C9.67157 11.25 9 10.5784 9 9.75L9 4.75C9 3.92157 9.67157 3.25 10.5 3.25L11.5 3.25ZM12 4.75C12 4.47386 11.7761 4.25 11.5 4.25L10.5 4.25C10.2239 4.25 10 4.47386 10 4.75L10 9.75C10 10.0261 10.2239 10.25 10.5 10.25L11.5 10.25C11.7761 10.25 12 10.0261 12 9.75L12 4.75Z" fill="currentColor"/>
|
|
24
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M8 4.75C8 3.92157 7.32843 3.25 6.5 3.25L5.5 3.25C4.67157 3.25 4 3.92157 4 4.75L4 12.75C4 13.5784 4.67157 14.25 5.5 14.25L6.5 14.25C7.32843 14.25 8 13.5784 8 12.75L8 4.75ZM6.5 4.25C6.77614 4.25 7 4.47386 7 4.75L7 12.75C7 13.0261 6.77614 13.25 6.5 13.25L5.5 13.25C5.22386 13.25 5 13.0261 5 12.75L5 4.75C5 4.47386 5.22386 4.25 5.5 4.25L6.5 4.25Z" fill="currentColor"/>
|
|
25
|
-
</svg>
|
|
26
|
-
`},{label:"Center",value:"center",icon:`<svg width="20" height="20" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
27
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M14.5 8.5C14.5 8.77614 14.2921 9 14.0357 9L12.1786 9L12.1786 11C12.1786 11.8284 11.555 12.5 10.7857 12.5L9.85714 12.5C9.08789 12.5 8.46429 11.8284 8.46429 11L8.46429 9L7.53571 9L7.53571 12.5C7.53571 13.3284 6.91211 14 6.14286 14L5.21429 14C4.44503 14 3.82143 13.3284 3.82143 12.5L3.82143 9L1.96429 9C1.70787 9 1.5 8.77614 1.5 8.5C1.5 8.22386 1.70787 8 1.96429 8L3.82143 8L3.82143 4.5C3.82143 3.67157 4.44503 3 5.21429 3L6.14286 3C6.91211 3 7.53572 3.67157 7.53572 4.5L7.53571 8L8.46429 8L8.46429 6C8.46429 5.17157 9.08789 4.5 9.85714 4.5L10.7857 4.5C11.555 4.5 12.1786 5.17157 12.1786 6L12.1786 8L14.0357 8C14.2921 8 14.5 8.22386 14.5 8.5ZM4.75 12.5C4.75 12.7761 4.95787 13 5.21429 13L6.14286 13C6.39928 13 6.60714 12.7761 6.60714 12.5L6.60714 4.5C6.60714 4.22386 6.39928 4 6.14286 4L5.21429 4C4.95787 4 4.75 4.22386 4.75 4.5L4.75 12.5ZM9.39286 11L9.39286 6C9.39286 5.72386 9.60073 5.5 9.85714 5.5L10.7857 5.5C11.0421 5.5 11.25 5.72386 11.25 6L11.25 11C11.25 11.2761 11.0421 11.5 10.7857 11.5L9.85714 11.5C9.60073 11.5 9.39286 11.2761 9.39286 11Z" fill="currentColor"/>
|
|
28
|
-
</svg>
|
|
29
|
-
`},{label:"End",value:"end",icon:`<svg width="20" height="20" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
30
|
-
<path d="M1.5 14.5C1.5 14.2239 1.72386 14 2 14L15 14C15.2761 14 15.5 14.2239 15.5 14.5C15.5 14.7761 15.2761 15 15 15L2 15C1.72386 15 1.5 14.7761 1.5 14.5Z" fill="currentColor"/>
|
|
31
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.5 13.5C4.67157 13.5 4 12.8284 4 12L4 7C4 6.17157 4.67157 5.5 5.5 5.5L6.5 5.5C7.32843 5.5 8 6.17157 8 7L8 12C8 12.8284 7.32843 13.5 6.5 13.5L5.5 13.5ZM5 12C5 12.2761 5.22386 12.5 5.5 12.5L6.5 12.5C6.77614 12.5 7 12.2761 7 12L7 7C7 6.72386 6.77614 6.5 6.5 6.5L5.5 6.5C5.22386 6.5 5 6.72386 5 7L5 12Z" fill="currentColor"/>
|
|
32
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M9 12C9 12.8284 9.67157 13.5 10.5 13.5L11.5 13.5C12.3284 13.5 13 12.8284 13 12L13 4C13 3.17157 12.3284 2.5 11.5 2.5L10.5 2.5C9.67157 2.5 9 3.17157 9 4L9 12ZM10.5 12.5C10.2239 12.5 10 12.2761 10 12L10 4C10 3.72386 10.2239 3.5 10.5 3.5L11.5 3.5C11.7761 3.5 12 3.72386 12 4L12 12C12 12.2761 11.7761 12.5 11.5 12.5L10.5 12.5Z" fill="currentColor"/>
|
|
33
|
-
</svg>
|
|
34
|
-
`},{label:"Between",value:"space-between",icon:`<svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
35
|
-
<path d="M2.00293 14.498L15.0037 14.498" stroke="currentColor" stroke-linecap="round"/>
|
|
36
|
-
<path d="M2.00293 1.49805L15.0037 1.49805" stroke="currentColor" stroke-linecap="round"/>
|
|
37
|
-
<rect x="2.5" y="6" width="3" height="12" rx="1" transform="rotate(-90 2.5 6)" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
|
|
38
|
-
<rect x="2.5" y="13" width="3" height="12" rx="1" transform="rotate(-90 2.5 13)" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
|
|
39
|
-
</svg>
|
|
40
|
-
`}],devices:{desktop:{default:"start"}}},{id:"isSyncProduct",type:"sync-product-properties",default:!0},{id:"variantDisplay",type:"group",label:"Variant Display",controls:[{id:"selectVariantDefault",type:"select-variant",label:"Select Default Variant",hide:!0}]},{id:"productSetting",type:"product-offers",label:"Product source",default:{productIds:[]}},{id:"productOfferLayout",type:"option:illustration",enableTooltip:!0,label:"Position",options:[{label:"Align center",value:"2col",type:"product-offer",svgName:"gp-layout-two-col"},{label:"Align top",value:"1col",type:"product-offer",svgName:"gp-layout-one-col"}],devices:{desktop:{default:"2col"},tablet:{default:"2col"},mobile:{default:"1col"}}},{id:"dynamicOfferQuantity",type:"dynamic-offer-quantity",min:1,max:4,default:2,isOnlyAcceptInteger:!0},{id:"discountAndShippingFee",type:"discount-and-shipping-fee-product-offer",multiple:!0},{id:"inlineAlignment",type:"segment",options:[{label:"Start",value:"start",icon:`<svg width="20" height="20" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
41
|
-
<path d="M1.91699 1C2.19314 1 2.41699 1.22386 2.41699 1.5L2.41699 14.5C2.41699 14.7761 2.19313 15 1.91699 15C1.64085 15 1.41699 14.7761 1.41699 14.5V1.5C1.41699 1.22386 1.64085 1 1.91699 1Z" fill="currentColor"/>
|
|
42
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M2.91699 5C2.91699 4.17157 3.58857 3.5 4.41699 3.5H9.41699C10.2454 3.5 10.917 4.17157 10.917 5V6C10.917 6.82843 10.2454 7.5 9.41699 7.5H4.41699C3.58857 7.5 2.91699 6.82843 2.91699 6V5ZM4.41699 4.5C4.14085 4.5 3.91699 4.72386 3.91699 5V6C3.91699 6.27614 4.14085 6.5 4.41699 6.5H9.41699C9.69314 6.5 9.91699 6.27614 9.91699 6V5C9.91699 4.72386 9.69314 4.5 9.41699 4.5H4.41699Z" fill="currentColor"/>
|
|
43
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.41699 8.5C3.58857 8.5 2.91699 9.17157 2.91699 10V11C2.91699 11.8284 3.58857 12.5 4.41699 12.5H12.417C13.2454 12.5 13.917 11.8284 13.917 11V10C13.917 9.17157 13.2454 8.5 12.417 8.5H4.41699ZM3.91699 10C3.91699 9.72386 4.14085 9.5 4.41699 9.5H12.417C12.6931 9.5 12.917 9.72386 12.917 10V11C12.917 11.2761 12.6931 11.5 12.417 11.5H4.41699C4.14085 11.5 3.91699 11.2761 3.91699 11V10Z" fill="currentColor"/>
|
|
44
|
-
</svg>
|
|
45
|
-
`},{label:"Center",value:"center",icon:`<svg width="20" height="20" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
46
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M8 1C8.27614 1 8.5 1.22386 8.5 1.5V3.5H10.5C11.3284 3.5 12 4.17157 12 5V6C12 6.82843 11.3284 7.5 10.5 7.5H8.5V8.5H12C12.8284 8.5 13.5 9.17157 13.5 10V11C13.5 11.8284 12.8284 12.5 12 12.5H8.5V14.5C8.5 14.7761 8.27614 15 8 15C7.72386 15 7.5 14.7761 7.5 14.5V12.5H4C3.17157 12.5 2.5 11.8284 2.5 11V10C2.5 9.17157 3.17157 8.5 4 8.5H7.5V7.5H5.5C4.67157 7.5 4 6.82843 4 6V5C4 4.17157 4.67157 3.5 5.5 3.5H7.5V1.5C7.5 1.22386 7.72386 1 8 1ZM12 11.5C12.2761 11.5 12.5 11.2761 12.5 11V10C12.5 9.72386 12.2761 9.5 12 9.5H4C3.72386 9.5 3.5 9.72386 3.5 10V11C3.5 11.2761 3.72386 11.5 4 11.5H12ZM10.5 6.5H5.5C5.22386 6.5 5 6.27614 5 6V5C5 4.72386 5.22386 4.5 5.5 4.5H10.5C10.7761 4.5 11 4.72386 11 5V6C11 6.27614 10.7761 6.5 10.5 6.5Z" fill="currentColor"/>
|
|
47
|
-
</svg>
|
|
48
|
-
`},{label:"End",value:"end",icon:`<svg width="20" height="20" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
49
|
-
<path d="M14.084 15C14.3601 15 14.584 14.7761 14.584 14.5L14.584 1.5C14.584 1.22386 14.3601 1 14.084 1C13.8078 1 13.584 1.22386 13.584 1.5L13.584 14.5C13.584 14.7761 13.8078 15 14.084 15Z" fill="currentColor"/>
|
|
50
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.08398 6C5.08398 6.82843 5.75556 7.5 6.58398 7.5H11.584C12.4124 7.5 13.084 6.82843 13.084 6V5C13.084 4.17157 12.4124 3.5 11.584 3.5L6.58398 3.5C5.75556 3.5 5.08398 4.17157 5.08398 5V6ZM6.58398 6.5C6.30784 6.5 6.08398 6.27614 6.08398 6V5C6.08398 4.72386 6.30784 4.5 6.58398 4.5L11.584 4.5C11.8601 4.5 12.084 4.72386 12.084 5V6C12.084 6.27614 11.8601 6.5 11.584 6.5H6.58398Z" fill="currentColor"/>
|
|
51
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M3.58398 12.5C2.75556 12.5 2.08398 11.8284 2.08398 11L2.08398 10C2.08398 9.17157 2.75556 8.5 3.58398 8.5H11.584C12.4124 8.5 13.084 9.17157 13.084 10V11C13.084 11.8284 12.4124 12.5 11.584 12.5L3.58398 12.5ZM3.08398 11C3.08398 11.2761 3.30784 11.5 3.58398 11.5L11.584 11.5C11.8601 11.5 12.084 11.2761 12.084 11V10C12.084 9.72386 11.8601 9.5 11.584 9.5L3.58398 9.5C3.30784 9.5 3.08398 9.72386 3.08398 10L3.08398 11Z" fill="currentColor"/>
|
|
52
|
-
</svg>
|
|
53
|
-
`}],default:"center"}]},{id:"style",controls:[{id:"dimensionGroup",type:"group",label:"Dimension",controls:[{id:"fullWidth",label:"Full Width",type:"toggle",devices:{desktop:{default:!0},tablet:{default:!0},mobile:{default:!0}}},{id:"width",type:"input:unit-width",label:"Width",placeholder:"Global style",min:0,units:["px","%"],devices:{desktop:{default:void 0},tablet:{default:void 0},mobile:{default:void 0}}},{id:"verticalGutter",type:"input:unit-spacing",units:["px"],min:0,label:"Column gap",devices:{desktop:{default:"30px"}}},{id:"columnGap",type:"input:slider",min:0,max:100,step:1,units:["%"],showDefaultUnit:!0,devices:{desktop:{default:"1%"}}},{type:"select",label:"Spacing",id:"rowGap",options:l,default:"base"},{id:"productOfferColumnGap",type:"input:slider",min:0,max:100,step:1,units:["%"],showDefaultUnit:!0,devices:{desktop:{default:"1%"}}},{type:"select",label:"Spacing",id:"productOfferVerticalGutter",options:l,default:"base"},{id:"productOfferFullWidth",label:"Full Width",type:"toggle",devices:{desktop:{default:!1},tablet:{default:!1},mobile:{default:!1}}},{id:"productOfferWidth",type:"dropdown:input",label:"Width",units:["px","%"],hideUnit:!1,inputType:"number",displayOptions:[{label:"Full",value:"100%",showValue:!0},{label:"Default",value:"1200px",showValue:!0}],devices:{desktop:{default:"100%"},tablet:{default:"100%"},mobile:{default:"100%"}}}]}]}],ui:i,uiV2:r,presets:[e,o,t],editorConfigs:{slots:{children:!0},toolbar:{parent:!0},placeholder:{notAppendTags:["Product","ProductList","ContactForm","Newsletter"]}}};export{config as default};
|
|
8
|
+
`,settings:s,ui:e,uiV2:C,presets:[o,t,r],editorConfigs:{slots:{children:!0},toolbar:{parent:!0},placeholder:{notAppendTags:["Product","ProductList","ContactForm","Newsletter"]}}};export{config as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{postPurchaseSpacing as e}from"../../../../common/constants.js";let ProductVariantSettingsV2=[{id:"setting",controls:[{id:"variantsOption",type:"group",label:"Variants Options",controls:[{id:"optionType",label:"Option Label",type:"segment",default:"singleOption",options:[{label:"Separate",value:"singleOption"},{label:"Combine",value:"groupOption"}]},{id:"label",label:"Option Label",type:"toggle",default:!0},{id:"price",label:"Option Price",type:"toggle",hide:!0,default:!0},{id:"showAsSwatches",label:"Use Option Swatches",type:"swatchesLink",hide:!0,default:!0,hyperlinkInfo:{beforeText:"Go to ",hyperlinkText:"Manage Swatches",afterText:" to configure options display as swatches",modal:"manage_swatches"}},{id:"combineFullWidth",label:"Full Width",type:"toggle",devices:{desktop:{default:!1}}},{id:"combineWidth",type:"input:unit",label:"Width",placeholder:"Auto",min:0,units:["px","%"],hide:!0,devices:{desktop:{default:"100%"}}},{id:"combineHeight",type:"input:unit",label:"Height",placeholder:"Auto",min:0,units:["px"],default:"45px"},{id:"enableVariant",type:"
|
|
1
|
+
import{postPurchaseSpacing as e}from"../../../../common/constants.js";let ProductVariantSettingsV2=[{id:"setting",controls:[{id:"variantsOption",type:"group",label:"Variants Options",controls:[{id:"optionType",label:"Option Label",type:"segment",default:"singleOption",options:[{label:"Separate",value:"singleOption"},{label:"Combine",value:"groupOption"}]},{id:"label",label:"Option Label",type:"toggle",default:!0},{id:"price",label:"Option Price",type:"toggle",hide:!0,default:!0},{id:"showAsSwatches",label:"Use Option Swatches",type:"swatchesLink",hide:!0,default:!0,hyperlinkInfo:{beforeText:"Go to ",hyperlinkText:"Manage Swatches",afterText:" to configure options display as swatches",modal:"manage_swatches"}},{id:"combineFullWidth",label:"Full Width",type:"toggle",devices:{desktop:{default:!1}}},{id:"combineWidth",type:"input:unit",label:"Width",placeholder:"Auto",min:0,units:["px","%"],hide:!0,devices:{desktop:{default:"100%"}}},{id:"combineHeight",type:"input:unit",label:"Height",placeholder:"Auto",min:0,units:["px"],default:"45px"},{id:"enableVariant",type:"toggle",default:!0},{id:"variantPresets",label:"Use Option Swatches",type:"variant:presetsV2",default:[{optionName:"base",optionType:"dropdown",presets:{dropdown:{fullWidth:{desktop:!1,tablet:!1,mobile:!1},width:{desktop:"100%",tablet:"100%",mobile:"100%"}}}}],hyperlinkInfo:{modal:"manage_swatches"}},{id:"soldOutMark",label:"Sold Out Mark",type:"toggle",default:!0},{id:"soldOutStyle",type:"select",default:"Disable",options:[{label:"Disable",value:"Disable"},{label:"Line",value:"Line",icon:"sold-out-mark-line"}]}]},{id:"options",type:"group",label:"Options",controls:[{id:"layout",label:"Layout",type:"layout-segment",iconViewBox:"0 0 66 45",enableItemBackground:!0,devices:{desktop:{default:"vertical"}},options:[{label:"Horizontal",value:"horizontal",type:"arrange"},{label:"Vertical",value:"vertical",type:"arrange"}]},{id:"column",label:"Column",type:"select",devices:{desktop:{default:1}},options:[{label:"1 column",value:1},{label:"2 columns",value:2},{label:"3 columns",value:3},{label:"4 columns",value:4}]}]},{id:"variantDisplay",type:"group",label:"Variant Display",controls:[{id:"hasPreSelected",type:"toggle",label:"hasPreSelected",default:!0},{id:"selectVariantDefault",type:"select-variant",label:"Select Default Variant",hide:!0}]}]},{id:"style",controls:[{id:"dimension",type:"group",label:"Variants Dimension",controls:[{id:"fullWidth",label:"Full Width",type:"toggle",devices:{desktop:{default:!1}}},{id:"width",label:"Width",type:"dropdown:input",inputType:"number",hideUnit:!1,units:["px","%"],displayOptions:[{label:"Full",value:"100%",showValue:!0},{label:"Default",value:"default",showValue:!0}],devices:{desktop:{default:"100%"}}},{type:"select",label:"Spacing",id:"variantSpacing",options:e,default:"loose"}]},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"start",type:"align",icon:`<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
2
|
<path d="M3.47916 1.25C3.82434 1.25 4.10416 1.52982 4.10416 1.875L4.10416 18.125C4.10416 18.4702 3.82434 18.75 3.47916 18.75C3.13399 18.75 2.85416 18.4702 2.85416 18.125L2.85416 1.875C2.85416 1.52982 3.13399 1.25 3.47916 1.25Z" fill="currentColor"/>
|
|
3
3
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.72916 6.25C4.72916 5.21447 5.56863 4.375 6.60416 4.375H12.8542C13.8897 4.375 14.7292 5.21447 14.7292 6.25V7.5C14.7292 8.53553 13.8897 9.375 12.8542 9.375H6.60416C5.56863 9.375 4.72916 8.53553 4.72916 7.5V6.25ZM6.60416 5.625C6.25899 5.625 5.97916 5.90482 5.97916 6.25V7.5C5.97916 7.84518 6.25899 8.125 6.60416 8.125H12.8542C13.1993 8.125 13.4792 7.84518 13.4792 7.5V6.25C13.4792 5.90482 13.1993 5.625 12.8542 5.625H6.60416Z" fill="currentColor"/>
|
|
4
4
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.60416 10.625C5.56863 10.625 4.72916 11.4645 4.72916 12.5V13.75C4.72916 14.7855 5.56863 15.625 6.60416 15.625H16.6042C17.6397 15.625 18.4792 14.7855 18.4792 13.75V12.5C18.4792 11.4645 17.6397 10.625 16.6042 10.625H6.60416ZM5.97916 12.5C5.97916 12.1548 6.25899 11.875 6.60416 11.875H16.6042C16.9493 11.875 17.2292 12.1548 17.2292 12.5V13.75C17.2292 14.0952 16.9493 14.375 16.6042 14.375H6.60416C6.25899 14.375 5.97916 14.0952 5.97916 13.75V12.5Z" fill="currentColor"/>
|