"use strict";var e=require("@gem-sdk/core");exports.getButtonClasses=({uid:t,styles:p,className:o,shouldRenderLink:g,advanced:a})=>({...o&&{[o]:!0},...t&&{[t]:!0},"gp-text-center":g,"gp-max-w-full":p?.textOverFlow||!1,"gp-scale-[1.1]":p?.animation?.normal==="grow","gp-animate-bounce":p?.animation?.normal==="bounce","hover:gp-scale-[1.1]":p?.animation?.hover==="grow","hover:gp-animate-bounce":p?.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,[e.getGlobalColorStateClass("text",p?.textColor)]:!0,[e.composeTypographyClassName(p?.typo,p?.typography)]:!0,...o?.includes("gp-button-atc")&&a&&{[a?.cssClass]:!0}}),exports.getButtonContainerClasses=()=>({"gp-flex gp-flex-col":!0}),exports.getButtonContentWrapperClasses=e=>({"gp-inline-flex":!0,"gp-flex-row-reverse":e?.iconAlign==="right"&&!!e?.label}),exports.getButtonIconClasses=(e,t,p)=>({"!gp-m-0":t&&!e||!p,"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.getButtonLabelClasses=(e,t)=>({"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]":e?.typo?.attrs?.italic,"gp-text button-text":t}),exports.getButtonWrapperClasses=(e,t,p)=>({[e]:!0,...!t?.includes("gp-button-atc")&&p&&{[p]:!0}});
