import{composeAdvanceStyle as t}from"@gem-sdk/core";let e="latest",a="gid://shopify/Product/",r="gid://shopify/ProductVariant/",o="gid://shopify/ProductOptionValue/",i="static",T="dynamic",d=T=>{let{setting:d,advanced:_,styles:p}=T,{productSetting:I,quantity:c,readOnly:D,isAuto:P,isSyncProduct:s,...l}=d??{},{...u}=p??{},{pos:O,top:R}=_??{},C=t({pos:O,top:R}),U=I?.productHandle??"",n=I?.initialVariantBaseId,A=n?.replace(r,"")??"",S=I?.productId?.replace(a,"").toLowerCase()??e,g=I?.productStatus??i,m=I?.selectedOptions?.map(t=>t?.valueBaseID?.replace(o,""));return{formatVariantId:A,formatProductId:S,productStatus:g,preSelectedOptionIds:m,productHandle:U,advancedStyle:C,rowStyles:u,rowSetting:l}};export{T as DYNAMIC_PRODUCT_STATUS,a as PREFIX_PRODUCT_ID,o as PREFIX_PRODUCT_OPTION_VALUE_ID,r as PREFIX_PRODUCT_VARIANT_ID,e as PRODUCT_ID_LATEST,i as STATIC_PRODUCT_STATUS,d as getData};
