{"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 = Number.parseInt(style.borderLeftWidth, 10);\n      const borderRight = Number.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","Number","parseInt","borderLeftWidth","borderRight","borderRightWidth"],"sources":["/Users/nili/Documents/trae_projects/client/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 = Number.parseInt(style.borderLeftWidth, 10);\n      const borderRight = Number.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,CAAC,IAAIL,SAAS,YAAY,CAAC;IAC9D,IAAIM,WAAW,GAAGH,KAAK;IACvB,IAAIC,SAAS,EAAE;MACb,MAAMG,KAAK,GAAGC,gBAAgB,CAACJ,SAAS,CAAC;MACzC,MAAMK,UAAU,GAAGC,MAAM,CAACC,QAAQ,CAACJ,KAAK,CAACK,eAAe,EAAE,EAAE,CAAC;MAC7D,MAAMC,WAAW,GAAGH,MAAM,CAACC,QAAQ,CAACJ,KAAK,CAACO,gBAAgB,EAAE,EAAE,CAAC;MAC/DR,WAAW,GAAGH,KAAK,GAAGM,UAAU,GAAGI,WAAW;IAChD;IACA,OAAOP,WAAW;EACpB,CAAC;EACD,OAAOL,iBAAiB;AAC1B","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}