"use strict";var core=require("@gem-sdk/core");const getButtonClasses=({uid:t,styles:e,className:s,shouldRenderLink:o,advanced:n})=>({...s&&{[s]:!0},...t&&{[t]:!0},"gp-text-center":o,"gp-max-w-full":e?.textOverFlow||!1,"gp-scale-[1.1]":e?.animation?.normal==="grow","gp-animate-bounce":e?.animation?.normal==="bounce","hover:gp-scale-[1.1]":e?.animation?.hover==="grow","hover:gp-animate-bounce":e?.animation?.hover==="bounce","gp-button-base gp-group gp-relative gp-inline-flex gp-max-w-full gp-items-center gp-justify-center gp-no-underline gp-transition-colors gp-duration-200 disabled:gp-btn-disabled disabled:gp-opacity-30":!0,[core.getGlobalColorStateClass("text",e?.textColor)]:!0,[core.composeTypographyClassName(e?.typo,e?.typography)]:!0,...s?.includes("gp-button-atc")&&n&&{[n?.cssClass]:!0}}),getButtonWrapperClasses=(t,e,s)=>({[t]:!0,...!e?.includes("gp-button-atc")&&s&&{[s]:!0}}),getButtonContentWrapperClasses=t=>({"gp-inline-flex":!0,"gp-flex-row-reverse":t?.iconAlign==="right"&&!!t?.label}),getButtonContainerClasses=()=>({"gp-flex gp-flex-col":!0}),getButtonLabelClasses=(t,e)=>({"gp-content-product-button group-active/button:!gp-text-inherit gp-relative gp-flex gp-h-full gp-items-center gp-overflow-hidden gp-break-words group-data-[state=loading]:gp-invisible [&_p]:gp-whitespace-pre-line":!0,"[&:not(:has(p))]:gp-pr-[0.2em] [&_p]:[&:has(p)]:gp-pr-[0.2em]":t?.typo?.attrs?.italic,"gp-text button-text":e}),getButtonIconClasses=(t,e,s)=>({"!gp-m-0":e&&!t||!s,"gp-button-icon gp-z-1 gp-inline-flex gp-shrink-0 gp-items-center gp-justify-center group-data-[state=loading]:gp-invisible [&>svg]:!gp-h-[var(--height-desktop)] [&>svg]:!gp-w-auto tablet:[&>svg]:!gp-h-[var(--height-tablet)] mobile:[&>svg]:!gp-h-[var(--height-mobile)]":!0});exports.getButtonClasses=getButtonClasses,exports.getButtonContainerClasses=getButtonContainerClasses,exports.getButtonContentWrapperClasses=getButtonContentWrapperClasses,exports.getButtonIconClasses=getButtonIconClasses,exports.getButtonLabelClasses=getButtonLabelClasses,exports.getButtonWrapperClasses=getButtonWrapperClasses;
