let getLiquidTagAttrs=(t,e,a)=>{let{displayByDefault:s,scarcityThreshold:r=0,template:i,outOfStockMessage:o,continueSelling:d,unlimitedQuantityMessage:l,hiddenCounterWhenOutOfStock:g}=e??{},{displayProgressBar:p,textColor:c,oosTextColor:u,typo:A}=a??{},n=c||"brand",y=A?.attrs?.color;return{"data-id":t?.uid??"","data-visible":"{{ should_display }}","data-policy":"{{ variant_policy_list | escape }}","gp-setting":JSON.stringify({displayByDefault:s,displayProgressBar:p,scarcityThreshold:r,template:i,outOfStockMessage:o,continueSelling:d,unlimitedQuantityMessage:l,color:n,hiddenCounterWhenOutOfStock:g,oosTextColor:u,typoColor:y}).replaceAll('"',"&#34;")}},getLiquidProgressBarAttrs=()=>({"data-slot-type":"progress-bar","data-visible":"{{ show_progress_bar }}"}),getLiquidTextAttrs=()=>({"data-slot-type":"message"}),getWrapperAttrs=t=>({"data-id":t?.uid??""}),getIconAttrs=(t,e)=>({"data-slot-type":t?"oos-icon":"has-stock-icon","data-visible":e?"true":"false"});export{getIconAttrs,getLiquidProgressBarAttrs,getLiquidTagAttrs,getLiquidTextAttrs,getWrapperAttrs};
