@gem-sdk/components 22.0.0-dev.68 → 22.0.0-dev.70

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 (59) hide show
  1. package/dist/cjs/article/components/ArticleContent.js +1 -1
  2. package/dist/cjs/article/components/ArticleExcerpt.js +1 -1
  3. package/dist/cjs/article/components/ArticleList.js +1 -1
  4. package/dist/cjs/cart/components/CartList.js +1 -1
  5. package/dist/cjs/common/components/Loading.js +1 -1
  6. package/dist/cjs/common/const.js +1 -1
  7. package/dist/cjs/common/helpers.js +1 -0
  8. package/dist/cjs/common/hooks/useElementWidth.js +1 -0
  9. package/dist/cjs/common/hooks/useLoadingProgress.js +1 -0
  10. package/dist/cjs/dialog/common/styles.js +1 -1
  11. package/dist/cjs/grid/components/section/Section.js +1 -1
  12. package/dist/cjs/grid/index.js +1 -1
  13. package/dist/cjs/header/components/kind/modern/index.js +1 -1
  14. package/dist/cjs/hero-banner/components/HeroBannerItem.js +1 -1
  15. package/dist/cjs/hero-banner/index.js +1 -1
  16. package/dist/cjs/index.js +1 -1
  17. package/dist/cjs/post-purchase/callout-banner/components/CalloutBox.js +1 -1
  18. package/dist/cjs/post-purchase/callout-banner/index.js +1 -1
  19. package/dist/cjs/post-purchase/product/components/product-offer/components/ProductOffer.js +1 -1
  20. package/dist/cjs/post-purchase/product/components/product-offer/hooks/useProductOfferData.js +1 -1
  21. package/dist/cjs/product/components/product-badge/ProductBadge.js +1 -1
  22. package/dist/cjs/product/components/product-discount-tag/ProductDiscountTag.js +1 -1
  23. package/dist/cjs/product/components/product-list/ProductList.js +1 -1
  24. package/dist/cjs/product/components/product-list/common/helpers.js +1 -1
  25. package/dist/cjs/product/components/product-list-v3/ProductList.js +1 -1
  26. package/dist/cjs/product/components/product-list-v3/common/helpers.js +1 -1
  27. package/dist/cjs/product/components/product-wrap/Product.js +1 -1
  28. package/dist/cjs/product/components/product-wrap/hook/useProductSetting.js +1 -1
  29. package/dist/cjs/sticky/common/styles.js +1 -1
  30. package/dist/esm/article/components/ArticleContent.js +1 -1
  31. package/dist/esm/article/components/ArticleExcerpt.js +1 -1
  32. package/dist/esm/article/components/ArticleList.js +1 -1
  33. package/dist/esm/cart/components/CartList.js +1 -1
  34. package/dist/esm/common/components/Loading.js +1 -1
  35. package/dist/esm/common/const.js +1 -1
  36. package/dist/esm/common/helpers.js +1 -0
  37. package/dist/esm/common/hooks/useElementWidth.js +1 -0
  38. package/dist/esm/common/hooks/useLoadingProgress.js +1 -0
  39. package/dist/esm/dialog/common/styles.js +1 -1
  40. package/dist/esm/grid/components/section/Section.js +1 -1
  41. package/dist/esm/grid/index.js +1 -1
  42. package/dist/esm/header/components/kind/modern/index.js +1 -1
  43. package/dist/esm/hero-banner/components/HeroBannerItem.js +1 -1
  44. package/dist/esm/hero-banner/index.js +1 -1
  45. package/dist/esm/index.js +1 -1
  46. package/dist/esm/post-purchase/callout-banner/components/CalloutBox.js +1 -1
  47. package/dist/esm/post-purchase/callout-banner/index.js +1 -1
  48. package/dist/esm/post-purchase/product/components/product-offer/components/ProductOffer.js +1 -1
  49. package/dist/esm/post-purchase/product/components/product-offer/hooks/useProductOfferData.js +1 -1
  50. package/dist/esm/product/components/product-badge/ProductBadge.js +1 -1
  51. package/dist/esm/product/components/product-discount-tag/ProductDiscountTag.js +1 -1
  52. package/dist/esm/product/components/product-list/ProductList.js +1 -1
  53. package/dist/esm/product/components/product-list/common/helpers.js +1 -1
  54. package/dist/esm/product/components/product-list-v3/ProductList.js +1 -1
  55. package/dist/esm/product/components/product-list-v3/common/helpers.js +1 -1
  56. package/dist/esm/product/components/product-wrap/Product.js +1 -1
  57. package/dist/esm/product/components/product-wrap/hook/useProductSetting.js +1 -1
  58. package/dist/esm/sticky/common/styles.js +1 -1
  59. package/package.json +2 -2
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("@gem-sdk/core"),t=require("../../../grid/components/ChildrenDroppable.js"),s=require("../../../common/components/Loading.js");require("react"),require("../../../common/const.js");var i=require("../../../grid/components/row/Row.js"),o=require("@gem-sdk/system"),d=require("next/dynamic"),n=require("./hook/useProductSetting.js"),u=require("./common/helpers.js");const c=d(()=>Promise.resolve().then(function(){return require("../ProductNotFound.js")}),{loading:s.default});exports.default=d=>{let{builderProps:l,children:a,setting:m,style:j,builderAttrs:g}=d,{isAuto:h}=m??{},{isLoading:p,isProductPage:x,isProductNotFound:q,showProductNotFound:f,errorLoadProduct:P,product:y,isEditor:v,productProviderData:b,setShowProductNotFound:F}=n.useProductSetting(d),{rowSetting:k,rowStyles:C}=u.getData(d);return x&&h?e.jsx(e.Fragment,{children:r.isEmptyChildren(a)?e.jsx(t.default,{}):a}):e.jsx(e.Fragment,{children:o.If(!q,e.jsx(e.Fragment,{children:p?e.jsx(s.default,{}):e.jsx(e.Fragment,{children:P?e.jsxs("div",{children:["Error: ",P?.message]}):y?e.jsx(r.ProductProvider,{...b,children:e.jsx(i.default,{builderProps:l,builderAttrs:g,style:j,styles:C,setting:k,customAttrs:v?{"data-product-id":y?.baseID?.replace("gid://shopify/Product/","")??""}:void 0,children:r.isEmptyChildren(a)?e.jsx(t.default,{}):a})}):null})}),e.jsx(e.Fragment,{children:o.If(f,e.jsx(c,{builderAttrs:g,productSrc:"PickProduct",onClose:()=>F(!1),children:a}))}))})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("@gem-sdk/core"),t=require("../../../grid/components/ChildrenDroppable.js"),s=require("../../../common/components/Loading.js");require("react"),require("../../../common/const.js");var i=require("../../../common/helpers.js"),o=require("../../../grid/components/row/Row.js"),n=require("@gem-sdk/system"),d=require("next/dynamic"),u=require("./hook/useProductSetting.js"),l=require("./common/helpers.js");const c=d(()=>Promise.resolve().then(function(){return require("../ProductNotFound.js")}),{loading:s.default});exports.default=d=>{let{builderProps:a,children:m,setting:j,style:g,builderAttrs:h}=d,{isAuto:p}=j??{},{isLoadingProduct:x,isProductPage:q,isProductNotFound:f,showProductNotFound:P,errorLoadProduct:b,product:y,isEditor:v,productProviderData:F,setShowProductNotFound:k}=u.useProductSetting(d),{rowSetting:C,rowStyles:D}=l.getData(d);return q&&p?e.jsx(e.Fragment,{children:r.isEmptyChildren(m)?e.jsx(t.default,{}):m}):e.jsx(e.Fragment,{children:n.If(!f,e.jsx(e.Fragment,{children:x?e.jsx(s.default,{label:i.getElementLabel(a?.builderData)}):e.jsx(e.Fragment,{children:b?e.jsxs("div",{children:["Error: ",b?.message]}):y?e.jsx(r.ProductProvider,{...F,children:e.jsx(o.default,{builderProps:a,builderAttrs:h,style:g,styles:D,setting:C,customAttrs:v?{"data-product-id":y?.baseID?.replace("gid://shopify/Product/","")??""}:void 0,children:r.isEmptyChildren(m)?e.jsx(t.default,{}):m})}):null})}),e.jsx(e.Fragment,{children:n.If(P,e.jsx(c,{builderAttrs:h,productSrc:"PickProduct",onClose:()=>k(!1),children:m}))}))})};
@@ -1 +1 @@
1
- "use strict";var e=require("@gem-sdk/core"),t=require("react"),r=require("./useProductQuery.js");exports.useProductSetting=a=>{let{setting:d}=a,{productSetting:u,quantity:i,readOnly:s,isSyncProduct:c}=d??{},o=e.usePageType(),P=e.usePageStore(e=>e.dynamicProduct),{isEditMode:n}=e.useRenderMode(),l=u?.productId??"latest",S=u?.productStatus=="dynamic"?{...u,...P}:u,g=S?.initialVariantId,p=S?.initialVariantBaseId,{productData:{data:y,isLoading:m,error:h}}=r.default({productId:l}),[q,I]=t.useState(!0),k=(h||!y&&!m)&&n,D=t.useMemo(()=>({product:y,initialVariantId:g,initialVariantBaseId:p,quantity:i,readOnly:s,isSyncProduct:c,key:`uid-${y?.id}-${g??""}`,hasPreSelected:u?.hasPreSelected}),[p,g,c,y,u?.hasPreSelected,i,s]);return{forceProductSetting:S,isProductPage:"PRODUCT"===o,isProductNotFound:k,showProductNotFound:q,isLoading:m,product:y,errorLoadProduct:h,isEditor:n,productProviderData:D,setShowProductNotFound:I}};
1
+ "use strict";var e=require("@gem-sdk/core"),r=require("react"),t=require("./useProductQuery.js");require("react/jsx-runtime"),require("../../../../common/const.js");var a=require("../../../../common/helpers.js");exports.useProductSetting=u=>{let{setting:d}=u,{productSetting:s,quantity:i,readOnly:o,isSyncProduct:c}=d??{},n=e.usePageType(),P=e.usePageStore(e=>e.dynamicProduct),{isEditMode:l}=e.useRenderMode(),m=s?.productId??"latest",y=s?.productStatus=="dynamic"?{...s,...P}:s,S=y?.initialVariantId,g=y?.initialVariantBaseId,{productData:{data:p,isLoading:q,error:h}}=t.default({productId:m}),[j,I]=r.useState(!0),Q=a.isQueryLoading({hasQuery:!!m,data:p,error:h,isLoading:q}),k=(h||!p&&!Q)&&l,v=r.useMemo(()=>({product:p,initialVariantId:S,initialVariantBaseId:g,quantity:i,readOnly:o,isSyncProduct:c,key:`uid-${p?.id}-${S??""}`,hasPreSelected:s?.hasPreSelected}),[g,S,c,p,s?.hasPreSelected,i,o]);return{forceProductSetting:y,isProductPage:"PRODUCT"===n,isProductNotFound:k,showProductNotFound:j,isLoadingProduct:Q,product:p,errorLoadProduct:h,isEditor:l,productProviderData:v,setShowProductNotFound:I}};
@@ -1 +1 @@
1
- "use strict";var e=require("@gem-sdk/core");require("react/jsx-runtime"),require("react");var t=require("../../common/const.js"),l=require("../../helpers.js"),r=require("../settings/configs/translate.js");const a=e=>"top"==e?"sticky":"fixed",o=(e,t,l)=>{let r={[`--top${e}`]:"auto",[`--${l+e}`]:"0",[`--pos${e}`]:a(l)};switch(t){case"after-first-cart-button":case"after-first-scroll":case"between-sections":r[`--d${e}`]="none";break;case"always":r[`--d${e}`]="block"}return r},s=(e,t)=>({...o("",e?.desktop,t?.desktop),...o("-tablet",e?.tablet??e?.desktop,t?.tablet??t?.desktop),...o("-mobile",e?.mobile??e?.tablet??e?.desktop,t?.mobile??t?.tablet??t?.desktop)}),i=(e,t)=>({[`--left${t}`]:"top"==e?"0":"50%",[`--t${t}`]:"top"==e?"unset":"translateX(-50%)"}),p=e=>({...i(e?.desktop,""),...i(e?.tablet??e?.desktop,"-tablet"),...i(e?.mobile??e?.tablet??e?.desktop,"-mobile")}),b=e=>{let t={};return["--pt","--pb","--pr","--pl","--pt-mobile","--pb-mobile","--pr-mobile","--pl-mobile","--pt-tablet","--pb-tablet","--pr-tablet","--pl-tablet"].forEach(l=>{e?.[l]&&(t[l]=e[l])}),t},n=e=>{let t={...e};return["--pt","--pb","--pr","--pl","--pt-mobile","--pb-mobile","--pr-mobile","--pl-mobile","--pt-tablet","--pb-tablet","--pr-tablet","--pl-tablet"].forEach(e=>{delete t?.[e]}),t};exports.displayConditionStyle=s,exports.filterStyles=n,exports.getContainerStyles=e=>{let{position:l,display:r}=e;return{margin:"0 auto",...p(l),...s(r,l),"z-index":t.ELEMENT_Z_INDEX.STICKY}},exports.getContentStyles=({setting:t,style:a,uid:o,pageContext:s,type:i="React"})=>{let{background:p}=t||{},c="Liquid"===i?l.getBackgroundTranslated({background:p,uid:o,enableTranslate:!!r.Sticky?.background?.id,pageContext:s,isTranslateVideo:!1}):p;return{...e.makeStyle({m:"0 auto"}),...b(a),...n(a),...e.getStyleBackgroundByDevice(c||p),...e.getGradientImageBgrStyleByDevice(c||p)}},exports.getDisplayStyle=o,exports.getStylePadding=b;
1
+ "use strict";var e=require("@gem-sdk/core");require("react/jsx-runtime");var t=require("../../common/const.js");require("react");var l=require("../../helpers.js"),r=require("../settings/configs/translate.js");const a=e=>"top"==e?"sticky":"fixed",o=(e,t,l)=>{let r={[`--top${e}`]:"auto",[`--${l+e}`]:"0",[`--pos${e}`]:a(l)};switch(t){case"after-first-cart-button":case"after-first-scroll":case"between-sections":r[`--d${e}`]="none";break;case"always":r[`--d${e}`]="block"}return r},s=(e,t)=>({...o("",e?.desktop,t?.desktop),...o("-tablet",e?.tablet??e?.desktop,t?.tablet??t?.desktop),...o("-mobile",e?.mobile??e?.tablet??e?.desktop,t?.mobile??t?.tablet??t?.desktop)}),i=(e,t)=>({[`--left${t}`]:"top"==e?"0":"50%",[`--t${t}`]:"top"==e?"unset":"translateX(-50%)"}),p=e=>({...i(e?.desktop,""),...i(e?.tablet??e?.desktop,"-tablet"),...i(e?.mobile??e?.tablet??e?.desktop,"-mobile")}),b=e=>{let t={};return["--pt","--pb","--pr","--pl","--pt-mobile","--pb-mobile","--pr-mobile","--pl-mobile","--pt-tablet","--pb-tablet","--pr-tablet","--pl-tablet"].forEach(l=>{e?.[l]&&(t[l]=e[l])}),t},n=e=>{let t={...e};return["--pt","--pb","--pr","--pl","--pt-mobile","--pb-mobile","--pr-mobile","--pl-mobile","--pt-tablet","--pb-tablet","--pr-tablet","--pl-tablet"].forEach(e=>{delete t?.[e]}),t};exports.displayConditionStyle=s,exports.filterStyles=n,exports.getContainerStyles=e=>{let{position:l,display:r}=e;return{margin:"0 auto",...p(l),...s(r,l),"z-index":t.ELEMENT_Z_INDEX.STICKY}},exports.getContentStyles=({setting:t,style:a,uid:o,pageContext:s,type:i="React"})=>{let{background:p}=t||{},c="Liquid"===i?l.getBackgroundTranslated({background:p,uid:o,enableTranslate:!!r.Sticky?.background?.id,pageContext:s,isTranslateVideo:!1}):p;return{...e.makeStyle({m:"0 auto"}),...b(a),...n(a),...e.getStyleBackgroundByDevice(c||p),...e.getGradientImageBgrStyleByDevice(c||p)}},exports.getDisplayStyle=o,exports.getStylePadding=b;
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import{jsx as t,jsxs as e,Fragment as p}from"react/jsx-runtime";import{useArticleStore as i,useCurrentDevice as o,useShopStore as r,useI18nStore as n,getResponsiveValueByScreen as c,composeTypographyClassName as a,composeTypographyStyle as l,isSafari as s,makeStyle as d,getStyleShadow as m,makeStyleResponsive as y,getGlobalColorStateStyle as h,cls as g}from"@gem-sdk/core";import{useState as x,useRef as f,useEffect as u}from"react";import w from"../../common/components/NoDataState.js";import"../../common/const.js";import{styleOverride as v}from"../common/helpers.js";let A=({styles:A,builderProps:S})=>{let b=i(t=>t.article),[j,k]=x(!1),C=f(null),$=o(),_=r(t=>t.storefrontUrl),{t:I}=n(),L=c(A?.hasLineClamp,$),N=c(A?.lineClamp,$);u(()=>{k(!1)},[L,N,b?.description]);let T=a(A?.typo,A?.typography),D=l(A?.typo,A?.typography),U=`
2
+ import{jsx as t,jsxs as e,Fragment as p}from"react/jsx-runtime";import{useArticleStore as i,useCurrentDevice as o,useShopStore as r,useI18nStore as n,getResponsiveValueByScreen as c,composeTypographyClassName as a,composeTypographyStyle as l,isSafari as s,makeStyle as d,getStyleShadow as m,makeStyleResponsive as y,getGlobalColorStateStyle as h,cls as g}from"@gem-sdk/core";import{useState as x,useRef as f,useEffect as u}from"react";import"../../common/const.js";import w from"../../common/components/NoDataState.js";import{styleOverride as v}from"../common/helpers.js";let A=({styles:A,builderProps:S})=>{let b=i(t=>t.article),[j,k]=x(!1),C=f(null),$=o(),_=r(t=>t.storefrontUrl),{t:I}=n(),L=c(A?.hasLineClamp,$),N=c(A?.lineClamp,$);u(()=>{k(!1)},[L,N,b?.description]);let T=a(A?.typo,A?.typography),D=l(A?.typo,A?.typography),U=`
3
3
  .gp-p-description-text a:empty,
4
4
  .gp-p-description-text ul:empty,
5
5
  .gp-p-description-text dl:empty,
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- import{jsx as e}from"react/jsx-runtime";import t from"next/link";import r from"../../text/components/Text.js";import{useArticleStore as o,useShopStore as i,useI18nStore as c}from"@gem-sdk/core";import{useMemo as l}from"react";import{useArticleLink as n}from"../hooks/useArticleLink.js";import s from"../../common/components/NoDataState.js";import"../../common/const.js";let m=({setting:m,styles:a,builderProps:p})=>{let d=o(e=>e.article),x=i(e=>e.storefrontUrl),f=l(()=>d?.content?.excerptHtml,[d]),{shopifyArticleLink:u}=n(),{t:y}=c();return e("div",{id:`shopify-text-element-${p?.uid}`,"data-article-id":d?.baseID?.replace("gid://shopify/OnlineStoreArticle/",""),children:d&&f?m?.linkArticle?e(t,{href:u,title:d?.title,children:e(r,{builderProps:p,styles:a,setting:{...m,text:f,excludeFlex:!0}})}):e(r,{builderProps:p,styles:a,setting:{...m,text:f,excludeFlex:!0}}):e(s,{elementType:"secondary",description:y("Provide a brief summary or teaser of the article. "),descriptionActions:[{text:y("Add article excerpt"),callback:()=>{if(!x)return;let e=new URL(x);window.open(`${e.protocol}//${e.host}/admin/content/articles`)}},{text:y("sync data"),callback:"syncArticle"}]})})};export{m as default};
2
+ import{jsx as e}from"react/jsx-runtime";import t from"next/link";import r from"../../text/components/Text.js";import{useArticleStore as o,useShopStore as i,useI18nStore as c}from"@gem-sdk/core";import{useMemo as l}from"react";import{useArticleLink as n}from"../hooks/useArticleLink.js";import"../../common/const.js";import s from"../../common/components/NoDataState.js";let m=({setting:m,styles:a,builderProps:p})=>{let d=o(e=>e.article),x=i(e=>e.storefrontUrl),f=l(()=>d?.content?.excerptHtml,[d]),{shopifyArticleLink:u}=n(),{t:y}=c();return e("div",{id:`shopify-text-element-${p?.uid}`,"data-article-id":d?.baseID?.replace("gid://shopify/OnlineStoreArticle/",""),children:d&&f?m?.linkArticle?e(t,{href:u,title:d?.title,children:e(r,{builderProps:p,styles:a,setting:{...m,text:f,excludeFlex:!0}})}):e(r,{builderProps:p,styles:a,setting:{...m,text:f,excludeFlex:!0}}):e(s,{elementType:"secondary",description:y("Provide a brief summary or teaser of the article. "),descriptionActions:[{text:y("Add article excerpt"),callback:()=>{if(!x)return;let e=new URL(x);window.open(`${e.protocol}//${e.host}/admin/content/articles`)}},{text:y("sync data"),callback:"syncArticle"}]})})};export{m as default};
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- import{jsxs as e,jsx as t}from"react/jsx-runtime";import{useEditorMode as i,splitStyle as l,composeAdvanceStyle as a,useBlogsQuery as o,useArticlesQuery as r,flattenConnection as d,toNumericId as n,filterToolbarPreview as s,ArticleListProvider as c,ArticleProvider as m,isEmptyChildren as g,cls as p,makeStyleResponsive as h,getResponsiveValueByScreen as u,getGradientBgrStyleByDevice as b,getStyleBackgroundByDevice as f,makeStyleWithDefault as v,makeWidth as w}from"@gem-sdk/core";import y from"../../grid/components/ChildrenDroppable.js";import D from"../../common/components/Loading.js";import{useState as T}from"react";import"../../common/const.js";import S from"./ArticleNotFound.js";let A=A=>{let I=i(),{styles:k,setting:E,className:G,children:j,builderProps:x,advanced:C,builderAttrs:N,style:O}=A??{},{articleSetting:z,numberOfArticle:B}=E??{},{articleIds:L,articlePickType:P}=z??{},{border:$,rounded:M,hasBoxShadow:U,boxShadow:V}=C??{},[_]=l(["pos","top","left","bottom","right","z","d"],O),F=a({border:$,rounded:M,hasBoxShadow:U,boxShadow:V,"spacing-setting":C?.["spacing-setting"]}),H={first:L?.length||50,baseIDIn:[...z?.articleIds??[]],orderBy:{direction:"DESC",field:"UPDATED_AT"}},q={first:1,baseID:z?.blogId,orderBy:{direction:"DESC",field:"ID"},articlesOrderBy:{direction:"DESC",field:"UPDATED_AT"}},[J,K]=T(!0),Q=o({variables:"latest"===P?q:null,options:{revalidateOnMount:!0}}),R=r({variables:"manually"===P?H:null,options:{revalidateOnMount:!0}}),W=Q.data?.blogs?.edges?.[0]?.node,X="manually"===P?R.isLoading:Q.isLoading,Y="manually"===P?R.isValidating:Q.isValidating,Z="manually"===P?R.error:Q.error,ee=Q?.data?.blogs?.edges?.[0]?.node,et="latest"===P?d(ee?.articles):d(R?.data?.articles),ei=(e,t)=>({...e??{},blog:{title:t?.title??"",handle:t?.handle??""}}),el="latest"===P?et?.filter((e,t)=>t<+(B||4)).map(e=>ei(e,ee)):"manually"===P&&z?.articleIds?.length?L?.map(e=>{let t=et?.find(t=>n(t?.baseID)===n(e));return ei(t,t?.blogs?.edges?.[0]?.node)}).filter(Boolean):et.filter((e,t)=>t<(z?.numOfSelectedArticles||4)).map(e=>ei(e,e?.blogs?.edges?.[0]?.node));return el?.length||X||"edit"!=I?e("div",{...N,className:x?.builderData?.uid,style:_,children:[Y||X?t(D,{}):Z?e("div",{children:["Error: ",Z?.message]}):el?.length?t(c,{styles:{horizontalGutter:k?.horizontalGutter,verticalGutter:k?.verticalGutter,spacing:k?.spacing,width:k?.width,height:k?.height},settings:{slidesToShow:E?.slideToShow??{desktop:4,tablet:3,mobile:1}},articles:el,children:t("div",{"data-id":x?.uid,className:"gp-relative",children:t("div",{style:{...F,...v("w",w(k?.width),{desktop:"--g-ct-w",tablet:"--g-ct-w",mobile:"--g-ct-w"}),...h("rg",k?.horizontalGutter),...h("cg",k?.verticalGutter),...f(E?.background),...b(E?.background),...h("gtc",{desktop:`repeat(${u(E?.slideToShow,"desktop")}, minmax(0, 1fr))`,tablet:E?.slideToShow?.tablet&&`repeat(${u(E?.slideToShow,"tablet")}, minmax(0, 1fr))`,mobile:E?.slideToShow?.mobile&&`repeat(${u(E?.slideToShow,"mobile")}, minmax(0, 1fr))`})},className:p(G,"gp-m-auto gp-grid gp-w-full"),children:el.map(e=>t(m,{article:e,readOnly:!0,children:t("div",{"data-component-type":"component","data-component-tag":"Article","data-component-label":"Article","data-component-no-setting":!0,"data-article-id":n(e?.baseID),children:g(j)?t(y,{}):j})},e?.id))})})}):t("div",{children:"Articles not found"}),s(j,!0)]}):J?e("div",{...N,className:x?.builderData?.uid,children:[t(S,{blogHandle:W?.handle,onClose:()=>K(!1),articlePickType:P??"manually",children:j}),s(j,!0)]}):null};export{A as default};
2
+ import{jsxs as e,jsx as t}from"react/jsx-runtime";import{useEditorMode as i,splitStyle as l,composeAdvanceStyle as a,useBlogsQuery as o,useArticlesQuery as r,flattenConnection as d,toNumericId as n,filterToolbarPreview as s,ArticleListProvider as c,ArticleProvider as m,isEmptyChildren as g,cls as p,makeStyleResponsive as h,getResponsiveValueByScreen as b,getGradientBgrStyleByDevice as u,getStyleBackgroundByDevice as f,makeStyleWithDefault as D,makeWidth as v}from"@gem-sdk/core";import w from"../../grid/components/ChildrenDroppable.js";import y from"../../common/components/Loading.js";import{useState as T}from"react";import"../../common/const.js";import{getElementLabel as S,isQueryLoading as A}from"../../common/helpers.js";import I from"./ArticleNotFound.js";let k=k=>{let j=i(),{styles:E,setting:G,className:x,children:C,builderProps:N,advanced:O,builderAttrs:z,style:B}=k??{},{articleSetting:L,numberOfArticle:P}=G??{},{articleIds:$,articlePickType:M}=L??{},{border:U,rounded:_,hasBoxShadow:F,boxShadow:H}=O??{},[Q]=l(["pos","top","left","bottom","right","z","d"],B),V=a({border:U,rounded:_,hasBoxShadow:F,boxShadow:H,"spacing-setting":O?.["spacing-setting"]}),q={first:$?.length||50,baseIDIn:[...L?.articleIds??[]],orderBy:{direction:"DESC",field:"UPDATED_AT"}},J={first:1,baseID:L?.blogId,orderBy:{direction:"DESC",field:"ID"},articlesOrderBy:{direction:"DESC",field:"UPDATED_AT"}},[K,R]=T(!0),W="manually"===M,X="latest"===M,Y=o({variables:X?J:null,options:{revalidateOnMount:!0}}),Z=r({variables:W?q:null,options:{revalidateOnMount:!0}}),ee=Y.data?.blogs?.edges?.[0]?.node,et=W?Z:Y,ei=et.error,el=et.isValidating,ea=A({hasQuery:W||X,data:et.data,error:et.error,isLoading:et.isLoading}),eo=Y?.data?.blogs?.edges?.[0]?.node,er="latest"===M?d(eo?.articles):d(Z?.data?.articles),ed=(e,t)=>({...e??{},blog:{title:t?.title??"",handle:t?.handle??""}}),en="latest"===M?er?.filter((e,t)=>t<+(P||4)).map(e=>ed(e,eo)):"manually"===M&&L?.articleIds?.length?$?.map(e=>{let t=er?.find(t=>n(t?.baseID)===n(e));return ed(t,t?.blogs?.edges?.[0]?.node)}).filter(Boolean):er.filter((e,t)=>t<(L?.numOfSelectedArticles||4)).map(e=>ed(e,e?.blogs?.edges?.[0]?.node));return en?.length||ea||"edit"!=j?e("div",{...z,className:N?.builderData?.uid,style:Q,children:[el||ea?t(y,{label:S(N?.builderData)}):ei?e("div",{children:["Error: ",ei?.message]}):en?.length?t(c,{styles:{horizontalGutter:E?.horizontalGutter,verticalGutter:E?.verticalGutter,spacing:E?.spacing,width:E?.width,height:E?.height},settings:{slidesToShow:G?.slideToShow??{desktop:4,tablet:3,mobile:1}},articles:en,children:t("div",{"data-id":N?.uid,className:"gp-relative",children:t("div",{style:{...V,...D("w",v(E?.width),{desktop:"--g-ct-w",tablet:"--g-ct-w",mobile:"--g-ct-w"}),...h("rg",E?.horizontalGutter),...h("cg",E?.verticalGutter),...f(G?.background),...u(G?.background),...h("gtc",{desktop:`repeat(${b(G?.slideToShow,"desktop")}, minmax(0, 1fr))`,tablet:G?.slideToShow?.tablet&&`repeat(${b(G?.slideToShow,"tablet")}, minmax(0, 1fr))`,mobile:G?.slideToShow?.mobile&&`repeat(${b(G?.slideToShow,"mobile")}, minmax(0, 1fr))`})},className:p(x,"gp-m-auto gp-grid gp-w-full"),children:en.map(e=>t(m,{article:e,readOnly:!0,children:t("div",{"data-component-type":"component","data-component-tag":"Article","data-component-label":"Article","data-component-no-setting":!0,"data-article-id":n(e?.baseID),children:g(C)?t(w,{}):C})},e?.id))})})}):t("div",{children:"Articles not found"}),s(C,!0)]}):K?e("div",{...z,className:N?.builderData?.uid,children:[t(I,{blogHandle:ee?.handle,onClose:()=>R(!1),articlePickType:M??"manually",children:C}),s(C,!0)]}):null};export{k as default};
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- import{jsx as r,jsxs as t}from"react/jsx-runtime";import"react";import{useCartData as e,CartLineProvider as i,isEmptyChildren as o}from"@gem-sdk/core";import"../../common/const.js";import"next/head";import m from"../../grid/components/ChildrenDroppable.js";import"next/image";import"@gem-sdk/system";import"next/link";import"react-youtube";import n from"../../grid/components/col/Col.js";let d=({builderProps:d,advanced:p,setting:l,styles:s,children:a,...c})=>{let{data:h,error:u}=e();return r("div",{"data-id":d?.uid,...c,children:u?t("div",{children:["Error: ",u.message]}):h?r(n,{styles:s,children:h.lineItems.map(t=>t?r(i,{line:t,children:o(a)?r(m,{}):a},t.id):null)}):r("div",{children:"Cart Empty"})})};export{d as default};
2
+ import{jsx as r,jsxs as t}from"react/jsx-runtime";import"react";import"../../common/const.js";import{useCartData as e,CartLineProvider as i,isEmptyChildren as o}from"@gem-sdk/core";import"next/head";import m from"../../grid/components/ChildrenDroppable.js";import"next/image";import"@gem-sdk/system";import"next/link";import"react-youtube";import n from"../../grid/components/col/Col.js";let d=({builderProps:d,advanced:p,setting:l,styles:s,children:a,...c})=>{let{data:h,error:u}=e();return r("div",{"data-id":d?.uid,...c,children:u?t("div",{children:["Error: ",u.message]}):h?r(n,{styles:s,children:h.lineItems.map(t=>t?r(i,{line:t,children:o(a)?r(m,{}):a},t.id):null)}):r("div",{children:"Cart Empty"})})};export{d as default};
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- import{jsxs as e,jsx as g}from"react/jsx-runtime";let l=()=>e("div",{className:"gp-loading-placeholder gp-relative gp-my-0.5 gp-h-3 gp-w-full gp-overflow-hidden",children:[g("div",{className:"gp-absolute gp-h-full gp-w-full gp-bg-gray-200"}),g("div",{className:"gp-absolute gp-h-full gp-bg-green-500 gp-animate-progress-bar"})]});export{l as default};
2
+ import{jsx as e,jsxs as l}from"react/jsx-runtime";import{LOADING_MIN_WIDTH as o}from"../const.js";import{getLoadingText as i}from"../helpers.js";import{useElementWidth as r}from"../hooks/useElementWidth.js";import{useLoadingProgress as g}from"../hooks/useLoadingProgress.js";let p="gp-loading-placeholder gp-border-loading-frame gp-flex gp-w-full gp-flex-col gp-gap-4 gp-overflow-hidden gp-border-[0.5px] gp-border-solid gp-bg-white",a="gp-text-loading-label !gp-font-g-ui !gp-text-xs !gp-font-medium !gp-leading-5 gp-px-4 gp-text-center",d=({label:d,error:t,retry:s})=>{var n,m;let c=g(),{ref:f,width:h}=r(),u=(n=o.SHOW_TEXT,void 0===h||h>n),b=(m=o.SHOW_LABEL,void 0===h||h>m);return t?e("div",{ref:f,className:p,children:l("div",{className:`${a} gp-py-4`,children:[d&&b?`${d} failed to load.`:"Failed to load.",!!s&&e("button",{type:"button",onClick:s,className:"gp-ml-1 gp-underline",children:"Retry"})]})}):l("div",{ref:f,className:p,children:[e("div",{className:"gp-h-0.5 gp-w-full gp-bg-loading-track",children:e("div",{className:"gp-bg-loading-bar gp-h-full gp-transition-[width] gp-duration-100 gp-ease-linear",style:{width:`${c}%`}})}),u&&e("div",{className:`${a} gp-pb-4`,children:i({label:d,percent:c,hasRoomForLabel:b})})]})};export{d as default};
@@ -1 +1 @@
1
- var o;let c={STICKY:999,DIALOG:100001,CART_DRAWER:100002,CART_DRAWER_CONFIRM_MODAL:100003};!function(o){o.Collection="Collection",o.PickProduct="PickProduct",o.DynamicCollection="DynamicCollection",o.RelatedProduct="RelatedProduct"}(o||(o={}));export{c as ELEMENT_Z_INDEX,o as PRODUCT_LIST_PRODUCT_SOURCE};
1
+ var e;let t={STICKY:999,DIALOG:100001,CART_DRAWER:100002,CART_DRAWER_CONFIRM_MODAL:100003};!function(e){e.Collection="Collection",e.PickProduct="PickProduct",e.DynamicCollection="DynamicCollection",e.RelatedProduct="RelatedProduct"}(e||(e={}));let c={TICK_MS:100,MILESTONES:[{atMs:0,percent:0},{atMs:500,percent:30},{atMs:1e3,percent:50},{atMs:3e3,percent:75},{atMs:5e3,percent:83},{atMs:1e4,percent:90},{atMs:2e4,percent:96}],MAX_PERCENT:99,TAIL_MS:6e4},_={SHOW_LABEL:154,SHOW_TEXT:55};export{t as ELEMENT_Z_INDEX,_ as LOADING_MIN_WIDTH,c as LOADING_PROGRESS,e as PRODUCT_LIST_PRODUCT_SOURCE};
@@ -0,0 +1 @@
1
+ let e=e=>e?.customLabel??e?.label,o=({label:e,percent:o,hasRoomForLabel:a})=>a?e?`Loading ${e}...${o}%`:`Loading ${o}%`:`${o}%`,a=({hasQuery:e,data:o,error:a,isLoading:i})=>i||e&&void 0===o&&void 0===a;export{e as getElementLabel,o as getLoadingText,a as isQueryLoading};
@@ -0,0 +1 @@
1
+ import{useIsomorphicLayoutEffect as e}from"@gem-sdk/core";import{useRef as t,useState as r}from"react";let n=()=>{let n=t(null),[i,o]=r();return e(()=>{let e=n.current;if(!e||(o(e.getBoundingClientRect().width),"undefined"==typeof ResizeObserver))return;let t=new ResizeObserver(e=>{let t=e[0];t&&o(t.contentRect.width)});return t.observe(e),()=>t.disconnect()},[]),{ref:n,width:i}};export{n as useElementWidth};
@@ -0,0 +1 @@
1
+ let e;import{useState as t,useEffect as r}from"react";import{LOADING_PROGRESS as a}from"../const.js";let{MILESTONES:l,MAX_PERCENT:o,TAIL_MS:n,TICK_MS:s}=a,u=l[l.length-1],f=({value:e,fromValue:t,toValue:r,fromResult:a,toResult:l})=>r===t?l:a+(l-a)*((e-t)/(r-t)),M=e=>{if(e>=u.atMs){let t=f({value:e,fromValue:u.atMs,toValue:u.atMs+n,fromResult:u.percent,toResult:o});return Math.floor(Math.min(t,o))}let t=l.findIndex(t=>e<t.atMs),r=l[t-1]??l[0],a=l[t];return Math.floor(f({value:e,fromValue:r.atMs,toValue:a.atMs,fromResult:r.percent,toResult:a.percent}))},i=new Map,m=()=>{let e=Date.now();i.forEach((t,r)=>r(e-t))},c=t=>(i.set(t,Date.now()),e=e??setInterval(m,s),()=>{i.delete(t),!i.size&&e&&(clearInterval(e),e=void 0)}),p=()=>{let[e,a]=t(0);return r(()=>{let e=()=>{};return e=c(t=>{let r=M(t);a(r),r>=o&&e()}),()=>e()},[]),e};export{M as getLoadingPercent,p as useLoadingProgress};
@@ -1 +1 @@
1
- import{getGlobalColorResponsiveStyle as e,makeStyle as t,makeStyleResponsive as r,makeWidth as o,composeRadius as n,getResponsiveStylePadding as l,getGradientBgrStyleByDevice as i,getStyleBackgroundByDevice as s}from"@gem-sdk/core";import{pointerEventStyle as m,getDisplayStyle as a,heightStyle as p,getBorderStyle as c,getWrapperDialogStyle as d,removeHeightPercentForContent as g,getInnerStyle as u}from"./helpers.js";import"react/jsx-runtime";import"react";import{ELEMENT_Z_INDEX as b}from"../../common/const.js";import{getWidth as f}from"../../hero-banner/common/helpers.js";import{getBackgroundTranslated as y}from"../../helpers.js";import{Dialog as S}from"../settings/configs/translate.js";function h(e){return Object.fromEntries(Object.entries(e||{}).filter(([,e])=>!!e))}let j=e=>{let t={"--d":e?.desktop?"contents":"none","--d-tablet":e?.tablet?"contents":"none","--d-mobile":e?.mobile?"contents":"none"};return h(t)},k=()=>{let e={"z-index":b.DIALOG};return h(e)},C=e=>{let t={...m(e)};return h(t)},O=(r,o,n)=>{let l={...t({op:0==Number(r)?"0":(Number(r)||0)/100}),...e("bgc",{desktop:o}),...a(n)};return h(l)},x=({style:e,width:t,height:n,fullScreen:l})=>{let i={...d(e),...c(e),...a(e),...r("w",o(t,l)),...p(l,n)};return h(i)},B=t=>{let{btnBg:o,btnRounded:i,btnColor:s,btnPadding:m,btnWidth:a,btnHeight:p}=t??{},c=a?r("w",f(a)):{},d=p?r("h",f(p)):{},g={...c,...d,...e("c",{desktop:s}),...e("bgc",{desktop:o}),...l(m),...n({normal:i})};return h(g)},v=e=>{let t={};return e&&(t={"--height-icon":`${e}`}),h(t)},w=({setting:e,style:t,uid:r,pageContext:o,type:n="React"})=>{let{fullScreen:l,height:m,background:a}=e??{},c="Liquid"===n?y({background:a,uid:r,enableTranslate:!!S?.background?.id,pageContext:o,isTranslateVideo:!1}):a,d={...u(t),...g(p(l,m)),"border-radius":"inherit",...s(c),...i(c,{desktop:!0,tablet:!0,mobile:!0})};return h(d)};export{C as getBackdropStyle,w as getBodyContentStyle,B as getButtonContentStyle,k as getContainStyle,x as getDialogContentStyle,O as getOverlayStyle,v as getSvgContentStyle,j as getWrapperStyle};
1
+ import{getGlobalColorResponsiveStyle as e,makeStyle as t,makeStyleResponsive as r,makeWidth as o,composeRadius as n,getResponsiveStylePadding as l,getGradientBgrStyleByDevice as i,getStyleBackgroundByDevice as s}from"@gem-sdk/core";import{pointerEventStyle as m,getDisplayStyle as a,heightStyle as p,getBorderStyle as c,getWrapperDialogStyle as d,removeHeightPercentForContent as g,getInnerStyle as u}from"./helpers.js";import"react/jsx-runtime";import{ELEMENT_Z_INDEX as b}from"../../common/const.js";import"react";import{getWidth as f}from"../../hero-banner/common/helpers.js";import{getBackgroundTranslated as y}from"../../helpers.js";import{Dialog as S}from"../settings/configs/translate.js";function h(e){return Object.fromEntries(Object.entries(e||{}).filter(([,e])=>!!e))}let j=e=>{let t={"--d":e?.desktop?"contents":"none","--d-tablet":e?.tablet?"contents":"none","--d-mobile":e?.mobile?"contents":"none"};return h(t)},k=()=>{let e={"z-index":b.DIALOG};return h(e)},C=e=>{let t={...m(e)};return h(t)},O=(r,o,n)=>{let l={...t({op:0==Number(r)?"0":(Number(r)||0)/100}),...e("bgc",{desktop:o}),...a(n)};return h(l)},x=({style:e,width:t,height:n,fullScreen:l})=>{let i={...d(e),...c(e),...a(e),...r("w",o(t,l)),...p(l,n)};return h(i)},B=t=>{let{btnBg:o,btnRounded:i,btnColor:s,btnPadding:m,btnWidth:a,btnHeight:p}=t??{},c=a?r("w",f(a)):{},d=p?r("h",f(p)):{},g={...c,...d,...e("c",{desktop:s}),...e("bgc",{desktop:o}),...l(m),...n({normal:i})};return h(g)},v=e=>{let t={};return e&&(t={"--height-icon":`${e}`}),h(t)},w=({setting:e,style:t,uid:r,pageContext:o,type:n="React"})=>{let{fullScreen:l,height:m,background:a}=e??{},c="Liquid"===n?y({background:a,uid:r,enableTranslate:!!S?.background?.id,pageContext:o,isTranslateVideo:!1}):a,d={...u(t),...g(p(l,m)),"border-radius":"inherit",...s(c),...i(c,{desktop:!0,tablet:!0,mobile:!0})};return h(d)};export{C as getBackdropStyle,w as getBodyContentStyle,B as getButtonContentStyle,k as getContainStyle,x as getDialogContentStyle,O as getOverlayStyle,v as getSvgContentStyle,j as getWrapperStyle};
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- import{jsx as o}from"react/jsx-runtime";import{useMemo as t}from"react";import e from"../../../common/components/Loading.js";import"@gem-sdk/core";import"../../../common/const.js";import r from"../row/Row.js";let m=m=>{let i=t(()=>{let{builderProps:o}=m;return o?.builderData?.name==="SectionLoading"},[m]);return i?o(e,{}):o(r,{...m,setting:{...m.setting,as:"section",isSection:!0}})};export{m as default};
2
+ import{jsx as o}from"react/jsx-runtime";import{useMemo as t}from"react";import e from"../../../common/components/Loading.js";import"@gem-sdk/core";import"../../../common/const.js";import{getElementLabel as r}from"../../../common/helpers.js";import m from"../row/Row.js";let i=i=>{let{builderProps:n}=i,s=t(()=>n?.builderData?.name==="SectionLoading",[n]);return s?o(e,{label:r(n?.builderData)}):o(m,{...i,setting:{...i.setting,as:"section",isSection:!0}})};export{i as default};
@@ -1 +1 @@
1
- import"react/jsx-runtime";import"react";import"@gem-sdk/core";import"../common/const.js";import"next/head";import"next/image";import"@gem-sdk/system";import"next/link";import"react-youtube";import t from"./settings/Root.js";import o from"./settings/Section.js";import i from"./settings/Row.js";import m from"./settings/Col.js";let r={Root:t,Section:o,Row:i,Col:m};export{r as gridSetting};
1
+ import"react/jsx-runtime";import"react";import"../common/const.js";import"@gem-sdk/core";import"next/head";import"next/image";import"@gem-sdk/system";import"next/link";import"react-youtube";import t from"./settings/Root.js";import o from"./settings/Section.js";import i from"./settings/Row.js";import m from"./settings/Col.js";let r={Root:t,Section:o,Row:i,Col:m};export{r as gridSetting};
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- import{jsxs as e,jsx as t}from"react/jsx-runtime";import o from"../../../../cart/components/Cart.js";import"react";import{makeStyleResponsive as r}from"@gem-sdk/core";import"../../../../common/const.js";import"next/head";import"next/image";import"@gem-sdk/system";import"next/link";import"react-youtube";import"../../../../image/components/AdaptiveImage.js";import"../../../../cart/components/shop-pay-button/ShopPayButton.js";let m=m=>e("div",{className:"gp-relative gp-flex gp-items-center gp-px-4",style:r("h",m.height),children:["Coming Soon",t("div",{className:"gp-ml-auto gp-flex gp-items-center gp-pr-4",children:t(o,{setting:{iconOnly:!0,enableHoverEffect:m.cardEnableHoverEffect??!0}})})]});export{m as default};
2
+ import{jsxs as e,jsx as t}from"react/jsx-runtime";import o from"../../../../cart/components/Cart.js";import"react";import"../../../../common/const.js";import{makeStyleResponsive as r}from"@gem-sdk/core";import"next/head";import"next/image";import"@gem-sdk/system";import"next/link";import"react-youtube";import"../../../../image/components/AdaptiveImage.js";import"../../../../cart/components/shop-pay-button/ShopPayButton.js";let m=m=>e("div",{className:"gp-relative gp-flex gp-items-center gp-px-4",style:r("h",m.height),children:["Coming Soon",t("div",{className:"gp-ml-auto gp-flex gp-items-center gp-pr-4",children:t(o,{setting:{iconOnly:!0,enableHoverEffect:m.cardEnableHoverEffect??!0}})})]});export{m as default};
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- import{jsx as e,jsxs as o}from"react/jsx-runtime";import{useMemo as t}from"react";import{useEditorMode as s,filterToolbarPreview as i,getAspectRatioGlobalSize as r}from"@gem-sdk/core";import"../../common/const.js";import m from"../../grid/components/row/Row.js";import{createStyle as l,createClass as a}from"@gem-sdk/system";import d from"../../image/components/AdaptiveImage.js";import p from"../../video/components/HTML5Embed.js";import{getContainerStyle as n,getOverlayStyle as c,getRowStyle as u,getAdaptiveStyle as y,getBackgroundStyle as f,getContainBackgroundStyle as v,getYoutubeIframeStyle as h,getHtml5VideoStyle as b}from"../common/styles.js";import{getContainerClasses as j,getOverlayClasses as g,getRowClasses as N,getAdaptivePictureClasses as T,getAdaptiveClasses as k,getBackgroundClasses as H,getContainBackgroundClasses as w,getHtml5VideoClasses as C,getWrapperYoutubeClasses as V,getIframeYoutubeClasses as B}from"../common/classes.js";import{getBackgroundImageHeroBanner as I,showVideoType as M,scrollToContentBanner as Y,getWidth as z,horizontalAlign as E,fallbackImg as L,getBgImage as x}from"../common/helpers.js";import A from"../../video/components/LiteYouTubeEmbed.js";import{getYoutubeVideoId as R,youtubeVideoRegex as $}from"../../video/common/helpers.js";import O from"../hooks/useHeroBannerItem.js";import{getYoutubeContentClasses as S}from"../../video/common/classes.js";let W=W=>{s();let{setting:q,styles:D,children:F,elementRef:G,transform:J,dataVideo:K,bgRef:P,isShowVideoHtml5:Q,layoutResponsive:U,heroBannerWrapperRef:X}=W,{layout:Z,verticalAlign:_,enableParallax:ee,alt:eo,title:et}=q??{},{background:es,overlayColor:ei,verticalGutter:er,sizeSetting:em,contentWidth:el,hoverEffect:ea,contentPosition1Col:ed,contentPosition2Col:ep,videoObjectFit:en}=D??{},ec=l({...n(D)}),eu=a({...j(q,D)}),ey=l({...c(D)}),ef=a({...g(D)}),ev=l({...u(D)}),eh=a({...N(D,q)}),eb=l({...y(D)}),ej=a({...T()}),eg=a({...k()}),eN=a({...H(ea,!1)}),eT=l({...I(es,!1,!0),...f(D,ee,J)}),ek=a({...w()}),eH=l({...v(D)}),ew=a({...C(!Q)}),{youtubeIframeWrapperRef:eC,resolvedAspectRatio:eV,youtubeAspectRatio:eB}=O({videoType:K?.videoType,sizeSetting:em,background:es,videoObjectFit:en,heroBannerWrapperRef:X,isYoutubeVideoMigrated:q?.isYoutubeVideoMigrated}),eI=l({...h(eB,en)}),eM=l({...b(eV,en,es)}),eY=a({...V(q?.isYoutubeVideoMigrated)}),ez=a({...B()}),eE=a({...S()}),eL=t(()=>{if(!M(es))return;if(K?.videoType==="html5"&&!K.videoHtml5||K?.videoType==="youtube"&&!K.video)return null;if(K?.type==="video"&&K?.videoType==="html5"&&K?.videoHtml5)return e(p,{muted:!0,loop:K?.loop,controls:!1,autoplay:!0,src:K?.videoHtml5||"",title:"Video",style:eM,className:ew});let o=K?.video??"",t=R(o),s=K?.loop?1:0,i=`&loop=${s}&playlist=${t}&showinfo=0&rel=0&fs=0&enablejsapi=1`;if(K?.type==="video"&&K?.videoType==="youtube"&&t&&$.test(o))return e("div",{className:eE,ref:eC,children:e(A,{id:t,isHeroBanner:!0,autoplay:!0,title:"Video",controls:!1,params:i,adNetwork:!1,noCookie:!0,muted:!0,lazy:K?.lazyLoad??!0,style:eI,wrapperClass:eY,iframeClass:ez})})},[K,es,ew,ez,eY,eI,eM,eC]);return o("div",{className:eu,style:ec,children:[o("div",{ref:G,className:ek,style:eH,children:[e("div",{ref:P,className:eN,style:eT,children:eL}),!!ei&&e("div",{"aria-label":"Overlay",className:ef,style:ey})]}),e(m,{className:eh,style:ev,setting:{layout:Z,horizontalAlign:E(Z,ed,ep),verticalAlign:_},styles:{verticalGutter:er,width:z(el),fullWidth:{desktop:!1,tablet:!1,mobile:!1}},hiddenEmptyCol:U?.cols?.length===1,onBlur:e=>Y(e),children:i(F)}),e(d,{pictureClass:ej,srcSet:x(es),className:eg,aspectRatio:r(em),style:eb,alt:eo,title:et,fallbackImg:L})]})};export{W as default};
2
+ import{jsx as e,jsxs as o}from"react/jsx-runtime";import{useMemo as t}from"react";import"../../common/const.js";import{useEditorMode as s,filterToolbarPreview as i,getAspectRatioGlobalSize as r}from"@gem-sdk/core";import m from"../../grid/components/row/Row.js";import{createStyle as l,createClass as a}from"@gem-sdk/system";import d from"../../image/components/AdaptiveImage.js";import p from"../../video/components/HTML5Embed.js";import{getContainerStyle as n,getOverlayStyle as c,getRowStyle as u,getAdaptiveStyle as y,getBackgroundStyle as f,getContainBackgroundStyle as v,getYoutubeIframeStyle as h,getHtml5VideoStyle as b}from"../common/styles.js";import{getContainerClasses as j,getOverlayClasses as g,getRowClasses as N,getAdaptivePictureClasses as T,getAdaptiveClasses as k,getBackgroundClasses as H,getContainBackgroundClasses as w,getHtml5VideoClasses as C,getWrapperYoutubeClasses as V,getIframeYoutubeClasses as B}from"../common/classes.js";import{getBackgroundImageHeroBanner as I,showVideoType as M,scrollToContentBanner as Y,getWidth as z,horizontalAlign as E,fallbackImg as L,getBgImage as x}from"../common/helpers.js";import A from"../../video/components/LiteYouTubeEmbed.js";import{getYoutubeVideoId as R,youtubeVideoRegex as $}from"../../video/common/helpers.js";import O from"../hooks/useHeroBannerItem.js";import{getYoutubeContentClasses as S}from"../../video/common/classes.js";let W=W=>{s();let{setting:q,styles:D,children:F,elementRef:G,transform:J,dataVideo:K,bgRef:P,isShowVideoHtml5:Q,layoutResponsive:U,heroBannerWrapperRef:X}=W,{layout:Z,verticalAlign:_,enableParallax:ee,alt:eo,title:et}=q??{},{background:es,overlayColor:ei,verticalGutter:er,sizeSetting:em,contentWidth:el,hoverEffect:ea,contentPosition1Col:ed,contentPosition2Col:ep,videoObjectFit:en}=D??{},ec=l({...n(D)}),eu=a({...j(q,D)}),ey=l({...c(D)}),ef=a({...g(D)}),ev=l({...u(D)}),eh=a({...N(D,q)}),eb=l({...y(D)}),ej=a({...T()}),eg=a({...k()}),eN=a({...H(ea,!1)}),eT=l({...I(es,!1,!0),...f(D,ee,J)}),ek=a({...w()}),eH=l({...v(D)}),ew=a({...C(!Q)}),{youtubeIframeWrapperRef:eC,resolvedAspectRatio:eV,youtubeAspectRatio:eB}=O({videoType:K?.videoType,sizeSetting:em,background:es,videoObjectFit:en,heroBannerWrapperRef:X,isYoutubeVideoMigrated:q?.isYoutubeVideoMigrated}),eI=l({...h(eB,en)}),eM=l({...b(eV,en,es)}),eY=a({...V(q?.isYoutubeVideoMigrated)}),ez=a({...B()}),eE=a({...S()}),eL=t(()=>{if(!M(es))return;if(K?.videoType==="html5"&&!K.videoHtml5||K?.videoType==="youtube"&&!K.video)return null;if(K?.type==="video"&&K?.videoType==="html5"&&K?.videoHtml5)return e(p,{muted:!0,loop:K?.loop,controls:!1,autoplay:!0,src:K?.videoHtml5||"",title:"Video",style:eM,className:ew});let o=K?.video??"",t=R(o),s=K?.loop?1:0,i=`&loop=${s}&playlist=${t}&showinfo=0&rel=0&fs=0&enablejsapi=1`;if(K?.type==="video"&&K?.videoType==="youtube"&&t&&$.test(o))return e("div",{className:eE,ref:eC,children:e(A,{id:t,isHeroBanner:!0,autoplay:!0,title:"Video",controls:!1,params:i,adNetwork:!1,noCookie:!0,muted:!0,lazy:K?.lazyLoad??!0,style:eI,wrapperClass:eY,iframeClass:ez})})},[K,es,ew,ez,eY,eI,eM,eC]);return o("div",{className:eu,style:ec,children:[o("div",{ref:G,className:ek,style:eH,children:[e("div",{ref:P,className:eN,style:eT,children:eL}),!!ei&&e("div",{"aria-label":"Overlay",className:ef,style:ey})]}),e(m,{className:eh,style:ev,setting:{layout:Z,horizontalAlign:E(Z,ed,ep),verticalAlign:_},styles:{verticalGutter:er,width:z(el),fullWidth:{desktop:!1,tablet:!1,mobile:!1}},hiddenEmptyCol:U?.cols?.length===1,onBlur:e=>Y(e),children:i(F)}),e(d,{pictureClass:ej,srcSet:x(es),className:eg,aspectRatio:r(em),style:eb,alt:eo,title:et,fallbackImg:L})]})};export{W as default};
@@ -1 +1 @@
1
- import"react/jsx-runtime";import"react";import"@gem-sdk/core";import"../common/const.js";import"next/head";import"next/image";import"@gem-sdk/system";import"next/link";import"react-youtube";import"../image/components/AdaptiveImage.js";import"./common/animation-manager.js";import t from"./settings/HeroBanner.js";let e={HeroBanner:t};export{e as bannerSetting};
1
+ import"react/jsx-runtime";import"react";import"../common/const.js";import"@gem-sdk/core";import"next/head";import"next/image";import"@gem-sdk/system";import"next/link";import"react-youtube";import"../image/components/AdaptiveImage.js";import"./common/animation-manager.js";import t from"./settings/HeroBanner.js";let e={HeroBanner:t};export{e as bannerSetting};
package/dist/esm/index.js CHANGED
@@ -1 +1 @@
1
- export{accordionSetting}from"./accordion/index.js";export{articleListSetting}from"./article/index.js";export{bannerSetting}from"./hero-banner/index.js";export{breadcrumbSetting}from"./breadcrumb/index.js";export{buttonSetting}from"./button/index.js";export{carouselSettingV3}from"./carousel-v3/index.js";export{carouselSetting}from"./carousel/index.js";export{cartSetting}from"./cart/index.js";export{codeSetting}from"./code/index.js";export{collectionSetting}from"./collection/index.js";export{countdownSetting}from"./countdown-timer/index.js";export{couponSetting}from"./coupon/index.js";export{dialogSetting}from"./dialog/index.js";export{estimateDeliverySetting}from"./estimate-delivery/index.js";export{gridSetting}from"./grid/index.js";export{contactFormSetting}from"./form/index.js";export{headerSetting}from"./header/index.js";export{headingSetting}from"./heading/index.js";export{iconSetting}from"./icon/index.js";export{iconListSetting}from"./icon-list/index.js";export{iconListHozSetting}from"./icon-list-hoz/index.js";export{iconListSettingV2}from"./icon-list-v2/index.js";export{imageSetting}from"./image/index.js";export{imageComparisonSetting}from"./image-comparison/index.js";export{inputSetting}from"./input/index.js";export{lineSetting}from"./line/index.js";export{linkSetting}from"./link/index.js";export{marqueeSetting}from"./marquee/index.js";export{menuSetting}from"./menu/index.js";export{modalSetting}from"./modal/index.js";export{default as useNotification}from"./notification/hooks/useNotification.js";export{default as Notice}from"./notification/components/Notice.js";export{paginationSetting}from"./pagination/index.js";export{postPurchaseAdvancedListSetting}from"./post-purchase/advanced-list/index.js";export{postPurchaseButtonSetting}from"./post-purchase/button/index.js";export{postPurchaseCalloutBoxSetting}from"./post-purchase/callout-banner/index.js";export{postPurchaseCountdownTimerSetting}from"./post-purchase/countdown-timer/index.js";export{postPurchaseImageSetting}from"./post-purchase/image/index.js";export{postPurchaseLineSetting}from"./post-purchase/line/index.js";export{postPurchaseLinkSetting}from"./post-purchase/link/index.js";export{PostPurchaseHeading,postPurchaseTextSetting}from"./post-purchase/text/index.js";export{postPurchaseProductSetting}from"./post-purchase/product/index.js";export{postPurchaseBuyerConsentSetting}from"./post-purchase/buyer-consent/index.js";export{productSetting}from"./product/index.js";export{radioSetting}from"./radio/index.js";export{selectSetting}from"./select/index.js";export{tabSetting}from"./tab/index.js";export{textSetting}from"./text/index.js";export{textareaSetting}from"./textarea/index.js";export{videoSetting}from"./video/index.js";export{thirdPartySetting}from"./third-party/index.js";export{thirdPartyInstantSetting}from"./third-party-instant/index.js";export{stockCounterSetting}from"./stock-counter/index.js";export{thirdPartySlotSetting}from"./third-party-slot/index.js";export{shopPayInstallmentSetting}from"./shop-pay-installment/index.js";export{stickySetting}from"./sticky/index.js";export{default as nextComponent}from"./next.js";export{default as headlessComponents}from"./headless.js";import*as t from"./index.liquid.js";export{default as builderComponent}from"./builder.js";export{default as componentSettings}from"./setting.js";export{default as postPurchaseSettings}from"./postPurchaseSetting.js";import"react/jsx-runtime";import"react";import"@gem-sdk/core";export{ELEMENT_Z_INDEX}from"./common/const.js";export{REGEX_BARE_DOMAIN,REGEX_PAGE_TYPE,checkIsOpenPage,checkIsOpenPopup,checkIsScrollToTop,convertUnitToNumber,createSettingId,createTranslateKey,extractProductID,filterPageContext,filterTruthyObject,filterTruthyStyles,getAllHrefFromString,getBackgroundTranslated,getDisplayStyle,getDynamicSourceLocales,getInsertLinkData,getLinkArticle,getLinkData,getSeoTranslated,getSettingPreloadData,getStaticLocale,handleClickLink,isEmptyObject,isHexTransparent,isLinkedToSalesPage,isShopifyDomain,isTransparentColor,isTransparentRGBA,normalizeMailto,replaceAllHrefFromString,replaceLinkData,youtubeShortsRegex}from"./helpers.js";import*as o from"./translate.js";export{TAGS_WITH_REPLACE_LINK_DATA}from"./constant.js";export{default as Accordion}from"./accordion/components/Accordion.js";export{default as AccordionItem}from"./accordion/components/AccordionItem.js";export{default as AftershipEmailMarketingsms}from"./third-party/components/AftershipEmailMarketingsms.js";export{default as AirProductReviewsAppUgc}from"./third-party/components/AirProductReviewsAppUgc.js";export{default as AliReviews}from"./third-party/components/AliReviews.js";export{default as AlsoBoughtCbb}from"./third-party/components/AlsoBoughtCbb.js";export{default as AovBundlesVolumeDiscounts}from"./third-party/components/AovBundlesVolumeDiscounts.js";export{default as AovFreeGiftBuyXGetYBogo}from"./third-party/components/AovFreeGiftBuyXGetYBogo.js";export{default as AppointmentBookingCowlendar}from"./third-party/components/AppointmentBookingCowlendar.js";export{default as AppstleBundlesDiscounts}from"./third-party/components/AppstleBundlesDiscounts.js";export{default as AppstleLoyaltyRewardProgram}from"./third-party/components/AppstleLoyaltyRewardProgram.js";export{default as AppstleSubscriptions}from"./third-party/components/AppstleSubscriptions.js";export{default as ArticleAuthor}from"./article/components/ArticleAuthor.js";export{default as ArticleCategory}from"./article/components/ArticleCategory.js";export{default as ArticleContent}from"./article/components/ArticleContent.js";export{default as ArticleDate}from"./article/components/ArticleDate.js";export{default as ArticleExcerpt}from"./article/components/ArticleExcerpt.js";export{default as ArticleImage}from"./article/components/ArticleImage.js";export{default as ArticleList}from"./article/components/ArticleList.js";export{default as ArticlePagination}from"./article/components/ArticlePagination.js";export{default as ArticleReadMore}from"./article/components/ArticleReadMore.js";export{default as ArticleTag}from"./article/components/ArticleTag.js";export{default as ArticleTitle}from"./article/components/ArticleTitle.js";export{default as BasicHeader}from"./header/components/kind/basic/index.js";export{default as BestBuyFulfillment}from"./third-party/components/BestBuyFulfillment.js";export{default as BfSizeChartSizeGuide}from"./third-party/components/BfSizeChartSizeGuide.js";export{default as BirdChime}from"./third-party/components/BirdChime.js";export{default as BloyRewardsProgramLoyalty}from"./third-party/components/BloyRewardsProgramLoyalty.js";export{default as Bogos}from"./third-party/components/Bogos.js";export{default as BoldProductOptions}from"./third-party/components/BoldProductOptions.js";export{default as BoldSubscriptions}from"./third-party/components/BoldSubscriptions.js";export{default as BonLoyaltyRewardsReferrals}from"./third-party/components/BonLoyaltyRewardsReferrals.js";export{default as BonySubscriptionsApp}from"./third-party/components/BonySubscriptionsApp.js";export{default as BoostAISearchDiscovery}from"./third-party/components/BoostAISearchDiscovery.js";export{default as Breadcrumb}from"./breadcrumb/components/Breadcrumb.js";export{default as Bundler}from"./third-party/components/Bundler.js";export{default as Button}from"./button/components/Button.js";export{default as CSSCode}from"./code/components/CSSCode.js";export{default as Carousel}from"./carousel/components/root/Carousel.js";export{default as CarouselItem}from"./carousel/components/item/CarouselItem.js";export{default as CarouselItemV3}from"./carousel-v3/components/item/CarouselItem.js";export{default as CarouselV3}from"./carousel-v3/components/root/Carousel.js";export{default as Cart}from"./cart/components/Cart.js";export{default as CartCheckout}from"./cart/components/CartCheckout.js";export{default as CartDiscount}from"./cart/components/CartDiscount.js";export{default as CartLineAttribute}from"./cart/components/CartLineAttribute.js";export{default as CartLineImage}from"./cart/components/CartLineImage.js";export{default as CartLinePrice}from"./cart/components/CartLinePrice.js";export{default as CartLineVariant}from"./cart/components/CartLineVariant.js";export{default as CartList}from"./cart/components/CartList.js";export{default as CartOrderNote}from"./cart/components/CartOrderNote.js";export{default as CartTotalItem}from"./cart/components/CartTotalItem.js";export{default as CartTotalPrice}from"./cart/components/CartTotalPrice.js";export{default as CheckoutNow}from"./cart/components/CheckoutNow.js";export{default as CleanSizeCharts}from"./third-party/components/CleanSizeCharts.js";export{default as Col}from"./grid/components/col/Col.js";export{default as CollectionBanner}from"./collection/components/collection-banner/CollectionBanner.js";export{default as CollectionDescription}from"./collection/components/collection-description/CollectionDescription.js";export{default as CollectionPaginator}from"./collection/components/collection-paginator/CollectionPaginator.js";export{default as CollectionTitle}from"./collection/components/collection-title/CollectionTitle.js";export{default as CollectionToolbar}from"./collection/components/collection-toolbar/CollectionToolbar.js";export{default as ContactForm}from"./form/components/contact/Contact.js";export{default as Countdown}from"./countdown-timer/components/Countdown.js";export{default as Coupon}from"./coupon/components/Coupon.js";export{default as CouponList}from"./cart/components/CouponList.js";export{default as CrossSellCartUpsell}from"./third-party/components/CrossSellCartUpsell.js";export{default as CustomProductOptionsVariant}from"./third-party/components/CustomProductOptionsVariant.js";export{default as DealeasyVolumeDiscounts}from"./third-party/components/DealeasyVolumeDiscounts.js";export{default as DesktopMenu}from"./header/components/kind/basic/DesktopMenu.js";export{default as Dialog}from"./dialog/components/Dialog.js";export{default as DiscountInput}from"./cart/components/DiscountInput.js";export{default as DiscountyBulkDiscountSales}from"./third-party/components/DiscountyBulkDiscountSales.js";export{default as DynamicCheckout}from"./product/components/dynamic-checkout/DynamicCheckout.js";export{default as EasifyProductOptions}from"./third-party/components/EasifyProductOptions.js";export{default as EasyBundleBuilderSkailama}from"./third-party/components/EasyBundleBuilderSkailama.js";export{default as EasySellCOD}from"./third-party/components/EasySellCOD.js";export{default as EcoboostifyShoppableReelUgc}from"./third-party/components/EcoboostifyShoppableReelUgc.js";export{default as EcomsendBackInStockAlert}from"./third-party/components/EcomsendBackInStockAlert.js";export{default as EssentPreorderBackInStock}from"./third-party/components/EssentPreorderBackInStock.js";export{default as EssentialAnnouncementBar}from"./third-party/components/EssentialAnnouncementBar.js";export{default as EssentialCountdownTimerBar}from"./third-party/components/EssentialCountdownTimerBar.js";export{default as EstimateDate}from"./estimate-delivery/components/EstimateDate.js";export{default as EstimatedDeliveryDatePlus}from"./third-party/components/EstimatedDeliveryDatePlus.js";export{default as FastBundleBundlesDiscounts}from"./third-party/components/FastBundleBundlesDiscounts.js";export{default as FeraReviews}from"./third-party/components/FeraReviews.js";export{default as FileUpload}from"./product/components/file-upload/UploadFile.js";export{default as FirePush}from"./third-party/components/FirePush.js";export{default as FlyBundlesUpsellsFbt}from"./third-party/components/FlyBundlesUpsellsFbt.js";export{default as FordeerProductLabels}from"./third-party/components/FordeerProductLabels.js";export{default as FormCheckbox}from"./form/components/form-checkbox/FormCheckbox.js";export{default as FormDropdown}from"./form/components/form-dropdown/FormDropdown.js";export{default as FormEmail}from"./form/components/form-email/FormEmail.js";export{default as FormTextarea}from"./form/components/textarea/TextArea.js";export{default as FrequentlyBoughtTogether}from"./third-party/components/FrequentlyBoughtTogether.js";export{default as GloColorSwatchvariantImage}from"./third-party/components/GloColorSwatchvariantImage.js";export{default as GloboProductOptionsVariant}from"./third-party/components/GloboProductOptionsVariant.js";export{default as GoogleReviewsByReputon}from"./third-party/components/GoogleReviewsByReputon.js";export{default as Growave}from"./third-party/components/Growave.js";export{default as GrowthSuiteDiscountCodes}from"./third-party/components/GrowthSuiteDiscountCodes.js";export{default as Header}from"./header/components/Header.js";export{default as Heading}from"./heading/components/Heading.js";export{default as HeroBanner}from"./hero-banner/components/HeroBanner.js";export{default as HextomCountdownTimerBar}from"./third-party/components/HextomCountdownTimerBar.js";export{default as HextomFreeShippingBar}from"./third-party/components/HextomFreeShippingBar.js";export{default as HulkFormBuilder}from"./third-party/components/HulkFormBuilder.js";export{default as HulkProductOptions}from"./third-party/components/HulkProductOptions.js";export{default as Icon}from"./icon/components/Icon.js";export{default as IconList}from"./icon-list/components/IconList.js";export{default as IconListHoz}from"./icon-list-hoz/components/IconListHoz.js";export{default as IconListItem}from"./icon-list/components/IconListItem.js";export{default as IconListItemHoz}from"./icon-list-hoz/components/IconListHozItem.js";export{default as IconListV2}from"./icon-list-v2/components/IconList.js";export{default as Image}from"./image/components/Image.js";export{default as ImageComparison}from"./image-comparison/components/ImageComparison.js";export{default as InfiniteOptions}from"./third-party/components/InfiniteOptions.js";export{default as Input}from"./input/components/Input.js";export{default as Instafeed}from"./third-party/components/Instafeed.js";export{default as InstantJudgemeReviews}from"./third-party-instant/components/InstantJudgemeReviews.js";export{default as InstantKlaviyo}from"./third-party-instant/components/InstantKlaviyo.js";export{default as InstantLooxReviews}from"./third-party-instant/components/InstantLooxReviews.js";export{default as InstantYotpoLoyalty}from"./third-party-instant/components/InstantYotpoLoyalty.js";export{default as InstasellShoppableInstagram}from"./third-party/components/InstasellShoppableInstagram.js";export{default as JudgemeReviews}from"./third-party/components/JudgemeReviews.js";export{default as JunipProductReviewsUgc}from"./third-party/components/JunipProductReviewsUgc.js";export{default as KachingBundles}from"./third-party/components/KachingBundles.js";export{default as KachingSubscriptionsApp}from"./third-party/components/KachingSubscriptionsApp.js";export{default as KingProductOptions}from"./third-party/components/KingProductOptions.js";export{default as KiteFreeGiftDiscount}from"./third-party/components/KiteFreeGiftDiscount.js";export{default as KlarnaMessaging}from"./third-party/components/KlarnaMessaging.js";export{default as Klaviyo}from"./third-party/components/Klaviyo.js";export{default as KoalaBundleQuantityDiscount}from"./third-party/components/KoalaBundleQuantityDiscount.js";export{default as LaiProductReviews}from"./third-party/components/LaiProductReviews.js";export{default as Line}from"./line/components/Line.js";export{default as Link}from"./link/components/Link.js";export{default as LoloyalLoyaltyReferrals}from"./third-party/components/LoloyalLoyaltyReferrals.js";export{default as LoopSubscriptions}from"./third-party/components/LoopSubscriptions.js";export{default as LooxReviews}from"./third-party/components/LooxReviews.js";export{default as Marquee}from"./marquee/components/Marquee.js";export{default as MaxbundleProductBundles}from"./third-party/components/MaxbundleProductBundles.js";export{default as MbcBundleVolumeDiscount}from"./third-party/components/MbcBundleVolumeDiscount.js";export{default as Menu}from"./menu/components/Menu.js";export{default as MobileMenu}from"./header/components/kind/basic/MobileMenu.js";export{default as Modal}from"./modal/components/Modal.js";export{default as ModernHeader}from"./header/components/kind/modern/index.js";export{default as MyappgurusProductReviews}from"./third-party/components/MyappgurusProductReviews.js";export{default as Newsletter}from"./form/components/newsletter/Newsletter.js";export{default as NotifyBackInStockPreOrder}from"./third-party/components/NotifyBackInStockPreOrder.js";export{default as OkendoReviewsLoyalty}from"./third-party/components/OkendoReviewsLoyalty.js";export{default as Omnisend}from"./third-party/components/Omnisend.js";export{default as Opinew}from"./third-party/components/Opinew.js";export{default as Pagination}from"./pagination/components/Pagination.js";export{default as ParcelPanel}from"./third-party/components/ParcelPanel.js";export{default as PickyStory}from"./third-party/components/PickyStory.js";export{default as PostPurchaseAcceptButton}from"./post-purchase/product/components/AcceptButton.js";export{default as PostPurchaseAdvancedList}from"./post-purchase/advanced-list/components/AdvancedListPostPurchase.js";export{default as PostPurchaseAdvancedListItem}from"./post-purchase/advanced-list/components/PostPurchaseAdvancedListItem.js";export{default as PostPurchaseButton}from"./post-purchase/button/components/Button.js";export{default as PostPurchaseBuyerConsent}from"./post-purchase/buyer-consent/components/BuyerConsent.js";export{default as PostPurchaseCalloutBox}from"./post-purchase/callout-banner/components/CalloutBox.js";export{default as PostPurchaseCalloutText}from"./post-purchase/callout-banner/components/CalloutText.js";export{default as PostPurchaseCountdownTimer}from"./post-purchase/countdown-timer/components/PostPurchaseCountdownTimer.js";export{default as PostPurchaseImage}from"./post-purchase/image/components/Image.js";export{default as PostPurchaseLine}from"./post-purchase/line/components/PostPurchaseLine.js";export{default as PostPurchaseLink}from"./post-purchase/link/components/PostPurchaseLink.js";export{default as PostPurchaseProductDescription}from"./post-purchase/product/components/ProductDescription.js";export{default as PostPurchaseProductDiscountTag}from"./post-purchase/product/components/ProductDiscountTag.js";export{default as PostPurchaseProductImages}from"./post-purchase/product/components/product-image/index.js";export{default as PostPurchaseProductOffer}from"./post-purchase/product/components/product-offer/components/ProductOffer.js";export{default as PostPurchaseProductPrice}from"./post-purchase/product/components/ProductPrice.js";export{default as PostPurchaseProductPriceBreakdown}from"./post-purchase/product/components/ProductPriceBreakdown.js";export{default as PostPurchaseProductQuantity}from"./post-purchase/product/components/ProductQuantity.js";export{default as PostPurchaseProductSubscription}from"./post-purchase/product/components/product-subscription/ProductSubscription.js";export{default as PostPurchaseProductTitle}from"./post-purchase/product/components/ProductTitle.js";export{default as PostPurchaseProductVariants}from"./post-purchase/product/components/product-variant/components/ProductVariant.js";export{default as PostPurchaseText}from"./post-purchase/text/components/Text.js";export{default as PowerfulContactFormBuilder}from"./third-party/components/PowerfulContactFormBuilder.js";export{default as PreorderNowPreOrderPq}from"./third-party/components/PreorderNowPreOrderPq.js";export{default as PreorderNowWodPresale}from"./third-party/components/PreorderNowWodPresale.js";export{default as Product}from"./product/components/product-wrap/Product.js";export{default as ProductBadge}from"./product/components/product-badge/ProductBadge.js";export{default as ProductBundleDiscount}from"./product/components/product-bundle/ProductBundleDiscount.js";export{default as ProductBundleDiscountItem}from"./product/components/product-bundle/ProductBundleDiscountItem.js";export{default as ProductButton}from"./product/components/product-button/ProductButton.js";export{default as ProductDescription}from"./product/components/product-description/ProductDescription.js";export{default as ProductImages}from"./product/components/ProductImages.js";export{default as ProductImagesV2}from"./product/components/product-images-v2/ProductImageV2.js";export{default as ProductImagesV3}from"./product/components/product-images-v3/ProductImageV3.js";export{default as ProductList}from"./product/components/product-list/ProductList.js";export{default as ProductListV3}from"./product/components/product-list-v3/ProductList.js";export{default as ProductOptionsCustomizer}from"./third-party/components/ProductOptionsCustomizer.js";export{default as ProductOptionsVariantOption}from"./third-party/components/ProductOptionsVariantOption.js";export{default as ProductPrice}from"./product/components/product-price/ProductPrice.js";export{default as ProductPropertyInput}from"./product/components/product-properties/ProductProperties.js";export{default as ProductQuantity}from"./product/components/product-quantity/ProductQuantity.js";export{default as ProductQuickView}from"./product/components/product-quick-view/QuickView.js";export{default as ProductReviews}from"./third-party/components/ProductReviews.js";export{default as ProductSku}from"./product/components/product-sku/Sku.js";export{default as ProductTag}from"./product/components/product-discount-tag/ProductDiscountTag.js";export{default as ProductTitle}from"./product/components/product-title/ProductTitle.js";export{default as ProductVariants}from"./product/components/product-variants/ProductVariants.js";export{default as ProductVendor}from"./product/components/product-vendor/Vendor.js";export{default as ProductViewMore}from"./product/components/product-view-more/ProductViewMore.js";export{default as PumperBundlesVolumeDiscount}from"./third-party/components/PumperBundlesVolumeDiscount.js";export{default as PushOwl}from"./third-party/components/PushOwl.js";export{default as QikifyUpsell}from"./third-party/components/QikifyUpsell.js";export{default as Radio}from"./radio/components/Radio.js";export{default as RapiBundleQuantityBreaks}from"./third-party/components/RapiBundleQuantityBreaks.js";export{default as RechargeSubscriptions}from"./third-party/components/RechargeSubscriptions.js";export{default as RecurpaySubscriptionApp}from"./third-party/components/RecurpaySubscriptionApp.js";export{default as Releasit}from"./third-party/components/Releasit.js";export{default as RequestQuoteHidePrice}from"./third-party/components/RequestQuoteHidePrice.js";export{default as ReviewxpoProductReviewsApp}from"./third-party/components/ReviewxpoProductReviewsApp.js";export{default as Rivyo}from"./third-party/components/Rivyo.js";export{default as Root}from"./grid/components/root/Root.js";export{default as Row}from"./grid/components/row/Row.js";export{default as Ryviu}from"./third-party/components/Ryviu.js";export{default as SealSubscriptions}from"./third-party/components/SealSubscriptions.js";export{default as Section}from"./grid/components/section/Section.js";export{default as SegunoEmailMarketing}from"./third-party/components/SegunoEmailMarketing.js";export{default as Select}from"./select/components/Select.js";export{default as Selleasy}from"./third-party/components/Selleasy.js";export{default as SeoantTrustBadgesIcon}from"./third-party/components/SeoantTrustBadgesIcon.js";export{default as ShopPayButton}from"./cart/components/shop-pay-button/ShopPayButton.js";export{default as ShopPayInstallments}from"./shop-pay-installment/components/ShopPayInstallments.js";export{default as ShopifyForms}from"./third-party/components/ShopifyForms.js";export{default as ShopifySubscriptions}from"./third-party/components/ShopifySubscriptions.js";export{default as SimpleBundlesKits}from"./third-party/components/SimpleBundlesKits.js";export{default as SkioSubscriptionsYcS20}from"./third-party/components/SkioSubscriptionsYcS20.js";export{default as SmartSearchBarAndFilters}from"./third-party/components/SmartSearchBarAndFilters.js";export{default as SproutPlantTreesGrowSales}from"./third-party/components/SproutPlantTreesGrowSales.js";export{default as Stamped}from"./third-party/components/Stamped.js";export{default as StellarDeliveryDatePickup}from"./third-party/components/StellarDeliveryDatePickup.js";export{default as Sticky}from"./sticky/components/Sticky.js";export{default as StockCounter}from"./stock-counter/components/StockCounter.js";export{default as SubifySubscriptionsApp}from"./third-party/components/SubifySubscriptionsApp.js";export{default as SubmitButton}from"./form/components/submit-button/SubmitButton.js";export{default as TabItem}from"./tab/components/TabItem.js";export{default as Tabs}from"./tab/components/Tabs.js";export{default as TagembedSocialPostReview}from"./third-party/components/TagembedSocialPostReview.js";export{default as TagshopShoppableVideosUgc}from"./third-party/components/TagshopShoppableVideosUgc.js";export{default as TeeinblueProductPersonalizer}from"./third-party/components/TeeinblueProductPersonalizer.js";export{default as Text}from"./text/components/Text.js";export{default as TextField}from"./form/components/textfield/TextField.js";export{default as TextInput}from"./form/components/textinput/TextInput.js";export{default as Textarea}from"./textarea/components/Textarea.js";export{default as ThirdPartySlot}from"./third-party-slot/components/ThirdPartySlot.js";export{default as TrustBadgesBear}from"./third-party/components/TrustBadgesBear.js";export{default as TrustMe}from"./third-party/components/TrustMe.js";export{default as TrustedsiteTrustBadges}from"./third-party/components/TrustedsiteTrustBadges.js";export{default as Trustoo}from"./third-party/components/Trustoo.js";export{default as TrustreviewsProductReviews}from"./third-party/components/TrustreviewsProductReviews.js";export{default as TrustshopProductReviews}from"./third-party/components/TrustshopProductReviews.js";export{default as UltimateSalesBoost}from"./third-party/components/UltimateSalesBoost.js";export{default as UnlimitedBundlesDiscounts}from"./third-party/components/UnlimitedBundlesDiscounts.js";export{default as UppromoteAffiliateMarketing}from"./third-party/components/UppromoteAffiliateMarketing.js";export{default as Video}from"./video/components/Video.js";export{default as Vitals}from"./third-party/components/Vitals.js";export{default as WcWishlistBackInStock}from"./third-party/components/WcWishlistBackInStock.js";export{default as WhatmoreShoppableVideosreel}from"./third-party/components/WhatmoreShoppableVideosreel.js";export{default as WideBundle}from"./third-party/components/WideBundle.js";export{default as Wiser}from"./third-party/components/Wiser.js";export{default as WishlistKing}from"./third-party/components/WishlistKing.js";export{default as WishlistPlus}from"./third-party/components/WishlistPlus.js";export{default as YotpoLoyalty}from"./third-party/components/YotpoLoyalty.js";export{default as YotpoReviews}from"./third-party/components/YotpoReviews.js";export{CONTINUE_SELLING_WHEN_OUT_OF_STOCK,DEFAULT_FONT_SIZE,DEFAULT_HIGHLIGHT_TAG,DEFAULT_PROGRESS_BAR_HEIGHT,DEFAULT_QUANTITY_TEMPLATE,DEFAULT_RANGE_STEP,DEFAULT_REMAINING_PERCENT,DEFAULT_REMAINING_QUANTITY,DEFAULT_SCARCITY_THRESHOLD,MAX_PROGRESS_BAR_HEIGHT,MAX_REMAINING_PERCENT,MIN_PROGRESS_BAR_HEIGHT,MIN_REMAINING_PERCENT,MIN_REMAINING_QUANTITY,NO_PRODUCT_LEFT,OUT_OF_STOCK,QUANTITY_SOURCE,convertSizeToWidth,getInlineCss,getLiquidInitData,getLiquidTextContent,getTextDisplayData,transformHighlighTag,transformNumberTag}from"./stock-counter/common/helpers.js";export{default as MarqueeItem}from"./marquee/components/MarqueeItem.js";export{openConfirm}from"./modal/components/confirm.js";export{postPurchaseProduct1Col}from"./post-purchase/product/settings/presets-config/product-presets/product-1-col.js";export{postPurchaseProduct2Col}from"./post-purchase/product/settings/presets-config/product-presets/product-2-col.js";export{postPurchaseProductDefault}from"./post-purchase/product/settings/presets-config/product-presets/product-default.js";export{t as liquidComponents,o as translateComponents};
1
+ export{accordionSetting}from"./accordion/index.js";export{articleListSetting}from"./article/index.js";export{bannerSetting}from"./hero-banner/index.js";export{breadcrumbSetting}from"./breadcrumb/index.js";export{buttonSetting}from"./button/index.js";export{carouselSettingV3}from"./carousel-v3/index.js";export{carouselSetting}from"./carousel/index.js";export{cartSetting}from"./cart/index.js";export{codeSetting}from"./code/index.js";export{collectionSetting}from"./collection/index.js";export{countdownSetting}from"./countdown-timer/index.js";export{couponSetting}from"./coupon/index.js";export{dialogSetting}from"./dialog/index.js";export{estimateDeliverySetting}from"./estimate-delivery/index.js";export{gridSetting}from"./grid/index.js";export{contactFormSetting}from"./form/index.js";export{headerSetting}from"./header/index.js";export{headingSetting}from"./heading/index.js";export{iconSetting}from"./icon/index.js";export{iconListSetting}from"./icon-list/index.js";export{iconListHozSetting}from"./icon-list-hoz/index.js";export{iconListSettingV2}from"./icon-list-v2/index.js";export{imageSetting}from"./image/index.js";export{imageComparisonSetting}from"./image-comparison/index.js";export{inputSetting}from"./input/index.js";export{lineSetting}from"./line/index.js";export{linkSetting}from"./link/index.js";export{marqueeSetting}from"./marquee/index.js";export{menuSetting}from"./menu/index.js";export{modalSetting}from"./modal/index.js";export{default as useNotification}from"./notification/hooks/useNotification.js";export{default as Notice}from"./notification/components/Notice.js";export{paginationSetting}from"./pagination/index.js";export{postPurchaseAdvancedListSetting}from"./post-purchase/advanced-list/index.js";export{postPurchaseButtonSetting}from"./post-purchase/button/index.js";export{postPurchaseCalloutBoxSetting}from"./post-purchase/callout-banner/index.js";export{postPurchaseCountdownTimerSetting}from"./post-purchase/countdown-timer/index.js";export{postPurchaseImageSetting}from"./post-purchase/image/index.js";export{postPurchaseLineSetting}from"./post-purchase/line/index.js";export{postPurchaseLinkSetting}from"./post-purchase/link/index.js";export{PostPurchaseHeading,postPurchaseTextSetting}from"./post-purchase/text/index.js";export{postPurchaseProductSetting}from"./post-purchase/product/index.js";export{postPurchaseBuyerConsentSetting}from"./post-purchase/buyer-consent/index.js";export{productSetting}from"./product/index.js";export{radioSetting}from"./radio/index.js";export{selectSetting}from"./select/index.js";export{tabSetting}from"./tab/index.js";export{textSetting}from"./text/index.js";export{textareaSetting}from"./textarea/index.js";export{videoSetting}from"./video/index.js";export{thirdPartySetting}from"./third-party/index.js";export{thirdPartyInstantSetting}from"./third-party-instant/index.js";export{stockCounterSetting}from"./stock-counter/index.js";export{thirdPartySlotSetting}from"./third-party-slot/index.js";export{shopPayInstallmentSetting}from"./shop-pay-installment/index.js";export{stickySetting}from"./sticky/index.js";export{default as nextComponent}from"./next.js";export{default as headlessComponents}from"./headless.js";import*as t from"./index.liquid.js";export{default as builderComponent}from"./builder.js";export{default as componentSettings}from"./setting.js";export{default as postPurchaseSettings}from"./postPurchaseSetting.js";import"react/jsx-runtime";export{ELEMENT_Z_INDEX}from"./common/const.js";import"@gem-sdk/core";import"react";export{REGEX_BARE_DOMAIN,REGEX_PAGE_TYPE,checkIsOpenPage,checkIsOpenPopup,checkIsScrollToTop,convertUnitToNumber,createSettingId,createTranslateKey,extractProductID,filterPageContext,filterTruthyObject,filterTruthyStyles,getAllHrefFromString,getBackgroundTranslated,getDisplayStyle,getDynamicSourceLocales,getInsertLinkData,getLinkArticle,getLinkData,getSeoTranslated,getSettingPreloadData,getStaticLocale,handleClickLink,isEmptyObject,isHexTransparent,isLinkedToSalesPage,isShopifyDomain,isTransparentColor,isTransparentRGBA,normalizeMailto,replaceAllHrefFromString,replaceLinkData,youtubeShortsRegex}from"./helpers.js";import*as o from"./translate.js";export{TAGS_WITH_REPLACE_LINK_DATA}from"./constant.js";export{default as Accordion}from"./accordion/components/Accordion.js";export{default as AccordionItem}from"./accordion/components/AccordionItem.js";export{default as AftershipEmailMarketingsms}from"./third-party/components/AftershipEmailMarketingsms.js";export{default as AirProductReviewsAppUgc}from"./third-party/components/AirProductReviewsAppUgc.js";export{default as AliReviews}from"./third-party/components/AliReviews.js";export{default as AlsoBoughtCbb}from"./third-party/components/AlsoBoughtCbb.js";export{default as AovBundlesVolumeDiscounts}from"./third-party/components/AovBundlesVolumeDiscounts.js";export{default as AovFreeGiftBuyXGetYBogo}from"./third-party/components/AovFreeGiftBuyXGetYBogo.js";export{default as AppointmentBookingCowlendar}from"./third-party/components/AppointmentBookingCowlendar.js";export{default as AppstleBundlesDiscounts}from"./third-party/components/AppstleBundlesDiscounts.js";export{default as AppstleLoyaltyRewardProgram}from"./third-party/components/AppstleLoyaltyRewardProgram.js";export{default as AppstleSubscriptions}from"./third-party/components/AppstleSubscriptions.js";export{default as ArticleAuthor}from"./article/components/ArticleAuthor.js";export{default as ArticleCategory}from"./article/components/ArticleCategory.js";export{default as ArticleContent}from"./article/components/ArticleContent.js";export{default as ArticleDate}from"./article/components/ArticleDate.js";export{default as ArticleExcerpt}from"./article/components/ArticleExcerpt.js";export{default as ArticleImage}from"./article/components/ArticleImage.js";export{default as ArticleList}from"./article/components/ArticleList.js";export{default as ArticlePagination}from"./article/components/ArticlePagination.js";export{default as ArticleReadMore}from"./article/components/ArticleReadMore.js";export{default as ArticleTag}from"./article/components/ArticleTag.js";export{default as ArticleTitle}from"./article/components/ArticleTitle.js";export{default as BasicHeader}from"./header/components/kind/basic/index.js";export{default as BestBuyFulfillment}from"./third-party/components/BestBuyFulfillment.js";export{default as BfSizeChartSizeGuide}from"./third-party/components/BfSizeChartSizeGuide.js";export{default as BirdChime}from"./third-party/components/BirdChime.js";export{default as BloyRewardsProgramLoyalty}from"./third-party/components/BloyRewardsProgramLoyalty.js";export{default as Bogos}from"./third-party/components/Bogos.js";export{default as BoldProductOptions}from"./third-party/components/BoldProductOptions.js";export{default as BoldSubscriptions}from"./third-party/components/BoldSubscriptions.js";export{default as BonLoyaltyRewardsReferrals}from"./third-party/components/BonLoyaltyRewardsReferrals.js";export{default as BonySubscriptionsApp}from"./third-party/components/BonySubscriptionsApp.js";export{default as BoostAISearchDiscovery}from"./third-party/components/BoostAISearchDiscovery.js";export{default as Breadcrumb}from"./breadcrumb/components/Breadcrumb.js";export{default as Bundler}from"./third-party/components/Bundler.js";export{default as Button}from"./button/components/Button.js";export{default as CSSCode}from"./code/components/CSSCode.js";export{default as Carousel}from"./carousel/components/root/Carousel.js";export{default as CarouselItem}from"./carousel/components/item/CarouselItem.js";export{default as CarouselItemV3}from"./carousel-v3/components/item/CarouselItem.js";export{default as CarouselV3}from"./carousel-v3/components/root/Carousel.js";export{default as Cart}from"./cart/components/Cart.js";export{default as CartCheckout}from"./cart/components/CartCheckout.js";export{default as CartDiscount}from"./cart/components/CartDiscount.js";export{default as CartLineAttribute}from"./cart/components/CartLineAttribute.js";export{default as CartLineImage}from"./cart/components/CartLineImage.js";export{default as CartLinePrice}from"./cart/components/CartLinePrice.js";export{default as CartLineVariant}from"./cart/components/CartLineVariant.js";export{default as CartList}from"./cart/components/CartList.js";export{default as CartOrderNote}from"./cart/components/CartOrderNote.js";export{default as CartTotalItem}from"./cart/components/CartTotalItem.js";export{default as CartTotalPrice}from"./cart/components/CartTotalPrice.js";export{default as CheckoutNow}from"./cart/components/CheckoutNow.js";export{default as CleanSizeCharts}from"./third-party/components/CleanSizeCharts.js";export{default as Col}from"./grid/components/col/Col.js";export{default as CollectionBanner}from"./collection/components/collection-banner/CollectionBanner.js";export{default as CollectionDescription}from"./collection/components/collection-description/CollectionDescription.js";export{default as CollectionPaginator}from"./collection/components/collection-paginator/CollectionPaginator.js";export{default as CollectionTitle}from"./collection/components/collection-title/CollectionTitle.js";export{default as CollectionToolbar}from"./collection/components/collection-toolbar/CollectionToolbar.js";export{default as ContactForm}from"./form/components/contact/Contact.js";export{default as Countdown}from"./countdown-timer/components/Countdown.js";export{default as Coupon}from"./coupon/components/Coupon.js";export{default as CouponList}from"./cart/components/CouponList.js";export{default as CrossSellCartUpsell}from"./third-party/components/CrossSellCartUpsell.js";export{default as CustomProductOptionsVariant}from"./third-party/components/CustomProductOptionsVariant.js";export{default as DealeasyVolumeDiscounts}from"./third-party/components/DealeasyVolumeDiscounts.js";export{default as DesktopMenu}from"./header/components/kind/basic/DesktopMenu.js";export{default as Dialog}from"./dialog/components/Dialog.js";export{default as DiscountInput}from"./cart/components/DiscountInput.js";export{default as DiscountyBulkDiscountSales}from"./third-party/components/DiscountyBulkDiscountSales.js";export{default as DynamicCheckout}from"./product/components/dynamic-checkout/DynamicCheckout.js";export{default as EasifyProductOptions}from"./third-party/components/EasifyProductOptions.js";export{default as EasyBundleBuilderSkailama}from"./third-party/components/EasyBundleBuilderSkailama.js";export{default as EasySellCOD}from"./third-party/components/EasySellCOD.js";export{default as EcoboostifyShoppableReelUgc}from"./third-party/components/EcoboostifyShoppableReelUgc.js";export{default as EcomsendBackInStockAlert}from"./third-party/components/EcomsendBackInStockAlert.js";export{default as EssentPreorderBackInStock}from"./third-party/components/EssentPreorderBackInStock.js";export{default as EssentialAnnouncementBar}from"./third-party/components/EssentialAnnouncementBar.js";export{default as EssentialCountdownTimerBar}from"./third-party/components/EssentialCountdownTimerBar.js";export{default as EstimateDate}from"./estimate-delivery/components/EstimateDate.js";export{default as EstimatedDeliveryDatePlus}from"./third-party/components/EstimatedDeliveryDatePlus.js";export{default as FastBundleBundlesDiscounts}from"./third-party/components/FastBundleBundlesDiscounts.js";export{default as FeraReviews}from"./third-party/components/FeraReviews.js";export{default as FileUpload}from"./product/components/file-upload/UploadFile.js";export{default as FirePush}from"./third-party/components/FirePush.js";export{default as FlyBundlesUpsellsFbt}from"./third-party/components/FlyBundlesUpsellsFbt.js";export{default as FordeerProductLabels}from"./third-party/components/FordeerProductLabels.js";export{default as FormCheckbox}from"./form/components/form-checkbox/FormCheckbox.js";export{default as FormDropdown}from"./form/components/form-dropdown/FormDropdown.js";export{default as FormEmail}from"./form/components/form-email/FormEmail.js";export{default as FormTextarea}from"./form/components/textarea/TextArea.js";export{default as FrequentlyBoughtTogether}from"./third-party/components/FrequentlyBoughtTogether.js";export{default as GloColorSwatchvariantImage}from"./third-party/components/GloColorSwatchvariantImage.js";export{default as GloboProductOptionsVariant}from"./third-party/components/GloboProductOptionsVariant.js";export{default as GoogleReviewsByReputon}from"./third-party/components/GoogleReviewsByReputon.js";export{default as Growave}from"./third-party/components/Growave.js";export{default as GrowthSuiteDiscountCodes}from"./third-party/components/GrowthSuiteDiscountCodes.js";export{default as Header}from"./header/components/Header.js";export{default as Heading}from"./heading/components/Heading.js";export{default as HeroBanner}from"./hero-banner/components/HeroBanner.js";export{default as HextomCountdownTimerBar}from"./third-party/components/HextomCountdownTimerBar.js";export{default as HextomFreeShippingBar}from"./third-party/components/HextomFreeShippingBar.js";export{default as HulkFormBuilder}from"./third-party/components/HulkFormBuilder.js";export{default as HulkProductOptions}from"./third-party/components/HulkProductOptions.js";export{default as Icon}from"./icon/components/Icon.js";export{default as IconList}from"./icon-list/components/IconList.js";export{default as IconListHoz}from"./icon-list-hoz/components/IconListHoz.js";export{default as IconListItem}from"./icon-list/components/IconListItem.js";export{default as IconListItemHoz}from"./icon-list-hoz/components/IconListHozItem.js";export{default as IconListV2}from"./icon-list-v2/components/IconList.js";export{default as Image}from"./image/components/Image.js";export{default as ImageComparison}from"./image-comparison/components/ImageComparison.js";export{default as InfiniteOptions}from"./third-party/components/InfiniteOptions.js";export{default as Input}from"./input/components/Input.js";export{default as Instafeed}from"./third-party/components/Instafeed.js";export{default as InstantJudgemeReviews}from"./third-party-instant/components/InstantJudgemeReviews.js";export{default as InstantKlaviyo}from"./third-party-instant/components/InstantKlaviyo.js";export{default as InstantLooxReviews}from"./third-party-instant/components/InstantLooxReviews.js";export{default as InstantYotpoLoyalty}from"./third-party-instant/components/InstantYotpoLoyalty.js";export{default as InstasellShoppableInstagram}from"./third-party/components/InstasellShoppableInstagram.js";export{default as JudgemeReviews}from"./third-party/components/JudgemeReviews.js";export{default as JunipProductReviewsUgc}from"./third-party/components/JunipProductReviewsUgc.js";export{default as KachingBundles}from"./third-party/components/KachingBundles.js";export{default as KachingSubscriptionsApp}from"./third-party/components/KachingSubscriptionsApp.js";export{default as KingProductOptions}from"./third-party/components/KingProductOptions.js";export{default as KiteFreeGiftDiscount}from"./third-party/components/KiteFreeGiftDiscount.js";export{default as KlarnaMessaging}from"./third-party/components/KlarnaMessaging.js";export{default as Klaviyo}from"./third-party/components/Klaviyo.js";export{default as KoalaBundleQuantityDiscount}from"./third-party/components/KoalaBundleQuantityDiscount.js";export{default as LaiProductReviews}from"./third-party/components/LaiProductReviews.js";export{default as Line}from"./line/components/Line.js";export{default as Link}from"./link/components/Link.js";export{default as LoloyalLoyaltyReferrals}from"./third-party/components/LoloyalLoyaltyReferrals.js";export{default as LoopSubscriptions}from"./third-party/components/LoopSubscriptions.js";export{default as LooxReviews}from"./third-party/components/LooxReviews.js";export{default as Marquee}from"./marquee/components/Marquee.js";export{default as MaxbundleProductBundles}from"./third-party/components/MaxbundleProductBundles.js";export{default as MbcBundleVolumeDiscount}from"./third-party/components/MbcBundleVolumeDiscount.js";export{default as Menu}from"./menu/components/Menu.js";export{default as MobileMenu}from"./header/components/kind/basic/MobileMenu.js";export{default as Modal}from"./modal/components/Modal.js";export{default as ModernHeader}from"./header/components/kind/modern/index.js";export{default as MyappgurusProductReviews}from"./third-party/components/MyappgurusProductReviews.js";export{default as Newsletter}from"./form/components/newsletter/Newsletter.js";export{default as NotifyBackInStockPreOrder}from"./third-party/components/NotifyBackInStockPreOrder.js";export{default as OkendoReviewsLoyalty}from"./third-party/components/OkendoReviewsLoyalty.js";export{default as Omnisend}from"./third-party/components/Omnisend.js";export{default as Opinew}from"./third-party/components/Opinew.js";export{default as Pagination}from"./pagination/components/Pagination.js";export{default as ParcelPanel}from"./third-party/components/ParcelPanel.js";export{default as PickyStory}from"./third-party/components/PickyStory.js";export{default as PostPurchaseAcceptButton}from"./post-purchase/product/components/AcceptButton.js";export{default as PostPurchaseAdvancedList}from"./post-purchase/advanced-list/components/AdvancedListPostPurchase.js";export{default as PostPurchaseAdvancedListItem}from"./post-purchase/advanced-list/components/PostPurchaseAdvancedListItem.js";export{default as PostPurchaseButton}from"./post-purchase/button/components/Button.js";export{default as PostPurchaseBuyerConsent}from"./post-purchase/buyer-consent/components/BuyerConsent.js";export{default as PostPurchaseCalloutBox}from"./post-purchase/callout-banner/components/CalloutBox.js";export{default as PostPurchaseCalloutText}from"./post-purchase/callout-banner/components/CalloutText.js";export{default as PostPurchaseCountdownTimer}from"./post-purchase/countdown-timer/components/PostPurchaseCountdownTimer.js";export{default as PostPurchaseImage}from"./post-purchase/image/components/Image.js";export{default as PostPurchaseLine}from"./post-purchase/line/components/PostPurchaseLine.js";export{default as PostPurchaseLink}from"./post-purchase/link/components/PostPurchaseLink.js";export{default as PostPurchaseProductDescription}from"./post-purchase/product/components/ProductDescription.js";export{default as PostPurchaseProductDiscountTag}from"./post-purchase/product/components/ProductDiscountTag.js";export{default as PostPurchaseProductImages}from"./post-purchase/product/components/product-image/index.js";export{default as PostPurchaseProductOffer}from"./post-purchase/product/components/product-offer/components/ProductOffer.js";export{default as PostPurchaseProductPrice}from"./post-purchase/product/components/ProductPrice.js";export{default as PostPurchaseProductPriceBreakdown}from"./post-purchase/product/components/ProductPriceBreakdown.js";export{default as PostPurchaseProductQuantity}from"./post-purchase/product/components/ProductQuantity.js";export{default as PostPurchaseProductSubscription}from"./post-purchase/product/components/product-subscription/ProductSubscription.js";export{default as PostPurchaseProductTitle}from"./post-purchase/product/components/ProductTitle.js";export{default as PostPurchaseProductVariants}from"./post-purchase/product/components/product-variant/components/ProductVariant.js";export{default as PostPurchaseText}from"./post-purchase/text/components/Text.js";export{default as PowerfulContactFormBuilder}from"./third-party/components/PowerfulContactFormBuilder.js";export{default as PreorderNowPreOrderPq}from"./third-party/components/PreorderNowPreOrderPq.js";export{default as PreorderNowWodPresale}from"./third-party/components/PreorderNowWodPresale.js";export{default as Product}from"./product/components/product-wrap/Product.js";export{default as ProductBadge}from"./product/components/product-badge/ProductBadge.js";export{default as ProductBundleDiscount}from"./product/components/product-bundle/ProductBundleDiscount.js";export{default as ProductBundleDiscountItem}from"./product/components/product-bundle/ProductBundleDiscountItem.js";export{default as ProductButton}from"./product/components/product-button/ProductButton.js";export{default as ProductDescription}from"./product/components/product-description/ProductDescription.js";export{default as ProductImages}from"./product/components/ProductImages.js";export{default as ProductImagesV2}from"./product/components/product-images-v2/ProductImageV2.js";export{default as ProductImagesV3}from"./product/components/product-images-v3/ProductImageV3.js";export{default as ProductList}from"./product/components/product-list/ProductList.js";export{default as ProductListV3}from"./product/components/product-list-v3/ProductList.js";export{default as ProductOptionsCustomizer}from"./third-party/components/ProductOptionsCustomizer.js";export{default as ProductOptionsVariantOption}from"./third-party/components/ProductOptionsVariantOption.js";export{default as ProductPrice}from"./product/components/product-price/ProductPrice.js";export{default as ProductPropertyInput}from"./product/components/product-properties/ProductProperties.js";export{default as ProductQuantity}from"./product/components/product-quantity/ProductQuantity.js";export{default as ProductQuickView}from"./product/components/product-quick-view/QuickView.js";export{default as ProductReviews}from"./third-party/components/ProductReviews.js";export{default as ProductSku}from"./product/components/product-sku/Sku.js";export{default as ProductTag}from"./product/components/product-discount-tag/ProductDiscountTag.js";export{default as ProductTitle}from"./product/components/product-title/ProductTitle.js";export{default as ProductVariants}from"./product/components/product-variants/ProductVariants.js";export{default as ProductVendor}from"./product/components/product-vendor/Vendor.js";export{default as ProductViewMore}from"./product/components/product-view-more/ProductViewMore.js";export{default as PumperBundlesVolumeDiscount}from"./third-party/components/PumperBundlesVolumeDiscount.js";export{default as PushOwl}from"./third-party/components/PushOwl.js";export{default as QikifyUpsell}from"./third-party/components/QikifyUpsell.js";export{default as Radio}from"./radio/components/Radio.js";export{default as RapiBundleQuantityBreaks}from"./third-party/components/RapiBundleQuantityBreaks.js";export{default as RechargeSubscriptions}from"./third-party/components/RechargeSubscriptions.js";export{default as RecurpaySubscriptionApp}from"./third-party/components/RecurpaySubscriptionApp.js";export{default as Releasit}from"./third-party/components/Releasit.js";export{default as RequestQuoteHidePrice}from"./third-party/components/RequestQuoteHidePrice.js";export{default as ReviewxpoProductReviewsApp}from"./third-party/components/ReviewxpoProductReviewsApp.js";export{default as Rivyo}from"./third-party/components/Rivyo.js";export{default as Root}from"./grid/components/root/Root.js";export{default as Row}from"./grid/components/row/Row.js";export{default as Ryviu}from"./third-party/components/Ryviu.js";export{default as SealSubscriptions}from"./third-party/components/SealSubscriptions.js";export{default as Section}from"./grid/components/section/Section.js";export{default as SegunoEmailMarketing}from"./third-party/components/SegunoEmailMarketing.js";export{default as Select}from"./select/components/Select.js";export{default as Selleasy}from"./third-party/components/Selleasy.js";export{default as SeoantTrustBadgesIcon}from"./third-party/components/SeoantTrustBadgesIcon.js";export{default as ShopPayButton}from"./cart/components/shop-pay-button/ShopPayButton.js";export{default as ShopPayInstallments}from"./shop-pay-installment/components/ShopPayInstallments.js";export{default as ShopifyForms}from"./third-party/components/ShopifyForms.js";export{default as ShopifySubscriptions}from"./third-party/components/ShopifySubscriptions.js";export{default as SimpleBundlesKits}from"./third-party/components/SimpleBundlesKits.js";export{default as SkioSubscriptionsYcS20}from"./third-party/components/SkioSubscriptionsYcS20.js";export{default as SmartSearchBarAndFilters}from"./third-party/components/SmartSearchBarAndFilters.js";export{default as SproutPlantTreesGrowSales}from"./third-party/components/SproutPlantTreesGrowSales.js";export{default as Stamped}from"./third-party/components/Stamped.js";export{default as StellarDeliveryDatePickup}from"./third-party/components/StellarDeliveryDatePickup.js";export{default as Sticky}from"./sticky/components/Sticky.js";export{default as StockCounter}from"./stock-counter/components/StockCounter.js";export{default as SubifySubscriptionsApp}from"./third-party/components/SubifySubscriptionsApp.js";export{default as SubmitButton}from"./form/components/submit-button/SubmitButton.js";export{default as TabItem}from"./tab/components/TabItem.js";export{default as Tabs}from"./tab/components/Tabs.js";export{default as TagembedSocialPostReview}from"./third-party/components/TagembedSocialPostReview.js";export{default as TagshopShoppableVideosUgc}from"./third-party/components/TagshopShoppableVideosUgc.js";export{default as TeeinblueProductPersonalizer}from"./third-party/components/TeeinblueProductPersonalizer.js";export{default as Text}from"./text/components/Text.js";export{default as TextField}from"./form/components/textfield/TextField.js";export{default as TextInput}from"./form/components/textinput/TextInput.js";export{default as Textarea}from"./textarea/components/Textarea.js";export{default as ThirdPartySlot}from"./third-party-slot/components/ThirdPartySlot.js";export{default as TrustBadgesBear}from"./third-party/components/TrustBadgesBear.js";export{default as TrustMe}from"./third-party/components/TrustMe.js";export{default as TrustedsiteTrustBadges}from"./third-party/components/TrustedsiteTrustBadges.js";export{default as Trustoo}from"./third-party/components/Trustoo.js";export{default as TrustreviewsProductReviews}from"./third-party/components/TrustreviewsProductReviews.js";export{default as TrustshopProductReviews}from"./third-party/components/TrustshopProductReviews.js";export{default as UltimateSalesBoost}from"./third-party/components/UltimateSalesBoost.js";export{default as UnlimitedBundlesDiscounts}from"./third-party/components/UnlimitedBundlesDiscounts.js";export{default as UppromoteAffiliateMarketing}from"./third-party/components/UppromoteAffiliateMarketing.js";export{default as Video}from"./video/components/Video.js";export{default as Vitals}from"./third-party/components/Vitals.js";export{default as WcWishlistBackInStock}from"./third-party/components/WcWishlistBackInStock.js";export{default as WhatmoreShoppableVideosreel}from"./third-party/components/WhatmoreShoppableVideosreel.js";export{default as WideBundle}from"./third-party/components/WideBundle.js";export{default as Wiser}from"./third-party/components/Wiser.js";export{default as WishlistKing}from"./third-party/components/WishlistKing.js";export{default as WishlistPlus}from"./third-party/components/WishlistPlus.js";export{default as YotpoLoyalty}from"./third-party/components/YotpoLoyalty.js";export{default as YotpoReviews}from"./third-party/components/YotpoReviews.js";export{CONTINUE_SELLING_WHEN_OUT_OF_STOCK,DEFAULT_FONT_SIZE,DEFAULT_HIGHLIGHT_TAG,DEFAULT_PROGRESS_BAR_HEIGHT,DEFAULT_QUANTITY_TEMPLATE,DEFAULT_RANGE_STEP,DEFAULT_REMAINING_PERCENT,DEFAULT_REMAINING_QUANTITY,DEFAULT_SCARCITY_THRESHOLD,MAX_PROGRESS_BAR_HEIGHT,MAX_REMAINING_PERCENT,MIN_PROGRESS_BAR_HEIGHT,MIN_REMAINING_PERCENT,MIN_REMAINING_QUANTITY,NO_PRODUCT_LEFT,OUT_OF_STOCK,QUANTITY_SOURCE,convertSizeToWidth,getInlineCss,getLiquidInitData,getLiquidTextContent,getTextDisplayData,transformHighlighTag,transformNumberTag}from"./stock-counter/common/helpers.js";export{default as MarqueeItem}from"./marquee/components/MarqueeItem.js";export{openConfirm}from"./modal/components/confirm.js";export{postPurchaseProduct1Col}from"./post-purchase/product/settings/presets-config/product-presets/product-1-col.js";export{postPurchaseProduct2Col}from"./post-purchase/product/settings/presets-config/product-presets/product-2-col.js";export{postPurchaseProductDefault}from"./post-purchase/product/settings/presets-config/product-presets/product-default.js";export{t as liquidComponents,o as translateComponents};
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- import{jsx as o}from"react/jsx-runtime";import{createClass as m,createStyle as r}from"@gem-sdk/system";import"react";import"@gem-sdk/core";import"../../../common/const.js";import t from"../../../grid/components/row/Row.js";import{getCalloutBoxWrapperClasses as s}from"../common/classes.js";import{getCalloutBoxContainerStyles as e}from"../common/styles.js";let i=i=>{let{styles:c}=i,l=m(s(c)),p=r(e(c));return o("div",{className:l,style:p,children:o(t,{...i})})};export{i as default};
2
+ import{jsx as o}from"react/jsx-runtime";import{createClass as m,createStyle as r}from"@gem-sdk/system";import"react";import"../../../common/const.js";import"@gem-sdk/core";import t from"../../../grid/components/row/Row.js";import{getCalloutBoxWrapperClasses as s}from"../common/classes.js";import{getCalloutBoxContainerStyles as e}from"../common/styles.js";let i=i=>{let{styles:c}=i,l=m(s(c)),p=r(e(c));return o("div",{className:l,style:p,children:o(t,{...i})})};export{i as default};
@@ -1 +1 @@
1
- import"react/jsx-runtime";import"@gem-sdk/system";import"react";import"@gem-sdk/core";import"../../common/const.js";import"next/head";import"next/image";import"next/link";import"react-youtube";import"./common/styles.js";import t from"./settings/CalloutBox.js";import o from"./settings/CalloutText.js";let e={PostPurchaseCalloutBox:t,PostPurchaseCalloutText:o};export{e as postPurchaseCalloutBoxSetting};
1
+ import"react/jsx-runtime";import"@gem-sdk/system";import"react";import"../../common/const.js";import"@gem-sdk/core";import"next/head";import"next/image";import"next/link";import"react-youtube";import"./common/styles.js";import t from"./settings/CalloutBox.js";import o from"./settings/CalloutText.js";let e={PostPurchaseCalloutBox:t,PostPurchaseCalloutText:o};export{e as postPurchaseCalloutBoxSetting};
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- import{jsx as o,Fragment as t}from"react/jsx-runtime";import{createElement as e}from"react";import r from"../../../../../common/components/Loading.js";import"@gem-sdk/core";import"../../../../../common/const.js";import{getProductOfferContainerClasses as m,getProductOfferWrapperClasses as s}from"../common/classes.js";import{createClass as c,createStyle as a}from"@gem-sdk/system";import{getWrapperStyles as d,getContainerStyles as i}from"../common/styles.js";import{useProductOfferData as l}from"../hooks/useProductOfferData.js";import{ProductOfferItem as n}from"./ProductOfferItem.js";let p=p=>{let{styles:f,builderAttrs:u,builderProps:h,setting:j}=p,{isLoading:P,productSortedById:y,totalProduct:g}=l(),k=c({...m(h?.uid)}),v=c({...s()}),x=a({...d(f)}),O=a({...i(j)});return o(t,{children:P?o(r,{}):y?.length?o("div",{...u,className:k,style:O,children:o("div",{className:v,style:x,children:y?.map((o,t)=>e(n,{...p,product:o,index:t,key:t,totalProduct:g}))})}):o("div",{children:"You haven't set up a product yet. Please go back to the sales funnel details to add a product."})})};export{p as default};
2
+ import{jsx as o,Fragment as e}from"react/jsx-runtime";import{createElement as r}from"react";import t from"../../../../../common/components/Loading.js";import"@gem-sdk/core";import"../../../../../common/const.js";import{getElementLabel as m}from"../../../../../common/helpers.js";import{getProductOfferContainerClasses as s,getProductOfferWrapperClasses as d}from"../common/classes.js";import{createClass as a,createStyle as c}from"@gem-sdk/system";import{getWrapperStyles as i,getContainerStyles as l}from"../common/styles.js";import{useProductOfferData as n}from"../hooks/useProductOfferData.js";import{ProductOfferItem as p}from"./ProductOfferItem.js";let u=u=>{let{styles:f,builderAttrs:h,builderProps:j,setting:P}=u,{isLoading:g,errorMsg:k,productSortedById:y,totalProduct:v}=n(),b=a({...s(j?.uid)}),x=a({...d()}),O=c({...i(f)}),D=c({...l(P)});return o(e,{children:g?o(t,{label:m(j?.builderData)}):k?o("div",{children:`Could not load the offer products: ${k?.message??"unknown error"}`}):y?.length?o("div",{...h,className:b,style:D,children:o("div",{className:x,style:O,children:y?.map((o,e)=>r(p,{...u,product:o,index:e,key:e,totalProduct:v}))})}):o("div",{children:"You haven't set up a product yet. Please go back to the sales funnel details to add a product."})})};export{u as default};
@@ -1 +1 @@
1
- import{usePageStore as o,useRenderMode as t,useProductOffersQuery as e,flattenConnection as r}from"@gem-sdk/core";import{useDynamicProduct as i}from"../../../hooks/useDynamicProduct.js";import{useMemo as n,useEffect as d}from"react";import{hasPublicStoreFrontData as a,createStoreFrontFetcher as p}from"../../../helpers/index.js";import{productOfferPlaceholder as l}from"../../../constants/ProductOfferPlaceholder.js";let s=()=>{let s=o(o=>o.productOffers),u=o(o=>o.publicStoreFrontData),{isDynamicProduct:c}=i(),f=o(o=>o.dynamicDiscountOffer),{isEditMode:m}=t(),P=n(()=>c?f?.appliedProductCount:s?.length,[f?.appliedProductCount,c,s?.length]),b=n(()=>s?.sort((o,t)=>o?.node?.position&&t?.node?.position?o.node.position-t.node.position:0).map(o=>o?.node?.objectBaseID).filter(Boolean),[s]),{isLoading:h,isValidating:C,data:D}=e(b||[],{revalidateOnMount:!0},{allStatus:!0,fetcher:a(u)?p(u):void 0}),v=n(()=>h||C,[h,C]),O=n(()=>r(D?.products),[D?.products]),g=n(()=>c&&f?.appliedProductCount?Array(f.appliedProductCount).fill(l):b?.map(o=>O?.find(t=>t?.baseID===o)).filter(Boolean),[c,f?.appliedProductCount,b,O]);return d(()=>{if(v||!m)return;let o=new CustomEvent("editor:toolbar:force-active-component",{bubbles:!0,detail:{}});window.dispatchEvent(o)},[v,m]),{isLoading:v,productSortedById:g,totalProduct:P}};export{s as useProductOfferData};
1
+ import{usePageStore as o,useRenderMode as t,useProductOffersQuery as e,flattenConnection as r}from"@gem-sdk/core";import{useDynamicProduct as i}from"../../../hooks/useDynamicProduct.js";import{useMemo as n,useEffect as d}from"react";import{hasPublicStoreFrontData as p,createStoreFrontFetcher as s}from"../../../helpers/index.js";import{productOfferPlaceholder as a}from"../../../constants/ProductOfferPlaceholder.js";import"react/jsx-runtime";import"../../../../../common/const.js";import{isQueryLoading as c}from"../../../../../common/helpers.js";let u=()=>{let u=o(o=>o.productOffers),l=o(o=>o.publicStoreFrontData),{isDynamicProduct:m}=i(),f=o(o=>o.dynamicDiscountOffer),{isEditMode:h}=t(),P=n(()=>m?f?.appliedProductCount:u?.length,[f?.appliedProductCount,m,u?.length]),b=n(()=>u?.sort((o,t)=>o?.node?.position&&t?.node?.position?o.node.position-t.node.position:0).map(o=>o?.node?.objectBaseID).filter(Boolean),[u]),{isLoading:j,isValidating:C,data:D,error:g}=e(b||[],{revalidateOnMount:!0},{allStatus:!0,fetcher:p(l)?s(l):void 0}),v=n(()=>C||c({hasQuery:!0,data:D,error:g,isLoading:j}),[D,g,j,C]),O=n(()=>r(D?.products),[D?.products]),y=n(()=>m&&f?.appliedProductCount?Array(f.appliedProductCount).fill(a):b?.map(o=>O?.find(t=>t?.baseID===o)).filter(Boolean),[m,f?.appliedProductCount,b,O]);return d(()=>{if(v||!h)return;let o=new CustomEvent("editor:toolbar:force-active-component",{bubbles:!0,detail:{}});window.dispatchEvent(o)},[v,h]),{isLoading:v,errorMsg:g,productSortedById:y,totalProduct:P}};export{u as useProductOfferData};
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- import{jsxs as e,jsx as s}from"react/jsx-runtime";import{useI18nStore as m,useProduct as o,useCurrentVariant as t,useMoneyFormat as r,useCurrentDevice as i,useProductBundleDiscount as l,useEditorMode as c,useRenderMode as a,usePageType as n,useSafeGetProductListSettings as d,filterToolbarPreview as p}from"@gem-sdk/core";import{getBadgeContent as h,getIsNoDiscountState as y}from"./utils/common.js";import"./constants.js";import f from"../../../common/components/NoDataState.js";import N from"../../../common/components/TooltipHover.js";import"../../../common/const.js";import{createClass as j,createStyle as u,createAttr as g,If as v}from"@gem-sdk/system";import{getEditTooltipAttrs as T,getSubWrapperAttrs as k,getContainerAttrs as x,getTextContentAttrs as C,getImageAttr as H}from"./common/attrs.js";import{getContainerClasses as S,getWrapperClasses as b,getSubWrapperClass as w,getTextContainerClasses as A,getTextWrapperClasses as B,getTextContentClasses as D,getImageContainerClasses as I,getImageClasses as M}from"./common/classes.js";import{getContainerStyle as P,getSubWrapperStyle as q,getContentStyleInternal as z,getTextBadgeWrapperStyles as E,getTextContentStyle as F,getImageContainerStyles as G}from"./common/styles.js";let J=J=>{let{t:K}=m(),{setting:L,styles:O,children:Q,builderAttrs:R,...U}=J,V=o(),W=t(),{moneyFormat:X}=r(),Y=i(),{useProductCompareAtPrice:Z}=l(),$=U?.["bundle-item"],_=c(),{isEditMode:ee}=a(),es="STATIC"===n(),{settings:em}=d(),eo=em?.sameHeight,et=h({detail:V,currentVariant:W,bundleItem:$,useProductCompareAtPrice:Z},L?.displayContent,X),er=y({props:J,product:V,currentVariant:W,moneyFormat:X,useProductCompareAtPrice:Z}),ei=j({...S({mode:_,isInstant:es,product:V,currentVariant:W,props:J,isSameHeightInProductList:eo})}),el=u({...P(J)}),ec=g({...T(J,ee)}),ea=j({...b(J)}),en=j({...w(J,Y)}),ed=u({...q({props:J,product:V,currentVariant:W,isEditMode:ee})}),ep=g({...k(J,V)}),eh=z(J),ey=j({...A()}),ef=g({...x(J)}),eN=j({...B()}),ej=u({...E({setting:L,styles:O})}),eu=j({...D(O)}),eg=u({...F({setting:L,styles:O})}),ev=g({...C()}),eT=j({...I()}),ek=u({...G({setting:L,styles:O})}),ex=j({...M()}),eC=g({...H({setting:L})});return V?e("div",{...ef,style:el,className:ei,children:[v(ee&&er,s(N,{...ec,children:s(f,{...R,elementType:"secondary",description:K("No discount"),rawMode:!0})}),s("div",{className:ea,children:e("div",{...ep,className:en,style:ed,children:[s("style",{children:eh}),v(L?.shape!=="image",s("div",{className:ey,children:s("div",{className:eN,style:ej,children:s("pre",{...ev,className:eu,style:eg,children:et})})}),s("div",{className:eT,style:ek,children:s("img",{...eC,className:ex,alt:""})}))]})})),p(Q,!0)]}):null};export{J as default};
2
+ import{jsxs as e,jsx as s}from"react/jsx-runtime";import{useI18nStore as m,useProduct as o,useCurrentVariant as t,useMoneyFormat as r,useCurrentDevice as i,useProductBundleDiscount as l,useEditorMode as c,useRenderMode as a,usePageType as n,useSafeGetProductListSettings as d,filterToolbarPreview as p}from"@gem-sdk/core";import{getBadgeContent as h,getIsNoDiscountState as y}from"./utils/common.js";import"./constants.js";import"../../../common/const.js";import"react";import f from"../../../common/components/NoDataState.js";import N from"../../../common/components/TooltipHover.js";import{createClass as j,createStyle as u,createAttr as g,If as v}from"@gem-sdk/system";import{getEditTooltipAttrs as T,getSubWrapperAttrs as k,getContainerAttrs as x,getTextContentAttrs as C,getImageAttr as H}from"./common/attrs.js";import{getContainerClasses as S,getWrapperClasses as b,getSubWrapperClass as w,getTextContainerClasses as A,getTextWrapperClasses as B,getTextContentClasses as D,getImageContainerClasses as I,getImageClasses as M}from"./common/classes.js";import{getContainerStyle as P,getSubWrapperStyle as q,getContentStyleInternal as z,getTextBadgeWrapperStyles as E,getTextContentStyle as F,getImageContainerStyles as G}from"./common/styles.js";let J=J=>{let{t:K}=m(),{setting:L,styles:O,children:Q,builderAttrs:R,...U}=J,V=o(),W=t(),{moneyFormat:X}=r(),Y=i(),{useProductCompareAtPrice:Z}=l(),$=U?.["bundle-item"],_=c(),{isEditMode:ee}=a(),es="STATIC"===n(),{settings:em}=d(),eo=em?.sameHeight,et=h({detail:V,currentVariant:W,bundleItem:$,useProductCompareAtPrice:Z},L?.displayContent,X),er=y({props:J,product:V,currentVariant:W,moneyFormat:X,useProductCompareAtPrice:Z}),ei=j({...S({mode:_,isInstant:es,product:V,currentVariant:W,props:J,isSameHeightInProductList:eo})}),el=u({...P(J)}),ec=g({...T(J,ee)}),ea=j({...b(J)}),en=j({...w(J,Y)}),ed=u({...q({props:J,product:V,currentVariant:W,isEditMode:ee})}),ep=g({...k(J,V)}),eh=z(J),ey=j({...A()}),ef=g({...x(J)}),eN=j({...B()}),ej=u({...E({setting:L,styles:O})}),eu=j({...D(O)}),eg=u({...F({setting:L,styles:O})}),ev=g({...C()}),eT=j({...I()}),ek=u({...G({setting:L,styles:O})}),ex=j({...M()}),eC=g({...H({setting:L})});return V?e("div",{...ef,style:el,className:ei,children:[v(ee&&er,s(N,{...ec,children:s(f,{...R,elementType:"secondary",description:K("No discount"),rawMode:!0})}),s("div",{className:ea,children:e("div",{...ep,className:en,style:ed,children:[s("style",{children:eh}),v(L?.shape!=="image",s("div",{className:ey,children:s("div",{className:eN,style:ej,children:s("pre",{...ev,className:eu,style:eg,children:et})})}),s("div",{className:eT,style:ek,children:s("img",{...eC,className:ex,alt:""})}))]})})),p(Q,!0)]}):null};export{J as default};
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- import{jsx as e,jsxs as t}from"react/jsx-runtime";import{useI18nStore as s,makeStyleResponsive as o}from"@gem-sdk/core";import i from"../../../common/components/NoDataState.js";import l from"../../../common/components/TooltipHover.js";import"../../../common/const.js";import r from"../../../text/components/Text.js";import{createStyle as m,createClass as n,If as d}from"@gem-sdk/system";import{getWrapperTextStyle as p,getContainerStyle as a}from"./common/styles.js";import{getWrapperTextClass as c,getContainerClass as u,getRootClass as x}from"./common/classes.js";import{useGpDiscountTag as f}from"./hooks/useGpDiscountTag.js";let g=({setting:g,styles:y,builderProps:h,...b})=>{let{customContent:j}=g??{},N=b["bundle-item"],{textAlign:v}=y??{},{t:T}=s(),{mode:k,product:w,salePrice:A,priceSave:D,currentProductId:F,unitCustomDisplay:S,shouldPlaceholderNoDiscount:$}=f({setting:g,styles:y,builderProps:h,...b});if($)return e(l,{enable:!0,text:T("Not be displayed when published"),position:"bottom",width:"205px",children:e(i,{builderAttrs:h?.builderData,elementType:"secondary",description:T("No discount"),rawMode:!0,customClass:"!gp-p-[5px]"})});let q=m(p(y)),C=m(a(y)),I=n(c(y)),E=n(u()),G=n(x({mode:k,salePrice:A,priceSave:D,bundleItem:N}));return e("div",{className:G,style:{...o("ta",v)},id:`shopify-text-element-${h?.uid}`,"data-id":h?.uid,"data-product-id":F,"gp-data-hidden":"false",children:d(!w," ",e("div",{className:E,style:C,children:e("div",{className:I,style:q,children:t("div",{className:"gp-flex gp-break-all gp-items-center",children:[e(r,{styles:y,setting:{...g,text:j?.prefix?.replaceAll(" ","&nbsp;"),options:{useState:!0,uniqueId:`${h?.uid}-prefix`},excludeFlex:!0}}),e(r,{styles:y,setting:{...g,text:S,options:{isCannotEditing:!0},excludeFlex:!0}}),e(r,{styles:y,setting:{...g,text:j?.suffix?.replaceAll(" ","&nbsp;"),excludeFlex:!0,options:{useState:!0,uniqueId:`${h?.uid}-suffix`}}})]})})}))})};export{g as default};
2
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{useI18nStore as s,makeStyleResponsive as o}from"@gem-sdk/core";import"../../../common/const.js";import"react";import i from"../../../common/components/NoDataState.js";import r from"../../../common/components/TooltipHover.js";import l from"../../../text/components/Text.js";import{createStyle as m,createClass as n,If as d}from"@gem-sdk/system";import{getWrapperTextStyle as p,getContainerStyle as a}from"./common/styles.js";import{getWrapperTextClass as c,getContainerClass as u,getRootClass as x}from"./common/classes.js";import{useGpDiscountTag as f}from"./hooks/useGpDiscountTag.js";let g=({setting:g,styles:y,builderProps:h,...b})=>{let{customContent:j}=g??{},N=b["bundle-item"],{textAlign:v}=y??{},{t:T}=s(),{mode:k,product:w,salePrice:A,priceSave:D,currentProductId:F,unitCustomDisplay:S,shouldPlaceholderNoDiscount:$}=f({setting:g,styles:y,builderProps:h,...b});if($)return e(r,{enable:!0,text:T("Not be displayed when published"),position:"bottom",width:"205px",children:e(i,{builderAttrs:h?.builderData,elementType:"secondary",description:T("No discount"),rawMode:!0,customClass:"!gp-p-[5px]"})});let q=m(p(y)),C=m(a(y)),I=n(c(y)),E=n(u()),G=n(x({mode:k,salePrice:A,priceSave:D,bundleItem:N}));return e("div",{className:G,style:{...o("ta",v)},id:`shopify-text-element-${h?.uid}`,"data-id":h?.uid,"data-product-id":F,"gp-data-hidden":"false",children:d(!w," ",e("div",{className:E,style:C,children:e("div",{className:I,style:q,children:t("div",{className:"gp-flex gp-break-all gp-items-center",children:[e(l,{styles:y,setting:{...g,text:j?.prefix?.replaceAll(" ","&nbsp;"),options:{useState:!0,uniqueId:`${h?.uid}-prefix`},excludeFlex:!0}}),e(l,{styles:y,setting:{...g,text:S,options:{isCannotEditing:!0},excludeFlex:!0}}),e(l,{styles:y,setting:{...g,text:j?.suffix?.replaceAll(" ","&nbsp;"),excludeFlex:!0,options:{useState:!0,uniqueId:`${h?.uid}-suffix`}}})]})})}))})};export{g as default};
@@ -1 +1 @@
1
- import{jsx as e,Fragment as t,jsxs as o}from"react/jsx-runtime";import r from"next/dynamic";import d from"../../../common/components/Loading.js";import{useState as l,useMemo as i,useEffect as a}from"react";import{useRenderMode as c,useCurrentDevice as s,usePageType as n,usePageStore as u,useProductQuery as m,useProductsQueryAll as g,useProductsQuery as p,PICKED_PRODUCT_STATUSES as h,useCollectionQuery as f,flattenConnection as P,ProductListProvider as y,filterToolbarPreview as v}from"@gem-sdk/core";import{PRODUCT_LIST_PRODUCT_SOURCE as b}from"../../../common/const.js";import I from"../SalePageProductListWarning.js";import k from"next/head";import T from"./ProductListGridLayout.js";import S from"./ProductListCarouselLayout.js";import{getStyle as O}from"./common/styles.js";import{If as C}from"@gem-sdk/system";import{getClass as j}from"./common/classes.js";import{getData as N}from"./common/helpers.js";import{getPropertyByDevice as w}from"../../../dialog/common/helpers.js";import{buildRelatedProductsQuery as L}from"../../helpers/buildRelatedProductsQuery.js";import{DEFAULT_COLLECTION_NUMBER_OF_PRODUCTS as G}from"../constants/misc.js";let x=r(()=>import("../ProductNotFound.js"),{loading:d}),E=r=>{let{children:E,styles:M,builderProps:B,setting:A,builderAttrs:H}=r,{isRelatedProduct:z,productSetting:D}=N(r),q=D.relatedTag&&D.relatedTag[0],{isEditMode:R,isPreviewSharePageMode:W}=c(),$=s(),_=n(),F=u(e=>e.dynamicProduct),V=u(e=>e.dynamicCollection),[Q,U]=l(1),[J,K]=l(!0),[X,Y]=l(),[Z,ee]=l(!1),et="GP_FUNNEL_PAGE"===_;"GP_COLLECTION"!=_||[b.Collection,b.DynamicCollection].includes(D?.productSrc)||(D.productSrc=b.DynamicCollection);let eo=D?.productSrc??b.Collection;eo===b.DynamicCollection&&(D.collectionId=V?.collectionId||"latest");let er=F?.productId&&F?.productId!==D.relatedProductId?F?.productId:D.relatedProductId,{data:ed}=m({productId:z&&er?er:void 0,options:{revalidateOnMount:R||W,refreshInterval:0,revalidateIfStale:!1}}),el=D.relatedTag&&"tags"===D.relatedTag[0]&&(!ed?.tags||ed?.tags.length===0),ei=D.relatedTag&&"collection"===D.relatedTag[0]&&(!ed?.collections?.edges||ed?.collections.edges.length===0),ea=D.relatedTag&&"vendor"===D.relatedTag[0]&&!ed?.vendor,ec=g({query:X,options:{revalidateOnMount:R||W}}),es=R||W,en=p({ids:eo===b.PickProduct?D?.productIds:void 0,options:{revalidateOnMount:es},defaultSelectedProductCount:D?.numOfSelectedProducts,selectedStatus:es&&D?.productIds?.length?h:void 0}),eu=i(()=>({id:D?.collectionId??"latest",numberOfProducts:A?.numberOfProducts??4,orderBy:A?.orderBy}),[D?.collectionId,Number(A?.numberOfProducts),A?.orderBy]),em=f({query:eo!==b.PickProduct?eu:void 0,options:{revalidateOnMount:es}});a(()=>{let{relatedTag:e,relatedType:t,hasRelatedExclude:o,relatedExclude:r}=D,d=z&&"recommended-product"!==t;if(!d||!ed||!e?.length)return;let l=o&&r?r.split(",").map(e=>e.trim()):void 0,i=Number.isNaN(Number(A?.numberOfProducts))?G:Number(A?.numberOfProducts),a=L({mainRelatedProduct:ed,relatedTag:e[0],numberOfProducts:i,excludeList:l});ee(!a),a&&Y(a)},[ed,D.relatedType,D.relatedTag,A?.numberOfProducts,D.relatedExclude,D.hasRelatedExclude,z]);let eg=eo===b.PickProduct?en.isValidating:em.isValidating,ep=eo===b.PickProduct?en.isLoading:em.isLoading,eh=eo===b.PickProduct?en.error:em.error,ef=em.data?.collections?.edges?.[0]?.node,eP=eo===b.PickProduct?P(en.data?.products):P(ef?.products),ey=ec?.data?.products?P(ec?.data?.products):void 0,ev=z&&ey?ey:eo===b.PickProduct&&D?.productIds?.length?D?.productIds?.map(e=>eP?.find(t=>t?.baseID===e)).filter(Boolean)??eP:eo!==b.PickProduct?eP:eP.filter((e,t)=>t<(D?.numOfSelectedProducts??4)),eb=i(()=>Z&&z&&R||!ev.length&&!ep&&J&&R,[J,ep,Z,z,R,ev.length]),eI=i(()=>!ev||Z&&z,[Z,z,ev]),ek=i(()=>{if(!A?.sameHeight)return[];let e=0,t=Math.ceil((ev?.length??0)/+(A?.slidesToShow?.[$]??1));return Array.from(Array(ev?.length??0)).map((o,r)=>(r>=+(A?.slidesToShow?.[$]??1)*(e+1)&&++e,{gridRow:`${1+Q*e}/${Q+1+Q*e}`,marginBottom:e+1<t?w(M?.horizontalGutter,$):void 0}))},[A?.sameHeight,A?.slidesToShow,Q,ev?.length,$,M?.horizontalGutter]),eT=i(()=>eg||ep||eh||!ev||Z&&z,[eh,ep,Z,z,eg,ev]);a(()=>{eT||setTimeout(()=>{let{builderData:e}=B??{},t=e?.childrens?.[0];if(!t)return;let o=document.querySelector(`[data-id=${t}] div`);o&&U(o.childElementCount||1)},R?0:500)},[B,eT,R]);let eS=i(()=>({collection:ef,products:ev,settings:{loop:A?.loop??{desktop:!1},scrollMode:A?.scrollMode??{desktop:"snap"},slidesToShow:A?.slidesToShow??{desktop:4,tablet:3,mobile:1},layout:M?.layout,dot:A?.dot,dotStyle:A?.dotStyle,arrow:A?.arrow,controlOverContent:A?.controlOverContent,sameHeight:A?.sameHeight},styles:{horizontalGutter:M?.horizontalGutter,verticalGutter:M?.verticalGutter,fullWidth:M?.fullWidth,spacing:M?.spacing,width:M?.width,height:M?.height}}),[ef,ev,A,M]);if(B?.isPreview&&et)return e(t,{});if(eb)return e(t,{children:C(J,e(x,{builderAttrs:H,collectionHandle:ef?.handle,productSrc:eo,onClose:()=>K(!1),children:E,relatedTagString:q,assignProductNoTags:el||ei||ea,noAssignedProduct:!er}))});let{productListWrapStyle:eO,productListContentStyle:eC,productListWrapAlignStyle:ej}=O(r),{productListWrapClass:eN}=j(r);return o("div",{...H,className:eN,style:eO,children:[!!M?.preloadBgImage&&o(k,{children:[!!M.backgroundImage?.desktop?.image?.src&&e("link",{rel:"preload",href:M.backgroundImage.desktop.image.src,as:"image"}),!!M.backgroundImage?.tablet?.image?.src&&e("link",{rel:"preload",href:M.backgroundImage?.tablet?.image?.src,as:"image"}),!!M.backgroundImage?.mobile?.image?.src&&e("link",{rel:"preload",href:M.backgroundImage?.mobile?.image?.src,as:"image"})]}),eg||ep?e(d,{}):eh?o("div",{children:["Error: ",eh?.message]}):eI?e("div",{children:"Products not found"}):e(y,{...eS,children:e("div",{className:"gp-flex gp-w-full",style:ej,children:o("div",{style:eC,children:[et&&e(I,{}),e(t,{children:C(M?.layout==="grid",e(T,{...r,productSortedById:ev,generateGridRowArray:ek}),e(S,{...r,productSortedById:ev}))})]})})}),v(E,!0)]})};export{E as default};
1
+ import{jsx as e,Fragment as t,jsxs as r}from"react/jsx-runtime";import o from"next/dynamic";import d from"../../../common/components/Loading.js";import{useState as a,useMemo as l,useEffect as i}from"react";import{useRenderMode as c,useCurrentDevice as s,usePageType as n,usePageStore as u,useProductQuery as m,useProductsQueryAll as g,useProductsQuery as p,PICKED_PRODUCT_STATUSES as h,useCollectionQuery as f,flattenConnection as P,ProductListProvider as y,filterToolbarPreview as b}from"@gem-sdk/core";import{PRODUCT_LIST_PRODUCT_SOURCE as I}from"../../../common/const.js";import{getElementLabel as v,isQueryLoading as T}from"../../../common/helpers.js";import k from"../SalePageProductListWarning.js";import S from"next/head";import L from"./ProductListGridLayout.js";import O from"./ProductListCarouselLayout.js";import{getStyle as j}from"./common/styles.js";import{If as C}from"@gem-sdk/system";import{getClass as N}from"./common/classes.js";import{getData as w,isRelatedProductsLoading as G}from"./common/helpers.js";import{getPropertyByDevice as M}from"../../../dialog/common/helpers.js";import{buildRelatedProductsQuery as x}from"../../helpers/buildRelatedProductsQuery.js";import{DEFAULT_COLLECTION_NUMBER_OF_PRODUCTS as E}from"../constants/misc.js";let B=o(()=>import("../ProductNotFound.js"),{loading:d}),A=o=>{let{children:A,styles:D,builderProps:H,setting:R,builderAttrs:z}=o,{isRelatedProduct:q,productSetting:Q}=w(o),W=Q.relatedTag&&Q.relatedTag[0],{isEditMode:$,isPreviewSharePageMode:_}=c(),F=s(),U=n(),V=u(e=>e.dynamicProduct),J=u(e=>e.dynamicCollection),[K,X]=a(1),[Y,Z]=a(!0),[ee,et]=a(),[er,eo]=a(!1),[ed,ea]=a(),el="GP_FUNNEL_PAGE"===U;"GP_COLLECTION"!=U||[I.Collection,I.DynamicCollection].includes(Q?.productSrc)||(Q.productSrc=I.DynamicCollection);let ei=Q?.productSrc??I.Collection;ei===I.DynamicCollection&&(Q.collectionId=J?.collectionId||"latest");let ec=V?.productId&&V?.productId!==Q.relatedProductId?V?.productId:Q.relatedProductId,{data:es,error:en,isLoading:eu}=m({productId:q&&ec?ec:void 0,options:{revalidateOnMount:$||_,refreshInterval:0,revalidateIfStale:!1}}),em=Q.relatedTag&&"tags"===Q.relatedTag[0]&&(!es?.tags||es?.tags.length===0),eg=Q.relatedTag&&"collection"===Q.relatedTag[0]&&(!es?.collections?.edges||es?.collections.edges.length===0),ep=Q.relatedTag&&"vendor"===Q.relatedTag[0]&&!es?.vendor,eh=g({query:ee,options:{revalidateOnMount:$||_}}),ef=$||_,eP=p({ids:ei===I.PickProduct?Q?.productIds:void 0,options:{revalidateOnMount:ef},defaultSelectedProductCount:Q?.numOfSelectedProducts,selectedStatus:ef&&Q?.productIds?.length?h:void 0}),ey=l(()=>({id:Q?.collectionId??"latest",numberOfProducts:R?.numberOfProducts??4,orderBy:R?.orderBy}),[Q?.collectionId,Number(R?.numberOfProducts),R?.orderBy]),eb=f({query:ei!==I.PickProduct?ey:void 0,options:{revalidateOnMount:ef}});i(()=>{let{relatedTag:e,relatedType:t,hasRelatedExclude:r,relatedExclude:o}=Q,d=q&&"recommended-product"!==t;if(!d||!es||!e?.length)return;let a=r&&o?o.split(",").map(e=>e.trim()):void 0,l=Number.isNaN(Number(R?.numberOfProducts))?E:Number(R?.numberOfProducts),i=x({mainRelatedProduct:es,relatedTag:e[0],numberOfProducts:l,excludeList:a});eo(!i),i&&(et(i),ea(es.id))},[es,Q.relatedType,Q.relatedTag,R?.numberOfProducts,Q.relatedExclude,Q.hasRelatedExclude,q]);let eI=ei===I.PickProduct,ev=eI?eP:eb,eT=ev.isValidating,ek=ev.error,eS=T({hasQuery:ef&&(!eI||!!Q?.productIds),data:ev.data,error:ev.error,isLoading:ev.isLoading}),eL=G({isRelatedProduct:q,relatedType:Q.relatedType,hasRelatedTag:!!Q.relatedTag?.length,relatedProductIdAssigned:ec,canRefetchMainProduct:ef,mainProduct:{data:es,error:en,isLoading:eu},relatedQuery:ee,relatedQuerySource:ed,mainProductId:es?.id,isNotFoundRelatedProduct:er,relatedProducts:{data:eh.data,error:eh.error,isLoading:eh.isLoading}}),eO=eS||eL,ej=eb.data?.collections?.edges?.[0]?.node,eC=ei===I.PickProduct?P(eP.data?.products):P(ej?.products),eN=eh?.data?.products?P(eh?.data?.products):void 0,ew=q&&eN?eN:ei===I.PickProduct&&Q?.productIds?.length?Q?.productIds?.map(e=>eC?.find(t=>t?.baseID===e)).filter(Boolean)??eC:ei!==I.PickProduct?eC:eC.filter((e,t)=>t<(Q?.numOfSelectedProducts??4)),eG=l(()=>er&&q&&$||!ew.length&&!eO&&Y&&$,[Y,eO,er,q,$,ew.length]),eM=l(()=>!ew||er&&q,[er,q,ew]),ex=l(()=>{if(!R?.sameHeight)return[];let e=0,t=Math.ceil((ew?.length??0)/+(R?.slidesToShow?.[F]??1));return Array.from(Array(ew?.length??0)).map((r,o)=>(o>=+(R?.slidesToShow?.[F]??1)*(e+1)&&++e,{gridRow:`${1+K*e}/${K+1+K*e}`,marginBottom:e+1<t?M(D?.horizontalGutter,F):void 0}))},[R?.sameHeight,R?.slidesToShow,K,ew?.length,F,D?.horizontalGutter]),eE=l(()=>eT||eO||ek||!ew||er&&q,[ek,eO,er,q,eT,ew]);i(()=>{eE||setTimeout(()=>{let{builderData:e}=H??{},t=e?.childrens?.[0];if(!t)return;let r=document.querySelector(`[data-id=${t}] div`);r&&X(r.childElementCount||1)},$?0:500)},[H,eE,$]);let eB=l(()=>({collection:ej,products:ew,settings:{loop:R?.loop??{desktop:!1},scrollMode:R?.scrollMode??{desktop:"snap"},slidesToShow:R?.slidesToShow??{desktop:4,tablet:3,mobile:1},layout:D?.layout,dot:R?.dot,dotStyle:R?.dotStyle,arrow:R?.arrow,controlOverContent:R?.controlOverContent,sameHeight:R?.sameHeight},styles:{horizontalGutter:D?.horizontalGutter,verticalGutter:D?.verticalGutter,fullWidth:D?.fullWidth,spacing:D?.spacing,width:D?.width,height:D?.height}}),[ej,ew,R,D]);if(H?.isPreview&&el)return e(t,{});if(eG)return e(t,{children:C(Y,e(B,{builderAttrs:z,collectionHandle:ej?.handle,productSrc:ei,onClose:()=>Z(!1),children:A,relatedTagString:W,assignProductNoTags:em||eg||ep,noAssignedProduct:!ec}))});let{productListWrapStyle:eA,productListContentStyle:eD,productListWrapAlignStyle:eH}=j(o),{productListWrapClass:eR}=N(o);return r("div",{...z,className:eR,style:eA,children:[!!D?.preloadBgImage&&r(S,{children:[!!D.backgroundImage?.desktop?.image?.src&&e("link",{rel:"preload",href:D.backgroundImage.desktop.image.src,as:"image"}),!!D.backgroundImage?.tablet?.image?.src&&e("link",{rel:"preload",href:D.backgroundImage?.tablet?.image?.src,as:"image"}),!!D.backgroundImage?.mobile?.image?.src&&e("link",{rel:"preload",href:D.backgroundImage?.mobile?.image?.src,as:"image"})]}),eT||eO?e(d,{label:v(H?.builderData)}):ek?r("div",{children:["Error: ",ek?.message]}):eM?e("div",{children:"Products not found"}):e(y,{...eB,children:e("div",{className:"gp-flex gp-w-full",style:eH,children:r("div",{style:eD,children:[el&&e(k,{}),e(t,{children:C(D?.layout==="grid",e(L,{...o,productSortedById:ew,generateGridRowArray:ex}),e(O,{...o,productSortedById:ew}))})]})})}),b(A,!0)]})};export{A as default};
@@ -1 +1 @@
1
- import{getSizeSetting as t}from"../../../helpers/product.js";import{convertUnitToNumber as e}from"../../product-images/common/productFeaturedImage.js";import{getUpdatedDotStyle as o}from"../../../../carousel/components/dot/common/helpers.js";let r=e=>{let{setting:r,styles:d}=e,c=r?.productSetting??{},l="RelatedProduct"===c.productSrc,i=o(r?.dot,r?.dotStyle),a={dotSize:{desktop:12},dotGapToCarousel:{desktop:16},arrowIconSize:{desktop:24},showWhenHover:!1,rtl:!1,...r};delete a.childItem;let p={...d,sizeSetting:{...t({adaptiveHeight:d?.adaptiveHeight,height:d?.height,fullWidth:{desktop:!0}})},spacing:d?.spacing};return delete p.backgroundColor,delete p.backgroundImage,{isRelatedProduct:l,productSetting:c,dotStyle:i,carouselConfigSetting:a,carouselConfigStyle:p}},d=t=>{let{setting:o,styles:r}=t,d=o?.productSetting,i=d?.relatedTag,a=d?.hasRelatedExclude,p=(i&&"collection"===i[0]?d?.relatedCollectionExclude:d?.relatedTagsExclude)??"",u=p?.split(",").map(t=>t.trim()).toString(),n=d?.productSrc??"Collection",s=d?.collectionId?.replace(c,"")??"latest",g=d?.productSrc==="PickProduct"&&d?.productIds?.length===0,m=r?.layout==="grid",h=e(o?.numberOfProducts,4),P="PickProduct"===n&&d?.productIds?.length?d?.productIds.map(t=>t.replace(l,"")):[],I="PickProduct"===n&&d?.productHandles?.length?d?.productHandles:[],S=o?.orderBy&&o?.orderBy!=="none",C=(d?.productSrc==="Collection"||d?.productSrc==="DynamicCollection")&&S?o?.orderBy?.split("_"):"none",k=S&&C?.[0]==="TITLE"?"| sort: 'title'":"| sort: 'updated_at'",f=C?.[C.length-1]==="DESC";return{hasRelatedExclude:a,relatedExcludeTrim:u,collectionID:s,isLatestProducts:g,isGrid:m,numberOfProducts:h,productListId:P,productListHandles:I,sortedBy:k,isReverse:f,productSrc:n,productSetting:d,isSorted:S,relatedTag:i,productNumber:"PickProduct"===n?g?4:d?.numOfSelectedProducts??4:h,collectionHandle:d?.collectionHandle}},c="gid://shopify/Collection/",l="gid://shopify/Product/";export{c as PREFIX_COLLECTION_ID,l as PREFIX_PRODUCT_ID,r as getData,d as getDataLiquid};
1
+ import"react/jsx-runtime";import"../../../../common/const.js";import{isQueryLoading as t}from"../../../../common/helpers.js";import"@gem-sdk/core";import"react";import{getSizeSetting as e}from"../../../helpers/product.js";import{convertUnitToNumber as o}from"../../product-images/common/productFeaturedImage.js";import{getUpdatedDotStyle as r}from"../../../../carousel/components/dot/common/helpers.js";let d=t=>{let{setting:o,styles:d}=t,c=o?.productSetting??{},l="RelatedProduct"===c.productSrc,i=r(o?.dot,o?.dotStyle),a={dotSize:{desktop:12},dotGapToCarousel:{desktop:16},arrowIconSize:{desktop:24},showWhenHover:!1,rtl:!1,...o};delete a.childItem;let n={...d,sizeSetting:{...e({adaptiveHeight:d?.adaptiveHeight,height:d?.height,fullWidth:{desktop:!0}})},spacing:d?.spacing};return delete n.backgroundColor,delete n.backgroundImage,{isRelatedProduct:l,productSetting:c,dotStyle:i,carouselConfigSetting:a,carouselConfigStyle:n}},c=t=>{let{setting:e,styles:r}=t,d=e?.productSetting,c=d?.relatedTag,a=d?.hasRelatedExclude,n=(c&&"collection"===c[0]?d?.relatedCollectionExclude:d?.relatedTagsExclude)??"",p=n?.split(",").map(t=>t.trim()).toString(),u=d?.productSrc??"Collection",s=d?.collectionId?.replace(l,"")??"latest",m=d?.productSrc==="PickProduct"&&d?.productIds?.length===0,g=r?.layout==="grid",h=o(e?.numberOfProducts,4),P="PickProduct"===u&&d?.productIds?.length?d?.productIds.map(t=>t.replace(i,"")):[],I="PickProduct"===u&&d?.productHandles?.length?d?.productHandles:[],S=e?.orderBy&&e?.orderBy!=="none",k=(d?.productSrc==="Collection"||d?.productSrc==="DynamicCollection")&&S?e?.orderBy?.split("_"):"none",C=S&&k?.[0]==="TITLE"?"| sort: 'title'":"| sort: 'updated_at'",f=k?.[k.length-1]==="DESC";return{hasRelatedExclude:a,relatedExcludeTrim:p,collectionID:s,isLatestProducts:m,isGrid:g,numberOfProducts:h,productListId:P,productListHandles:I,sortedBy:C,isReverse:f,productSrc:u,productSetting:d,isSorted:S,relatedTag:c,productNumber:"PickProduct"===u?m?4:d?.numOfSelectedProducts??4:h,collectionHandle:d?.collectionHandle}},l="gid://shopify/Collection/",i="gid://shopify/Product/",a=({isRelatedProduct:e,relatedType:o,hasRelatedTag:r,relatedProductIdAssigned:d,canRefetchMainProduct:c,mainProduct:l,mainProductId:i,relatedQuery:a,relatedQuerySource:n,isNotFoundRelatedProduct:p,relatedProducts:u})=>{if(!e)return!1;let s="recommended-product"!==o&&r&&!!d,m=s&&!!l.data&&n!==i&&!p;return t({hasQuery:s&&c,...l})||m||t({hasQuery:!!a,...u})};export{l as PREFIX_COLLECTION_ID,i as PREFIX_PRODUCT_ID,d as getData,c as getDataLiquid,a as isRelatedProductsLoading};
@@ -1 +1 @@
1
- import{jsx as o,Fragment as t,jsxs as e}from"react/jsx-runtime";import r from"next/dynamic";import i from"../../../common/components/Loading.js";import{useState as l,useRef as d,useMemo as s,useEffect as c}from"react";import{useRenderMode as n,useCurrentDevice as a,usePageType as m,usePageStore as u,flattenConnection as g,ProductListProvider as p,filterToolbarPreview as h,PICKED_PRODUCT_STATUSES as f}from"@gem-sdk/core";import{PRODUCT_LIST_PRODUCT_SOURCE as P}from"../../../common/const.js";import y from"../SalePageProductListWarning.js";import k from"next/head";import I from"./ProductListGridLayout.js";import b from"./ProductListCarouselLayout.js";import{getStyle as S}from"./common/styles.js";import{If as j}from"@gem-sdk/system";import{getClass as C}from"./common/classes.js";import{getData as v}from"./common/helpers.js";import{getPropertyByDevice as L}from"../../../dialog/common/helpers.js";import{useCollectionQuery as w}from"./hooks/useCollectionQuery.js";import N from"./hooks/useProductRelatedQuery.js";import G from"./hooks/useRelatedProductIDAssigned.js";import{useProductsQuery as T}from"./hooks/useProductsQuery.js";import{DEFAULT_COLLECTION_NUMBER_OF_PRODUCTS as A}from"../constants/misc.js";let O=r(()=>import("../ProductNotFound.js"),{loading:i}),D=r=>{let{children:D,styles:x,builderProps:B,setting:E,builderAttrs:H}=r,{isRelatedProduct:z,productSetting:M}=v(r),{isEditMode:Q,isPreviewSharePageMode:R}=n(),W=a(),$=m(),_=u(o=>o.dynamicCollection),[F,V]=l(1),[q,U]=l(!0),J=d(),K="GP_FUNNEL_PAGE"===$;"GP_COLLECTION"!=$||[P.Collection,P.DynamicCollection].includes(M?.productSrc)||(M.productSrc=P.DynamicCollection);let X=M?.productSrc??P.Collection;X===P.DynamicCollection&&(M.collectionId=_?.collectionId||"latest");let Y=Number.isNaN(Number(E?.numberOfProducts))?A:Number(E?.numberOfProducts),{relatedProductIdAssigned:Z}=G({productSetting:M}),{isNotFoundRelatedProduct:oo,relatedProducts:ot,isNoRelatedProductData:oe,relatedTagString:or,isLoading:oi}=N({productSetting:M,isRelatedProduct:z,relatedProductIdAssigned:Z,numberOfProducts:Y}),ol=Q||R,od=T({productIds:M?.productIds,defaultSelectedProductCount:M?.numOfSelectedProducts,productSrc:X,selectedStatus:ol&&M?.productIds?.length?f:void 0}),os=w({productSrc:X,collectionID:M?.collectionId??"latest",numberOfProducts:Y,orderBy:E?.orderBy}),oc=oi||(X===P.PickProduct?od.isLoading:os.isLoading),on=X===P.PickProduct?od.error:os.error,oa=X===P.PickProduct?od.isValidating:os.isValidating,om=os.data?.collections?.edges?.[0]?.node,ou=X===P.PickProduct?g(od.data?.products):g(om?.products),og=u(o=>o.assignedProductIds),op=u(o=>o.isApplyAllProducts),oh=s(()=>(og??[]).length>0&&!op||op,[og,op]),of=ot?.data?.products&&oh?g(ot?.data?.products):[],oP=z?of:X===P.PickProduct&&M?.productIds?.length?M?.productIds?.map(o=>ou?.find(t=>t?.baseID===o)).filter(Boolean)??ou:X!==P.PickProduct?ou:ou.filter((o,t)=>t<(M?.numOfSelectedProducts??4)),oy=s(()=>oo&&z&&Q||!oP.length&&!oc&&q&&Q,[q,oc,oo,z,Q,oP.length]),ok=s(()=>!oP||oo&&z,[oo,z,oP]),oI=s(()=>{if(!E?.sameHeight)return[];let o=0,t=Math.ceil((oP?.length??0)/+(E?.slidesToShow?.[W]??1));return Array.from(Array(oP?.length??0)).map((e,r)=>(r>=+(E?.slidesToShow?.[W]??1)*(o+1)&&++o,{gridRow:`${1+F*o}/${F+1+F*o}`,marginBottom:o+1<t?L(x?.horizontalGutter,W):void 0}))},[E?.sameHeight,E?.slidesToShow,F,oP?.length,W,x?.horizontalGutter]),ob=s(()=>oa||oc||on||!oP||oo&&z,[on,oc,oo,z,oa,oP]);c(()=>{if(!ob)return J.current=setTimeout(()=>{let{builderData:o}=B??{},t=o?.childrens?.[0];if(!t)return;let e=document.querySelector(`[data-id=${t}] div`);e&&V(e.childElementCount||1)},Q?0:500),()=>{clearTimeout(J.current)}},[B,ob,Q,oP]);let oS=s(()=>({collection:om,products:oP,settings:{loop:E?.loop??{desktop:!1},scrollMode:E?.scrollMode??{desktop:"snap"},slidesToShow:E?.slidesToShow??{desktop:4,tablet:3,mobile:1},layout:x?.layout,dot:E?.dot,dotStyle:E?.dotStyle,arrow:E?.arrow,controlOverContent:E?.controlOverContent,sameHeight:E?.sameHeight},styles:{horizontalGutter:x?.horizontalGutter,verticalGutter:x?.verticalGutter,fullWidth:x?.fullWidth,spacing:x?.spacing,width:x?.width,height:x?.height}}),[om,oP,E,x]);if(B?.isPreview&&K)return o(t,{});if(oy)return o(t,{children:j(q,o(O,{builderAttrs:H,collectionHandle:om?.handle,productSrc:X,onClose:()=>U(!1),children:D,relatedTagString:or,assignProductNoTags:oe,noAssignedProduct:!Z}))});let{productListWrapStyle:oj,productListContentStyle:oC,productListWrapAlignStyle:ov}=S(r),{productListWrapClass:oL}=C(r);return e("div",{...H,className:oL,style:oj,children:[!!x?.preloadBgImage&&e(k,{children:[!!x.backgroundImage?.desktop?.image?.src&&o("link",{rel:"preload",href:x.backgroundImage.desktop.image.src,as:"image"}),!!x.backgroundImage?.tablet?.image?.src&&o("link",{rel:"preload",href:x.backgroundImage?.tablet?.image?.src,as:"image"}),!!x.backgroundImage?.mobile?.image?.src&&o("link",{rel:"preload",href:x.backgroundImage?.mobile?.image?.src,as:"image"})]}),oc||oa?o(i,{}):on?e("div",{children:["Error: ",on?.message]}):ok?o("div",{children:"Products not found"}):o(p,{...oS,children:o("div",{className:"gp-flex gp-w-full",style:ov,children:e("div",{style:oC,children:[K&&o(y,{}),o(t,{children:j(x?.layout==="grid",o(I,{...r,productSortedById:oP,generateGridRowArray:oI}),o(b,{...r,productSortedById:oP}))})]})})}),h(D,!0)]})};export{D as default};
1
+ import{jsx as o,Fragment as e,jsxs as t}from"react/jsx-runtime";import r from"next/dynamic";import i from"../../../common/components/Loading.js";import{useState as l,useRef as d,useMemo as s,useEffect as c}from"react";import{useRenderMode as a,useCurrentDevice as n,usePageType as m,usePageStore as u,flattenConnection as g,ProductListProvider as p,filterToolbarPreview as h,PICKED_PRODUCT_STATUSES as f}from"@gem-sdk/core";import{PRODUCT_LIST_PRODUCT_SOURCE as P}from"../../../common/const.js";import{getElementLabel as y,isQueryLoading as k}from"../../../common/helpers.js";import b from"../SalePageProductListWarning.js";import I from"next/head";import S from"./ProductListGridLayout.js";import j from"./ProductListCarouselLayout.js";import{getStyle as C}from"./common/styles.js";import{If as v}from"@gem-sdk/system";import{getClass as L}from"./common/classes.js";import{getData as w}from"./common/helpers.js";import{getPropertyByDevice as N}from"../../../dialog/common/helpers.js";import{useCollectionQuery as G}from"./hooks/useCollectionQuery.js";import T from"./hooks/useProductRelatedQuery.js";import A from"./hooks/useRelatedProductIDAssigned.js";import{useProductsQuery as D}from"./hooks/useProductsQuery.js";import{DEFAULT_COLLECTION_NUMBER_OF_PRODUCTS as O}from"../constants/misc.js";let x=r(()=>import("../ProductNotFound.js"),{loading:i}),B=r=>{let{children:B,styles:E,builderProps:H,setting:z,builderAttrs:Q}=r,{isRelatedProduct:M,productSetting:R}=w(r),{isEditMode:W,isPreviewSharePageMode:$}=a(),_=n(),F=m(),q=u(o=>o.dynamicCollection),[U,V]=l(1),[J,K]=l(!0),X=d(),Y="GP_FUNNEL_PAGE"===F;"GP_COLLECTION"!=F||[P.Collection,P.DynamicCollection].includes(R?.productSrc)||(R.productSrc=P.DynamicCollection);let Z=R?.productSrc??P.Collection;Z===P.DynamicCollection&&(R.collectionId=q?.collectionId||"latest");let oo=Number.isNaN(Number(z?.numberOfProducts))?O:Number(z?.numberOfProducts),{relatedProductIdAssigned:oe}=A({productSetting:R}),{isNotFoundRelatedProduct:ot,relatedProducts:or,isNoRelatedProductData:oi,relatedTagString:ol,isLoading:od}=T({productSetting:R,isRelatedProduct:M,relatedProductIdAssigned:oe,numberOfProducts:oo}),os=W||$,oc=D({productIds:R?.productIds,defaultSelectedProductCount:R?.numOfSelectedProducts,productSrc:Z,selectedStatus:os&&R?.productIds?.length?f:void 0}),oa=G({productSrc:Z,collectionID:R?.collectionId??"latest",numberOfProducts:oo,orderBy:z?.orderBy}),on=Z===P.PickProduct,om=on?oc:oa,ou=on?!!R?.productIds:Z===P.Collection||Z===P.DynamicCollection,og=od||k({hasQuery:ou,data:om.data,error:om.error,isLoading:om.isLoading}),op=om.error,oh=om.isValidating,of=oa.data?.collections?.edges?.[0]?.node,oP=Z===P.PickProduct?g(oc.data?.products):g(of?.products),oy=u(o=>o.assignedProductIds),ok=u(o=>o.isApplyAllProducts),ob=s(()=>(oy??[]).length>0&&!ok||ok,[oy,ok]),oI=or?.data?.products&&ob?g(or?.data?.products):[],oS=M?oI:Z===P.PickProduct&&R?.productIds?.length?R?.productIds?.map(o=>oP?.find(e=>e?.baseID===o)).filter(Boolean)??oP:Z!==P.PickProduct?oP:oP.filter((o,e)=>e<(R?.numOfSelectedProducts??4)),oj=s(()=>ot&&M&&W||!oS.length&&!og&&J&&W,[J,og,ot,M,W,oS.length]),oC=s(()=>!oS||ot&&M,[ot,M,oS]),ov=s(()=>{if(!z?.sameHeight)return[];let o=0,e=Math.ceil((oS?.length??0)/+(z?.slidesToShow?.[_]??1));return Array.from(Array(oS?.length??0)).map((t,r)=>(r>=+(z?.slidesToShow?.[_]??1)*(o+1)&&++o,{gridRow:`${1+U*o}/${U+1+U*o}`,marginBottom:o+1<e?N(E?.horizontalGutter,_):void 0}))},[z?.sameHeight,z?.slidesToShow,U,oS?.length,_,E?.horizontalGutter]),oL=s(()=>oh||og||op||!oS||ot&&M,[op,og,ot,M,oh,oS]);c(()=>{if(!oL)return X.current=setTimeout(()=>{let{builderData:o}=H??{},e=o?.childrens?.[0];if(!e)return;let t=document.querySelector(`[data-id=${e}] div`);t&&V(t.childElementCount||1)},W?0:500),()=>{clearTimeout(X.current)}},[H,oL,W,oS]);let ow=s(()=>({collection:of,products:oS,settings:{loop:z?.loop??{desktop:!1},scrollMode:z?.scrollMode??{desktop:"snap"},slidesToShow:z?.slidesToShow??{desktop:4,tablet:3,mobile:1},layout:E?.layout,dot:z?.dot,dotStyle:z?.dotStyle,arrow:z?.arrow,controlOverContent:z?.controlOverContent,sameHeight:z?.sameHeight},styles:{horizontalGutter:E?.horizontalGutter,verticalGutter:E?.verticalGutter,fullWidth:E?.fullWidth,spacing:E?.spacing,width:E?.width,height:E?.height}}),[of,oS,z,E]);if(H?.isPreview&&Y)return o(e,{});if(oj)return o(e,{children:v(J,o(x,{builderAttrs:Q,collectionHandle:of?.handle,productSrc:Z,onClose:()=>K(!1),children:B,relatedTagString:ol,assignProductNoTags:oi,noAssignedProduct:!oe}))});let{productListWrapStyle:oN,productListContentStyle:oG,productListWrapAlignStyle:oT}=C(r),{productListWrapClass:oA}=L(r);return t("div",{...Q,className:oA,style:oN,children:[!!E?.preloadBgImage&&t(I,{children:[!!E.backgroundImage?.desktop?.image?.src&&o("link",{rel:"preload",href:E.backgroundImage.desktop.image.src,as:"image"}),!!E.backgroundImage?.tablet?.image?.src&&o("link",{rel:"preload",href:E.backgroundImage?.tablet?.image?.src,as:"image"}),!!E.backgroundImage?.mobile?.image?.src&&o("link",{rel:"preload",href:E.backgroundImage?.mobile?.image?.src,as:"image"})]}),og||oh?o(i,{label:y(H?.builderData)}):op?t("div",{children:["Error: ",op?.message]}):oC?o("div",{children:"Products not found"}):o(p,{...ow,children:o("div",{className:"gp-flex gp-w-full",style:oT,children:t("div",{style:oG,children:[Y&&o(b,{}),o(e,{children:v(E?.layout==="grid",o(S,{...r,productSortedById:oS,generateGridRowArray:ov}),o(j,{...r,productSortedById:oS}))})]})})}),h(B,!0)]})};export{B as default};