{"ast":null,"code":"import { unit } from '@ant-design/cssinjs';\nimport { genOverflowStyle, getMultipleSelectorUnit } from '../../select/style/multiple';\nimport { mergeToken } from '../../theme/internal';\nconst genSize = (token, suffix) => {\n  const {\n    componentCls,\n    controlHeight\n  } = token;\n  const suffixCls = suffix ? `${componentCls}-${suffix}` : '';\n  const multipleSelectorUnit = getMultipleSelectorUnit(token);\n  return [\n  // genSelectionStyle(token, suffix),\n  {\n    [`${componentCls}-multiple${suffixCls}`]: {\n      paddingBlock: multipleSelectorUnit.containerPadding,\n      paddingInlineStart: multipleSelectorUnit.basePadding,\n      minHeight: controlHeight,\n      // ======================== Selections ========================\n      [`${componentCls}-selection-item`]: {\n        height: multipleSelectorUnit.itemHeight,\n        lineHeight: unit(multipleSelectorUnit.itemLineHeight)\n      }\n    }\n  }];\n};\nconst genPickerMultipleStyle = token => {\n  const {\n    componentCls,\n    calc,\n    lineWidth\n  } = token;\n  const smallToken = mergeToken(token, {\n    fontHeight: token.fontSize,\n    selectHeight: token.controlHeightSM,\n    multipleSelectItemHeight: token.multipleItemHeightSM,\n    borderRadius: token.borderRadiusSM,\n    borderRadiusSM: token.borderRadiusXS,\n    controlHeight: token.controlHeightSM\n  });\n  const largeToken = mergeToken(token, {\n    fontHeight: calc(token.multipleItemHeightLG).sub(calc(lineWidth).mul(2).equal()).equal(),\n    fontSize: token.fontSizeLG,\n    selectHeight: token.controlHeightLG,\n    multipleSelectItemHeight: token.multipleItemHeightLG,\n    borderRadius: token.borderRadiusLG,\n    borderRadiusSM: token.borderRadius,\n    controlHeight: token.controlHeightLG\n  });\n  return [\n  // ======================== Size ========================\n  genSize(smallToken, 'small'), genSize(token), genSize(largeToken, 'large'),\n  // ====================== Selection ======================\n  {\n    [`${componentCls}${componentCls}-multiple`]: Object.assign(Object.assign({\n      width: '100%',\n      // ==================== Selector =====================\n      [`${componentCls}-selector`]: {\n        flex: 'auto',\n        padding: 0,\n        '&:after': {\n          margin: 0\n        }\n      }\n    }, genOverflowStyle(token)), {\n      // ====================== Input ======================\n      // Input is `readonly`, which is used for a11y only\n      [`${componentCls}-multiple-input`]: {\n        width: 0,\n        height: 0,\n        border: 0,\n        visibility: 'hidden',\n        position: 'absolute',\n        zIndex: -1\n      }\n    })\n  }];\n};\nexport default genPickerMultipleStyle;","map":{"version":3,"names":["unit","genOverflowStyle","getMultipleSelectorUnit","mergeToken","genSize","token","suffix","componentCls","controlHeight","suffixCls","multipleSelectorUnit","paddingBlock","containerPadding","paddingInlineStart","basePadding","minHeight","height","itemHeight","lineHeight","itemLineHeight","genPickerMultipleStyle","calc","lineWidth","smallToken","fontHeight","fontSize","selectHeight","controlHeightSM","multipleSelectItemHeight","multipleItemHeightSM","borderRadius","borderRadiusSM","borderRadiusXS","largeToken","multipleItemHeightLG","sub","mul","equal","fontSizeLG","controlHeightLG","borderRadiusLG","Object","assign","width","flex","padding","margin","border","visibility","position","zIndex"],"sources":["D:/Project/UC_Trains_Voice/react-demo/node_modules/antd/es/date-picker/style/multiple.js"],"sourcesContent":["import { unit } from '@ant-design/cssinjs';\nimport { genOverflowStyle, getMultipleSelectorUnit } from '../../select/style/multiple';\nimport { mergeToken } from '../../theme/internal';\nconst genSize = (token, suffix) => {\n  const {\n    componentCls,\n    controlHeight\n  } = token;\n  const suffixCls = suffix ? `${componentCls}-${suffix}` : '';\n  const multipleSelectorUnit = getMultipleSelectorUnit(token);\n  return [\n  // genSelectionStyle(token, suffix),\n  {\n    [`${componentCls}-multiple${suffixCls}`]: {\n      paddingBlock: multipleSelectorUnit.containerPadding,\n      paddingInlineStart: multipleSelectorUnit.basePadding,\n      minHeight: controlHeight,\n      // ======================== Selections ========================\n      [`${componentCls}-selection-item`]: {\n        height: multipleSelectorUnit.itemHeight,\n        lineHeight: unit(multipleSelectorUnit.itemLineHeight)\n      }\n    }\n  }];\n};\nconst genPickerMultipleStyle = token => {\n  const {\n    componentCls,\n    calc,\n    lineWidth\n  } = token;\n  const smallToken = mergeToken(token, {\n    fontHeight: token.fontSize,\n    selectHeight: token.controlHeightSM,\n    multipleSelectItemHeight: token.multipleItemHeightSM,\n    borderRadius: token.borderRadiusSM,\n    borderRadiusSM: token.borderRadiusXS,\n    controlHeight: token.controlHeightSM\n  });\n  const largeToken = mergeToken(token, {\n    fontHeight: calc(token.multipleItemHeightLG).sub(calc(lineWidth).mul(2).equal()).equal(),\n    fontSize: token.fontSizeLG,\n    selectHeight: token.controlHeightLG,\n    multipleSelectItemHeight: token.multipleItemHeightLG,\n    borderRadius: token.borderRadiusLG,\n    borderRadiusSM: token.borderRadius,\n    controlHeight: token.controlHeightLG\n  });\n  return [\n  // ======================== Size ========================\n  genSize(smallToken, 'small'), genSize(token), genSize(largeToken, 'large'),\n  // ====================== Selection ======================\n  {\n    [`${componentCls}${componentCls}-multiple`]: Object.assign(Object.assign({\n      width: '100%',\n      // ==================== Selector =====================\n      [`${componentCls}-selector`]: {\n        flex: 'auto',\n        padding: 0,\n        '&:after': {\n          margin: 0\n        }\n      }\n    }, genOverflowStyle(token)), {\n      // ====================== Input ======================\n      // Input is `readonly`, which is used for a11y only\n      [`${componentCls}-multiple-input`]: {\n        width: 0,\n        height: 0,\n        border: 0,\n        visibility: 'hidden',\n        position: 'absolute',\n        zIndex: -1\n      }\n    })\n  }];\n};\nexport default genPickerMultipleStyle;"],"mappings":"AAAA,SAASA,IAAI,QAAQ,qBAAqB;AAC1C,SAASC,gBAAgB,EAAEC,uBAAuB,QAAQ,6BAA6B;AACvF,SAASC,UAAU,QAAQ,sBAAsB;AACjD,MAAMC,OAAO,GAAGA,CAACC,KAAK,EAAEC,MAAM,KAAK;EACjC,MAAM;IACJC,YAAY;IACZC;EACF,CAAC,GAAGH,KAAK;EACT,MAAMI,SAAS,GAAGH,MAAM,GAAI,GAAEC,YAAa,IAAGD,MAAO,EAAC,GAAG,EAAE;EAC3D,MAAMI,oBAAoB,GAAGR,uBAAuB,CAACG,KAAK,CAAC;EAC3D,OAAO;EACP;EACA;IACE,CAAE,GAAEE,YAAa,Y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