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