'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("@gem-sdk/system"),s=require("../../button/components/Button.js"),r=require("../hooks/useCoupon.js"),l=require("../common/helpers.js"),u=require("../common/styles.js"),i=require("../common/classes.js");exports.default=({setting:n,builderProps:o,builderAttrs:d,style:a,styles:c,advanced:y,children:m})=>{let{backgroundColorV2:j,textColor:g}=c??{},{mode:p,changeStateILP:q,defaultLabelState:v,dataActive:b}=r.default(n),h=t.createClass(i.getActiveClasses(j,g)),x=u.getInnerBorderCornerCss({uid:o?.uid,styles:c}),C=u.getInnerActiveStyles(c);return e.jsxs("div",{className:h,"data-active":b,"data-id":o?.uid,children:[e.jsx("style",{children:`${x}${C}`}),e.jsx(s.default,{builderProps:o,builderAttrs:d,advanced:y,onClick:()=>{"edit"!==p&&q()},setting:{...l.getButtonSetting({setting:n,label:v,htmlType:"button",styles:c})},style:{...u.getButtonStyle(a,c)},styles:{...u.getButtonStyles(c)},children:m})]})};
