import{createStyle as t}from"@gem-sdk/system";import{getResponsiveValue as e,DEVICES as o,getResponsiveValueByScreen as r,isColumnDirectionExist as s,makeStyleResponsive as i}from"@gem-sdk/core";let getStyles=(l,d)=>{let{styles:p,justifyContent:m,order:n,layout:a,parentTag:g,children:y}=l,c=e(a,"display"),f={},k=["IconListItem","ThirdPartySlot"];for(let t of o)f[t]="fit"===r(c,t)||a&&s(a,t)||k.includes(g||"")?"none":p?.display?.[t];let b=()=>{let t=Object.fromEntries(Object.entries(p?.order??{}).map(([t,e])=>[t,String(e)])),e=n??t;return d?{desktop:e?.desktop,tablet:e?.desktop,mobile:e?.desktop}:e},j=t({...i("cg",p?.gap),...i("rg",p?.gap),...i("ai",p?.alignItem),...i("jc",m??p?.justifyContent),...i("o",b()),...i("d",y?p?.display:f)});return{colStyle:j}};export{getStyles};
