'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("@gem-sdk/core"),r=require("../../../../../common/helper.js"),o=require("react"),l=require("../../../../../text/components/Text.js");exports.default=({value:n,isVariantOutStock:p,checked:s,preset:a})=>{let i=o.useMemo(()=>p?r.buttonColor.secondary:s?r.buttonColor.primary:r.buttonColor.defaultText,[p,s]);return e.jsx("div",{className:t.cls("gp-box-border gp-inline-flex gp-w-full gp- gp-cursor-pointer gp-items-center gp-justify-center gp-rounded-[5px] gp-px-[26px] gp-py-[21px] gp-text-center",{"gp-pointer-events-none !gp-cursor-not-allowed":p}),style:{boxShadow:`inset 0 0 0 1px ${r.buttonColor.secondary}`,backgroundColor:i},children:e.jsx(l.default,{setting:{text:n?.label},className:"gp-flex gp-items-center",textClassWrapper:"gp-leading-[15px]",styles:{typo:{fontSize:a?.labelTextSize||"large",textTransform:a?.labelTransform||"capitalize",textColor:s||p?"defaultButton":"defaultLink",fontWeight:"bold"}}})})};
