import{createStyleReact as e,createStyle as o}from"@gem-sdk/system";import{makeStyle as r,getSingleColorVariable as t,getResponsiveStyleShadowWithoutState as a,getPaddingGlobalSize as i,makeStyleResponsive as l,composeCornerCss as p,composeBorderCss as d}from"@gem-sdk/core";import{getResponsiveWidth as s,getResponsiveHeight as $,getArrowDisplayStyle as n,getArrowPositionStyle as m,getResponsiveSetting as c}from"./helpers.js";let getStyle=(g,b="liquid")=>{let{uid:w,vertical:h,showArrow:u,gapToEachSize:x,left:f,arrowBackgroundColor:k,arrowButtonSize:y,rootId:S,arrowBorder:q,arrowCorner:v,arrowCustomColor:z,arrowIconSize:j,arrowShadow:E}=g,T=r({bg:t(k)}),A=r({c:t(z)}),B=a(E,"box-shadow",E),C=c(q||{}),D=c(v||{}),F=i(y),G=c(j||{}),H=c(u||{}),I=r({v:"hidden"}),J=s(y),K=$(y),L=l("w",G,"px"),M=l("h",G,"px"),N=l("d",n(H)),O=r(m({vertical:h,arrowType:H,gapToEachSize:x??"",left:!!f})),P={...T,...N,...O,...J,...K,...F,...B,..."liquid"===b?I:{}},Q={...A,...L,...M},R="react"===b?e(P):o(P),U="react"===b?e(Q):o(Q),V=`
      ${S?"."+S:""}.gp-carousel-arrow-${w} {
        ${p(D.desktop)}
      }
      ${S?"."+S:""}.gp-carousel-arrow-${w}::before {
        content: '';
        height: 100%;
        width: 100%;
        position: absolute;
        pointer-events: none;
        z-index: 10;
        ${d(C.desktop)}
        ${p(D.desktop)}
      }
      @media only screen and (max-width: 1024px) and (min-width: 768px) {
        ${S?"."+S:""}.gp-carousel-arrow-${w} {
          ${p(D.tablet)}
        }
        ${S?"."+S:""}.gp-carousel-arrow-${w}::before {
          ${d(C.tablet)}
          ${p(D.tablet)}
        }
      }
      @media only screen and (max-width: 768px) {
        ${S?"."+S:""}.gp-carousel-arrow-${w} {
          ${p(D.mobile)}
        }
        ${S?"."+S:""}.gp-carousel-arrow-${w}::before {
          ${d(C.mobile)}
          ${p(D.mobile)}
        }
      }
    `;return{buttonStyle:R,buttonContentStyle:U,innerBorderCss:V}};export{getStyle};
