"use strict";var e=require("@gem-sdk/core");exports.getButtonStyle=(t,o)=>({...t,...e.makeStyleResponsive("ta",o?.align)}),exports.getButtonStyles=e=>{let t=JSON.parse(JSON.stringify(e||{}));return delete t?.borderBtnV2?.normal?.borderType,delete t?.borderBtnV2?.hover?.borderType,delete t?.borderBtnV2?.active?.borderType,delete t?.boxShadowBtn?.active,{...t,enableTextStyle:!0}},exports.getInnerActiveStyles=e=>{let t=e?.backgroundColorV2?.active,o=e?.textColor?.active;if(!t&&!o)return"";let r=`.gp-coupon[data-active="true"] button {
`;return t&&(r+=`  background-color: ${t} !important;
`),o&&(r+=`  color: ${o} !important;
`),r+="}"},exports.getInnerBorderCornerCss=t=>{var o;let{uid:r,styles:a}=t;if(!r||!a)return"";let{borderBtnV2:n,roundedBtnV2:i,boxShadowBtn:d}=a,s=d?.active?.enable!==void 0?(o=d?.active??{})?e.getStyleShadow({value:o,state:"active",styleAppliedFor:"box-shadow",isEnableShadow:!0})["--shadow"]:"none":"",l={desktop:"",tablet:"@media only screen and (max-width: 1024px) and (min-width: 768px)",mobile:"@media only screen and (max-width: 768px)"};return(t=>{let o=l[t],a=`
      .gp-coupon[data-active="true"] .${r}::before {
        ${e.composeBorderCss(n?.active,{important:!0})};
        ${e.composeCornerCss(i?.active,!0)};
        box-shadow: ${s} !important;
      }
      .gp-coupon[data-active="true"] .${r} {
        ${e.composeCornerCss(i?.active,!0)};
        box-shadow: ${s} !important;
      }
    `.trim();return o?`${o} {
${a}
}`:a})("desktop")};
