import{r as s,c as i,h as e,F as c,g as t}from"./p-b891c2f1.js";const r=class{constructor(e){s(this,e),this.scRemoveLineItem=i(this,"scRemoveLineItem",7),this.scUpdateLineItem=i(this,"scUpdateLineItem",7),this.columns=1,this.required=!0}handleChange(){this.el.querySelectorAll("sc-price-choice").forEach((s=>{s.querySelector("sc-choice").checked?this.scUpdateLineItem.emit({price_id:s.priceId,quantity:s.quantity}):this.scRemoveLineItem.emit({price_id:s.priceId,quantity:s.quantity})}))}render(){return e(c,null,e("sc-choices",{label:this.label,required:this.required,class:"loaded price-selector",style:{"--columns":this.columns.toString()}},e("slot",null)))}get el(){return t(this)}};r.style="sc-price-choices{display:block;position:relative}sc-block-ui{z-index:9}";export{r as sc_price_choices}