import{DEVICES as e}from"@gem-sdk/core";import{deviceWithSurfix as o}from"./common.js";let getStyleAdvanced=(t,c)=>{let a={...c,...t};return e.forEach(e=>{["--top","--left","--right","--bottom","--t"].forEach(l=>{let s;let r=`${l}${o(e)}`;s=checkNoCssValue(t?.[r])?checkNoCssValue(c?.[r])?"":c?.[r]:checkNoCssValue(c?.[r])?checkNoCssValue(t[r])?"":t?.[r]:`calc(${t?.[r]} + ${c?.[r]})`,a[r]=s||a[r]})}),a},checkNoCssValue=e=>!e||"unset"===e.toLocaleLowerCase()||"auto"===e.toLocaleLowerCase();export{getStyleAdvanced};
