{"ast":null,"code":"import { resetComponent } from '../../style';\nimport { genCollapseMotion } from '../../style/motion';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport genDraggerStyle from './dragger';\nimport genListStyle from './list';\nimport genMotionStyle from './motion';\nimport { genPictureCardStyle, genPictureStyle } from './picture';\nimport genRtlStyle from './rtl';\nconst genBaseStyle = token => {\n  const {\n    componentCls,\n    colorTextDisabled\n  } = token;\n  return {\n    [`${componentCls}-wrapper`]: Object.assign(Object.assign({}, resetComponent(token)), {\n      [componentCls]: {\n        outline: 0,\n        \"input[type='file']\": {\n          cursor: 'pointer'\n        }\n      },\n      [`${componentCls}-select`]: {\n        display: 'inline-block'\n      },\n      [`${componentCls}-disabled`]: {\n        color: colorTextDisabled,\n        cursor: 'not-allowed'\n      }\n    })\n  };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Upload', token => {\n  const {\n    fontSizeHeading3,\n    fontSize,\n    lineHeight,\n    lineWidth,\n    controlHeightLG\n  } = token;\n  const listItemHeightSM = Math.round(fontSize * lineHeight);\n  const uploadToken = mergeToken(token, {\n    uploadThumbnailSize: fontSizeHeading3 * 2,\n    uploadProgressOffset: listItemHeightSM / 2 + lineWidth,\n    uploadPicCardSize: controlHeightLG * 2.55\n  });\n  return [genBaseStyle(uploadToken), genDraggerStyle(uploadToken), genPictureStyle(uploadToken), genPictureCardStyle(uploadToken), genListStyle(uploadToken), genMotionStyle(uploadToken), genRtlStyle(uploadToken), genCollapseMotion(uploadToken)];\n}, token => ({\n  actionsColor: token.colorTextDescription\n}));","map":{"version":3,"names":["resetComponent","genCollapseMotion","genComponentStyleHook","mergeToken","genDraggerStyle","genListStyle","genMotionStyle","genPictureCardStyle","genPictureStyle","genRtlStyle","genBaseStyle","token","componentCls","colorTextDisabled","Object","assign","outline","cursor","display","color","fontSizeHeading3","fontSize","lineHeight","lineWidth","controlHeightLG","listItemHeightSM","Math","round","uploadToken","uploadThumbnailSize","uploadProgressOffset","uploadPicCardSize","actionsColor","colorTextDescription"],"sources":["/Users/chrishaack/UC_Trains_Voice/react-demo/node_modules/antd/es/upload/style/index.js"],"sourcesContent":["import { resetComponent } from '../../style';\nimport { genCollapseMotion } from '../../style/motion';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport genDraggerStyle from './dragger';\nimport genListStyle from './list';\nimport genMotionStyle from './motion';\nimport { genPictureCardStyle, genPictureStyle } from './picture';\nimport genRtlStyle from './rtl';\nconst genBaseStyle = token => {\n  const {\n    componentCls,\n    colorTextDisabled\n  } = token;\n  return {\n    [`${componentCls}-wrapper`]: Object.assign(Object.assign({}, resetComponent(token)), {\n      [componentCls]: {\n        outline: 0,\n        \"input[type='file']\": {\n          cursor: 'pointer'\n        }\n      },\n      [`${componentCls}-select`]: {\n        display: 'inline-block'\n      },\n      [`${componentCls}-disabled`]: {\n        color: colorTextDisabled,\n        cursor: 'not-allowed'\n      }\n    })\n  };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Upload', token => {\n  const {\n    fontSizeHeading3,\n    fontSize,\n    lineHeight,\n    lineWidth,\n    controlHeightLG\n  } = token;\n  const listItemHeightSM = Math.round(fontSize * lineHeight);\n  const uploadToken = mergeToken(token, {\n    uploadThumbnailSize: fontSizeHeading3 * 2,\n    uploadProgressOffset: listItemHeightSM / 2 + lineWidth,\n    uploadPicCardSize: controlHeightLG * 2.55\n  });\n  return [genBaseStyle(uploadToken), genDraggerStyle(uploadToken), genPictureStyle(uploadToken), genPictureCardStyle(uploadToken), genListStyle(uploadToken), genMotionStyle(uploadToken), genRtlStyle(uploadToken), genCollapseMotion(uploadToken)];\n}, token => ({\n  actionsColor: token.colorTextDescription\n}));"],"mappings":"AAAA,SAASA,cAAc,QAAQ,aAAa;AAC5C,SAASC,iBAAiB,QAAQ,oBAAoB;AACtD,SAASC,qBAAqB,EAAEC,UAAU,QAAQ,sBAAsB;AACxE,OAAOC,eAAe,MAAM,WAAW;AACvC,OAAOC,YAAY,MAAM,QAAQ;AACjC,OA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