"use strict";var e=require("react/jsx-runtime"),l=require("@gem-sdk/system"),s=require("./SubscriptionRadio.js"),a=require("../common/classes.js"),i=require("../common/styles.js");exports.SellingPlanRadio=({setting:n,styles:t,productId:r,sellingPlanOptions:c,builderProps:o,selectedValue:d,onChange:g})=>{let{sellingLabel:u}=n??{},{uid:m}=o??{},p=l.createClass(a.getSellingPlanRadioContainerClasses()),C=l.createClass(a.getSellingPlanRadioLabelClasses()),j=l.createClass(a.getSellingPlanRadioOptionsClasses()),v=l.createClass(a.getSellingPlanRadioOptionTextClasses()),S=i.getSellingPlanRadioOptionsStyles({sellingPlanItemGap:t?.sellingPlanItemGap,sellingType:n?.sellingType});return e.jsxs("div",{className:p,style:S,children:[u&&e.jsx("label",{className:C,children:u}),e.jsx("div",{className:j,style:S,children:c.map(l=>e.jsx(s.SubscriptionRadio,{id:`${r}-${l.value}-${m??""}`,name:`${r}-selling-plan-options-${m??""}`,value:l.value,checked:d===l.value,onChange:e=>g(e.target.value),children:e.jsx("span",{className:v,children:l.label})},`${r}-${l.value}-${m??""}`))})]})};
