"use strict";const getLiquidTagAttrs=(t,e,s)=>{let{displayByDefault:r,scarcityThreshold:a=0,template:i,outOfStockMessage:o,continueSelling:g,unlimitedQuantityMessage:d,hiddenCounterWhenOutOfStock:p}=e??{},{displayProgressBar:l,textColor:A,oosTextColor:u,typo:c}=s??{},n=A||"brand",q=c?.attrs?.color;return{"data-id":t?.uid??"","data-visible":"{{ should_display }}","data-policy":"{{ variant_policy_list | escape }}","gp-setting":JSON.stringify({displayByDefault:r,displayProgressBar:l,scarcityThreshold:a,template:i,outOfStockMessage:o,continueSelling:g,unlimitedQuantityMessage:d,color:n,hiddenCounterWhenOutOfStock:p,oosTextColor:u,typoColor:q}).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"});exports.getIconAttrs=getIconAttrs,exports.getLiquidProgressBarAttrs=getLiquidProgressBarAttrs,exports.getLiquidTagAttrs=getLiquidTagAttrs,exports.getLiquidTextAttrs=getLiquidTextAttrs,exports.getWrapperAttrs=getWrapperAttrs;
