'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),core=require("@gem-sdk/core"),helper=require("../../../../../common/helper.js"),React=require("react"),Text=require("../../../../../text/components/Text.js");const RectangleListVariant=({value:e,isVariantOutStock:t,checked:r,preset:o})=>{let l=React.useMemo(()=>t?helper.buttonColor.secondary:r?helper.buttonColor.primary:helper.buttonColor.defaultText,[t,r]);return jsxRuntime.jsx("div",{className:core.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":t}),style:{boxShadow:`inset 0 0 0 1px ${helper.buttonColor.secondary}`,backgroundColor:l},children:jsxRuntime.jsx(Text.default,{setting:{text:e?.label},className:"gp-flex gp-items-center",textClassWrapper:"gp-leading-[15px]",styles:{typo:{fontSize:o?.labelTextSize||"large",textTransform:o?.labelTransform||"capitalize",textColor:r||t?"defaultButton":"defaultLink",fontWeight:"bold"}}})})};exports.default=RectangleListVariant;
