26e7d166c9a1328f439640e72706cfee.json
2.88 KB
{"ast":null,"code":"import * as React from 'react';\nimport Header from '../Header';\nimport PanelContext from '../../PanelContext';\nimport { formatValue } from '../../utils/dateUtil';\n\nfunction TimeHeader(props) {\n var _React$useContext = React.useContext(PanelContext),\n hideHeader = _React$useContext.hideHeader;\n\n if (hideHeader) {\n return null;\n }\n\n var prefixCls = props.prefixCls,\n generateConfig = props.generateConfig,\n locale = props.locale,\n value = props.value,\n format = props.format;\n var headerPrefixCls = \"\".concat(prefixCls, \"-header\");\n return /*#__PURE__*/React.createElement(Header, {\n prefixCls: headerPrefixCls\n }, value ? formatValue(value, {\n locale: locale,\n format: format,\n generateConfig: generateConfig\n }) : \"\\xA0\");\n}\n\nexport default TimeHeader;","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/node_modules/rc-picker/es/panels/TimePanel/TimeHeader.js"],"names":["React","Header","PanelContext","formatValue","TimeHeader","props","_React$useContext","useContext","hideHeader","prefixCls","generateConfig","locale","value","format","headerPrefixCls","concat","createElement"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,OAAOC,MAAP,MAAmB,WAAnB;AACA,OAAOC,YAAP,MAAyB,oBAAzB;AACA,SAASC,WAAT,QAA4B,sBAA5B;;AAEA,SAASC,UAAT,CAAoBC,KAApB,EAA2B;AACzB,MAAIC,iBAAiB,GAAGN,KAAK,CAACO,UAAN,CAAiBL,YAAjB,CAAxB;AAAA,MACIM,UAAU,GAAGF,iBAAiB,CAACE,UADnC;;AAGA,MAAIA,UAAJ,EAAgB;AACd,WAAO,IAAP;AACD;;AAED,MAAIC,SAAS,GAAGJ,KAAK,CAACI,SAAtB;AAAA,MACIC,cAAc,GAAGL,KAAK,CAACK,cAD3B;AAAA,MAEIC,MAAM,GAAGN,KAAK,CAACM,MAFnB;AAAA,MAGIC,KAAK,GAAGP,KAAK,CAACO,KAHlB;AAAA,MAIIC,MAAM,GAAGR,KAAK,CAACQ,MAJnB;AAKA,MAAIC,eAAe,GAAG,GAAGC,MAAH,CAAUN,SAAV,EAAqB,SAArB,CAAtB;AACA,SAAO,aAAaT,KAAK,CAACgB,aAAN,CAAoBf,MAApB,EAA4B;AAC9CQ,IAAAA,SAAS,EAAEK;AADmC,GAA5B,EAEjBF,KAAK,GAAGT,WAAW,CAACS,KAAD,EAAQ;AAC5BD,IAAAA,MAAM,EAAEA,MADoB;AAE5BE,IAAAA,MAAM,EAAEA,MAFoB;AAG5BH,IAAAA,cAAc,EAAEA;AAHY,GAAR,CAAd,GAIH,MANe,CAApB;AAOD;;AAED,eAAeN,UAAf","sourcesContent":["import * as React from 'react';\nimport Header from '../Header';\nimport PanelContext from '../../PanelContext';\nimport { formatValue } from '../../utils/dateUtil';\n\nfunction TimeHeader(props) {\n var _React$useContext = React.useContext(PanelContext),\n hideHeader = _React$useContext.hideHeader;\n\n if (hideHeader) {\n return null;\n }\n\n var prefixCls = props.prefixCls,\n generateConfig = props.generateConfig,\n locale = props.locale,\n value = props.value,\n format = props.format;\n var headerPrefixCls = \"\".concat(prefixCls, \"-header\");\n return /*#__PURE__*/React.createElement(Header, {\n prefixCls: headerPrefixCls\n }, value ? formatValue(value, {\n locale: locale,\n format: format,\n generateConfig: generateConfig\n }) : \"\\xA0\");\n}\n\nexport default TimeHeader;"]},"metadata":{},"sourceType":"module"}