import{createClass as t}from"@gem-sdk/system";import{getSoldOutButtonData as i}from"./common/data.js";import e from"./ProductButtonPrice.liquid.js";import{getSoldOutButtonClasses as o}from"./common/classes.js";import s from"../../../button/components/Button.liquid.js";let a=a=>{let{pageContext:d,...r}=a,{styles:u,setting:l,advanced:m,builderProps:n,builderAttrs:p}=r,{buttonStyle:c,buttonStyles:f,buttonSettings:b}=i(r),v=t(o({isLiquid:!0})),g=e({setting:l,styles:u,pageContext:d});return s({advanced:m,style:c,styles:f,nodePrice:g,setting:b,className:v,wrapClassName:"{% if variant.available %} !gp-hidden {% endif %}",builderAttrs:p,builderProps:{...n,uidTranslate:n?.uid,uid:`${n?.uid}-sold-out`},pageContext:d,isUseTranslatedValue:!1,dataId:`${n?.uid}-sold-out`,customAttrs:{"gp-data-hidden":"{% if variant.available %}true{% endif %}"}})};export{a as SoldOutButton};
