f329aa12ce2dc37a96d05197617f7ed1.json
6.59 KB
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/extends\";\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nimport * as React from 'react';\nimport DatePicker from '../date-picker';\nimport devWarning from '../_util/devWarning';\nvar InternalTimePicker = DatePicker.TimePicker,\n InternalRangePicker = DatePicker.RangePicker;\nvar RangePicker = /*#__PURE__*/React.forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(InternalRangePicker, _extends({}, props, {\n picker: \"time\",\n mode: undefined,\n ref: ref\n }));\n});\nvar TimePicker = /*#__PURE__*/React.forwardRef(function (_a, ref) {\n var addon = _a.addon,\n renderExtraFooter = _a.renderExtraFooter,\n popupClassName = _a.popupClassName,\n restProps = __rest(_a, [\"addon\", \"renderExtraFooter\", \"popupClassName\"]);\n\n var internalRenderExtraFooter = React.useMemo(function () {\n if (renderExtraFooter) {\n return renderExtraFooter;\n }\n\n if (addon) {\n devWarning(false, 'TimePicker', '`addon` is deprecated. Please use `renderExtraFooter` instead.');\n return addon;\n }\n\n return undefined;\n }, [addon, renderExtraFooter]);\n return /*#__PURE__*/React.createElement(InternalTimePicker, _extends({}, restProps, {\n dropdownClassName: popupClassName,\n mode: undefined,\n ref: ref,\n renderExtraFooter: internalRenderExtraFooter\n }));\n});\nTimePicker.displayName = 'TimePicker';\nTimePicker.RangePicker = RangePicker;\nexport default TimePicker;","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/node_modules/antd/es/time-picker/index.js"],"names":["_extends","__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","React","DatePicker","devWarning","InternalTimePicker","TimePicker","InternalRangePicker","RangePicker","forwardRef","props","ref","createElement","picker","mode","undefined","_a","addon","renderExtraFooter","popupClassName","restProps","internalRenderExtraFooter","useMemo","dropdownClassName","displayName"],"mappings":"AAAA,OAAOA,QAAP,MAAqB,gCAArB;;AAEA,IAAIC,MAAM,GAAG,QAAQ,KAAKA,MAAb,IAAuB,UAAUC,CAAV,EAAaC,CAAb,EAAgB;AAClD,MAAIC,CAAC,GAAG,EAAR;;AAEA,OAAK,IAAIC,CAAT,IAAcH,CAAd,EAAiB;AACf,QAAII,MAAM,CAACC,SAAP,CAAiBC,cAAjB,CAAgCC,IAAhC,CAAqCP,CAArC,EAAwCG,CAAxC,KAA8CF,CAAC,CAACO,OAAF,CAAUL,CAAV,IAAe,CAAjE,EAAoED,CAAC,CAACC,CAAD,CAAD,GAAOH,CAAC,CAACG,CAAD,CAAR;AACrE;;AAED,MAAIH,CAAC,IAAI,IAAL,IAAa,OAAOI,MAAM,CAACK,qBAAd,KAAwC,UAAzD,EAAqE,KAAK,IAAIC,CAAC,GAAG,CAAR,EAAWP,CAAC,GAAGC,MAAM,CAACK,qBAAP,CAA6BT,CAA7B,CAApB,EAAqDU,CAAC,GAAGP,CAAC,CAACQ,MAA3D,EAAmED,CAAC,EAApE,EAAwE;AAC3I,QAAIT,CAAC,CAACO,OAAF,CAAUL,CAAC,CAACO,CAAD,CAAX,IAAkB,CAAlB,IAAuBN,MAAM,CAACC,SAAP,CAAiBO,oBAAjB,CAAsCL,IAAtC,CAA2CP,CAA3C,EAA8CG,CAAC,CAACO,CAAD,CAA/C,CAA3B,EAAgFR,CAAC,CAACC,CAAC,CAACO,CAAD,CAAF,CAAD,GAAUV,CAAC,CAACG,CAAC,CAACO,CAAD,CAAF,CAAX;AACjF;AACD,SAAOR,CAAP;AACD,CAXD;;AAaA,OAAO,KAAKW,KAAZ,MA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Q,CAAC,EAAD,EAAKiC,SAAL,EAAgB;AAClFG,IAAAA,iBAAiB,EAAEJ,cAD+D;AAElFL,IAAAA,IAAI,EAAEC,SAF4E;AAGlFJ,IAAAA,GAAG,EAAEA,GAH6E;AAIlFO,IAAAA,iBAAiB,EAAEG;AAJ+D,GAAhB,CAAhD,CAApB;AAMD,CAxB6B,CAA9B;AAyBAf,UAAU,CAACkB,WAAX,GAAyB,YAAzB;AACAlB,UAAU,CAACE,WAAX,GAAyBA,WAAzB;AACA,eAAeF,UAAf","sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nimport * as React from 'react';\nimport DatePicker from '../date-picker';\nimport devWarning from '../_util/devWarning';\nvar InternalTimePicker = DatePicker.TimePicker,\n InternalRangePicker = DatePicker.RangePicker;\nvar RangePicker = /*#__PURE__*/React.forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(InternalRangePicker, _extends({}, props, {\n picker: \"time\",\n mode: undefined,\n ref: ref\n }));\n});\nvar TimePicker = /*#__PURE__*/React.forwardRef(function (_a, ref) {\n var addon = _a.addon,\n renderExtraFooter = _a.renderExtraFooter,\n popupClassName = _a.popupClassName,\n restProps = __rest(_a, [\"addon\", \"renderExtraFooter\", \"popupClassName\"]);\n\n var internalRenderExtraFooter = React.useMemo(function () {\n if (renderExtraFooter) {\n return renderExtraFooter;\n }\n\n if (addon) {\n devWarning(false, 'TimePicker', '`addon` is deprecated. Please use `renderExtraFooter` instead.');\n return addon;\n }\n\n return undefined;\n }, [addon, renderExtraFooter]);\n return /*#__PURE__*/React.createElement(InternalTimePicker, _extends({}, restProps, {\n dropdownClassName: popupClassName,\n mode: undefined,\n ref: ref,\n renderExtraFooter: internalRenderExtraFooter\n }));\n});\nTimePicker.displayName = 'TimePicker';\nTimePicker.RangePicker = RangePicker;\nexport default TimePicker;"]},"metadata":{},"sourceType":"module"}