{"version":3,"file":"getVerticalExtras.utils.cjs","sources":["../../../../../../src/components/forms/text-area/hooks/utils/getVerticalExtras.utils.ts"],"sourcesContent":["/**\r\n * Sums the vertical padding and border widths of an element, i.e. the space\r\n * added around the content box that must be accounted for when computing the\r\n * total height from a target number of text rows.\r\n */\r\nexport const getVerticalExtras = (computed: CSSStyleDeclaration): number => {\r\n    const paddingTop = parseFloat(computed.paddingTop)\r\n    const paddingBottom = parseFloat(computed.paddingBottom)\r\n    const borderTop = parseFloat(computed.borderTopWidth)\r\n    const borderBottom = parseFloat(computed.borderBottomWidth)\r\n    return paddingTop + paddingBottom + borderTop + borderBottom\r\n}\r\n"],"names":["getVerticalExtras","computed","paddingTop","paddingBottom","borderTop","borderBottom"],"mappings":"gFAKO,MAAMA,EAAqBC,GAA0C,CACxE,MAAMC,EAAa,WAAWD,EAAS,UAAU,EAC3CE,EAAgB,WAAWF,EAAS,aAAa,EACjDG,EAAY,WAAWH,EAAS,cAAc,EAC9CI,EAAe,WAAWJ,EAAS,iBAAiB,EAC1D,OAAOC,EAAaC,EAAgBC,EAAYC,CACpD"}