import{makeStyleResponsive as e,getHeightByShapeGlobalSize as t,makeStyleWithDefault as o,getWidthByShapeGlobalSize as l,getGlobalColorResponsiveStyle as a,makeStyle as i,getSingleColorVariable as p,getStyleShadow as r,getRadiusStyleActiveState as n,getValueByDevice as b,getResponsiveValueByScreen as s}from"@gem-sdk/core";let d=t=>({...e("jc",t?.align)}),m=e=>{let{style:t,backgroundColor:o,styleWidth:l,styleHeight:i}=e||{};return{...i,...l,...t,...a("bg",o)}},u=e=>{let{index:t,itemSize:o,iconSeparatorColor:l,getHeightOfIconSeparatorSize:a,getWidthOfIconSeparatorSize:p,getIconPosition:r}=e??{};return{...i({c:l}),...t<o?r():"0px",...a?.(),...p?.()}},g=e=>{let{itemBackgroundColor:t,itemBorderStyle:o,itemCorner:l,itemShadow:b,hasItemShadow:s,itemStyle:d}=e||{};return{...a("bg",t),...n({...l,active:{...l||{},radiusType:"custom"}}),...d,...r({value:b,styleAppliedFor:"box-shadow",isEnableShadow:s}),...i({b:o?.border,bw:o?.width,bc:p(o?.color)})}},c=a=>{let{setting:i,styles:p,itemSize:r=0}=a||{},{sizeSetting:n,iconSeparatorSize:d,itemSpacing:m}=p||{},{itemWidthType:u,isShowIconSeparator:g,iconSeparatorSvg:c}=i||{},k=e("h",t(n)),x=o("w",l(n,!0),{desktop:"--g-ct-w",tablet:"--g-ct-w",mobile:"--g-ct-w"}),h=e=>{let t=s(p?.itemMaxWidth,e),o=parseInt(t??"0");t=Math.max(o,40)+"px";let l=s(u,e);return"FIT_CONTENT"===l&&(t="auto"),"BASE_ON_NUMBER_OF_ITEMS"===l&&(t=`calc(100% / ${r})`),t},w=e=>"auto"===h(e)?"unset":h(e),S=e=>{let t=s(m,e);return t??"0px"},y=g&&c,I=(e,t)=>{let o=s(p?.itemSpacing,e),l=0>parseInt(o||"0")?"0px":o??"0px";return y?"0px":t<r&&l||"0px"};return{styleHeight:k,styleWidth:x,getIconPosition:()=>({...e("ml",{desktop:S("desktop"),tablet:S("tablet"),mobile:S("mobile")}),...e("mr",{desktop:S("desktop"),tablet:S("tablet"),mobile:S("mobile")})}),getWidthOfIconSeparatorSize:()=>({...e("w",{desktop:`${b(d,"desktop")||0}px`,tablet:`${b(d,"tablet")||0}px`,mobile:`${b(d,"mobile")||0}px`}),...e("minw",{desktop:`${b(d,"desktop")||0}px`,tablet:`${b(d,"tablet")||0}px`,mobile:`${b(d,"mobile")||0}px`})}),getHeightOfIconSeparatorSize:()=>e("h",{desktop:`${b(d,"desktop")||0}px`,tablet:`${b(d,"tablet")||0}px`,mobile:`${b(d,"mobile")||0}px`}),getWidthForWrapperItem:()=>({...e("w",{desktop:h("desktop"),tablet:h("tablet"),mobile:h("mobile")}),...e("minw",{desktop:h("desktop"),tablet:h("tablet"),mobile:h("mobile")}),...e("maxw",{desktop:w("desktop"),tablet:w("tablet"),mobile:w("mobile")})}),getItemPaddingRightSpacingValue:t=>({...e("pr",{desktop:I("desktop",t),tablet:I("tablet",t),mobile:I("mobile",t)})}),getWidthForItem:()=>e("w",{desktop:"calc(100%)",tablet:"calc(100%)",mobile:"calc(100%)"})}},k=(e,t)=>{let o=s(t,e);return o?"100%":"auto"},x=t=>({...e("w",{desktop:k("desktop",t),tablet:k("tablet",t),mobile:k("mobile",t)}),...e("minw",{desktop:k("desktop",t),tablet:k("tablet",t),mobile:k("mobile",t)})}),h=e=>{let{style:t,play:o,pauseOnHover:l,pauseOnClick:a}=e??{};return{...t,"--pause-on-hover":!o||l?"paused":"running","--pause-on-click":!o||l&&!a||a?"paused":"running","--width":"100%","--transform":"none","min-width":"100%"}},w=e=>{let{play:t,direction:o,delay:l,loop:a,autoFill:i}=e||{};return{"--play":t?"running":"paused","--direction":"left"===o?"normal":"reverse","--delay":`${l}s`,"--iteration-count":a?`${a}`:"infinite","--min-width":i?"auto":"100%",...x(e?.isFullWidthResponsive)}},S=(e,t)=>({"--transform":"up"===e?"rotate(90deg)":"down"===e?"rotate(-90deg)":"none",...x(t)});export{d as getAlignStyles,S as getChildBaseStyle,h as getContainerBaseStyle,m as getContentStyles,u as getFastMarqueeChildrenIconStyles,g as getItemWrapperStyles,w as getMarqueeBaseStyle,c as getMarqueeStyles,x as getWidthMarquee};
