'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),core=require("@gem-sdk/core"),Text=require("../../text/components/Text.js"),system=require("@gem-sdk/system"),styles=require("../common/styles.js"),classes=require("../common/classes.js");const Button=({styles:e,builderAttrs:s,style:t,setting:a,advanced:l,builderProps:r,disabled:c,...y})=>{let m=core.useEditorMode(),{text:n}=a??{},i=system.createStyle({...styles.getButtonStyles(c,a)}),u=styles.getTextStyles(c,a,e),o=system.createStyle({...styles.getContainerStyle(e)}),x=system.createStyle({...styles.getWrapperStyle(e)}),j=system.createClass(classes.getButtonClass(a)),C=system.createClass(classes.getTextClass(m)),d=system.createClass(classes.getSpaceClass()),g=system.createClass(classes.getContainerClass()),p=system.createClass(classes.getTextClassWrapper()),S=system.createClass(classes.getWrapperClass()),q=system.createAttr({...s});return jsxRuntime.jsxs("div",{...y,...q,className:S,style:x,children:[jsxRuntime.jsx("div",{className:d}),jsxRuntime.jsx("div",{className:g,style:o,children:jsxRuntime.jsx("button",{className:j,style:i,children:jsxRuntime.jsx(Text.default,{setting:{text:n},textClassWrapper:p,textClass:C,styles:u})})})]})};exports.default=Button;
