import{makeStyleResponsive as e,getResponsiveValueByScreen as t}from"@gem-sdk/core";let l=(e,t)=>(t?.forEach(t=>{e?.[t]=="flex-start"?e={...e,[t]:"start"}:e?.[t]=="flex-end"&&(e={...e,[t]:"end"})}),e),r=e=>{let t=e?.desktop,l=e?.tablet===void 0?t:e?.tablet,r=e?.mobile===void 0?l:e?.mobile;return{desktop:t,tablet:l,mobile:r}},o=(e,t)=>{if(!e)return t;if("number"==typeof e)return e;let l=e.replaceAll("px","").replaceAll("%","").replaceAll("rem","").replaceAll("em","");return isNaN(Number(l))?t:Number(l)},p=e=>e?{desktop:o(e.desktop,5),tablet:o(e.tablet,5),mobile:o(e.mobile,5)}:{desktop:5},b=e=>e?{desktop:`${o(e.desktop,5)}px`,tablet:`${o(e.tablet,5)}px`,mobile:`${o(e.mobile,5)}px`}:{desktop:"5px"},i=(e,t)=>{let l={};return["desktop","mobile","tablet"].forEach(r=>{l={...l,[`--d${"desktop"===r?"":`-${r}`}`]:`${e(r)?"none":t}`}}),l},n=(r,o)=>{let p={},b=["desktop","mobile","tablet"];return b.forEach(i=>{p=e("jc",l(r,b));let n=t(o,i);n?.includes("bottom")&&(p=e("ai",l(r,b)))}),p},a=e=>{let t=e?.["--radius"],l=e?.["--bblr"]||"0px",r=e?.["--bbrr"]||"0px",o=e?.["--btlr"]||"0px",p=e?.["--btrr"]||"0px";return t&&!t.toString().includes("none")&&"0"!==t.toString()||"0px"!==l||"0px"!==r||"0px"!==o||"0px"!==p};export{a as checkAddOverFlowClass,p as convertSpacing,b as convertSpacingPx,o as convertUnitToNumber,i as getDisplayStyle,n as getStyleAlignment,r as getTypeWidthDevice,l as updateAlignStyles};
