var convert=function(t){return parseInt(t.slice(0,-2),10)};var getComputedPadding=function(t,n){if(n===void 0){n=16}if(typeof window==="undefined"||t===undefined){return{top:n,right:n,bottom:n,left:n}}var e=window.getComputedStyle(t);var r=convert(e.getPropertyValue("padding-top"));var d=convert(e.getPropertyValue("padding-right"));var o=convert(e.getPropertyValue("padding-bottom"));var i=convert(e.getPropertyValue("padding-left"));return{top:r,right:d,bottom:o,left:i}};var getComputedWidth=function(t){if(typeof window==="undefined"){return t.clientWidth}var n=window.getComputedStyle(t);var e=convert(n.getPropertyValue("width"));var r=convert(n.getPropertyValue("padding-left"));var d=convert(n.getPropertyValue("padding-left"));return e+r+d};export{getComputedPadding as a,getComputedWidth as g};