{"ast":null,"code":"export default function useContainerWidth(prefixCls) {\n  const getContainerWidth = (ele, width) => {\n    const container = ele.querySelector(`.${prefixCls}-container`);\n    let returnWidth = width;\n    if (container) {\n      const style = getComputedStyle(container);\n      const borderLeft = parseInt(style.borderLeftWidth, 10);\n      const borderRight = parseInt(style.borderRightWidth, 10);\n      returnWidth = width - borderLeft - borderRight;\n    }\n    return returnWidth;\n  };\n  return getContainerWidth;\n}","map":{"version":3,"names":["useContainerWidth","prefixCls","getContainerWidth","ele","width","container","querySelector","returnWidth","style","getComputedStyle","borderLeft","parseInt","borderLeftWidth","borderRight","borderRightWidth"],"sources":["/Users/chrishaack/UC_Trains_Voice/react-demo/node_modules/antd/es/table/hooks/useContainerWidth.js"],"sourcesContent":["export default function useContainerWidth(prefixCls) {\n  const getContainerWidth = (ele, width) => {\n    const container = ele.querySelector(`.${prefixCls}-container`);\n    let returnWidth = width;\n    if (container) {\n      const style = getComputedStyle(container);\n      const borderLeft = parseInt(style.borderLeftWidth, 10);\n      const borderRight = parseInt(style.borderRightWidth, 10);\n      returnWidth = width - borderLeft - borderRight;\n    }\n    return returnWidth;\n  };\n  return getContainerWidth;\n}"],"mappings":"AAAA,eAAe,SAASA,iBAAiBA,CAACC,SAAS,EAAE;EACnD,MAAMC,iBAAiB,GAAGA,CAACC,GAAG,EAAEC,KAAK,KAAK;IACxC,MAAMC,SAAS,GAAGF,GAAG,CAACG,aAAa,CAAE,IAAGL,SAAU,YAAW,CAAC;IAC9D,IAAIM,WAAW,GAAGH,KAAK;IACvB,IAAIC,SAAS,EAAE;MACb,MAAMG,KAAK,GAAGC,gBAAgB,CAACJ,SAAS,CAAC;MACzC,MAAMK,UAAU,GAAGC,QAAQ,CAACH,KAAK,CAACI,eAAe,EAAE,EAAE,CAAC;MACtD,MAAMC,WAAW,GAAGF,QAAQ,CAACH,KAAK,CAACM,gBAAgB,EAAE,EAAE,CAAC;MACxDP,WAAW,GAAGH,KAAK,GAAGM,UAAU,GAAGG,WAAW;IAChD;IACA,OAAON,WAAW;EACpB,CAAC;EACD,OAAOL,iBAAiB;AAC1B"},"metadata":{},"sourceType":"module","externalDependencies":[]}