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