@gem-sdk/components 8.0.0-dev.75 → 8.0.0-dev.77

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.
Files changed (31) hide show
  1. package/dist/cjs/cart/components/CartList.js +1 -1
  2. package/dist/cjs/cart/index.js +1 -1
  3. package/dist/cjs/collection/index.js +1 -1
  4. package/dist/cjs/grid/index.js +1 -1
  5. package/dist/cjs/header/components/kind/basic/index.js +1 -1
  6. package/dist/cjs/header/components/kind/modern/index.js +1 -1
  7. package/dist/cjs/header/index.js +1 -1
  8. package/dist/cjs/helpers.js +1 -1
  9. package/dist/cjs/hero-banner/index.js +1 -1
  10. package/dist/cjs/post-purchase/callout-banner/index.js +1 -1
  11. package/dist/cjs/post-purchase/product/index.js +1 -1
  12. package/dist/cjs/product/components/product-badge/ProductBadge.liquid.js +18 -18
  13. package/dist/cjs/product/settings/bundle-layout/horizontal-three.js +1 -1
  14. package/dist/cjs/product/settings/bundle-layout/horizontal-two.js +1 -1
  15. package/dist/cjs/video/common/helpers.js +1 -1
  16. package/dist/esm/cart/components/CartList.js +1 -1
  17. package/dist/esm/cart/index.js +1 -1
  18. package/dist/esm/collection/index.js +1 -1
  19. package/dist/esm/grid/index.js +1 -1
  20. package/dist/esm/header/components/kind/basic/index.js +1 -1
  21. package/dist/esm/header/components/kind/modern/index.js +1 -1
  22. package/dist/esm/header/index.js +1 -1
  23. package/dist/esm/helpers.js +1 -1
  24. package/dist/esm/hero-banner/index.js +1 -1
  25. package/dist/esm/post-purchase/callout-banner/index.js +1 -1
  26. package/dist/esm/post-purchase/product/index.js +1 -1
  27. package/dist/esm/product/components/product-badge/ProductBadge.liquid.js +23 -23
  28. package/dist/esm/product/settings/bundle-layout/horizontal-three.js +1 -1
  29. package/dist/esm/product/settings/bundle-layout/horizontal-two.js +1 -1
  30. package/dist/esm/video/common/helpers.js +1 -1
  31. package/package.json +2 -2
@@ -1 +1 @@
1
- let horizontalTwo=[{childrens:[{childrens:[{advanced:{d:{desktop:!0,mobile:!0,tablet:!0},editorData:{css:".{{rootClassName}} > div > div{\nwidth:100%;\n}",rootClassName:"{{rootClassName}}"},hasBoxShadow:{desktop:{normal:!1}},left:{desktop:"0px"},op:{desktop:"100%"},pos:{desktop:"static"},right:{desktop:"0px"},rounded:{desktop:{normal:{bblr:"0px",bbrr:"0px",btlr:"0px",btrr:"0px",radiusType:"none"}}},"spacing-setting":{desktop:{margin:{bottom:"8px"}}},z:{desktop:1}},label:"Product Badge",settings:{contentType:"text",displayContent:"SALE {percent_discount}",translate:"displayContent",displayTrigger:[{conditionType:"exact_or_above",from:"1",priority:0,quantityType:"exact_or_above",to:"15",triggerEvent:"inventory_status",type:"in_stock"}],image:{src:"https://cdn.shopify.com/s/files/1/0697/6182/7064/files/gempages_523190969722471488-fc9fecb6-26b8-4836-b417-2dfb9ea43bd5.png?v=1723733677"},positionWithImage:"outside",shape:"horizontal_rectangle"},styles:{align:{desktop:"left"},badgeColorV2:{desktop:"#FF614C"},borderRadius:{bblr:"0px",bbrr:"0px",btlr:"0px",btrr:"0px",radiusType:"custom"},hasShadow:!1,imageSize:{desktop:{disableShapeLinked:!0,height:"auto",shape:"original",shapeLinked:!0,width:"20%"}},position:{desktop:{bottomGap:"0",leftGap:"0",placement:"top-left",rightGap:"0",topGap:"0"}},shapeShadow:{angle:90,blur:"12px",color:"#121212",distance:"4px",spread:"0px",type:"shadow-1"},textColor:"text-3",textSize:{desktop:{disableShapeLinked:!0,gap:"",height:"Auto",hiddenShape:!0,padding:{bottom:"8px",left:"12px",right:"12px",top:"8px"},shape:"custom",shapeLinked:!1,width:"100%"}},typo:{attrs:{color:"text-3"},custom:{fontSize:{desktop:"15px"}},type:"paragraph-1"},textSizeV2:{desktop:{width:"Auto",height:"auto",shapeLinked:!1,disableShapeLinked:!0,hiddenShape:!0,shape:"custom",padding:{top:"12px",bottom:"12px",left:"12px",right:"12px"}}}},tag:"ProductBadge",uid:"gXAaVIfN3P",childrens:[]},{advanced:{d:{desktop:!0,mobile:!0,tablet:!0},editorData:{cssPlaceholder:".{{rootClassName}} {\n\n}\n.{{rootClassName}} > figure > img {\n\n}"},hasBoxShadow:{desktop:{normal:!1}},op:{desktop:"100%"},rounded:{desktop:{normal:{bblr:"0px",bbrr:"0px",btlr:"0px",btrr:"0px",radiusType:"none"}}},"spacing-setting":{desktop:{margin:{}}}},label:"Image",settings:{image:{height:1678,src:"https://cdn.shopify.com/s/files/1/2005/9307/files/image_demo.jpg",width:2237},imageLink:{link:"",target:"_self"},isAdaptive:!0,isNotLazyload:!1,priority:!1,quality:70,srcSet:{desktop:{height:240,src:"https://cdn.shopify.com/s/files/1/0617/5296/7323/files/gempages_516637113702155432-b286a16e-98e6-48ba-889d-a36b64249436.png",storage:"FILE_CONTENT",width:241}}},styles:{align:{desktop:"center"},borderImg:{normal:{border:"none",borderType:"none",borderWidth:"1px",color:"#000000",isCustom:!1,width:"1px 1px 1px 1px"}},borderRadius:{radiusType:"none"},boxShadowImg:{normal:{angle:90,blur:"12px",color:"rgba(0, 0, 0, 0.20)",distance:"4px",spread:"0px",type:"shadow-1"}},hasActiveShadow:!1,hasBoxShadowImg:{normal:!1},objectFit:{desktop:"cover"},opacity:{normal:0},opacityColor:{normal:"#242424"},shadow:{angle:40,blur:"12px",color:"rgba(18, 18, 18, 0.77)",distance:"10px",spread:"10px",type:"custom"},shape:{desktop:{shape:"original",shapeLinked:!0}},wrapperBorder:{border:"none",borderType:"none",borderWidth:"1px",color:"#000000",isCustom:!0,position:"all",width:"1px 1px 1px 1px"}},tag:"Image",uid:"gRq0Y_6o_C"},{childrens:[],label:"Text Block",settings:{background:{desktop:{attachment:"scroll",color:"transparent",image:{height:0,src:"",width:0},position:{x:50,y:50},repeat:"no-repeat",size:"cover",type:"color"}},globalSize:{desktop:{padding:{type:"custom"},width:"100%"}},htmlTag:"div",text:"bundle-title",translate:"text"},styles:{align:{desktop:"left"},hasLineClamp:{desktop:!1},lineClamp:{desktop:1,mobile:1,tablet:1},textAlign:{desktop:"center"},typo:{attrs:{bold:!0,color:"#121212"},type:"subheading-2"}},tag:"Text",uid:"gZCW_UZNgX"},{advanced:{"spacing-setting":{desktop:{margin:{bottom:0}}}},childrens:[],label:"Text Block",settings:{background:{desktop:{attachment:"scroll",color:"transparent",image:{height:0,src:"",width:0},position:{x:50,y:50},repeat:"no-repeat",size:"cover",type:"color"}},globalSize:{desktop:{padding:{type:"custom"},width:"100%"}},htmlTag:"div",text:"<p>Great value</p>",translate:"text"},styles:{align:{desktop:"left"},hasLineClamp:{desktop:!1},lineClamp:{desktop:1,mobile:1,tablet:1},textAlign:{desktop:"center"},typo:{attrs:{color:"#121212"},type:"paragraph-1"}},tag:"Text",uid:"gXozhYepEX"},{advanced:{"spacing-setting":{desktop:{margin:{bottom:0}}}},childrens:[{childrens:[{tag:"ProductPrice",label:"Product Price",settings:{priceType:"compare"},styles:{typo:{type:"subheading-2",default:{type:"subheading-2"}},color:{normal:"text-2"},lineThrough:!0,thickness:2,lineColor:"text-2",disableHoverColor:!0,hasTextShadow:{normal:!1},textShadow:{normal:{type:"shadow-1"}},textAlign:{desktop:"left"}},advanced:{"spacing-setting":{desktop:{margin:{bottom:0}}},d:{desktop:!0,tablet:!0,mobile:!0},border:{desktop:{normal:{borderType:"none",border:"none",borderWidth:"1px",width:"1px 1px 1px 1px",color:"#121212",isCustom:!0}}},rounded:{desktop:{normal:{btrr:"0px",bblr:"0px",bbrr:"0px",btlr:"0px",radiusType:"none"}}},hasBoxShadow:{desktop:{normal:!1}},boxShadow:{desktop:{normal:{}}},op:{desktop:"100%"}},defaultPresetConfig:{typo:{type:"subheading-2",default:{type:"subheading-2"}},color:{normal:"text-1"},lineThrough:!0,thickness:2,lineColor:"text-1",disableHoverColor:!0,hasTextShadow:{normal:!1},textShadow:{normal:{type:"shadow-1"}},textAlign:{desktop:"left"},"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}},d:{desktop:!0,tablet:!0,mobile:!0},border:{desktop:{normal:{borderType:"none",border:"none",borderWidth:"1px",width:"1px 1px 1px 1px",color:"#121212",isCustom:!0}}},rounded:{desktop:{normal:{btrr:"0px",bblr:"0px",bbrr:"0px",btlr:"0px",radiusType:"none"}}},hasBoxShadow:{desktop:{normal:!1}},boxShadow:{desktop:{normal:{}}},op:{desktop:"100%"},animation:{desktop:{enabled:!1,trigger:"appear",triggerConfig:{appear:{animation:"fade",setting:{fade:{delay:"0",speed:1.7,easing:"ease-out"},zoom:{delay:"0",speed:1.7,isFade:!0,easing:"ease-out",zoomDirection:"in",scale:{in:[80,100],out:[120,100]}},slide:{delay:"0",speed:1.7,easing:"ease-out",direction:"left",isCustomDistance:!1},shake:{delay:"0",speed:.7,loop:!1,intensity:11,easing:"linear"}}},hover:{animation:"none",setting:{fade:{delay:"0",speed:1.7,easing:"ease-out"},zoom:{delay:"0",speed:1.7,isFade:!1,easing:"ease-out",zoomDirection:"in",scale:{in:[100,120],out:[100,80]}},slide:{delay:"0",speed:1.7,easing:"ease-out",direction:"left",isCustomDistance:!1},shake:{delay:"0",speed:.7,loop:!1,intensity:11,easing:"linear"}}}}}},priceType:"compare"}}],label:"Block",settings:{},styles:{},tag:"Col",uid:"gU7z9j0jbp"},{childrens:[{childrens:[],label:"Product Price",settings:{priceType:"regular",hasOnlyDefaultVariant:!1},styles:{color:{normal:"#242424"},hasTextShadow:{normal:!1},lineColor:"text-1",lineThrough:!0,textAlign:{desktop:"right"},textShadow:{normal:{type:"shadow-1"}},thickness:1,typo:{type:"subheading-2"}},tag:"ProductPrice",uid:"gP9Tq9YUJq"}],label:"Block",settings:{},tag:"Col",uid:"gEOSPx4VOT"}],label:"Row",settings:{blockAlignment:"start",horizontalAlign:{desktop:"center"},inlineAlignment:"start",layout:{desktop:{cols:[6,6],display:"fit"},mobile:{cols:[6,6],display:"fit"}},verticalAlign:{desktop:"center"}},styles:{background:{desktop:{attachment:"scroll",color:"transparent",image:{height:0,src:"",width:0},position:{x:50,y:50},repeat:"no-repeat",size:"cover",type:"color"}},columnGap:{desktop:"1%"},fullWidth:{desktop:!1,mobile:!1,tablet:!1},preloadBgImage:!1,verticalGutter:{desktop:"8px"},width:{desktop:"100%"}},tag:"Row",uid:"gVq8mfQa7w"}],label:"Block",settings:{},styles:{},tag:"Col",uid:"gM8gt27sCy"}],label:"Row",settings:{blockAlignment:"start",horizontalAlign:{desktop:"space-between"},inlineAlignment:"start",layout:{desktop:{cols:[12],display:"fill"},mobile:{cols:[12],display:"fill"}},verticalAlign:{desktop:"center"}},styles:{background:{desktop:{attachment:"scroll",color:"transparent",image:{height:0,src:"",width:0},position:{x:50,y:50},repeat:"no-repeat",size:"cover",type:"color"}},columnGap:{desktop:"1%"},fullWidth:{desktop:!0,mobile:!0,tablet:!0},preloadBgImage:!1,verticalGutter:{desktop:"16px"},width:{}},tag:"Row"}];export{horizontalTwo};
1
+ let horizontalTwo=[{childrens:[{childrens:[{advanced:{d:{desktop:!0,mobile:!0,tablet:!0},editorData:{},hasBoxShadow:{desktop:{normal:!1}},left:{desktop:"0px"},op:{desktop:"100%"},pos:{desktop:"relative"},right:{desktop:"0px"},rounded:{desktop:{normal:{bblr:"0px",bbrr:"0px",btlr:"0px",btrr:"0px",radiusType:"none"}}},"spacing-setting":{desktop:{margin:{bottom:"8px"}}},z:{desktop:1}},label:"Product Badge",settings:{contentType:"text",displayContent:"SALE {percent_discount}",translate:"displayContent",displayTrigger:[{conditionType:"exact_or_above",from:"1",priority:0,quantityType:"exact_or_above",to:"15",triggerEvent:"inventory_status",type:"in_stock"}],image:{src:"https://cdn.shopify.com/s/files/1/0697/6182/7064/files/gempages_523190969722471488-fc9fecb6-26b8-4836-b417-2dfb9ea43bd5.png?v=1723733677"},positionWithImage:"outside",shape:"horizontal_rectangle"},styles:{align:{desktop:"left"},badgeColorV2:{desktop:"#FF614C"},borderRadius:{bblr:"0px",bbrr:"0px",btlr:"0px",btrr:"0px",radiusType:"custom"},hasShadow:!1,imageSize:{desktop:{disableShapeLinked:!0,height:"auto",shape:"original",shapeLinked:!0,width:"20%"}},position:{desktop:{bottomGap:"0",leftGap:"0",placement:"top-left",rightGap:"0",topGap:"0"}},shapeShadow:{angle:90,blur:"12px",color:"#121212",distance:"4px",spread:"0px",type:"shadow-1"},textColor:"text-3",textSize:{desktop:{disableShapeLinked:!0,gap:"",height:"Auto",hiddenShape:!0,padding:{bottom:"8px",left:"12px",right:"12px",top:"8px"},shape:"custom",shapeLinked:!1,width:"100%"}},typo:{attrs:{color:"text-3"},custom:{fontSize:{desktop:"15px"}},type:"paragraph-1"},textSizeV2:{desktop:{width:"100%",height:"auto",shapeLinked:!1,disableShapeLinked:!0,hiddenShape:!0,shape:"custom",padding:{top:"12px",bottom:"12px",left:"12px",right:"12px"}}}},tag:"ProductBadge",uid:"gXAaVIfN3P",childrens:[]},{advanced:{d:{desktop:!0,mobile:!0,tablet:!0},editorData:{cssPlaceholder:".{{rootClassName}} {\n\n}\n.{{rootClassName}} > figure > img {\n\n}"},hasBoxShadow:{desktop:{normal:!1}},op:{desktop:"100%"},rounded:{desktop:{normal:{bblr:"0px",bbrr:"0px",btlr:"0px",btrr:"0px",radiusType:"none"}}},"spacing-setting":{desktop:{margin:{}}}},label:"Image",settings:{image:{height:1678,src:"https://cdn.shopify.com/s/files/1/2005/9307/files/image_demo.jpg",width:2237},imageLink:{link:"",target:"_self"},isAdaptive:!0,isNotLazyload:!1,priority:!1,quality:70,srcSet:{desktop:{height:240,src:"https://cdn.shopify.com/s/files/1/0617/5296/7323/files/gempages_516637113702155432-b286a16e-98e6-48ba-889d-a36b64249436.png",storage:"FILE_CONTENT",width:241}}},styles:{align:{desktop:"center"},borderImg:{normal:{border:"none",borderType:"none",borderWidth:"1px",color:"#000000",isCustom:!1,width:"1px 1px 1px 1px"}},borderRadius:{radiusType:"none"},boxShadowImg:{normal:{angle:90,blur:"12px",color:"rgba(0, 0, 0, 0.20)",distance:"4px",spread:"0px",type:"shadow-1"}},hasActiveShadow:!1,hasBoxShadowImg:{normal:!1},objectFit:{desktop:"cover"},opacity:{normal:0},opacityColor:{normal:"#242424"},shadow:{angle:40,blur:"12px",color:"rgba(18, 18, 18, 0.77)",distance:"10px",spread:"10px",type:"custom"},shape:{desktop:{shape:"original",shapeLinked:!0}},wrapperBorder:{border:"none",borderType:"none",borderWidth:"1px",color:"#000000",isCustom:!0,position:"all",width:"1px 1px 1px 1px"}},tag:"Image",uid:"gRq0Y_6o_C"},{childrens:[],label:"Text Block",settings:{background:{desktop:{attachment:"scroll",color:"transparent",image:{height:0,src:"",width:0},position:{x:50,y:50},repeat:"no-repeat",size:"cover",type:"color"}},globalSize:{desktop:{padding:{type:"custom"},width:"100%"}},htmlTag:"div",text:"bundle-title",translate:"text"},styles:{align:{desktop:"left"},hasLineClamp:{desktop:!1},lineClamp:{desktop:1,mobile:1,tablet:1},textAlign:{desktop:"center"},typo:{attrs:{bold:!0,color:"#121212"},type:"subheading-2"}},tag:"Text",uid:"gZCW_UZNgX"},{advanced:{"spacing-setting":{desktop:{margin:{bottom:0}}}},childrens:[],label:"Text Block",settings:{background:{desktop:{attachment:"scroll",color:"transparent",image:{height:0,src:"",width:0},position:{x:50,y:50},repeat:"no-repeat",size:"cover",type:"color"}},globalSize:{desktop:{padding:{type:"custom"},width:"100%"}},htmlTag:"div",text:"<p>Great value</p>",translate:"text"},styles:{align:{desktop:"left"},hasLineClamp:{desktop:!1},lineClamp:{desktop:1,mobile:1,tablet:1},textAlign:{desktop:"center"},typo:{attrs:{color:"#121212"},type:"paragraph-1"}},tag:"Text",uid:"gXozhYepEX"},{advanced:{"spacing-setting":{desktop:{margin:{bottom:0}}}},childrens:[{childrens:[{tag:"ProductPrice",label:"Product Price",settings:{priceType:"compare"},styles:{typo:{type:"subheading-2",default:{type:"subheading-2"}},color:{normal:"text-2"},lineThrough:!0,thickness:2,lineColor:"text-2",disableHoverColor:!0,hasTextShadow:{normal:!1},textShadow:{normal:{type:"shadow-1"}},textAlign:{desktop:"left"}},advanced:{"spacing-setting":{desktop:{margin:{bottom:0}}},d:{desktop:!0,tablet:!0,mobile:!0},border:{desktop:{normal:{borderType:"none",border:"none",borderWidth:"1px",width:"1px 1px 1px 1px",color:"#121212",isCustom:!0}}},rounded:{desktop:{normal:{btrr:"0px",bblr:"0px",bbrr:"0px",btlr:"0px",radiusType:"none"}}},hasBoxShadow:{desktop:{normal:!1}},boxShadow:{desktop:{normal:{}}},op:{desktop:"100%"}},defaultPresetConfig:{typo:{type:"subheading-2",default:{type:"subheading-2"}},color:{normal:"text-1"},lineThrough:!0,thickness:2,lineColor:"text-1",disableHoverColor:!0,hasTextShadow:{normal:!1},textShadow:{normal:{type:"shadow-1"}},textAlign:{desktop:"left"},"spacing-setting":{desktop:{margin:{bottom:"var(--g-s-l)"}}},d:{desktop:!0,tablet:!0,mobile:!0},border:{desktop:{normal:{borderType:"none",border:"none",borderWidth:"1px",width:"1px 1px 1px 1px",color:"#121212",isCustom:!0}}},rounded:{desktop:{normal:{btrr:"0px",bblr:"0px",bbrr:"0px",btlr:"0px",radiusType:"none"}}},hasBoxShadow:{desktop:{normal:!1}},boxShadow:{desktop:{normal:{}}},op:{desktop:"100%"},animation:{desktop:{enabled:!1,trigger:"appear",triggerConfig:{appear:{animation:"fade",setting:{fade:{delay:"0",speed:1.7,easing:"ease-out"},zoom:{delay:"0",speed:1.7,isFade:!0,easing:"ease-out",zoomDirection:"in",scale:{in:[80,100],out:[120,100]}},slide:{delay:"0",speed:1.7,easing:"ease-out",direction:"left",isCustomDistance:!1},shake:{delay:"0",speed:.7,loop:!1,intensity:11,easing:"linear"}}},hover:{animation:"none",setting:{fade:{delay:"0",speed:1.7,easing:"ease-out"},zoom:{delay:"0",speed:1.7,isFade:!1,easing:"ease-out",zoomDirection:"in",scale:{in:[100,120],out:[100,80]}},slide:{delay:"0",speed:1.7,easing:"ease-out",direction:"left",isCustomDistance:!1},shake:{delay:"0",speed:.7,loop:!1,intensity:11,easing:"linear"}}}}}},priceType:"compare"}}],label:"Block",settings:{},styles:{},tag:"Col",uid:"gU7z9j0jbp"},{childrens:[{childrens:[],label:"Product Price",settings:{priceType:"regular",hasOnlyDefaultVariant:!1},styles:{color:{normal:"#242424"},hasTextShadow:{normal:!1},lineColor:"text-1",lineThrough:!0,textAlign:{desktop:"right"},textShadow:{normal:{type:"shadow-1"}},thickness:1,typo:{type:"subheading-2"}},tag:"ProductPrice",uid:"gP9Tq9YUJq"}],label:"Block",settings:{},tag:"Col",uid:"gEOSPx4VOT"}],label:"Row",settings:{blockAlignment:"start",horizontalAlign:{desktop:"center"},inlineAlignment:"start",layout:{desktop:{cols:[6,6],display:"fit"},mobile:{cols:[6,6],display:"fit"}},verticalAlign:{desktop:"center"}},styles:{background:{desktop:{attachment:"scroll",color:"transparent",image:{height:0,src:"",width:0},position:{x:50,y:50},repeat:"no-repeat",size:"cover",type:"color"}},columnGap:{desktop:"1%"},fullWidth:{desktop:!1,mobile:!1,tablet:!1},preloadBgImage:!1,verticalGutter:{desktop:"8px"},width:{desktop:"100%"}},tag:"Row",uid:"gVq8mfQa7w"}],label:"Block",settings:{},styles:{},tag:"Col",uid:"gM8gt27sCy"}],label:"Row",settings:{blockAlignment:"start",horizontalAlign:{desktop:"space-between"},inlineAlignment:"start",layout:{desktop:{cols:[12],display:"fill"},mobile:{cols:[12],display:"fill"}},verticalAlign:{desktop:"center"}},styles:{background:{desktop:{attachment:"scroll",color:"transparent",image:{height:0,src:"",width:0},position:{x:50,y:50},repeat:"no-repeat",size:"cover",type:"color"}},columnGap:{desktop:"1%"},fullWidth:{desktop:!0,mobile:!0,tablet:!0},preloadBgImage:!1,verticalGutter:{desktop:"16px"},width:{}},tag:"Row"}];export{horizontalTwo};
@@ -1 +1 @@
1
- import{getResponsiveValueByScreen as t,cloneDeep as o}from"@gem-sdk/core";import{getDynamicSourceLocales as e}from"../../helpers.js";import"react/jsx-runtime";import"react";import"@gem-sdk/system";import"../../accordion/common/classes.js";import"../../accordion/settings/configs/settings.js";import"next/link";import"../../image/components/AdaptiveImage.js";import"next/image";import"html-react-parser";import"next/head";import"react-youtube";import"../../hero-banner/common/animation-manager.js";import"@gem-sdk/keen-slider/react";import"../../cart/components/shop-pay-button/ShopPayButton.js";import"../../countdown-timer/settings/configs/setting.js";import"../../estimate-delivery/settings/configs/settings.js";import"../../header/components/Header.js";import"../../header/components/kind/basic/index.js";import"react-transition-group";import"../../icon-list-v2/settings/configs/settings.js";import"../../image-comparison/components/Label.js";import"../../marquee/common/classes.js";import"../../modal/components/confirm.js";import"react-dom";import"../../notification/components/Notifications.js";import"../../notification/components/Notice.js";import"../../post-purchase/callout-banner/common/styles.js";import"../../post-purchase/image/components/Img.js";import"../../post-purchase/line/types.js";import"../../post-purchase/link/common/helpers.js";import"../../post-purchase/product/components/product-variant/components/variants/VariantItem.js";import"../../product/components/product-wrap/Product.js";import"../../product/components/product-button/types.js";import"../../product/components/product-variants/components/variants/index.js";import"../components/Video.js";import"../../product/components/product-quick-view/QuickView.js";import"../../product/components/constants/product-bundle.js";import"../../product/components/product-list-v3/ProductList.js";import"../../product/components/product-list/ProductList.js";import"../../product/components/product-bundle/common/styles.js";import"../../product/components/product-bundle/common/classes.js";import"../../product/components/product-badge/constants.js";import"../../product/components/product-badge/types.js";import"../../product/components/product-badge/utils/shape.js";import"../../select/settings/configs/settings.js";import"../../textarea/components/Textarea.js";import"../../third-party/components/JudgemeReviews.js";import"../../third-party/components/LooxReviews.js";import"../../third-party/components/Klaviyo.js";import"../../third-party/components/YotpoLoyalty.js";import"../../third-party/components/SmartSearchBarAndFilters.js";import"../../third-party/components/Instafeed.js";import"../../third-party/components/ProductReviews.js";import"../../third-party/components/Ryviu.js";import"../../third-party/components/Rivyo.js";import"../../third-party/components/Vitals.js";import"../../third-party/components/Omnisend.js";import"../../third-party/components/Trustoo.js";import"../../third-party/components/SealSubscriptions.js";import"../../third-party/components/AppstleSubscriptions.js";import"../../third-party/components/FeraReviews.js";import"../../third-party/components/ParcelPanel.js";import"../../third-party/components/TrustMe.js";import"../../third-party/components/FrequentlyBoughtTogether.js";import"../../third-party/components/BoldSubscriptions.js";import"../../third-party/components/BoldProductOptions.js";import"../../third-party/components/WideBundle.js";import"../../third-party/components/PickyStory.js";import"../../third-party/components/InfiniteOptions.js";import"../../third-party/components/Wiser.js";import"../../third-party/components/Stamped.js";import"../../third-party/components/Bundler.js";import"../../third-party/components/LaiProductReviews.js";import"../../third-party/components/Growave.js";import"../../third-party/components/KachingBundles.js";import"../../third-party/components/Opinew.js";import"../../third-party/components/UltimateSalesBoost.js";import"../../third-party/components/CrossSellCartUpsell.js";import"../../third-party/components/BoostAISearchDiscovery.js";import"../../third-party/components/YotpoReviews.js";import"../../third-party/components/FirePush.js";import"../../third-party/components/AliReviews.js";import"../../third-party/components/Bogos.js";import"../../third-party/components/Releasit.js";import"../../third-party/components/KingProductOptions.js";import"../../third-party/components/BirdChime.js";import"../../third-party-instant/components/Judgeme/SingleProduct.js";import"../../third-party-instant/components/Judgeme/WithoutProduct.js";import"../../third-party-instant/components/InstantLooxReviews.js";import"../../third-party-instant/components/InstantKlaviyo.js";import"../../third-party-instant/components/InstantYotpoLoyalty.js";import"../../accordion/next.js";import"../../article/next.js";import"../../hero-banner/next.js";import"../../breadcrumb/next.js";import"../../button/next.js";import"../../carousel-v3/next.js";import"../../carousel/next.js";import"../../cart/next.js";import"../../code/next.js";import"../../collection/next.js";import"../../countdown-timer/next.js";import"../../coupon/next.js";import"../../dialog/next.js";import"../../estimate-delivery/next.js";import"../../form/next.js";import"../../grid/next.js";import"../../header/next.js";import"../../heading/next.js";import"../../icon/next.js";import"../../icon-list/next.js";import"../../icon-list-hoz/next.js";import"../../icon-list-v2/next.js";import"../../image/next.js";import"../../image-comparison/next.js";import"../../image-detection/next.js";import"../../input/next.js";import"../../line/next.js";import"../../link/next.js";import"../../marquee/next.js";import"../../menu/next.js";import"../../modal/next.js";import"../../pagination/next.js";import"../../post-purchase/advanced-list/next.js";import"../../post-purchase/button/next.js";import"../../post-purchase/callout-banner/next.js";import"../../post-purchase/countdown-timer/next.js";import"../../post-purchase/image/next.js";import"../../post-purchase/line/next.js";import"../../post-purchase/link/next.js";import"../../post-purchase/text/next.js";import"../../post-purchase/product/next.js";import"../../product/next.js";import"../../radio/next.js";import"../../select/next.js";import"../../tab/next.js";import"../../text/next.js";import"../../textarea/next.js";import"../next.js";import"../../third-party/next.js";import"../../third-party-instant/next.js";import"../../stock-counter/next.js";import"../../third-party-slot/next.js";import"../../shop-pay-installment/next.js";import"../../sticky/next.js";import"../../breadcrumb/types.js";let getAspectRatioSettings=(o,e)=>{let r={desktop:o?.desktop?.width,tablet:o?.tablet?.width,mobile:o?.mobile?.width},s={desktop:o?.desktop?.height,tablet:o?.tablet?.height,mobile:o?.mobile?.height},i={desktop:e?.desktop==="custom"?`${t(r,"desktop")}/${t(s,"desktop")}`:e?.desktop==="cover"?"unset":e?.desktop,tablet:e?.tablet==="custom"?`${t(r,"tablet")}/${t(s,"tablet")}`:e?.tablet==="cover"?"unset":e?.tablet,mobile:e?.mobile==="custom"?`${t(r,"mobile")}/${t(s,"mobile")}`:e?.mobile==="cover"?"unset":e?.mobile};return i},getSettingTranslatedVideoAndThumbnail=(t,r)=>{let s=t?.translate?"true":void 0;if(!t||!s||!r)return{};let i=o(t),p=e({val:i.youtubeUrl,uid:r,settingId:"youtubeUrl",translate:s});i.youtubeUrlTranslated=String(p);let n=e({val:i.vimeoUrl,uid:r,settingId:"vimeoUrl",translate:s});i.vimeoUrlTranslated=String(n);let m=e({val:i.html5Url,uid:r,settingId:"html5Url",translate:s});i.html5Url=String(m);let a=e({val:i.poster?.src,uid:r,settingId:"poster_src",translate:s});return i.poster&&(i.poster.src=String(a)),i},getYoutubeParams=t=>{let{id:o,params:e,muted:r,webp:s,controls:i,adNetwork:p,autoplay:n,lazy:m}=t,a=encodeURIComponent(o),c="hqdefault",d=`${e}`||"",l=r?"&mute=1":"",u=s?"webp":"jpg",j=s?"vi_webp":"vi",h=t.thumbnail||`https://i.ytimg.com/${j}/${a}/${c}.${u}`,y=t.noCookie?"https://www.youtube-nocookie.com":"https://www.youtube.com",g=`${y}/embed/${a}?autoplay=${!!m||n}&state=1${l}${d}&controls=${i?1:0}`,b=p||!1;return{videoId:a,posterImp:c,paramsImp:d,mutedImp:l,format:u,vi:j,posterUrl:h,ytUrl:y,iframeSrc:g,adNetworkImp:b}},getVimeoParams=t=>{let{id:o,autoplay:e,muted:r,controls:s,loop:i,lazy:p}=t,n=encodeURIComponent(o),m=`?&autoplay=${p?1:e?1:0}&muted=${r?1:0}&loop=${i?1:0}&controls=${s}&autopause=false`,a=`https://player.vimeo.com/video/${n}${m}`;return{videoId:n,params:m,iframeSrc:a}},makeStyleResponsiveRatio=(t,o)=>({[`--${t}`]:o?.desktop,[`--${t}-tablet`]:o?.tablet,[`--${t}-mobile`]:o?.mobile}),fallbackImageVideoUrl="https://cdn.shopify.com/s/files/1/0703/5214/2562/files/gempages_518090459516502570-3d3a4631-1d7d-4a2f-9ef0-9bbe7220e02d.jpg",youtubeVideoRegex=/(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:[^/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=|shorts\/)|youtu\.be\/)([^"&?/\s]{11})/i,vimeoVideoRegex=/^(?:http:\/\/|https:\/\/)vimeo\.com\/[\w/]+(?:\?.*)?$/im,getYoutubeVideoId=t=>{let o=t.match(youtubeVideoRegex);return o?.[1]??void 0},getVimeoVideoId=t=>{let o=/https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^/]*)\/videos\/|album\/(\d+)\/video\/|video\/)?(\d+)(?:$|\/|\?)/,e=t.match(o);return e?.[3]},parseTimeVideo=t=>{let o=t.split(":",2);return o.length<=1?parseInt(o[0]||"0"):60*parseInt(o[0]||"0")+parseInt(o[1]||"0")},covertStrParamsToObj=t=>{let o=t.split("&");return o.shift(),o.reduce((t,o)=>{let[e,r]=o.split("=");return"loop"!==e?{...t,[e]:r}:t},{})},isSettingLoop=t=>t.includes("loop=1");export{covertStrParamsToObj,fallbackImageVideoUrl,getAspectRatioSettings,getSettingTranslatedVideoAndThumbnail,getVimeoParams,getVimeoVideoId,getYoutubeParams,getYoutubeVideoId,isSettingLoop,makeStyleResponsiveRatio,parseTimeVideo,vimeoVideoRegex,youtubeVideoRegex};
1
+ import{getResponsiveValueByScreen as e,cloneDeep as t}from"@gem-sdk/core";import{getDynamicSourceLocales as o}from"../../helpers.js";let getAspectRatioSettings=(t,o)=>{let i={desktop:t?.desktop?.width,tablet:t?.tablet?.width,mobile:t?.mobile?.width},l={desktop:t?.desktop?.height,tablet:t?.tablet?.height,mobile:t?.mobile?.height},s={desktop:o?.desktop==="custom"?`${e(i,"desktop")}/${e(l,"desktop")}`:o?.desktop==="cover"?"unset":o?.desktop,tablet:o?.tablet==="custom"?`${e(i,"tablet")}/${e(l,"tablet")}`:o?.tablet==="cover"?"unset":o?.tablet,mobile:o?.mobile==="custom"?`${e(i,"mobile")}/${e(l,"mobile")}`:o?.mobile==="cover"?"unset":o?.mobile};return s},getSettingTranslatedVideoAndThumbnail=(e,i)=>{let l=e?.translate?"true":void 0;if(!e||!l||!i)return{};let s=t(e);if(s.youtubeUrl&&"youtube"===s.type){let e=o({val:s.youtubeUrl,uid:i,settingId:"youtubeUrl",translate:l});s.youtubeUrlTranslated=String(e)}if(s.vimeoUrl&&"vimeo"===s.type){let e=o({val:s.vimeoUrl,uid:i,settingId:"vimeoUrl",translate:l});s.vimeoUrlTranslated=String(e)}if(s.html5Url&&"html5"===s.type){let e=o({val:s.html5Url,uid:i,settingId:"html5Url",translate:l});s.html5Url=String(e)}let r=o({val:s.poster?.src,uid:i,settingId:"poster_src",translate:l});return s.poster&&(s.poster.src=String(r)),s},getYoutubeParams=e=>{let{id:t,params:o,muted:i,webp:l,controls:s,adNetwork:r,autoplay:a,lazy:m}=e,d=encodeURIComponent(t),u="hqdefault",p=`${o}`||"",n=i?"&mute=1":"",b=l?"webp":"jpg",g=l?"vi_webp":"vi",c=e.thumbnail||`https://i.ytimg.com/${g}/${d}/${u}.${b}`,h=e.noCookie?"https://www.youtube-nocookie.com":"https://www.youtube.com",v=`${h}/embed/${d}?autoplay=${!!m||a}&state=1${n}${p}&controls=${s?1:0}`,$=r||!1;return{videoId:d,posterImp:u,paramsImp:p,mutedImp:n,format:b,vi:g,posterUrl:c,ytUrl:h,iframeSrc:v,adNetworkImp:$}},getVimeoParams=e=>{let{id:t,autoplay:o,muted:i,controls:l,loop:s,lazy:r}=e,a=encodeURIComponent(t),m=`?&autoplay=${r?1:o?1:0}&muted=${i?1:0}&loop=${s?1:0}&controls=${l}&autopause=false`,d=`https://player.vimeo.com/video/${a}${m}`;return{videoId:a,params:m,iframeSrc:d}},makeStyleResponsiveRatio=(e,t)=>({[`--${e}`]:t?.desktop,[`--${e}-tablet`]:t?.tablet,[`--${e}-mobile`]:t?.mobile}),fallbackImageVideoUrl="https://cdn.shopify.com/s/files/1/0703/5214/2562/files/gempages_518090459516502570-3d3a4631-1d7d-4a2f-9ef0-9bbe7220e02d.jpg",youtubeVideoRegex=/(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:[^/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=|shorts\/)|youtu\.be\/)([^"&?/\s]{11})/i,vimeoVideoRegex=/^(?:http:\/\/|https:\/\/)vimeo\.com\/[\w/]+(?:\?.*)?$/im,getYoutubeVideoId=e=>{let t=e.match(youtubeVideoRegex);return t?.[1]??void 0},getVimeoVideoId=e=>{let t=/https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^/]*)\/videos\/|album\/(\d+)\/video\/|video\/)?(\d+)(?:$|\/|\?)/,o=e.match(t);return o?.[3]},parseTimeVideo=e=>{let t=e.split(":",2);return t.length<=1?parseInt(t[0]||"0"):60*parseInt(t[0]||"0")+parseInt(t[1]||"0")},covertStrParamsToObj=e=>{let t=e.split("&");return t.shift(),t.reduce((e,t)=>{let[o,i]=t.split("=");return"loop"!==o?{...e,[o]:i}:e},{})},isSettingLoop=e=>e.includes("loop=1");export{covertStrParamsToObj,fallbackImageVideoUrl,getAspectRatioSettings,getSettingTranslatedVideoAndThumbnail,getVimeoParams,getVimeoVideoId,getYoutubeParams,getYoutubeVideoId,isSettingLoop,makeStyleResponsiveRatio,parseTimeVideo,vimeoVideoRegex,youtubeVideoRegex};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "8.0.0-dev.75",
3
+ "version": "8.0.0-dev.77",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -26,7 +26,7 @@
26
26
  "scan-all-text": "rollup -c ./scripts/rollup.config.settings.mjs && node ./scripts/scan-all-text && node ./scripts/scan-all-text"
27
27
  },
28
28
  "devDependencies": {
29
- "@gem-sdk/core": "8.0.0-dev.71",
29
+ "@gem-sdk/core": "8.0.0-dev.77",
30
30
  "@gem-sdk/styles": "8.0.0-dev.59",
31
31
  "@gem-sdk/system": "8.0.0-dev.59",
32
32
  "@types/react-transition-group": "^4.4.12",