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