@gem-sdk/components 2.0.0-dev.858 → 2.0.0-dev.859
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/product/components/ProductList.js +1 -1
- package/dist/cjs/product/components/ProductNotFound.js +1 -1
- package/dist/cjs/product/components/ProductNotFoundRelated.js +1 -0
- package/dist/cjs/product/setting/ProductList.js +1 -1
- package/dist/esm/product/components/ProductList.js +1 -1
- package/dist/esm/product/components/ProductNotFound.js +1 -1
- package/dist/esm/product/components/ProductNotFoundRelated.js +1 -0
- package/dist/esm/product/setting/ProductList.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),core=require("@gem-sdk/core"),dynamic=require("next/dynamic"),react=require("react"),Loading=require("../../common/components/Loading.js"),Carousel=require("../../carousel/components/Carousel.js"),CarouselItem=require("../../carousel/components/CarouselItem.js"),ChildrenDroppable=require("../../grid/components/ChildrenDroppable.js"),arrow=require("../../carousel/components/common/arrow.js"),dots=require("../../carousel/components/common/dots.js"),SalePageProductListWarning=require("./SalePageProductListWarning.js"),carousel=require("../../carousel/components/common/carousel.js"),product=require("../helpers/product.js");const ProductNotFound=dynamic(()=>Promise.resolve().then(function(){return require("./ProductNotFound.js")}),{loading:Loading.default}),ProductList=({children:e,className:t,setting:o,styles:r,builderProps:d})=>{let
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),core=require("@gem-sdk/core"),dynamic=require("next/dynamic"),react=require("react"),Loading=require("../../common/components/Loading.js"),Carousel=require("../../carousel/components/Carousel.js"),CarouselItem=require("../../carousel/components/CarouselItem.js"),ChildrenDroppable=require("../../grid/components/ChildrenDroppable.js"),arrow=require("../../carousel/components/common/arrow.js"),dots=require("../../carousel/components/common/dots.js"),SalePageProductListWarning=require("./SalePageProductListWarning.js"),carousel=require("../../carousel/components/common/carousel.js"),product=require("../helpers/product.js");const ProductNotFound=dynamic(()=>Promise.resolve().then(function(){return require("./ProductNotFound.js")}),{loading:Loading.default}),ProductList=({children:e,className:t,setting:o,styles:r,builderProps:d})=>{let a=core.useEditorMode(),i=core.usePageType(),l=o?.productSetting??{},s=core.usePageStore(e=>e.dynamicCollection),n="GP_COLLECTION"==i;n&&(l.productSrc="DynamicCollection",l.collectionId=s?.collectionId??"latest");let c=react.useMemo(()=>"GP_FUNNEL_PAGE"===i,[i]),u=react.useMemo(()=>arrow.getUpdatedArrowDisplay(o?.arrow,o?.controlOverContent),[o?.arrow,o?.controlOverContent]),[p,g]=react.useState(),[m,h]=react.useState(!1),P="RelatedProduct"===l.productSrc,S=react.useMemo(()=>dots.getUpdatedDotStyle(o?.dot),[o?.dot]),x=l?.productSrc??"Collection",j=react.useMemo(()=>({id:l?.collectionId??"latest",numberOfProducts:o?.numberOfProducts??4,orderBy:o?.orderBy==="none"?"CREATED_AT_DESC":o?.orderBy}),[l?.collectionId,o?.numberOfProducts,o?.orderBy]),{data:y}=core.useProductQuery(P&&o?.productSetting?.relatedProductId?o.productSetting.relatedProductId:void 0),v=l.relatedTag&&"tags"===l.relatedTag[0]&&(!y?.tags||y?.tags.length===0),C=l.relatedTag&&"collection"===l.relatedTag[0]&&(!y?.collections?.edges||y?.collections.edges.length===0),f=l.relatedTag&&"vendor"===l.relatedTag[0]&&!y?.vendor,T=v||C||f;react.useEffect(()=>{if(P&&y&&l.relatedTag&&"recommended-product"!==l.relatedType){let e;switch(h(!1),l.hasRelatedExclude&&(e=l?.relatedExclude&&l.relatedExclude.split(",").map(e=>e.trim())),l.relatedTag[0]){case"vendor":g({vendor:l.relatedTag&&"vendor"===l.relatedTag[0]?y?.vendor:"",limit:o?.numberOfProducts,idNEQ:y.id});break;case"collection":{let t;let r=y?.collections?.edges.map(e=>e.node?.id);if(!r||r?.length===0){h(!0);break}g(t=e&&e.length>0?{idNEQ:y.id,hasCollectionProductsWith:[{hasCollectionWith:[{idIn:r},{titleNotIn:e}]}],limit:o?.numberOfProducts}:{idNEQ:y.id,hasCollectionProductsWith:[{hasCollectionWith:[{idIn:r}]}],limit:o?.numberOfProducts});break}case"tags":{let t;if(!y.tags||0===y.tags.length){h(!0);break}g(t=e&&e.length>0?{idNEQ:y.id,hasProductTagsWith:[{hasTagsWith:[{nameIn:y.tags},{nameNotIn:e}]}],limit:o?.numberOfProducts}:{idNEQ:y.id,hasProductTagsWith:[{hasTagsWith:[{nameIn:y.tags}]}],limit:o?.numberOfProducts})}}}},[y,l.relatedType,l.relatedTag,o?.numberOfProducts,l.relatedExclude,l.hasRelatedExclude,P]);let b=core.useCollectionQuery("PickProduct"!==x?j:void 0),w=core.useProductsQuery("PickProduct"===x?l?.productIds:void 0,{revalidateOnMount:"edit"===a},{defaultSelectedProductCount:l?.numOfSelectedProducts}),R=core.useProductsQueryAll(p,{revalidateOnMount:"edit"===a}),[I,k]=react.useState(!0),O="PickProduct"===x?w.isValidating:b.isValidating,E="PickProduct"===x?w.isLoading:b.isLoading,N="PickProduct"===x?w.error:b.error,W=b.data?.collections?.edges?.[0]?.node,D="PickProduct"===x?core.flattenConnection(w.data?.products):core.flattenConnection(W?.products),L=R?.data?.products?core.flattenConnection(R?.data?.products):void 0,q=P&&L?L:"PickProduct"===x&&l?.productIds?.length?l?.productIds?.map(e=>D?.find(t=>t?.baseID===e)).filter(Boolean)??D:"PickProduct"!==x?D:D.filter((e,t)=>t<(l?.numOfSelectedProducts||4));if(d?.isPreview&&c)return null;let G=l.relatedTag&&l.relatedTag[0];return m&&P&&"edit"==a?jsxRuntime.jsx(ProductNotFound,{collectionHandle:W?.handle,productSrc:x,onClose:()=>k(!1),children:e,relatedTagString:G,assignProductNoTags:T,noAssignedProduct:!o?.productSetting?.relatedProductId}):q.length||E||"edit"!=a?jsxRuntime.jsx(jsxRuntime.Fragment,{children:O||E?jsxRuntime.jsx(Loading.default,{}):N?jsxRuntime.jsxs("div",{children:["Error: ",N?.message]}):!q||m&&P?jsxRuntime.jsx("div",{children:"Products not found"}):jsxRuntime.jsx(core.ProductListProvider,{collection:W,products:q,settings:{loop:o?.loop??{desktop:!1},scrollMode:o?.scrollMode??{desktop:"snap"},slidesToShow:o?.slidesToShow??{desktop:4,tablet:3,mobile:1},layout:r?.layout,dot:o?.dot,dotStyle:o?.dotStyle,arrow:o?.arrow,controlOverContent:o?.controlOverContent},styles:{horizontalGutter:r?.horizontalGutter,verticalGutter:r?.verticalGutter,fullWidth:r?.fullWidth,spacing:r?.spacing,width:r?.width,height:r?.height},children:jsxRuntime.jsxs("div",{className:"gp-relative",children:[c&&jsxRuntime.jsx(SalePageProductListWarning.default,{}),r?.layout==="grid"?jsxRuntime.jsx("div",{style:{...core.makeStyleResponsive("w",core.makeWidth(r?.width,r?.fullWidth)),...core.makeStyleResponsive("rg",r?.horizontalGutter),...core.makeStyleResponsive("cg",r?.verticalGutter),...core.makeStyleResponsive("gtc",{desktop:`repeat(${core.getResponsiveValueByScreen(o?.slidesToShow,"desktop")}, minmax(0, 1fr))`,tablet:o?.slidesToShow?.tablet&&`repeat(${core.getResponsiveValueByScreen(o?.slidesToShow,"tablet")}, minmax(0, 1fr))`,mobile:o?.slidesToShow?.mobile&&`repeat(${core.getResponsiveValueByScreen(o?.slidesToShow,"mobile")}, minmax(0, 1fr))`})},className:core.cls(t,"gp-m-auto gp-grid gp-w-full"),children:q?.length?q?.map(t=>jsxRuntime.jsx(core.ProductProvider,{product:t,readOnly:!0,children:jsxRuntime.jsx("div",{..."edit"===a?{"data-component-type":"component","data-component-tag":"Product","data-component-label":"Product","data-component-no-setting":!0,"data-product-id":t?.baseID?.replace("gid://shopify/Product/","")}:{},children:core.isEmptyChildren(e)?jsxRuntime.jsx(ChildrenDroppable.default,{}):e})},t?.baseID)):null}):jsxRuntime.jsx(Carousel.default,{setting:{loop:o?.loop,slidesToShow:o?.slidesToShow,dot:o?.dot,dotStyle:S,dotSize:{desktop:12},dotGapToCarousel:{desktop:16},navigationStyle:u,arrowCustom:o?.arrowCustom,controlOverContent:o?.controlOverContent,enableDrag:{desktop:o?.dragToScroll,tablet:o?.dragToScroll,mobile:o?.dragToScroll},speed:o?.speed,dotActiveColor:o?.dotActiveColor,dotColor:o?.dotColor,autoplay:o?.autoplay,pauseOnHover:o?.pauseOnHover,autoplayTimeout:o?.autoplayTimeout,arrowCustomColor:o?.arrowCustomColor,arrowButtonSize:{desktop:{width:"24px",height:"24px"}}},rootClass:"gp-justify-center",styles:{sizeSetting:{...product.getSizeSetting({adaptiveHeight:r?.adaptiveHeight,fullWidth:r?.fullWidth,width:r?.width,height:r?.height})},spacing:r?.spacing},children:q?.map(t=>jsxRuntime.jsx(CarouselItem.default,{style:{...carousel.getInitialWidthForCarouselItem({spacing:r?.spacing,slidesToShow:o?.slidesToShow})},children:jsxRuntime.jsx(core.ProductProvider,{product:t,readOnly:!0,children:jsxRuntime.jsx("div",{..."edit"===a?{"data-component-type":"component","data-component-tag":"Product","data-component-label":"Product","data-component-no-setting":!0,"data-product-id":t?.baseID?.replace("gid://shopify/Product/","")}:{},children:core.isEmptyChildren(e)?jsxRuntime.jsx(ChildrenDroppable.default,{}):e})})},t?.baseID))})]})})}):I?jsxRuntime.jsx(ProductNotFound,{collectionHandle:W?.handle,productSrc:x,onClose:()=>k(!1),children:e,relatedTagString:G,assignProductNoTags:T,noAssignedProduct:!o?.productSetting?.relatedProductId}):null};exports.default=ProductList;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),core=require("@gem-sdk/core"),react=require("react");const ProductNotFound=({collectionHandle:e,productSrc:t,
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),core=require("@gem-sdk/core"),react=require("react"),ProductNotFoundRelated=require("./ProductNotFoundRelated.js");const ProductNotFound=({collectionHandle:e,productSrc:t,relatedTagString:o,assignProductNoTags:r,noAssignedProduct:n,builderAttrs:s,children:i})=>{let d="STATIC"===core.usePageType(),l=core.useShopStore(e=>e.storefrontToken),c=core.useShopStore(e=>e.storefrontUrl),p="Collection"===t,u="RelatedProduct"===t,a=react.useMemo(()=>d&&!l?"We can not get your products from Shopify":p?e?"Have you add products to this collection? We couldn’t find any.":"Have you create collections in your store? We couldn’t find any.":"Have you added products to your store? We couldn’t find any.",[d,l,p,e]),g=react.useMemo(()=>p?e?"Add products to collection":"Add collection to Shopify":"Add products to Shopify",[p,e]),x=react.useMemo(()=>{if(!c)return;let e=new URL(c);return p?`${e.protocol}//${e.host}/admin/collections`:`${e.protocol}//${e.host}/admin/products`},[p,c]);return jsxRuntime.jsxs("div",{...s,className:`gp-relative gp-flex gp-h-[98px] gp-flex-col gp-items-center gp-justify-center gp-rounded gp-border-dotted gp-border-[#676767] gp-border ${u?"gp-py-16":""}`,children:[jsxRuntime.jsxs("div",{className:`gp-flex gp-items-center gp-justify-center ${u?"gp-flex-col gp-gap-[7px] gp-py-16":""}`,children:[jsxRuntime.jsx("span",{className:"gp-mr-2",children:jsxRuntime.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",children:[jsxRuntime.jsx("g",{clipPath:"url(#clip0_9546_221079)",children:jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5728 3.86863C11.0976 3.04379 9.90241 3.04379 9.4272 3.86863L1.91575 16.9064C1.44289 17.7271 2.0381 18.75 2.98855 18.75H18.0114C18.9619 18.75 19.5571 17.7271 19.0842 16.9064L11.5728 3.86863ZM10.5 6.43064C10.8452 6.43064 11.125 6.7092 11.125 7.05282V12.6524C11.125 12.996 10.8452 13.2746 10.5 13.2746C10.1548 13.2746 9.875 12.996 9.875 12.6524V7.05282C9.875 6.7092 10.1548 6.43064 10.5 6.43064ZM10.5 14.7678C9.94771 14.7678 9.5 15.2135 9.5 15.7633C9.5 16.3131 9.94771 16.7588 10.5 16.7588C11.0523 16.7588 11.5 16.3131 11.5 15.7633C11.5 15.2135 11.0523 14.7678 10.5 14.7678Z",fill:"#494949"})}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:"clip0_9546_221079",children:jsxRuntime.jsx("rect",{width:"20",height:"21",fill:"white",transform:"translate(0.5)"})})})]})}),u?jsxRuntime.jsx(ProductNotFoundRelated.default,{assignProductNoTags:r,relatedTagString:o,noAssignedProduct:n}):jsxRuntime.jsx("span",{className:"gp-text-sm gp-font-normal gp-text-[#212121]",children:a})]}),d?jsxRuntime.jsx("div",{children:l?jsxRuntime.jsx("div",{onClick:()=>{x&&window.open(x,"_blank")},"aria-hidden":"true",className:"gp-cursor-pointer gp-text-sm gp-font-medium gp-text-[#3C67FF] gp-no-underline hover:gp-text-[#0A3BE7]",children:g}):jsxRuntime.jsx("div",{onClick:()=>{window.parent.postMessage("toggleImportProductModal")},"aria-hidden":"true",className:"gp-cursor-pointer gp-text-sm gp-font-medium gp-text-[#3C67FF] gp-no-underline",children:"Import from Shopify"})}):u?null:jsxRuntime.jsxs("div",{className:"gp-text-sm gp-font-normal gp-text-[#212121]",children:[jsxRuntime.jsx("span",{"aria-hidden":!0,onClick:()=>{x&&window.open(x,"_blank")},className:"gp-cursor-pointer gp-font-medium gp-text-[#3C67FF] hover:gp-text-[#0A3BE7] hover:gp-underline",children:g})," ","or pick another ",p?"collection":"product"]}),core.filterToolbarPreview(i,!0)]})};exports.default=ProductNotFound;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime");const ProductNotFoundRelated=({assignProductNoTags:e,relatedTagString:t,noAssignedProduct:n})=>{let s=()=>{let e=new CustomEvent("editor:toolbar:open-assigned-product",{bubbles:!0});window.dispatchEvent(e)},i=()=>{let e=new CustomEvent("editor:toolbar:change-condition-related-product",{bubbles:!0});window.dispatchEvent(e)};return jsxRuntime.jsx("div",{children:jsxRuntime.jsxs("div",{className:"gp-flex gp-flex-col gp-gap-[4px] gp-text-14 gp-font-semibold gp-leading-6",children:[n&&jsxRuntime.jsx("div",{className:"gp-text-[#212121]",children:"There are no products in your store."}),e&&!n?jsxRuntime.jsxs("div",{className:"gp-text-[#212121]",children:["The ",jsxRuntime.jsx("button",{className:"gp-no-underline gp-text-[#3C67FF]",onClick:s,children:"assigned product"})," being previewed does not belong to any ",t,"."]}):jsxRuntime.jsxs("div",{className:"gp-text-[#212121]",children:["There are no products in the same ",t," as the ",jsxRuntime.jsx("button",{className:"gp-no-underline gp-text-[#3C67FF]",onClick:s,children:"assigned product"})," being previewed."]}),jsxRuntime.jsx("button",{className:"gp-text-[#3C67FF]",onClick:i,children:"Change condition"})]})})};exports.default=ProductNotFoundRelated;
|
|
@@ -5,7 +5,7 @@
|
|
|
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:[{id:"setting",controls:[{id:"productSetting",type:"product-list",label:"Select product list",default:{productSrc:"PickProduct",productIds:[],collectionId:"Latest",numOfSelectedProducts:4,relatedType:"related-product",relatedTag:["collection"],hasRelatedExclude:!1}},{id:"
|
|
8
|
+
`,settings:[{id:"setting",controls:[{id:"productSetting",type:"product-list",label:"Select product list",default:{productSrc:"PickProduct",productIds:[],collectionId:"Latest",numOfSelectedProducts:4,relatedType:"related-product",relatedTag:["collection"],hasRelatedExclude:!1}},{id:"slidesToShow",type:"range",min:1,max:6,label:"Products per rows ",hideUnit:!0,useOnlyUnitInit:!0,devices:{desktop:{default:4},tablet:{default:3},mobile:{default:2}}},{id:"numberOfProducts",type:"range",min:1,max:50,label:"Number of products",default:4,hide:!0,hideUnit:!0,useOnlyUnitInit:!0},{id:"slider-settings",label:"Slider Settings",type:"group",hide:!0,controls:[{id:"dot",label:"Dot",type:"toggle",devices:{desktop:{default:!1}}},{id:"dotStyle",label:"Dot style",type:"layout-segment",iconViewBox:"0 0 77 48",enableItemBackground:!0,enableTooltip:!0,options:[{label:"None",value:"none",type:"carousel-dot",isTextIcon:!0},{label:"Inside",value:"inside",type:"carousel-dot"},{label:"Outside",value:"outside",type:"carousel-dot"}],devices:{desktop:{default:"inside"}}},{id:"dotSize",label:"Dots size",type:"input:number",min:1,devices:{desktop:{default:12}}},{id:"dotGapToCarousel",label:"Gap to carousel",type:"input:unit",useOnlyUnitInit:!0,units:["px"],min:0,devices:{desktop:{default:16}}},{id:"dotColor",label:"Dot color",type:"colorpicker",devices:{desktop:{default:"bg-1"}}},{id:"dotActiveColor",label:"Dot color active",type:"colorpicker",devices:{desktop:{default:"line-3"}}},{id:"arrow",label:"Next/Prev Arrow",type:"toggle",devices:{desktop:{default:!1}}},{id:"arrowCustom",label:"Custom Arrow",type:"icon",default:'<svg height="100%" width="100%" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M5 3l3.057-3 11.943 12-11.943 12-3.057-3 9-9z"></path></svg>'},{id:"arrowCustomColor",label:"Icon color",type:"colorpicker",default:"#000000"},{id:"controlOverContent",label:"Control Over Content",type:"toggle",devices:{desktop:{default:!1}}},{id:"loop",label:"Loop",type:"toggle",devices:{desktop:{default:!1}}},{id:"speed",label:"Speed(s)",type:"input:number",min:0,max:60,default:2,hide:!0},{id:"dragToScroll",label:"Drag to scroll",type:"toggle",default:!1},{id:"autoplay",label:"Autoplay",type:"toggle",default:!1},{id:"pauseOnHover",label:"Pause On Hover",type:"toggle",default:!0,hide:!0},{id:"autoplayTimeout",label:"Timeout(s)",type:"range",min:1,max:10,step:.1,default:2,hide:!0,hideUnit:!0,useOnlyUnitInit:!0}]}]},{id:"style",controls:[{id:"layout",type:"segment",label:"Layout",default:"grid",options:[{label:"Grid",value:"grid"},{label:"Slider",value:"slider"}]},{id:"dimensions",label:"Dimensions",type:"group",controls:[{id:"fullWidth",label:"Full Width",type:"toggle",devices:{desktop:{default:!0}}},{id:"width",label:"Width",type:"input:unit",emptyOnClear:!0,units:["px","%"],devices:{desktop:{default:void 0}},hide:!0},{id:"adaptiveHeight",label:"Fit height to content",type:"toggle",devices:{desktop:{default:!0}},hide:!0},{id:"height",label:"Height",type:"input:unit",units:["px"],devices:{desktop:{default:"400px"}},hide:!0}]},{id:"grid",label:"Grid",type:"group",controls:[{id:"horizontalGutter",label:"Row gap",type:"input:unit",units:["px"],devices:{desktop:{default:"16px"},mobile:{default:"16px"}}},{id:"verticalGutter",label:"Column gap",type:"input:unit-spacing",units:["px"],devices:{desktop:{default:"8px"},mobile:{default:"8px"}}}],hide:!0},{id:"slider",label:"Slider",type:"group",controls:[{id:"spacing",label:"Item Spacing",type:"input:unit",min:0,useOnlyUnitInit:!0,units:["px"],devices:{desktop:{default:44}}}],hide:!0}]}],ui:[{type:"control",label:{en:"Select product list"},setting:{id:"productSetting"},layout:"vertical"},{type:"group",label:{en:"Products per row"},controls:[{type:"control",label:{en:"Number"},setting:{id:"slidesToShow"}}]},{type:"group",label:{en:"Number of products"},condition:"productSetting.productSrc === 'RelatedProduct' || !!productSetting && productSetting.productSrc !== 'PickProduct'",controls:[{type:"control",label:{en:"Number"},setting:{id:"numberOfProducts"}}]},{type:"control",label:{en:"Layout"},options:{label:"large"},setting:{id:"layout"}},{type:"group",label:{en:"Slider settings"},condition:"layout === 'slider'",controls:[{type:"control",label:{en:"Drag to scroll"},setting:{id:"dragToScroll"}},{type:"control",label:{en:"Infinity loop"},setting:{id:"loop"}},{type:"control",label:{en:"Autoplay"},setting:{id:"autoplay"}},{type:"control",label:{en:"Pause On Hover"},setting:{id:"pauseOnHover"},condition:"autoplay == true"},{type:"control",label:{en:"Timeout(s)"},setting:{id:"autoplayTimeout"},condition:"autoplay == true"},{type:"control",label:{en:"Dots"},setting:{id:"dot"}},{condition:"dot === true",type:"control",label:{en:"Dot color"},setting:{id:"dotColor"}},{condition:"dot === true",type:"control",label:{en:"Dot color active"},setting:{id:"dotActiveColor"}},{type:"control",label:{en:"Arrows next & previous"},setting:{id:"arrow"}},{condition:"arrow === true",type:"control",label:{en:"Position"},setting:{id:"controlOverContent"}},{condition:"arrow === true",type:"control",layout:"vertical",setting:{id:"arrowCustom"}},{condition:"arrow === true",type:"control",label:{en:"Icon color"},setting:{id:"arrowCustomColor"}},{type:"control",label:{en:"Item spacing"},setting:{id:"spacing"}}]},{type:"group",label:{en:"Size"},controls:[{type:"control",label:{en:"Full width"},setting:{id:"fullWidth"}},{type:"control",label:{en:"Width"},condition:"fullWidth === false",setting:{id:"width"}},{type:"control",label:{en:"Fit height to content"},condition:'layout === "slider"',setting:{id:"adaptiveHeight"}},{type:"control",label:{en:"Height"},condition:'layout === "slider" && adaptiveHeight === false',setting:{id:"height"}}]},{type:"group",label:{en:"Grid"},condition:"layout === 'grid'",controls:[{type:"control",label:{en:"Row gap"},setting:{id:"horizontalGutter"}},{type:"control",label:{en:"Column gap"},setting:{id:"verticalGutter"}}]}],editorConfigs:{slots:{children:!0},toolbar:{parent:!0},placeholder:{notAppendTags:["Product","ProductList","ContactForm","Newsletter"]}},presets:[{id:"product-list",name:{en:"Product List"},icon:{desktop:`
|
|
9
9
|
<svg width="96" height="48" viewBox="0 0 96 48" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
10
10
|
<rect width="29.3333" height="30" rx="3" fill="#494949"/>
|
|
11
11
|
<path d="M8.6665 10.4299L12.6625 9.02328C12.6625 9.02328 13.1484 10.1703 14.6705 10.1703C16.1926 10.1703 16.6732 9 16.6732 9L20.6665 10.4299L20.0018 13.957H17.9978V20.3355H11.3265V13.9549H9.33251L8.6665 10.4299Z" fill="#D6D6D6"/>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as t,Fragment as o,jsxs as e}from"react/jsx-runtime";import{useEditorMode as r,usePageType as d,usePageStore as l,useProductQuery as
|
|
1
|
+
import{jsx as t,Fragment as o,jsxs as e}from"react/jsx-runtime";import{useEditorMode as r,usePageType as d,usePageStore as l,useProductQuery as a,useCollectionQuery as i,useProductsQuery as n,useProductsQueryAll as c,flattenConnection as s,ProductListProvider as u,makeStyleResponsive as p,makeWidth as m,getResponsiveValueByScreen as g,cls as h,ProductProvider as P,isEmptyChildren as f}from"@gem-sdk/core";import T from"next/dynamic";import{useMemo as S,useState as v,useEffect as C}from"react";import b from"../../common/components/Loading.js";import w from"../../carousel/components/Carousel.js";import y from"../../carousel/components/CarouselItem.js";import O from"../../grid/components/ChildrenDroppable.js";import{getUpdatedArrowDisplay as I}from"../../carousel/components/common/arrow.js";import{getUpdatedDotStyle as k}from"../../carousel/components/common/dots.js";import N from"./SalePageProductListWarning.js";import{getInitialWidthForCarouselItem as E}from"../../carousel/components/common/carousel.js";import{getSizeSetting as W}from"../helpers/product.js";let ProductNotFound=T(()=>import("./ProductNotFound.js"),{loading:b}),ProductList=({children:T,className:x,setting:j,styles:D,builderProps:G})=>{let L=r(),A=d(),z=j?.productSetting??{},B=l(t=>t.dynamicCollection),H="GP_COLLECTION"==A;H&&(z.productSrc="DynamicCollection",z.collectionId=B?.collectionId??"latest");let F=S(()=>"GP_FUNNEL_PAGE"===A,[A]),Q=S(()=>I(j?.arrow,j?.controlOverContent),[j?.arrow,j?.controlOverContent]),[_,M]=v(),[R,$]=v(!1),V="RelatedProduct"===z.productSrc,U=S(()=>k(j?.dot),[j?.dot]),q=z?.productSrc??"Collection",J=S(()=>({id:z?.collectionId??"latest",numberOfProducts:j?.numberOfProducts??4,orderBy:j?.orderBy==="none"?"CREATED_AT_DESC":j?.orderBy}),[z?.collectionId,j?.numberOfProducts,j?.orderBy]),{data:K}=a(V&&j?.productSetting?.relatedProductId?j.productSetting.relatedProductId:void 0),X=z.relatedTag&&"tags"===z.relatedTag[0]&&(!K?.tags||K?.tags.length===0),Y=z.relatedTag&&"collection"===z.relatedTag[0]&&(!K?.collections?.edges||K?.collections.edges.length===0),Z=z.relatedTag&&"vendor"===z.relatedTag[0]&&!K?.vendor,tt=X||Y||Z;C(()=>{if(V&&K&&z.relatedTag&&"recommended-product"!==z.relatedType){let t;switch($(!1),z.hasRelatedExclude&&(t=z?.relatedExclude&&z.relatedExclude.split(",").map(t=>t.trim())),z.relatedTag[0]){case"vendor":M({vendor:z.relatedTag&&"vendor"===z.relatedTag[0]?K?.vendor:"",limit:j?.numberOfProducts,idNEQ:K.id});break;case"collection":{let o;let e=K?.collections?.edges.map(t=>t.node?.id);if(!e||e?.length===0){$(!0);break}M(o=t&&t.length>0?{idNEQ:K.id,hasCollectionProductsWith:[{hasCollectionWith:[{idIn:e},{titleNotIn:t}]}],limit:j?.numberOfProducts}:{idNEQ:K.id,hasCollectionProductsWith:[{hasCollectionWith:[{idIn:e}]}],limit:j?.numberOfProducts});break}case"tags":{let o;if(!K.tags||0===K.tags.length){$(!0);break}M(o=t&&t.length>0?{idNEQ:K.id,hasProductTagsWith:[{hasTagsWith:[{nameIn:K.tags},{nameNotIn:t}]}],limit:j?.numberOfProducts}:{idNEQ:K.id,hasProductTagsWith:[{hasTagsWith:[{nameIn:K.tags}]}],limit:j?.numberOfProducts})}}}},[K,z.relatedType,z.relatedTag,j?.numberOfProducts,z.relatedExclude,z.hasRelatedExclude,V]);let to=i("PickProduct"!==q?J:void 0),te=n("PickProduct"===q?z?.productIds:void 0,{revalidateOnMount:"edit"===L},{defaultSelectedProductCount:z?.numOfSelectedProducts}),tr=c(_,{revalidateOnMount:"edit"===L}),[td,tl]=v(!0),ta="PickProduct"===q?te.isValidating:to.isValidating,ti="PickProduct"===q?te.isLoading:to.isLoading,tn="PickProduct"===q?te.error:to.error,tc=to.data?.collections?.edges?.[0]?.node,ts="PickProduct"===q?s(te.data?.products):s(tc?.products),tu=tr?.data?.products?s(tr?.data?.products):void 0,tp=V&&tu?tu:"PickProduct"===q&&z?.productIds?.length?z?.productIds?.map(t=>ts?.find(o=>o?.baseID===t)).filter(Boolean)??ts:"PickProduct"!==q?ts:ts.filter((t,o)=>o<(z?.numOfSelectedProducts||4));if(G?.isPreview&&F)return null;let tm=z.relatedTag&&z.relatedTag[0];return R&&V&&"edit"==L?t(ProductNotFound,{collectionHandle:tc?.handle,productSrc:q,onClose:()=>tl(!1),children:T,relatedTagString:tm,assignProductNoTags:tt,noAssignedProduct:!j?.productSetting?.relatedProductId}):tp.length||ti||"edit"!=L?t(o,{children:ta||ti?t(b,{}):tn?e("div",{children:["Error: ",tn?.message]}):!tp||R&&V?t("div",{children:"Products not found"}):t(u,{collection:tc,products:tp,settings:{loop:j?.loop??{desktop:!1},scrollMode:j?.scrollMode??{desktop:"snap"},slidesToShow:j?.slidesToShow??{desktop:4,tablet:3,mobile:1},layout:D?.layout,dot:j?.dot,dotStyle:j?.dotStyle,arrow:j?.arrow,controlOverContent:j?.controlOverContent},styles:{horizontalGutter:D?.horizontalGutter,verticalGutter:D?.verticalGutter,fullWidth:D?.fullWidth,spacing:D?.spacing,width:D?.width,height:D?.height},children:e("div",{className:"gp-relative",children:[F&&t(N,{}),D?.layout==="grid"?t("div",{style:{...p("w",m(D?.width,D?.fullWidth)),...p("rg",D?.horizontalGutter),...p("cg",D?.verticalGutter),...p("gtc",{desktop:`repeat(${g(j?.slidesToShow,"desktop")}, minmax(0, 1fr))`,tablet:j?.slidesToShow?.tablet&&`repeat(${g(j?.slidesToShow,"tablet")}, minmax(0, 1fr))`,mobile:j?.slidesToShow?.mobile&&`repeat(${g(j?.slidesToShow,"mobile")}, minmax(0, 1fr))`})},className:h(x,"gp-m-auto gp-grid gp-w-full"),children:tp?.length?tp?.map(o=>t(P,{product:o,readOnly:!0,children:t("div",{..."edit"===L?{"data-component-type":"component","data-component-tag":"Product","data-component-label":"Product","data-component-no-setting":!0,"data-product-id":o?.baseID?.replace("gid://shopify/Product/","")}:{},children:f(T)?t(O,{}):T})},o?.baseID)):null}):t(w,{setting:{loop:j?.loop,slidesToShow:j?.slidesToShow,dot:j?.dot,dotStyle:U,dotSize:{desktop:12},dotGapToCarousel:{desktop:16},navigationStyle:Q,arrowCustom:j?.arrowCustom,controlOverContent:j?.controlOverContent,enableDrag:{desktop:j?.dragToScroll,tablet:j?.dragToScroll,mobile:j?.dragToScroll},speed:j?.speed,dotActiveColor:j?.dotActiveColor,dotColor:j?.dotColor,autoplay:j?.autoplay,pauseOnHover:j?.pauseOnHover,autoplayTimeout:j?.autoplayTimeout,arrowCustomColor:j?.arrowCustomColor,arrowButtonSize:{desktop:{width:"24px",height:"24px"}}},rootClass:"gp-justify-center",styles:{sizeSetting:{...W({adaptiveHeight:D?.adaptiveHeight,fullWidth:D?.fullWidth,width:D?.width,height:D?.height})},spacing:D?.spacing},children:tp?.map(o=>t(y,{style:{...E({spacing:D?.spacing,slidesToShow:j?.slidesToShow})},children:t(P,{product:o,readOnly:!0,children:t("div",{..."edit"===L?{"data-component-type":"component","data-component-tag":"Product","data-component-label":"Product","data-component-no-setting":!0,"data-product-id":o?.baseID?.replace("gid://shopify/Product/","")}:{},children:f(T)?t(O,{}):T})})},o?.baseID))})]})})}):td?t(ProductNotFound,{collectionHandle:tc?.handle,productSrc:q,onClose:()=>tl(!1),children:T,relatedTagString:tm,assignProductNoTags:tt,noAssignedProduct:!j?.productSetting?.relatedProductId}):null};export{ProductList as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as e,jsx as
|
|
1
|
+
import{jsxs as e,jsx as o}from"react/jsx-runtime";import{usePageType as t,useShopStore as r,filterToolbarPreview as n}from"@gem-sdk/core";import{useMemo as d}from"react";import i from"./ProductNotFoundRelated.js";let ProductNotFound=({collectionHandle:l,productSrc:p,relatedTagString:c,assignProductNoTags:a,noAssignedProduct:s,builderAttrs:g,children:u})=>{let m="STATIC"===t(),h=r(e=>e.storefrontToken),f=r(e=>e.storefrontUrl),x="Collection"===p,C="RelatedProduct"===p,v=d(()=>m&&!h?"We can not get your products from Shopify":x?l?"Have you add products to this collection? We couldn’t find any.":"Have you create collections in your store? We couldn’t find any.":"Have you added products to your store? We couldn’t find any.",[m,h,x,l]),y=d(()=>x?l?"Add products to collection":"Add collection to Shopify":"Add products to Shopify",[x,l]),w=d(()=>{if(!f)return;let e=new URL(f);return x?`${e.protocol}//${e.host}/admin/collections`:`${e.protocol}//${e.host}/admin/products`},[x,f]);return e("div",{...g,className:`gp-relative gp-flex gp-h-[98px] gp-flex-col gp-items-center gp-justify-center gp-rounded gp-border-dotted gp-border-[#676767] gp-border ${C?"gp-py-16":""}`,children:[e("div",{className:`gp-flex gp-items-center gp-justify-center ${C?"gp-flex-col gp-gap-[7px] gp-py-16":""}`,children:[o("span",{className:"gp-mr-2",children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",children:[o("g",{clipPath:"url(#clip0_9546_221079)",children:o("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5728 3.86863C11.0976 3.04379 9.90241 3.04379 9.4272 3.86863L1.91575 16.9064C1.44289 17.7271 2.0381 18.75 2.98855 18.75H18.0114C18.9619 18.75 19.5571 17.7271 19.0842 16.9064L11.5728 3.86863ZM10.5 6.43064C10.8452 6.43064 11.125 6.7092 11.125 7.05282V12.6524C11.125 12.996 10.8452 13.2746 10.5 13.2746C10.1548 13.2746 9.875 12.996 9.875 12.6524V7.05282C9.875 6.7092 10.1548 6.43064 10.5 6.43064ZM10.5 14.7678C9.94771 14.7678 9.5 15.2135 9.5 15.7633C9.5 16.3131 9.94771 16.7588 10.5 16.7588C11.0523 16.7588 11.5 16.3131 11.5 15.7633C11.5 15.2135 11.0523 14.7678 10.5 14.7678Z",fill:"#494949"})}),o("defs",{children:o("clipPath",{id:"clip0_9546_221079",children:o("rect",{width:"20",height:"21",fill:"white",transform:"translate(0.5)"})})})]})}),C?o(i,{assignProductNoTags:a,relatedTagString:c,noAssignedProduct:s}):o("span",{className:"gp-text-sm gp-font-normal gp-text-[#212121]",children:v})]}),m?o("div",{children:h?o("div",{onClick:()=>{w&&window.open(w,"_blank")},"aria-hidden":"true",className:"gp-cursor-pointer gp-text-sm gp-font-medium gp-text-[#3C67FF] gp-no-underline hover:gp-text-[#0A3BE7]",children:y}):o("div",{onClick:()=>{window.parent.postMessage("toggleImportProductModal")},"aria-hidden":"true",className:"gp-cursor-pointer gp-text-sm gp-font-medium gp-text-[#3C67FF] gp-no-underline",children:"Import from Shopify"})}):C?null:e("div",{className:"gp-text-sm gp-font-normal gp-text-[#212121]",children:[o("span",{"aria-hidden":!0,onClick:()=>{w&&window.open(w,"_blank")},className:"gp-cursor-pointer gp-font-medium gp-text-[#3C67FF] hover:gp-text-[#0A3BE7] hover:gp-underline",children:y})," ","or pick another ",x?"collection":"product"]}),n(u,!0)]})};export{ProductNotFound as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,jsxs as t}from"react/jsx-runtime";let ProductNotFoundRelated=({assignProductNoTags:n,relatedTagString:o,noAssignedProduct:d})=>{let i=()=>{let e=new CustomEvent("editor:toolbar:open-assigned-product",{bubbles:!0});window.dispatchEvent(e)},l=()=>{let e=new CustomEvent("editor:toolbar:change-condition-related-product",{bubbles:!0});window.dispatchEvent(e)};return e("div",{children:t("div",{className:"gp-flex gp-flex-col gp-gap-[4px] gp-text-14 gp-font-semibold gp-leading-6",children:[d&&e("div",{className:"gp-text-[#212121]",children:"There are no products in your store."}),n&&!d?t("div",{className:"gp-text-[#212121]",children:["The ",e("button",{className:"gp-no-underline gp-text-[#3C67FF]",onClick:i,children:"assigned product"})," being previewed does not belong to any ",o,"."]}):t("div",{className:"gp-text-[#212121]",children:["There are no products in the same ",o," as the ",e("button",{className:"gp-no-underline gp-text-[#3C67FF]",onClick:i,children:"assigned product"})," being previewed."]}),e("button",{className:"gp-text-[#3C67FF]",onClick:l,children:"Change condition"})]})})};export{ProductNotFoundRelated as default};
|
|
@@ -5,7 +5,7 @@ let config={tag:"ProductList",label:"Product List",icon:`
|
|
|
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:[{id:"setting",controls:[{id:"productSetting",type:"product-list",label:"Select product list",default:{productSrc:"PickProduct",productIds:[],collectionId:"Latest",numOfSelectedProducts:4,relatedType:"related-product",relatedTag:["collection"],hasRelatedExclude:!1}},{id:"
|
|
8
|
+
`,settings:[{id:"setting",controls:[{id:"productSetting",type:"product-list",label:"Select product list",default:{productSrc:"PickProduct",productIds:[],collectionId:"Latest",numOfSelectedProducts:4,relatedType:"related-product",relatedTag:["collection"],hasRelatedExclude:!1}},{id:"slidesToShow",type:"range",min:1,max:6,label:"Products per rows ",hideUnit:!0,useOnlyUnitInit:!0,devices:{desktop:{default:4},tablet:{default:3},mobile:{default:2}}},{id:"numberOfProducts",type:"range",min:1,max:50,label:"Number of products",default:4,hide:!0,hideUnit:!0,useOnlyUnitInit:!0},{id:"slider-settings",label:"Slider Settings",type:"group",hide:!0,controls:[{id:"dot",label:"Dot",type:"toggle",devices:{desktop:{default:!1}}},{id:"dotStyle",label:"Dot style",type:"layout-segment",iconViewBox:"0 0 77 48",enableItemBackground:!0,enableTooltip:!0,options:[{label:"None",value:"none",type:"carousel-dot",isTextIcon:!0},{label:"Inside",value:"inside",type:"carousel-dot"},{label:"Outside",value:"outside",type:"carousel-dot"}],devices:{desktop:{default:"inside"}}},{id:"dotSize",label:"Dots size",type:"input:number",min:1,devices:{desktop:{default:12}}},{id:"dotGapToCarousel",label:"Gap to carousel",type:"input:unit",useOnlyUnitInit:!0,units:["px"],min:0,devices:{desktop:{default:16}}},{id:"dotColor",label:"Dot color",type:"colorpicker",devices:{desktop:{default:"bg-1"}}},{id:"dotActiveColor",label:"Dot color active",type:"colorpicker",devices:{desktop:{default:"line-3"}}},{id:"arrow",label:"Next/Prev Arrow",type:"toggle",devices:{desktop:{default:!1}}},{id:"arrowCustom",label:"Custom Arrow",type:"icon",default:'<svg height="100%" width="100%" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M5 3l3.057-3 11.943 12-11.943 12-3.057-3 9-9z"></path></svg>'},{id:"arrowCustomColor",label:"Icon color",type:"colorpicker",default:"#000000"},{id:"controlOverContent",label:"Control Over Content",type:"toggle",devices:{desktop:{default:!1}}},{id:"loop",label:"Loop",type:"toggle",devices:{desktop:{default:!1}}},{id:"speed",label:"Speed(s)",type:"input:number",min:0,max:60,default:2,hide:!0},{id:"dragToScroll",label:"Drag to scroll",type:"toggle",default:!1},{id:"autoplay",label:"Autoplay",type:"toggle",default:!1},{id:"pauseOnHover",label:"Pause On Hover",type:"toggle",default:!0,hide:!0},{id:"autoplayTimeout",label:"Timeout(s)",type:"range",min:1,max:10,step:.1,default:2,hide:!0,hideUnit:!0,useOnlyUnitInit:!0}]}]},{id:"style",controls:[{id:"layout",type:"segment",label:"Layout",default:"grid",options:[{label:"Grid",value:"grid"},{label:"Slider",value:"slider"}]},{id:"dimensions",label:"Dimensions",type:"group",controls:[{id:"fullWidth",label:"Full Width",type:"toggle",devices:{desktop:{default:!0}}},{id:"width",label:"Width",type:"input:unit",emptyOnClear:!0,units:["px","%"],devices:{desktop:{default:void 0}},hide:!0},{id:"adaptiveHeight",label:"Fit height to content",type:"toggle",devices:{desktop:{default:!0}},hide:!0},{id:"height",label:"Height",type:"input:unit",units:["px"],devices:{desktop:{default:"400px"}},hide:!0}]},{id:"grid",label:"Grid",type:"group",controls:[{id:"horizontalGutter",label:"Row gap",type:"input:unit",units:["px"],devices:{desktop:{default:"16px"},mobile:{default:"16px"}}},{id:"verticalGutter",label:"Column gap",type:"input:unit-spacing",units:["px"],devices:{desktop:{default:"8px"},mobile:{default:"8px"}}}],hide:!0},{id:"slider",label:"Slider",type:"group",controls:[{id:"spacing",label:"Item Spacing",type:"input:unit",min:0,useOnlyUnitInit:!0,units:["px"],devices:{desktop:{default:44}}}],hide:!0}]}],ui:[{type:"control",label:{en:"Select product list"},setting:{id:"productSetting"},layout:"vertical"},{type:"group",label:{en:"Products per row"},controls:[{type:"control",label:{en:"Number"},setting:{id:"slidesToShow"}}]},{type:"group",label:{en:"Number of products"},condition:"productSetting.productSrc === 'RelatedProduct' || !!productSetting && productSetting.productSrc !== 'PickProduct'",controls:[{type:"control",label:{en:"Number"},setting:{id:"numberOfProducts"}}]},{type:"control",label:{en:"Layout"},options:{label:"large"},setting:{id:"layout"}},{type:"group",label:{en:"Slider settings"},condition:"layout === 'slider'",controls:[{type:"control",label:{en:"Drag to scroll"},setting:{id:"dragToScroll"}},{type:"control",label:{en:"Infinity loop"},setting:{id:"loop"}},{type:"control",label:{en:"Autoplay"},setting:{id:"autoplay"}},{type:"control",label:{en:"Pause On Hover"},setting:{id:"pauseOnHover"},condition:"autoplay == true"},{type:"control",label:{en:"Timeout(s)"},setting:{id:"autoplayTimeout"},condition:"autoplay == true"},{type:"control",label:{en:"Dots"},setting:{id:"dot"}},{condition:"dot === true",type:"control",label:{en:"Dot color"},setting:{id:"dotColor"}},{condition:"dot === true",type:"control",label:{en:"Dot color active"},setting:{id:"dotActiveColor"}},{type:"control",label:{en:"Arrows next & previous"},setting:{id:"arrow"}},{condition:"arrow === true",type:"control",label:{en:"Position"},setting:{id:"controlOverContent"}},{condition:"arrow === true",type:"control",layout:"vertical",setting:{id:"arrowCustom"}},{condition:"arrow === true",type:"control",label:{en:"Icon color"},setting:{id:"arrowCustomColor"}},{type:"control",label:{en:"Item spacing"},setting:{id:"spacing"}}]},{type:"group",label:{en:"Size"},controls:[{type:"control",label:{en:"Full width"},setting:{id:"fullWidth"}},{type:"control",label:{en:"Width"},condition:"fullWidth === false",setting:{id:"width"}},{type:"control",label:{en:"Fit height to content"},condition:'layout === "slider"',setting:{id:"adaptiveHeight"}},{type:"control",label:{en:"Height"},condition:'layout === "slider" && adaptiveHeight === false',setting:{id:"height"}}]},{type:"group",label:{en:"Grid"},condition:"layout === 'grid'",controls:[{type:"control",label:{en:"Row gap"},setting:{id:"horizontalGutter"}},{type:"control",label:{en:"Column gap"},setting:{id:"verticalGutter"}}]}],editorConfigs:{slots:{children:!0},toolbar:{parent:!0},placeholder:{notAppendTags:["Product","ProductList","ContactForm","Newsletter"]}},presets:[{id:"product-list",name:{en:"Product List"},icon:{desktop:`
|
|
9
9
|
<svg width="96" height="48" viewBox="0 0 96 48" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
10
10
|
<rect width="29.3333" height="30" rx="3" fill="#494949"/>
|
|
11
11
|
<path d="M8.6665 10.4299L12.6625 9.02328C12.6625 9.02328 13.1484 10.1703 14.6705 10.1703C16.1926 10.1703 16.6732 9 16.6732 9L20.6665 10.4299L20.0018 13.957H17.9978V20.3355H11.3265V13.9549H9.33251L8.6665 10.4299Z" fill="#D6D6D6"/>
|